Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xiee/utils

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xiee/utils - npm Package Compare versions

Comparing version 1.13.44 to 1.13.45

3

js/alt-title.min.js

@@ -1,1 +0,2 @@

[...document.getElementsByTagName("img")].forEach((t=>{t.alt&&(t.alt=t.alt.replace(/\n/g," "),t.title||(t.title=t.alt))}));
[...document.getElementsByTagName("img")].forEach((t=>{t.alt&&(t.alt=t.alt.replace(/\n/g," "),t.title||(t.title=t.alt))}));
//# sourceMappingURL=alt-title.min.js.map

@@ -1,1 +0,2 @@

(e=>{const a=e.querySelector([1,2,3,4,5,6].map((e=>`h${e}.appendix`)).join(","));if(!a)return;a.classList.remove("appendix");const n=a.parentNode;let t=n,d=!1;for(;n&&(t=t.nextElementSibling,t&&n.tagName===t.tagName&&n.className===t.className);)t.classList.add("appendix"),d=!0;if(d)return void n.classList.add("appendix");const p=e.createElement("div");for(p.className="appendix",p.append(a.cloneNode(!0));a.nextSibling;)p.append(a.nextSibling);"BODY"===a.parentNode.tagName?e.body.append(p):a.parentNode.after(p),a.remove()})(document);
(e=>{const a=e.querySelector([1,2,3,4,5,6].map((e=>`h${e}.appendix`)).join(","));if(!a)return;a.classList.remove("appendix");const n=a.parentNode;let t=n,d=!1;for(;n&&(t=t.nextElementSibling,t&&n.tagName===t.tagName&&n.className===t.className);)t.classList.add("appendix"),d=!0;if(d)return void n.classList.add("appendix");const p=e.createElement("div");for(p.className="appendix",p.append(a.cloneNode(!0));a.nextSibling;)p.append(a.nextSibling);"BODY"===a.parentNode.tagName?e.body.append(p):a.parentNode.after(p),a.remove()})(document);
//# sourceMappingURL=appendix.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll('div[class^="callout-"]').forEach((e=>{const l=document.createElement("fieldset");l.className=e.className,l.classList.add("callout"),l.insertAdjacentHTML("afterbegin","<legend></legend>"),l.firstChild.dataset.legend=e.dataset.legend||e.classList[0].replace("callout-","").replace("-"," "),e.after(l),l.append(...e.children),e.remove()}));
document.querySelectorAll('div[class^="callout-"]').forEach((e=>{const l=document.createElement("fieldset");l.className=e.className,l.classList.add("callout"),l.insertAdjacentHTML("afterbegin","<legend></legend>"),l.firstChild.dataset.legend=e.dataset.legend||e.classList[0].replace("callout-","").replace("-"," "),e.after(l),l.append(...e.children),e.remove()}));
//# sourceMappingURL=callout.min.js.map

@@ -1,1 +0,2 @@

(e=>{function t(e){if(1!==e.childElementCount)return!1;const t=e.childNodes;if(1===t.length)return!0;for(let e in t){let n=t[e];if("#text"===n.nodeName&&!/^\s$/.test(n.textContent))return!1}return!0}["img","embed","object"].forEach((function(n){e.querySelectorAll(n).forEach((e=>{let r=e.parentElement;if(t(r)){const l="A"===r.nodeName;if(l){if(r=r.parentElement,!t(r))return;r.firstElementChild.style.border="none"}"P"===r.nodeName&&(r.style.textAlign="center",l||"img"!==n||/^data:/.test(e.src)||(r.innerHTML=`<a href="${e.src}" style="border: none;">${e.outerHTML}</a>`))}}))})),e.querySelectorAll("p").forEach((e=>{"* * *"===e.innerText&&(e.style.textAlign="center")}))})(document);
(e=>{function t(e){if(1!==e.childElementCount)return!1;const t=e.childNodes;if(1===t.length)return!0;for(let e in t){let n=t[e];if("#text"===n.nodeName&&!/^\s$/.test(n.textContent))return!1}return!0}["img","embed","object"].forEach((function(n){e.querySelectorAll(n).forEach((e=>{let r=e.parentElement;if(t(r)){const l="A"===r.nodeName;if(l){if(r=r.parentElement,!t(r))return;r.firstElementChild.style.border="none"}"P"===r.nodeName&&(r.style.textAlign="center",l||"img"!==n||/^data:/.test(e.src)||(r.innerHTML=`<a href="${e.src}" style="border: none;">${e.outerHTML}</a>`))}}))})),e.querySelectorAll("p").forEach((e=>{"* * *"===e.innerText&&(e.style.textAlign="center")}))})(document);
//# sourceMappingURL=center-img.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("pre").forEach((e=>{const a=e.querySelector("code");if(!a||a.querySelector("span"))return;const c=e.className,s=a.className,t=/^lang(uage)?-/;!c&&!s||t.test(c)||t.test(s)||(a.className="language-"+(s||c))}));
document.querySelectorAll("pre").forEach((e=>{const a=e.querySelector("code");if(!a||a.querySelector("span"))return;const c=e.className,s=a.className,t=/^lang(uage)?-/;!c&&!s||t.test(c)||t.test(s)||(a.className="language-"+(s||c))}));
//# sourceMappingURL=code-lang.min.js.map

@@ -1,1 +0,2 @@

(()=>{function e(e){const n='<span data-line-number=""></span>',t="span[data-line-number]";if(e.querySelector(t))return;e.innerHTML=n+e.innerHTML.replace(/\n(?=.|\s)/g,"\n"+n);let r=+e.dataset.start;isNaN(r)&&(r=1);const a=e.querySelectorAll(t),l=(""+(r-1+a.length)).length;a.forEach((e=>{let n=""+r++,t=l-n.length;t>0&&(n="0".repeat(t)+n),e.dataset.lineNumber=n}))}addEventListener("load",(n=>document.querySelectorAll("pre > code.line-numbers:first-child").forEach(e)))})();
(()=>{function e(e){const n='<span data-line-number=""></span>',t="span[data-line-number]";if(e.querySelector(t))return;e.innerHTML=n+e.innerHTML.replace(/\n(?=.|\s)/g,"\n"+n);let r=+e.dataset.start;isNaN(r)&&(r=1);const a=e.querySelectorAll(t),l=(""+(r-1+a.length)).length;a.forEach((e=>{let n=""+r++,t=l-n.length;t>0&&(n="0".repeat(t)+n),e.dataset.lineNumber=n}))}addEventListener("load",(n=>document.querySelectorAll("pre > code.line-numbers:first-child").forEach(e)))})();
//# sourceMappingURL=code-line-numbers.min.js.map

@@ -1,1 +0,2 @@

