PageSourceSearch

https://cdn.baohatinh.vn/assets/web/js/main.min-1.0.92.js

js baohatinh.vn collected 2026-10-02 06:53:55 UTC 167,428 bytes, 22 lines download raw bytes

1function Account(){var o,d=this,l=!1,s="",t="601473996345-584s0b2mftpg0de51e2qu9olk97qhe2n.apps.googleusercontent.com",c=window.cmsConfig.domainApi,n=c+"/user/connect.html",i="cms_user_info";function u(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}this.numberDateFormat=function(e){return 0<e?(e<10?"0":"")+e:""},this.popupwindow=function(e,t){var n=screen.width/2-400,i=screen.height/2-300;window.open(t,e,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=800, height=600, top="+i+", left="+n).window.focus()},this.isFbInApp=function(){var e=navigator.userAgent||navigator.vendor||window.opera;return-1<e.indexOf("FBAN")||-1<e.indexOf("FBAV")},this.getCaptcha=function(){return"undefined"!=typeof grecaptcha?grecaptcha.getResponse():""},this.setUserCache=function(e){var t=Date.now()+36e5;localStorage.setItem(i,JSON.stringify({...e,expire:t}))},this.getUserCache=function(){var e=localStorage.getItem(i);if(!e)return null;try{var t=JSON.parse(e);return t.expire&&t.expire>Date.now()?t:(this.removeUserCache(),null)}catch(e){return this.removeUserCache(),null}},this.removeUserCache=function(){localStorage.removeItem(i)},this.getToken=function(t){$.ajax({url:c+"/api/tools/post/token",type:"POST",success:function(e){e.data&&t&&"function"==typeof t&&t(e.data)}})},this.register=function(t){var e=$("#txtSignupEmail").val(),n=$("#txtSignupPassword").val(),i=0<$("#txtConfirmSignupPassword").length?$("#txtConfirmSignupPassword").val():"",a=$("#txtSignupFullname").val();""!==e&&u(e)?n.length<6?alert("Bạn vui lòng nhập mật khẩu dài từ 6 ký tự trở lên!"):0<$("#txtConfirmSignupPassword").length&&n!==i?alert("Nhập lại mật khẩu phải giống nhau!"):a.length<=0?alert("Bạn chưa nhập tên hiển thị!"):(i=d.getCaptcha()).length<=0?alert("Bạn chưa nhập mã Captcha!"):0<$("#cbPolicy").length&&!$("#cbPolicy").is(":checked")?alert("Bạn chưa đồng ý với quy định của chúng tôi!"):$.ajax({url:c+"/api/users/post/register",data:{email:e,password:n,fullname:a,captcha:i,global_id:s||""},type:"POST",xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?alert(-1==e.error_code?"Tạo tài khoản không thành công, vui lòng thử lại.":e.error_message):($("#txtSignupEmail,#txtSignupPassword,#txtSignupFullname").val(""),closeDialog(),alert("Bạn đã đăng ký thành công, vui lòng bấm vào link xác nhận trong email! Xin cảm ơn!\nVui lòng kiểm tra mục thư rác (spam) hoặc bấm nút gửi lại nếu không tìm thấy email xác nhận."),e.data&&e.data.profile&&(d.setUserInfo(e.data),d.displayUser(e.data),d.checkBookmark(e.data.profile),d.displayUserComment(e.data.profile)),t&&"function"==typeof t&&t(e.data.profile))}}):alert("Bạn vui lòng nhập email!")},this.login=function(t){var e=$("#txtLoginEmail").val(),n=$("#txtLoginPassword").val();""!==e&&u(e)?n.length<6?alert("Bạn vui lòng nhập mật khẩu dài từ 6 ký tự trở lên!"):$.ajax({url:c+"/api/users/post/login",data:{email:e,password:n},type:"POST",xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?-430===e.error_code?(closeDialog(),showDialog("Thông báo",'<p class="inline-block">Email chưa được đăng ký. Hãy <a href="javascript:void(0);" onclick="ME.signupDialog();"><b>tạo tài khoản.</b></a></p>',{cancel:{text:"Đóng",action:function(){closeDialog()}}})):alert(-1==e.error_code?"Đăng nhập không thành công, vui lòng thử lại.":e.error_message):($("#txtLoginEmail,#txtLoginPassword").val(""),0<=window.location.pathname.toLowerCase().indexOf("/login.html")||0<=window.location.pathname.toLowerCase().indexOf("/register.html")?window.location.reload():(closeDialog(),e.data&&e.data.profile&&(d.setUserInfo(e.data),d.displayUser(e.data),d.checkBookmark(e.data.profile),d.displayUserComment(e.data.profile),d.setUserCache(e.data)),t&&"function"==typeof t&&t(e.data.profile)))}}):alert("Bạn vui lòng nhập email!")},this.loginSocial=function(){$(".social-login a, #login-comment button, .social-link a").click(function(e){return e.stopPropagation(),e.preventDefault(),$(this).hasClass("login-fb")?d.popupwindow("Đăng nhập Facebook","https://www.facebook.com/v8.0/dialog/oauth?response_type=code&client_id=914403899670073&scope=email&redirect_uri="+encodeURIComponent(n+"?type=fb")):$(this).hasClass("login-zl")?d.popupwindow("Đăng nhập Zalo","https://oauth.zaloapp.com/v4/permission?app_id=761061939465772400&state=yes&redirect_uri="+encodeURIComponent(n+"?type=zalo")):$(this).hasClass("login-gg")?d.popupwindow("Đăng nhập Google","https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?response_type=code&client_id="+t+"&access_type=offline&prompt=consent&scope=openid%20email%20profile&service=lso&o2v=2&flowName=GeneralOAuthFlow&redirect_uri="+encodeURIComponent(n+"?type=gg")):void 0})},this.loginDialog=function(t,n){d.isFbInApp()?alert("Bạn đăng dùng trình duyệt của Facebook, hãy dùng trình duyệt của điện thoại để được hỗ trợ các dịch vụ tốt hơn."):((void 0===t||t.length<=0)&&(t="Đăng nhập"),$.ajax({url:window.cmsConfig.domainStatic+"/assets/web/template/login.html?v=1.1.0",success:function(e){showDialog(t,e,{submit:{text:"Đăng nhập",action:function(){d.login(n)}}
1,cancel:{text:"Đóng",action:function(){closeDialog()}}},"",!1),d.loginSocial(),0<$(".input-comment").length&&0<$(".input-comment textarea").length&&0<$(".input-comment textarea").val().length&&($("#modal .notlogin").click(function(e){closeDialog(),n(o,!1)}),$("#modal #btnClose, #modal .btnCancel").click(function(e){n(o,!1)}))}}))},this.signupDialog=function(t,n){d.isFbInApp()?alert("Bạn đăng dùng trình duyệt của Facebook, hãy dùng trình duyệt của điện thoại để được hỗ trợ các dịch vụ tốt hơn."):((void 0===t||t.length<=0)&&(t="Đăng ký"),closeDialog(),$.ajax({url:window.cmsConfig.domainStatic+"/assets/web/template/signup.html?v=1.1.0",success:function(e){showDialog(t,e,{submit:{text:"Tạo tài khoản",action:function(){d.register(n)}},cancel:{text:"Đóng",action:function(){closeDialog()}}},"",!1),0<$(".input-comment").length&&0<$(".input-comment textarea").length&&0<$(".input-comment textarea").val().length&&($("#modal .notlogin").click(function(e){closeDialog(),n(o,!1)}),$("#modal #btnClose, #modal .btnCancel").click(function(e){n(o,!1)}))}}))},this.logout=function(){$.ajax({url:c+"/api/users/post/logout",type:"POST",data:{user_code:o&&0<o.user_code.length?o.user_code:""},xhrFields:{withCredentials:!0},success:function(){o=null,setCookie("oneTap",0,-1),d.setUserCache({not_logged_in:!0}),alert("Cảm ơn bạn đã dùng dịch vụ của Báo Hà Tĩnh!"),window.location=window.location.toString().replace(window.location.hash,"")}})},this.resetPassword=function(){closeDialog(),showDialog("Quên mật khẩu",'         <div class="heading-body">Nhập email của bạn để lấy lại mật khẩu</div>       <div class="form-group">           <input type="email" class="form-control" id="txtForgotEmail" placeholder="Nhập email của bạn">       </div>       <div class="recaptcha">           <script src="https://www.google.com/recaptcha/api.js?hl=vi"><\/script>           <div class="g-recaptcha" data-sitekey="6Lc9BAoqAAAAAFk4pxb5J-X14OuevRRKneEDTFDg"></div>       </div>       <button type="button" class="btn-submit btnSubmit">lấy lại mật khẩu</button>',{submit:{text:"Xác nhận",action:function(){var e,t=d.getCaptcha();t.length<=0?alert("Bạn chưa nhập mã Captcha!"):""!==(e=$("#txtForgotEmail").val())&&u(e)?$.ajax({url:c+"/api/users/post/reset-password",data:{email:e,captcha:t},type:"POST",success:function(e){e.error_code<0?alert(-1==e.error_code?"Lấy lại mật khẩu không thành công, vui lòng thử lại.":e.error_message):($("#txtForgotEmail").val(""),alert("Hệ thống vừa gửi mail khôi phục mật khẩu cho bạn. Vui lòng kiểm tra hòm thư và làm theo hướng dẫn.\nVui lòng kiểm tra mục thư rác (spam) nếu không tìm thấy email."),d.removeUserCache())}}):alert("Bạn vui lòng nhập email!")}},cancel:{text:"Hủy",action:function(){closeDialog()}}})},this.changePassword=function(){$("#btnUpdatePass").length<=0||$("#btnUpdatePass").click(function(e){e.stopPropagation(),e.preventDefault();var t=0<$("#txtOldPassword").length?$("#txtOldPassword").val():"",n=$("#txtNewPassword").val(),e=$("#txtConfirmPassword").val();""!==t&&""!==n?n.length<6?alert("Bạn vui lòng nhập mật khẩu mới dài từ 6 ký tự trở lên!"):n===e?$.ajax({url:c+"/api/users/post/change-password",data:{oldPass:t,newPass:n},type:"POST",xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?alert(-1==e.error_code?"Cập nhật mật khẩu không thành công, vui lòng thử lại.":e.error_message):($("#txtNewPassword,#txtOldPassword,#txtConfirmPassword").val(""),alert("Bạn đã thay đổi mật khẩu thành công."),d.removeUserCache())}}):alert("Nhập lại mật khẩu mới phải giống nhau!"):alert("Bạn vui lòng nhập mật khẩu!")})},this.changeProfile=function(){$("#btnUpdateProfile").click(function(e){var t,n,i,a,r,o=$("#txtEmail").val();!(0<$("#phEmail").length)||$("#phEmail").hasClass("hidden")||""!==o&&u(o)?""!==(t=$("#txtName").val())?(n=$("#txtPhone").val(),i=new RegExp("^\\d+$"),0<n.length&&!n.match(i)?alert("Bạn nhập sai số điện thoại!"):(r=$("#lsBirthDay").val(),a=$("#lsBirthMonth").val(),i=$("#lsBirthYear").val()+"-"+a+"-"+r,a=$("#txtAddress").val(),r=$("#cbGender").val(),$.ajax({url:c+"/api/users/post/update-profile",data:{fullname:t,email:o,phone:n,address:a,birthday:i,gender:r,global_id:s||""},type:"POST",xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?alert(-1==e.error_code?"Cập nhật không thành công, vui lòng thử lại.":e.error_message):showDialog("Thông báo","<h3>Bạn đã cập nhật thông tin thành công.</h3><p>Lưu ý: Thay đổi về ảnh đại diện và tên hiển thị (nếu có) đang được xét duyệt.</p>",{cancel:{text:"Đóng",action:function(){d.removeUserCache(),window.location.reload()}}})}}))):alert("Bạn vui lòng nhập họ tên!"):alert("Bạn vui lòng nhập email!")})},this.changeAvatar=function(){var i;$(".custom-file-upload").length<=0||(i=$("#file-upload"),$(".custom-file-upload").click(function(e){}),i.change(function(){var e,t,n=i[0].files[0];n&&(e=n.name,(t=new FormData).append("avatar",n,e),d.getToken(function(e){e&&$.ajax({url:c+"/api/users/post/change-avatar?secure_code="+e,method:"POST",contentType:!1,cache:!1,processData:!1,data:t,xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?showDialog("Thông báo","<p>"+(-1==e.error_code?"Cập nhật không thành công, vui lòng thử lại.":e.error_message)+"</p>"):(0<$(e).length&&e.data&&e.data.avatarUrl&&$("#profile-avatar").html('<img src="'+e.data.avatarUrl+'"><i class="ic-check-regular" title="Chưa duyệt"></i>'),d.removeUserCache())}})}))}))},this.togglePassword=function(e){var t;e&&((t=$(e).parents(".form-group")).length<=0||("password"===(e=t.find("input")).attr("type")?(e.attr("type","text"),t.find(".toggle").attr("class","ic-eye ic-eye-slash toggle")):(e.attr("type","password"),t.find(".toggle").attr("class","ic-eye toggle"))))},this.sendVerify=function(t){!t||t.length<=0||$.ajax({url:c+"/api/users/post/verify",data:{email:t},type:"POST",xhrFields:{withCredentials:!0},success:function(e){e.error_code<0?alert(e.error_message):(e=t.substring(t.lastIndexOf("@")+1),showDialog("Thông báo",'<h3>Xác thực Email</h3><p>Kiểm tra email<br><a href="https://'+e+'" target="_blank"><b>'+t+"</b></a><br>Để xác thực email trên là của bạn <br>Hãy nhớ kiểm tra hòm thư rác",{cancel:{text:"Đóng",action:function(){window.location.reload()}}}))}})},this.sendBookmark=function(t,n){var i,e,a,r;!$(t)||n<=0||l||(void 0===o||!o||o.user_id<=0?d.loginDialog("Đăng nhập để lưu tin này",function(e){o=e,d.sendBookmark(t,n)}):(i=$(t),l=!0,e=i.attr("data-type")&&0<i.attr("data-type").length?i.attr("data-type"):1,a="add",r=c+"/api/users/post/add-bookmark",i.hasClass("active")&&(a="remove",r=c+"/api/users/post/remove-bookmark"),$.ajax({url:r,data:{user_id:o.user_id,object_id:n,object_type:e},type:"POST",xhrFields:{withCredentials:!0},success:function(e){l=!1,e.error_code<0||("remove"==a?(alert("Bạn đã bỏ lưu tin thành công!"),i.removeClass("active")):(alert("Bạn đã lưu tin thành công!"),i.addClass("active")))}})))},this.checkBookmark=function(e){var t,n;l||!e||e.user_id<=0||$(".sendbookmark").length<=0||(n=(t=$(".sendbookmark")).attr("data-type")&&0<t.attr("data-type").length?t.attr("data-type"):1,e=t.attr("data-id"),n&&e&&(t.removeClass("hidden"),l=!0,$.ajax({url:c+"/api/users/post/check-bookmark",data:{object_id:e,object_type:n},type:"POST",xhrFields:{withCredentials:!0},success:function(e){l=!1,e.data&&!0===e.data.hasBookmark&&!t.hasClass("active")&&t.addClass("active")}})))},this.loadProfile=function(e){var t,n,i,a,r,o,s,l,c;!e||!e.profile||e.profile.user_id<=0?window.location="/":0<=window.location.pathname.toLowerCase().indexOf("/user/login.html")?!(c=window.decodeURIComponent(window.location.hash.replace(/#/,"")))||0!=c.indexOf("/")&&0!=c.indexOf("http")?!(l=new 
1URL(window.location.toString()).searchParams.get("return"))||0!=l.indexOf("/")&&0!=l.indexOf("http")?window.location="/user/"+e.user_code+".html":window.location=l+"#logined":window.location=c+"#logined":(t=e.profile,n=e.profile_temp||null,d.displayUserComment(t),i=t.fullname,a=t.email,r=t.address,o=t.phone,s=0<t.avatar.length?t.avatar:window.cmsConfig.domainStatic+"/assets/web/styles/img/no-ava.png",l=t.social_type,e=c=!0,n&&(0<n.fullname.length&&(c=i.toLowerCase()==n.fullname.toLowerCase(),i=n.fullname),0<n.avatar.length&&(e=t.avatar.toLowerCase()==n.avatar.toLowerCase(),s=n.avatar),0<n.email.length&&(a=n.email),0<n.address.length&&(r=n.address),0<n.phone.length&&(o=n.phone)),0<$("#user-sidebar").length&&(0<$("#profile-avatar").length&&$("#profile-avatar").html('<img src="'+s+'">'+(e?'<i class="ic-checkmark checked" title="Đã duyệt"></i>':'<i class="ic-checkmark uncheck" title="Chưa duyệt"></i>')),0<$("#profile-name").length&&$("#profile-name").html(i+(c?'<i class="ic-checkmark checked" title="Đã duyệt"></i>':'<i class="ic-checkmark uncheck" title="Chưa duyệt"></i>')),0<$(".profile-stats").length&&(0<$(".comment-total").length&&$(".comment-total").html(t.comment_total||0),0<$(".history-total").length&&$(".history-total").html(t.history_total?t.hisotory_total:0),0<$(".bookmark-total").length&&$(".bookmark-total").html(t.bookmark_total||0))),0<$("#tabProfile").length&&($("#txtName").val(i),$("#txtPhone").val(o),$("#txtAddress").val(r),l&&"cms"==l?($("#txtEmail").val(a),$("#phEmail").removeClass("hidden")):$("#phEmail").addClass("hidden"),0<$("#lsBirthMonth,#lsBirthYear").length&&($("#lsBirthMonth,#lsBirthYear").change(function(e){if(""!=$("#lsBirthYear").val()&&""!=$("#lsBirthMonth").val()){for(var t,n,i=(t=parseInt($("#lsBirthMonth").val()),n=parseInt($("#lsBirthYear").val()),new Date(n,t,0).getDate()),a=29;a<=i;a++)$("#lsBirthDay option[value="+a+"]").length<=0&&$("#lsBirthDay").append('<option value="'+a+'">'+a+"</option>");for(a=i+1;a<=31;a++)$("#lsBirthDay option[value="+a+"]").remove()}}),$("#lsBirthDay").val(d.numberDateFormat(t.birth_date)),$("#lsBirthMonth").val(d.numberDateFormat(t.birth_month)),$("#lsBirthYear").val(d.numberDateFormat(t.birth_year))),0<$("#cbGender").length&&$("#cbGender").val(t.gender),d.loginSocial(),d.initTabs(t),d.changeAvatar(),d.changeProfile(),d.checkSocialConnect(t.social_type),d.changePassword()))},this.initTabs=function(t){switch(getUrlParameter("u_tab")){case"profile":$("#menuProfile").click();break;case"history":setTimeout(function(){$("#menuHistory").click()},500);break;case"bookmark":setTimeout(function(){$("#menuBookmark").click()},500);break;case"commented":setTimeout(function(){$("#menuCommented").click()},500)}$("#menuProfile").click(function(e){e.preventDefault(),$(".tablinks").removeClass("active"),$(".tabcontent").removeClass("active"),$("#menuProfile").addClass("active"),$("#tabProfile").addClass("active")}),$("#menuHistory").click(function(e){e.preventDefault(),$(".tablinks").removeClass("active"),$(".tabcontent").removeClass("active"),$("#menuHistory").addClass("active"),$("#tabHistory").addClass("active"),$("#user-history-list").html(""),d.loadActivity(t,"history",0,1)}),$("#menuBookmark").click(function(e){e.preventDefault(),$(".tablinks").removeClass("active"),$(".tabcontent").removeClass("active"),$("#menuBookmark").addClass("active"),$("#tabBookmark").addClass("active"),$("#user-bookmark-list").html(""),d.loadActivity(t,"bookmark",0,1)}),$("#menuCommented").click(function(e){e.preventDefault(),$(".tablinks").removeClass("active"),$(".tabcontent").removeClass("active"),$("#menuCommented").addClass("active"),$("#tabCommented").addClass("active"),$("#user-commented-list").html(""),d.loadActivity(t,"commented",0,1)}),$("#menuPass").click(function(e){e.preventDefault(),$(".tablinks").removeClass("active"),$(".tabcontent").removeClass("active"),$("#menuPass").addClass("active"),$("#tabPass").addClass("active")})},this.loadActivity=function(t,a,e,r){var o,n,s;!t||t.user_id<=0||t.user_code.length<=0?window.location="/":l||((o=$("#user-"+a+"-list")).length<=0||(e=e||0,parseInt(r)<=1&&o.html(""),l=!0,n=o.parents(".tabcontent"),s=n?n.find(".more-news"):void 0,e=c+"/api/users/"+t.user_code+"/"+a.toLowerCase()+".html?next_page="+r+(e?"&sort_by="+e:""),$.ajax({url:e,type:"GET",xhrFields:{withCredentials:!0},success:function(e){var n,i;l=!1,0<$(e).length&&e.data&&e.data.items&&0<e.data.items.length?(n=o.find("article[data-id],div[data-id]").map(function(){return parseInt($(this).attr("data-id"))}
1).get(),i="",e.data.items.forEach(e=>{var t;"commented"==a&&e.comment&&0<e.comment.length?-1<n.indexOf(e.commentId)||(e.avatar&&0<e.avatar.length?e.avatar.startsWith("http")||e.avatar.startsWith("//:")?e.avatar:e.avatar:window.cmsConfig.domainStatic,i+='<article class="story" data-id="'+e.commentId+'">',i+=0<parseInt(e.date)?'<time class="time" data-time="'+e.date+'">'+formatTime(e.date,{friendly:!1})+"</time>":"",i+=e.display_name&&0<e.display_name.length?'<div class="name">'+e.display_name+"</div>":"",i+='       <div class="text">'+e.comment+"</div>",i+='       <div class="action"><span class="like">'+e.likeCount+' thích</span><span class="reply">'+e.replyCount+" trả lời</span></div>",i+='       <a href="'+e.objectUrl+'" class="link">'+e.objectTitle+"</a>",i+="</article>"):e.content&&(t=e.content,-1<n.indexOf(t.content_id)||(e.is_bookmark,e.comment_count,t.zone&&t.zone.url,t.zone&&t.zone.name,e=t.content_icon&&0<t.content_icon.length?t.content_icon:"",i+='<article class="story" data-id="'+t.content_id+'">',i+=0<parseInt(t.date)?'<time class="time" data-time="'+t.date+'">'+formatTime(t.date,{friendly:!1})+"</time>":"",i+=t.avatar_url&&0<t.avatar_url.length?'<figure class="story__thumb"><a href="'+t.url+'"><img src="'+t.avatar_url.replace("/w200/","/150x100/")+'"></a></figure>':"",i+='<h3 class="story__heading" data-tracking="'+t.content_id+'"><a href="'+t.url+'">'+(t.title+e)+"</a></h3>",i+="</article>"))}),o.append(i),s&&0<s.length&&(19<e.data.items.length&&s.removeClass("hidden"),s.attr("data-page",parseInt(r)+1),s.click(function(e){e.preventDefault(),d.loadActivity(t,a,0,s.attr("data-page"))}))):(o.html(""),o.append('<div class="no-data"><img src="'+window.cmsConfig.domainStatic+'/assets/web/styles/img/no-data.png" alt=""><p>Chưa có dữ liệu.</p></div>'))}})))},this.displayUser=function(e){var t,n,i,a=$("#userprofile");a.length<=0||(t=e&&e.profile?e.profile:null,e&&e.profile_temp&&e.profile_temp,null!=t?(n=t.fullname,i=0<t.avatar.length?t.avatar:window.cmsConfig.domainStatic+"/assets/web/styles/img/no-ava.png",a.addClass("user-logged").html(' <div class="username"><img src="'+i+'">'+n+'</div><div class="dropdown-menu"> <p>Xin chào, <strong>'+n+'</strong></p> <a href="/user/'+t.user_code+'.html?u_tab=profile" class="profile"><i class="ic-user"></i> Thông tin cá nhân</a> <a href="/user/'+t.user_code+'.html?u_tab=history" class="history"><i class="ic-clock"></i> Đọc gần đây</a> <a href="/user/'+t.user_code+'.html?u_tab=commented" class="commented"><i class="ic-comment"></i> Tin đã bình luận</a> <a class="logout" href="javascript:void(0);" onclick="ME.logout();" title="Đăng xuất">Đăng xuất <i class="ic-logout"></i></a></div>'),a.show(),$(".username").click(function(e){e.preventDefault(),$(".user-login .dropdown-menu").fadeToggle("fast")}),0<$("#user-container").length&&$("#userprofile a").click(function(e){e.preventDefault(),e.stopPropagation(),$(this).hasClass("profile")?$("#menuProfile").click():$(this).hasClass("bookmark")?$("#menuBookmark").click():$(this).hasClass("history")?$("#menuHistory").click():$(this).hasClass("commented")&&$("#menuCommented").click(),$(".user-login .dropdown-menu").fadeToggle("fast")}),d.loadProfile(e)):a.html('<a href="javascript:void(0);" class="item btn-modal" onclick="ME.loginDialog();"><i class="ic-user"></i>Đăng nhập</a>'))},this.displayUserComment=function(e){0<$(".input-comment").length&&(e&&0<e.user_id?(0<$("#cmt-user-link").length&&0<e.user_code.length&&$("#cmt-user-link").attr("href","/user/"+e.user_code+".html"),0<$("#cmt-user-avatar").length&&0<e.avatar.length&&$("#cmt-user-avatar").html('<img src="'+e.avatar+'">'),0<$(".input-comment textarea").length&&0<e.fullname.length&&($(".input-comment textarea").attr("placeholder","Chào "+e.fullname+", hãy nhập ý kiến của bạn?"),0<$("#cmt-user-name").length&&$("#cmt-user-name").html(e.fullname)),0<$("#login-comment").length&&$("#login-comment").addClass("hidden"),0<$(".input-comment .user-logged").length&&$(".input-comment .user-logged").removeClass("hidden")):d.getUserInfo(function(e){e?(0<$("#cmt-user-link").length&&0<e.user_code.length&&$("#cmt-user-link").attr("href","/user/"+e.user_code+".html"),0<$("#cmt-user-avatar").length&&0<e.avatar.length&&$("#cmt-user-avatar").html('<img src="'+e.avatar+'">'),0<$(".input-comment textarea").length&&0<e.fullname.length&&($(".input-comment textarea").attr("placeholder","Chào "+e.fullname+", hãy nhập ý kiến của bạn?"),0<$("#cmt-user-name").length&&$("#cmt-user-name").html(e.fullname)),0<$("#login-comment").length&&$("#login-comment").addClass("hidden"),0<$(".input-comment .user-logged").length&&$(".input-comment .user-logged").removeClass("hidden")):(0<$("#login-comment").length&&$("#login-comment").removeClass("hidden"),0<$(".input-comment .user-logged").length&&$(".input-comment .user-logged").addClass("hidden"))}),0<$(".input-comment textarea").length&&0<$(".input-comment textarea").val().length&&0<$(".input-comment .cms-submit").length&&$(".input-comment .cms-submit").click())},this.getUserId=function(){var e=d.getUserCache();return e&&e.profile&&e.profile.user_id?(o=e.profile,e.profile.user_id):null},this.getUserInfo=function(n){var e;o&&0<o.user_id?n&&"function"==typeof n&&n(o):(e=d.getUserCache())&&e.profile&&e.profile.user_id?(o=e.profile,d.displayUser(e),d.checkBookmark(o),n&&"function"==typeof n&&n(o)):e&&e.not_logged_in?(d.displayUser(null),d.checkLoginGmail(),n&&"function"==typeof n&&n(null)):$.ajax({url:c+"/api/users/post/info?global_id="+(s||"")+(0<$(".profile-stats").length?"&stats=1":""),type:"POST",xhrFields:{withCredentials:!0},success:function(e){var t;e.error_code<0?(0<=window.location.pathname.toLowerCase().indexOf("/user/")&&(window.location=window.cmsConfig.domainDesktop),d.displayUser(null),d.checkLoginGmail(),d.setUserCache({not_logged_in:!0}),n&&"function"==typeof n&&n(null)):(0<$("#credential_picker_container").length&&$("#credential_picker_container").hide(),t=null,e.data&&(t=e.data.profile,d.setUserInfo(e.data),d.displayUser(e.data),d.checkBookmark(t),d.setUserCache(e.data)),n&&"function"==typeof n&&n(t))}})},this.setUserInfo=function(e){null==e||!e.profile||e.profile.user_id<=0?d.setUserCache({not_logged_in:!0}):(o=e.profile,d.setUserCache(e))},this.checkLoginGmail=function(){0!==getCookie("oneTap")&&d.oneTapLogin()},this.oneTapLogin=function(){$.ajax({url:"https://accounts.google.com/gsi/client",dataType:"script",success:function(e){google.accounts.id.initialize({client_id:t,auto_select:!1,cancel_on_tap_outside:!1,callback:d.handleCredentialResponse}),google.accounts.id.prompt(function(e){e.isNotDisplayed()||e.isSkippedMoment()})},async:!0})},this.handleCredentialResponse=function(e){setCookie("oneTap",0,30),d.removeUserCache(),window.location=n+"?type=gg&redirect_uri="+window.location.href+"&id_token="+e.credential},this.checkSocialConnect=function(e){if(!(!e||e.length<=0||$(".social-link").length<=0))switch(e){case"fb"
vendor: 15,638 bytes, line 1
1:$("#chkSocial-fb").attr("checked","checked").attr("disabled","disabled"),$("#lblSocial-fb").html("Đã kết nối"),$("#chkSocial-fb").off("change"),$("#chkSocial-fb").off("click"),$("#lkSocial-fb").off("click");break;case"gg":$("#chkSocial-gg").attr("checked","checked").attr("disabled","disabled"),$("#lblSocial-gg").html("Đã kết nối"),$("#chkSocial-gg").off("change"),$("#chkSocial-gg").off("click"),$("#lkSocial-gg").off("click");break;case"zalo":$("#chkSocial-zl").attr("checked","checked").attr("disabled","disabled"),$("#lblSocial-zl").html("Đã kết nối"),$("#chkSocial-zl").off("change"),$("#chkSocial-zl").off("click"),$("#lkSocial-zl").off("click")}},this.init=function(){"vi"==$("html").attr("lang")?((!(s="undefined"!=typeof getCookie?getCookie("__zi"):"")||s.length<=0)&&(s="localStorage"in window&&null!==window.localStorage?window.localStorage.getItem("__zi"):""),null==o&&d.getUserInfo(function(){})):$("#userprofile").hide()}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function($,e){"use strict";function g(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function m(e){return null!=e&&e===e.window}var t=[],n=Object.getPrototypeOf,s=t.slice,v=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},l=t.push,a=t.indexOf,i={},r=i.toString,y=i.hasOwnProperty,o=y.toString,c=o.call(Object),b={},k=$.document,d={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,a,r=(n=n||k).createElement("script");if(r.text=e,t)for(i in d)(a=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e}var u="3.6.1",C=function(e,t){return new C.fn.init(e,t)};function h(e){var t=!!e&&"length"in e&&e.length,n=p(e);return!g(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:u,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=C.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return C.each(this,e)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,n,i,a,r=arguments[0]||{},o=1,s=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[o]||{},o++),"object"==typeof r||g(r)||(r={}),o===s&&(r=this,o--);o<s;o++)if(null!=(e=arguments[o]))for(t in e)n=e[t],"__proto__"!==t&&r!==n&&(l&&n&&(C.isPlainObject(n)||(i=Array.isArray(n)))?(a=r[t],a=i&&!Array.isArray(a)?[]:i||C.isPlainObject(a)?a:{},i=!1,r[t]=C.extend(l,a,n)):void 0!==n&&(r[t]=n));return r},C.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==r.call(e)||(e=n(e))&&("function"!=typeof(e=y.call(e,"constructor")&&e.constructor)||o.call(e)!==c))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(h(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(h(Object(e))?C.merge(t,"string"==typeof e?[e]:e):l.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,o=!n;a<r;a++)!t(e[a],a)!=o&&i.push(e[a]);return i},map:function(e,t,n){var i,a,r=0,o=[];if(h(e))for(i=e.length;r<i;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&o.push(a);return v(o)},guid:1,support:b}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var f=function(n){function u(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function h(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function i(){$()}var e,f,w,r,a,p,g,m,x,l,c,$,k,o,C,v,s,d,y,_="sizzle"+ +new Date,b=n.document,T=0,S=0,E=le(),A=le(),D=le(),I=le(),j=function(e,t){return e===t&&(c=!0),0},N={}.hasOwnProperty,t=[],P=t.pop,L=t.push,O=t.push,M=t.slice,q=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+H+"*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",U=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",F=new RegExp(H+"+","g"),W=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),V=new RegExp("^"+H+"*,"+H+"*"),X=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),G=new RegExp(H+"|>"),J=new RegExp(U),Y=new RegExp("^"+R+"$"),Q={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^[^{]+\{\s*\[native \w/,ne=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ie=/[+~]/,ae=new RegExp("\\\\[\\da-fA-F]{1,6}"+H+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(t=M.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){O={apply:t.length?function(e,t){L.apply(e,M.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,n,i){var a,r,o,s,l,c,d=t&&t.ownerDocument,u=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return n;if(!i&&($(t),t=t||k,C)){if(11!==u&&(s=ne.exec(e)))if(c=s[1]){if(9===u){if(!(r=t.getElementById(c)))return n;if(r.id===c)return n.push(r),n}else if(d&&(r=d.getElementById(c))&&y(t,r)&&r.id===c)return n.push(r),n}else{if(s[2])return O.apply(n,t.getElementsByTagName(e)),n;if((c=s[3])&&f.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(c)),n}if(f.qsa&&!I[e+" "]&&(!v||!v.test(e))&&(1!==u||"object"!==t.nodeName.toLowerCase())){if(c=e,d=t,1===u&&(G.test(e)||X.test(e))){for((d=ie.test(e)&&ge(t.parentNode)||t)===t&&f.scope||((o=t.getAttribute("id"))?o=o.replace(re,h):t.setAttribute("id",o=_)),a=(l=p(e)).length;a--;)l[a]=(o?"#"+o:":scope")+" "+ve(l[a]);c=l.join(",")}try{return O.apply(n,d.querySelectorAll(c)),n}catch(t){I(e,!0)}finally{o===_&&t.removeAttribute("id")}}}return m(e.replace(W,"$1"),t,n,i)}function le(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ce(e){return e[_]=!0,e}function de(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&oe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(o){return ce(function(r){return r=+r,ce(function(e,t){for(var n,i=o([],e.length,r),a=i.length;a--;)e[n=i[a]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!K.test(t||e&&e.nodeName||"HTML")},$=se.setDocument=function(e){var t,e=e?e.ownerDocument||e:b;return e!=k&&9===e.nodeType&&e.documentElement&&(o=(k=e).documentElement,C=!a(k),b!=k&&(t=k.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",i,!1):t.attachEvent&&t.attachEvent("onunload",i)),f.scope=de(function(e){return o.appendChild(e).appendChild(k.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),f.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=de(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=te.test(k.getElementsByClassName),f.getById=de(function(e){return o.appendChild(e).id=_,!k.getElementsByName||!k.getElementsByName(_).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(ae,u);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C){e=t.getElementById(e);return e?[e]:[]}}):(w.filter.ID=function(e){var t=e.replace(ae,u);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n,i,a,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(a=t.getElementsByName(e),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[a++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},s=[],v=[],(f.qsa=te.test(k.querySelectorAll))&&(de(function(e){var t;o.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+H+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+H+"*name"+H+"*="+H+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),de(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+H+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=te.test(d=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&de(function(e){f.disconnectedMatch=d.call(e,"*"),d.call(e,"[s!='']:x"),s.push("!=",U)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=te.test(o.compareDocumentPosition),y=t||te.test(o.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){return e===t?(c=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==b&&y(b,e)?-1:t==k||t.ownerDocument==b&&y(b,t)?1:l?q(l,e)-q(l,t):0:4&n?-1:1);var n}:function(e,t){if(e===t)return c=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,o=[e],s=[t];if(!a||!r)return e==k?-1:t==k?1:a?-1:r?1:l?q(l,e)-q(l,t):0;if(a===r)return he(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?he(o[i],s[i]):o[i]==b?-1:s[i]==b?1:0}),k},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if($(e),f.matchesSelector&&C&&!I[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=d.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){I(t,!0)}return 0<se(t,k,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=k&&$(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=k&&$(e);var n=w.attrHandle[t.toLowerCase()],n=n&&N.call(w.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==n?n:f.attributes||!C?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+"").replace(re,h)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],i=0,a=0;if(c=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(j),c){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)e.splice(n[i],1)}return l=null,e},r=se.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(w=se.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ae,u),e[3]=(e[3]||e[4]||e[5]||"").replace(ae,u),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ae,u).toLowerCase();return"*"===e?function(){return!0}
vendor: 4,669 bytes, line 1
1:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=se.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(F," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,a,r,o,s,l,c=v!=y?"nextSibling":"previousSibling",d=e.parentNode,u=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(d){if(v){for(;c;){for(o=e;o=o[c];)if(b?o.nodeName.toLowerCase()===u:1===o.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?d.firstChild:d.lastChild],y&&h){for(f=(s=(i=(a=(r=(o=d)[_]||(o[_]={}))[o.uniqueID]||(r[o.uniqueID]={}))[p]||[])[0]===T&&i[1])&&i[2],o=s&&d.childNodes[s];o=++s&&o&&o[c]||(f=s=0)||l.pop();)if(1===o.nodeType&&++f&&o===e){a[p]=[T,s,f];break}}else if(!1===(f=h?s=(i=(a=(r=(o=e)[_]||(o[_]={}))[o.uniqueID]||(r[o.uniqueID]={}))[p]||[])[0]===T&&i[1]:f))for(;(o=++s&&o&&o[c]||(f=s=0)||l.pop())&&((b?o.nodeName.toLowerCase()!==u:1!==o.nodeType)||!++f||(h&&((a=(r=o[_]||(o[_]={}))[o.uniqueID]||(r[o.uniqueID]={}))[p]=[T,f]),o!==e)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(e,r){var t,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[_]?o(r):1<o.length?(t=[e,e,"",r],w.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,t){for(var n,i=o(e,r),a=i.length;a--;)e[n=q(e,i[a])]=!(t[n]=i[a])}):function(e){return o(e,0,t)}):o}},pseudos:{not:ce(function(e){var i=[],a=[],s=g(e.replace(W,"$1"));return s[_]?ce(function(e,t,n,i){for(var a,r=s(e,null,i,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))}):function(e,t,n){return i[0]=e,s(i,null,n,a),i[0]=null,!a.pop()}}),has:ce(function(t){return function(e){return 0<se(t,e).length}}),contains:ce(function(t){return t=t.replace(ae,u),function(e){return-1<(e.textContent||r(e)).indexOf(t)}}),lang:ce(function(n){return Y.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(ae,u).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return ee.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function me(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(o,e,t){var s=e.dir,l=e.next,c=l||s,d=t&&"parentNode"===c,u=S++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||d)return o(e,t,n);return!1}:function(e,t,n){var i,a,r=[T,u];if(n){for(;e=e[s];)if((1===e.nodeType||d)&&o(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||d)if(i=(a=e[_]||(e[_]={}))[e.uniqueID]||(a[e.uniqueID]={}
vendor: 4,666 bytes, line 1
1),l&&l===e.nodeName.toLowerCase())e=e[s]||e;else{if((a=i[c])&&a[0]===T&&a[1]===u)return r[2]=a[2];if((i[c]=r)[2]=o(e,t,n))return!0}return!1}}function be(a){return 1<a.length?function(e,t,n){for(var i=a.length;i--;)if(!a[i](e,t,n))return!1;return!0}:a[0]}function we(e,t,n,i,a){for(var r,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,i,a)||(o.push(r),c&&t.push(s)));return o}function xe(e){for(var i,t,n,a=e.length,r=w.relative[e[0].type],o=r||w.relative[" "],s=r?1:0,l=ye(function(e){return e===i},o,!0),c=ye(function(e){return-1<q(i,e)},o,!0),d=[function(e,t,n){n=!r&&(n||t!==x)||((i=t).nodeType?l:c)(e,t,n);return i=null,n}];s<a;s++)if(t=w.relative[e[s].type])d=[ye(be(d),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[_]){for(n=++s;n<a&&!w.relative[e[n].type];n++);return function e(f,p,g,m,v,t){return m&&!m[_]&&(m=e(m)),v&&!v[_]&&(v=e(v,t)),ce(function(e,t,n,i){var a,r,o,s=[],l=[],c=t.length,d=e||function(e,t,n){for(var i=0,a=t.length;i<a;i++)se(e,t[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),u=!f||!e&&p?d:we(d,s,f,n,i),h=g?v||(e?f:c||m)?[]:t:u;if(g&&g(u,h,n,i),m)for(a=we(h,l),m(a,[],n,i),r=a.length;r--;)(o=a[r])&&(h[l[r]]=!(u[l[r]]=o));if(e){if(v||f){if(v){for(a=[],r=h.length;r--;)(o=h[r])&&a.push(u[r]=o);v(null,h=[],a,i)}for(r=h.length;r--;)(o=h[r])&&-1<(a=v?q(e,o):s[r])&&(e[a]=!(t[a]=o))}}else h=we(h===t?h.splice(c,h.length):h),v?v(null,t,h,i):O.apply(t,h)})}(1<s&&be(d),1<s&&ve(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(W,"$1"),t,s<n&&xe(e.slice(s,n)),n<a&&xe(e=e.slice(n)),n<a&&ve(e))}d.push(t)}return be(d)}return me.prototype=w.filters=w.pseudos,w.setFilters=new me,p=se.tokenize=function(e,t){var n,i,a,r,o,s,l,c=A[e+" "];if(c)return t?0:c.slice(0);for(o=e,s=[],l=w.preFilter;o;){for(r in n&&!(i=V.exec(o))||(i&&(o=o.slice(i[0].length)||o),s.push(a=[])),n=!1,(i=X.exec(o))&&(n=i.shift(),a.push({value:n,type:i[0].replace(W," ")}),o=o.slice(n.length)),w.filter)!(i=Q[r].exec(o))||l[r]&&!(i=l[r](i))||(n=i.shift(),a.push({value:n,type:r,matches:i}),o=o.slice(n.length));if(!n)break}return t?o.length:o?se.error(e):A(e,s).slice(0)},g=se.compile=function(e,t){var n,m,v,y,b,i,a=[],r=[],o=D[e+" "];if(!o){for(n=(t=t||p(e)).length;n--;)((o=xe(t[n]))[_]?a:r).push(o);(o=D(e,(y=0<(v=a).length,b=0<(m=r).length,i=function(e,t,n,i,a){var r,o,s,l=0,c="0",d=e&&[],u=[],h=x,f=e||b&&w.find.TAG("*",a),p=T+=null==h?1:Math.random()||.1,g=f.length;for(a&&(x=t==k||t||a);c!==g&&null!=(r=f[c]);c++){if(b&&r){for(o=0,t||r.ownerDocument==k||($(r),n=!C);s=m[o++];)if(s(r,t||k,n)){i.push(r);break}a&&(T=p)}y&&((r=!s&&r)&&l--,e&&d.push(r))}if(l+=c,y&&c!==l){for(o=0;s=v[o++];)s(d,u,t,n);if(e){if(0<l)for(;c--;)d[c]||u[c]||(u[c]=P.call(i));u=we(u)}O.apply(i,u),a&&!e&&0<u.length&&1<l+v.length&&se.uniqueSort(i)}return a&&(T=p,x=h),d},y?ce(i):i))).selector=e}return o},m=se.select=function(e,t,n,i){var a,r,o,s,l,c="function"==typeof e&&e,d=!i&&p(e=c.selector||e);if(n=n||[],1===d.length){if(2<(r=d[0]=d[0].slice(0)).length&&"ID"===(o=r[0]).type&&9===t.nodeType&&C&&w.relative[r[1].type]){if(!(t=(w.find.ID(o.matches[0].replace(ae,u),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(a=Q.needsContext.test(e)?0:r.length;a--&&(o=r[a],!w.relative[s=o.type]);)if((l=w.find[s])&&(i=l(o.matches[0].replace(ae,u),ie.test(r[0].type)&&ge(t.parentNode)||t))){if(r.splice(a,1),!(e=i.length&&ve(r)))return O.apply(n,i),n;break}}return(c||g(e,d))(i,t,!C,n,!t||ie.test(e)&&ge(t.parentNode)||t),n},f.sortStable=_.split("").sort(j).join("")===_,f.detectDuplicates=!!c,$(),f.sortDetached=de(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),de(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&de(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),de(function(e){return null==e.getAttribute("disabled")})||ue(B,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),se}($);C.find=f,C.expr=f.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=f.uniqueSort,C.text=f.getText,C.isXMLDoc=f.isXML,C.contains=f.contains,C.escapeSelector=f.escape;function x(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&C(e).is(n))break;i.push(e)}return i}function _(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var T=C.expr.match.needsContext;
vendor: 11,636 bytes, line 1
1function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,n,i){return g(n)?C.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?C.grep(e,function(e){return e===n!==i}):"string"!=typeof n?C.grep(e,function(e){return-1<a.call(n,e)!==i}):C.filter(n,e,i)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,i=this.length,a=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(a[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,a[t],n);return 1<i?C.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&T.test(e)?C(e):e||[],!1).length}});var D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){if(!e)return this;if(n=n||I,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),E.test(i[1])&&C.isPlainObject(t))for(var i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(e=k.getElementById(i[2]))&&(this[0]=e,this.length=1),this}).prototype=C.fn;var I=C(k),j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,a=this.length,r=[],o="string"!=typeof e&&C(e);if(!T.test(e))for(;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&C.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?a.call(C(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(i,a){C.fn[i]=function(e,t){var n=C.map(this,a,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=C.filter(t,n)),1<this.length&&(N[i]||C.uniqueSort(n),j.test(i)&&n.reverse()),this.pushStack(n)}});var L=/[^\x20\t\r\n\f]+/g;function O(e){return e}function M(e){throw e}function q(e,t,n,i){var a;try{e&&g(a=e.promise)?a.call(e).done(t).fail(n):e&&g(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},C.each(e.match(L)||[],function(e,t){n[t]=!0}),n):C.extend({},i);function a(){for(s=s||i.once,o=r=!0;c.length;d=-1)for(t=c.shift();++d<l.length;)!1===l[d].apply(t[0],t[1])&&i.stopOnFalse&&(d=l.length,t=!1);i.memory||(t=!1),r=!1,s&&(l=t?[]:"")}var r,t,o,s,l=[],c=[],d=-1,u={add:function(){return l&&(t&&!r&&(d=l.length-1,c.push(t)),function n(e){C.each(e,function(e,t){g(t)?i.unique&&u.has(t)||l.push(t):t&&t.length&&"string"!==p(t)&&n(t)})}(arguments),t&&!r&&a()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;-1<(n=C.inArray(t,l,n));)l.splice(n,1),n<=d&&d--}),this},has:function(e){return e?-1<C.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=c=[],t||r||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r||a()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},C.extend({Deferred:function(e){var r=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],a="pending",o={state:function(){return a},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var a=arguments;return C.Deferred(function(i){C.each(r,function(e,t){var n=g(a[t[4]])&&a[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&g(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),a=null}).promise()},then:function(t,n,i){var l=0;function c(a,r,o,s){return function(){function e(){var e,t;if(!(a<l)){if((e=o.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(t)?s?t.call(e,c(l,r,O,s),c(l,r,M,s)):(l++,t.call(e,c(l,r,O,s),c(l,r,M,s),c(l,r,O,r.notifyWith))):(o!==O&&(n=void 0,i=[e]),(s||r.resolveWith)(n,i))}}var n=this,i=arguments,t=s?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=a+1&&(o!==M&&(n=void 0,i=[e]),r.rejectWith(n,i))}};a?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),$.setTimeout(t))}}return C.Deferred(function(e){r[0][3].add(c(0,e,g(i)?i:O,e.notifyWith)),r[1][3].add(c(0,e,g(t)?t:O)),r[2][3].add(c(0,e,g(n)?n:M))}).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},s={};return C.each(r,function(e,t){var n=t[2],i=t[5];o[t[1]]=n.add,i&&n.add(function(){a=i},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){a[t]=this,r[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(a,r)}}var n=arguments.length,i=n,a=Array(i),r=s.call(arguments),o=C.Deferred();if(n<=1&&(q(e,o.done(t(i)).resolve,o.reject,!n),"pending"===o.state()||g(r[i]&&r[i].then)))return o.then();for(;i--;)q(r[i],t(i),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){$.console&&$.console.warn&&e&&B.test(e.name)&&$.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){$.setTimeout(function(){throw e})};var H=C.Deferred();function R(){k.removeEventListener("DOMContentLoaded",R),$.removeEventListener("load",R),C.ready()}C.fn.ready=function(e){return H.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||H.resolveWith(k,[C])}}),C.ready.then=H.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?$.setTimeout(C.ready):(k.addEventListener("DOMContentLoaded",R),$.addEventListener("load",R));function z(e,t,n,i,a,r,o){var s=0,l=e.length,c=null==n;if("object"===p(n))for(s in a=!0,n)z(e,t,s,n[s],!0,r,o);else if(void 0!==i&&(a=!0,g(i)||(o=!0),t=c?o?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(C(e),n)}):t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):r}var U=/^-ms-/,F=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function V(e){return e.replace(U,"ms-").replace(F,W)}function X(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function G(){this.expando=C.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[V(t)]=n;else for(i in t)a[V(i)]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in i?[t]:t.match(L)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!C.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var J=new G,Y=new G,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var i,a;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(a=n)||"false"!==a&&("null"===a?null:a===+a+""?+a:Q.test(a)?JSON.parse(a):a)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Y.hasData(e)||J.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),C.fn.extend({data:function(n,e){var t,i,a,r=this[0],o=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Y.set(this,n)}):z(this,function(e){var t;return r&&void 0===e?void 0!==(t=Y.get(r,n))||void 0!==(t=Z(r,n))?t:void 0:void this.each(function(){Y.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(a=Y.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(t=o.length;t--;)o[t]&&0===(i=o[t].name).indexOf("data-")&&(i=V(i.slice(5)),Z(r,i,a[i]));J.set(r,"hasDataAttrs",!0)}return a},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),C.extend({queue:function(e,t,n){var i;if(e)return i=J.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=J.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,a=n.shift(),r=C._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,function(){C.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:C.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===n?this:this.each(function(){var e=C.queue(this,t,n);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--a||r.resolveWith(o,[o])}var i,a=1,r=C.Deferred(),o=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;
vendor: 10,155 bytes, line 1
1)(i=J.get(o[s],e+"queueHooks"))&&i.empty&&(a++,i.empty.add(n));return n(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=k.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},re={composed:!0};ie.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});function oe(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")}function se(e,t,n,i){var a,r,o=20,s=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=s(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),d=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&te.exec(C.css(e,t));if(d&&d[3]!==c){for(c=c||d[3],d=+(l/=2)||1;o--;)C.style(e,t,d+c),(1-r)*(1-(r=s()/l||.5))<=0&&(o=0),d/=r;C.style(e,t,(d*=2)+c),n=n||[]}return n&&(d=+d||+l||0,a=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=a)),a}var le={};function ce(e,t){for(var n,i,a,r,o,s,l=[],c=0,d=e.length;c<d;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(l[c]=J.get(i,"display")||null,l[c]||(i.style.display="")),""===i.style.display&&oe(i)&&(l[c]=(s=r=a=void 0,r=i.ownerDocument,o=i.nodeName,(s=le[o])||(a=r.body.appendChild(r.createElement(o)),s=C.css(a,"display"),a.parentNode.removeChild(a),le[o]=s="none"===s?"block":s)))):"none"!==n&&(l[c]="none",J.set(i,"display",n)));for(c=0;c<d;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}C.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?C(this).show():C(this).hide()})}});var de=/^(?:checkbox|radio)$/i,ue=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,u=k.createDocumentFragment().appendChild(k.createElement("div"));(f=k.createElement("input")).setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),u.appendChild(f),b.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="<option></option>",b.option=!!u.lastChild;var fe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pe(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&S(e,t)?C.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,b.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function ve(e,t,n,i,a){for(var r,o,s,l,c,d=t.createDocumentFragment(),u=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===p(r))C.merge(u,r.nodeType?[r]:r);else if(me.test(r)){for(o=o||d.appendChild(t.createElement("div")),s=(ue.exec(r)||["",""])[1].toLowerCase(),s=fe[s]||fe._default,o.innerHTML=s[1]+C.htmlPrefilter(r)+s[2],c=s[0];c--;)o=o.lastChild;C.merge(u,o.childNodes),(o=d.firstChild).textContent=""}else u.push(t.createTextNode(r));for(d.textContent="",h=0;r=u[h++];)if(i&&-1<C.inArray(r,i))a&&a.push(r);else if(l=ae(r),o=pe(d.appendChild(r),"script"),l&&ge(o),n)for(c=0;r=o[c++];)he.test(r.type||"")&&n.push(r);return d}var ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function we(){return!1}function xe(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function $e(e,t,n,i,a,r){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)$e(e,s,n,i,t[s],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=we;else if(!a)return e;return 1===r&&(o=a,(a=function(e){return C().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),e.each(function(){C.event.add(this,t,a,i,n)})}function ke(e,a,r){r?(J.set(e,a,!1),C.event.add(e,a,{namespace:!1,handler:function(e){var t,n,i=J.get(this,a);if(1&e.isTrigger&&this[a]){if(i.length)(C.event.special[a]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),J.set(this,a,i),t=r(this,a),this[a](),i!==(n=J.get(this,a))||t?J.set(this,a,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else i.length&&(J.set(this,a,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,a)&&C.event.add(e,a,be)}C.event={global:{},add:function(t,e,n,i,a){var r,o,s,l,c,d,u,h,f,p=J.get(t);if(X(t))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&C.find.matchesSelector(ie,a),n.guid||(n.guid=C.guid++),(s=p.events)||(s=p.events=Object.create(null)),(o=p.handle)||(o=p.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)u=f=(c=ye.exec(e[l])||[])[1],h=(c[2]||"").split(".").sort(),u&&(d=C.event.special[u]||{},u=(a?d.delegateType:d.bindType)||u,d=C.event.special[u]||{},c=C.extend({type:u,origType:f,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&C.expr.match.needsContext.test(a),namespace:h.join(".")},r),(f=s[u])||((f=s[u]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,h,o)||t.addEventListener&&t.addEventListener(u,o)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),a?f.splice(f.delegateCount++,0,c):f.push(c),C.event.global[u]=!0)},remove:function(e,t,n,i,a){var r,o,s,l,c,d,u,h,f,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(f=g=(s=ye.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(u=C.event.special[f]||{},h=l[f=(i?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)d=h[r],!a&&g!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(h.splice(r,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));o&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,p,m.handle)||C.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[c],n,i,!0);C.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,a,r,o=new Array(arguments.length),s=C.event.fix(e),l=(J.get(this,"events")||Object.create(null))[s.type]||[],e=C.event.special[s.type]||{};for(o[0]=s,t=1;t<arguments.length;t++)o[t]=arguments[t];if(s.delegateTarget=this,!e.preDispatch||!1!==e.preDispatch.call(this,s)){for(r=C.event.handlers.call(this,s,l),t=0;(i=r[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==a.namespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(a=((C.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,o))&&!1===(s.result=a)&&(s.preventDefault(),s.stopPropagation()));return e.postDispatch&&e.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,a,r,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[a=(i=t[n]).selector+" "]&&(o[a]=i.needsContext?-1<C(a,this).index(c):C.find(a,this,null,[c]).length),o[a]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:g(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return de.test(e.type)&&e.click&&S(e,"input")&&ke(e,"click",be),!1},trigger:function(e){e=this||e;return de.test(e.type)&&e.click&&S(e,"input")&&ke(e,"click"),!0},_default:function(e){e=e.target;return de.test(e.type)&&e.click&&S(e,"input")&&J.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:we,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:we,isPropagationStopped:we,isImmediatePropagationStopped:we,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(t,e){C.event.special[t]={setup:function(){return ke(this,t,xe),!1},trigger:function(){return ke(this,t),!0},_default:function(e){return J.get(e.target,t)},delegateType:e}}
vendor: 9,807 bytes, line 1
1),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,a){C.event.special[e]={delegateType:a,bindType:a,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||C.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=a),t}}}),C.fn.extend({on:function(e,t,n,i){return $e(this,e,t,n,i)},one:function(e,t,n,i){return $e(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=we),this.each(function(){C.event.remove(this,e,n,t)});for(a in e)this.off(a,t,e[a]);return this}});var Ce=/<script|<style|<link/i,_e=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Se(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ee(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var n,i,a,r;if(1===t.nodeType){if(J.hasData(e)&&(r=J.get(e).events))for(a in J.remove(t,"handle events"),r)for(n=0,i=r[a].length;n<i;n++)C.event.add(t,a,r[a][n]);Y.hasData(e)&&(e=Y.access(e),e=C.extend({},e),Y.set(t,e))}}function Ie(n,i,a,r){i=v(i);var e,t,o,s,l,c,d=0,u=n.length,h=u-1,f=i[0],p=g(f);if(p||1<u&&"string"==typeof f&&!b.checkClone&&_e.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),Ie(t,i,a,r)});if(u&&(t=(e=ve(i,n[0].ownerDocument,!1,n,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(s=(o=C.map(pe(e,"script"),Ee)).length;d<u;d++)l=e,d!==h&&(l=C.clone(l,!0,!0),s&&C.merge(o,pe(l,"script"))),a.call(n[d],l,d);if(s)for(c=o[o.length-1].ownerDocument,C.map(o,Ae),d=0;d<s;d++)l=o[d],he.test(l.type||"")&&!J.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):w(l.textContent.replace(Te,""),l,c))}return n}function je(e,t,n){for(var i,a=t?C.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||C.cleanData(pe(i)),i.parentNode&&(n&&ae(i)&&ge(pe(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,a,r,o,s,l,c,d=e.cloneNode(!0),u=ae(e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=pe(d),i=0,a=(r=pe(e)).length;i<a;i++)s=r[i],"input"===(c=(l=o[i]).nodeName.toLowerCase())&&de.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(r=r||pe(e),o=o||pe(d),i=0,a=r.length;i<a;i++)De(r[i],o[i]);else De(e,d);return 0<(o=pe(d,"script")).length&&ge(o,!u&&pe(e,"script")),d},cleanData:function(e){for(var t,n,i,a=C.event.special,r=0;void 0!==(n=e[r]);r++)if(X(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)a[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),C.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return z(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Se(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Se(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!fe[(ue.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ie(this,arguments,function(e){var t=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(pe(this)),t&&t.replaceChild(e,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){C.fn[e]=function(e){for(var t,n=[],i=C(e),a=i.length-1,r=0;r<=a;r++)t=r===a?this:this.clone(!0),C(i[r])[o](t),l.apply(n,t.get());return this.pushStack(n)}});function Ne(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?$:t).getComputedStyle(e)}function Pe(e,t,n){var i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in n=n.call(e),t)e.style[i]=a[i];return n}var Le,Oe,Me,qe,Be,He,Re,ze,Ue=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Fe=/^--/,We=new RegExp(ne.join("|"),"i"),u="[\\x20\\t\\r\\n\\f]",Ve=new RegExp("^"+u+"+|((?:^|[^\\\\])(?:\\\\.)*)"+u+"+$","g");function Xe(e,t,n){var i,a=Fe.test(t),r=e.style;return(n=n||Ne(e))&&(i=n.getPropertyValue(t)||n[t],""!==(i=a?i.replace(Ve,"$1"):i)||ae(e)||(i=C.style(e,t)),!b.pixelBoxStyles()&&Ue.test(i)&&We.test(t)&&(a=r.width,e=r.minWidth,t=r.maxWidth,r.minWidth=r.maxWidth=r.width=i,i=n.width,r.width=a,r.minWidth=e,r.maxWidth=t)),void 0!==i?i+"":i}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Je(){var e;ze&&(Re.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",ze.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(Re).appendChild(ze),e=$.getComputedStyle(ze),Le="1%"!==e.top,He=12===Ye(e.marginLeft),ze.style.right="60%",qe=36===Ye(e.right),Oe=36===Ye(e.width),ze.style.position="absolute",Me=12===Ye(ze.offsetWidth/3),ie.removeChild(Re),ze=null)}function Ye(e){return Math.round(parseFloat(e))}Re=k.createElement("div"),(ze=k.createElement("div")).style&&(ze.style.backgroundClip="content-box",ze.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===ze.style.backgroundClip,C.extend(b,{boxSizingReliable:function(){return Je(),Oe},pixelBoxStyles:function(){return Je(),qe},pixelPosition:function(){return Je(),Le},reliableMarginLeft:function(){return Je(),He},scrollboxSize:function(){return Je(),Me},reliableTrDimensions:function(){var e,t,n;return null==Be&&(e=k.createElement("table"),t=k.createElement("tr"),n=k.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ie.appendChild(e).appendChild(t).appendChild(n),n=$.getComputedStyle(t),Be=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,ie.removeChild(e)),Be}}));var Qe=["Webkit","Moz","ms"],Ke=k.createElement("div").style,Ze={};function et(e){return C.cssProps[e]||Ze[e]||(e in Ke?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;n--;)if((e=Qe[n]+t)in Ke)return e}(e)||e)}var tt=/^(none|table(?!-c[ea]).+)/,nt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function rt(e,t,n,i,a,r){var o="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(e,n+ne[o],!0,a)),i?("content"===n&&(l-=C.css(e,"padding"+ne[o],!0,a)),"margin"!==n&&(l-=C.css(e,"border"+ne[o]+"Width",!0,a))):(l+=C.css(e,"padding"+ne[o],!0,a),"padding"!==n?l+=C.css(e,"border"+ne[o]+"Width",!0,a):s+=C.css(e,"border"+ne[o]+"Width",!0,a));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l}function ot(e,t,n){var i=Ne(e),a=(!b.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),r=a,o=Xe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(o)){if(!n)return o;o="auto"}return(!b.boxSizingReliable()&&a||!b.reliableTrDimensions()&&S(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===C.css(e,"boxSizing",!1,i),(r=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+rt(e,t,n||(a?"border":"content"),r,i,o)+"px"}function st(e,t,n,i,a){return new st.prototype.init(e,t,n,i,a)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Xe(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,o,s=V(t),l=Fe.test(t),c=e.style;if(l||(t=et(s)),o=C.cssHooks[t]||C.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,i))?a:c[t];"string"==(r=typeof n)&&(a=te.exec(n))&&a[1]&&(n=se(e,t,a),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=a&&a[3]||(C.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i)
vendor: 4,446 bytes, line 1
1)||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var a,r=V(t);return Fe.test(t)||(t=et(r)),"normal"===(a=void 0===(a=(r=C.cssHooks[t]||C.cssHooks[r])&&"get"in r?r.get(e,!0,n):a)?Xe(e,t,i):a)&&t in it&&(a=it[t]),""===n||n?(t=parseFloat(a),!0===n||isFinite(t)?t||0:a):a}}),C.each(["height","width"],function(e,s){C.cssHooks[s]={get:function(e,t,n){if(t)return!tt.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,s,n):Pe(e,nt,function(){return ot(e,s,n)})},set:function(e,t,n){var i,a=Ne(e),r=!b.scrollboxSize()&&"absolute"===a.position,o=(r||n)&&"border-box"===C.css(e,"boxSizing",!1,a),n=n?rt(e,s,n,o,a):0;return o&&r&&(n-=Math.ceil(e["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(a[s])-rt(e,s,"border",!1,a)-.5)),n&&(i=te.exec(t))&&"px"!==(i[3]||"px")&&(e.style[s]=t,t=C.css(e,s)),at(0,t,n)}}}),C.cssHooks.marginLeft=Ge(b.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-Pe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(a,r){C.cssHooks[a+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[a+ne[t]+r]=i[t]||i[t-2]||i[0];return n}},"margin"!==a&&(C.cssHooks[a+r].set=at)}),C.fn.extend({css:function(e,t){return z(this,function(e,t,n){var i,a,r={},o=0;if(Array.isArray(t)){for(i=Ne(e),a=t.length;o<a;o++)r[t[o]]=C.css(e,t[o],!1,i);return r}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=st).prototype={constructor:st,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return(e&&e.get?e:st.propHooks._default).get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:st.propHooks._default).set(this),this}}).init.prototype=st.prototype,(st.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=C.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[et(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=st.prototype.init,C.fx.step={};var lt,ct,dt=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ht(){ct&&(!1===k.hidden&&$.requestAnimationFrame?$.requestAnimationFrame(ht):$.setTimeout(ht,C.fx.interval),C.fx.tick())}function ft(){return $.setTimeout(function(){lt=void 0}),lt=Date.now()}function pt(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=ne[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function gt(e,t,n){for(var i,a=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),r=0,o=a.length;r<o;r++)if(i=a[r].call(n,t,e))return i}function mt(a,e,t){var n,r,i=0,o=mt.prefilters.length,s=C.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=lt||ft(),e=Math.max(0,c.startTime+c.duration-e),t=1-(e/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(t);return s.notifyWith(a,[c,t,e]),t<1&&i?e:(i||s.notifyWith(a,[c,1,0]),s.resolveWith(a,[c]),!1)},c=s.promise({elem:a,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:lt||ft(),duration:t.duration,tweens:[],createTween:function(e,t){e=C.Tween(a,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(e),e},stop:function(e){var t=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;t<n;t++)c.tweens[t].run(1);return e?(s.notifyWith(a,[c,1,0]),s.resolveWith(a,[c,e])):s.rejectWith(a,[c,e]),this}}),d=c.props;for(function(e,t){var n,i,a,r,o;for(n in e)if(a=t[i=V(n)],r=e[n],Array.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=C.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[
vendor: 21,299 bytes, line 1
1n]=r[n],t[n]=a);else t[i]=a}(d,c.opts.specialEasing);i<o;i++)if(n=mt.prefilters[i].call(c,a,d,c.opts))return g(n.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return C.map(d,gt,c),g(c.opts.start)&&c.opts.start.call(a,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:a,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(mt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,a=(e=g(e)?(t=e,["*"]):e.match(L)).length;i<a;i++)n=e[i],mt.tweeners[n]=mt.tweeners[n]||[],mt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,a,r,o,s,l,c,d="width"in t||"height"in t,u=this,h={},f=e.style,p=e.nodeType&&oe(e),g=J.get(e,"fxshow");for(i in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,u.always(function(){u.always(function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()})})),t)if(a=t[i],dt.test(a)){if(delete t[i],r=r||"toggle"===a,a===(p?"hide":"show")){if("show"!==a||!g||void 0===g[i])continue;p=!0}h[i]=g&&g[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=J.get(e,"display")),"none"===(d=C.css(e,"display"))&&(c?d=c:(ce([e],!0),c=e.style.display||c,d=C.css(e,"display"),ce([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===C.css(e,"float")&&(l||(u.done(function(){f.display=c}),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(p=g.hidden):g=J.access(e,"fxshow",{display:c}),r&&(g.hidden=!p),p&&ce([e],!0),u.done(function(){for(i in p||ce([e]),J.remove(e,"fxshow"),h)C.style(e,i,h[i])})),l=gt(p?g[i]:0,i,u),i in g||(g[i]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function a(){var e=mt(this,C.extend({},t),o);(r||J.get(this,"finish"))&&e.stop(!0)}var r=C.isEmptyObject(t),o=C.speed(e,n,i);return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(a,e,r){function o(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof a&&(r=e,e=a,a=void 0),e&&this.queue(a||"fx",[]),this.each(function(){var e=!0,t=null!=a&&a+"queueHooks",n=C.timers,i=J.get(this);if(t)i[t]&&i[t].stop&&o(i[t]);else for(t in i)i[t]&&i[t].stop&&ut.test(t)&&o(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=a&&n[t].queue!==a||(n[t].anim.stop(r),e=!1,n.splice(t,1));!e&&r||C.dequeue(this,a)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=J.get(this),n=t[o+"queue"],i=t[o+"queueHooks"],a=C.timers,r=n?n.length:0;for(t.finish=!0,C.queue(this,o,[]),i&&i.stop&&i.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===o&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,i){var a=C.fn[i];C.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?a.apply(this,arguments):this.animate(pt(i,!0),e,t,n)}}),C.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){C.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(lt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),lt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ct||(ct=!0,ht())},C.fx.stop=function(){ct=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,e){return i=C.fx&&C.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=$.setTimeout(e,i);t.stop=function(){$.clearTimeout(n)}})},ee=k.createElement("input"),u=k.createElement("select").appendChild(k.createElement("option")),ee.type="checkbox",b.checkOn=""!==ee.value,b.optSelected=u.selected,(ee=k.createElement("input")).value="t",ee.type="radio",b.radioValue="t"===ee.value;var vt,yt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return z(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,n):(1===r&&C.isXMLDoc(e)||(a=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(a&&"get"in a&&null!==(i=a.get(e,t)))&&null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!b.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,a=t&&t.match(L);if(a&&1===e.nodeType)for(;n=a[i++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var o=yt[t]||C.find.attr;yt[t]=function(e,t,n){var i,a,r=t.toLowerCase();return n||(a=yt[r],yt[r]=i,i=null!=o(e,t,n)?r:null,yt[r]=a),i}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function xt(e){return(e.match(L)||[]).join(" ")}function $t(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}C.fn.extend({prop:function(e,t){return z(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,a=C.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(C.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,i,a,r,o;return g(t)?this.each(function(e){C(this).addClass(t.call(this,e,$t(this)))}):(e=kt(t)).length?this.each(function(){if(i=$t(this),n=1===this.nodeType&&" "+xt(i)+" "){for(r=0;r<e.length;r++)a=e[r],n.indexOf(" "+a+" ")<0&&(n+=a+" ");o=xt(n),i!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,n,i,a,r,o;return g(t)?this.each(function(e){C(this).removeClass(t.call(this,e,$t(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(i=$t(this),n=1===this.nodeType&&" "+xt(i)+" "){for(r=0;r<e.length;r++)for(a=e[r];-1<n.indexOf(" "+a+" ");)n=n.replace(" "+a+" "," ");o=xt(n),i!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,i,a,r,o=typeof t,s="string"==o||Array.isArray(t);return g(t)?this.each(function(e){C(this).toggleClass(t.call(this,e,$t(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(r=C(this),a=0;a<e.length;a++)i=e[a],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==t&&"boolean"!=o||((i=$t(this))&&J.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",!i&&!1!==t&&J.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+xt($t(t))+" ").indexOf(i))return!0;return!1}});var Ct=/\r/g;C.fn.extend({val:function(t){var n,e,i,a=this[0];return arguments.length?(i=g(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):a?(n=C.valHooks[a.type]||C.valHooks[a.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(a,"value"))?e:"string"==typeof(e=a.value)?e.replace(Ct,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:xt(C.text(e))}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,a="select-one"===e.type,r=a?null:[],o=a?i+1:n.length,s=i<0?o:a?i:0;s<o;s++)if(((t=n[s]).selected||s===i)&&!t.disabled&&(!t.parentNode.disabled||!S(t.parentNode,"optgroup"))){if(t=C(t).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var n,i,a=e.options,r=C.makeArray(t),o=a.length;o--;)((i=a[o]).selected=-1<C.inArray(C.valHooks.option.get(i),r))&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},b.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),b.focusin="onfocusin"in $;function _t(e){e.stopPropagation()}var Tt=/^(?:focusinfocus|focusoutblur)$/;C.extend(C.event,{trigger:function(e,t,n,i){var a,r,o,s,l,c,d,u=[n||k],h=y.call(e,"type")?e.type:e,f=y.call(e,"namespace")?e.namespace.split("."):[],p=d=r=n=n||k;if(3!==n.nodeType&&8!==n.nodeType&&!Tt.test(h+C.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),s=h.indexOf(":")<0&&"on"+h,(e=e[C.expando]?e:new C.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),c=C.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!m(n)){for(o=c.delegateType||h,Tt.test(o+h)||(p=p.parentNode);p;p=p.parentNode)u.push(p),r=p;r===(n.ownerDocument||k)&&u.push(r.defaultView||r.parentWindow||$)}for(a=0;(p=u[a++])&&!e.isPropagationStopped();)d=p,e.type=1<a?o:c.bindType||h,(l=(J.get(p,"events")||Object.create(null))[e.type]&&J.get(p,"handle"))&&l.apply(p,t),(l=s&&p[s])&&l.apply&&X(p)&&(e.result=l.apply(p,t),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!X(n)||s&&g(n[h])&&!m(n)&&((r=n[s])&&(n[s]=null),C.event.triggered=h,e.isPropagationStopped()&&d.addEventListener(h,_t),n[h](),e.isPropagationStopped()&&d.removeEventListener(h,_t),C.event.triggered=void 0,r&&(n[s]=r)),e.result}},simulate:function(e,t,n){e=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(e,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),b.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){function a(e){C.event.simulate(i,e.target,C.event.fix(e))}C.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=J.access(e,i);t||e.addEventListener(n,a,!0),J.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=J.access(e,i)-1;t?J.access(e,i,t):(e.removeEventListener(n,a,!0),J.remove(e,i))}}});var St=$.location,Et={guid:Date.now()},At=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new $.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/\[\]$/,It=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;C.param=function(e,t){function n(e,t){t=g(t)?t():t,a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var i,a=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,a,r){if(Array.isArray(e))C.each(e,function(e,t){a||Dt.test(i)?r(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,a,r)});else if(a||"object"!==p(e))r(i,e);else for(var t in e)n(i+"["+t+"]",e[t],a,r)}(i,e[i],t,n);return a.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Nt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}});var Pt=/%20/g,Lt=/#.*$/,Ot=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ht={},Rt={},zt="*/".concat("*"),Ut=k.createElement("a");function Ft(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,a=e.toLowerCase().match(L)||[];if(g(t))for(;n=a[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function Wt(t,i,a,r){var o={},s=t===Rt;function l(e){var n;return o[e]=!0,C.each(t[e]||[],function(e,t){t=t(i,a,r);return"string"!=typeof t||s||o[t]?s?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!o["*"]&&l("*")}function Vt(e,t){var n,i,a=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i=i||{})[n]=t[n]);return i&&C.extend(!0,e,i),e}Ut.href=St.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,C.ajaxSettings),t):Vt(C.ajaxSettings,e)},ajaxPrefilter:Ft(Ht),ajaxTransport:Ft(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,d,n,u,h,f,i,a,p=C.ajaxSetup({},t=t||{}),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?C(g):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=p.statusCode||{},r={},o={},s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Mt.exec(d);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=o[e.toLowerCase()]=o[e.toLowerCase()]||e,r[e]=t),this},overrideMimeType:function(e){return null==h&&(p.mimeType=e),this},statusCode:function(e){if(e)if(h)w.always(e[w.status]);else for(var t in e)b[t]=[b[t],e[t]];return this},abort:function(e){e=e||s;return l&&l.abort(e),x(0,e),this}};if(v.promise(w),p.url=((e||p.url||St.href)+"").replace(Bt,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){a=k.createElement("a");try{a.href=p.url,a.href=a.href,p.crossDomain=Ut.protocol+"//"+Ut.host!=a.protocol+"//"+a.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Wt(Ht,p,t,w),h)return w;for(i in(f=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!qt.test(p.type),c=p.url.replace(Lt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(a=p.url.slice(c.length),p.data&&(p.processData||"string"==typeof p.data)&&(c+=(At.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(c=c.replace(Ot,"$1"),a=(At.test(c)?"&":"?")+"_="+Et.guid+++a),p.url=c+a),p.ifModified&&(C.lastModified[c]&&w.setRequestHeader("If-Modified-Since",C.lastModified[c]),C.etag[c]&&w.setRequestHeader("If-None-Match",C.etag[c])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+zt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(g,w,p)||h))return w.abort();if(s="abort",y.add(p.complete),w.done(p.success),w.fail(p.error),l=Wt(Rt,p,t,w)){if(w.readyState=1,f&&m.trigger("ajaxSend",[w,p]),h)return w;p.async&&0<p.timeout&&(u=$.setTimeout(function(){w.abort("timeout")},p.timeout));try{h=!1,l.send(r,x)}catch(e){if(h)throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,n,i){var a,r,o,s=t;h||(h=!0,u&&$.clearTimeout(u),l=void 0,d=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(o=function(e,t,n){for(var i,a,r,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}o=o||a}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(p,w,n)),!i&&-1<C.inArray("script",p.dataTypes)&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),o=function(e,t,n,i){var a,r,o,s,l,c={},d=e.dataTypes.slice();if(d[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(a in c)if((s=a.split(" "))[1]===r&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(r=s[0],d.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(p,o,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(C.lastModified[c]=n),(n=w.getResponseHeader("etag"))&&(C.etag[c]=n)),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=o.state,a=o.data,i=!(r=o.error))):(r=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",i?v.resolveWith(g,[a,s,w]):v.rejectWith(g,[w,s,r]),w.statusCode(b),b=void 0,f&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?a:r]),y.fireWith(g,[w,s]),f&&(m.trigger("ajaxComplete",[w,p]),--C.active||C.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,a){C[a]=function(e,t,n,i){return g(t)&&(i=i||n,n=t,t=void 0),C.ajax(C.extend({url:e,type:a,dataType:i,data:t,success:n},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){return this[0]&&(g(e)&&(e=e.call(this[0])),e=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return g(n)?this.each(function(e){C(this).wrapInner(n.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=g(t);return this.each(function(e){C(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new $.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Gt=C.ajaxSettings.xhr();b.cors=!!Gt&&"withCredentials"in Gt,b.ajax=Gt=!!Gt,C.ajaxTransport(function(a){var r,o;
vendor: 7,191 bytes, line 1
1if(b.cors||Gt&&!a.crossDomain)return{send:function(e,t){var n,i=a.xhr();if(i.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(n in a.xhrFields)i[n]=a.xhrFields[n];for(n in a.mimeType&&i.overrideMimeType&&i.overrideMimeType(a.mimeType),a.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);r=function(e){return function(){r&&(r=o=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Xt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),o=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=o:i.onreadystatechange=function(){4===i.readyState&&$.setTimeout(function(){r&&o()})},r=r("abort");try{i.send(a.hasContent&&a.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(n){var i,a;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=C("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",a=function(e){i.remove(),a=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(i[0])},abort:function(){a&&a()}}});var Jt=[],Yt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||C.expando+"_"+Et.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,a,r,o=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Yt,"$1"+i):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||C.error(i+" was not called"),r[0]},e.dataTypes[0]="json",a=$[i],$[i]=function(){r=arguments},n.always(function(){void 0===a?C($).removeProp(i):$[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(i)),r&&g(a)&&a(r[0]),r=a=void 0}),"script"}),b.createHTMLDocument=((ee=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ee.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((i=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(i)):t=k),i=!n&&[],(n=E.exec(e))?[t.createElement(n[1])]:(n=ve([e],t,i),i&&i.length&&C(i).remove(),C.merge([],n.childNodes)));var i},C.fn.load=function(e,t,n){var i,a,r,o=this,s=e.indexOf(" ");return-1<s&&(i=xt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),0<o.length&&C.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){r=arguments,o.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var i,a,r,o,s=C.css(e,"position"),l=C(e),c={};"static"===s&&(e.style.position="relative"),r=l.offset(),i=C.css(e,"top"),o=C.css(e,"left"),o=("absolute"===s||"fixed"===s)&&-1<(i+o).indexOf("auto")?(a=(s=l.position()).top,s.left):(a=parseFloat(i)||0,parseFloat(o)||0),null!=(t=g(t)?t.call(e,n,C.extend({},r)):t).top&&(c.top=t.top-r.top+a),null!=t.left&&(c.left=t.left-r.left+o),"using"in t?t.using.call(e,c):l.css(c)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],a={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((a=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),a.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-C.css(i,"marginTop",!0),left:t.left-a.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||ie})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,a){var r="pageYOffset"===a;C.fn[t]=function(e){return z(this,function(e,t,n){var i;return m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n?i?i[a]:e[t]:void(i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Ge(b.pixelPosition,function(e,t){if(t)return t=Xe(e,n),Ue.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(o,s){C.each({padding:"inner"+o,content:s,"":"outer"+o},function(i,r){C.fn[r]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),a=i||(!0===e||!0===t?"margin":"border");return z(this,function(e,t,n){var i;return m(e)?0===r.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?C.css(e,t,a):C.style(e,t,n,a)},s,n?e:void 0,n)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){C.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Qt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),g(e))return n=s.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=S,C.isFunction=g,C.isWindow=m,C.camel
1Case=V,C.type=p,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Qt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Kt=$.jQuery,Zt=$.$;return C.noConflict=function(e){return $.$===C&&($.$=Zt),e&&$.jQuery===C&&($.jQuery=Kt),C},void 0===e&&($.jQuery=$.$=C),C}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){function t(){if(h.length){var e=0,t=c.map(h,function(e){var t=e.data.selector,e=e.$element;return t?e.find(t):e});for(d=d||(l=!((l={height:p.innerHeight,width:p.innerWidth}).height||!(s=f.compatMode)&&c.support.boxModel)?{height:(s="CSS1Compat"===s?g:f.body).clientHeight,width:s.clientWidth}:l),u=u||{top:p.pageYOffset||g.scrollTop||f.body.scrollTop,left:p.pageXOffset||g.scrollLeft||f.body.scrollLeft};e<h.length;e++)if(c.contains(g,t[e][0])){var n=c(t[e]),i=n[0].offsetHeight,a=n[0].offsetWidth,r=n.offset(),o=n.data("inview");if(!u||!d)return;r.top+i>u.top&&r.top<u.top+d.height&&r.left+a>u.left&&r.left<u.left+d.width?o||n.data("inview",!0).trigger("inview",[!0]):o&&n.data("inview",!1).trigger("inview",[!1])}}var s,l}var d,u,i,h=[],f=document,p=window,g=f.documentElement;c.event.special.inview={add:function(e){h.push({data:e,$element:c(this),element:this}),!i&&h.length&&(i=setInterval(t,250))},remove:function(e){for(var t=0;t<h.length;t++){var n=h[t];if(n.element===this&&n.data.guid===e.guid){h.splice(t,1);break}}h.length||(clearInterval(i),i=null)}},c(p).bind("scroll resize scrollstop",function(){d=u=null}),!g.addEventListener&&g.attachEvent&&g.attachEvent("onfocusin",function(){u=null})}),function(e){var t=function(i,h,r){"use strict";var f,p;if(function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in p=i.lazySizesConfig||i.lazysizesConfig||{},t)e in p||(p[e]=t[e])}(),!h||!h.getElementsByClassName)return{init:function(){},cfg:p,noSupport:!0};function d(e,t){le(e,t)||e.setAttribute("class",(e[Z]("class")||"").trim()+" "+t)}function u(e,t){(t=le(e,t))&&e.setAttribute("class",(e[Z]("class")||"").replace(t," "))}function g(e,t){var n;!Q&&(n=i.picturefill||p.pf)?(t&&t.src&&!e[Z]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)}function e(n,e){return e?function(){fe(n)}:function(){var e=this,t=arguments;fe(function(){n.apply(e,t)})}}function t(e){function t(){var e=r.now()-i;e<99?te(t,99-e):(ie||a)(a)}var n,i,a=function(){n=null,e()};return function(){i=r.now(),n=n||te(t,99)}}function n(){!n.i&&h.getElementsByClassName&&(n.i=!0,ge._(),pe._())}var a,o,s,m,v,y,b,l,w,x,$,k,C,_,T,c,S,E,A,D,I,j,N,P,L,O,M,q,B,H,R,z,U,F,W,V,X,G,J,Y=h.documentElement,Q=i.HTMLPictureElement,K="addEventListener",Z="getAttribute",ee=i[K].bind(i),te=i.setTimeout,ne=i.requestAnimationFrame||te,ie=i.requestIdleCallback,ae=/^picture$/i,re=["load","error","lazyincluded","_lazyloaded"],oe={},se=Array.prototype.forEach,le=function(e,t){return oe[t]||(oe[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),oe[t].test(e[Z]("class")||"")&&oe[t]},ce=function(t,n,e){var i=e?K:"removeEventListener";e&&ce(t,n),re.forEach(function(e){t[i](e,n)})},de=function(e,t,n,i,a){var r=h.createEvent("Event");return(n=n||{}).instance=f,r.initEvent(t,!i,!a),r.detail=n,e.dispatchEvent(r),r},ue=function(e,t){return(getComputedStyle(e,null)||{})[t]},he=function(e,t,n){for(n=n||e.offsetWidth;n<p.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},fe=(G=[],J=X=[],_e._lsFlush=Ce,_e),pe=(j=/^img$/i,N=/^iframe$/i,P="onscroll"in i&&!/(gle|ing)bot/.test(navigator.userAgent),M=-1,q=function(e){return(T=null==T?"hidden"==ue(h.body,"visibility"):T)||!("hidden"==ue(e.parentNode,"visibility")&&"hidden"==ue(e,"visibility"))},c=ye,E=O=L=0,A=p.throttleDelay,D=p.ricTimeout,I=ie&&49<D?function(){ie(be,{timeout:D}),D!==p.ricTimeout&&(D=p.ricTimeout)}:e(function(){te(be)},!0),H=e(we),R=function(e){H({target:e.target})},z=e(function(t,e,n,i,a){var r,o,s,l,c;(s=de(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?d(t,p.autosizesClass):t.setAttribute("sizes",i)),r=t[Z](p.srcsetAttr),n=t[Z](p.srcAttr),a&&(o=(c=t.parentNode)&&ae.test(c.nodeName||"")),l=e.firesLoad||"src"in t&&(r||n||o),s={target:t},d(t,p.loadingClass),l&&(clearTimeout(y),y=te(ve,2500),ce(t,R,!0)),o&&se.call(c.getElementsByTagName("source"),xe),r?t.setAttribute("srcset",r):n&&!o&&
1(N.test(t.nodeName)?(i=n,0==(c=(e=t).getAttribute("data-load-mode")||p.iframeLoadMode)?e.contentWindow.location.replace(i):1==c&&(e.src=i)):t.src=n),a&&(r||o)&&g(t,{src:n})),t._lazyRace&&delete t._lazyRace,u(t,p.lazyClass),fe(function(){var e=t.complete&&1<t.naturalWidth;l&&!e||(e&&d(t,p.fastLoadedClass),we(s),t._lazyCache=!0,te(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&O--},!0)}),F=t(function(){p.loadMode=3,B()}),{_:function(){l=r.now(),f.elements=h.getElementsByClassName(p.lazyClass),m=h.getElementsByClassName(p.lazyClass+" "+p.preloadClass),ee("scroll",B,!0),ee("resize",B,!0),ee("pageshow",function(e){var t;!e.persisted||(t=h.querySelectorAll("."+p.loadingClass)).length&&t.forEach&&ne(function(){t.forEach(function(e){e.complete&&U(e)})})}),i.MutationObserver?new MutationObserver(B).observe(Y,{childList:!0,subtree:!0,attributes:!0}):(Y[K]("DOMNodeInserted",B,!0),Y[K]("DOMAttrModified",B,!0),setInterval(B,999)),ee("hashchange",B,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){h[K](e,B,!0)}),/d$|^c/.test(h.readyState)?ke():(ee("load",ke),h[K]("DOMContentLoaded",B),te(ke,2e4)),f.elements.length?(ye(),fe._lsFlush()):B()},checkElems:B=function(e){var t;(e=!0===e)&&(D=33),S||(S=!0,(t=A-(r.now()-E))<0&&(t=0),e||t<9?I():te(I,t))},unveil:U=function(e){var t,n,i,a;e._lazyRace||(!(a="auto"==(i=(n=j.test(e.nodeName))&&(e[Z](p.sizesAttr)||e[Z]("sizes"))))&&v||!n||!e[Z]("src")&&!e.srcset||e.complete||le(e,p.errorClass)||!le(e,p.lazyClass))&&(t=de(e,"lazyunveilread").detail,a&&ge.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,O++,z(e,t,a,i,n))},_aLSL:$e}),ge=(o=e(function(e,t,n,i){var a,r,o;if(e._lazysizesWidth=i,e.setAttribute("sizes",i+="px"),ae.test(t.nodeName||""))for(r=0,o=(a=t.getElementsByTagName("source")).length;r<o;r++)a[r].setAttribute("sizes",i);n.detail.dataAttr||g(e,n.detail)}),{_:function(){a=h.getElementsByClassName(p.autosizesClass),ee("resize",s)},checkElems:s=t(function(){var e,t=a.length;if(t)for(e=0;e<t;e++)me(a[e])}),updateElem:me});function me(e,t,n){var i=e.parentNode;i&&(n=he(e,i,n),(t=de(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=t.detail.width)&&n!==e._lazysizesWidth&&o(e,i,t,n))}function ve(e){O--,e&&!(O<0)&&e.target||(O=0)}function ye(){var e,t,n,i,a,r,o,s,l,c,d,u=f.elements;if((b=p.loadMode)&&O<8&&(e=u.length)){for(t=0,M++;t<e;t++)if(u[t]&&!u[t]._lazyRace)if(!P||f.prematureUnveil&&f.prematureUnveil(u[t]))U(u[t]);else if((o=u[t][Z]("data-expand"))&&(a=+o)||(a=L),l||(l=!p.expand||p.expand<1?500<Y.clientHeight&&500<Y.clientWidth?500:370:p.expand,c=(f._defEx=l)*p.expFactor,d=p.hFac,T=null,L<c&&O<1&&2<M&&2<b&&!h.hidden?(L=c,M=0):L=1<b&&1<M&&O<6?l:0),s!==a&&(w=innerWidth+a*d,x=innerHeight+a,r=-1*a,s=a),c=u[t].getBoundingClientRect(),(_=c.bottom)>=r&&($=c.top)<=x&&(C=c.right)>=r*d&&(k=c.left)<=w&&(_||C||k||$)&&(p.loadHidden||q(u[t]))&&(v&&O<3&&!o&&(b<3||M<4)||function(e,t){var n,i=e,a=q(e);for($-=t,_+=t,k-=t,C+=t;a&&(i=i.offsetParent)&&i!=h.body&&i!=Y;)(a=0<(ue(i,"opacity")||1))&&"visible"!=ue(i,"overflow")&&(n=i.getBoundingClientRect(),a=C>n.left&&k<n.right&&_>n.top-1&&$<n.bottom+1);return a}(u[t],a))){if(U(u[t]),i=!0,9<O)break}else!i&&v&&!n&&O<4&&M<4&&2<b&&(m[0]||p.preloadAfterLoad)&&(m[0]||!o&&(_||C||k||$||"auto"!=u[t][Z](p.sizesAttr)))&&(n=m[0]||u[t]);n&&!i&&U(n)}}function be(){S=!1,E=r.now(),c()}function we(e){var t=e.target;t._lazyCache?delete t._lazyCache:(ve(e),d(t,p.loadedClass),u(t,p.loadingClass),ce(t,R),de(t,"lazyloaded"))}function xe(e){var t,n=e[Z](p.srcsetAttr);(t=p.customMedia[e[Z]("data-media")||e[Z]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}
1function $e(){3==p.loadMode&&(p.loadMode=2),F()}function ke(){v||(r.now()-l<999?te(ke,999):(v=!0,p.loadMode=3,B(),ee("scroll",$e,!0)))}function Ce(){var e=J;for(J=X.length?G:X,V=!(W=!0);e.length;)e.shift()();W=!1}function _e(e,t){W&&!t?e.apply(this,arguments):(J.push(e),V||(V=!0,(h.hidden?te:ne)(Ce)))}return te(function(){p.init&&n()}),f={cfg:p,autoSizer:ge,loader:pe,init:n,uP:g,aC:d,rC:u,hC:le,fire:de,gW:he,rAF:fe}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),window.addEventListener("message",function(e){var t,n=e.origin||e.originalEvent.origin;n!=cmsConfig.domainDesktop&&n!=cmsConfig.domainMobile&&n!=cmsConfig.domainApi||e.data&&(n=(t=e.data).socialType,t.message&&0<t.message.length?alert(t.message):t.userData&&t.userData.profile&&(t=(e=t.userData).profile,void 0!==ME&&(ME.setUserInfo(e),ME.displayUser(e),ME.displayUserComment(t),ME.checkSocialConnect(n)),0<=window.location.pathname.toLowerCase().indexOf("/user/login.html")&&window.location.reload(!1),closeDialog()))},!1),window.addEventListener("storage",function(e){"cms_user_info"===e.key&&window.location.reload()});var ME=new Account;ME.init(),function(){const a=window.cmsConfig.domainApi+"/api/users/get/recommendations",r="user_recommendations",h={mode:"insert",insert:"after",anchorIndex:1,count:3,section:"cms_recommendation_in_mostread"};function o(e,t={}){"function"==typeof gtag&&gtag("event",e,{event_category:"recommendation",...t})}async function i(){var e,t=function(){try{var e=JSON.parse(localStorage.getItem(r));return e?3e5<Date.now()-e.time?(localStorage.removeItem(r),null):e.value:null}catch{return null}}();if(t)return t;try{const i=await fetch(a,{credentials:"include"});if(!i.ok)return null;var n=(await i.json())?.data?.contents;return Array.isArray(n)&&n.length?(e=n,localStorage.setItem(r,JSON.stringify({time:Date.now(),value:e})),n):null}catch(e){return null}}function f(e){var t=`
2            data-id="${e.content_id}" 
3            data-title="${encodeURIComponent(e.title)}"
4            data-url="${e.url}"
5        `;if(h.anchorIndex&&0!==h.anchorIndex)return`<article class="story recommendation" ${t}> 
6            <h2 class="story__heading" data-tracking="${e.content_id}">
7              <a class="cms-link" href="${e.url}" title="${e.title}">
8                ${e.title}
9              </a>
10            </h2>
11          </article>`;let n=e.avatar_url;return e.avatars?.W300_R3X2?.length&&(n=e.avatars.W300_R3X2),`<article class="story story--focus recommendation" ${t}>
12            <figure class="story__thumb">
13              <a class="cms-link" href="${e.url}" title="${e.title}">
14                <img src="${n}" alt="${e.title}">
15              </a>
16            </figure>    
17            <h2 class="story__heading" data-tracking="${e.content_id}">
18              <a class="cms-link" href="${e.url}" title="${e.title}">
19                ${e.title}
20              </a>
21            </h2>
22          </article>`}function p(){const t=new Set;return document.querySelectorAll(".popular article.story[data-id]").forEach(e=>{e=e.getAttribute("data-id");e&&t.add(String(e))}),t}async function s(){const e=document.querySelector(".popular .box-content");var t,n;e&&(t=e.querySelectorAll("article.story")).length&&(n=await i())&&n.length&&(function(t){for(let e=t.length-1;0<e;e--){var n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}}(n),"replace"===h.mode?(e.setAttribute("data-source","cms-recommendation"),function(t,e){const n=p();var i=e.filter(e=>e?.content_id&&!n.has(String(e.content_id)));if(i.length){var a=Math.min(h.count,t.length,i.length);for(let e=0;e<a;e++)t[e].outerHTML=f(i[e])}}((e,t),n)):function(e,t,n){const i=p(),a=n.filter(e=>e?.content_id&&!i.has(String(e.content_id)));if(a.length){const s=a.slice(0,h.count);if(s.length){n=s.map(f).join("");const l=document.createElement("div");l.innerHTML=n;const c=Array.from(l.children),d=t[Math.max(0,Math.min(h.anchorIndex,t.length-1))];if(d){let t=0;if(c.forEach(e=>{"before"===h.insert?d.parentNode.insertBefore(e,d):d.parentNode.insertBefore(e,d.nextSibling),t++}),0<t){var r=e.querySelectorAll("article.story"),o=r.length;for(let e=o-1;e>=o-t;e--){const u=r[e];u&&!u.classList.contains("recommendation")&&u.remove()}}}}}}
22(e,t,n),function(e){const t=e.querySelectorAll("article.story");t.forEach((e,t)=>{e.dataset.position=t+1})}(e),function(e){const t=e.querySelectorAll(".recommendation");t.forEach(e=>{e.dataset.trackedDisplay||(e.dataset.trackedDisplay="1",o("recommendation_display",{content_id:e.dataset.id,title:decodeURIComponent(e.dataset.title||""),url:e.dataset.url,position:parseInt(e.dataset.position||0),section:h.section}))})}(e),function(e){const t=e.querySelectorAll(".recommendation"),i=new Set,n=new IntersectionObserver((e,n)=>{e.forEach(e=>{var t;!e.isIntersecting||(e=(t=e.target).dataset.id)&&!i.has(e)&&(i.add(e),o("recommendation_impression",{content_id:e,title:decodeURIComponent(t.dataset.title||""),url:t.dataset.url,position:parseInt(t.dataset.position||0),section:h.section}),n.unobserve(t))})},{threshold:.5});t.forEach(e=>n.observe(e))}(e))}function l(){var e=document.querySelector(".popular");if(e)if(void 0!==ME){var t=ME?.getUserId();if(t&&!(parseInt(t)<=0)){document.addEventListener("click",function(e){const t=e.target.closest(".recommendation a.cms-link");!t||(e=t.closest("article.recommendation"))&&o("recommendation_click",{content_id:e.dataset.id,title:decodeURIComponent(e.dataset.title||""),url:e.dataset.url,position:parseInt(e.dataset.position||0),section:h.section})});const n=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(s(),t.disconnect())})},{rootMargin:"300px"});n.observe(e)}}else setTimeout(l,100)}"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)}();var windowHeight=$(window).height(),windowWidth=$(window).width(),containerWidth=$(".container").width(),duringAjax=!1,counterPage=1;$('.story__thumb img[data-src$=".gif"],.story__thumb img[src$=".gif"]').parents(".story").addClass("story--gif"),$(".story").each(function(){$(this).find(".story__thumb").length<=0&&$(this).addClass("no-photo")});var $template_list='<article class="story{itemClass}" data-id="{objectId}">   <figure class="story__thumb">{duration}{imageUrl}</figure>   {meta_ext}   <h3 class="story__heading" {tracking}><a class="cms-link" href="{link}" title="{title}">{iconHtml}{title}</a></h3>   {meta}</article>';function renderTemplate(e,t,n,i,a,r,o,s,l,c,d,u,h,f,p){var g=$template_list;return c&&(n&&"epaper"==n&&c.W270_R2X3&&0<c.W270_R2X3.length?o=c.W270_R2X3:n&&"short-video"==n&&c.W270_R9X16&&0<c.W270_R9X16.length?o=c.W270_R9X16:n&&"media"==n&&c.W370_R3X2&&0<c.W370_R3X2.length?o=c.W370_R3X2:n&&("video"==n||"podcast"==n)&&c.W270_R3X2&&0<c.W270_R3X2.length?o=c.W270_R3X2:c.W260_R3X2&&0<c.W260_R3X2.length&&(o=c.W260_R3X2)),g=!o||o.length<=0?g.replace(/{itemClass}/g," no-photo"):g.replace(/{imageUrl}/g,'<a class="cms-link" href="{link}" title="{title}"><img src="'+o+'" alt="{title}"></a>'),"topics"==t?g=(g=(g=g.replace(/{tracking}/g,"")).replace(/{meta}/g,"")).replace(/{sapo}/g,'<div class="story__summary">'+s+"</div>"):(g=g.replace(/{tracking}/g,'data-tracking="'+i+'"'),"podcast"==n||"media"==n?(g=g.replace(/{duration}/g,p),d&&0<d.length&&(g=g.replace(/{iconHtml}/g,d))):g="epaper"==n?g.replace(/{meta}/g,""):"short-video"==n?(g=g.replace(/{itemClass}/g,"short-video-item")).replace(/{meta_ext}/g,0<parseInt(l)?'<time class="time" data-time="'+l+'">'+formatTime(l,{friendly:!1})+"</time>":""):(d&&0<d.length&&(g=g.replace(/{iconHtml}/g,d)),d="",d+=0<parseInt(l)?'<time class="time" data-time="'+l+'">'+formatTime(l,{friendly:!1})+"</time>":"",s&&0<s.length&&(d+='<div class="story__summary">'+s+"</div>"),g.replace(/{meta}/g,d))),g=(g=(g=(g=(g=(g=(g=(g=(g=(g=(g=(g=g.replace(/{objectId}/g,i)).replace(/{link}/g,r)).replace(/{title}/g,a)).replace(/{imageUrl}/g,"")).replace(/{itemClass}/g,"")).replace(/{iconHtml}/g,"")).replace(/{sapo}/g,"")).replace(/{zone}/g,"")).replace(/{meta}/g,"")).replace(/{meta_ext}/g,"")).replace(/{tracking}/g,"")).replace(/{duration}/g,"")}function setupNextPage(y){var e,b,w,x,t,n,i,a,r,o,s,k,l,C,c,d,u,h,f,p,g,_,m;0!==y.length&&(300<(e=y.attr("data-page"))||(b=y.attr("data-layout"),w=y.attr("data-zone"),x=y.attr("data-type"),t=y.attr("data-bydate"),n=y.attr("data-region"),i=y.attr("data-topic"),a=y.attr("data-attr"),r=y.attr("data-size"),o=y.attr("data-displaytype"),s=y.attr("data-contenttype"),k=y.attr("data-action"),l=y.attr("data-subsite")?y.attr("data-subsite"):getUrlParameter("subsite"),(void 0===(C=y.attr("data-phrase")?y.attr("data-phrase"):getUrlParameter("p"))||C.length<=0)&&(C=getUrlParameter("keyword")),c=y.attr("data-time")?y.attr("data-time"):getUrlParameter("stm"),d=y.attr("data-zone")?y.attr("data-zone"):getUrlParameter("sz"),u=y.attr("data-mode")?y.attr("data-mode"):getUrlParameter("sm"),h=y.attr("data-type")?y.attr("data-type"):getUrlParameter("st"),f=y.attr("data-from")?y.attr("data-from"):getUrlParameter("from_date"),p=y.attr("data-to")?y.attr("data-to"):getUrlParameter("to_date"),g=y.attr("data-sort")?y.attr("data-sort"):getUrlParameter("order"),m=y.attr("data-month")?y.attr("data-month"):getUrlParameter("month"),_=parseInt(e)+1,m=window.cmsConfig.domainApi+"/api/morenews-"+x+"-"+(void 0!==w&&0<w.length?w:0)+"-"+_+".html?phrase="+(void 0!==C&&0<C.length?C:"")+("undefined"!=typeof currTagId&&0<currTagId.length?"&tag_id="+currTagId:"")+(void 0!==n&&0<n.length?"&region_id="+n:"")+(void 0!==i&&0<i.length?"&topic_id="+i:"")+(void 0!==t&&0<t.length?"&bydate="+t:"")+(void 0!==a&&0<a.length?"&attr="+
22a:"")+(void 0!==o&&0<o.length?"&display_type="+o:"")+(void 0!==s&&0<s.length?"&content_type="+s:"")+(void 0!==r&&0<r.length?"&page_size="+r:"")+(void 0!==l&&0<l.length?"&subsite="+l:"")+(void 0!==c&&0<c.length?"&stm="+c:"")+(void 0!==d&&0<d.length?"&sz="+d:"")+(void 0!==h&&0<h.length?"&st="+h:"")+(void 0!==u&&0<u.length?"&sm="+u:"")+(void 0!==g&&0<g.length?"&order="+g:"")+(void 0!==f&&0<f.length?"&from_date="+f:"")+(void 0!==p&&0<p.length?"&to_date="+p:"")+(void 0!==m&&0<m.length?"&month="+m:""),$.get(m,function(e){if(0<$(e).length&&e.data&&(e.data.contents||e.data.topics||e.data.authors||e.data.epapers)){0<$(".total-result").length&&e.data.total&&$(".total-result").html(e.data.total+(1e3<=e.data.total?"+":""));var t,n=".story",i=$(".content-list");0<i.find(n).length&&k&&"filter"!=k&&(0<(t=i.find(n).last()).length&&(g=t.offset(),$("html, body").stop().animate({scrollTop:g.top},500)));var a=k&&"filter"==k?[]:i.find("article[data-id]").map(function(){return parseInt($(this).attr("data-id"))}).get(),r="";if(e.data.authors)for(var o=0;o<e.data.authors.length;o++){var s=e.data.authors[o];-1<a.indexOf(s.author_id)||(r+=renderTemplate(o,x,b,s.author_id,s.title,s.url,s.avatar_url,s.description,s.date,s.avatars||[],"","","","",""))}else if(e.data.topics)for(o=0;o<e.data.topics.length;o++){var l=e.data.topics[o];-1<a.indexOf(l.topic_id)||(r+=renderTemplate(o,x,b,l.topic_id,l.title,l.url,l.TitleImage||"",l.description,l.date,l.avatars||[],"","","","",""))}else for(o=0;o<e.data.contents.length;o++){var c,d,u,h,f=e.data.contents[o];-1<a.indexOf(f.content_id)||(d=c="",f.zone&&(c=f.zone.url,d=f.zone.name),u=f.content_icon&&0<f.content_icon.length?f.content_icon:"",h=f.duration&&0<f.duration.length?'<span class="timer">'+f.duration+"</span>":"",r+=renderTemplate(o,x,b,f.content_id,f.title,f.url,f.avatar_url,f.description,f.date,f.avatars||[],u,c,d,"",h))}var p,g=$("<div>").html(r);if(k&&"filter"==k?(i.find(n).remove(),y.removeAttr("data-action"),(p=$(y).parent(".content-list"))&&0<p.length?y.before(g.html()):i.append(g.html())):(g.find("article, div").each(function(){(0<i.find('article[data-id="'+$(this).attr("data-id")+'"]').length||0<i.find('div[data-id="'+$(this).attr("data-id")+'"]').length)&&$(this).remove()}),0<i.find(n).length?i.find(n).last().after(g.html()):(p=$(y).parent(".content-list"))&&0<p.length?y.before(g.html()):i.append(g.html())),y.attr("data-page",_),e.data.load_more?y.show():(y.attr("data-page",301),y.hide()),$('.story__thumb img[data-src$=".gif"],.story__thumb img[src$=".gif"]').parents(".story").addClass("story--gif"),$(".story").each(function(){$(this).find(".story__thumb").length<=0&&$(this).addClass("no-photo")}),shortenText(),"undefined"!=typeof CMSTracking){var m=void 0!==w&&0<w.length?parseInt(w):0;m<=0&&"undefined"!=typeof currTagId&&0<currTagId.length&&(m=parseInt(currTagId));const g=0<$(".breadcrumb").length||0<$(".breadcrumbs").length?$(".breadcrumb, .breadcrumbs").first().find("a").last().attr("href"):"",v=CMSTracking.getInstance();v.resetPageViewTracked().trackPageView({objectId:m,objectType:v.getObjectType(x),pushGA:!0,pathName:g}),v.initImpressionTracking()}counterPage++,duringAjax=!1}else{m=void 0!==C&&0<C.length?C:"",g=window.location.pathname.toLowerCase();m&&/(\/tu-khoa|\/tag)(\/|\.html)/i.test(g)&&!/-tag\d+/i.test(g)?window.location=(0<=g.indexOf("/tag")?"/search/?q=":"/tim-kiem/?q=")+encodeURIComponent(m):(0<$(".total-result").length&&$(".total-result").html("0"),y.attr("data-page",301),y.hide())}})))}function buildSticky(){0<$("#sidebar-sticky-1").length&&$("#sidebar-sticky-1").parents(".sidebar-right").length?stickyBox(".content-col",".sidebar-right","#sidebar-top-1","#sidebar-sticky-1",60,!0):0<$("#sidebar-sticky-1").length&&$("#sidebar-sticky-1").parents(".sidebar-left").length&&stickyBox(".content-col",".sidebar-left","#sidebar-top-1","#sidebar-sticky-1",60,!0),0<$("#sidebar-sticky-2").length&&$("#sidebar-sticky-2").parents(".sidebar-right").length?stickyBox(".content-col",".sidebar-right","#sidebar-top-2","#sidebar-sticky-2",60,!0):0<$("#sidebar-sticky-2").length&&$("#sidebar-sticky-2").parents(".sidebar-right-1").length&&stickyBox(".content-col-1",".sidebar-right-1","#sidebar-top-2","#sidebar-sticky-2",60,!0),0<$("#sidebar-sticky-3").length&&$("#sidebar-sticky-3").parents(".sidebar-right-3").length?stickyBox(".content-col-3",".sidebar-right-3","#sidebar-top-3","#sidebar-sticky-3",60,!0):0<$("#sidebar-sticky-3").length&&$("#sidebar-sticky-3").parents(".sidebar-right-2").length&&stickyBox(".content-col-2",".sidebar-right-2","#sidebar-top-3","#sidebar-sticky-3",60,!0),0<$(".social-bar").length&&0<$(".article__body").length&&stickyBox(".article__body",".s
22ocial-bar","",".social-bar .social",60)}function swapHighlight(e){if(!(e.length<=0||$(".home-highlight-1").length<=0||$(".home-highlight-2").length<=0))try{var t,n=e,i=e.map(function(e){return e.content_id}).sort(),a=sessionStorage.getItem("swap_highlight");if(a&&0<a.length?(t=JSON.parse(a).map(function(e){return e.content_id}).sort(),(e=JSON.stringify(i)==JSON.stringify(t)?JSON.parse(a):e).push(e.shift())):e.push(e.shift()),sessionStorage.setItem("swap_highlight",JSON.stringify(e)),!e||e.length<2)return;var r="",o=e[0],s=e.slice(1,e.length);o&&(o=n.find(e=>e.content_id===o.content_id),r='<article class="story">',r+=o.avatar_url&&0<o.avatar_url.length?'<figure class="story__thumb"><a href="'+o.url+'" title="'+o.title+'"> <img src="'+o.avatar_url+'"'+(o.avatar_url_2x&&o.avatar_url_2x.length?' srcset="'+o.avatar_url+" 1x,"+o.avatar_url_2x+' 2x"':"")+' alt="'+o.title+'"> </a></figure>':"",r+='<h2 class="story__heading"><a class="cms-link" href="'+o.url+'" title="'+o.title+'">'+(o.icon&&0<o.icon.length?o.icon:"")+o.title+"</a> </h2>",r+=o.description&&0<o.description.length?'<div class="story__summary">'+o.description+"</div>":"",r+="</article>",$(".home-highlight-1").html(r)),r="",s&&0<s.length&&(s.forEach(t=>{t=n.find(e=>e.content_id===t.content_id),r+='<article class="story">',r+=t.avatar_thumb_url&&0<t.avatar_thumb_url.length?'<figure class="story__thumb"><a href="'+t.url+'" title="'+t.title+'"> <img src="'+t.avatar_thumb_url+'"'+(t.avatar_url&&t.avatar_url.length?' srcset="'+t.avatar_thumb_url+" 1x,"+t.avatar_url+' 2x"':"")+' alt="'+t.title+'"> </a></figure>':"",r+='<h2 class="story__heading"><a class="cms-link" href="'+t.url+'" title="'+t.title+'">'+(t.icon&&0<t.icon.length?t.icon:"")+t.title+"</a> </h2>",r+="</article>"}),$(".home-highlight-2").html(r)),$('div[data-source="home-highlight"]').removeClass("hidden")}catch(e){$('div[data-source="home-highlight"]').removeClass("hidden")}}window.addEventListener("load",function(){var e,t;$(".float-ads").length<=0||(windowWidth<1280?$(".float-ads").remove():(e=window.location.pathname.replace(/#.*|\?.*/gi,"").replace(window.cmsConfig.domainDesktop,"").replace(window.cmsConfig.domainMobile,""),$("#floating-left")&&/-post\d+\.html/i.test(e)&&$(".float-ads").css("right","52.5%"),t=$(".site-header .sticky").height()+20,$(window).scroll(function(){var e=$
22(".site-header .sticky");0<e.length&&e.hasClass("fixed")?$(".float-ads").removeClass("hidden").css("bottom","auto").css("top",e.height()+20):$(".float-ads").removeClass("hidden").css("bottom","auto").css("top",t)})))}),$(document).ready(function(){var n,e,t;if(buildSticky(),sessionStorage&&("1"===sessionStorage.getItem("highlightRefresh")&&"undefined"!=typeof highlightItems&&0<highlightItems.length?swapHighlight(highlightItems):sessionStorage.setItem("highlightRefresh",1),$('div[data-source="home-highlight"]').removeClass("hidden")),$(".menu-btn").on("click",function(){$(".menu .dropdown-menu").fadeToggle("fast"),$(".menu").toggleClass("active"),$("body").toggleClass("backdrop")}),0<$(".navigation").length&&(n=$(".navigation").offset().top,$(window).scroll(function(){var e=$(".navigation"),t=$(window).scrollTop();n<=t?(e.addClass("fixed"),$(".site-body").css("margin-top","47px")):(e.removeClass("fixed"),$(".site-body").css("margin-top","0"))})),0<$(".site-header-tttu").length&&$(window).scroll(function(){300<$(window).scrollTop()?$(".site-header-tttu").addClass("fixed"):$(".site-header-tttu").removeClass("fixed")}),0<$(".back-to-top").length&&(e=$(".back-to-top"),$(window).scroll(function(){300<$(window).scrollTop()?e.addClass("show"):e.removeClass("show")}),e.on("click",function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},800)})),$(".search-btn").on("click",function(){$(".search .dropdown-menu").fadeToggle("fast"),$(".search").toggleClass("active"),$("body").toggleClass("backdrop")}),0<$("#ddlProvince").length&&$(".search-province").click(function(e){e.preventDefault(),window.location.href=$("#ddlProvince").val()}),void 0!==window.cmsConfig.shortVideoId&&0<window.cmsConfig.shortVideoId.length&&0<$('.story[data-zone-id="'+window.cmsConfig.shortVideoId+'"]').length&&$('.story[data-zone-id="'+window.cmsConfig.shortVideoId+'"]').each(function(){$(this).hasClass("short-video-item")||$(this).addClass("short-video-item")}),0<$(".control__loadmore").length&&$(".control__loadmore").click(function(e){setupNextPage($(this))}),0<$("#location-select").length&&($(".search-filter .submit").click(function(e){e.preventDefault(),$(".search-filter .menu").fadeToggle("fast")}),t=!1,$("#location-select").change(function(){t||(t=!0,$.get(window.cmsConfig.domainApi+"/api/regions/get/by-parent?parent_id="+this.value,function(e){if(0<$(e).length&&e.data&&e.data.regions){for(var t='<option value="#">Tất cả</option>',n=0;n<e.data.regions.length;n++){var i=e.data.regions[n];t+='<option value="'+i.url+'">'+i.name+"</option>"}$("#region-select").html(t)}else $("#region-select").hide()}),t=!1)}),$("#location-select").change()),0<$(".video-viewport[data-url]").length){var i=$(".video-viewport[data-id]").attr("data-id");if(i&&0<parseInt(i)&&"undefined"!=typeof CMSTracking){const a=CMSTracking.getInstance();a.resetPageViewTracked().trackPageView({objectId:i,forceTrack:!0,pushGA:!0,pathName:$(".video-viewport[data-url]").attr("data-url")})}}}),document.addEventListener("DOMContentLoaded",()=>{if("undefined"!=typeof CMSSearch){const t=new CMSSearch({allowGoogleSearch:!0,utils:{compoundUnicode:e=>e.normalize("NFC")}});t.init()}const e=document.querySelector(".cms-chatbot");e&&("function"==typeof AIChatbot&&4===window.cmsConfig.pageType&&537===window.cmsConfig.objectId?new AIChatbot({root:e,hooks:{beforeSend(e){var t=(new Date).toLocaleDateString("vi-VN");return e.sendQuery=e.sendQuery.replace(/\bhôm nay\b/gi,"ngày "+t),e}}}):e.remove()),"undefined"!=typeof CMSBox&&(CMSBox.registerTemplate("shortVideo",{openNewTab:!0,articleClass:"story short-video-item",showTitleIcon:!0,beforeTitleHtml:(e,t,n)=>t?.name?`<a class="cate" href="${t?.link||"#"}" target="_blank" rel="nofollow">${t.name}</a>`:""}),new CMSBox({container:"#zone-short-video",api:"https://baohatinh.vn/tv/home/channel/1482",limit:4,template:"shortVideo",normalizeType:"articles",mapData:e=>({...e,title:e.Title||e.title,link:e.LinktoMe2||e.link,thumb:e.ThumbnailVertical||e.thumb,icon:'<i class="ic-video"></i>'})}).init())});var domainAPI=window.cmsConfig.domainApi,params="all_exclude_fields=updated_at&weathers_exclude_fields=next_hours,air_quality&currencies_bank_id=84&weathers_province_id=230442&weathers_table_name=weathers&weathers_column_name=district&weathers_parent_id=230442";function infoWidget(){$.ajax({url:domainAPI+"/api/utility/get/data?types=golds,currencies,weathers,weathers_attributes"+(0<params.length?"&"+params:""),type:"GET",xhrFields:{withCredentials:!0},success:function(e){if(!(e.err<0)&&e.data){var t,n=e.data;if(0<$("#weather-box").length&&n.weathers){e=n.weathers.filter(e=>0!==e.district_id);if($("#weather-box").html(""),n.weathers_attributes){for(var i in $("#weather-box").append('<input id="hidWeatherJson" type="hidden" value="'+JSON.stringify(e).replaceAll('"',"&quot;")+'">'),$("#weather-box").append('<select id="weather-location" aria-label="Địa phương"></select><div class="w-today"><img class="ic-weather" id="today-ic" alt="today"/>
22<span id="today-date" class="day"></span><span id="today-temp" class="temp"></span><span id="today-temp-2"></span></div><div class="w-list" id="day-entries"></div>'),$("#weather-location").append('<option value="230877" selected="selected">TP. Hà Tĩnh</option>'),n.weathers_attributes){var a=n.weathers_attributes[i];230877!==a.ref_id&&$("#weather-location").append("<option value='"+a.ref_id+"'>"+a.value+"</option>")}loadWeather(230877),$("#weather-location").on("change",function(){loadWeather(getInputValue("#weather-location"))})}}if(n.golds||n.currencies){if(0<$("#gold-box").length&&n.golds){for(i in $("#gold-box").html(""),$("#gold-box").append('<div class="subhead"><a href="/gia-vang.html" class="title" title="Giá vàng">Giá vàng</a></div><div class="subbody">'),t=sortWithPriority(t=n.golds.filter(e=>90===e.product_id||97===e.product_id||106===e.product_id||89===e.product_id).filter(e=>"HN"===e.region||"MB"===e.region),"company",["JSC","DOJI","PNJ","BTMC"])){var r=t[i];$("#gold-box .subbody").append('<div class="market-info"> <p class="market-title">'+r.company+'</p><div class="market-values"><p class="value">Mua: <strong>'+formatFloat(r.buy)+'</strong></p></div><div class="market-values"><p class="value">Bán: <strong>'+formatFloat(r.sell)+"</strong></p></div></div>")}$("#gold-box").append("</div>")}if(0<$("#exchange-box").length&&n.currencies){for(var i in $("#exchange-box").html(""),$("#exchange-box").append('<div class="subhead"><a href="/ty-gia.html" class="title" title="Tỷ giá">Tỷ giá</a></div><div class="subbody">'),n.currencies)((r=n.currencies[i]).currency&&"USD"===r.currency||"EUR"===r.currency)&&$("#exchange-box .subbody").append('<div class="market-info"> <p class="market-title">'+r.currency+'</p><div class="market-values"><p class="value">Mua: <strong>'+formatFloat(r.buy_cash)+'</strong></p></div><div class="market-values"><p class="value">Bán: <strong>'+formatFloat(r.sell)+"</strong></p></div></div>");$("#exchange-box").append("</div>")}}else $(".box-tool").hide()}}})}function loadWeather(e){if(!e||$("#day-entries").length<=0)$("#weather-box").hide();else{var t=JSON.parse($("#hidWeatherJson").val());for(const n in t)if(t[n].district_id===parseInt(e)){var i=t[n];if($("#today-ic").attr("src",i.status_icon_url),$("#today-temp").html(i.temperature+"C"),$("#today-temp-2").html(i.temperature_min+"C - "+i.temperature_max+"C"),$("#today-date").html(i.next_days[0].day),1<i.next_days.length&&0<$("#day-entries").length){$("#day-entries").html("");for(let n=1;n<i.next_days.length;n++){const a=i.next_days[n];if(a){let e="",t="";const r=a.temperature.split("/");r&&1<r.length&&(e=r[0].trim(),t=r[1].trim()),$("#day-entries").append('<div class="item"><span class="day">'+a.day+'</span><span class="temp">'+(e?e+"C":"")+(t?" - "+t+"C":"")+'</span><img src="'+a.status_icon_url+'" alt="next day '+n+'"/></div>')}}}break}}}function initPowerCut(){$("#powerRegion").length&&($("#powerRegion").html(""),$("#powerRegion").append('<option value="">-- Chọn Khu vực --</option>'),$.ajax({url:domainAPI+"/api/utility/get/data?method=attributes&types=hatinhpowers&table_name=HaTinhOutageSchedules&column_name=Agency",type:"GET",success:function(e){if(!(e.err<0)&&e.data){var t,n,i=e.data;for(const r in i){var a=i[r];$("#powerRegion").append("<option value='"+a.ref_id+"'>"+a.value+"</option>")}(getUrlParameter("region")||getUrlParameter("from_date"))&&(t=getUrlParameter("region"),n=getUrlParameter("from_date"),e=getUrlParameter("to_date"),t&&$("#powerRegion").val(t),n&&$("#from-date").val(n),e&&$("#to-date").val(e),loadPowerCut())}}})),$(".sidebar-power-search").click(function(e){e.preventDefault();var t=0<$("#powerRegion").length?$("#powerRegion").val():"",n=0<$("#from-date").length?$("#from-date").val():"",e=0<$("#to-date").length?$("#to-date").val():"";if(t.length<=0)return alert("Mời bạn chọn Khu vực để tra cứu.");window.location.href=window.cmsConfig.domainDesktop+"/lich-cat-dien.html?region="+t+"&from_date="+n+"&to_date="+e}),$(".btn-power-search").click(function(e){e.preventDefault(),window.history&&window.history.replaceState&&window.history.replaceState({},document.title,window.location.pathname),loadPowerCut()})}function loadPowerCut(){if(!($(".power-result").length<=0)){const i={};var e=getInputValue("#powerRegion")||getUrlParameter("region");e&&(i.hatinhpowers_agency_id=e);e=getInputValue("#from-date")||getUrlParameter("from_date");e&&(n=formatDateInput(e,"yyyy-mm-dd"))&&(i.hatinhpowers_from_date=n);var t,n=getInputValue("#to-date")||getUrlParameter("to_date");n&&(t=formatDateInput(n,"yyyy-mm-dd"))&&(i.hatinhpowers_to_date=t),showLoader(),$.ajax({url:domainAPI+"/api/utility/get/data?types=hatinhpowers"+(0<Object.keys(i).length?"&"+$.param(i):""),type:"GET",success:function(e){$(".power-result").html("");let t="";if(e.err<0||!e.data||e.data.length<=0)t='<div class="power-noti">\n    <span>THÔNG BÁO!</span> Trong khoảng thời gian này quý khách chưa có lịch ngừng giảm cung cấp điện.\n </div>';else{t='<table class="power-table"><thead><tr><th width="15%">Điện lực</th><th>Thời Gian Từ</th><th>Thời Gian Đến</th><th>Khu Vực</th><th width="10%">Lý Do</th></tr></thead><tbody>';var n=e.data;for(const a in n){var i=n[a];t+=" <tr>\n   <td>"+i.agency+"</td>\n   <td>"+formatTime(i.from_time/1e3,{friendly:!1})+"</td>\n   <td>"+formatTime(i.from_time/1e3,{friendly:!1})+"</td>\n   <td>"+i.area+"</td>\n   <td>"+i.reason+"</td>\n </tr>"}t+="</tbody></table>"}$(".power-result").html(t),hideLoader()}})}}function initGold(){$("#goldCompany").length&&($("#goldCompany").html(""),$("#goldCompany").append(' <option value="">Tìm mã vàng nhanh</option>'),$.ajax({url:domainAPI+"/api/utility/get/data?types=golds&method=attributes&table_name=golds&column_name=company",type:"GET",success:function(e){if(!(e.error_code<0)&&e.data){var t,n=e.data;for(const i in n)$("#goldCompany").append("<option value='"+n[i].ref_id+"'>"+n[i].value+"</option>");(getUrlParameter("company_id")||getUrlParameter("from_date"))&&(t=getUrlParameter("company_id"),e=getUrlParameter("from_date"),t&&$("#goldCompany").val(t),e&&$("#from-date").val(e),loadGolds())}}})),$("#goldCompany,#from-date").on("change",function(){loadGolds()})}function loadGolds(){if(!($("#gold-result").length<=0)){const n={};var e=getInputValue("#goldCompany")||getUrlParameter("company_id");e&&(n.company_id=e);var t,e=getInputValue("#from-date")||getUrlParameter("from_date");e&&(t=formatDateInput(e,"yyyy-mm-dd"))&&(n.from_date=t),showLoader(),$.ajax({url:domainAPI+"/api/utilities/get/data?type=golds"+(0<Object.keys(n).length?"&"+$.param(n):""),type:"GET",success:function(a){if
22($("#gold-result").html(""),a.error_code<0||!a.data||!a.data.golds||a.data.golds.length<=0)hideLoader();else{let e="",t="",n="",i="";if(a.data.golds){var r=a.data.golds;0<parseInt(r[0].updated_at)&&(i=formatTime(r[0].updated_at/1e3,{friendly:!1,format:"HH:mm dd/MM/yyyy"})),0<parseInt(r[0].to)&&(t=formatTime(r[0].to/1e3,{friendly:!1,format:"dd/MM/yyyy"})),0<parseInt(r[0].from)&&(n=formatTime(r[0].from/1e3,{friendly:!1,format:"dd/MM/yyyy"})),e='<table class="data-table"> <tbody>';for(const s in r){var o=r[s];e+=" <tr>\n   <td><h2>"+o.name+" - "+o.product+"</h2></td>\n   <td><span>"+(0<parseInt(o.today_buy)?o.today_buy:"")+"<span>"+(o.buy_trend?'<i class="'+o.buy_trend+'"></i>':"")+"</td>\n   <td><span>"+(0<parseInt(o.today_sell)?o.today_sell:"")+"<span>"+(o.sell_trend?'<i class="'+o.sell_trend+'"></i>':"")+"</td>\n   <td>"+(0<parseInt(o.yesterday_buy)?o.yesterday_buy:"")+"</td>\n   <td>"+(0<parseInt(o.yesterday_sell)?o.yesterday_sell:"")+"</td>\n </tr>"}e+="</tbody></table>"}$("#gold-result").html(e),t&&0<t.length&&$("#u-to-date").length&&$("#u-to-date").html("Ngày: "+t),n&&0<n.length&&$("#u-from-date").length&&$("#u-from-date").html("Ngày: "+n),i&&0<i.length&&$(".updated-at").length&&$(".updated-at").html("Giá vàng được cập nhật lúc: "+i),hideLoader()}}})}}function initCurrency(){$("#currency,#from-date").on("change",function(){loadCurrencies()})}function loadCurrencies(){if(!($("#exchange-result").length<=0)){const n={};var e=getInputValue("#currency")||getUrlParameter("currency");e&&(n.currency=e);var t,e=getInputValue("#from-date")||getUrlParameter("from_date");e&&(t=formatDateInput(e,"yyyy-mm-dd"))&&(n.from_date=t),showLoader(),$.ajax({url:domainAPI+"/api/utilities/get/data?type=exchange"+(0<Object.keys(n).length?"&"+$.param(n):""),type:"GET",success:function(a){if($("#exchange-result").html(""),a.error_code<0||!a.data||!a.data.currencies||a.data.currencies.length<=0)hideLoader();else{let e="",t="",n="",i="";if(a.data.currencies){var r=a.data.currencies;0<parseInt(r[0].updated_at)&&(i=formatTime(r[0].updated_at/1e3,{friendly:!1,format:"HH:mm dd/MM/yyyy"})),0<parseInt(r[0].to)&&(t=formatTime(r[0].to/1e3,{friendly:!1,format:"dd/MM/yyyy"})),0<parseInt(r[0].from)&&(n=formatTime(r[0].from/1e3,{friendly:!1,format:"dd/MM/yyyy"})),e='<table class="data-table"> <tbody>';for(const s in r){var o=r[s];e+=" <tr>\n   <td><h2>"+o.name+"</h2></td>\n   <td><span>"+(0<parseInt(o.today_buy_cash)?o.today_buy_cash:0<parseInt(o.today_buy_transfer)?o.today_buy_transfer:"")+"<span>"+(o.buy_trend?'<i class="'+o.buy_trend+'"></i>':"")+"</td>\n   <td><span>"+(0<parseInt(o.today_sell)?o.today_sell:"")+"<span>"+(o.sell_trend?'<i class="'+o.sell_trend+'"></i>':"")+"</td>\n   <td>"+(0<parseInt(o.yesterday_buy_cash)?o.yesterday_buy_cash:0<parseInt(o.yesterday_buy_transfer)?o.yesterday_buy_transfer:"")+"</td>\n   <td>"+(0<parseInt(o.yesterday_sell)?o.yesterday_sell:"")+"</td>\n </tr>"}e+="</tbody></table>"}$("#exchange-result").html(e),t&&0<t.length&&$("#u-to-date").length&&$("#u-to-date").html("Ngày: "+t),n&&0<n.length&&$("#u-from-date").length&&$("#u-from-date").html("Ngày: "+n),i&&0<i.length&&$(".updated-at").length&&$(".updated-at").html("Tỷ giá được cập nhật lúc: "+i),hideLoader()}}})}}function initCalendar(){$("#monthSelect").on("change",function(){var e=parseInt($("#monthSelect").val()),t=parseInt($("#yearSelect").val());$(".box-heading .title").html("Lịch Âm tháng "+$("#monthSelect").val()+" năm "+$("#yearSelect").val()+", Lịch Vạn Niên "+$("#monthSelect").val()+"/"+$("#yearSelect").val()),$(".box-heading .sub-title").html(""),loadCalendar("",e,t)}),$("#yearSelect").on("change",function(){var e=parseInt($("#monthSelect").val()),t=parseInt($("#yearSelect").val());$("#titleh1").html("Lịch Âm tháng "+$("#monthSelect").val()+" năm "+$("#yearSelect").val()+", Lịch Vạn Niên "+$("#monthSelect").val()+"/"+$("#yearSelect").val()),$(".box-heading .sub-title").html(""),loadCalendar("",e,t)}),$(".box-today > table").each(function(){const e=$(this);e.find("tr:first").addClass("bg-color");const t=e.find("tr");let a=0;t.each(function(){let t=0;$(this).find("td").each(function(){var e=parseInt($(this).attr("colspan"))||1;t+=e}),t>a&&(a=t)}),t.each(function(){const e=$(this).find("td");let t=0;if(e.each(function(){var e=parseInt($(this).attr("colspan"))||1;t+=e}),t<a&&!e.is("[colspan]")){const i=e.first();var n=a-t+1;i.attr("colspan",n)}})})}function loadCalendar(e,t,n){showLoader(),$.ajax({url:domainAPI+"/api/utilities/get/data?type=calendar",type:"GET",data:{day:e,month:t,year:n},success:function(e){if(e.error_code<0||!e.data)return $("#calendar-result").html("Không có dữ liệu"),void hideLoader();$("#calendar-result").html(e.data),window.history.replaceState({}
22,document.title,window.cmsConfig.domainDesktop+"/lich-van-nien/thang-"+t+"-"+n+".html"),hideLoader()},error:function(){$("#calendar-result").html("Không có dữ liệu"),hideLoader()}})}function initLottery(){$("#regionSelect").length&&loadRegions().then(()=>{var e=getUrlParameter("region_id"),t=getUrlParameter("province_id");e&&$("#regionSelect").val(e),t&&$("#regionSelect").val(t),"undefined"!=typeof lottery_id&&lottery_id&&$("#regionSelect").val(lottery_id)}),$("#datePicker").length&&("undefined"!=typeof lottery_date&&lottery_date&&$("#datePicker").val(lottery_date),$("#datePicker").on("change",function(){window.location.href=buildLotteryUrl()})),$(".lottery-view").length&&$(".lottery-view").click(function(e){e.preventDefault(),window.location.href=buildLotteryUrl()}),initLotteryOptions()}function loadRegions(){return new Promise((n,i)=>{$("#regionSelect").html('<option value="">Chọn giải</option>'),$.ajax({url:domainAPI+"/api/utility/get/data?types=lotteries&method=attributes&table_name=lotteries&column_name=region,province",success:function(e){try{if(0<=e.error_code&&e.data){if(e.data&&Array.isArray(e.data)){const r=["MB","MT","MN"],t=e.data.sort((e,t)=>{e=r.indexOf(e.value),t=r.indexOf(t.value);return-1!==e&&-1!==t?e-t:-1!==e?-1:-1!==t?1:0});t.forEach(e=>{var t,n,i,a;e.ref_id&&e.value&&0<e.value.length&&(n=(t=r.includes(e.value))?"region":"province",i="MB"===e.value?"Miền Bắc":"MT"===e.value?"Miền Trung":"MN"===e.value?"Miền Nam":e.value,a=permalink(i).toLowerCase(),a=t?a+"-r"+e.ref_id:a+"-p"+e.ref_id,$("#regionSelect").append(`<option value="${e.ref_id}" data-type="${n}" data-slug="${a}">${i}</option>`))})}n()}else i(new Error("API returned error or no data"))}catch(e){i(e)}},error:function(e,t,n){i(new Error("API call failed: "+n))}})})}function buildLotteryUrl(){let e="",t="";if(0<$("#regionSelect").length){var n=$("#regionSelect").val();if(n&&0<parseInt(n)){const a=$(`#regionSelect option[value="${n}"]`);t=a.attr("data-slug")}}if(0<$("#datePicker").length){var i=$("#datePicker").val();if(i&&0<i.length){const r=new Date(i);n=("0"+r.getDate()).slice(-2),i=("0"+(r.getMonth()+1)).slice(-2);e=n+"-"+i+"-"+r.getFullYear()}}return t&&0<t.length&&e&&0<e.length?"/xo-so/"+t+"/ngay-"+e+".html":e&&0<e.length?"/xo-so/ngay-"+e+".html":t&&0<t.length?"/xo-so/"+t+".html":"/xo-so.html"}function initLotteryOptions(){$(document).on("change",'.lottery-filter input[type="radio"]',function(){const i=$(this).val(),e=$(this).closest(".lottery-section"),t=e?e.find(".lottery-table .item"):$(".lottery-table .item");t.each(function(){const e=$(this);let t=e.data("original-value");t||(t=e.text().trim(),e.data("original-value",t));let n=t;try{switch(i){case"2digits":n=getLastDigits(t,2);break;case"3digits":n=getLastDigits(t,3);break;default:n=t}}catch(e){n=t}e.text(n)})})}function getLastDigits(e,t){if(!e)return"";const n=String(e).trim();if(!n)return"";const i=n.replace(/\D/g,"");return i?i.length<=t?i:i.slice(-t):n}function showLoader(){$("#loader").length||$("body").append(`<div id="loader" style="position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background: rgba(255, 255, 255, 0.8);z-index: 9999;display: flex;justify-content: center;align-items: center;"><img src="${window.cmsConfig.domainStatic}/assets/web/styles/img/loading.gif"></div>`)}function hideLoader(){$("#loader").remove()}function getObjects(e,t,n){var i,a=[];for(i in e)e.hasOwnProperty(i)&&("object"==typeof e[i]?a=a.concat(getObjects(e[i],t,n)):i===t&&e[t]===n&&a.push(e));return a}function sortWithPriority(e,a,r=[],o=!0){return e.sort((e,t)=>{var n=e[a],i=t[a],e=r.indexOf(n),t=r.indexOf(i);return-1!==e&&-1!==t?e-t:-1!==e?-1:-1!==t?1:o?String(n).localeCompare(String(i)):0})}function formatFloat(e,t={}){if(null==e)return"";var n=Object.assign({},{decimals:2,decimalSeparator:".",thousandSeparator:",",removeTrailingZeros:!0,prefix:"",suffix:""},t),t=parseFloat(e);if(isNaN(t))return e+"";e=Math.pow(10,n.decimals);const i=Math.round(t*e)/e;e=i.toFixed(n.decimals).split(".");const a=e[0];let r=e[1]||"";e=a.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n.thousandSeparator);n.removeTrailingZeros&&(r=r.replace(/0+$/,""));let o=e;return 0<r.length&&(o+=n.decimalSeparator+r),n.prefix+o+n.suffix}function getInputValue(e){const t=$(e);return t.length&&t.val()&&t.val().length?t.val().trim():""}function formatDateInput(e,t){if(!e)return"";const n=new Date(e);if(isNaN(n.getTime()))return"";var i=("0"+n.getDate()).slice(-2),a=("0"+(n.getMonth()+1)).slice(-2),e=n.getFullYear();return t.replace(/dd/i,i).replace(/mm/i,a).replace(/yyyy/i,e)}function getUrlParameter(e){for(var t,n=decodeURIComponent(window.location.search.substring(1)).split("&"),i=0;i<n.length;i++)if((t=n[i].split("="))[0]===e)return void 0===t[1]||t[1]}$(document).ready(function(){0<$("#weather-box").length&&infoWidget(),initPowerCut(),initGold(),initCurrency(),initCalendar(
22),initLottery()});var duringAjax=!1,nextData=!0,slideIndex=0,pageIndex=1;function playPause(){var e=$(".mySwiper .swiper-slide-active"),t=e.find("video");t&&(e=e.find(".ic-video"),t[0].paused?(t[0].play(),e.addClass("ic-pause")):(t[0].pause(),e.removeClass("ic-pause")))}function setVolumn(){var e=$(".mySwiper .swiper-slide-active"),t=e.find("video");t&&(t[0].muted=!t[0].muted,e.find(".ic-volume").toggleClass("ic-volume-slash"))}function setVideoPlay(e,t){for(var n=$(".mySwiper .swiper-slide video"),i=0;i<n.length;i++)n[i].currentTime=0,n[i].pause();var a=$(".mySwiper .swiper-slide-active");if(a){var r=a.find("video");if(0<r.length){a.find(".ic-control").addClass("ic-pause");var o=r[0],s=o.src;s&&!(s.length<=0)||(c=$(o).find("source"))&&(s=c[0].src),(s=s&&s.endsWith(".mp4.m3u8")?s.replace(".m3u8",""):s)&&0<s.indexOf(".m3u8")?loadPlugin("js-hls","https://common.mcms.one/assets/js/hls.min.js",function(){if(Hls.isSupported()){const e=new Hls;e.loadSource(s),e.attachMedia(o),e.on(Hls.Events.MANIFEST_PARSED,()=>{o.play()})}}):o.play();var l=a.attr("data-id"),r=a.attr("data-url"),c=a.find(".article__title").text();if(r&&(c&&(document.title!==c+" | Báo Hà Tĩnh"&&(document.title=c+" | Báo Hà Tĩnh"),window.history.pushState({path:r},c,r)),"undefined"!=typeof CMSTracking&&0<parseInt(l))){const d=CMSTracking.getInstance();d.resetPageViewTracked().trackPageView({objectId:l,pathName:r,forceTrack:!0,pushGA:!0})}if(e)try{o.addEventListener("ended",function(){a.find(".ic-control").removeClass("ic-pause"),e.slideNext()})}catch(e){console.log("error: video ended")}}}}function setVideoBg(){0<$(".mySwiper .swiper-slide-active video").length&&0<$(".mySwiper .swiper-slide-active video").attr("poster").length&&$(".mySwiper .bg-blur").css("background","url("+$(".mySwiper .swiper-slide-active video").attr("poster")+") center center/ 100% auto no-repeat")}function getShortVideo(h,f,e,t){f&&h&&(t=window.cmsConfig.domainApi+"/api/short-video-"+pageIndex+".html?content_id="+e+(void 0!==t&&0<t.length?"&zone_id="+t:""),$.get(t,function(e){if(0<$(e).length&&e.data&&e.data.contents){for(var t=0;t<e.data.contents.length;t++){var n=e.data.contents[t];if(n.video_url&&!(n.video_url.length<=0)){var i="",a="";n.zone&&(i=n.zone.url,a=n.zone.name);var r="";if(n.authors)for(var o=0;o<n.authors.length;o++)r+=n.authors[o].name+(o<n.authors.length-1?",":"");var s=n.url,l=s=s.startsWith("/")?window.cmsConfig.domainDesktop+s:s;n.short_url&&(l=(n.short_url.startsWith("/")?window.cmsConfig.domainDesktop:"")+n.short_url);var c="",d=!1,u=n.video_url,c=0<=u.indexOf("youtube.com/")||0<=u.indexOf("youtu.be/")||0<=u.indexOf("facebook.com/")?((0<=u.indexOf("youtube.com/")||0<=u.indexOf("youtu.be/"))&&(u=u.replace("/watch?v=","/embed/"),(u+=0<=u.indexOf("?")?"&autoplay=1&showinfo=0&controls=0":"?autoplay=1&showinfo=0&controls=0").indexOf("rel=0")<0&&(u+="&rel=0")),d=!0,'<iframe width="100%" height="600" src="'+u+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'):(u=u&&u.endsWith(".mp4.m3u8")?u.replace(".m3u8",""):u,'<video onclick="playPause()" poster="'+(n.avatar_url&&0<n.avatar_url.length?n.avatar_url.replace("/w200/","/"):"")+'"><source src="'+u+'" type="video/mp4"></video>');f.appendSlide('<div class="swiper-slide" data-url="'+s+'" data-id="'+n.content_id+'"><div class="item"><div class="content">'+c+' <div class="metadata">     <div class="meta"><a href="'+(0<i.length?i:"#")+'" class="cate">'+a+'</a><time class="time">'+formatTime(n.date,{friendly:!0})+'</time></div>     <div class="article__title">'+n.title+"</div>"+(0<r.length?'<div class="article__author"><span class="name">'+r+"</span></div>":"")+' </div> <div class="option">'+(d?"":'<i class="ic-video ic-pause" onclick="playPause()"></i><i class="ic-volume" onclick="setVolumn()"></i>')+' </div></div><div class="social short-social">     <a href="javascript:void(0);" class="fb" data-rel="facebook" data-href="'+l+'"><i class="ic-facebook"></i></a>     <a href="javascript:void(0);" class="zl zalo-share-button" data-href="'+l+'" data-oaid="4109023934107653813" data-layout="2" data-color="blue" data-customize="true"><i class="ic-zalo-line"></i></a>     <a href="javascript:void(0);" class="tt" data-rel="twitter" data-href="'+l+'"><i class="ic-twitter"></i></a></div></div></div>')}}
22f.update(),pageIndex<=1&&setTimeout(function(){socialShare(),setVideoBg(),setVideoPlay(f,0),h.addClass("modal video-modal"),h.fadeIn()},200),pageIndex++}else nextData=!1,closeShortVideo()}).fail(function(){nextData=!1,closeShortVideo()}))}function closeShortVideo(){0<$("#modal-short-video").length&&(pageIndex=1,nextData=!(slideIndex=0),window.history.back(),$("body").removeClass("modal-open"),$(".modal-backdrop").fadeOut(),$(".modal").fadeOut(),$("#modal-short-video").remove())}$(document).ready(function(){$(".short-video-item").on("click",function(e){e.preventDefault();var t=$("#modal-short-video");0===t.length&&($("body").addClass("modal-open"),$("body").append($("<div>",{id:"dialog-backdrop",class:"modal-backdrop"})),$(".modal-backdrop").fadeIn(),$("body").append($("<div>",{id:"modal-short-video",class:"short-video-modal",css:{"max-width":window.innerWidth}})),(t=$("#modal-short-video")).html(' <div class="short-video-wrapper">     <span class="close btn-close">close</span>     <div class="swiper mySwiper">         <div class="bg-blur"></div>         <div class="swiper-wrapper"></div>         <div class="swiper-button-next"></div>         <div class="swiper-button-prev"></div>     </div></div>')),$("#modal-short-video .btn-close").on("click",function(){closeShortVideo()});var n=$(this).attr("data-zone-id"),i=$(this).attr("data-id");i&&(loadStyle("css-swiper","https://common.mcms.one/assets/js/swiper/swiper-bundle.min.css"),loadPlugin("js-swiper","https://common.mcms.one/assets/js/swiper/swiper-bundle.min.js",function(){document.querySelectorAll("video").forEach(e=>e.pause());var e=new Swiper(".mySwiper",{loop:!1,spaceBetween:100,threshold:40,direction:"vertical",slidesPerView:"auto",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},mousewheel:{invert:!1,forceToAxis:!0},keyboard:{enabled:!0},on:{slideChange:function(){document.querySelectorAll("video").forEach(e=>e.pause()),slideIndex=e.activeIndex,setTimeout(function(){setVideoBg(),setVideoPlay(e,e.activeIndex)},200)},reachEnd:function(){nextData&&(!this.previousIndex||this.activeIndex>this.previousIndex)&&getShortVideo(t,e,i,n)}}});getShortVideo(t,e,i,n)}))})});

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.