1"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}(function(){(function(){var n={sidebarStorageKey:"sidebar:isOpen",menuStorageKey:"menu:isOpen",menuIdAttr:"data-menu-id",openAllToken:"*",selectors:{sidebar:".js-sidebar",siteContent:".js-site-content",menuItem:".js-menu-item"}};var s=function(){function s(e){_classCallCheck(this,s);this.config=e;}return _createClass(s,[{key:"parseMenuState",value:function parseMenuState(e){if(!e)return[];if(e==="true")return[this.config.openAllToken];try{var t=JSON.parse(e);if(Array.isArray(t))return t;}catch(_unused){}return[];}},{key:"applyMenuState",value:function applyMenuState(e){if(!e.length)return 0;var t=document.querySelectorAll(this.config.selectors.menuItem);if(!t.length)return 0;var i=e.indexOf(this.config.openAllToken)!==-1;for(var r=0;r<t.length;r+=1){var a=t[r],c=a.getAttribute(this.config.menuIdAttr);(i||c&&e.indexOf(c)!==-1)&&(a.hasAttribute("open")||a.setAttribute("open",""));}return t.length;}},{key:"applySidebarClasses",value:function applySidebarClasses(){var e=document.querySelector(this.config.selectors.sidebar);e&&!e.classList.contains("is-open")&&e.classList.add("is-open");var t=document.querySelector(this.config.selectors.siteContent);t&&!t.classList.contains("sidebar-open")&&t.classList.add("sidebar-open");}},{key:"restoreSidebarState",value:function restoreSidebarState(){var _this=this;try{if(localStorage.getItem(this.config.sidebarStorageKey)!=="true")return;var t=document.documentElement;if(t.classList.add("is-open"),t.classList.add("sidebar-open"),this.applySidebarClasses(),!document.querySelector(this.config.selectors.sidebar)||!document.querySelector(this.config.selectors.siteContent)){var i=new MutationObserver(function(){_this.applySidebarClasses(),document.querySelector(_this.config.selectors.sidebar)&&document.querySelector(_this.config.selectors.siteContent)&&i.disconnect();});i.observe(document.documentElement,{childList:!0,subtree:!0});}}catch(_unused2){}}},{key:"restoreMenuState",value:function restoreMenuState(){var _this2=this;try{var e=localStorage.getItem(this.config.menuStorageKey),t=this.parseMenuState(e);if(!t.length)return;
1var i=!1,r=function r(){_this2.applyMenuState(t),document.readyState!=="loading"&&c();},a=new MutationObserver(r),c=function c(){i||(i=!0,a.disconnect(),document.removeEventListener("DOMContentLoaded",r));};a.observe(document.documentElement,{childList:!0,subtree:!0}),document.addEventListener("DOMContentLoaded",r),r();}catch(_unused3){}}},{key:"init",value:function init(){this.restoreSidebarState(),this.restoreMenuState();}}]);}();new s(n).init();})();var h=function h(){var n=window.location.hash||"";if(n.startsWith("#")){var o=new URLSearchParams(n.slice(1)).get("playlist");if(o)return o.trim();}var s=new URLSearchParams(window.location.search).get("playlist");return s?s.trim():"";},u=h(),f=u.length>0,p=!1,g=function g(_ref){var n=_ref.playlistRoot,s=_ref.suggestedRoot;var o=f&&p;s&&(s.hidden=o),n&&(n.hidden=!o);},S=function S(n){if(!n||!f)return!1;var s=n.querySelector("[data-playlist-list]"),o=n.querySelector("[data-playlist-title]"),e=n.querySelector("[data-playlist-progress]"),t=Array.from(n.querySelectorAll("template[data-playlist]"));if(!s||!o||t.length===0)return!1;var i=u?u.toLowerCase():"",r=null;if(i&&(r=t.find(function(a){return(a.dataset.playlist||"").toLowerCase()===i;})),!r)return!1;if(s.innerHTML="",s.appendChild(r.content.cloneNode(!0)),r.dataset.playlistTitle&&(o.textContent=r.dataset.playlistTitle),e){var a=Array.from(s.children),c=a.length,m=s.querySelector('[aria-current="page"]'),l=0;if(m&&(l=a.indexOf(m)+1),!l){var d=Number.parseInt(r.dataset.playlistCurrent||"",10);Number.isFinite(d)&&d>0&&(l=d);}e.textContent=c?"".concat(l,"/").concat(c):"";}return!0;},b=function b(){var n=Array.from(document.querySelectorAll("[data-playlist-menu]"));if(!n.length)return;var s=function s(e){if(!e)return"";try{return decodeURIComponent(e).trim().toLowerCase();}catch(_unused4){return e.trim().toLowerCase();}},o=s(u);n.forEach(function(e){var t=s(e.dataset.playlistMenu);o&&t&&t===o?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current");});},y=function y(){var n=document.querySelector("[data-suggested-videos]"),s=document.querySelector("[data-playlist-root]");p=S(s),g({playlistRoot:s,suggestedRoot:n}),b();};y();var L=new MutationObserver(function(n){var s=!1;var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var o=_step.value;var _iterator2=_createForOfIteratorHelper(o.addedNodes),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var e=_step2.value;if(e instanceof HTMLElement){if(e.matches("[data-suggested-videos], [data-playlist-root], template[data-playlist]")){s=!0;break;}if(e.querySelector&&e.querySelector("[data-suggested-videos], [data-playlist-root], template[data-playlist]")){s=!0;break;}}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}if(s)break;}}catch(err){_iterator.e(err);}finally{_iterator.f();}s&&y();});L.observe(document.documentElement,{childList:!0,subtree:!0});})(); 2
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.