!function(t){const e=t.querySelector("section.comments");if(!e)return;if(function(){let t=!0;try{t=window.self!==window.top}catch(t){}return t}())return void e.remove();location.hash.match(/^#comment-[0-9]+$/)&&e.scrollIntoView();const r=e.querySelector("script[data-src]");if(!r)return;const c=r.dataset.src,n=t.createElement("script");[...r.attributes].forEach((t=>{n.setAttribute(t.name,t.value)})),n.src=c,r.remove(),e.appendChild(n)}(document);
!function(t){const e=t.querySelector("section.comments");if(!e)return;if(function(){let t=!0;try{t=window.self!==window.top}catch(t){}return t}())return void e.remove();location.hash.match(/^#comment-[0-9]+$/)&&e.scrollIntoView();const r=e.querySelector("script[data-src]");if(!r)return;const c=r.dataset.src,n=t.createElement("script");[...r.attributes].forEach((t=>{n.setAttribute(t.name,t.value)})),n.src=c,r.remove(),e.appendChild(n)}(document);
//# sourceMappingURL=comment-utils.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.currentScript?.dataset;e.querySelectorAll(t?.selector||"pre>code").forEach((t=>{const c=e.createElement("span"),o=c.classList,n=t.parentNode,a="CODE"===t.tagName&&"PRE"===n?.tagName;function s(e){o.add(e),setTimeout((()=>o.remove(e)),1e3)}c.className="copy-button",c.onclick=()=>navigator.clipboard.writeText(a&&t.classList.contains("code-fence")&&n.parentNode?.classList.contains("fenced-chunk")?[...n.parentNode.querySelectorAll("code[class]")].map((e=>e.innerText.replace(/\n$/,""))).join("\n"):t.innerText).then((()=>s("copy-success")),(()=>s("copy-fail")));const r=a?n:t;r.querySelector(".copy-button")||r.append(c),"static"===getComputedStyle(r).position&&(r.style.position="relative")}))})(document);
(e=>{const t=e.currentScript?.dataset;e.querySelectorAll(t?.selector||"pre>code").forEach((t=>{const c=e.createElement("span"),o=c.classList,n=t.parentNode,a="CODE"===t.tagName&&"PRE"===n?.tagName;function s(e){o.add(e),setTimeout((()=>o.remove(e)),1e3)}c.className="copy-button",c.onclick=()=>navigator.clipboard.writeText(a&&t.classList.contains("code-fence")&&n.parentNode?.classList.contains("fenced-chunk")?[...n.parentNode.querySelectorAll("code[class]")].map((e=>e.innerText.replace(/\n$/,""))).join("\n"):t.innerText).then((()=>s("copy-success")),(()=>s("copy-fail")));const r=a?n:t;r.querySelector(".copy-button")||r.append(c),"static"===getComputedStyle(r).position&&(r.style.position="relative")}))})(document);
//# sourceMappingURL=copy-button.min.js.map

@@ -1,1 +0,2 @@

!function(e){if(!function(){var e=!0;try{e=window.self!==window.top}catch(e){}return e}()){var t=e.getElementById("disqus_thread"),n=t.nextElementSibling,r=e.querySelector("section.comments"),o=r.querySelectorAll('input[type="radio"]');n.setAttribute("data-timestamp",+new Date);var i,c=function(){return r.querySelector("#tab-2").checked=!0,"add"},s=function(e){"layout"===e.name&&r.classList["layout-2"===e.id?c():"remove"]("comment-full")},a=function(){s(this),l();var e=JSON.stringify(function(){var e={};return o.forEach((function(t){e[t.id]=t.checked})),e}());try{localStorage.setItem("comment-prefs",e)}catch(e){}},l=function(){var e=r.classList.contains("comment-full");r.querySelectorAll('input[name="tabs"]').forEach((function(t,n){if(e||t.checked){var o=r.querySelector(".panel:nth-of-type("+(n+1)+") > script[data-src]");o&&o.dataset.src&&(o.src=o.dataset.src,o.removeAttribute("data-src"))}}))};(i=localStorage.getItem("comment-prefs"))&&(i=JSON.parse(i),o.forEach((function(e){i[e.id]&&(e.checked=!0,s(e))}))),o.forEach((function(e){e.addEventListener("change",a)}));var d=!1,u=function(e){d||(r.querySelector(".tabs").style.display="",l(),d=!0,e&&t.scrollIntoView())};if(n.onerror=function(n){var r=e.createElement("script");r.src="//cdn.jsdelivr.net/gh/yihui/DisqusJS@1.3.3/src/disqus.min.js",t.appendChild(r);try{localStorage.setItem("dsqjs_mode","dsqjs")}catch(n){}r.onload=function(t){var n=e.createElement("link");n.rel="stylesheet",n.href="//cdn.jsdelivr.net/gh/yihui/DisqusJS@1.3.3/src/disqusjs.min.css",e.head.appendChild(n),disqus_config.DisqusJSInit()},r.onerror=function(e){t.innerText="Sorry, but you cannot make comments because Disqus failed to load for some reason. It is known to be blocked in certain regions. If you are sure it is not blocked in your region, please refresh the page. Alternatively, you can comment with Utterances. 您可能需要翻墙发表 Disqus 评论;若没有梯子,不妨尝试使用 Github 登录 Utterances 评论。",t.style.border="1px dashed",t.style.padding=".5em",t.style.background="lightyellow",c()}},n.onload=function(n){var o=e.getElementById("disqus_count");if(o){var i=e.createElement("script");i.src="//yihui.disqus.com/count.js",i.id="dsq-count-scr",t.appendChild(i),new MutationObserver((()=>{""==o.innerText||o.innerText>0||(c(),l(),r.append(r.querySelector("#tab-2 ~ .panel")),r.querySelector(".tabs").remove(),r.querySelector(".panel").style.display="block")})).observe(o,{characterData:!0,childList:!0})}},location.hash.match(/^#comment-[0-9]+$/))return u(!0);var m=function(){if(!d){var e=r.getBoundingClientRect();e.top<window.innerHeight&&e.bottom>=0&&u()}};window.addEventListener("load",m),e.addEventListener("scroll",m)}}(document);
!function(e){if(!function(){var e=!0;try{e=window.self!==window.top}catch(e){}return e}()){var t=e.getElementById("disqus_thread"),n=t.nextElementSibling,r=e.querySelector("section.comments"),o=r.querySelectorAll('input[type="radio"]');n.setAttribute("data-timestamp",+new Date);var i,c=function(){return r.querySelector("#tab-2").checked=!0,"add"},s=function(e){"layout"===e.name&&r.classList["layout-2"===e.id?c():"remove"]("comment-full")},a=function(){s(this),l();var e=JSON.stringify(function(){var e={};return o.forEach((function(t){e[t.id]=t.checked})),e}());try{localStorage.setItem("comment-prefs",e)}catch(e){}},l=function(){var e=r.classList.contains("comment-full");r.querySelectorAll('input[name="tabs"]').forEach((function(t,n){if(e||t.checked){var o=r.querySelector(".panel:nth-of-type("+(n+1)+") > script[data-src]");o&&o.dataset.src&&(o.src=o.dataset.src,o.removeAttribute("data-src"))}}))};(i=localStorage.getItem("comment-prefs"))&&(i=JSON.parse(i),o.forEach((function(e){i[e.id]&&(e.checked=!0,s(e))}))),o.forEach((function(e){e.addEventListener("change",a)}));var d=!1,u=function(e){d||(r.querySelector(".tabs").style.display="",l(),d=!0,e&&t.scrollIntoView())};if(n.onerror=function(n){var r=e.createElement("script");r.src="//cdn.jsdelivr.net/gh/yihui/DisqusJS@1.3.3/src/disqus.min.js",t.appendChild(r);try{localStorage.setItem("dsqjs_mode","dsqjs")}catch(n){}r.onload=function(t){var n=e.createElement("link");n.rel="stylesheet",n.href="//cdn.jsdelivr.net/gh/yihui/DisqusJS@1.3.3/src/disqusjs.min.css",e.head.appendChild(n),disqus_config.DisqusJSInit()},r.onerror=function(e){t.innerText="Sorry, but you cannot make comments because Disqus failed to load for some reason. It is known to be blocked in certain regions. If you are sure it is not blocked in your region, please refresh the page. Alternatively, you can comment with Utterances. 您可能需要翻墙发表 Disqus 评论;若没有梯子,不妨尝试使用 Github 登录 Utterances 评论。",t.style.border="1px dashed",t.style.padding=".5em",t.style.background="lightyellow",c()}},n.onload=function(n){var o=e.getElementById("disqus_count");if(o){var i=e.createElement("script");i.src="//yihui.disqus.com/count.js",i.id="dsq-count-scr",t.appendChild(i),new MutationObserver((()=>{""==o.innerText||o.innerText>0||(c(),l(),r.append(r.querySelector("#tab-2 ~ .panel")),r.querySelector(".tabs").remove(),r.querySelector(".panel").style.display="block")})).observe(o,{characterData:!0,childList:!0})}},location.hash.match(/^#comment-[0-9]+$/))return u(!0);var m=function(){if(!d){var e=r.getBoundingClientRect();e.top<window.innerHeight&&e.bottom>=0&&u()}};window.addEventListener("load",m),e.addEventListener("scroll",m)}}(document);
//# sourceMappingURL=custom-disqus.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("dl").forEach((e=>{if(2!==e.childElementCount)return;const t=e.children[0],l=e.children[1];"DT"===t.tagName&&"DD"===l.tagName&&(t.outerHTML=t.outerHTML.replace(/^<dt(>[\s\S]*<\/)dt>$/,"<legend$1legend>"),l.outerHTML=l.innerHTML,e.outerHTML=e.outerHTML.replace(/^<dl(>[\s\S]*<\/)dl>$/,"<fieldset$1fieldset>"))}));
document.querySelectorAll("dl").forEach((e=>{if(2!==e.childElementCount)return;const t=e.children[0],l=e.children[1];"DT"===t.tagName&&"DD"===l.tagName&&(t.outerHTML=t.outerHTML.replace(/^<dt(>[\s\S]*<\/)dt>$/,"<legend$1legend>"),l.outerHTML=l.innerHTML,e.outerHTML=e.outerHTML.replace(/^<dl(>[\s\S]*<\/)dl>$/,"<fieldset$1fieldset>"))}));
//# sourceMappingURL=dl-fieldset.min.js.map

@@ -1,1 +0,2 @@

(e=>{const l=e.querySelector("pre")?.parentNode;if(!l)return;l.insertAdjacentHTML("afterend",'<div class="container"><div class="handler"></div><table><tbody><tr><td class="docs"><div class="pilwrap"><a class="pilcrow" href="#">&para;</a></div></td><td class="code"></td></tr></tbody></table></div>');const t=l.nextElementSibling.querySelector("tbody");let n=t.lastElementChild,r=n.cloneNode(!0),i=!1;for(;;){const e=l.firstElementChild;if(!e)break;"PRE"===e.tagName?(n.lastElementChild.append(e),i=!0):(i&&(n=r.cloneNode(!0),t.append(n),i=!1),n.firstElementChild.append(e))}l.remove();for(let e of t.rows)if(e.querySelector("td.docs img")){let l=e.previousElementSibling;if(!l)continue;for(""!==t.lastElementChild.cells[1].innerText&&t.append(r.cloneNode(!0)),l.cells[0].after(t.lastElementChild.cells[1]);l;){const e=l.nextElementSibling?.cells;if(!e)break;e[0].after(l.lastElementChild),l=l.nextElementSibling}break}[...t.rows].forEach(((e,l)=>{e.id="row"+(l+1),e.querySelector(".pilcrow").href="#"+e.id}))})(document);
(e=>{const l=e.querySelector("pre")?.parentNode;if(!l)return;l.insertAdjacentHTML("afterend",'<div class="container"><div class="handler"></div><table><tbody><tr><td class="docs"><div class="pilwrap"><a class="pilcrow" href="#">&para;</a></div></td><td class="code"></td></tr></tbody></table></div>');const t=l.nextElementSibling.querySelector("tbody");let n=t.lastElementChild,r=n.cloneNode(!0),i=!1;for(;;){const e=l.firstElementChild;if(!e)break;"PRE"===e.tagName?(n.lastElementChild.append(e),i=!0):(i&&(n=r.cloneNode(!0),t.append(n),i=!1),n.firstElementChild.append(e))}l.remove();for(let e of t.rows)if(e.querySelector("td.docs img")){let l=e.previousElementSibling;if(!l)continue;for(""!==t.lastElementChild.cells[1].innerText&&t.append(r.cloneNode(!0)),l.cells[0].after(t.lastElementChild.cells[1]);l;){const e=l.nextElementSibling?.cells;if(!e)break;e[0].after(l.lastElementChild),l=l.nextElementSibling}break}[...t.rows].forEach(((e,l)=>{e.id="row"+(l+1),e.querySelector(".pilcrow").href="#"+e.id}))})(document);
//# sourceMappingURL=docco-classic.min.js.map

@@ -1,1 +0,2 @@

jQuery.fn.disableTextSelect=function(){return this.each((function(){$(this).css({MozUserSelect:"none",webkitUserSelect:"none"}).attr("unselectable","on").bind("selectstart",(function(){return!1}))}))},jQuery.fn.enableTextSelect=function(){return this.each((function(){$(this).css({MozUserSelect:"",webkitUserSelect:""}).attr("unselectable","off").unbind("selectstart")}))},$(document).ready((function(){var e=$("td.docs"),t=$("td.code"),s=$("div.handler");s.css("height",$("table").css("height")),s.css("left",t.offset().left);var n=parseInt(e.css("padding-right")),c=parseInt(e.css("padding-left")),o=parseInt(s.css("width"));s.mousedown((function(){$("body").disableTextSelect(),$(document).bind("mousemove",(function(i){var a=i.pageX-e.offset().left-n-c-.5*o;e.width(a),s.css("left",t.offset().left)})).mouseup((function(){$("body").enableTextSelect(),$(document).unbind("mousemove")}))}));var i="both";$(document).keydown((function(n){if(84==n.which)switch(i){case"both":t.hide(500),s.hide(),i="left";break;case"left":t.show(500),e.hide(500),i="right";break;case"right":t.show(500),e.show(500),s.show(500),i="both"}}))}));
jQuery.fn.disableTextSelect=function(){return this.each((function(){$(this).css({MozUserSelect:"none",webkitUserSelect:"none"}).attr("unselectable","on").bind("selectstart",(function(){return!1}))}))},jQuery.fn.enableTextSelect=function(){return this.each((function(){$(this).css({MozUserSelect:"",webkitUserSelect:""}).attr("unselectable","off").unbind("selectstart")}))},$(document).ready((function(){var e=$("td.docs"),t=$("td.code"),s=$("div.handler");s.css("height",$("table").css("height")),s.css("left",t.offset().left);var n=parseInt(e.css("padding-right")),c=parseInt(e.css("padding-left")),o=parseInt(s.css("width"));s.mousedown((function(){$("body").disableTextSelect(),$(document).bind("mousemove",(function(i){var a=i.pageX-e.offset().left-n-c-.5*o;e.width(a),s.css("left",t.offset().left)})).mouseup((function(){$("body").enableTextSelect(),$(document).unbind("mousemove")}))}));var i="both";$(document).keydown((function(n){if(84==n.which)switch(i){case"both":t.hide(500),s.hide(),i="left";break;case"left":t.show(500),e.hide(500),i="right";break;case"right":t.show(500),e.show(500),s.show(500),i="both"}}))}));
//# sourceMappingURL=docco-resize.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=/^(https?:)?\/\//;e.querySelectorAll("a").forEach((e=>{e.title||(e.title=decodeURI(e.href)),t.test(e.getAttribute("href"))&&(e.target="_blank",0===e.childElementCount&&t.test(e.innerText)&&(e.innerText=e.innerText.replace(t,"").replace(/(.+)#.*$/,"$1")))}))})(document);
(e=>{const t=/^(https?:)?\/\//;e.querySelectorAll("a").forEach((e=>{e.title||(e.title=decodeURI(e.href)),t.test(e.getAttribute("href"))&&(e.target="_blank",0===e.childElementCount&&t.test(e.innerText)&&(e.innerText=e.innerText.replace(t,"").replace(/(.+)#.*$/,"$1")))}))})(document);
//# sourceMappingURL=external-link.min.js.map

@@ -1,1 +0,2 @@

(t=>{const e="faq-list",n="faq-clicked";function l(l,o){const i=l.children;if(0===i.length)return;for(let t of i)if(t.childElementCount<2)return;let c=l.classList;if(c.length>0&&!c.contains(e))return;c.add(e);const s=t.createElement("span");let a=!1;s.className="faq-button",s.innerText="⊕",s.onclick=function(){a=!a,this.innerText=a?"⊖":"⊕";for(const t of l.children)t.classList.toggle(n,a)},l.before(s);for(let t=0;t<i.length;t++){let e=i[t];e.id="faq-"+(o?o+"-":"")+(t+1);let l=e.firstElementChild;l.insertAdjacentHTML("beforeend",` <span class="anchor"><a href="#${e.id}">#</a></span>`),location.hash==="#"+e.id&&(e.scrollIntoView(),e.classList.add(n)),l.onclick=function(t){e.classList.toggle(n)}}}const o=t.querySelectorAll(["div","main","section","article"].map((t=>t+":not(.footnotes) > ol")).join(","));for(let t=0;t<o.length;t++){l(o[t],o.length>1?t+1:0)}})(document);
(t=>{const e="faq-list",n="faq-clicked";function l(l,o){const i=l.children;if(0===i.length)return;for(let t of i)if(t.childElementCount<2)return;let c=l.classList;if(c.length>0&&!c.contains(e))return;c.add(e);const s=t.createElement("span");let a=!1;s.className="faq-button",s.innerText="⊕",s.onclick=function(){a=!a,this.innerText=a?"⊖":"⊕";for(const t of l.children)t.classList.toggle(n,a)},l.before(s);for(let t=0;t<i.length;t++){let e=i[t];e.id="faq-"+(o?o+"-":"")+(t+1);let l=e.firstElementChild;l.insertAdjacentHTML("beforeend",` <span class="anchor"><a href="#${e.id}">#</a></span>`),location.hash==="#"+e.id&&(e.scrollIntoView(),e.classList.add(n)),l.onclick=function(t){e.classList.toggle(n)}}}const o=t.querySelectorAll(["div","main","section","article"].map((t=>t+":not(.footnotes) > ol")).join(","));for(let t=0;t<o.length;t++){l(o[t],o.length>1?t+1:0)}})(document);
//# sourceMappingURL=faq.min.js.map

@@ -1,1 +0,2 @@

(e=>{e.querySelectorAll('sup[id^="fnref:"] > a.footnote-ref, a.footnote-ref > sup').forEach((t=>{/^[0-9]+$/.test(t.innerText)&&(t.innerText=`[${t.innerText}]`,t.parentNode.before(e.createTextNode(" ")))})),e.querySelectorAll(".footnotes > ol > li > p ~ .footnote-return").forEach((e=>{e.previousElementSibling.lastChild.after(e)}))})(document);
(e=>{e.querySelectorAll('sup[id^="fnref:"] > a.footnote-ref, a.footnote-ref > sup').forEach((t=>{/^[0-9]+$/.test(t.innerText)&&(t.innerText=`[${t.innerText}]`,t.parentNode.before(e.createTextNode(" ")))})),e.querySelectorAll(".footnotes > ol > li > p ~ .footnote-return").forEach((e=>{e.previousElementSibling.lastChild.after(e)}))})(document);
//# sourceMappingURL=fix-footnote.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("pre[class]:not([class^=language-])").forEach((e=>{e.firstElementChild?.classList.add(`language-${e.classList[0]}`),e.removeAttribute("class")})),document.querySelectorAll("table").forEach((e=>{"width:100%;"===e.getAttribute("style")&&e.removeAttribute("style"),e.querySelector("colgroup")?.remove()}));
document.querySelectorAll("pre[class]:not([class^=language-])").forEach((e=>{e.firstElementChild?.classList.add(`language-${e.classList[0]}`),e.removeAttribute("class")})),document.querySelectorAll("table").forEach((e=>{"width:100%;"===e.getAttribute("style")&&e.removeAttribute("style"),e.querySelector("colgroup")?.remove()}));
//# sourceMappingURL=fix-pandoc.min.js.map

@@ -1,1 +0,2 @@

!function(){const e=document.getElementById("TableOfContents");if(!e)return;e.querySelectorAll('a[href^="#"]').forEach((e=>{let t=e.getAttribute("href").replace(/^#/,"");const n=document.getElementById(t);if(t=t.replace(/-https?-.+$/,""),n&&(n.id=t),e.href="#"+t,""!==e.innerHTML)return;const r=e.nextElementSibling;r&&"A"===r.tagName&&(e.innerHTML=r.innerHTML,r.remove())}));let t,n=e.querySelector("ul");1===n.childElementCount&&(t=n.firstElementChild,"LI"===t.tagName&&(n.outerHTML=t.innerHTML))}();
!function(){const e=document.getElementById("TableOfContents");if(!e)return;e.querySelectorAll('a[href^="#"]').forEach((e=>{let t=e.getAttribute("href").replace(/^#/,"");const n=document.getElementById(t);if(t=t.replace(/-https?-.+$/,""),n&&(n.id=t),e.href="#"+t,""!==e.innerHTML)return;const r=e.nextElementSibling;r&&"A"===r.tagName&&(e.innerHTML=r.innerHTML,r.remove())}));let t,n=e.querySelector("ul");1===n.childElementCount&&(t=n.firstElementChild,"LI"===t.tagName&&(n.outerHTML=t.innerHTML))}();
//# sourceMappingURL=fix-toc.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.currentScript?.dataset,a="folder";let n=!!t?.open;if(e.querySelectorAll(t?.selector||"pre:not([class])>code[class],pre[class]").forEach((r=>{const l=e.createElement("details"),o=e.createElement("summary");l.className=a,l.open=n,o.innerText=(t?.label||"Details")+(t?.tagName?` <${r.tagName}>`:""),"CODE"===r.tagName&&"PRE"===r.parentNode.tagName&&(r=r.parentNode),l.append(o),r.before(l),l.append(r)})),!t?.hasOwnProperty("button"))return;const r=e.querySelector(t.parent);let l=e.querySelector(t.button);if(!l&&!r)return;l||(l=e.createElement("button"),l.id="toggle-all",r.insertAdjacentElement(t.position||"afterbegin",l));const o=t.buttonLabel||"Show Details",c=t.buttonLabel2||"Hide Details";function s(){l.innerText=n?c:o}s(),l.onclick=t=>{n=!n,e.querySelectorAll(`details.${a}`).forEach((e=>{e.open=n})),s()}})(document);
(e=>{const t=e.currentScript?.dataset,a="folder";let n=!!t?.open;if(e.querySelectorAll(t?.selector||"pre:not([class])>code[class],pre[class]").forEach((r=>{const l=e.createElement("details"),o=e.createElement("summary");l.className=a,l.open=n,o.innerText=(t?.label||"Details")+(t?.tagName?` <${r.tagName}>`:""),"CODE"===r.tagName&&"PRE"===r.parentNode.tagName&&(r=r.parentNode),l.append(o),r.before(l),l.append(r)})),!t?.hasOwnProperty("button"))return;const r=e.querySelector(t.parent);let l=e.querySelector(t.button);if(!l&&!r)return;l||(l=e.createElement("button"),l.id="toggle-all",r.insertAdjacentElement(t.position||"afterbegin",l));const o=t.buttonLabel||"Show Details",c=t.buttonLabel2||"Hide Details";function s(){l.innerText=n?c:o}s(),l.onclick=t=>{n=!n,e.querySelectorAll(`details.${a}`).forEach((e=>{e.open=n})),s()}})(document);
//# sourceMappingURL=fold-details.min.js.map

@@ -1,1 +0,2 @@

(()=>{const e=[];let l,a;document.querySelectorAll("pre>code[class^=language-],pre[class^=language-]").forEach((l=>{"CODE"===l.tagName&&"PRE"===l.parentNode.tagName&&(l=l.parentNode),e.indexOf(l)<0&&e.push(l)})),e.forEach((n=>{n.onclick=t=>{let o=n.nextElementSibling;for(;o&&e.indexOf(o)<0;)l=a,void 0===l&&(l=""===o.style.display),o.style.display=l?"none":"",o=o.nextElementSibling;(t.altKey||t.ctrlKey)&&(a=l,e.forEach((e=>e!==n&&e.click())),a=void 0),l=void 0}}))})();
(()=>{const e=[];let l,a;document.querySelectorAll("pre>code[class^=language-],pre[class^=language-]").forEach((l=>{"CODE"===l.tagName&&"PRE"===l.parentNode.tagName&&(l=l.parentNode),e.indexOf(l)<0&&e.push(l)})),e.forEach((n=>{n.onclick=t=>{let o=n.nextElementSibling;for(;o&&e.indexOf(o)<0;)l=a,void 0===l&&(l=""===o.style.display),o.style.display=l?"none":"",o=o.nextElementSibling;(t.altKey||t.ctrlKey)&&(a=l,e.forEach((e=>e!==n&&e.click())),a=void 0),l=void 0}}))})();
//# sourceMappingURL=fold-output.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("pre,table,#TableOfContents").forEach((t=>{function e(t){t.classList.add("fullwidth")}switch(t.tagName){case"PRE":const l=t.firstElementChild;"CODE"===l?.tagName&&l.scrollWidth>l.offsetWidth&&e(l.parentNode);break;case"TABLE":const a=t.parentElement;a&&a.offsetWidth<t.offsetWidth&&e(t);break;default:t.querySelectorAll("a").forEach((l=>{!t.classList.contains("fullwidth")&&l.getClientRects().length>1&&e(t)}))}}));
document.querySelectorAll("pre,table,#TableOfContents").forEach((t=>{function e(t){t.classList.add("fullwidth")}switch(t.tagName){case"PRE":const l=t.firstElementChild;"CODE"===l?.tagName&&l.scrollWidth>l.offsetWidth&&e(l.parentNode);break;case"TABLE":const a=t.parentElement;a&&a.offsetWidth<t.offsetWidth&&e(t);break;default:t.querySelectorAll("a").forEach((l=>{!t.classList.contains("fullwidth")&&l.getClientRects().length>1&&e(t)}))}}));
//# sourceMappingURL=fullwidth.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.querySelector("#search-input"),n=e.querySelector(".search-results");if(!t||!n)return;const i=t.dataset;let o;function r(e,t,n){let i;for(let n of e.matches)n.key===t&&(i=n.indices);const o=e.item[t];if(!i)return o.substr(0,n);let r,s,l=0,c=Math.ceil(n/2);for(;s=i.shift();)s[1]-s[0]>=l&&(r=s,l=r[1]-r[0]);return(r[0]-c>0?"[...] ":"")+o.substring(r[0]-c,r[0])+"<b>"+o.substring(r[0],r[1]+1)+"</b>"+o.substring(r[1]+1,r[1]+1+c)+(r[1]+1+c<o.length?" [...] ":"")}t.addEventListener("focus",(e=>{if(o)return;t.placeholder=i.infoInit||"Loading search index... Please hold on.";const n=new XMLHttpRequest;n.responseType="json",n.addEventListener("load",(e=>{const r=n.response;r&&0!==r.length?(t.placeholder=i.infoOk||"Type to search:",t.focus(),o=new Fuse(r,{keys:[{name:"title",weight:5},"content"],useExtendedSearch:!0,includeMatches:!0,ignoreLocation:!0,threshold:.1})):t.placeholder=i.infoFail||"Failed to load search index!"}),!1),n.open("GET",i.indexUrl||"/index.json"),n.send(null)}));const s=i.textLength||300,l=i.limit||50,c=i.delay||500,a=n.firstElementChild.cloneNode(!0);function u(){if(o){n.innerHTML="";for(let e of o.search(t.value,{limit:l})){const t=a.cloneNode(!0),i=t.querySelector("a");i.href=e.item.uri,i.innerHTML=r(e,"title",s),t.querySelector(".search-preview").innerHTML=r(e,"content",s),n.appendChild(t)}}}n.innerHTML="";const d=/Mobi/i.test(navigator.userAgent);t.addEventListener(d?"change":"input",d?u:function(e,t){let n;return function(...i){clearTimeout(n),n=setTimeout((()=>e(...i)),t)}}(u,c))})(document);
(e=>{const t=e.querySelector("#search-input"),n=e.querySelector(".search-results");if(!t||!n)return;const i=t.dataset;let o;function r(e,t,n){let i;for(let n of e.matches)n.key===t&&(i=n.indices);const o=e.item[t];if(!i)return o.substr(0,n);let r,s,l=0,c=Math.ceil(n/2);for(;s=i.shift();)s[1]-s[0]>=l&&(r=s,l=r[1]-r[0]);return(r[0]-c>0?"[...] ":"")+o.substring(r[0]-c,r[0])+"<b>"+o.substring(r[0],r[1]+1)+"</b>"+o.substring(r[1]+1,r[1]+1+c)+(r[1]+1+c<o.length?" [...] ":"")}t.addEventListener("focus",(e=>{if(o)return;t.placeholder=i.infoInit||"Loading search index... Please hold on.";const n=new XMLHttpRequest;n.responseType="json",n.addEventListener("load",(e=>{const r=n.response;r&&0!==r.length?(t.placeholder=i.infoOk||"Type to search:",t.focus(),o=new Fuse(r,{keys:[{name:"title",weight:5},"content"],useExtendedSearch:!0,includeMatches:!0,ignoreLocation:!0,threshold:.1})):t.placeholder=i.infoFail||"Failed to load search index!"}),!1),n.open("GET",i.indexUrl||"/index.json"),n.send(null)}));const s=i.textLength||300,l=i.limit||50,c=i.delay||500,a=n.firstElementChild.cloneNode(!0);function u(){if(o){n.innerHTML="";for(let e of o.search(t.value,{limit:l})){const t=a.cloneNode(!0),i=t.querySelector("a");i.href=e.item.uri,i.innerHTML=r(e,"title",s),t.querySelector(".search-preview").innerHTML=r(e,"content",s),n.appendChild(t)}}}n.innerHTML="";const d=/Mobi/i.test(navigator.userAgent);t.addEventListener(d?"change":"input",d?u:function(e,t){let n;return function(...i){clearTimeout(n),n=setTimeout((()=>e(...i)),t)}}(u,c))})(document);
//# sourceMappingURL=fuse-search.min.js.map

@@ -1,1 +0,2 @@

(e=>{!function n(t){t.childNodes.forEach((t=>{t.nodeType===Node.COMMENT_NODE?function(n){const t=n.textContent,a=/^#[\s\n]+([\s\S]+)[\s\n]+$/;if(!a.test(t))return;e.body.classList.add("has-notes","hide-notes");const o=e.createElement("P"===n.parentNode.nodeName?"span":"p");o.className="hash-note",o.innerText=t.replace(a,"$1"),o.innerHTML=o.innerHTML.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>').replace(/(^|[^"])(https?:\/\/)([-a-zA-Z0-9%._=/\+]+)(#)?([-a-zA-Z0-9%._=\+]+)?/g,'$1<a href="$2$3$4$5">$3$4</a>'),n.before(o),n.remove()}(t):n(t)}))}(e.body)})(document);
(e=>{!function n(t){t.childNodes.forEach((t=>{t.nodeType===Node.COMMENT_NODE?function(n){const t=n.textContent,a=/^#[\s\n]+([\s\S]+)[\s\n]+$/;if(!a.test(t))return;e.body.classList.add("has-notes","hide-notes");const o=e.createElement("P"===n.parentNode.nodeName?"span":"p");o.className="hash-note",o.innerText=t.replace(a,"$1"),o.innerHTML=o.innerHTML.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>').replace(/(^|[^"])(https?:\/\/)([-a-zA-Z0-9%._=/\+]+)(#)?([-a-zA-Z0-9%._=\+]+)?/g,'$1<a href="$2$3$4$5">$3$4</a>'),n.before(o),n.remove()}(t):n(t)}))}(e.body)})(document);
//# sourceMappingURL=hash-notes.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach((e=>{e.id&&!e.querySelector(".anchor")&&e.insertAdjacentHTML("beforeend",` <span class="anchor"><a href="#${e.id}">#</a></span>`)}));
document.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach((e=>{e.id&&!e.querySelector(".anchor")&&e.insertAdjacentHTML("beforeend",` <span class="anchor"><a href="#${e.id}">#</a></span>`)}));
//# sourceMappingURL=heading-anchor.min.js.map

@@ -1,1 +0,2 @@

(e=>{const r=["Enter","Up","Down","Left","Right"],t=["&crarr;","&uarr;","&darr;","&larr;","&rarr;"];function n(e){return r.map(((r,n)=>e=e.replace(new RegExp(`>${r}<`,"g"),` title="${r+(n?" Arrow":"")}">${t[n]}<`))),e}const o="Esc|Tab|PageUp|PageDown|Space|Delete|Home|End|PrtScr?|PrintScreen|"+Array(12).fill().map(((e,r)=>"F"+(r+1))).concat(r).join("|"),a="Ctrl|Control|Shift|Alt|Cmd|Command|fn",c=new RegExp(`^(${o}|${a})$`),l=new RegExp(`^(${a}) [/+] `),i=new RegExp(`^(${o}|${a}|[a-zA-Z0-9]|Click)( [/+] )(.*)`);e.querySelectorAll(":not(pre) > code").forEach((e=>{if(e.childElementCount>0)return;let r=e.innerText;if(c.test(r))return void(e.outerHTML=n(`<kbd>${r}</kbd>`));if(!l.test(r))return;let t="";for(r+=" + ";i.test(r);)t+=r.replace(i,"<kbd>$1</kbd>$2"),r=r.replace(i,"$3");""===r&&(e.outerHTML=n(t.replace(/ \+ $/,"")))}))})(document);
(e=>{const r=["Enter","Up","Down","Left","Right"],t=["&crarr;","&uarr;","&darr;","&larr;","&rarr;"];function n(e){return r.map(((r,n)=>e=e.replace(new RegExp(`>${r}<`,"g"),` title="${r+(n?" Arrow":"")}">${t[n]}<`))),e}const o="Esc|Tab|PageUp|PageDown|Space|Delete|Home|End|PrtScr?|PrintScreen|"+Array(12).fill().map(((e,r)=>"F"+(r+1))).concat(r).join("|"),a="Ctrl|Control|Shift|Alt|Cmd|Command|fn",c=new RegExp(`^(${o}|${a})$`),l=new RegExp(`^(${a}) [/+] `),i=new RegExp(`^(${o}|${a}|[a-zA-Z0-9]|Click)( [/+] )(.*)`);e.querySelectorAll(":not(pre) > code").forEach((e=>{if(e.childElementCount>0)return;let r=e.innerText;if(c.test(r))return void(e.outerHTML=n(`<kbd>${r}</kbd>`));if(!l.test(r))return;let t="";for(r+=" + ";i.test(r);)t+=r.replace(i,"<kbd>$1</kbd>$2"),r=r.replace(i,"$3");""===r&&(e.outerHTML=n(t.replace(/ \+ $/,"")))}))})(document);
//# sourceMappingURL=key-buttons.min.js.map

@@ -1,1 +0,2 @@

hljs.configure({languages:[]}),hljs.highlightAll?hljs.highlightAll():hljs.initHighlightingOnLoad();
hljs.configure({languages:[]}),hljs.highlightAll?hljs.highlightAll():hljs.initHighlightingOnLoad();
//# sourceMappingURL=load-highlight.min.js.map

@@ -1,1 +0,2 @@

pangu.spacingPage();
pangu.spacingPage();
//# sourceMappingURL=load-pangu.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.createElement("canvas").getContext("2d"),a="abcdefghijklmnopqrstuvwxyz0123456789";t.font="72px monospace";const n=t.measureText(a).width;for(let e of[" SC"," CN"," TC"," TW",""])if(t.font=`72px 'Source Han Serif${e}', monospace`,t.measureText(a).width!=n)return;let o,c={kitId:"kwz5xar",scriptTimeout:3e3,async:!0},s=e.documentElement,i=setTimeout((function(){s.className=s.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"}),c.scriptTimeout),r=e.createElement("script"),m=!1,l=e.getElementsByTagName("script")[0];s.className+=" wf-loading",r.src="https://use.typekit.net/"+c.kitId+".js",r.async=!0,r.onload=r.onreadystatechange=function(){if(o=this.readyState,!(m||o&&"complete"!=o&&"loaded"!=o)){m=!0,clearTimeout(i);try{Typekit.load(c)}catch(e){}}},l.parentNode.insertBefore(r,l)})(document);
(e=>{const t=e.createElement("canvas").getContext("2d"),a="abcdefghijklmnopqrstuvwxyz0123456789";t.font="72px monospace";const n=t.measureText(a).width;for(let e of[" SC"," CN"," TC"," TW",""])if(t.font=`72px 'Source Han Serif${e}', monospace`,t.measureText(a).width!=n)return;let o,c={kitId:"kwz5xar",scriptTimeout:3e3,async:!0},s=e.documentElement,i=setTimeout((function(){s.className=s.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"}),c.scriptTimeout),r=e.createElement("script"),m=!1,l=e.getElementsByTagName("script")[0];s.className+=" wf-loading",r.src="https://use.typekit.net/"+c.kitId+".js",r.async=!0,r.onload=r.onreadystatechange=function(){if(o=this.readyState,!(m||o&&"complete"!=o&&"loaded"!=o)){m=!0,clearTimeout(i);try{Typekit.load(c)}catch(e){}}},l.parentNode.insertBefore(r,l)})(document);
//# sourceMappingURL=load-typekit.min.js.map

@@ -1,1 +0,2 @@

[...document.getElementsByTagName("code")].forEach((t=>{if("PRE"===t.parentNode.tagName||t.childElementCount>0||t.classList.contains("nolatex"))return;let e=t.textContent;/^\$[^$]/.test(e)&&/[^$]\$$/.test(e)&&(e=e.replace(/^\$/,"\\(").replace(/\$$/,"\\)"),t.textContent=e),(/^\\\((.|\s)+\\\)$/.test(e)||/^\\\[(.|\s)+\\\]$/.test(e)||/^\$(.|\s)+\$$/.test(e)||/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(e))&&(t.outerHTML=t.innerHTML)}));
[...document.getElementsByTagName("code")].forEach((t=>{if("PRE"===t.parentNode.tagName||t.childElementCount>0||t.classList.contains("nolatex"))return;let e=t.textContent;/^\$[^$]/.test(e)&&/[^$]\$$/.test(e)&&(e=e.replace(/^\$/,"\\(").replace(/\$$/,"\\)"),t.textContent=e),(/^\\\((.|\s)+\\\)$/.test(e)||/^\\\[(.|\s)+\\\]$/.test(e)||/^\$(.|\s)+\$$/.test(e)||/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(e))&&(t.outerHTML=t.innerHTML)}));
//# sourceMappingURL=math-code.min.js.map

@@ -1,1 +0,2 @@

m=window.MathJax||{},m.tex=m.tex||{},m.tex.tags=m.tex.tags||"ams",window.MathJax=m;
m=window.MathJax||{},m.tex=m.tex||{},m.tex.tags=m.tex.tags||"ams",window.MathJax=m;
//# sourceMappingURL=mathjax-config.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll("pre > code:only-child").forEach((l=>{const e=l.className;""===e||"hljs"===e?l.className="nohighlight":/^language-/.test(e)&&!/hljs/.test(e)&&(l.className+=" hljs")}));
document.querySelectorAll("pre > code:only-child").forEach((l=>{const e=l.className;""===e||"hljs"===e?l.className="nohighlight":/^language-/.test(e)&&!/hljs/.test(e)&&(l.className+=" hljs")}));
//# sourceMappingURL=no-highlight.min.js.map

@@ -1,1 +0,2 @@

(a=>{const e=a.currentScript?.dataset,t=e?.colon||":";function c(e,c){a.querySelectorAll(e).forEach(((a,e)=>{a.querySelector(".cap-num")||a.insertAdjacentHTML("afterbegin",`<span class="cap-num">${c}${e+1}${t}</span> `)}))}c("figure > figcaption, .figure > p.caption, .float > .figcaption",e?.figLabel||"Figure "),c("table > caption",e?.tabLabel||"Table ")})(document);
(a=>{const e=a.currentScript?.dataset,t=e?.colon||":";function c(e,c){a.querySelectorAll(e).forEach(((a,e)=>{a.querySelector(".cap-num")||a.insertAdjacentHTML("afterbegin",`<span class="cap-num">${c}${e+1}${t}</span> `)}))}c("figure > figcaption, .figure > p.caption, .float > .figcaption",e?.figLabel||"Figure "),c("table > caption",e?.tabLabel||"Table ")})(document);
//# sourceMappingURL=number-captions.min.js.map

@@ -1,1 +0,2 @@

(e=>{let r;[".article",".body","article","body"].forEach((n=>{r||(r=e.querySelector(n))}));const n=r.querySelectorAll("h1, h2, h3, h4, h5, h6");if(0===n.length)return;if(r.querySelectorAll("span.header-section-number").forEach((e=>{e.classList.add("section-number")})),r.querySelector("span.section-number"))return void r.querySelectorAll("span.section-number").forEach((e=>{e.innerText=e.innerText.replace(/^(0\.)+/,"")}));let t,c=0,a=[0,0,0,0,0,0];n.forEach((e=>{if(t=parseInt(e.tagName.replace(/^h/i,"")),t<c)for(let e=t;e<a.length;e++)a[e]=0;e.insertAdjacentHTML("afterbegin",(a[t-1]++,`<span class="section-number">${a.join(".").replace(/^(0\.)+|(\.0)+$/g,"").replace(/^([0-9]+)$/,"$1.")}</span> `)),c=t}))})(document);
(e=>{let r;[".article",".body","article","body"].forEach((n=>{r||(r=e.querySelector(n))}));const n=r.querySelectorAll("h1, h2, h3, h4, h5, h6");if(0===n.length)return;if(r.querySelectorAll("span.header-section-number").forEach((e=>{e.classList.add("section-number")})),r.querySelector("span.section-number"))return void r.querySelectorAll("span.section-number").forEach((e=>{e.innerText=e.innerText.replace(/^(0\.)+/,"")}));let t,c=0,a=[0,0,0,0,0,0];n.forEach((e=>{if(t=parseInt(e.tagName.replace(/^h/i,"")),t<c)for(let e=t;e<a.length;e++)a[e]=0;e.insertAdjacentHTML("afterbegin",(a[t-1]++,`<span class="section-number">${a.join(".").replace(/^(0\.)+|(\.0)+$/g,"").replace(/^([0-9]+)$/,"$1.")}</span> `)),c=t}))})(document);
//# sourceMappingURL=number-sections.min.js.map

@@ -1,1 +0,2 @@

(e=>{const l=e.querySelectorAll(":not(li) > ol");l.forEach(((e,o)=>{e.querySelectorAll(":scope > li").forEach(((e,t)=>{e.id||(e.id="li-"+(l.length>1?o+1+"-":"")+(t+1))}))})),e.querySelectorAll("ol").forEach(((e,l)=>{let o,t,c=e.parentNode;"LI"===c?.tagName&&(o=c.id),t=(o||"li-"+(l+1))+"-",e.querySelectorAll(":scope > li").forEach(((e,l)=>{e.id||(e.id=t+(l+1)),e.addEventListener("click",(l=>{l.altKey&&(location.hash=e.id,l.stopPropagation())}))}))}))})(document);
(e=>{const l=e.querySelectorAll(":not(li) > ol");l.forEach(((e,o)=>{e.querySelectorAll(":scope > li").forEach(((e,t)=>{e.id||(e.id="li-"+(l.length>1?o+1+"-":"")+(t+1))}))})),e.querySelectorAll("ol").forEach(((e,l)=>{let o,t,c=e.parentNode;"LI"===c?.tagName&&(o=c.id),t=(o||"li-"+(l+1))+"-",e.querySelectorAll(":scope > li").forEach(((e,l)=>{e.id||(e.id=t+(l+1)),e.addEventListener("click",(l=>{l.altKey&&(location.hash=e.id,l.stopPropagation())}))}))}))})(document);
//# sourceMappingURL=ol-id.min.js.map

@@ -1,1 +0,2 @@

(e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const a=e.createElement("div"),s=n("h1").length>1;a.className="pagesjs-page",a.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let i,o,c,l=[];function d(e){return e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",a.innerHTML),i=e||a.cloneNode(!0),o=i.children[1],l.length&&i.classList.add(...l),i}function f(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function p(e){if(e.classList.contains("pagesjs-page"))return i.after(d(e)),void(r(e)>3&&(o.append(...[...e.children].slice(3)),i.after(d())));if(i.scrollHeight>c){const[e,t]=[i,o];e.after(d()),r(t)>1&&o.append(t.lastChild)}o.append(e),g(e)}function g(e,t,n,a){const s=e.tagName,l="CODE"===s;if((!l||!t)&&i.scrollHeight<=c)return;const p=a||i,h=e.cloneNode();if(t?t.append(h):(o.append(h),p.after(d()),o.append(e)),"PRE"===s){const t=e.firstElementChild;"CODE"==t?.tagName&&/\n/.test(t.innerHTML)&&g(t,h,e,p)}else"DIV"===s&&1===r(e)&&g(e.firstElementChild,h,e,p);const u=h.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(s)&&r(e)>1)for(;;){const t=e.firstChild;if(!t)break;if(h.append(t),p.scrollHeight>c){(u||r(h)>1)&&e.insertBefore(t,e.firstChild),"OL"===s&&(e.start+=r(h));break}}if(l){const t=e.innerHTML.split("\n"),r=[];for(let e of t)if(r.push(e),h.innerHTML=r.join("\n"),p.scrollHeight>c){r.pop(),h.innerHTML=r.join("\n");break}if(r.length>0&&(e.innerHTML=t.slice(r.length).join("\n"),f(n)))return}(!f(h)||l||u)&&g(t?n:e)}function h(e){return e&&(e.dataset.shortTitle||e.innerText)}const u=h(t("h1.title, .frontmatter h1, .title, h1")),m=(s?"h1":"h2")+":not(.frontmatter *)",b=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));function E(){if("complete"!==e.readyState)return setTimeout(E,10);const r=e.body.classList;if(r.contains("pagesjs"))return;r.add("pagesjs"),s&&r.add("page-book"),e.body.insertAdjacentElement("afterbegin",d()),c=i.clientHeight||window.innerHeight,n(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),r.add("pagesjs-filling"),[t(".frontmatter"),t("#TOC"),t(".abstract")].forEach((e=>{e&&(p(e),s&&i.after(d()))})),n(".body").forEach((e=>{l=["chapter","appendix"].filter((t=>e.classList.contains(t))),s&&(""===i.innerText?d(i):i.after(d())),[...e.children].map(p),f(e.parentNode),f(e)})),r.remove("pagesjs-filling"),n('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),r=t.firstElementChild;for(r?.classList.contains("section-number")?r.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));let a,o=0;n(".pagesjs-page").forEach((e=>{if(f(e))return;if(s){if(t(".frontmatter",e))return;t(m,e)&&(a="")}const r=function(e){let t=+e.dataset.pagesOffset;if(t)return t;const r=e.scrollHeight;if(t=Math.ceil(r/c),t<=1)return t;const a=b.concat([...n("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!a)return t;function s(){return Math.ceil((r+(t-1)*a)/c)}let i=s();for(;i>t;)t=i,i=s();return t}(e);r>1&&e.classList.add("page-multiple"),o+=r,e.classList.add("page-"+(o%2==0?"even":"odd"));const i={pageNumber:o,mainTitle:u,pageTitle:a};let l;[e.children[0],e.children[2]].forEach((e=>{for(const t in i)i[t]&&(e.dataset[t]=i[t])})),a=h([...n(m,e)].pop())||a,n(".footnotes",e).forEach(((t,n)=>{0===n?(l=t,e.children[1].after(t)):(l.append(...t.children),t.remove())}))})),n('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",E);let L=sessionStorage.getItem("pagesjs");L&&E(),addEventListener("keypress",(e=>"p"===e.key&&(E(),L=L?"":"1",sessionStorage.setItem("pagesjs",L),L||location.reload())))})(document);
(e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const a=e.createElement("div"),s=n("h1").length>1;a.className="pagesjs-page",a.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let i,o,c,l=[];function d(e){return e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",a.innerHTML),i=e||a.cloneNode(!0),o=i.children[1],l.length&&i.classList.add(...l),i}function f(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function p(e){if(e.classList.contains("pagesjs-page"))return i.after(d(e)),void(r(e)>3&&(o.append(...[...e.children].slice(3)),i.after(d())));if(i.scrollHeight>c){const[e,t]=[i,o];e.after(d()),r(t)>1&&o.append(t.lastChild)}o.append(e),g(e)}function g(e,t,n,a){const s=e.tagName,l="CODE"===s;if((!l||!t)&&i.scrollHeight<=c)return;const p=a||i,h=e.cloneNode();if(t?t.append(h):(o.append(h),p.after(d()),o.append(e)),"PRE"===s){const t=e.firstElementChild;"CODE"==t?.tagName&&/\n/.test(t.innerHTML)&&g(t,h,e,p)}else"DIV"===s&&1===r(e)&&g(e.firstElementChild,h,e,p);const u=h.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(s)&&r(e)>1)for(;;){const t=e.firstChild;if(!t)break;if(h.append(t),p.scrollHeight>c){(u||r(h)>1)&&e.insertBefore(t,e.firstChild),"OL"===s&&(e.start+=r(h));break}}if(l){const t=e.innerHTML.split("\n"),r=[];for(let e of t)if(r.push(e),h.innerHTML=r.join("\n"),p.scrollHeight>c){r.pop(),h.innerHTML=r.join("\n");break}if(r.length>0&&(e.innerHTML=t.slice(r.length).join("\n"),f(n)))return}(!f(h)||l||u)&&g(t?n:e)}function h(e){return e&&(e.dataset.shortTitle||e.innerText)}const u=h(t("h1.title, .frontmatter h1, .title, h1")),m=(s?"h1":"h2")+":not(.frontmatter *)",b=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));function E(){if("complete"!==e.readyState)return setTimeout(E,10);const r=e.body.classList;if(r.contains("pagesjs"))return;r.add("pagesjs"),s&&r.add("page-book"),e.body.insertAdjacentElement("afterbegin",d()),c=i.clientHeight||window.innerHeight,n(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),r.add("pagesjs-filling"),[t(".frontmatter"),t("#TOC"),t(".abstract")].forEach((e=>{e&&(p(e),s&&i.after(d()))})),n(".body").forEach((e=>{l=["chapter","appendix"].filter((t=>e.classList.contains(t))),s&&(""===i.innerText?d(i):i.after(d())),[...e.children].map(p),f(e.parentNode),f(e)})),r.remove("pagesjs-filling"),n('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),r=t.firstElementChild;for(r?.classList.contains("section-number")?r.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));let a,o=0;n(".pagesjs-page").forEach((e=>{if(f(e))return;if(s){if(t(".frontmatter",e))return;t(m,e)&&(a="")}const r=function(e){let t=+e.dataset.pagesOffset;if(t)return t;const r=e.scrollHeight;if(t=Math.ceil(r/c),t<=1)return t;const a=b.concat([...n("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!a)return t;function s(){return Math.ceil((r+(t-1)*a)/c)}let i=s();for(;i>t;)t=i,i=s();return t}(e);r>1&&e.classList.add("page-multiple"),o+=r,e.classList.add("page-"+(o%2==0?"even":"odd"));const i={pageNumber:o,mainTitle:u,pageTitle:a};let l;[e.children[0],e.children[2]].forEach((e=>{for(const t in i)i[t]&&(e.dataset[t]=i[t])})),a=h([...n(m,e)].pop())||a,n(".footnotes",e).forEach(((t,n)=>{0===n?(l=t,e.children[1].after(t)):(l.append(...t.children),t.remove())}))})),n('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",E);let L=sessionStorage.getItem("pagesjs");L&&E(),addEventListener("keypress",(e=>"p"===e.key&&(E(),L=L?"":"1",sessionStorage.setItem("pagesjs",L),L||location.reload())))})(document);
//# sourceMappingURL=pages.min.js.map

@@ -1,1 +0,2 @@

(e=>{const r=e.querySelector(".nav-prev > a"),t=e.querySelector(".nav-next > a");e.addEventListener("keyup",(function(e){if("BODY"!=e.target.nodeName.toUpperCase())return;let o;"ArrowLeft"===e.key?e.altKey?history.back():r&&(o=r.href):"ArrowRight"==e.key&&(e.altKey?history.forward():t&&(o=t.href)),o&&(window.location=o)}));const o=e.querySelectorAll(".unlist");if(0===o.length)return;if(null!==sessionStorage.getItem("hide-notes"))return o.forEach((e=>e.classList.remove("unlist")));r&&t&&(window.location=e.referrer===t.href?r.href:t.href)})(document);
(e=>{const r=e.querySelector(".nav-prev > a"),t=e.querySelector(".nav-next > a");e.addEventListener("keyup",(function(e){if("BODY"!=e.target.nodeName.toUpperCase())return;let o;"ArrowLeft"===e.key?e.altKey?history.back():r&&(o=r.href):"ArrowRight"==e.key&&(e.altKey?history.forward():t&&(o=t.href)),o&&(window.location=o)}));const o=e.querySelectorAll(".unlist");if(0===o.length)return;if(null!==sessionStorage.getItem("hide-notes"))return o.forEach((e=>e.classList.remove("unlist")));r&&t&&(window.location=e.referrer===t.href?r.href:t.href)})(document);
//# sourceMappingURL=post-nav.min.js.map

@@ -1,1 +0,2 @@

(e=>{function t(t,r=e){return r.querySelector(t)}function r(t,r=e){return r.querySelectorAll(t)}renderMathInElement(e.body,{strict:!1,throwOnError:!1,trust:e=>["\\href","\\htmlId","\\htmlClass"].includes(e.command),macros:{"\\eqref":"\\htmlClass{ktx-eqref}{\\href{###1}{(\\text{#1})}}","\\ref":"\\htmlClass{ktx-ref}{\\href{###1}{\\text{#1}}}","\\label":"\\htmlClass{ktx-label}{\\htmlId{#1}{}}"}});const n=r(".katex:has(:is(.ktx-ref, .ktx-eqref))");if(!n.length)return;const s={};let l=0;r(".katex-display").forEach((e=>{const n=".ktx-label > [id]",a=t(n,e);if(!a)return;const o=[...r(":scope > [style]",a.offsetParent.parentNode)].map((e=>t(n,e)?.id||"")),c=[...r(".tag > .vlist-t > .vlist-r > .vlist > [style]",e)].map((e=>t(".eqn-num",e)?`(${++l})`:e.innerText.trim()));o.length===c.length?o.forEach(((e,t)=>e&&(s[e]=c[t]))):console.warn("labels and tags differ in length in ",e,o,c)})),n.forEach((e=>{const r=t("a",e);if(!r)return;const n=r.parentNode.classList.contains("ktx-eqref"),l=e.parentNode;l.after(r),l.remove(),function(e,t){const r=e.getAttribute("href").replace(/^#/,""),n=s[r];e.innerText=n?t?n:n.replace(/^\(|\)$/g,""):"???",e.classList.add("cross-ref-eq"+(t?"n":""))}(r,n)}))})(document);
(e=>{function t(t,r=e){return r.querySelector(t)}function r(t,r=e){return r.querySelectorAll(t)}renderMathInElement(e.body,{strict:!1,throwOnError:!1,trust:e=>["\\href","\\htmlId","\\htmlClass"].includes(e.command),macros:{"\\eqref":"\\htmlClass{ktx-eqref}{\\href{###1}{(\\text{#1})}}","\\ref":"\\htmlClass{ktx-ref}{\\href{###1}{\\text{#1}}}","\\label":"\\htmlClass{ktx-label}{\\htmlId{#1}{}}"}});const n=r(".katex:has(:is(.ktx-ref, .ktx-eqref))");if(!n.length)return;const s={};let l=0;r(".katex-display").forEach((e=>{const n=".ktx-label > [id]",a=t(n,e);if(!a)return;const o=[...r(":scope > [style]",a.offsetParent.parentNode)].map((e=>t(n,e)?.id||"")),c=[...r(".tag > .vlist-t > .vlist-r > .vlist > [style]",e)].map((e=>t(".eqn-num",e)?`(${++l})`:e.innerText.trim()));o.length===c.length?o.forEach(((e,t)=>e&&(s[e]=c[t]))):console.warn("labels and tags differ in length in ",e,o,c)})),n.forEach((e=>{const r=t("a",e);if(!r)return;const n=r.parentNode.classList.contains("ktx-eqref"),l=e.parentNode;l.after(r),l.remove(),function(e,t){const r=e.getAttribute("href").replace(/^#/,""),n=s[r];e.innerText=n?t?n:n.replace(/^\(|\)$/g,""):"???",e.classList.add("cross-ref-eq"+(t?"n":""))}(r,n)}))})(document);
//# sourceMappingURL=render-katex.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.body.innerText.replace(/^(.|\n)*?(?=Package:)/,"").split(/(^|\n)Package: /).filter((e=>e.trim())).map((e=>`<div class="tab-link">${e.replace(/(.*?)\n/,'$1 <a href="https://cran.r-project.org/web/checks/check_results_$1.html" style="text-decoration: none;" target="_blank">&#8605;</a></div><div class="tab-pane"><pre style="white-space: pre-wrap;">')}</pre></div>`)).join("\n");e.body.innerHTML=`<div class="tabset">${t}</div>`,e.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xiee/utils/css/tabsets.min.css">');const n=e.createElement("script");n.src="https://cdn.jsdelivr.net/npm/@xiee/utils/js/tabsets.min.js",e.body.insertAdjacentElement("beforeend",n);const s=[...e.querySelectorAll(".tab-link")],r=s.length;e.addEventListener("keyup",(t=>{const n=["ArrowLeft","ArrowRight"].indexOf(t.key);if(n<0)return;const i=e.querySelector(".tab-link.active");let c=s.indexOf(i)+(n?1:-1);c<0&&(c=r-1),c>r-1&&(c=0),s[c].click()}))})(document);
(e=>{const t=e.body.innerText.replace(/^(.|\n)*?(?=Package:)/,"").split(/(^|\n)Package: /).filter((e=>e.trim())).map((e=>`<div class="tab-link">${e.replace(/(.*?)\n/,'$1 <a href="https://cran.r-project.org/web/checks/check_results_$1.html" style="text-decoration: none;" target="_blank">&#8605;</a></div><div class="tab-pane"><pre style="white-space: pre-wrap;">')}</pre></div>`)).join("\n");e.body.innerHTML=`<div class="tabset">${t}</div>`,e.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xiee/utils/css/tabsets.min.css">');const n=e.createElement("script");n.src="https://cdn.jsdelivr.net/npm/@xiee/utils/js/tabsets.min.js",e.body.insertAdjacentElement("beforeend",n);const s=[...e.querySelectorAll(".tab-link")],r=s.length;e.addEventListener("keyup",(t=>{const n=["ArrowLeft","ArrowRight"].indexOf(t.key);if(n<0)return;const i=e.querySelector(".tab-link.active");let c=s.indexOf(i)+(n?1:-1);c<0&&(c=r-1),c>r-1&&(c=0),s[c].click()}))})(document);
//# sourceMappingURL=revdep-log-reader.min.js.map

@@ -1,1 +0,2 @@

[...document.getElementsByTagName("p")].forEach((t=>{/^(—|―|---)/.test(t.textContent)&&(t.style.textAlign="right")}));
[...document.getElementsByTagName("p")].forEach((t=>{/^(—|―|---)/.test(t.textContent)&&(t.style.textAlign="right")}));
//# sourceMappingURL=right-quote.min.js.map

@@ -1,1 +0,2 @@

(e=>{e.querySelectorAll('.footnotes > ol > li[id^="fn"], #refs > *[id^="ref-"]').forEach((t=>{const s=`a[href="#${t.id}"]`;e.querySelectorAll(`${s} > sup, sup > ${s}, .citation > ${s}, ${s}.citation`).forEach((s=>{const o=s.parentNode;("A"===s.tagName?s:o).removeAttribute("href");const l=e.createElement("div");for(l.className="side side-right",/^fn/.test(t.id)?(l.innerHTML=t.innerHTML,l.firstElementChild.insertAdjacentHTML("afterbegin",`<span class="bg-number">${s.innerText}</span> `),l.querySelector('a[href^="#fnref"]')?.remove(),l.className+=" footnotes"):l.innerHTML=t.outerHTML;"#text"===l.lastChild?.nodeName&&/^\s*$/.test(l.lastChild.textContent);)l.lastChild.remove();l.querySelectorAll(".fullwidth").forEach((e=>e.classList.remove("fullwidth")));const r=s.classList.contains("citation")?s:o;r.after(l),r.classList.add("note-ref"),t.remove()}))})),e.querySelectorAll(".footnotes, #refs").forEach((e=>{/^\s*$/.test(e.innerText)&&e.remove()})),e.getElementById("TOC")?.classList.add("side","side-left");const t=e.querySelectorAll(".side.side-right, .side.side-left"),s=[];e.querySelectorAll(".fullwidth").forEach((e=>{s.push([e,e.getBoundingClientRect()])})),t.length&&e.body.classList.add("has-sidenotes"),t.forEach((e=>{const t=e.getBoundingClientRect();for(let e of s){const s=e[1];t.right<s.left||t.left>s.right||t.bottom<s.top||t.top>s.bottom||e[0].classList.remove("fullwidth")}}))})(document);
(e=>{e.querySelectorAll('.footnotes > ol > li[id^="fn"], #refs > *[id^="ref-"]').forEach((t=>{const s=`a[href="#${t.id}"]`;e.querySelectorAll(`${s} > sup, sup > ${s}, .citation > ${s}, ${s}.citation`).forEach((s=>{const o=s.parentNode;("A"===s.tagName?s:o).removeAttribute("href");const l=e.createElement("div");for(l.className="side side-right",/^fn/.test(t.id)?(l.innerHTML=t.innerHTML,l.firstElementChild.insertAdjacentHTML("afterbegin",`<span class="bg-number">${s.innerText}</span> `),l.querySelector('a[href^="#fnref"]')?.remove(),l.className+=" footnotes"):l.innerHTML=t.outerHTML;"#text"===l.lastChild?.nodeName&&/^\s*$/.test(l.lastChild.textContent);)l.lastChild.remove();l.querySelectorAll(".fullwidth").forEach((e=>e.classList.remove("fullwidth")));const r=s.classList.contains("citation")?s:o;r.after(l),r.classList.add("note-ref"),t.remove()}))})),e.querySelectorAll(".footnotes, #refs").forEach((e=>{/^\s*$/.test(e.innerText)&&e.remove()})),e.getElementById("TOC")?.classList.add("side","side-left");const t=e.querySelectorAll(".side.side-right, .side.side-left"),s=[];e.querySelectorAll(".fullwidth").forEach((e=>{s.push([e,e.getBoundingClientRect()])})),t.length&&e.body.classList.add("has-sidenotes"),t.forEach((e=>{const t=e.getBoundingClientRect();for(let e of s){const s=e[1];t.right<s.left||t.left>s.right||t.bottom<s.top||t.top>s.bottom||e[0].classList.remove("fullwidth")}}))})(document);
//# sourceMappingURL=sidenotes.min.js.map

@@ -1,1 +0,2 @@

!function(e){let t=e.body;const n=":scope > h2";function o(e,n=1){if(t.querySelectorAll(e).length>=n)return!0;for(let o=0;o<t.children.length;o++)if(t.children[o].querySelectorAll(e).length>=n){t=t.children[o];break}return!1}function r(t,n){const o=e.createElement(t);return n&&(o.className=n),o}if(!o(":scope > hr:not([class])",3)&&"BODY"===t.tagName){if(!o(n)&&"BODY"===t.tagName)return;t.querySelectorAll(n).forEach((e=>e.before(r("hr"))))}function i(e){return""===e?.innerHTML?e:r("div","slide")}function s(e){return"HR"===e.tagName&&0===e.attributes.length}t.classList.add("slide-container"),[".frontmatter",".abstract","#TOC"].forEach((t=>{const n=e.body.querySelector(t);if(n)if(".frontmatter"===t)n.classList.add("slide");else{const e=i();n.before(e),e.append(n)}}));let l=t.firstElementChild;if(s(l)&&l.remove(),l=t.firstElementChild,!l)return;let c=i();for(l.before(c);;){let e=c.nextSibling;if(!e)break;s(e)?(c=i(c),e.before(c),e.remove()):e.classList?.contains("slide")?(c=i(c),e.after(c)):c.append(e)}function a(e,t){const n=r("div");n.innerHTML=`<div ${t}></div>`;const o=n.firstElementChild.attributes;for(const t of o)e.setAttribute(t.name,t.value);n.remove()}function d(e){setTimeout((()=>e?.scrollIntoView()),100)}const f=e.documentElement,u=e.body.classList,h=e.querySelectorAll("div.slide"),m=h.length,p=e.querySelector("span.timer"),y=e.querySelector(".footnotes");h.forEach(((e,t)=>{const n=r("div","header"),o=r("div","main"),i=r("div","footer");o.append(...e.childNodes),e.append(o),e.insertAdjacentElement("afterbegin",n),e.insertAdjacentElement("beforeend",i),y&&e.querySelectorAll('.footnote-ref > a[href^="#fn"]').forEach((t=>{const n=y.querySelector("li"+t.getAttribute("href"));if(!n)return;let o=e.querySelector("section.footnotes");o&&!o.contains(n)||(o=r("section","footnotes"),i.before(o)),o.append(n),n.firstElementChild?.insertAdjacentHTML("afterbegin",`[${t.innerHTML}] `),n.outerHTML=n.innerHTML})),i.append(p?p.cloneNode():r("span","timer"));const s=r("span","page-number");s.innerText=t+1+"/"+m,s.onclick=e=>location.hash=t+1,i.append(s);for(const t of o.childNodes){if(t.nodeType!==Node.COMMENT_NODE)continue;let n=t.textContent;if(!/^#/.test(n))continue;n=n.replace(/^#/,"");const o=/[\s\n]class="([^"]+)"/,r=n.match(o);r&&(n=n.replace(o,"").trim(),e.className+=" "+r[1]),n&&a(e,n);break}e.addEventListener("click",(e=>{(e.altKey||e.ctrlKey)&&(L(e),d(e.target))}))})),[...e.querySelectorAll("a.footnote-backref"),y,p].forEach((e=>e?.remove()));const g=e.querySelectorAll("span.timer"),b=1e3*g[0].dataset.total;let v;function E(){v=new Date,setInterval(S,1e3)}function S(){if(!u.contains("slide-mode"))return;let e=new Date-v;b&&(e=b-e);const t=new Date(Math.abs(e)).toISOString().substr(11,8).replace(/^00:/,"");g.forEach((n=>{n.innerText=t,e<0&&(n.style.opacity=Math.ceiling(e/1e3)%2)}))}function L(e){u.toggle("overview")?u.remove("slide-mode"):H(e)}e.addEventListener("keyup",(t=>{t.target===e.body&&("f"===t.key&&f.requestFullscreen(),"o"===t.key&&L(t),"m"===t.key&&u.toggle("mirrored"),sessionStorage.setItem("body-class",e.body.className))})),e.onfullscreenchange=t=>{e.fullscreenElement&&(!v&&E(),H(t))},g.forEach((e=>e.addEventListener("click",(e=>E()))));let q=-1;function T(){if(q>=0)return q;const e=r("div","slide");return t.querySelector(".slide:last-of-type").after(e),q=e.offsetHeight,e.remove(),q}const w=r("style");w.setAttribute("type","text/css"),e.head.append(w),w.innerHTML=`:root{--slide-ratio:${screen.height/screen.width}}`;const A=+getComputedStyle(f).getPropertyValue("--slide-ratio");function H(t){if("load"===t.type&&d(h[location.hash.replace(/^#/,"")-1]),u.contains("overview"))return;let n=window.innerHeight,o=n/900,i=n/window.innerWidth,s=e.fullscreenElement;u.toggle("slide-mode",s||i<=A)&&!s&&f.scrollWidth>f.offsetWidth&&u.remove("slide-mode"),w.innerHTML=`:root{--slide-ratio:${A};--slide-scale:${o};--slide-top:${(o-1)/2*e.body.scrollHeight+"px"};}`,!e.querySelector(".spacer.fade")&&u.contains("slide-mode")&&h.forEach((e=>{const t=r("div","spacer fade"),n=e.offsetHeight,i=T();e.append(t),n<=i||(t.style.height=(i-n%i)*o+"px")}))}["load","resize"].forEach((e=>window.addEventListener(e,H)));const N=sessionStorage.getItem("body-class");N&&(e.body.className+=" "+N)}(document);
!function(e){let t=e.body;const n=":scope > h2";function o(e,n=1){if(t.querySelectorAll(e).length>=n)return!0;for(let o=0;o<t.children.length;o++)if(t.children[o].querySelectorAll(e).length>=n){t=t.children[o];break}return!1}function r(t,n){const o=e.createElement(t);return n&&(o.className=n),o}if(!o(":scope > hr:not([class])",3)&&"BODY"===t.tagName){if(!o(n)&&"BODY"===t.tagName)return;t.querySelectorAll(n).forEach((e=>e.before(r("hr"))))}function i(e){return""===e?.innerHTML?e:r("div","slide")}function s(e){return"HR"===e.tagName&&0===e.attributes.length}t.classList.add("slide-container"),[".frontmatter",".abstract","#TOC"].forEach((t=>{const n=e.body.querySelector(t);if(n)if(".frontmatter"===t)n.classList.add("slide");else{const e=i();n.before(e),e.append(n)}}));let l=t.firstElementChild;if(s(l)&&l.remove(),l=t.firstElementChild,!l)return;let c=i();for(l.before(c);;){let e=c.nextSibling;if(!e)break;s(e)?(c=i(c),e.before(c),e.remove()):e.classList?.contains("slide")?(c=i(c),e.after(c)):c.append(e)}function a(e,t){const n=r("div");n.innerHTML=`<div ${t}></div>`;const o=n.firstElementChild.attributes;for(const t of o)e.setAttribute(t.name,t.value);n.remove()}function d(e){setTimeout((()=>e?.scrollIntoView()),100)}const f=e.documentElement,u=e.body.classList,h=e.querySelectorAll("div.slide"),m=h.length,p=e.querySelector("span.timer"),y=e.querySelector(".footnotes");h.forEach(((e,t)=>{const n=r("div","header"),o=r("div","main"),i=r("div","footer");o.append(...e.childNodes),e.append(o),e.insertAdjacentElement("afterbegin",n),e.insertAdjacentElement("beforeend",i),y&&e.querySelectorAll('.footnote-ref > a[href^="#fn"]').forEach((t=>{const n=y.querySelector("li"+t.getAttribute("href"));if(!n)return;let o=e.querySelector("section.footnotes");o&&!o.contains(n)||(o=r("section","footnotes"),i.before(o)),o.append(n),n.firstElementChild?.insertAdjacentHTML("afterbegin",`[${t.innerHTML}] `),n.outerHTML=n.innerHTML})),i.append(p?p.cloneNode():r("span","timer"));const s=r("span","page-number");s.innerText=t+1+"/"+m,s.onclick=e=>location.hash=t+1,i.append(s);for(const t of o.childNodes){if(t.nodeType!==Node.COMMENT_NODE)continue;let n=t.textContent;if(!/^#/.test(n))continue;n=n.replace(/^#/,"");const o=/[\s\n]class="([^"]+)"/,r=n.match(o);r&&(n=n.replace(o,"").trim(),e.className+=" "+r[1]),n&&a(e,n);break}e.addEventListener("click",(e=>{(e.altKey||e.ctrlKey)&&(L(e),d(e.target))}))})),[...e.querySelectorAll("a.footnote-backref"),y,p].forEach((e=>e?.remove()));const g=e.querySelectorAll("span.timer"),b=1e3*g[0].dataset.total;let v;function E(){v=new Date,setInterval(S,1e3)}function S(){if(!u.contains("slide-mode"))return;let e=new Date-v;b&&(e=b-e);const t=new Date(Math.abs(e)).toISOString().substr(11,8).replace(/^00:/,"");g.forEach((n=>{n.innerText=t,e<0&&(n.style.opacity=Math.ceiling(e/1e3)%2)}))}function L(e){u.toggle("overview")?u.remove("slide-mode"):H(e)}e.addEventListener("keyup",(t=>{t.target===e.body&&("f"===t.key&&f.requestFullscreen(),"o"===t.key&&L(t),"m"===t.key&&u.toggle("mirrored"),sessionStorage.setItem("body-class",e.body.className))})),e.onfullscreenchange=t=>{e.fullscreenElement&&(!v&&E(),H(t))},g.forEach((e=>e.addEventListener("click",(e=>E()))));let q=-1;function T(){if(q>=0)return q;const e=r("div","slide");return t.querySelector(".slide:last-of-type").after(e),q=e.offsetHeight,e.remove(),q}const w=r("style");w.setAttribute("type","text/css"),e.head.append(w),w.innerHTML=`:root{--slide-ratio:${screen.height/screen.width}}`;const A=+getComputedStyle(f).getPropertyValue("--slide-ratio");function H(t){if("load"===t.type&&d(h[location.hash.replace(/^#/,"")-1]),u.contains("overview"))return;let n=window.innerHeight,o=n/900,i=n/window.innerWidth,s=e.fullscreenElement;u.toggle("slide-mode",s||i<=A)&&!s&&f.scrollWidth>f.offsetWidth&&u.remove("slide-mode"),w.innerHTML=`:root{--slide-ratio:${A};--slide-scale:${o};--slide-top:${(o-1)/2*e.body.scrollHeight+"px"};}`,!e.querySelector(".spacer.fade")&&u.contains("slide-mode")&&h.forEach((e=>{const t=r("div","spacer fade"),n=e.offsetHeight,i=T();e.append(t),n<=i||(t.style.height=(i-n%i)*o+"px")}))}["load","resize"].forEach((e=>window.addEventListener(e,H)));const N=sessionStorage.getItem("body-class");N&&(e.body.className+=" "+N)}(document);
//# sourceMappingURL=snap.min.js.map

@@ -1,1 +0,2 @@

document.querySelectorAll(".tabset").forEach((e=>{const t=[...e.querySelectorAll(":scope > .tab-link")],n=[...e.querySelectorAll(":scope > .tab-pane")];function a(e){function a(e,t){e.forEach(((e,n)=>e.classList[n===t?"add":"remove"]("active")))}a(t,e),a(n,e)}function i(e,t){const n=document.createElement(e);return n.className=t,n}function r(e){return/^H[1-6]$/.test(e.tagName)}function c(e){return""===e.innerHTML.trim()}let o,l=-1,s=r(e)||c(e)?e.nextElementSibling:e.firstElementChild;if(0===t.length&&"UL"===s?.tagName&&([...s.children].forEach((e=>{const a=e.firstElementChild;if(!a)return;const r=i("div","tab-link");r.append(a),a.outerHTML=a.innerHTML,/<!--active-->/.test(r.innerHTML)&&r.classList.add("active"),s.before(r);const c=i("div","tab-pane");r.after(c),[...e.children].forEach((e=>c.append(e))),t.push(r),n.push(c)})),s.remove()),0===t.length)for(;s&&("#comment"!==s.nodeName||s.nodeValue.trim()!==`tabset:${e.id}`);){if(r(s)){const e=+s.tagName.replace("H","");if(e<=l)break;if(l<0&&(l=e-1),e===l+1){o=i("div","tab-pane"),s.after(o),s.classList.add("tab-link"),s.querySelector(".anchor")?.remove(),s.outerHTML=s.outerHTML.replace(/^<h[1-6](.*)h[1-6]>$/,"<div$1div>"),s=o.previousElementSibling,t.push(s),n.push(o),s=o.nextSibling;continue}}o&&(o.append(s),s=o),s=s.nextSibling}c(e)&&(t.forEach((t=>e.append(t))),n.forEach((t=>e.append(t))));let d=0;t.forEach(((e,n)=>{n>0&&t[n-1].after(e),e.onclick=()=>a(n),e.classList.contains("active")&&(d=n)})),a(d)}));
document.querySelectorAll(".tabset").forEach((e=>{const t=[...e.querySelectorAll(":scope > .tab-link")],n=[...e.querySelectorAll(":scope > .tab-pane")];function a(e){function a(e,t){e.forEach(((e,n)=>e.classList[n===t?"add":"remove"]("active")))}a(t,e),a(n,e)}function i(e,t){const n=document.createElement(e);return n.className=t,n}function r(e){return/^H[1-6]$/.test(e.tagName)}function c(e){return""===e.innerHTML.trim()}let o,l=-1,s=r(e)||c(e)?e.nextElementSibling:e.firstElementChild;if(0===t.length&&"UL"===s?.tagName&&([...s.children].forEach((e=>{const a=e.firstElementChild;if(!a)return;const r=i("div","tab-link");r.append(a),a.outerHTML=a.innerHTML,/<!--active-->/.test(r.innerHTML)&&r.classList.add("active"),s.before(r);const c=i("div","tab-pane");r.after(c),[...e.children].forEach((e=>c.append(e))),t.push(r),n.push(c)})),s.remove()),0===t.length)for(;s&&("#comment"!==s.nodeName||s.nodeValue.trim()!==`tabset:${e.id}`);){if(r(s)){const e=+s.tagName.replace("H","");if(e<=l)break;if(l<0&&(l=e-1),e===l+1){o=i("div","tab-pane"),s.after(o),s.classList.add("tab-link"),s.querySelector(".anchor")?.remove(),s.outerHTML=s.outerHTML.replace(/^<h[1-6](.*)h[1-6]>$/,"<div$1div>"),s=o.previousElementSibling,t.push(s),n.push(o),s=o.nextSibling;continue}}o&&(o.append(s),s=o),s=s.nextSibling}c(e)&&(t.forEach((t=>e.append(t))),n.forEach((t=>e.append(t))));let d=0;t.forEach(((e,n)=>{n>0&&t[n-1].after(e),e.onclick=()=>a(n),e.classList.contains("active")&&(d=n)})),a(d)}));
//# sourceMappingURL=tabsets.min.js.map

@@ -1,1 +0,2 @@

(e=>{const t=e.querySelector("#TableOfContents, #TOC");if(!t)return;const r=t.querySelectorAll('a[href^="#"]');if(!r.length)return;const n={};r.forEach((e=>n[e.getAttribute("href").replace("#","")]=e));const o=Object.keys(n),c=[],s=new IntersectionObserver((e=>e.forEach((e=>{const t=e.target.id,r=c.indexOf(t);let s;e.isIntersecting?c.push(t):r>-1&&c.splice(r,1);const i=c.length;if(i)s=c[i-1];else{if(e.target.getBoundingClientRect().top<0)return;const r=o.indexOf(t)-1;r>=0&&(s=o[r])}for(const e in n)n[e].classList[e===s?"add":"remove"]("active")}))));e.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach((e=>{1===e.nodeType&&n.hasOwnProperty(e.id)&&s.observe(e)}))})(document);
(e=>{const t=e.querySelector("#TableOfContents, #TOC");if(!t)return;const r=t.querySelectorAll('a[href^="#"]');if(!r.length)return;const n={};r.forEach((e=>n[e.getAttribute("href").replace("#","")]=e));const o=Object.keys(n),c=[],s=new IntersectionObserver((e=>e.forEach((e=>{const t=e.target.id,r=c.indexOf(t);let s;e.isIntersecting?c.push(t):r>-1&&c.splice(r,1);const i=c.length;if(i)s=c[i-1];else{if(e.target.getBoundingClientRect().top<0)return;const r=o.indexOf(t)-1;r>=0&&(s=o[r])}for(const e in n)n[e].classList[e===s?"add":"remove"]("active")}))));e.querySelectorAll("h1,h2,h3,h4,h5,h6").forEach((e=>{1===e.nodeType&&n.hasOwnProperty(e.id)&&s.observe(e)}))})(document);
//# sourceMappingURL=toc-highlight.min.js.map

@@ -1,1 +0,2 @@

(e=>{let t;[".article",".body","article",".main","body"].forEach((n=>{t||(t=e.querySelector(n))}));const n=t.querySelectorAll([1,2,3,4,5,6].map((e=>`:scope > h${e}`)).join(","));if(0===n.length)return;let r,i,l=e.getElementById("TOC")||e.getElementById("TableOfContents");l?l.innerHTML="":(l=e.createElement("div"),l.id="TOC");let a,d=l,o=0;if(n.forEach((t=>{if(a=parseInt(t.tagName.replace(/^h/i,"")),r=e.createElement("li"),a>o)i=e.createElement("ul"),i.appendChild(r),d.appendChild(i);else if(a<o)for(let e=0;e<o-a;e++)d=d.parentNode.parentNode;a<=o&&d.parentNode.appendChild(r),d=r;const n=e.createElement("a");if(n.innerHTML=t.innerHTML,t.id)n.href="#"+t.id;else{const e=t.parentNode;e.classList.contains("section")&&e.id&&(n.href="#"+e.id)}d.appendChild(n),o=a})),!l.parentNode){const e=t.querySelector("header");e?e.after(l):t.insertBefore(l,t.firstChild)}l.querySelector("span.section-number")&&l.firstElementChild.classList.add("numbered")})(document);
(e=>{let t;[".article",".body","article",".main","body"].forEach((n=>{t||(t=e.querySelector(n))}));const n=t.querySelectorAll([1,2,3,4,5,6].map((e=>`:scope > h${e}`)).join(","));if(0===n.length)return;let r,i,l=e.getElementById("TOC")||e.getElementById("TableOfContents");l?l.innerHTML="":(l=e.createElement("div"),l.id="TOC");let a,d=l,o=0;if(n.forEach((t=>{if(a=parseInt(t.tagName.replace(/^h/i,"")),r=e.createElement("li"),a>o)i=e.createElement("ul"),i.appendChild(r),d.appendChild(i);else if(a<o)for(let e=0;e<o-a;e++)d=d.parentNode.parentNode;a<=o&&d.parentNode.appendChild(r),d=r;const n=e.createElement("a");if(n.innerHTML=t.innerHTML,t.id)n.href="#"+t.id;else{const e=t.parentNode;e.classList.contains("section")&&e.id&&(n.href="#"+e.id)}d.appendChild(n),o=a})),!l.parentNode){const e=t.querySelector("header");e?e.after(l):t.insertBefore(l,t.firstChild)}l.querySelector("span.section-number")&&l.firstElementChild.classList.add("numbered")})(document);
//# sourceMappingURL=toc.min.js.map

@@ -1,1 +0,2 @@

(t=>{if(!t.body.classList.contains("has-notes"))return;const e=t.querySelector(".author");if(!e)return;let s=sessionStorage.getItem("hide-notes");e.classList.add("toggle-notes"),e.onclick=function(e){null===s&&!/^(localhost|[0-9.]+)$/.test(location.hostname)&&alert("你好像点了个神秘开关……请勿公开,自行阅读即可(再次点击可关闭),谢谢!"),s=t.body.classList.toggle("hide-notes");try{sessionStorage.setItem("hide-notes",s)}catch(e){}},null!==s&&t.body.classList.toggle("hide-notes","true"===s)})(document);
(t=>{if(!t.body.classList.contains("has-notes"))return;const e=t.querySelector(".author");if(!e)return;let s=sessionStorage.getItem("hide-notes");e.classList.add("toggle-notes"),e.onclick=function(e){null===s&&!/^(localhost|[0-9.]+)$/.test(location.hostname)&&alert("你好像点了个神秘开关……请勿公开,自行阅读即可(再次点击可关闭),谢谢!"),s=t.body.classList.toggle("hide-notes");try{sessionStorage.setItem("hide-notes",s)}catch(e){}},null!==s&&t.body.classList.toggle("hide-notes","true"===s)})(document);
//# sourceMappingURL=toggle-notes.min.js.map
{
"name": "@xiee/utils",
"version": "1.13.44",
"version": "1.13.45",
"description": "Miscellaneous tools and utilities to manipulate HTML pages",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc