blogspot/dist/giang-duong.min.js · Thư viện lâm mô: thẻ hiện ngay, lưu tạm số tim 12 giờ (15/11/2026)

/* Thư Đạo · giang-duong · nguồn: blogspot/pages/giang-duong.html */
(function(I,C,H,J){var d=document,w=window,r=d.getElementById(I);if(!r||r.getAttribute("data-on"))return;r.setAttribute("data-on","1");if(C){var st=d.createElement("style");st.textContent=C;d.head.appendChild(st);}r.insertAdjacentHTML("beforebegin",H);r.parentNode.removeChild(r);var late=d.readyState!=="loading";function fire(t,f,o){var e=new Event(t);setTimeout(function(){typeof f==="function"?f.call(o,e):f&&f.handleEvent&&f.handleEvent(e);});}if(late){d.addEventListener=function(t,f){if(t==="DOMContentLoaded")return fire(t,f,d);return EventTarget.prototype.addEventListener.apply(this,arguments);};w.addEventListener=function(t,f){if(t==="DOMContentLoaded"||(t==="load"&&d.readyState==="complete"))return fire(t,f,w);return EventTarget.prototype.addEventListener.apply(this,arguments);};}try{for(var i=0;i<J.length;i++){var s=d.createElement("script");s.textContent=J[i];d.body.appendChild(s);}}finally{if(late){delete d.addEventListener;delete w.addEventListener;}}if(w.__tdpFriendly)w.__tdpFriendly(I);})("tdp-giang-duong","#lectureHallPage{--gd-paper:#ffffff;--gd-ink:#302a26;--gd-muted:#786f66;--gd-line:#e7ded3;--gd-brown:#765344;--gd-brown-dark:#51372d;--gd-red:#963333;--gd-gold:#b58440;--gd-gold-soft:#f6ebd7;--gd-green:#247159;--gd-green-soft:#e8f5ef;--gd-blue:#315f91;--gd-blue-soft:#edf4fb;--gd-purple:#745394;--gd-purple-soft:#f4eff8;--gd-shadow: 0 12px 34px rgba(68,48,36,.08);--gd-shadow-small: 0 5px 18px rgba(68,48,36,.07);width:100%;max-width:1180px;margin:0 auto;padding:22px 12px 50px;box-sizing:border-box;font-family:Arial,Helvetica Neue,sans-serif;color:var(--gd-ink)}#lectureHallPage *,#lectureHallPage *:before,#lectureHallPage *:after{box-sizing:border-box}.gd-header{position:relative;overflow:hidden;margin-bottom:24px;padding:36px 24px 32px;border:1px solid #eadfce;border-radius:24px;background:radial-gradient(circle at 10% 0%,rgba(184,135,66,.13),transparent 30%),radial-gradient(circle at 95% 100%,rgba(159,49,49,.08),transparent 34%),linear-gradient(145deg,#fffdf8,#f8f2e8);box-shadow:var(--gd-shadow);text-align:center}.gd-header-seal{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;margin-bottom:14px;border-radius:16px;background:linear-gradient(145deg,#aa3939,#7e2626);color:#fff;font-family:serif;font-size:25px;font-weight:700;box-shadow:0 8px 18px #7e262630;transform:rotate(-3deg)}.gd-main-title{margin:0;color:var(--gd-brown-dark);font-family:Georgia,Times New Roman,serif;font-size:34px;line-height:1.15;font-weight:900;letter-spacing:1.5px}.gd-main-subtitle{max-width:700px;margin:11px auto 0;color:var(--gd-muted);font-size:14px;line-height:1.75}.gd-header-status{display:inline-flex;align-items:center;gap:7px;margin-top:17px;padding:7px 12px;border:1px solid #e5ded3;border-radius:999px;background:#ffffffc7;color:var(--gd-muted);font-size:11px;font-weight:800}.gd-header-status.live{border-color:#d4e9dc;background:var(--gd-green-soft);color:var(--gd-green)}.gd-status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#aaa39b}.gd-header-status.live .gd-status-dot{background:#2c986d;box-shadow:0 0 0 4px #2c986d1f;animation:gdPulse 1.6s ease-in-out infinite}@keyframes gdPulse{0%,to{opacity:1}50%{opacity:.45}}.gd-section{margin-top:22px}.gd-section-heading{margin-bottom:13px}.gd-section-kicker{margin-bottom:5px;color:var(--gd-red);font-size:10px;font-weight:900;letter-spacing:1.5px}.gd-section-title{margin:0;color:var(--gd-brown-dark);font-family:Georgia,Times New Roman,serif;font-size:23px;font-weight:900}.gd-section-desc{margin:5px 0 0;color:var(--gd-muted);font-size:12px;line-height:1.55}.gd-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gd-room{position:relative;overflow:hidden;border:1px solid var(--gd-line);border-radius:21px;background:linear-gradient(145deg,#fff,#fcfaf5);box-shadow:var(--gd-shadow-small)}.gd-room.live{border-color:#24715959;box-shadow:0 8px 26px #2471591a}.gd-room-banner{position:relative;width:100%;aspect-ratio:16 / 8.2;overflow:hidden;background:#eee8df}.gd-room-banner img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}.gd-room:hover .gd-room-banner img{transform:scale(1.025)}.gd-room-banner:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(to bottom,transparent,rgba(38,27,22,.16));pointer-events:none}.gd-room-body{padding:17px 19px 19px}.gd-room-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.gd-room-identity{display:flex;align-items:center;gap:12px;min-width:0}.gd-room-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 auto;border-radius:15px;background:linear-gradient(145deg,#f8ecda,#efe0c5);font-size:23px}.gd-room-label{margin-bottom:3px;color:var(--gd-gold);font-size:10px;font-weight:900;letter-spacing:1px}.gd-room-name{margin:0;color:var(--gd-brown-dark);font-family:Georgia,Times New Roman,serif;font-size:20px;line-height:1.25;font-weight:900}.gd-room-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #e3ddd4;border-radius:999px;background:#f6f4f0;color:#7e766e;font-size:9px;font-weight:900;white-space:nowrap}.gd-room-status.live{border-color:#d3eadc;background:var(--gd-green-soft);color:var(--gd-green)}.gd-room-status-dot{width:6px;height:6px;border-radius:50%;background:#aaa39b}.gd-room-status.live .gd-room-status-dot{background:#2d966c;animation:gdPulse 1.6s ease-in-out infinite}.gd-room-schedule{margin-top:7px;color:#948b82;font-size:9px;font-weight:700;text-align:right}.gd-room-note{margin:14px 0 15px;padding:10px 12px;border-radius:11px;background:#f8f5ef;color:#776e64;font-size:11px;line-height:1.55}.gd-verify-label{display:block;margin-bottom:7px;color:#5d554d;font-size:11px;font-weight:800}.gd-verify-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.gd-code-input{width:100%;min-width:0;height:44px;padding:0 13px;border:1px solid #dcd5cc;border-radius:12px;outline:none;background:#fff;color:#292524;font-size:14px;font-weight:700}.gd-code-input:focus{border-color:#a98059;box-shadow:0 0 0 3px #a980591c}.gd-code-input::placeholder{color:#aaa39b;font-weight:500}.gd-verify-button{min-height:44px;padding:0 15px;border:0;border-radius:12px;background:linear-gradient(135deg,#785548,#51382f);color:#fff;font-size:11px;font-weight:900;cursor:pointer;box-shadow:0 5px 14px #51382f29}.gd-verify-button:disabled{opacity:.55;cursor:not-allowed}.gd-room-message{display:none;margin-top:10px;padding:10px 12px;border-radius:11px;font-size:11px;line-height:1.5;font-weight:700}.gd-room-message.show{display:block}.gd-room-message.loading{background:#f6f4ef;color:#776e64}.gd-room-message.success{border:1px solid #cee5d7;background:var(--gd-green-soft);color:#24694f}.gd-room-message.error{border:1px solid #efd4d1;background:#fff0ee;color:#9a3630}.gd-room-message.warning{border:1px solid #eadcb5;background:#fff8e6;color:#87611c}.gd-meet-access{display:none;margin-top:11px}.gd-meet-access.show{display:block}.gd-meet-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;padding:10px 14px;border-radius:13px;background:linear-gradient(135deg,#24765b,#195944);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:900;box-shadow:0 6px 18px #24765b2e}.gd-meet-small{margin-top:7px;color:#8b837a;font-size:9px;line-height:1.5;text-align:center}.gd-graduation-room{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-top:16px;padding:17px 19px;border:1px solid #dfc994;border-radius:18px;background:radial-gradient(circle at 5% 20%,rgba(181,132,64,.14),transparent 30%),linear-gradient(135deg,#fff9eb,#fffdf8);box-shadow:var(--gd-shadow-small)}.gd-graduation-icon{display:flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:15px;background:linear-gradient(145deg,#efe0bd,#e4c98c);font-size:24px;flex:0 0 auto}.gd-graduation-label{color:#9b7134;font-size:9px;font-weight:900;letter-spacing:1px}.gd-graduation-title{margin:2px 0 3px;color:var(--gd-brown-dark);font-family:Georgia,Times New Roman,serif;font-size:19px;font-weight:900}.gd-graduation-desc{margin:0;color:var(--gd-muted);font-size:11px;line-height:1.55}.gd-graduation-button{display:inline-flex;min-height:42px;padding:9px 16px;align-items:center;justify-content:center;border-radius:11px;background:linear-gradient(135deg,#9c7136,#765125);color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:900;white-space:nowrap;box-shadow:0 5px 14px #7651252b}.gd-graduation-button:hover{opacity:.92}.gd-exam-status{margin:5px 0 0;color:#8a5a2b;font-size:11px;font-weight:800;line-height:1.45}.gd-exam-status.is-open{color:#2f6b45}.gd-graduation-button.is-locked{background:#d9cdbb;color:#7a6a58!important;box-shadow:none;cursor:not-allowed;pointer-events:none}.gd-exam-admin{margin-top:10px;padding:14px 16px;border:1px dashed #c9a96a;border-radius:14px;background:#fffdf7;font-size:12px;color:var(--gd-brown-dark)}.gd-exam-admin[hidden]{display:none!important}.gd-exam-admin h4{margin:0 0 10px;font-size:13px;font-weight:900;color:#8b3328}.gd-ea-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 10px}.gd-ea-row>b{min-width:110px}.gd-ea-row label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}.gd-ea-row input[type=date],.gd-ea-row input[type=time],.gd-ea-row input[type=text]{padding:5px 7px;border:1px solid #d8c6a3;border-radius:8px;font:inherit;background:#fff}.gd-ea-switch{position:relative;display:inline-flex;align-items:center;gap:8px;font-weight:900}.gd-ea-switch input{position:absolute;opacity:0;width:1px;height:1px}.gd-ea-switch .gd-ea-knob{position:relative;width:46px;height:26px;border-radius:13px;background:#cbbfae;transition:background .2s}.gd-ea-switch .gd-ea-knob:after{content:\"\";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:left .2s}.gd-ea-switch input:checked+.gd-ea-knob{background:#2f6b45}.gd-ea-switch input:checked+.gd-ea-knob:after{left:23px}.gd-ea-switch input:focus-visible+.gd-ea-knob{outline:2px solid #8b3328;outline-offset:2px}.gd-ea-courses{display:flex;flex-wrap:wrap;gap:6px 12px}.gd-ea-hint{margin:0 0 10px;color:var(--gd-muted);font-size:11px;line-height:1.5}.gd-ea-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.gd-ea-actions button{min-height:36px;padding:7px 16px;border:0;border-radius:10px;background:linear-gradient(135deg,#9c7136,#765125);color:#fff;font-weight:900;font-size:11px;cursor:pointer}.gd-ea-actions button:disabled{opacity:.6;cursor:wait}.gd-ea-msg{font-weight:800}.gd-ea-msg.ok{color:#2f6b45}.gd-ea-msg.err{color:#963b3b}.gd-privacy-note{display:flex;align-items:flex-start;gap:10px;margin-top:13px;padding:11px 13px;border:1px solid #ebe5dc;border-radius:13px;background:#ffffffa6;color:#81786f;font-size:10px;line-height:1.55}.gd-activity-card{overflow:hidden;border:1px solid var(--gd-line);border-radius:21px;background:#fff;box-shadow:var(--gd-shadow-small)}.gd-activity-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #eee7de;background:#fcfaf6}.gd-filter-scroll{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.gd-filter-scroll::-webkit-scrollbar{display:none}.gd-filter-button{flex:0 0 auto;padding:7px 10px;border:1px solid #e2dad0;border-radius:999px;background:#fff;color:#71685f;font-size:9px;font-weight:900;cursor:pointer}.gd-filter-button.active{border-color:#805b4d;background:#805b4d;color:#fff}.gd-refresh-button{flex:0 0 auto;padding:7px 10px;border:1px solid #e0d8ce;border-radius:10px;background:#fff;color:#625b54;font-size:9px;font-weight:800;cursor:pointer}.gd-activity-feed{padding:4px 15px 6px}.gd-activity-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;padding:15px 0;border-bottom:1px solid #f0ebe4}.gd-activity-item:last-child{border-bottom:0}.gd-activity-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;font-size:18px}.gd-activity-item.submission .gd-activity-icon{background:var(--gd-blue-soft)}.gd-activity-item.grade .gd-activity-icon{background:var(--gd-gold-soft)}.gd-activity-item.comment .gd-activity-icon{background:var(--gd-purple-soft)}.gd-activity-item.gift .gd-activity-icon{background:#fff0f0}.gd-activity-content{align-self:center;min-width:0}.gd-activity-text{color:#4b4540;font-size:12px;line-height:1.55}.gd-activity-name{color:var(--gd-brown-dark);font-weight:900}.gd-activity-meta{margin-top:4px;color:#958d84;font-size:9px;font-weight:800}.gd-activity-time{align-self:center;padding-left:8px;color:#978f86;font-size:9px;white-space:nowrap;text-align:right}.gd-empty{padding:35px 15px;color:#8d857d;font-size:11px;line-height:1.6;text-align:center}.gd-load-more-wrap{display:none;padding:0 15px 15px;text-align:center}.gd-load-more-wrap.show{display:block}.gd-load-more{padding:9px 16px;border:1px solid #ddd5cb;border-radius:11px;background:#faf8f4;color:#655d55;font-size:10px;font-weight:900;cursor:pointer}@media (max-width:760px){#lectureHallPage{padding:14px 8px 38px}.gd-header{padding:28px 16px 25px;border-radius:19px}.gd-main-title{font-size:28px}.gd-main-subtitle{font-size:12px}.gd-room-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gd-room{border-radius:16px}.gd-room-banner{aspect-ratio:1.35 / 1}.gd-room-body{padding:11px 9px 12px}.gd-room-top,.gd-room-identity{display:block}.gd-room-icon{width:38px;height:38px;margin-bottom:7px;border-radius:11px;font-size:18px}.gd-room-name{font-size:15px}.gd-room-status{margin-top:8px;padding:5px 6px;font-size:7px}.gd-room-schedule{text-align:left;font-size:8px}.gd-room-note{margin:10px 0 11px;padding:8px;font-size:8.5px}.gd-verify-label{font-size:9px}.gd-verify-row{grid-template-columns:1fr}.gd-code-input{height:40px;padding:0 9px;font-size:11px}.gd-verify-button{min-height:37px;font-size:9px}.gd-room-message{padding:8px;font-size:8.5px}.gd-meet-button{min-height:40px;padding:8px;font-size:8.5px}.gd-graduation-room{grid-template-columns:auto minmax(0,1fr);gap:10px;padding:13px;border-radius:15px}.gd-graduation-icon{width:42px;height:42px;border-radius:12px;font-size:19px}.gd-graduation-title{font-size:15px}.gd-graduation-desc{font-size:9px}.gd-graduation-button{grid-column:1 / -1;width:100%;min-height:39px;font-size:9px}.gd-activity-item{grid-template-columns:36px minmax(0,1fr);gap:9px}.gd-activity-icon{width:34px;height:34px;font-size:15px}.gd-activity-text{font-size:10px}.gd-activity-time{grid-column:2;padding:0;text-align:left;font-size:8px}}.gd-lammo-intro{color:#6f665d;font-size:12px;line-height:1.5;font-weight:700}.gd-lammo-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}#lectureHallPage .gd-lammo-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 16px;border-radius:11px;background:linear-gradient(135deg,#a33a3a,#7b2626)!important;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 5px 14px #7b26262e}#lectureHallPage .gd-lammo-cta:hover{opacity:.92}#lectureHallPage .gd-lammo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:15px}#lectureHallPage .gd-lammo-grid>.gd-empty{grid-column:1 / -1}.gd-lammo-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e6dccd;border-radius:16px;background:#fffdf8;box-shadow:0 4px 14px #4430240f}#lectureHallPage .gd-lammo-photo{display:block;width:100%;aspect-ratio:3 / 4;margin:0;padding:8px;border:0;border-radius:0;background:#eee6d9;cursor:zoom-in}.gd-lammo-photo img{display:block;width:100%;height:100%;object-fit:contain}.gd-lammo-photo.is-error{background:#eee6d9 linear-gradient(135deg,transparent 48%,#e0d4c2 49%,#e0d4c2 51%,transparent 52%)}#lectureHallPage .gd-lammo-heart{position:absolute;top:10px;right:10px;z-index:2;display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 11px;border:1px solid #e8cfc5;border-radius:999px;background:#fffdf8f0;color:#a04538;font:800 13px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 3px 10px #4430241f}#lectureHallPage .gd-lammo-heart span{font-size:16px;line-height:1}#lectureHallPage .gd-lammo-heart:hover{background:#fbe6dd}#lectureHallPage .gd-lammo-heart.is-liked{border-color:#e7b5b5;background:#fff0f0;color:#c33235}#lectureHallPage .gd-lammo-heart:disabled{opacity:1;cursor:progress}#lectureHallPage .gd-lammo-heart:disabled span{animation:gdHeartBeat .9s ease-in-out infinite}@keyframes gdHeartBeat{0%,to{transform:scale(1)}50%{transform:scale(1.25)}}.gd-lammo-info{padding:11px 12px 13px;min-width:0}#lectureHallPage .gd-lammo-info .ocdid{margin:0 0 4px}#lectureHallPage .gd-lammo-info .ocdid-name{color:inherit}.gd-lammo-name{color:var(--gd-brown-dark);font-size:13px;font-weight:900;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gd-lammo-sub{margin-top:3px;color:#8a8178;font-size:11px;font-weight:700}.gd-lammo-title{margin-top:7px;color:#7b2626;font-family:Georgia,Times New Roman,serif;font-size:14px;font-weight:900;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#lectureHallPage a.gd-lammo-title{color:#7b2626!important;text-decoration:none!important;cursor:pointer}#lectureHallPage a.gd-lammo-title:hover{text-decoration:underline!important}.gd-lammo-time{margin-top:6px;color:#9a9188;font-size:10px;font-weight:700}.gd-lammo-status{display:none;margin:0 15px 12px;padding:9px 12px;border:1px solid #efd4d1;border-radius:11px;background:#fff0ee;color:#9a3630;font-size:12px;font-weight:700}.gd-lammo-status.show{display:block}.gd-lammo-viewer{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:16px;background:#140e0adb}.gd-lammo-viewer.show{display:flex}.gd-lammo-viewer figure{position:relative;max-width:min(960px,100%);max-height:100%;margin:0;text-align:center}.gd-lammo-viewer img{display:block;max-width:100%;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);margin:0 auto;border-radius:10px;background:#faf7ef;object-fit:contain}.gd-lammo-viewer figcaption{margin-top:10px;color:#f6eee2;font-size:13px;font-weight:700;line-height:1.5}#lectureHallPage .gd-lammo-close{position:fixed;top:12px;right:12px;width:42px;height:42px;border:0;border-radius:50%;background:#ffffffeb;color:#3b2a22;font:900 22px/1 Arial,sans-serif;cursor:pointer}@media (max-width:1000px){#lectureHallPage .gd-lammo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.gd-lammo-toolbar{flex-direction:column;align-items:stretch}.gd-lammo-actions .gd-lammo-cta{flex:1 1 auto}#lectureHallPage .gd-lammo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}.gd-lammo-card{border-radius:13px}#lectureHallPage .gd-lammo-photo{padding:5px}#lectureHallPage .gd-lammo-heart{top:7px;right:7px;min-height:32px;padding:5px 9px;font-size:12px}.gd-lammo-info{padding:9px 9px 11px}.gd-lammo-name{font-size:12px}.gd-lammo-sub{font-size:10px}.gd-lammo-title{font-size:13px}}.tdp-page{-webkit-text-size-adjust:100%;text-size-adjust:100%}.tdp-page img,.tdp-page video,.tdp-page canvas{max-width:100%}.tdp-page button,.tdp-page [role=button],.tdp-page a,.tdp-page input,.tdp-page select,.tdp-page textarea,.tdp-page label{touch-action:manipulation;-webkit-tap-highlight-color:rgba(176,107,44,.18)}.tdp-page button:not([hidden]),.tdp-page [role=button],.tdp-page .nut,.tdp-page a[class*=btn],.tdp-page a[class*=button],.tdp-page a[class*=cta],.tdp-page a[class*=Cta]{min-height:44px}.tdp-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]),.tdp-page select,.tdp-page textarea{min-height:44px;font-size:max(16px,1em)}.tdp-page input[type=checkbox],.tdp-page input[type=radio]{width:22px;height:22px;min-height:0}.tdp-page button:active,.tdp-page [role=button]:active,.tdp-page .nut:active{transform:scale(.97);filter:brightness(.92)}.tdp-page :is(button,a,input,select,textarea,[role=button],[tabindex]):focus-visible{outline:3px solid #b06b2c;outline-offset:2px}@media (prefers-reduced-motion:reduce){.tdp-page *{animation-duration:.01ms!important;transition-duration:.01ms!important}}","<div class=\"tdp-page\"><div id=\"lectureHallPage\">\n<div id=\"lectureHallApp\">\n<header class=\"gd-header\">\n<div class=\"gd-header-seal\">\n學\n</div>\n<h1 class=\"gd-main-title\">\nGIẢNG ĐƯỜNG\n</h1>\n<p class=\"gd-main-subtitle\">\nKhông gian học tập trực tuyến dành cho học viên.\nHệ thống tự nhận diện học viên qua Minh Hồng và mở đúng phòng học của bạn.\n</p>\n<div\nid=\"gdHeaderStatus\"\nclass=\"gd-header-status\"\n>\n<span class=\"gd-status-dot\"></span>\n<span id=\"gdHeaderStatusText\">\nĐang kiểm tra lịch học...\n</span>\n</div>\n</header>\n<section class=\"gd-section\">\n<div class=\"gd-section-heading\">\n<div class=\"gd-section-kicker\">\nPHÒNG HỌC TRỰC TUYẾN\n</div>\n<h2 class=\"gd-section-title\">\nPhòng học\n</h2>\n<p class=\"gd-section-desc\">\nPhòng Hoà Bình học tối Thứ Sáu.\nPhòng Hạnh Phúc học tối Thứ Bảy.\n</p>\n</div>\n<div class=\"gd-room-grid\">\n<article\nid=\"gdRoomHOABINH\"\nclass=\"gd-room\"\n>\n<div class=\"gd-room-banner\">\n<img\nid=\"gdBannerHOABINH\"\nsrc=\"https://drive.google.com/thumbnail?id=1PP0BBYcma0kFkio87aR4ld6dnuRWyP6o&sz=w1600\"\nalt=\"Phòng học Hoà Bình\"\nloading=\"lazy\"\ndecoding=\"async\"\n/>\n</div>\n<div class=\"gd-room-body\">\n<div class=\"gd-room-top\">\n<div class=\"gd-room-identity\">\n<div\nclass=\"gd-room-icon\"\nid=\"gdRoomIconHOABINH\"\n></div>\n<div>\n<div class=\"gd-room-label\">\nPHÒNG HỌC\n</div>\n<h3 class=\"gd-room-name\">\nPhòng học Hoà Bình\n</h3>\n</div>\n</div>\n<div>\n<div\nid=\"gdStatusHOABINH\"\nclass=\"gd-room-status\"\n>\n<span class=\"gd-room-status-dot\"></span>\n<span id=\"gdStatusTextHOABINH\">\nĐANG KIỂM TRA\n</span>\n</div>\n<div class=\"gd-room-schedule\">\nThứ Sáu • 19:00–21:00\n</div>\n</div>\n</div>\n<div class=\"gd-room-note\">\nKhông gian học thư pháp dành cho học viên\ncác khóa được phân vào Phòng học Hoà Bình.\n</div>\n<label\nclass=\"gd-verify-label\"\nfor=\"gdCodeHOABINH\"\n>\nKiểm tra Mã học viên\n</label>\n<div class=\"gd-verify-row\">\n<input\nid=\"gdCodeHOABINH\"\nclass=\"gd-code-input\"\ntype=\"text\"\ninputmode=\"text\"\nautocomplete=\"off\"\nautocorrect=\"off\"\nautocapitalize=\"characters\"\nspellcheck=\"false\"\nplaceholder=\"Nhập Mã học viên...\"\n/>\n<button\nid=\"gdVerifyHOABINH\"\nclass=\"gd-verify-button\"\ntype=\"button\"\n>\nKIỂM TRA\n</button>\n</div>\n<div\nid=\"gdMessageHOABINH\"\nclass=\"gd-room-message\"\naria-live=\"polite\"\n></div>\n<div\nid=\"gdMeetAccessHOABINH\"\nclass=\"gd-meet-access\"\n></div>\n</div>\n</article>\n<article\nid=\"gdRoomHANHPHUC\"\nclass=\"gd-room\"\n>\n<div class=\"gd-room-banner\">\n<img\nid=\"gdBannerHANHPHUC\"\nsrc=\"https://drive.google.com/thumbnail?id=19GZP-3tKYLVE2l6uVeihhpnfVKAKaRE4&sz=w1600\"\nalt=\"Phòng học Hạnh Phúc\"\nloading=\"lazy\"\ndecoding=\"async\"\n/>\n</div>\n<div class=\"gd-room-body\">\n<div class=\"gd-room-top\">\n<div class=\"gd-room-identity\">\n<div\nclass=\"gd-room-icon\"\nid=\"gdRoomIconHANHPHUC\"\n></div>\n<div>\n<div class=\"gd-room-label\">\nPHÒNG HỌC\n</div>\n<h3 class=\"gd-room-name\">\nPhòng học Hạnh Phúc\n</h3>\n</div>\n</div>\n<div>\n<div\nid=\"gdStatusHANHPHUC\"\nclass=\"gd-room-status\"\n>\n<span class=\"gd-room-status-dot\"></span>\n<span id=\"gdStatusTextHANHPHUC\">\nĐANG KIỂM TRA\n</span>\n</div>\n<div class=\"gd-room-schedule\">\nThứ Bảy • 19:00–21:00\n</div>\n</div>\n</div>\n<div class=\"gd-room-note\">\nKhông gian học thư pháp dành cho học viên\nđược phân vào Phòng học Hạnh Phúc.\n</div>\n<label\nclass=\"gd-verify-label\"\nfor=\"gdCodeHANHPHUC\"\n>\nKiểm tra Mã học viên\n</label>\n<div class=\"gd-verify-row\">\n<input\nid=\"gdCodeHANHPHUC\"\nclass=\"gd-code-input\"\ntype=\"text\"\ninputmode=\"text\"\nautocomplete=\"off\"\nautocorrect=\"off\"\nautocapitalize=\"characters\"\nspellcheck=\"false\"\nplaceholder=\"Nhập Mã học viên...\"\n/>\n<button\nid=\"gdVerifyHANHPHUC\"\nclass=\"gd-verify-button\"\ntype=\"button\"\n>\nKIỂM TRA\n</button>\n</div>\n<div\nid=\"gdMessageHANHPHUC\"\nclass=\"gd-room-message\"\naria-live=\"polite\"\n></div>\n<div\nid=\"gdMeetAccessHANHPHUC\"\nclass=\"gd-meet-access\"\n></div>\n</div>\n</article>\n</div>\n<div class=\"gd-graduation-room\">\n<div\nclass=\"gd-graduation-icon\"\nid=\"gdGraduationIcon\"\n></div>\n<div>\n<div class=\"gd-graduation-label\" id=\"gdExamLabel\">\nKIỂM TRA GIỮA HỌC KỲ\n</div>\n<h3 class=\"gd-graduation-title\" id=\"gdExamTitle\">\nPhòng thi giữa học kỳ\n</h3>\n<p class=\"gd-graduation-desc\" id=\"gdExamDesc\">\nĐang tải lịch mở phòng thi… Thời gian làm bài 90 phút.\n</p>\n<p\nclass=\"gd-exam-status\"\nid=\"gdExamStatus\"\n></p>\n</div>\n<a\nclass=\"gd-graduation-button gd-exam-button\"\nid=\"gdExamButton\"\nhref=\"https://www.thudao.com/p/ocd-phong-thi-tot-nghiep-graduation.html\"\n>\nVÀO PHÒNG THI\n</a>\n</div>\n<div class=\"gd-exam-admin\" id=\"gdExamAdmin\" hidden>\n<h4>⚙ Cài đặt phòng thi (chỉ TEST001 thấy)</h4>\n<div class=\"gd-ea-row\">\n<label class=\"gd-ea-switch\">\n<input type=\"checkbox\" id=\"gdEaEnabled\">\n<span class=\"gd-ea-knob\"></span>\n<span id=\"gdEaEnabledText\">ĐANG TẮT</span>\n</label>\n</div>\n<div class=\"gd-ea-row\">\n<b>Tên phòng</b>\n<label><input type=\"radio\" name=\"gdEaType\" value=\"midterm\" checked> Phòng thi giữa học kỳ</label>\n<label><input type=\"radio\" name=\"gdEaType\" value=\"graduation\"> Phòng thi tốt nghiệp</label>\n</div>\n<div class=\"gd-ea-row\">\n<b>Ngày mở</b>\n<input type=\"date\" id=\"gdEaDate\">\n<span>từ</span>\n<input type=\"time\" id=\"gdEaStart\" value=\"00:00\">\n<span>đến</span>\n<input type=\"time\" id=\"gdEaEnd\" value=\"23:59\">\n</div>\n<div class=\"gd-ea-row\">\n<b>Khoá được thi</b>\n<span class=\"gd-ea-courses\" id=\"gdEaCourses\"></span>\n<input type=\"text\" id=\"gdEaCourseExtra\" placeholder=\"Thêm khoá, vd: 4\" size=\"12\">\n</div>\n<p class=\"gd-ea-hint\">Không chọn khoá nào = mọi khoá đều được thi.</p>\n<div class=\"gd-ea-row\">\n<label><input type=\"checkbox\" id=\"gdEaExempt\" checked> Khoá được thi miễn điều kiện điểm trung bình / số bài nộp</label>\n</div>\n<div class=\"gd-ea-row\">\n<label><input type=\"checkbox\" id=\"gdEaNewRound\" checked> Đợt thi mới: bài đã làm trước ngày mở không tính (mỗi học viên được thi 1 lần trong đợt này)</label>\n</div>\n<p class=\"gd-ea-hint\">Thời gian làm bài và bộ câu hỏi giữ nguyên. Bật công tắc sẽ tự chọn ngày hôm nay.</p>\n<div class=\"gd-ea-actions\">\n<button type=\"button\" id=\"gdEaSave\">LƯU CÀI ĐẶT</button>\n<span class=\"gd-ea-msg\" id=\"gdEaMsg\"></span>\n</div>\n</div>\n<div class=\"gd-graduation-room gd-practice-room\">\n<div\nclass=\"gd-graduation-icon\"\nid=\"gdPracticeIcon\"\n></div>\n<div>\n<div class=\"gd-graduation-label\">\nLUYỆN TẬP NHÓM\n</div>\n<h3 class=\"gd-graduation-title\">\nPhòng Luyện Công\n</h3>\n<p class=\"gd-graduation-desc\">\nCùng đồng môn vào phòng, làm bộ đề riêng\nvà nhận thưởng theo thành tích chung.\n</p>\n</div>\n<a\nclass=\"gd-graduation-button gd-practice-button\"\nhref=\"https://www.thudao.com/p/luyen-cong.html\"\n>\nVÀO PHÒNG LUYỆN CÔNG\n</a>\n</div>\n<div class=\"gd-privacy-note\">\n<span id=\"gdPrivacyIcon\"></span>\n<span>\nMã học viên chỉ dùng để xác minh quyền vào lớp.\nGiảng đường không công khai mã học viên,\nđiểm số hoặc nội dung nhận xét.\n</span>\n</div>\n</section>\n<section class=\"gd-section gd-lammo-section\">\n<div class=\"gd-section-heading\">\n<div class=\"gd-section-kicker\">\nNHỊP SỐNG LỚP HỌC\n</div>\n<h2 class=\"gd-section-title\">\nĐóng góp Thư viện lâm mô\n</h2>\n<p class=\"gd-section-desc\">\nNhững bản lâm học viên vừa góp vào Thư viện lâm mô, kèm lượt thả tim của đồng môn.\n</p>\n</div>\n<div class=\"gd-activity-card\">\n<div class=\"gd-activity-toolbar gd-lammo-toolbar\">\n<div class=\"gd-lammo-intro\">\nGóp bản lâm của bạn để đồng môn cùng học và thả tim.\n</div>\n<div class=\"gd-lammo-actions\">\n<a\nid=\"gdLamMoCta\"\nclass=\"gd-lammo-cta\"\nhref=\"https://www.thudao.com/p/thu-vien-lam-mo.html\"\n>\n✍ Đóng góp ngay\n</a>\n<button\nid=\"gdRefreshActivity\"\nclass=\"gd-refresh-button\"\ntype=\"button\"\n>\n↻ Mới\n</button>\n</div>\n</div>\n<div\nid=\"gdActivityFeed\"\nclass=\"gd-activity-feed gd-lammo-grid\"\n>\n<div class=\"gd-empty\">\nĐang tải bản lâm mới đóng góp...\n</div>\n</div>\n<div\nid=\"gdLamMoStatus\"\nclass=\"gd-lammo-status\"\naria-live=\"polite\"\n></div>\n<div\nid=\"gdLoadMoreWrap\"\nclass=\"gd-load-more-wrap\"\n>\n<button\nid=\"gdLoadMore\"\nclass=\"gd-load-more\"\ntype=\"button\"\n>\nXEM THÊM BẢN LÂM\n</button>\n</div>\n</div>\n</section>\n</div>\n</div></div>",["(function(){var d=document,w=window;w.__tdpFriendly=function(I){var root=d.querySelector(\".tdp-page\");if(!root)return;var n=0,t=0;function floor(){n++;if(n>40)return;try{var els=root.querySelectorAll(\"*\"),i,el,fs;for(i=0;i<els.length;i++){el=els[i];if(el.__tdpF||!el.firstChild||el.firstChild.nodeType!==3||!el.firstChild.nodeValue.trim())continue;if(/^(SCRIPT|STYLE|SVG|CANVAS|OPTION)$/.test(el.tagName))continue;fs=parseFloat(getComputedStyle(el).fontSize);if(fs&&fs<15){el.style.fontSize=\"15px\"}el.__tdpF=1}}catch(e){}}floor();try{new MutationObserver(function(){clearTimeout(t);t=setTimeout(floor,600)}).observe(root,{childList:true,subtree:true})}catch(e){}};if(w.__tdpCsvCache||!w.fetch||!w.sessionStorage)return;w.__tdpCsvCache=1;var F=w.fetch,TTL=9e4,P=\"tdpcsv:\";function key(u){return P+String(u).replace(/[?&](_|cb|t|ts|nocache)=\\d+/g,\"\")}w.fetch=function(u,o){var url=typeof u===\"string\"?u:u&&u.url||\"\";if(!(o&&o.method&&o.method!==\"GET\")&&/^https:\\/\\/docs\\.google\\.com\\/spreadsheets\\/[^?]*(pub\\?|export\\?|gviz\\/)/.test(url)){var k=key(url),hit=null;try{hit=JSON.parse(sessionStorage.getItem(k)||\"null\")}catch(e){}if(hit&&Date.now()-hit.at<TTL)return Promise.resolve(new Response(hit.body,{status:200,headers:{\"Content-Type\":\"text/csv; charset=utf-8\",\"X-Tdp-Cache\":\"hit\"}}));return F.call(w,u,o).then(function(r){if(r.ok){r.clone().text().then(function(b){if(b.length<4e5){try{sessionStorage.setItem(k,JSON.stringify({at:Date.now(),body:b}))}catch(e){}}})}return r})}return F.call(w,u,o)}})();","var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:!0});(function(){\"use strict\";if(window.OCDIdentity)return;const CSS=\".ocdid{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;min-width:0;border-radius:14px}.ocdid.ocdid-has-bg{padding:6px 10px 6px 6px}.ocdid-bg{background-size:cover!important;background-position:center!important}.ocdid-av{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:var(--ocdid-s,48px);height:var(--ocdid-s,48px)}.ocdid-face{position:relative;z-index:1;width:80%;height:80%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:50%;background:#f3eee8;box-shadow:0 3px 9px rgba(15,23,42,.14);color:#8a6b50;font:700 calc(var(--ocdid-s,48px)*.36)/1 Georgia,'Times New Roman',serif}.ocdid-face img{display:block;width:100%;height:100%;object-fit:cover}.ocdid-frame{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.ocdid-txt{display:flex;flex-direction:column;min-width:0;gap:2px}.ocdid-namewrap{max-width:100%}.ocdid-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:100%;overflow:hidden;overflow-wrap:anywhere;font-weight:700;line-height:1.25;color:inherit}.ocdid-meta{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;opacity:.75}.ocdid-sm{--ocdid-s:36px}.ocdid-md{--ocdid-s:48px}.ocdid-lg{--ocdid-s:68px}.ocdid-sm .ocdid-name{font-size:13px}.ocdid-md .ocdid-name{font-size:15px}.ocdid-lg .ocdid-name{font-size:18px}.reward-multitask-wrap{position:relative;display:inline-flex;align-items:center;max-width:100%}.reward-multitask-name{position:relative;color:#f59e0b!important;animation:rewardMultitaskColor 2.8s linear infinite,rewardMultitaskGlow 1.6s ease-in-out infinite alternate}.reward-multitask-star{position:absolute;z-index:30;pointer-events:none;user-select:none;line-height:1;color:#fff;text-shadow:0 0 4px rgba(255,255,255,.9),0 0 8px rgba(251,191,36,.9);animation:rewardMultitaskStar 1.6s ease-in-out infinite}.reward-multitask-star-left{left:-17px;top:-11px}.reward-multitask-star-right{right:-18px;top:-9px;animation-delay:.35s}.reward-multitask-star-bottom-left{left:-10px;bottom:-12px;animation-delay:.7s}.reward-multitask-star-bottom-right{right:-12px;bottom:-11px;animation-delay:1.05s}.reward-multitask-size-small .reward-multitask-star{font-size:10px}.reward-multitask-size-medium .reward-multitask-star{font-size:13px}.reward-multitask-size-large .reward-multitask-star{font-size:16px}@keyframes rewardMultitaskColor{0%{color:#f59e0b}25%{color:#ec4899}50%{color:#8b5cf6}75%{color:#0ea5e9}to{color:#f59e0b}}@keyframes rewardMultitaskGlow{0%{text-shadow:0 0 3px rgba(245,158,11,.35)}to{text-shadow:0 0 6px rgba(255,255,255,.85),0 0 12px rgba(245,158,11,.75)}}@keyframes rewardMultitaskStar{0%,to{opacity:.25;transform:scale(.65) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(18deg)}}@media(prefers-reduced-motion:reduce){.reward-multitask-name,.reward-multitask-star{animation:none}}\",S={cache:new Map,loader:null,styled:!1};function injectCss(){if(S.styled||document.getElementById(\"ocdid-style\")){S.styled=!0;return}S.styled=!0;const st=document.createElement(\"style\");st.id=\"ocdid-style\",st.textContent=CSS,(document.head||document.documentElement).appendChild(st)}__name(injectCss,\"injectCss\");function rs(){return window.StudentRewardSystem||null}__name(rs,\"rs\");function normCode(code){const R=rs(),raw=String(code||\"\").replace(/[\\u200B-\\u200D\\uFEFF]/g,\"\").trim();if(R&&typeof R.normalizeCode==\"function\")try{return R.normalizeCode(raw)||raw.toUpperCase()}catch{}return raw.replace(/\\s+/g,\"\").toUpperCase()}__name(normCode,\"normCode\");function driveId(v){const s=String(v||\"\"),m=s.match(/\\/file\\/d\\/([^/?&#]+)/i)||s.match(/\\/d\\/([^/?&#]+)/i)||s.match(/[?&]id=([^&#]+)/i);return m?m[1]:\"\"}__name(driveId,\"driveId\");function imageUrl(value,size){const R=rs();if(!value)return\"\";if(R&&typeof R.convertDriveImageUrl==\"function\")try{const u=R.convertDriveImageUrl(value,size||200);if(u)return u}catch{}const id=driveId(value);if(id)return\"https://drive.google.com/thumbnail?id=\"+encodeURIComponent(id)+\"&sz=w\"+(size||200);const s=String(value).trim();return/^https:\\/\\//i.test(s)?s:\"\"}__name(imageUrl,\"imageUrl\");function letter(name){const words=String(name||\"\").trim().split(/\\s+/).filter(Boolean),last=words.length?words[words.length-1]:\"\";return last?last.charAt(0).toUpperCase():\"✍\"}__name(letter,\"letter\");function normalize(p){if(!p)return{avatar:\"\",frame:\"\",background:\"\",multitask:!1};const R=rs(),items=Array.isArray(p.ownedItems)?p.ownedItems:[],code=p.code||\"\";function pick(keys,getter){for(const k of keys)if(p[k])return p[k];if(getter&&R&&typeof R[getter]==\"function\"&&items.length)try{return R[getter](items,code)||\"\"}catch{}return\"\"}__name(pick,\"pick\");let multitask=!!(p.hasMultitaskPotion||p.multitask);if(!multitask&&R&&typeof R.hasMultitaskPotion==\"function\"&&items.length)try{multitask=!!R.hasMultitaskPotion(items)}catch{}return{avatar:pick([\"avatar\"],\"getProfileAvatar\"),frame:pick([\"avatarFrame\",\"frame\"],\"getProfileAvatarFrame\"),background:pick([\"profileBackground\",\"background\"],\"getProfileBackground\"),multitask}}__name(normalize,\"normalize\");function waitForCore(timeout){return new Promise(function(resolve){const started=Date.now();__name(function tick(){const R=rs();if(R&&typeof R.getStudentRewardProfile==\"function\"){resolve(R);return}if(Date.now()-started>(timeout||15e3)){resolve(null);return}setTimeout(tick,150)},\"tick\")()})}__name(waitForCore,\"waitForCore\");async function publicLook(code){const out={avatar:\"\",frame:\"\",background:\"\",multitask:!1};try{let icon=function(name){const g=name?map[norm(name)]:null;return g&&g.image?g.image:\"\"};__name(icon,\"icon\");const auth=window.OCDAuth,R=await waitForCore(5e3);if(!auth||typeof auth.lookOf!=\"function\"||!R)return out;const look=await auth.lookOf(code);if(!look)return out;const shared=typeof R.loadSharedRewardData==\"function\"?await R.loadSharedRewardData(!1):null,map=shared&&shared.giftMap?shared.giftMap:{},norm=typeof R.normalizeText==\"function\"?R.normalizeText:function(x){return String(x||\"\").trim().toLowerCase()};out.avatar=icon(look.avatar),out.frame=icon(look.frame),out.background=icon(look.bg)}catch{}return out}__name(publicLook,\"publicLook\");const PUBLIC_ACCESS={publicList:!0,ocdAuthBulk:!0};async function loadWithRetry(R,key){let last=null;for(let i=0;i<3;i++)try{return await R.getStudentRewardProfile(key,void 0,!1,PUBLIC_ACCESS)}catch(error){if(error&&error.code===\"STUDENT_PROTECTED\")throw error;last=error,await new Promise(function(r){setTimeout(r,1200*(i+1))})}throw last}__name(loadWithRetry,\"loadWithRetry\");function hasLook(p){return!!(p&&(p.avatar||p.frame||p.background||p.multitask))}__name(hasLook,\"hasLook\");function profile(code){const key=normCode(code);if(!key)return Promise.resolve(normalize(null));if(S.cache.has(key))return S.cache.get(key);const promise=async function(){let raw=null;try{if(S.loader)raw=await S.loader(key);else{const R=await waitForCore();R&&(raw=await loadWithRetry(R,key))}}catch(error){if(error&&error.code===\"STUDENT_PROTECTED\")return await publicLook(key);throw error}return!raw&&S.loader?await publicLook(key):normalize(raw)}().catch(function(error){return console.warn(\"[OCD Identity]\",key,error&&error.message?error.message:error),S.cache.delete(key),normalize(null)});return S.cache.set(key,promise),promise}__name(profile,\"profile\");function bgTarget(card){const t=card.__ocdidBg;return t===!1?null:t&&t.nodeType===1?t:card}__name(bgTarget,\"bgTarget\");function paint(card,data){if(!card||!card.querySelector)return card;const p=data&&\"multitask\"in data&&\"background\"in data?data:normalize(data);if(!hasLook(p)&&card.__ocdidHas)return card;card.__ocdidHas=hasLook(p);const face=card.querySelector(\".ocdid-face\"),av=card.querySelector(\".ocdid-av\"),nameWrap=card.querySelector(\".ocdid-namewrap\"),nameEl=card.querySelector(\".ocdid-name\"),name=card.__ocdidName||\"\";face.innerHTML=\"\";const avatar=imageUrl(p.avatar,200);if(avatar){const img=document.createElement(\"img\");img.src=avatar,img.alt=name||\"Học viên\",img.loading=\"lazy\",img.decoding=\"async\",img.onerror=function(){img.remove(),face.textContent=letter(name)},face.appendChild(img)}else face.textContent=letter(name);const oldFrame=av.querySelector(\".ocdid-frame\");oldFrame&&oldFrame.remove();const frame=imageUrl(p.frame,240);if(frame){const f=document.createElement(\"img\");f.className=\"ocdid-frame\",f.src=frame,f.alt=\"\",f.loading=\"lazy\",f.decoding=\"async\",f.onerror=function(){f.remove()},av.appendChild(f)}const target=bgTarget(card);if(target){const bg=imageUrl(p.background,900);target.classList.toggle(\"ocdid-bg\",!!bg),card.classList.toggle(\"ocdid-has-bg\",!!bg&&target===card),target.style.backgroundImage=bg?'linear-gradient(90deg,rgba(255,253,248,.9),rgba(255,253,248,.78)),url(\"'+bg.replace(/[\"\\\\]/g,\"\")+'\")':\"\"}const R=rs(),size=card.classList.contains(\"ocdid-lg\")?\"large\":card.classList.contains(\"ocdid-sm\")?\"small\":\"medium\";if(R&&typeof R.clearMultitaskEffect==\"function\")try{R.clearMultitaskEffect(nameWrap,nameEl)}catch{}if(p.multitask&&R&&typeof R.applyMultitaskEffect==\"function\")try{R.applyMultitaskEffect(nameWrap,nameEl,{size})}catch{}return card.classList.toggle(\"ocdid-multitask\",!!p.multitask),card.setAttribute(\"data-ocdid-ready\",\"1\"),card}__name(paint,\"paint\");function create(options){injectCss();const o=options||{},size=/^(sm|md|lg)$/.test(o.size)?o.size:\"md\",card=document.createElement(\"div\");card.className=\"ocdid ocdid-\"+size+(o.className?\" \"+o.className:\"\"),card.__ocdidName=o.name||\"Học viên\",card.__ocdidBg=o.background===void 0?!0:o.background,o.code&&card.setAttribute(\"data-ocdid-code\",normCode(o.code));const av=document.createElement(\"span\");av.className=\"ocdid-av\";const face=document.createElement(\"span\");face.className=\"ocdid-face\",face.textContent=letter(o.name),av.appendChild(face);const txt=document.createElement(\"span\");txt.className=\"ocdid-txt\";const nameWrap=document.createElement(\"span\");nameWrap.className=\"ocdid-namewrap\";const nameEl=document.createElement(\"b\");if(nameEl.className=\"ocdid-name\",nameEl.textContent=o.name||\"Học viên\",nameEl.title=o.name||\"\",nameWrap.appendChild(nameEl),txt.appendChild(nameWrap),o.meta){const meta=document.createElement(\"small\");meta.className=\"ocdid-meta\",meta.textContent=o.meta,txt.appendChild(meta)}card.append(av,txt);const given=o.profile?normalize(o.profile):null;return given&&paint(card,given),o.code&&!hasLook(given)&&profile(o.code).then(function(p){paint(card,p)}),card}__name(create,\"create\"),window.OCDIdentity={version:\"1.1.0\",create,paint,profile,normalize,imageUrl,setLoader:__name(function(fn){S.loader=typeof fn==\"function\"?fn:null},\"setLoader\"),prime:__name(function(code,raw){const key=normCode(code);key&&raw&&S.cache.set(key,Promise.resolve(normalize(raw)))},\"prime\")}})();","var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:!0});(function(){\"use strict\";const CONFIG={hoaBinhMeetUrl:\"https://meet.google.com/qoj-ozun-eyc\",hanhPhucMeetUrl:\"https://meet.google.com/qoj-ozun-eyc\",graduationExamUrl:\"https://www.thudao.com/p/ocd-phong-thi-tot-nghiep-graduation.html\",midtermExam:{start:\"2026-10-31T00:00:00+07:00\",end:\"2026-10-31T23:00:00+07:00\",testCodes:[\"TEST001\"],resultUrl:\"https://www.thudao.com/p/ket-qua-thi-tot-nghiep.html\",settingsUrl:\"https://script.google.com/macros/s/AKfycbx4VqQ3Ud6yu2gyDyGuQsoTthTwCX3P3e_FpNqx8Q0EF5hq9KPFYh5FQBxnRKLr9axh/exec\",adminCodes:[\"TEST001\"],examMinutes:90},practiceRoomUrl:\"https://www.thudao.com/p/luyen-cong.html\",banners:{HOABINH:\"https://drive.google.com/thumbnail?id=1PP0BBYcma0kFkio87aR4ld6dnuRWyP6o&sz=w1600\",HANHPHUC:\"https://drive.google.com/thumbnail?id=19GZP-3tKYLVE2l6uVeihhpnfVKAKaRE4&sz=w1600\"},studentDirectoryCsv:\"https://docs.google.com/spreadsheets/d/e/2PACX-1vRP5cc8duj1XrCXMrymo6Cj7aqIkWfX6bHxGeW-lXcSewfQXhM8fZ5rzbNIQ9mBeVuB8yYr_o1aBoYA/pub?gid=1603096683&single=true&output=csv\",legacyDirectoryCsv:\"https://docs.google.com/spreadsheets/d/e/2PACX-1vRP5cc8duj1XrCXMrymo6Cj7aqIkWfX6bHxGeW-lXcSewfQXhM8fZ5rzbNIQ9mBeVuB8yYr_o1aBoYA/pub?gid=1326884435&single=true&output=csv\",prioritySpreadsheetId:\"1hLNi_OP6ScSz8OUH-Qj7qc5LTTPAHevZQg9MvFBvVro\",prioritySheetName:\"MaHocVien\",submissionCsv:\"https://docs.google.com/spreadsheets/d/e/2PACX-1vRP5cc8duj1XrCXMrymo6Cj7aqIkWfX6bHxGeW-lXcSewfQXhM8fZ5rzbNIQ9mBeVuB8yYr_o1aBoYA/pub?output=csv\",rewardSpreadsheetId:\"1-IkcpEkKQtIavl5DIf6Sbwx3p0aAfnSS4HjT6dn1u_E\",teacherGiftSheetName:\"QuaTangGVCN\",rooms:{HOABINH:{allowedSuffixes:[\"01\",\"02\",\"03\"],displayName:\"Phòng học Hoà Bình\"},HANHPHUC:{allowedSuffixes:[\"01\",\"02\",\"03\",\"04\"],displayName:\"Phòng học Hạnh Phúc\"}},schedules:{HOABINH:{dayOfWeek:5,startHour:19,startMinute:0,endHour:21,endMinute:0},HANHPHUC:{dayOfWeek:6,startHour:19,startMinute:0,endHour:21,endMinute:0}},timeZone:\"Asia/Ho_Chi_Minh\",liveMeetStatus:{enabled:!1,endpoint:\"\",refreshInterval:6e4},activityPageSize:8,maxActivities:80,activityRefreshInterval:12e4,requestTimeout:12e3},ICON={roomHoaBinh:String.fromCodePoint(128330,65039),roomHanhPhuc:String.fromCodePoint(127800),graduation:String.fromCodePoint(127891),practice:String.fromCodePoint(129355),lock:String.fromCodePoint(128272),submission:String.fromCodePoint(128221),grade:String.fromCodePoint(9997,65039),comment:String.fromCodePoint(128172),gift:String.fromCodePoint(127873),video:String.fromCodePoint(127909),check:String.fromCodePoint(10003),book:String.fromCodePoint(128218)},CHAR={dash:String.fromCodePoint(8211),bullet:String.fromCodePoint(8226)},state={directory:null,directoryPromise:null,legacyDirectory:null,legacyDirectoryPromise:null,priorityCodes:null,priorityPromise:null,activities:[],activityFilter:\"all\",visibleActivityCount:CONFIG.activityPageSize,loadingActivity:!1,activityTimer:null,statusTimer:null},minhHongState={studentCode:\"\",studentName:\"\",group:\"\",course:\"\",studentStatus:\"\",identitySource:\"\",priorityStudent:!1,selectedRoom:\"\",assignedRoom:\"\",verified:!1,correctRoom:!1,wrongRoom:!1,accessGranted:!1,roomLive:!1,meetReady:!1,lastReason:\"\"};function el(id){return document.getElementById(id)}__name(el,\"el\");function clean(value){return String(value??\"\").trim()}__name(clean,\"clean\");function normalizeText(value){return clean(value).toLowerCase().normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").replace(/đ/g,\"d\").replace(/\\s+/g,\" \")}__name(normalizeText,\"normalizeText\");function normalizeCode(value){return clean(value).toUpperCase().replace(/\\s+/g,\"\")}__name(normalizeCode,\"normalizeCode\");function normalizeStatus(value){return normalizeCode(value)}__name(normalizeStatus,\"normalizeStatus\");function initUI(){el(\"gdRoomIconHOABINH\")&&(el(\"gdRoomIconHOABINH\").textContent=ICON.roomHoaBinh),el(\"gdRoomIconHANHPHUC\")&&(el(\"gdRoomIconHANHPHUC\").textContent=ICON.roomHanhPhuc),el(\"gdGraduationIcon\")&&(el(\"gdGraduationIcon\").textContent=ICON.graduation),el(\"gdPracticeIcon\")&&(el(\"gdPracticeIcon\").textContent=ICON.practice),el(\"gdPrivacyIcon\")&&(el(\"gdPrivacyIcon\").textContent=ICON.lock),el(\"gdFilterSubmissionIcon\")&&(el(\"gdFilterSubmissionIcon\").textContent=ICON.submission),el(\"gdFilterGradeIcon\")&&(el(\"gdFilterGradeIcon\").textContent=ICON.grade),el(\"gdFilterCommentIcon\")&&(el(\"gdFilterCommentIcon\").textContent=ICON.comment),el(\"gdFilterGiftIcon\")&&(el(\"gdFilterGiftIcon\").textContent=ICON.gift),el(\"gdBannerHOABINH\")&&(el(\"gdBannerHOABINH\").src=CONFIG.banners.HOABINH),el(\"gdBannerHANHPHUC\")&&(el(\"gdBannerHANHPHUC\").src=CONFIG.banners.HANHPHUC);const graduationButton=document.querySelector(\"#lectureHallPage .gd-graduation-button\");graduationButton&&(graduationButton.href=CONFIG.graduationExamUrl),updateMidtermButton(),setInterval(updateMidtermButton,3e4),loadExamSettings(),setInterval(loadExamSettings,18e4),window.addEventListener(\"ocdAuthChanged\",function(){setTimeout(updateMidtermButton,50)});const practiceButton=document.querySelector(\"#lectureHallPage .gd-practice-button\");practiceButton&&(practiceButton.href=CONFIG.practiceRoomUrl)}__name(initUI,\"initUI\");function parseCSV(text){text=String(text||\"\").replace(/^\\uFEFF/,\"\");const rows=[];let row=[],value=\"\",quoted=!1;for(let i=0;i<text.length;i++){const char=text[i];if(char==='\"'){quoted&&text[i+1]==='\"'?(value+='\"',i++):quoted=!quoted;continue}if(char===\",\"&&!quoted){row.push(value),value=\"\";continue}if((char===`\n`||char===\"\\r\")&&!quoted){char===\"\\r\"&&text[i+1]===`\n`&&i++,row.push(value),row.some(function(cell){return clean(cell)!==\"\"})&&rows.push(row),row=[],value=\"\";continue}value+=char}return row.push(value),row.some(function(cell){return clean(cell)!==\"\"})&&rows.push(row),rows}__name(parseCSV,\"parseCSV\");function findColumn(headers,aliases){const normalized=(headers||[]).map(normalizeText);for(const alias of aliases){const wanted=normalizeText(alias),exact=normalized.indexOf(wanted);if(exact>=0)return exact}for(const alias of aliases){const wanted=normalizeText(alias),found=normalized.findIndex(function(header){return header&&header.includes(wanted)});if(found>=0)return found}return-1}__name(findColumn,\"findColumn\");async function fetchText(url){const controller=typeof AbortController<\"u\"?new AbortController:null,timer=controller?setTimeout(function(){controller.abort()},CONFIG.requestTimeout):null;try{const response=await fetch(url,{cache:\"no-store\",signal:controller?controller.signal:void 0});if(!response.ok)throw new Error(\"HTTP \"+response.status);return await response.text()}finally{timer&&clearTimeout(timer)}}__name(fetchText,\"fetchText\");function detectDirectoryColumns(headers){return{code:findColumn(headers,[\"Mã học viên\",\"Ma hoc vien\",\"Mã HV\",\"Ma HV\",\"Số báo danh\",\"So bao danh\",\"SBD\"]),name:findColumn(headers,[\"Họ và tên\",\"Ho va ten\",\"Họ tên\",\"Ho ten\",\"Tên học viên\",\"Ten hoc vien\"]),group:findColumn(headers,[\"Tổ\",\"To\"]),course:findColumn(headers,[\"Khoá\",\"Khóa\",\"Khoa\"]),status:findColumn(headers,[\"Trạng thái\",\"Trang thai\",\"Status\"])}}__name(detectDirectoryColumns,\"detectDirectoryColumns\");function mapDirectoryRows(rows){const result=new Map;if(!rows||rows.length<2)return result;const columns=detectDirectoryColumns(rows[0]);if(columns.code<0)throw new Error(\"Không tìm thấy cột Mã học viên trong HocVien.\");for(let i=1;i<rows.length;i++){const row=rows[i],code=normalizeCode(row[columns.code]);code&&result.set(code,{code,name:columns.name>=0?clean(row[columns.name]):\"\",group:columns.group>=0?clean(row[columns.group]):\"\",course:columns.course>=0?clean(row[columns.course]):\"\",status:columns.status>=0?normalizeStatus(row[columns.status]):\"\",legacy:!1})}return result}__name(mapDirectoryRows,\"mapDirectoryRows\");async function loadDirectory(){if(state.directory)return state.directory;if(state.directoryPromise)return state.directoryPromise;state.directoryPromise=async function(){const text=await fetchText(CONFIG.studentDirectoryCsv),directory=mapDirectoryRows(parseCSV(text));if(!directory.size)throw new Error(\"Danh sách HocVien trống.\");return state.directory=directory,directory}();try{return await state.directoryPromise}finally{state.directoryPromise=null}}__name(loadDirectory,\"loadDirectory\");function detectLegacyDirectoryColumns(headers){return{code:findColumn(headers,[\"Mã học viên\",\"Ma hoc vien\",\"Mã HV\",\"Ma HV\",\"Số báo danh\",\"So bao danh\",\"SBD\"]),name:findColumn(headers,[\"Họ và tên\",\"Ho va ten\",\"Họ tên\",\"Ho ten\",\"Tên học viên\",\"Ten hoc vien\"])}}__name(detectLegacyDirectoryColumns,\"detectLegacyDirectoryColumns\");function mapLegacyDirectoryRows(rows){const result=new Map;if(!rows||rows.length<2)return result;const columns=detectLegacyDirectoryColumns(rows[0]);if(columns.code<0)throw new Error(\"Không tìm thấy cột Mã học viên trong XepHang.\");for(let i=1;i<rows.length;i++){const row=rows[i],code=normalizeCode(row[columns.code]);code&&result.set(code,{code,name:columns.name>=0?clean(row[columns.name]):\"\",group:\"\",course:\"\",status:\"\",legacy:!0})}return result}__name(mapLegacyDirectoryRows,\"mapLegacyDirectoryRows\");async function loadLegacyDirectory(){if(state.legacyDirectory)return state.legacyDirectory;if(state.legacyDirectoryPromise)return state.legacyDirectoryPromise;state.legacyDirectoryPromise=async function(){const text=await fetchText(CONFIG.legacyDirectoryCsv),directory=mapLegacyDirectoryRows(parseCSV(text));return state.legacyDirectory=directory,directory}();try{return await state.legacyDirectoryPromise}finally{state.legacyDirectoryPromise=null}}__name(loadLegacyDirectory,\"loadLegacyDirectory\");function getStudentStatusMessage(student){if(!student)return{allowed:!1,type:\"error\",text:\"Không tìm thấy Mã học viên này trong hệ thống.\"};const status=normalizeStatus(student.status);return status===\"ACTIVE\"||status===\"\"?{allowed:!0,type:\"success\",text:\"\"}:status===\"PENDING\"?{allowed:!1,type:\"warning\",text:\"Mã học viên này chưa được kích hoạt.\"}:status===\"PAUSED\"?{allowed:!1,type:\"warning\",text:\"Mã học viên này hiện đang tạm dừng.\"}:status===\"GRADUATED\"?{allowed:!1,type:\"warning\",text:\"Mã học viên này đã chuyển sang trạng thái tốt nghiệp.\"}:{allowed:!1,type:\"warning\",text:\"Mã học viên hiện không ở trạng thái hoạt động.\"}}__name(getStudentStatusMessage,\"getStudentStatusMessage\");function priorityCsvUrl(){return\"https://docs.google.com/spreadsheets/d/\"+CONFIG.prioritySpreadsheetId+\"/gviz/tq?tqx=out:csv&sheet=\"+encodeURIComponent(CONFIG.prioritySheetName)+\"&cb=\"+Date.now()}__name(priorityCsvUrl,\"priorityCsvUrl\");function mapPriorityCodes(rows){const result=new Set,ignoredHeaders=new Set([\"MAHOCVIEN\",\"MAHV\",\"SBD\",\"SOBAODANH\",\"STT\",\"HOTEN\",\"HOVATEN\"]);return(rows||[]).forEach(function(row){(row||[]).forEach(function(cell){const value=normalizeCode(cell);if(!value)return;const headerKey=normalizeText(value).replace(/[^a-z0-9]/g,\"\").toUpperCase();ignoredHeaders.has(headerKey)||result.add(value)})}),result}__name(mapPriorityCodes,\"mapPriorityCodes\");async function loadPriorityCodes(){if(state.priorityCodes)return state.priorityCodes;if(state.priorityPromise)return state.priorityPromise;state.priorityPromise=async function(){const text=await fetchText(priorityCsvUrl()),codes=mapPriorityCodes(parseCSV(text));return state.priorityCodes=codes,codes}();try{return await state.priorityPromise}finally{state.priorityPromise=null}}__name(loadPriorityCodes,\"loadPriorityCodes\");async function isPriorityStudent(code){if(code=normalizeCode(code),!code)return!1;try{return(await loadPriorityCodes()).has(code)}catch(error){return console.warn(\"[Giang Duong Priority]\",error),!1}}__name(isPriorityStudent,\"isPriorityStudent\");function roomForCode(code,preferredRoom){return code=normalizeCode(code),preferredRoom===\"HANHPHUC\"&&CONFIG.rooms.HANHPHUC.allowedSuffixes.some(function(suffix){return code.endsWith(suffix)})?\"HANHPHUC\":CONFIG.rooms.HOABINH.allowedSuffixes.some(function(suffix){return code.endsWith(suffix)})?\"HOABINH\":CONFIG.rooms.HANHPHUC.allowedSuffixes.some(function(suffix){return code.endsWith(suffix)})?\"HANHPHUC\":\"\"}__name(roomForCode,\"roomForCode\");function getVietnamTime(){const parts=new Intl.DateTimeFormat(\"en-US\",{timeZone:CONFIG.timeZone,weekday:\"short\",hour:\"2-digit\",minute:\"2-digit\",hourCycle:\"h23\"}).formatToParts(new Date),data={};return parts.forEach(function(part){data[part.type]=part.value}),{day:{Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6}[data.weekday],hour:Number(data.hour),minute:Number(data.minute)}}__name(getVietnamTime,\"getVietnamTime\");function isRoomScheduledLive(room){const schedule=CONFIG.schedules[room],now=getVietnamTime();if(now.day!==schedule.dayOfWeek)return!1;const current=now.hour*60+now.minute,start2=schedule.startHour*60+schedule.startMinute,end=schedule.endHour*60+schedule.endMinute;return current>=start2&&current<end}__name(isRoomScheduledLive,\"isRoomScheduledLive\");async function loadRealMeetStatus(){if(!CONFIG.liveMeetStatus.enabled||!CONFIG.liveMeetStatus.endpoint)return null;try{const text=await fetchText(CONFIG.liveMeetStatus.endpoint),data=JSON.parse(text);return{HOABINH:!!data.HOABINH,HANHPHUC:!!data.HANHPHUC}}catch{return null}}__name(loadRealMeetStatus,\"loadRealMeetStatus\");function setRoomStatus(room,active){const roomElement=el(\"gdRoom\"+room),badge=el(\"gdStatus\"+room),text=el(\"gdStatusText\"+room);roomElement&&roomElement.classList.toggle(\"live\",active),badge&&badge.classList.toggle(\"live\",active),text&&(text.textContent=active?\"ĐANG HOẠT ĐỘNG\":\"CHƯA HOẠT ĐỘNG\")}__name(setRoomStatus,\"setRoomStatus\");function getMinhHongContextAPI(){const api=window.OCDMinhHongContext;return api&&typeof api.set==\"function\"?api:null}__name(getMinhHongContextAPI,\"getMinhHongContextAPI\");function getMinhHongSessionAPI(){const api=window.OCDStudentSession;return api&&typeof api.confirmStudent==\"function\"?api:null}__name(getMinhHongSessionAPI,\"getMinhHongSessionAPI\");function confirmMinhHongStudent(code){if(code=normalizeCode(code),!code)return;const api=getMinhHongSessionAPI();if(api)try{api.confirmStudent(code,\"GiangDuong\")}catch(error){console.warn(\"[Giang Duong Minh Hong Session]\",error)}}__name(confirmMinhHongStudent,\"confirmMinhHongStudent\");function resetMinhHongState(){minhHongState.studentCode=\"\",minhHongState.studentName=\"\",minhHongState.group=\"\",minhHongState.course=\"\",minhHongState.studentStatus=\"\",minhHongState.identitySource=\"\",minhHongState.priorityStudent=!1,minhHongState.selectedRoom=\"\",minhHongState.assignedRoom=\"\",minhHongState.verified=!1,minhHongState.correctRoom=!1,minhHongState.wrongRoom=!1,minhHongState.accessGranted=!1,minhHongState.roomLive=!1,minhHongState.meetReady=!1,minhHongState.lastReason=\"\"}__name(resetMinhHongState,\"resetMinhHongState\");function setMinhHongStudent(student,source){student=student||{},minhHongState.studentName=clean(student.name),minhHongState.group=clean(student.group),minhHongState.course=clean(student.course),minhHongState.studentStatus=clean(student.status),minhHongState.identitySource=clean(source)}__name(setMinhHongStudent,\"setMinhHongStudent\");function getRoomLiveState(room){if(!room)return!1;const badge=el(\"gdStatus\"+room);return!!(badge&&badge.classList.contains(\"live\"))}__name(getRoomLiveState,\"getRoomLiveState\");function buildMinhHongContext(){const selectedRoom=minhHongState.selectedRoom,assignedRoom=minhHongState.assignedRoom,selectedRoomName=selectedRoom&&CONFIG.rooms[selectedRoom]?CONFIG.rooms[selectedRoom].displayName:\"\",assignedRoomName=assignedRoom&&CONFIG.rooms[assignedRoom]?CONFIG.rooms[assignedRoom].displayName:\"\";return{page:\"GiangDuong\",studentCode:minhHongState.studentCode,data:{studentName:minhHongState.studentName,group:minhHongState.group,course:minhHongState.course,studentStatus:minhHongState.studentStatus,identitySource:minhHongState.identitySource,priorityStudent:minhHongState.priorityStudent,selectedRoom,selectedRoomName,assignedRoom,assignedRoomName,roomLive:minhHongState.roomLive,meetReady:minhHongState.meetReady,accessGranted:minhHongState.accessGranted,lastReason:minhHongState.lastReason},conditions:{student_verified:minhHongState.verified,priority_student:minhHongState.priorityStudent,room_hoabinh:assignedRoom===\"HOABINH\",room_hanhphuc:assignedRoom===\"HANHPHUC\",selected_hoabinh:selectedRoom===\"HOABINH\",selected_hanhphuc:selectedRoom===\"HANHPHUC\",correct_room:minhHongState.correctRoom,wrong_room:minhHongState.wrongRoom,room_live:minhHongState.roomLive,room_closed:minhHongState.verified&&minhHongState.correctRoom&&!minhHongState.roomLive,meet_ready:minhHongState.meetReady,meet_missing:minhHongState.verified&&minhHongState.correctRoom&&!minhHongState.meetReady,access_granted:minhHongState.accessGranted,access_denied:minhHongState.verified&&!minhHongState.accessGranted,legacy_student:minhHongState.identitySource===\"XepHang\",registry_student:minhHongState.identitySource===\"HocVien\"}}}__name(buildMinhHongContext,\"buildMinhHongContext\");function syncMinhHongContext(){if(!minhHongState.studentCode||!minhHongState.verified)return!1;const api=getMinhHongContextAPI();if(!api)return!1;try{return api.set(buildMinhHongContext(),\"GiangDuong\"),!0}catch(error){return console.warn(\"[Giang Duong Minh Hong Context]\",error),!1}}__name(syncMinhHongContext,\"syncMinhHongContext\");function syncMinhHongContextLater(attempt){attempt=Number(attempt||0),!syncMinhHongContext()&&(attempt>=12||setTimeout(function(){syncMinhHongContextLater(attempt+1)},250))}__name(syncMinhHongContextLater,\"syncMinhHongContextLater\");function refreshMinhHongRoomState(){if(!minhHongState.verified||!minhHongState.selectedRoom)return;minhHongState.roomLive=getRoomLiveState(minhHongState.selectedRoom);const config=getRoomConfig(minhHongState.selectedRoom);minhHongState.meetReady=!!(config&&clean(config.meetUrl)),minhHongState.correctRoom&&(minhHongState.lastReason=minhHongState.roomLive?\"room_live\":\"room_closed\"),syncMinhHongContext()}__name(refreshMinhHongRoomState,\"refreshMinhHongRoomState\");async function updateRoomStatuses(){const realStatus=await loadRealMeetStatus(),hoaBinhActive=isRoomScheduledLive(\"HOABINH\")||!!(realStatus&&realStatus.HOABINH),hanhPhucActive=isRoomScheduledLive(\"HANHPHUC\")||!!(realStatus&&realStatus.HANHPHUC);setRoomStatus(\"HOABINH\",hoaBinhActive),setRoomStatus(\"HANHPHUC\",hanhPhucActive);const header=el(\"gdHeaderStatus\"),headerText=el(\"gdHeaderStatusText\"),anyActive=hoaBinhActive||hanhPhucActive;header&&header.classList.toggle(\"live\",anyActive),headerText&&(hoaBinhActive&&hanhPhucActive?headerText.textContent=\"Cả hai phòng học đang hoạt động\":hoaBinhActive?headerText.textContent=\"Phòng học Hoà Bình đang hoạt động\":hanhPhucActive?headerText.textContent=\"Phòng học Hạnh Phúc đang hoạt động\":headerText.textContent=\"Hoà Bình: Thứ Sáu 19:00\"+CHAR.dash+\"21:00 \"+CHAR.bullet+\" Hạnh Phúc: Thứ Bảy 19:00\"+CHAR.dash+\"21:00\"),refreshMinhHongRoomState()}__name(updateRoomStatuses,\"updateRoomStatuses\");function getRoomConfig(room){return{room,displayName:CONFIG.rooms[room].displayName,meetUrl:room===\"HOABINH\"?CONFIG.hoaBinhMeetUrl:CONFIG.hanhPhucMeetUrl,input:el(\"gdCode\"+room),button:el(\"gdVerify\"+room),message:el(\"gdMessage\"+room),access:el(\"gdMeetAccess\"+room)}}__name(getRoomConfig,\"getRoomConfig\");function setRoomMessage(config,type,text){config.message&&(config.message.className=\"gd-room-message show \"+type,config.message.textContent=text)}__name(setRoomMessage,\"setRoomMessage\");function clearRoom(config){config.access&&(config.access.classList.remove(\"show\"),config.access.replaceChildren()),config.message&&(config.message.className=\"gd-room-message\",config.message.textContent=\"\")}__name(clearRoom,\"clearRoom\");function showMeetAccess(config,student){if(!config.access)return;if(config.access.replaceChildren(),!clean(config.meetUrl)){setRoomMessage(config,\"warning\",\"Mã học viên hợp lệ. Giáo viên chưa cài link Google Meet cho phòng này.\");return}const link=document.createElement(\"a\");link.className=\"gd-meet-button\",link.href=config.meetUrl,link.target=\"_blank\",link.rel=\"noopener noreferrer\",link.textContent=ICON.video+\" VÀO \"+config.displayName.toUpperCase();const note=document.createElement(\"div\");note.className=\"gd-meet-small\",student&&clean(student.name)?note.textContent=student.name+\" - Mã học viên đã được xác minh.\":note.textContent=\"Mã học viên đã được xác minh.\",config.access.appendChild(link),config.access.appendChild(note),config.access.classList.add(\"show\")}__name(showMeetAccess,\"showMeetAccess\");async function verifyStudent(room){const config=getRoomConfig(room);if(!config.input||!config.button)return;const code=normalizeCode(config.input.value);if(config.input.value=code,clearRoom(config),resetMinhHongState(),minhHongState.studentCode=code,minhHongState.selectedRoom=room,minhHongState.roomLive=getRoomLiveState(room),minhHongState.meetReady=!!clean(config.meetUrl),!code){setRoomMessage(config,\"error\",\"Vui lòng nhập Mã học viên.\"),config.input.focus();return}config.button.disabled=!0,setRoomMessage(config,\"loading\",\"Đang xác minh Mã học viên...\");try{try{const rewardSystem=window.StudentRewardSystem;if(!rewardSystem||typeof rewardSystem.assertStudentActive!=\"function\")throw new Error(\"Hệ thống trạng thái học viên chưa sẵn sàng.\");await rewardSystem.assertStudentActive(code,{forceRefresh:!0})}catch(accessError){console.warn(\"[Giang Duong Student Status Gate]\",accessError),setRoomMessage(config,\"warning\",clean(accessError&&accessError.message)||\"Tài khoản học viên đang tạm dừng hoặc chưa được kích hoạt.\");return}if(await isPriorityStudent(code)){minhHongState.priorityStudent=!0,minhHongState.verified=!0,minhHongState.correctRoom=!0,minhHongState.wrongRoom=!1,minhHongState.assignedRoom=room,minhHongState.accessGranted=!0,minhHongState.identitySource=\"Priority\",minhHongState.lastReason=minhHongState.roomLive?\"room_live\":\"room_closed\",confirmMinhHongStudent(code),setRoomMessage(config,\"success\",ICON.check+\" Xác minh thành công. Bạn có thể vào phòng học.\"),showMeetAccess(config,null),syncMinhHongContextLater(0);return}let registryStudent=null;try{registryStudent=(await loadDirectory()).get(code)||null}catch(registryError){console.error(\"[Giang Duong HocVien]\",registryError),setRoomMessage(config,\"error\",\"Chưa thể kết nối danh sách học viên. Vui lòng thử lại.\");return}let student=null;if(registryStudent){const accessStatus=getStudentStatusMessage(registryStudent);if(!accessStatus.allowed){setRoomMessage(config,accessStatus.type,accessStatus.text);return}student=registryStudent,setMinhHongStudent(student,\"HocVien\")}else{let legacyDirectory;try{legacyDirectory=await loadLegacyDirectory()}catch(legacyError){console.error(\"[Giang Duong XepHang]\",legacyError),setRoomMessage(config,\"error\",\"Chưa thể kiểm tra dữ liệu học viên cũ. Vui lòng thử lại.\");return}const legacyStudent=legacyDirectory.get(code);if(!legacyStudent){setRoomMessage(config,\"error\",\"Không tìm thấy Mã học viên này trong hệ thống.\");return}student=legacyStudent,setMinhHongStudent(student,\"XepHang\")}minhHongState.verified=!0,confirmMinhHongStudent(code);const correctRoom=roomForCode(code,room);if(minhHongState.assignedRoom=correctRoom,!correctRoom){minhHongState.correctRoom=!1,minhHongState.wrongRoom=!1,minhHongState.accessGranted=!1,minhHongState.lastReason=\"room_not_assigned\",setRoomMessage(config,\"error\",\"Mã học viên hợp lệ nhưng chưa được phân quyền vào hai phòng học hiện tại.\"),syncMinhHongContextLater(0);return}if(correctRoom!==room){minhHongState.correctRoom=!1,minhHongState.wrongRoom=!0,minhHongState.accessGranted=!1,minhHongState.lastReason=\"wrong_room\",setRoomMessage(config,\"warning\",\"Mã học viên này thuộc \"+CONFIG.rooms[correctRoom].displayName+\". Vui lòng chọn đúng phòng học.\"),syncMinhHongContextLater(0);return}minhHongState.correctRoom=!0,minhHongState.wrongRoom=!1,minhHongState.accessGranted=!0,minhHongState.roomLive=getRoomLiveState(room),minhHongState.meetReady=!!clean(config.meetUrl),minhHongState.lastReason=minhHongState.roomLive?\"room_live\":\"room_closed\";const studentName=clean(student&&student.name);setRoomMessage(config,\"success\",ICON.check+\" Xác minh thành công\"+(studentName?\": \"+studentName+\".\":\".\")+\" Bạn có thể vào phòng học.\"),showMeetAccess(config,student),syncMinhHongContextLater(0)}catch(error){console.error(\"[Giang Duong v1.7.0 Verify]\",error),setRoomMessage(config,\"error\",\"Chưa thể kết nối dữ liệu học viên. Vui lòng thử lại.\")}finally{config.button.disabled=!1}}__name(verifyStudent,\"verifyStudent\");function getStudentName(code,fallback){if(fallback=clean(fallback),fallback)return fallback;if(code=normalizeCode(code),state.directory&&state.directory.has(code)){const student=state.directory.get(code);if(student&&student.name)return student.name}if(state.legacyDirectory&&state.legacyDirectory.has(code)){const student=state.legacyDirectory.get(code);if(student&&student.name)return student.name}return\"Một học viên\"}__name(getStudentName,\"getStudentName\");function parseDate(value){if(value=clean(value),!value)return null;let match=value.match(/^(\\d{1,2})[\\/\\-](\\d{1,2})[\\/\\-](\\d{4})[\\s,T]+(\\d{1,2}):(\\d{2})(?::(\\d{2}))?/);if(match){const date=new Date(Number(match[3]),Number(match[2])-1,Number(match[1]),Number(match[4]),Number(match[5]),Number(match[6]||0));if(!Number.isNaN(date.getTime()))return date}const nativeDate=new Date(value);return Number.isNaN(nativeDate.getTime())?null:nativeDate}__name(parseDate,\"parseDate\");function relativeTime(date){if(!date)return\"Gần đây\";const diff=Date.now()-date.getTime(),minute=6e4,hour=minute*60,day=hour*24;return diff<minute?\"Vừa xong\":diff<hour?Math.floor(diff/minute)+\" phút trước\":diff<day?Math.floor(diff/hour)+\" giờ trước\":diff<day*7?Math.floor(diff/day)+\" ngày trước\":date.toLocaleDateString(\"vi-VN\")}__name(relativeTime,\"relativeTime\");function detectSubmissionColumns(headers){return{time:findColumn(headers,[\"Dấu thời gian\",\"Timestamp\",\"Thời gian nộp\",\"Thời gian\"]),code:findColumn(headers,[\"Mã học viên\",\"Mã HV\",\"Số báo danh\",\"SBD\"]),name:findColumn(headers,[\"Họ và tên\",\"Họ tên\",\"Tên học viên\"]),score:findColumn(headers,[\"Điểm số\",\"Điểm\"]),comment:findColumn(headers,[\"Nhận xét\",\"Bình luận\"])}}__name(detectSubmissionColumns,\"detectSubmissionColumns\");function mapSubmissionActivities(rows){const result=[];if(rows.length<2)return result;const columns=detectSubmissionColumns(rows[0]);for(let i=1;i<rows.length;i++){const row=rows[i],code=columns.code>=0?clean(row[columns.code]):\"\",rawName=columns.name>=0?clean(row[columns.name]):\"\";if(!code&&!rawName)continue;const name=getStudentName(code,rawName),date=columns.time>=0?parseDate(row[columns.time]):null;result.push({type:\"submission\",name,date,reliable:!0}),columns.score>=0&&clean(row[columns.score])&&result.push({type:\"grade\",name,date,reliable:!1}),columns.comment>=0&&clean(row[columns.comment])&&result.push({type:\"comment\",name,date,reliable:!1})}return result}__name(mapSubmissionActivities,\"mapSubmissionActivities\");function giftCsvUrl(){return\"https://docs.google.com/spreadsheets/d/\"+CONFIG.rewardSpreadsheetId+\"/gviz/tq?tqx=out:csv&sheet=\"+encodeURIComponent(CONFIG.teacherGiftSheetName)}__name(giftCsvUrl,\"giftCsvUrl\");function mapGiftActivities(rows){const result=[];if(rows.length<2)return result;const headers=rows[0],timeColumn=findColumn(headers,[\"Dấu thời gian\",\"Timestamp\",\"Thời gian\",\"Ngày tặng\"]),codeColumn=findColumn(headers,[\"Mã học viên\",\"Mã HV\",\"Số báo danh\",\"SBD\"]),nameColumn=findColumn(headers,[\"Họ và tên\",\"Họ tên\",\"Tên học viên\"]);for(let i=1;i<rows.length;i++){const row=rows[i],code=codeColumn>=0?clean(row[codeColumn]):\"\",rawName=nameColumn>=0?clean(row[nameColumn]):\"\";!code&&!rawName||result.push({type:\"gift\",name:getStudentName(code,rawName),date:timeColumn>=0?parseDate(row[timeColumn]):null,reliable:timeColumn>=0})}return result}__name(mapGiftActivities,\"mapGiftActivities\");function activityInfo(type){switch(type){case\"submission\":return{icon:ICON.submission,label:\"Nộp bài\",action:\"vừa tải lên một bài tập mới.\"};case\"grade\":return{icon:ICON.grade,label:\"Chấm bài\",action:\"vừa được giáo viên hoàn thành chấm bài.\"};case\"comment\":return{icon:ICON.comment,label:\"Bình luận\",action:\"vừa được giáo viên bình luận bài.\"};case\"gift\":return{icon:ICON.gift,label:\"Tặng quà\",action:\"vừa nhận được một phần quà.\"}}return{icon:ICON.book,label:\"Hoạt động\",action:\"vừa có hoạt động mới.\"}}__name(activityInfo,\"activityInfo\");function buildActivityNode(activity){const card=document.createElement(\"article\");card.className=\"gd-lammo-card\";const photo=document.createElement(\"button\");if(photo.type=\"button\",photo.className=\"gd-lammo-photo\",photo.setAttribute(\"aria-label\",\"Xem lớn bản lâm của \"+activity.name),activity.photo){const img=document.createElement(\"img\");img.loading=\"lazy\",img.decoding=\"async\",img.alt=\"Bản lâm của \"+activity.name,img.src=lamMoImageUrl(activity.photo,600),img.addEventListener(\"error\",function(){img.dataset.retry?(img.remove(),photo.classList.add(\"is-error\")):(img.dataset.retry=\"1\",img.src=lamMoImageUrl(activity.photo,600,!0))}),photo.appendChild(img)}else photo.classList.add(\"is-error\");photo.addEventListener(\"click\",function(){openLamMoViewer(activity)});const heart=document.createElement(\"button\");heart.type=\"button\",heart.className=\"gd-lammo-heart\",heart.__gdPost=activity,paintLamMoHeart(heart,activity.liked,activity.hearts),heart.addEventListener(\"click\",function(){toggleLamMoHeart(activity,heart)});const info=document.createElement(\"div\");info.className=\"gd-lammo-info\";const name=document.createElement(\"div\");name.className=\"gd-lammo-name\",name.textContent=activity.name,name.title=activity.name;const sub=document.createElement(\"div\");sub.className=\"gd-lammo-sub\",sub.textContent=[activity.group?\"Tổ \"+activity.group:\"\",activity.course?\"Khóa \"+activity.course:\"\"].filter(Boolean).join(\" · \")||\"Học viên\";const title=document.createElement(activity.lessonId?\"a\":\"div\");title.className=\"gd-lammo-title\",activity.lessonId&&(title.href=LAMMO.page+\"?lm=\"+encodeURIComponent(activity.lessonId),title.title=\"Xem bản mẫu trên Thư viện lâm mô\"),title.textContent=\"“\"+(activity.title||\"Lâm mô\")+\"”\";const time=document.createElement(\"div\");return time.className=\"gd-lammo-time\",time.textContent=\"Góp \"+(activity.reliable?relativeTime(activity.date):\"gần đây\"),window.OCDIdentity?info.appendChild(window.OCDIdentity.create({code:activity.studentCode,name:activity.name,meta:sub.textContent,size:\"sm\",background:info})):(info.appendChild(name),info.appendChild(sub)),info.appendChild(title),info.appendChild(time),card.appendChild(photo),card.appendChild(heart),card.appendChild(info),card}__name(buildActivityNode,\"buildActivityNode\");function filteredActivities(){return state.activityFilter===\"all\"?state.activities:state.activities.filter(function(item){return item.type===state.activityFilter})}__name(filteredActivities,\"filteredActivities\");function renderActivities(){const feed=el(\"gdActivityFeed\"),wrap=el(\"gdLoadMoreWrap\");if(!feed||!wrap)return;const activities=filteredActivities();if(feed.replaceChildren(),!activities.length){const empty=document.createElement(\"div\");empty.className=\"gd-empty\",empty.textContent=\"Chưa có hoạt động để hiển thị.\",feed.appendChild(empty),wrap.classList.remove(\"show\");return}const limit=Math.min(state.visibleActivityCount,activities.length),fragment=document.createDocumentFragment();for(let i=0;i<limit;i++)fragment.appendChild(buildActivityNode(activities[i]));feed.appendChild(fragment),wrap.classList.toggle(\"show\",limit<activities.length)}__name(renderActivities,\"renderActivities\");const LAMMO={sheet:\"1MmqY19BSi8L6xdsF5cg1qZssrERSrqBH6nEGZjqOMLI\",banGid:176543211,timGid:176543212,page:\"https://www.thudao.com/p/thu-vien-lam-mo.html\",api:\"https://script.google.com/macros/s/AKfycbz4pa-q_ALScuiY8tbhi5bdJ0MPtl-IBu6gjZuDeFXuailbvPYhlk1TmE_Hq4DjJxHFIg/exec\",firstPage:8},lamMoHeartPending=new Set;function lamMoImageUrl(id,size,fallback){return fallback?\"https://lh3.googleusercontent.com/d/\"+encodeURIComponent(id)+\"=w\"+size:\"https://drive.google.com/thumbnail?id=\"+encodeURIComponent(id)+\"&sz=w\"+size}__name(lamMoImageUrl,\"lamMoImageUrl\");function lamMoWho(code){return normalizeCode(code).replace(/^0+(?=\\d)/,\"\")}__name(lamMoWho,\"lamMoWho\");function lamMoCsvUrl(gid){return\"https://docs.google.com/spreadsheets/d/\"+LAMMO.sheet+\"/export?format=csv&gid=\"+gid+\"&_=\"+Math.floor(Date.now()/6e4)}__name(lamMoCsvUrl,\"lamMoCsvUrl\");function lamMoObjects(text){if(/^\\s*</.test(String(text||\"\")))throw new Error(\"Không đọc được dữ liệu Thư viện lâm mô.\");const rows=parseCSV(text),head=(rows[0]||[]).map(function(h){return clean(h).toLowerCase().replace(/\\s+/g,\"\")});return rows.slice(1).map(function(r){const o={};return head.forEach(function(k,i){k&&(o[k]=clean(r[i]))}),o})}__name(lamMoObjects,\"lamMoObjects\");function lamMoHeartCounts(tim){const last={};tim.forEach(function(r){const who=lamMoWho(r.mahocvien),id=r.matim||r.makhoe+\"|\"+who;last[id]={key:r.makhoe,who,on:/^(true|1|x|yes|co|có)$/i.test(clean(r.dangthatim))}});const count={},mine={};return Object.keys(last).forEach(function(id){const x=last[id];x.on&&x.key&&(count[x.key]=(count[x.key]||0)+1,mine[x.key+\"|\"+x.who]=!0)}),{count,mine}}__name(lamMoHeartCounts,\"lamMoHeartCounts\");function lamMoDriveId(value){value=clean(value);const m=value.match(/[-\\w]{25,}/);return m?m[0]:\"\"}__name(lamMoDriveId,\"lamMoDriveId\");function mapLamMoActivities(ban,tim,known){const hearts=known||lamMoHeartCounts(tim),viewer=lamMoWho(sessionStudentCode());return state.lamMoViewer=viewer,ban.filter(function(r){return r.makhoe&&/hien\\s*thi|hiển\\s*thị/i.test(r.trangthai||\"\")}).map(function(r){const date=parseDate(r.ngaykhoe),photo=lamMoDriveId(r.fileanh)||lamMoDriveId(r.linkbainop);return{type:\"lammo\",id:r.makhoe,lessonId:r.mabailammo||\"\",studentCode:r.mahocvien||\"\",name:r.hoten||\"Học viên\",group:r.to||\"\",course:r.khoa||\"\",title:r.noidungmau||\"\",hearts:hearts.none?null:hearts.count[r.makhoe]||0,liked:!!(viewer&&hearts.mine[r.makhoe+\"|\"+viewer]),photo,link:photo?\"https://drive.google.com/file/d/\"+photo+\"/view\":LAMMO.page,date,reliable:!!date}})}__name(mapLamMoActivities,\"mapLamMoActivities\");const LAMMO_TIM_CACHE=\"gd_lammo_tim_v1\",LAMMO_TIM_MAX_AGE=12*3600*1e3,lamMoHeartTouched=new Set;function lamMoTimCacheRead(v){try{const c=JSON.parse(localStorage.getItem(LAMMO_TIM_CACHE)||\"null\");if(c&&c.v===v&&c.count&&Date.now()-Number(c.t||0)<LAMMO_TIM_MAX_AGE){const mine={};(c.liked||[]).forEach(function(k){mine[k+\"|\"+v]=!0});return{count:c.count,mine}}}catch{}return null}__name(lamMoTimCacheRead,\"lamMoTimCacheRead\");function lamMoTimCacheWrite(v,hearts){try{const count={},liked=[];(state.activities||[]).forEach(function(a){a&&a.type===\"lammo\"&&(count[a.id]=hearts.count[a.id]||0,v&&hearts.mine[a.id+\"|\"+v]&&liked.push(a.id))}),localStorage.setItem(LAMMO_TIM_CACHE,JSON.stringify({v,t:Date.now(),count,liked}))}catch{}}__name(lamMoTimCacheWrite,\"lamMoTimCacheWrite\");function applyLamMoHearts(hearts,v){(state.activities||[]).forEach(function(a){a&&a.type===\"lammo\"&&!lamMoHeartPending.has(a.id)&&!lamMoHeartTouched.has(a.id)&&(a.hearts=hearts.count[a.id]||0,a.liked=!!(v&&hearts.mine[a.id+\"|\"+v]))}),document.querySelectorAll(\".gd-lammo-heart\").forEach(function(b){const p=b.__gdPost;p&&!lamMoHeartPending.has(p.id)&&paintLamMoHeart(b,p.liked,p.hearts)})}__name(applyLamMoHearts,\"applyLamMoHearts\");async function loadActivities(){if(!(state.loadingActivity||lamMoHeartPending.size)){state.loadingActivity=!0,lamMoHeartTouched.clear();try{const timP=fetchText(lamMoCsvUrl(LAMMO.timGid)).then(lamMoObjects);timP.catch(function(){});const ban=lamMoObjects(await fetchText(lamMoCsvUrl(LAMMO.banGid))),viewer=lamMoWho(sessionStudentCode()),known=lamMoTimCacheRead(viewer)||{count:{},mine:{},none:!0},activities=mapLamMoActivities(ban,[],known);activities.sort(function(a,b){return(b.date?b.date.getTime():0)-(a.date?a.date.getTime():0)}),state.activityFilter=\"all\",state.activities=activities.slice(0,CONFIG.maxActivities),state.visibleActivityCount=Math.max(LAMMO.firstPage,state.lamMoShown||0),state.lamMoShown=state.visibleActivityCount,renderActivities();const feed=el(\"gdActivityFeed\");if(feed&&!state.activities.length){const empty=feed.querySelector(\".gd-empty\");empty&&(empty.textContent=\"Chưa có bản lâm nào. Hãy là người đầu tiên đóng góp cho Thư viện lâm mô!\")}let hearts=null;try{hearts=lamMoHeartCounts(await timP),lamMoTimCacheWrite(viewer,hearts)}catch(timError){console.warn(\"[Giang Duong Lam Mo Hearts]\",timError),known.none&&(hearts={count:{},mine:{}})}hearts&&applyLamMoHearts(hearts,viewer)}catch(error){console.error(\"[Giang Duong Lam Mo]\",error);const feed=el(\"gdActivityFeed\");if(feed){feed.replaceChildren();const empty=document.createElement(\"div\");empty.className=\"gd-empty\",empty.textContent=\"Chưa thể tải bản lâm mới đóng góp. Bấm nút Mới để thử lại.\",feed.appendChild(empty)}}finally{state.loadingActivity=!1}}}__name(loadActivities,\"loadActivities\");function paintLamMoHeart(button,liked,count){button.classList.toggle(\"is-liked\",!!liked),button.setAttribute(\"aria-pressed\",String(!!liked)),button.setAttribute(\"aria-label\",liked?\"Bỏ tim\":\"Thả tim\"),button.replaceChildren();const icon=document.createElement(\"span\");icon.textContent=String.fromCharCode(liked?9829:9825),button.appendChild(icon),button.appendChild(document.createTextNode(count==null?\"…\":String(Math.max(0,Number(count)||0))))}__name(paintLamMoHeart,\"paintLamMoHeart\");function lamMoStatus(text){const box=el(\"gdLamMoStatus\");box&&(box.textContent=text||\"\",box.classList.toggle(\"show\",!!text))}__name(lamMoStatus,\"lamMoStatus\");function readLamMoHeartState(post,code){return new Promise(function(resolve,reject){const cb=\"LMVideo_GDHeart_\"+Math.random().toString(36).slice(2),script=document.createElement(\"script\");let timer=null;const cleanup=__name(function(){clearTimeout(timer),script.remove();try{delete window[cb]}catch{window[cb]=void 0}},\"cleanup\");window[cb]=function(result){cleanup(),result&&result.ok?resolve(result):reject(new Error(result&&result.message||\"Không đọc được trạng thái tim.\"))},script.onerror=function(){cleanup(),reject(new Error(\"Mất kết nối Thư viện lâm mô.\"))},timer=setTimeout(function(){cleanup(),reject(new Error(\"Thư viện lâm mô phản hồi chậm.\"))},8e3),script.src=LAMMO.api+\"?action=heartState&lessonId=\"+encodeURIComponent(post.lessonId)+\"&code=\"+encodeURIComponent(code)+\"&postId=\"+encodeURIComponent(post.id)+\"&callback=\"+cb,document.head.appendChild(script)})}__name(readLamMoHeartState,\"readLamMoHeartState\");async function lamMoPostFast(fields){if(typeof fetch!=\"function\"||typeof URLSearchParams!=\"function\")return null;const ac=typeof AbortController==\"function\"?new AbortController:null,timer=ac?setTimeout(function(){ac.abort()},25e3):null;try{const res=await fetch(LAMMO.api,{method:\"POST\",body:new URLSearchParams(fields),credentials:\"omit\",cache:\"no-store\",redirect:\"follow\",signal:ac?ac.signal:void 0}),data=JSON.parse(await res.text());return data&&typeof data==\"object\"?data:null}catch{return null}finally{timer&&clearTimeout(timer)}}__name(lamMoPostFast,\"lamMoPostFast\");async function toggleLamMoHeart(post,button){if(!post||!post.id||post.hearts==null||lamMoHeartPending.has(post.id))return;lamMoHeartTouched.add(post.id);const code=sessionStudentCode();if(!code){alert(\"Hãy đăng nhập (biểu tượng Minh Hồng) để thả tim cho bản lâm.\");return}if(!post.lessonId){alert(\"Bản lâm này chưa gắn bài mẫu nên chưa thả tim được.\");return}if(lamMoWho(post.studentCode)===lamMoWho(code)){alert(\"Không thể thả tim bản lâm của chính mình.\");return}const active=!post.liked,oldCount=Number(post.hearts)||0;lamMoHeartPending.add(post.id),lamMoStatus(\"\"),button.disabled=!0,paintLamMoHeart(button,active,oldCount+(active?1:-1));const frame=document.createElement(\"iframe\"),form=document.createElement(\"form\");frame.name=\"gdHeart_\"+Math.random().toString(36).slice(2),frame.hidden=!0,frame.title=\"Đồng bộ tim\",form.hidden=!0,form.method=\"POST\",form.action=LAMMO.api,form.target=frame.name;const fields={action:\"heart\",studentCode:code,lessonId:post.lessonId,postId:post.id,active:String(active)};Object.keys(fields).forEach(function(key){const input=document.createElement(\"input\");input.type=\"hidden\",input.name=key,input.value=fields[key],form.appendChild(input)}),document.body.appendChild(frame),document.body.appendChild(form);try{let confirmed=null,lastError=\"\";const fast=await lamMoPostFast(fields);if(fast&&fast.ok===!0&&typeof fast.active==\"boolean\")confirmed=fast;else{if(fast&&fast.ok===!1)throw new Error(fast.message||\"Chưa thả được tim.\");form.submit()}for(let attempt=0;!confirmed&&attempt<10;attempt++){await new Promise(function(resolve){setTimeout(resolve,attempt===0?800:1200)});try{const result=await readLamMoHeartState(post,code);if(result.active===active){confirmed=result;break}}catch(error){lastError=error.message}}if(!confirmed)throw new Error(lastError||\"Chưa xác nhận được tim. Hãy bấm Mới để kiểm tra lại.\");post.liked=!!confirmed.active,post.hearts=Number(confirmed.hearts),Number.isFinite(post.hearts)||(post.hearts=Math.max(0,oldCount+(active?1:-1)))}catch(error){lamMoStatus(error.message)}finally{paintLamMoHeart(button,post.liked,post.hearts),lamMoHeartPending.delete(post.id),button.disabled=!1,form.remove(),frame.remove()}}__name(toggleLamMoHeart,\"toggleLamMoHeart\");function closeLamMoViewer(){const box=el(\"gdLamMoViewer\");if(!box)return;box.classList.remove(\"show\");const img=box.querySelector(\"img\");img&&img.removeAttribute(\"src\"),document.documentElement.style.overflow=state.lamMoOverflow||\"\"}__name(closeLamMoViewer,\"closeLamMoViewer\");function openLamMoViewer(post){if(!post||!post.photo)return;let box=el(\"gdLamMoViewer\");if(!box){box=document.createElement(\"div\"),box.id=\"gdLamMoViewer\",box.className=\"gd-lammo-viewer\",box.setAttribute(\"role\",\"dialog\"),box.setAttribute(\"aria-modal\",\"true\");const close=document.createElement(\"button\");close.type=\"button\",close.className=\"gd-lammo-close\",close.setAttribute(\"aria-label\",\"Đóng\"),close.textContent=\"×\",close.addEventListener(\"click\",closeLamMoViewer);const figure=document.createElement(\"figure\"),img2=document.createElement(\"img\");img2.alt=\"Bản lâm\",img2.addEventListener(\"error\",function(){img2.dataset.photo&&!img2.dataset.retry&&(img2.dataset.retry=\"1\",img2.src=lamMoImageUrl(img2.dataset.photo,1600,!0))});const caption=document.createElement(\"figcaption\");figure.appendChild(img2),figure.appendChild(caption),box.appendChild(close),box.appendChild(figure),box.addEventListener(\"click\",function(event){event.target===box&&closeLamMoViewer()}),document.addEventListener(\"keydown\",function(event){event.key===\"Escape\"&&closeLamMoViewer()}),(el(\"lectureHallPage\")||document.body).appendChild(box)}const img=box.querySelector(\"img\");img.dataset.photo=post.photo,img.dataset.retry=\"\",img.src=lamMoImageUrl(post.photo,1600),img.alt=\"Bản lâm của \"+post.name,box.querySelector(\"figcaption\").textContent=post.name+\" · “\"+(post.title||\"Lâm mô\")+\"” · ♥ \"+(Number(post.hearts)||0),state.lamMoOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow=\"hidden\",box.classList.add(\"show\")}__name(openLamMoViewer,\"openLamMoViewer\");const autoState={code:\"\",running:!1};function isMemberCode(code){return/^TV\\d{6}$/.test(code)&&!/^TV(?!00)\\d{2,3}0[1-4]01$/.test(code)}__name(isMemberCode,\"isMemberCode\");function midtermTwo(n){return(n<10?\"0\":\"\")+n}__name(midtermTwo,\"midtermTwo\");function midtermCountdown(ms){const minutes=Math.max(1,Math.ceil(ms/6e4)),days=Math.floor(minutes/1440),hours=Math.floor(minutes%1440/60),mins=minutes%60;return((days?days+\" ngày \":\"\")+(hours?hours+\" giờ \":\"\")+(days?\"\":mins+\" phút\")).trim()}__name(midtermCountdown,\"midtermCountdown\");const examSettingsState={settings:null,loaded:!1,failed:!1,loading:null,courseCode:\"\",course:\"\",coursePending:!1,panelReady:!1,panelFilled:!1,directoryCourses:[]};function examCourseKey(value){let text=String(value??\"\").normalize(\"NFD\").replace(/[̀-ͯ]/g,\"\").replace(/[đĐ]/g,\"D\").toUpperCase().replace(/KHOA/g,\"\").replace(/\\s+/g,\"\");const m=text.match(/^D?0*(\\d+)$/);return m?m[1]:text}__name(examCourseKey,\"examCourseKey\");function examTypeNames(type){return type===\"graduation\"?{label:\"THI TỐT NGHIỆP\",title:\"Phòng thi tốt nghiệp\"}:{label:\"KIỂM TRA GIỮA HỌC KỲ\",title:\"Phòng thi giữa học kỳ\"}}__name(examTypeNames,\"examTypeNames\");function vnTodayIso(){const d=new Date(Date.now()+252e5);return d.getUTCFullYear()+\"-\"+midtermTwo(d.getUTCMonth()+1)+\"-\"+midtermTwo(d.getUTCDate())}__name(vnTodayIso,\"vnTodayIso\");function vnDateLabel(ms){const d=new Date(ms+252e5);return[\"Chủ nhật\",\"Thứ Hai\",\"Thứ Ba\",\"Thứ Tư\",\"Thứ Năm\",\"Thứ Sáu\",\"Thứ Bảy\"][d.getUTCDay()]+\" \"+midtermTwo(d.getUTCDate())+\"/\"+midtermTwo(d.getUTCMonth()+1)+\"/\"+d.getUTCFullYear()}__name(vnDateLabel,\"vnDateLabel\");function vnTimeLabel(ms){const d=new Date(ms+252e5);return midtermTwo(d.getUTCHours())+\":\"+midtermTwo(d.getUTCMinutes())}__name(vnTimeLabel,\"vnTimeLabel\");function currentExamPlan(){const base=CONFIG.midtermExam||{},s=examSettingsState.settings;return s?{enabled:s.enabled===!0,type:s.examType===\"graduation\"?\"graduation\":\"midterm\",start:Date.parse(s.date+\"T\"+(s.startTime||\"00:00\")+\":00+07:00\"),end:Date.parse(s.date+\"T\"+(s.endTime||\"23:59\")+\":59+07:00\"),courses:(s.courses||[]).map(examCourseKey).filter(Boolean)}:{enabled:!0,type:\"midterm\",start:Date.parse(base.start||\"\"),end:Date.parse(base.end||\"\"),courses:[]}}__name(currentExamPlan,\"currentExamPlan\");function examCourseText(courses){return courses.length?\"học viên khoá \"+courses.map(function(c){return/^\\d+$/.test(c)?\"D\"+c:c}).join(\", \"):\"mọi học viên\"}__name(examCourseText,\"examCourseText\");async function examSettingsPost(body){const exam=CONFIG.midtermExam||{},controller=typeof AbortController==\"function\"?new AbortController:null,timer=controller?setTimeout(function(){controller.abort()},25e3):null;try{const res=await fetch(exam.settingsUrl,{method:\"POST\",body:JSON.stringify(body),headers:{\"Content-Type\":\"text/plain;charset=utf-8\"},credentials:\"omit\",cache:\"no-store\",signal:controller?controller.signal:void 0});return JSON.parse(await res.text())}finally{timer&&clearTimeout(timer)}}__name(examSettingsPost,\"examSettingsPost\");function loadExamSettings(){return(CONFIG.midtermExam||{}).settingsUrl?(examSettingsState.loading||(examSettingsState.loading=async function(){try{const res=await examSettingsPost({action:\"examSettings\"});if(!res||!res.ok)throw new Error(res&&res.error||\"examSettings\");examSettingsState.settings=res.settings||null,examSettingsState.failed=!1}catch(error){examSettingsState.failed=!0,console.warn(\"Không tải được cài đặt phòng thi:\",error)}return examSettingsState.loaded=!0,examSettingsState.loading=null,updateMidtermButton(),examSettingsState.settings}()),examSettingsState.loading):(examSettingsState.loaded=!0,Promise.resolve(null))}__name(loadExamSettings,\"loadExamSettings\");function ensureStudentCourse(code){!code||examSettingsState.coursePending||examSettingsState.courseCode===code||(examSettingsState.coursePending=!0,loadDirectory().then(function(directory){const student=directory&&directory.get(code);examSettingsState.course=student?clean(student.course):\"\"}).catch(function(){examSettingsState.course=\"\"}).then(function(){examSettingsState.courseCode=code,examSettingsState.coursePending=!1,updateMidtermButton()}))}__name(ensureStudentCourse,\"ensureStudentCourse\");function renderExamCard(plan){const names=examTypeNames(plan.type),exam=CONFIG.midtermExam||{},minutes=Number(exam.examMinutes)||90;if(el(\"gdExamLabel\")&&(el(\"gdExamLabel\").textContent=names.label+(plan.courses.length?\" · \"+examCourseText(plan.courses).replace(\"học viên \",\"\").toUpperCase():\"\")),el(\"gdExamTitle\")&&(el(\"gdExamTitle\").textContent=names.title),el(\"gdExamDesc\")){let text;examSettingsState.loaded?plan.enabled?isFinite(plan.start)&&isFinite(plan.end)?text=\"Mở cho \"+examCourseText(plan.courses)+\" từ \"+vnTimeLabel(plan.start)+\" đến \"+vnTimeLabel(plan.end)+\" \"+vnDateLabel(plan.start)+\".\":text=\"Mở cho \"+examCourseText(plan.courses)+\".\":text=\"Phòng thi đang đóng.\":text=\"Đang tải lịch mở phòng thi…\",examSettingsState.failed&&(text+=\" (Chưa tải được lịch mới nhất – hãy tải lại trang.)\"),el(\"gdExamDesc\").textContent=text+\" Thời gian làm bài \"+minutes+\" phút.\"}}__name(renderExamCard,\"renderExamCard\");function isExamAdmin(code){const exam=CONFIG.midtermExam||{};return!!code&&(exam.adminCodes||[]).map(normalizeCode).indexOf(normalizeCode(code))>=0}__name(isExamAdmin,\"isExamAdmin\");function examAdminMessage(text,type){const msg=el(\"gdEaMsg\");msg&&(msg.textContent=text||\"\",msg.className=\"gd-ea-msg\"+(type?\" \"+type:\"\"))}__name(examAdminMessage,\"examAdminMessage\");function examAdminSelectedCourses(){const out=[];document.querySelectorAll(\"#gdEaCourses input[type=checkbox]\").forEach(function(box){box.checked&&out.push(box.value)});const extra=el(\"gdEaCourseExtra\");return extra&&extra.value.trim()&&extra.value.split(/[,;]+/).map(examCourseKey).filter(Boolean).forEach(function(k){out.indexOf(k)<0&&out.push(k)}),out}__name(examAdminSelectedCourses,\"examAdminSelectedCourses\");function renderExamAdminCourses(selected){const box=el(\"gdEaCourses\");if(!box)return;const keys=[];examSettingsState.directoryCourses.concat(selected||[]).map(examCourseKey).forEach(function(k){k&&keys.indexOf(k)<0&&keys.push(k)}),keys.sort(function(a,b){const na=Number(a),nb=Number(b);return isFinite(na)&&isFinite(nb)?na-nb:a.localeCompare(b)}),box.innerHTML=\"\",keys.forEach(function(k){const label=document.createElement(\"label\"),input=document.createElement(\"input\");input.type=\"checkbox\",input.value=k,input.checked=(selected||[]).indexOf(k)>=0,label.appendChild(input),label.appendChild(document.createTextNode(\" Khoá \"+(/^\\d+$/.test(k)?\"D\"+k:k))),box.appendChild(label)}),keys.length||(box.textContent=\"(chưa đọc được danh sách khoá – gõ vào ô bên cạnh)\")}__name(renderExamAdminCourses,\"renderExamAdminCourses\");function fillExamAdminForm(){const s=examSettingsState.settings,plan=currentExamPlan(),date=s?s.date:vnTodayIso();el(\"gdEaEnabled\").checked=!!(s&&s.enabled),el(\"gdEaEnabledText\").textContent=el(\"gdEaEnabled\").checked?\"ĐANG BẬT\":\"ĐANG TẮT\",document.querySelectorAll(\"input[name=gdEaType]\").forEach(function(r){r.checked=r.value===plan.type}),el(\"gdEaDate\").value=date,el(\"gdEaStart\").value=s&&s.startTime||\"00:00\",el(\"gdEaEnd\").value=s&&s.endTime||\"23:59\",el(\"gdEaExempt\").checked=!s||s.exemptAllowed!==!1,el(\"gdEaNewRound\").checked=!s||!s.roundStart||Date.parse(s.roundStart)===Date.parse(s.date+\"T\"+(s.startTime||\"00:00\")+\":00+07:00\"),renderExamAdminCourses(plan.courses),examSettingsState.panelFilled=!0}__name(fillExamAdminForm,\"fillExamAdminForm\");async function saveExamAdmin(){const button=el(\"gdEaSave\"),date=el(\"gdEaDate\").value,startTime=el(\"gdEaStart\").value||\"00:00\",endTime=el(\"gdEaEnd\").value||\"23:59\";if(!/^\\d{4}-\\d{2}-\\d{2}$/.test(date)){examAdminMessage(\"Chọn ngày mở phòng thi.\",\"err\");return}if(endTime<=startTime){examAdminMessage(\"Giờ đóng phải sau giờ mở.\",\"err\");return}const old=examSettingsState.settings,typeInput=document.querySelector(\"input[name=gdEaType]:checked\"),settings={enabled:el(\"gdEaEnabled\").checked,examType:typeInput?typeInput.value:\"midterm\",date,startTime,endTime,courses:examAdminSelectedCourses(),exemptAllowed:el(\"gdEaExempt\").checked,roundStart:el(\"gdEaNewRound\").checked?date+\"T\"+startTime+\":00+07:00\":old&&old.roundStart||\"\"};let token=\"\";try{token=window.OCDAuth&&typeof window.OCDAuth.token==\"function\"&&window.OCDAuth.token()||\"\"}catch{}button.disabled=!0,examAdminMessage(\"Đang lưu…\",\"\");try{let res=await examSettingsPost({action:\"saveExamSettings\",token,settings});if(res&&res.auth===!1){const password=window.prompt(`Máy chủ chưa xác minh được phiên đăng nhập TEST001.\nNhập mật khẩu chấm bài (GRADER_PASSWORD) để lưu:`);password&&(res=await examSettingsPost({action:\"saveExamSettings\",password,settings}))}if(!res||!res.ok)throw new Error(res&&res.error||\"Không lưu được cài đặt.\");examSettingsState.settings=res.settings,examSettingsState.failed=!1,fillExamAdminForm(),updateMidtermButton(),examAdminMessage(\"Đã lưu lúc \"+vnTimeLabel(Date.now())+(res.settings.enabled?\" – phòng thi ĐANG BẬT.\":\" – phòng thi Đà TẮT.\"),\"ok\")}catch(error){examAdminMessage(error&&error.message||\"Không lưu được cài đặt.\",\"err\"),el(\"gdEaEnabled\").checked=!!(old&&old.enabled),el(\"gdEaEnabledText\").textContent=el(\"gdEaEnabled\").checked?\"ĐANG BẬT\":\"ĐANG TẮT\"}finally{button.disabled=!1}}__name(saveExamAdmin,\"saveExamAdmin\");function setupExamAdmin(code){const panel=el(\"gdExamAdmin\");if(!panel)return;const admin=isExamAdmin(code);panel.hidden=!admin,!(!admin||!examSettingsState.loaded)&&(examSettingsState.panelReady||(examSettingsState.panelReady=!0,el(\"gdEaEnabled\").addEventListener(\"change\",function(){el(\"gdEaEnabledText\").textContent=this.checked?\"ĐANG BẬT\":\"ĐANG TẮT\",this.checked&&(el(\"gdEaDate\").value=vnTodayIso()),saveExamAdmin()}),el(\"gdEaSave\").addEventListener(\"click\",saveExamAdmin),loadDirectory().then(function(directory){const list=[];directory.forEach(function(student){const k=examCourseKey(student.course);k&&list.indexOf(k)<0&&list.push(k)}),examSettingsState.directoryCourses=list,renderExamAdminCourses(examAdminSelectedCourses())}).catch(function(){})),examSettingsState.panelFilled||fillExamAdminForm())}__name(setupExamAdmin,\"setupExamAdmin\");function updateMidtermButton(){const button=el(\"gdExamButton\"),status=el(\"gdExamStatus\"),exam=CONFIG.midtermExam||{};if(!button)return;const plan=currentExamPlan();renderExamCard(plan);const start2=plan.start,end=plan.end,now=Date.now();let code=\"\";try{code=sessionStudentCode()}catch{}setupExamAdmin(code);const tester=(exam.testCodes||[]).map(normalizeCode).indexOf(normalizeCode(code||\"\"))>=0&&!!code;function setButton(text,href,locked){button.textContent=text,locked?(button.classList.add(\"is-locked\"),button.setAttribute(\"aria-disabled\",\"true\"),button.removeAttribute(\"href\"),button.tabIndex=-1):(button.classList.remove(\"is-locked\"),button.removeAttribute(\"aria-disabled\"),button.href=href,button.removeAttribute(\"tabindex\"))}__name(setButton,\"setButton\");function setStatus(text,open){status&&(status.textContent=text,status.classList.toggle(\"is-open\",!!open))}if(__name(setStatus,\"setStatus\"),tester){setButton(\"VÀO PHÒNG THI\",CONFIG.graduationExamUrl,!1),setStatus(\"Tài khoản kiểm thử – vào được mọi lúc.\",!0);return}if(!examSettingsState.loaded){setButton(\"ĐANG TẢI…\",\"\",!0),setStatus(\"\",!1);return}if(!plan.enabled){setButton(\"ĐANG ĐÓNG\",\"\",!0),setStatus(\"Phòng thi chưa mở.\",!1);return}if(plan.courses.length&&code){if(examSettingsState.courseCode!==code)ensureStudentCourse(code);else if(examSettingsState.course&&plan.courses.indexOf(examCourseKey(examSettingsState.course))<0){setButton(\"CHƯA MỞ CHO KHOÁ BẠN\",\"\",!0),setStatus(\"Đợt này chỉ mở cho \"+examCourseText(plan.courses)+\".\",!1);return}}if(!isFinite(start2)||!isFinite(end)){setButton(\"VÀO PHÒNG THI\",CONFIG.graduationExamUrl,!1),setStatus(\"\",!1);return}if(now<start2){setButton(\"MỞ LÚC \"+vnTimeLabel(start2),\"\",!0),setStatus(\"Phòng thi mở sau \"+midtermCountdown(start2-now)+\".\",!1);return}if(now<=end){setButton(\"VÀO PHÒNG THI\",CONFIG.graduationExamUrl,!1),setStatus(\"Đang mở – nhận lượt vào thi đến \"+vnTimeLabel(end)+\".\",!0);return}setButton(\"XEM KẾT QUẢ\",exam.resultUrl||CONFIG.graduationExamUrl,!1),setStatus(\"Đã hết giờ vào thi.\",!1)}__name(updateMidtermButton,\"updateMidtermButton\");function sessionStudentCode(){try{const session=window.OCDStudentSession,current=session&&typeof session.getState==\"function\"?session.getState():null;if(current&&current.mode===\"student\"&&current.code){const code=normalizeCode(current.code);if(code&&code!==\"ADMIN\"&&!isMemberCode(code))return code}}catch{}try{const A=window.OCDAuth,me=A&&typeof A.token==\"function\"&&A.token()&&typeof A.me==\"function\"?A.me():null;if(me){const code=normalizeCode(me.linked||(me.type!==\"TV\"?me.code:\"\")||\"\");if(code&&!isMemberCode(code))return code}}catch{}return\"\"}__name(sessionStudentCode,\"sessionStudentCode\");async function autoVerifySession(){const code=sessionStudentCode();if(!code||autoState.running||code===autoState.code)return;if(window.StudentRewardSystemReady)try{await window.StudentRewardSystemReady}catch{}const rewardSystem=window.StudentRewardSystem;if(!(!rewardSystem||typeof rewardSystem.assertStudentActive!=\"function\")){autoState.running=!0,autoState.code=code,state.lamMoViewer!==lamMoWho(code)&&loadActivities();try{let priority=!1;try{priority=await isPriorityStudent(code)}catch{}let rooms=[\"HOABINH\",\"HANHPHUC\"].filter(function(room){return priority||roomForCode(code,room)===room});rooms.length||(rooms=[\"HOABINH\"]),rooms.sort(function(a,b){return(getRoomLiveState(a)?1:0)-(getRoomLiveState(b)?1:0)}),[\"HOABINH\",\"HANHPHUC\"].forEach(function(room){const config=getRoomConfig(room);config.input&&!clean(config.input.value)&&(config.input.value=code)});for(const room of rooms){const config=getRoomConfig(room);config.input&&(config.input.value=code),await verifyStudent(room)}}catch(error){console.warn(\"[Giang Duong Auto Verify]\",error),autoState.code=\"\"}finally{autoState.running=!1}}}__name(autoVerifySession,\"autoVerifySession\");function bindRoom(room){const config=getRoomConfig(room);config.button&&config.button.addEventListener(\"click\",function(){verifyStudent(room)}),config.input&&(config.input.addEventListener(\"keydown\",function(event){event.key===\"Enter\"&&(event.preventDefault(),verifyStudent(room))}),config.input.addEventListener(\"input\",function(){const normalized=normalizeCode(config.input.value);config.input.value!==normalized&&(config.input.value=normalized),clearRoom(config),resetMinhHongState()}))}__name(bindRoom,\"bindRoom\");function bindFilters(){const wrapper=el(\"gdActivityFilters\");wrapper&&wrapper.addEventListener(\"click\",function(event){const button=event.target.closest(\".gd-filter-button\");button&&(state.activityFilter=button.getAttribute(\"data-filter\")||\"all\",state.visibleActivityCount=CONFIG.activityPageSize,wrapper.querySelectorAll(\".gd-filter-button\").forEach(function(item){item.classList.toggle(\"active\",item===button)}),renderActivities())})}__name(bindFilters,\"bindFilters\"),window.OCDGiangDuong={version:\"1.9.0\",verifyStudent,getMinhHongContext:__name(function(){return buildMinhHongContext()},\"getMinhHongContext\"),syncMinhHongContext:__name(function(){return syncMinhHongContext()},\"syncMinhHongContext\"),getState:__name(function(){return{directoryLoaded:!!state.directory,legacyLoaded:!!state.legacyDirectory,priorityLoaded:!!state.priorityCodes,minhHong:buildMinhHongContext()}},\"getState\")};function start(){initUI(),bindRoom(\"HOABINH\"),bindRoom(\"HANHPHUC\"),bindFilters();const loadMore=el(\"gdLoadMore\");loadMore&&loadMore.addEventListener(\"click\",function(){state.visibleActivityCount+=CONFIG.activityPageSize,state.lamMoShown=state.visibleActivityCount,renderActivities()});const refresh=el(\"gdRefreshActivity\");refresh&&refresh.addEventListener(\"click\",loadActivities),setTimeout(function(){loadDirectory().catch(function(error){console.warn(\"[Giang Duong v1.7.0 HocVien Preload]\",error)})},100),setTimeout(function(){loadLegacyDirectory().catch(function(error){console.warn(\"[Giang Duong v1.7.0 XepHang Preload]\",error)})},140),setTimeout(function(){loadPriorityCodes().catch(function(error){console.warn(\"[Giang Duong Priority Preload]\",error)})},180),updateRoomStatuses(),state.statusTimer=setInterval(updateRoomStatuses,CONFIG.liveMeetStatus.refreshInterval),setTimeout(loadActivities,300),state.activityTimer=setInterval(function(){document.hidden||loadActivities()},CONFIG.activityRefreshInterval),console.log(\"[Giang Duong OCD] Lecture Hall v1.9.0 + Minh Hong auto + Lam mo gallery\"),[\"ocdStudentSessionChanged\",\"ocd:student-session-changed\",\"ocdStudentVerified\",\"ocdAuthChanged\"].forEach(function(name){window.addEventListener(name,function(){try{updateMidtermButton()}catch{}if(!sessionStudentCode()){autoState.code=\"\";return}autoVerifySession()})}),[400,1200,2500,5e3,9e3].forEach(function(ms){setTimeout(autoVerifySession,ms)})}__name(start,\"start\"),document.readyState===\"loading\"?document.addEventListener(\"DOMContentLoaded\",start,{once:!0}):start()})();"]);

Nhận xét

Bài đăng phổ biến từ blog này

theme/thudao-footer.kho.js · Gộp Reward Core (css v4.2.2 + js f827add) + Minh Hồng footer (css v1.5.7.4 + js 4bff33d) cho chân trang thudao.com

trang/thudao/dang-ky-hoc.html · Bản trước khi chuyển sang kho (tải từ GitHub/jsDelivr)

trang/thudao/bai-viet/benh-cua-thu-dan-duong-dai-the-trien-lam-xu-thu-va-nguy-menh-de-vuot-co-nhan.html · Bản trước khi chuyển sang kho (có video, tải từ GitHub/jsDelivr)