1/*! 2 * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/) 3 * © 2019 Cotes Chung 4 * MIT Licensed 5 */ 6!function(){"use strict";var o=$(".mode-toggle");function t(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function e(o,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,a(n.key),n)}}function n(o,t,n){return t&&e(o.prototype,t),n&&e(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,t,e){return(t=a(t))in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function a(o){var t=function(o,t){if("object"!=typeof o||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(o,"string");return"symbol"==typeof t?t:String(t)}var i=$("body"),l="sidebar-display",s=function(){function o(){t(this,o)}return n(o,null,[{key:"toggle",value:function(){!1===o.isExpanded?i.attr(l,""):i.removeAttr(l),o.isExpanded=!o.isExpanded}}]),o}();r(s,"isExpanded",!1);var c="div.post>h1:first-of-type",u=$(c),f=$("#topbar-title"),d=f.text().trim();var p=$("#sidebar-trigger"),b=$("#search-trigger"),v=$("#search-cancel"),h=$("#main"),g=$("#topbar-title"),k=$("#search-wrapper"),y=$("#search-result-wrapper"),m=$("#search-results"),w=$("#search-input"),C=$("#search-hints"),T=$("html,body"),L="loaded",x="unloaded",I="input-focus",O="d-flex",U=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){o.offset=window.scrollY,T.scrollTop(0)}},{key:"off",value:function(){T.scrollTop(o.offset)}}]),o}();r(U,"offset",0),r(U,"resultVisible",!1);var S=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){p.addClass(x),g.addClass(x),b.addClass(x),k.addClass(O),v.addClass(L)}},{key:"off",value:function(){v.removeClass(L),k.removeClass(O),p.removeClass(x),g.removeClass(x),b.removeClass(x)}}]),o}(),E=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){U.resultVisible||(U.on(),y.removeClass(x),h.addClass(x),U.resultVisible=!0)}},{key:"off",value:function(){U.resultVisible&&(m.empty(),C.hasClass(x)&&C.removeClass(x),y.addClass(x),h.removeClass(x),U.off(),w.val(""),U.resultVisible=!1)}}]),o}();function j(){return v.hasClass(L)}var P="data-topbar-visible",V=$("body"),_=$("#topbar-wrapper"),H=function(){function o(){t(this,o)}return n(o,null,[{key:"hideTopbar",value:function(){V.attr(P,"false")}},{key:"showTopbar",value:function(){V.attr(P,"true")}},{key:"addScrollUpTask",value:function(){o.scrollUpCount+=1,o.topbarIsLocked||(o.topbarIsLocked=!0)}},{key:"popScrollUpTask",value:function(){o.scrollUpCount-=1}},{key:"hasScrollUpTask",value:function(){return o.scrollUpCount>0}},{key:"topbarLocked",value:function(){return!0===o.topbarIsLocked}},{key:"unlockTopbar",value:function(){o.topbarIsLocked=!1}},{key:"getTopbarHeight",value:function(){return _.outerHeight()}},{key:"orientationLocked",value:function(){return!0===o.orientationIsLocked}},{key:"lockOrientation",value:function(){o.orientationIsLocked=!0}},{key:"unLockOrientation",value:function(){o.orientationIsLocked=!1}}]),o}();r(H,"scrollUpCount",0),r(H,"topbarIsLocked",!1),r(H,"orientationIsLocked",!1);var M,N=$("#search-input"),R=H.getTopbarHeight(),q=0;function A(){0!==$(window).scrollTop()&&(H.lockOrientation(),H.hideTopbar())}function Y(){var o=screen.orientation;o?o.onchange=function(){var t=o.type;"landscape-primary"!==t&&"landscape-secondary"!==t||A()}:$(window).on("orientationchange",(function(){$(window).width()<$(window).height()&&A()})),$(window).on("scroll",(function(){M||(M=!0)})),setInterval((function(){M&&(!function(){var o=$(window).scrollTop();if(!(Math.abs(q-o)<=R)){if(o>q)H.hideTopbar(),N.is(":focus")&&N.trigger("blur");else if(o+$(window).height()<$(document).height()){if(H.hasScrollUpTask())return;H.topbarLocked()?H.unlockTopbar():H.orientationLocked()?H.unLockOrientation():H.showTopbar()}q=o}}(),M=!1)}),250)}var z=$(".collapse");$(".code-header>button").children().attr("class"),$(window).on("scroll",(function(){$(window).scrollTop()>
650&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()})),$("#back-to-top").on("click",(function(){return $("body,html").animate({scrollTop:0},800),!1})),$('[data-toggle="tooltip"]').tooltip(),0!==o.length&&o.off().on("click",(function(o){var t=$(o.target),e=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),e.trigger("blur")})),$("#sidebar-trigger").on("click",s.toggle),$("#mask").on("click",s.toggle),function(){if(0!==u.length&&!u.hasClass("dynamic-title")&&!f.is(":hidden")){var o=u.text().trim(),t=!1,e=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(o)&&(o=o.replace(/[0-9]/g,"").trim()),u.offset().top<$(window).scrollTop()&&f.text(o),new IntersectionObserver((function(n){if(t){var r=$(window).scrollTop(),a=e<r;e=r;var i=n[0];a?0===i.intersectionRatio&&f.text(o):1===i.intersectionRatio&&f.text(d)}else t=!0}),{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(c)),f.on("click",(function(){$("body,html").animate({scrollTop:0},800)}))}}(),b.on("click",(function(){S.on(),E.on(),w.trigger("focus")})),v.on("click",(function(){S.off(),E.off()})),w.on("focus",(function(){k.addClass(I)})),w.on("focusout",(function(){k.removeClass(I)})),w.on("input",(function(){""===w.val()?j()?C.removeClass(x):E.off():(E.on(),j()&&C.addClass(x))})),Y(),z.on("hide.bs.collapse",(function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($("#".concat(o," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(o," i.fas")).addClass("rotate"),$("#".concat(o)).removeClass("hide-border-bottom"))})),z.on("show.bs.collapse",(function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($("#".concat(o," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(o," i.fas")).removeClass("rotate"),$("#".concat(o)).addClass("hide-border-bottom"))}))}();
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.