"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_paste-markdown_dist_index_esm_js-node_modules_github_quote-select-7a8e2b"],{52769:(e,t,n)=>{function r(e,t){var n,r,i;let o=e.value.slice(0,null!==(n=e.selectionStart)&&void 0!==n?n:void 0),a=e.value.slice(null!==(r=e.selectionEnd)&&void 0!==r?r:void 0),l=!0;e.contentEditable="true";try{l=document.execCommand("insertText",!1,t)}catch(e){l=!1}if(e.contentEditable="false",l&&!e.value.slice(0,null!==(i=e.selectionStart)&&void 0!==i?i:void 0).endsWith(t)&&(l=!1),!l){try{document.execCommand("ms-beginUndoUnit")}catch(e){}e.value=o+t+a;try{document.execCommand("ms-endUndoUnit")}catch(e){}e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))}}n.d(t,{Ld:()=>en});let i=new WeakMap;function o(e){let{currentTarget:t}=e,n="KeyV"===e.code&&(e.ctrlKey||e.metaKey)&&e.shiftKey;(n||n&&e.altKey)&&i.set(t,!0)}function a(e){let{currentTarget:t}=e;i.delete(t)}function l(e){var t;let n=null!==(t=i.get(e))&&void 0!==t&&t;return n}function u(e,t,n){for(let r of(e.addEventListener("keydown",o),t))r(e,n);e.addEventListener("paste",a)}function s(e){e.removeEventListener("keydown",o),e.removeEventListener("paste",a)}function c(e){e.addEventListener("paste",f)}function d(e){e.removeEventListener("paste",f)}function f(e){let t=e.clipboardData,{currentTarget:n}=e;if(l(n)||!t||!v(t))return;let i=e.currentTarget;if(!(i instanceof HTMLTextAreaElement)||h(i))return;let o=t.getData("text/plain"),a=t.getData("text/html"),u=a.replace(/\u00A0/g," ").replace(/\uC2A0/g," ");if(!a||!(o=o.trim()))return;let s=new DOMParser,c=s.parseFromString(u,"text/html"),d=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,e=>e.parentNode&&g(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),f=p(o,d);f!==o&&(e.stopPropagation(),e.preventDefault(),r(i,f))}function p(e,t){var n;let r=t.firstChild(),i=e,o=0,a=0;for(;r&&a<1e4;){a++;let e=g(r)?(r.textContent||"").replace(/[\t\n\r ]+/g," "):(null===(n=r.firstChild)||void 0===n?void 0:n.wholeText)||"";if(m(e)){r=t.nextNode();continue}let l=i.indexOf(e,o);if(l>=0){if(g(r)){let t=y(r,e);i=i.slice(0,l)+t+i.slice(l+e.length),o=l+t.length}else o=l+e.length}r=t.nextNode()}return 1e4===a?e:i}function h(e){let t=e.selectionStart||0;if(0===t)return!1;let n=e.value.substring(t-1,t);return"@"===n}function m(e){return!e||(null==e?void 0:e.trim().length)===0}function g(e){var t;return(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())==="a"&&e.hasAttribute("href")}function v(e){return e.types.includes("text/html")}function y(e,t){let n=e.href||"";return T(e)?t:E(e)||b(n,t)?n:`[${t}](${n})`}function E(e){return e.className.indexOf("commit-link")>=0||!!e.getAttribute("data-hovercard-type")&&"user"!==e.getAttribute("data-hovercard-type")}function b(e,t){return e="/"===e.slice(-1)?e.slice(0,-1):e,t="/"===t.slice(-1)?t.slice(0,-1):t,e.toLowerCase()===t.toLowerCase()}function T(e){var t;return(null===(t=e.textContent)||void 0===t?void 0:t.slice(0,1))==="@"&&"user"===e.getAttribute("data-hovercard-type")}function x(e){e.addEventListener("dragover",C),e.addEventListener("drop",L),e.addEventListener("paste",A)}function w(e){e.removeEventListener("dragover",C),e.removeEventListener("drop",L),e.removeEventListener("paste",A)}function L(e){let t=e.dataTransfer;if(!t||N(t)||!H(t))return;let n=k(t);if(!n.some(M))return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n.map(S).join(""))}function C(e){let t=e.dataTransfer;t&&(t.dropEffect="link")}function A(e){let{currentTarget:t}=e;if(l(t))return;let n=e.clipboardData;if(!n||!H(n))return;let i=k(n);if(!i.some(M))return;e.stopPropagation(),e.preventDefault();let o=e.currentTarget;o instanceof HTMLTextAreaElement&&r(o,i.map(S).join(""))}function S(e){return M(e)?`
![](${e})
`:e}function N(e){return Array.from(e.types).indexOf("Files")>=0}function H(e){return Array.from(e.types).indexOf("text/uri-list")>=0}function k(e){return(e.getData("text/uri-list")||"").split("\r\n")}let I=/\.(gif|png|jpe?g)$/i;function M(e){return I.test(e)}let O=new WeakMap;function P(e,t){var n;O.set(e,(null===(n=null==t?void 0:t.defaultPlainTextPaste)||void 0===n?void 0:n.urlLinks)===!0),e.addEventListener("paste",$)}function D(e){e.removeEventListener("paste",$)}function $(e){var t;let{currentTarget:n}=e,i=null!==(t=O.get(n))&&void 0!==t&&t,o=l(n);if(!i&&o||i&&!o)return;let a=e.clipboardData;if(!a||!W(a))return;let u=e.currentTarget;if(!(u instanceof HTMLTextAreaElement))return;let s=a.getData("text/plain");if(!s||!_(s)||F(u))return;let c=u.value.substring(u.selectionStart,u.selectionEnd);c.length&&(_(c.trim())||(e.stopPropagation(),e.preventDefault(),r(u,R(c,s.trim()))))}function W(e){return Array.from(e.types).includes("text/plain")}function F(e){let t=e.selectionStart||0;if(!(t>1))return!1;{let n=e.value.substring(t-2,t);return"]("===n}}function R(e,t){return`[${e}](${t})`}function _(e){try{let t=new URL(e);return q(t.href).trim()===q(e).trim()}catch(e){return!1}}function q(e){return e.endsWith("/")?e.slice(0,e.length-1):e}function V(e){e.addEventListener("dragover",B),e.addEventListener("drop",j),e.addEventListener("paste",K)}function U(e){e.removeEventListener("dragover",B),e.removeEventListener("drop",j),e.removeEventListener("paste",K)}function j(e){let t=e.dataTransfer;if(!t||z(t))return;let n=Q(t);if(!n)return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n)}function B(e){let t=e.dataTransfer;t&&(t.dropEffect="copy")}function K(e){let{currentTarget:t}=e;if(l(t)||!e.clipboardData)return;let n=Q(e.clipboardData);if(!n)return;e.stopPropagation(),e.preventDefault();let i=e.currentTarget;i instanceof HTMLTextAreaElement&&r(i,n)}function z(e){return Array.from(e.types).indexOf("Files")>=0}function J(e){let t=(e.textContent||"").trim().replace(/\|/g,"\\|").replace(/\n/g," ");return t||"\xa0"}function X(e){return Array.from(e.querySelectorAll("td, th")).map(J)}function Y(e){let t=Array.from(e.querySelectorAll("tr")),n=t.shift();if(!n)return"";let r=X(n),i=r.map(()=>"--"),o=`${r.join(" | ")}
${i.join(" | ")}
`,a=t.map(e=>Array.from(e.querySelectorAll("td")).map(J).join(" | ")).join("\n");return`
${o}${a}

`}function Q(e){if(-1===Array.from(e.types).indexOf("text/html"))return;let t=e.getData("text/html");if(!/<table/i.test(t))return;let n=new DOMParser,r=n.parseFromString(t,"text/html"),i=r.querySelector("table");if(!(i=!i||i.closest("[data-paste-markdown-skip]")?null:i))return;let o=Y(i);return t.replace(/<meta.*?>/,"").replace(/<table[.\S\s]*<\/table>/,`
${o}`)}function Z(e){e.addEventListener("paste",ee)}function G(e){e.removeEventListener("paste",ee)}function ee(e){let{currentTarget:t}=e;if(l(t))return;let n=e.clipboardData;if(!n||!et(n))return;let i=e.currentTarget;if(!(i instanceof HTMLTextAreaElement))return;let o=n.getData("text/x-gfm");o&&(e.stopPropagation(),e.preventDefault(),r(i,o))}function et(e){return Array.from(e.types).indexOf("text/x-gfm")>=0}function en(e,t){return u(e,[V,x,P,Z,c],t),{unsubscribe:()=>{s(e),U(e),d(e),w(e),D(e),G(e)}}}},55498:(e,t,n)=>{function r(e){let t=e.parentNode;if(null===t||!(t instanceof HTMLElement))throw Error();let n=0;t instanceof HTMLOListElement&&1!==t.start&&(n=t.start-1);let r=t.children;for(let t=0;t<r.length;++t)if(r[t]===e)return n+t;return n}function i(e){if(e instanceof HTMLAnchorElement&&1===e.childNodes.length){let t=e.childNodes[0];if(t instanceof HTMLImageElement)return t.src===e.href}return!1}function o(e){return"IMG"===e.nodeName||null!=e.firstChild}function a(e){return"INPUT"===e.nodeName&&e instanceof HTMLInputElement&&"checkbox"===e.type}n.d(t,{I:()=>MarkdownQuote,p:()=>Quote});let l=0;function u(e){let t=e.childNodes[0],n=e.childNodes[1];return!!t&&e.childNodes.length<3&&("OL"===t.nodeName||"UL"===t.nodeName)&&(!n||n.nodeType===Node.TEXT_NODE&&!(n.textContent||"").trim())}function s(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}let c={INPUT:e=>e instanceof HTMLInputElement&&e.checked?"[x] ":"[ ] ",CODE(e){let t=e.textContent||"";return e.parentNode&&"PRE"===e.parentNode.nodeName?(e.textContent=`\`\`\`
${t.replace(/\n+$/,"")}
\`\`\`

`,e):t.indexOf("`")>=0?`\`\` ${t} \`\``:`\`${t}\``},P(e){let t=document.createElement("p"),n=e.textContent||"";return t.textContent=n.replace(/<(\/?)(pre|strong|weak|em)>/g,"\\<$1$2\\>"),t},STRONG:e=>`**${e.textContent||""}**`,EM:e=>`_${e.textContent||""}_`,DEL:e=>`~${e.textContent||""}~`,BLOCKQUOTE(e){let t=(e.textContent||"").trim().replace(/^/gm,"> "),n=document.createElement("pre");return n.textContent=`${t}

`,n},A(e){let t=e.textContent||"",n=e.getAttribute("href");return/^https?:/.test(t)&&t===n?t:n?`[${t}](${n})`:t},IMG(e){let t=e.getAttribute("alt")||"",n=e.getAttribute("src");if(!n)throw Error();let r=e.hasAttribute("width")?` width="${s(e.getAttribute("width")||"")}"`:"",i=e.hasAttribute("height")?` height="${s(e.getAttribute("height")||"")}"`:"";return r||i?`<img alt="${s(t)}"${r}${i} src="${s(n)}">`:`![${t}](${n})`},LI(e){let t=e.parentNode;if(!t)throw Error();let n="";if(!u(e)){if("OL"===t.nodeName){if(l>0&&!t.previousSibling){let t=r(e)+l+1;n=`${t}\\. `}else n=`${r(e)+1}. `}else n="* "}let i=n.replace(/\S/g," "),o=(e.textContent||"").trim().replace(/^/gm,i),a=document.createElement("pre");return a.textContent=o.replace(i,n),a},OL(e){let t=document.createElement("li");return t.appendChild(document.createElement("br")),e.append(t),e},H1(e){let t=parseInt(e.nodeName.slice(1));return e.prepend(`${Array(t+1).join("#")} `),e},UL:e=>e};c.UL=c.OL;for(let e=2;e<=6;++e)c[`H${e}`]=c.H1;function d(e){let t=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.nodeName in c&&!i(e)&&(o(e)||a(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[],r=t.nextNode();for(;r;)r instanceof HTMLElement&&n.push(r),r=t.nextNode();for(let e of(n.reverse(),n))e.replaceWith(c[e.nodeName](e))}function f(e,t){let n=e.startContainer;if(!n||!n.parentNode||!(n.parentNode instanceof HTMLElement))throw Error("the range must start within an HTMLElement");let i=n.parentNode,o=e.cloneContents();if(t){let e=o.querySelector(t);e&&(o=document.createDocumentFragment()).appendChild(e)}l=0;let a=i.closest("li"),u=i.closest("pre");if(u){let e=document.createElement("pre");e.appendChild(o),(o=document.createDocumentFragment()).appendChild(e)}else if(a&&a.parentNode&&("OL"===a.parentNode.nodeName&&(l=r(a)),!o.querySelector("li"))){let e=document.createElement("li");if(!a.parentNode)throw Error();let t=document.createElement(a.parentNode.nodeName);e.appendChild(o),t.appendChild(e),(o=document.createDocumentFragment()).appendChild(t)}return o}let Quote=class Quote{constructor(){this.selection=window.getSelection()}closest(e){let t=this.range.startContainer,n=t instanceof Element?t:t.parentElement;return n?n.closest(e):null}get active(){var e;return((null===(e=this.selection)||void 0===e?void 0:e.rangeCount)||0)>0}get range(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.rangeCount)?this.selection.getRangeAt(0):new Range}set range(e){var t,n;null===(t=this.selection)||void 0===t||t.removeAllRanges(),null===(n=this.selection)||void 0===n||n.addRange(e)}get selectionText(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.toString().trim())||""}get quotedText(){return`> ${this.selectionText.replace(/\n/g,"\n> ")}

`}select(e){this.selection&&(this.selection.removeAllRanges(),this.selection.selectAllChildren(e))}insert(e){e.value?e.value=`${e.value}

${this.quotedText}`:e.value=this.quotedText,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),e.selectionStart=e.value.length,e.scrollTop=e.scrollHeight}};let MarkdownQuote=class MarkdownQuote extends Quote{constructor(e="",t){super(),this.scopeSelector=e,this.callback=t}get selectionText(){var e,t;if(!this.selection)return"";let n=f(this.range,null!==(e=this.scopeSelector)&&void 0!==e?e:"");null===(t=this.callback)||void 0===t||t.call(this,n),d(n);let r=document.body;if(!r)return"";let i=document.createElement("div");i.appendChild(n),i.style.cssText="position:absolute;left:-9999px;",r.appendChild(i);let o="";try{let e=document.createRange();e.selectNodeContents(i),this.selection.removeAllRanges(),this.selection.addRange(e),o=this.selection.toString(),this.selection.removeAllRanges(),e.detach()}finally{r.removeChild(i)}return o.trim()}}},407:(e,t,n)=>{n.d(t,{Xm:()=>o,e6:()=>a,iO:()=>l});let r=null;function i(e){return!!e.id&&e.value!==e.defaultValue&&e.form!==r}function o(e,t){var n,r,o;let a;let l=null!==(n=null==t?void 0:t.selector)&&void 0!==n?n:".js-session-resumable",u=null!==(r=null==t?void 0:t.keyPrefix)&&void 0!==r?r:"session-resume:";try{a=null!==(o=null==t?void 0:t.storage)&&void 0!==o?o:sessionStorage}catch(e){return}let s=`${u}${e}`,c=[];for(let e of document.querySelectorAll(l))(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&c.push(e);let d=c.filter(e=>i(e)).map(e=>[e.id,e.value]);if(d.length)try{let e=a.getItem(s);if(null!==e){let t=JSON.parse(e),n=t.filter(function(e){return!d.some(t=>t[0]===e[0])});d=d.concat(n)}a.setItem(s,JSON.stringify(d))}catch(e){}}function a(e,t){var n,r;let i,o;let a=null!==(n=null==t?void 0:t.keyPrefix)&&void 0!==n?n:"session-resume:";try{i=null!==(r=null==t?void 0:t.storage)&&void 0!==r?r:sessionStorage}catch(e){return}let l=`${a}${e}`;try{o=i.getItem(l)}catch(e){}if(!o)return;let u=[],s=[];for(let[e,t]of JSON.parse(o)){let n=new CustomEvent("session:resume",{bubbles:!0,cancelable:!0,detail:{targetId:e,targetValue:t}});if(document.dispatchEvent(n)){let n=document.getElementById(e);n&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)?n.value===n.defaultValue&&(n.value=t,u.push(n)):s.push([e,t])}}if(0===s.length)try{i.removeItem(l)}catch(e){}else i.setItem(l,JSON.stringify(s));setTimeout(function(){for(let e of u)e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))},0)}function l(e){r=e.target,setTimeout(function(){e.defaultPrevented&&(r=null)},0)}},54430:(e,t,n)=>{function r(e){var t=null,n=!1,r=void 0,i=void 0,o=void 0;function a(t){if(r!==t.clientX||i!==t.clientY){var l=e.style.height;o&&o!==l&&(n=!0,e.style.maxHeight="",e.removeEventListener("mousemove",a)),o=l}r=t.clientX,i=t.clientY}var l=e.ownerDocument,u=l.documentElement;function s(){if(!n&&e.value!==t&&(!(e.offsetWidth<=0)||!(e.offsetHeight<=0))){var r=function(){for(var t=0,n=e;n!==l.body&&null!==n;)t+=n.offsetTop||0,n=n.offsetParent;var r=t-l.defaultView.pageYOffset,i=u.clientHeight-(r+e.offsetHeight);return{top:r,bottom:i}}(),i=r.top,a=r.bottom;if(!(i<0)&&!(a<0)){var s=Number(getComputedStyle(e).height.replace(/px/,""))+a;e.style.maxHeight=s-100+"px";var c=e.parentElement;if(c instanceof HTMLElement){var d=c.style.height;c.style.height=getComputedStyle(c).height,e.style.height="auto",e.style.height=e.scrollHeight+"px",c.style.height=d,o=e.style.height}t=e.value}}}function c(){n=!1,e.style.height="",e.style.maxHeight=""}e.addEventListener("mousemove",a),e.addEventListener("input",s),e.addEventListener("change",s);var d=e.form;return d&&d.addEventListener("reset",c),e.value&&s(),{unsubscribe:function(){e.removeEventListener("mousemove",a),e.removeEventListener("input",s),e.removeEventListener("change",s),d&&d.removeEventListener("reset",c)}}}n.d(t,{Z:()=>i});let i=r},98105:(e,t,n)=>{function r(e){let t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}function i(e){let t=e,n=t.ownerDocument;if(!n||!t.offsetParent)return;let r=n.defaultView.HTMLElement;if(t!==n.body){for(;t!==n.body;){if(!(t.parentElement instanceof r))return;t=t.parentElement;let{position:e,overflowY:n,overflowX:i}=getComputedStyle(t);if("fixed"===e||"auto"===n||"auto"===i||"scroll"===n||"scroll"===i)break}return t instanceof Document?null:t}}function o(e,t){let n=t,r=e.ownerDocument;if(!r)return;let i=r.documentElement;if(!i||e===i)return;let o=a(e,n);if(!o)return;n=o._container;let l=n===r.documentElement&&r.defaultView?{top:r.defaultView.pageYOffset,left:r.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},u=o.top-l.top,s=o.left-l.left,c=n.clientHeight,d=n.clientWidth,f=c-(u+e.offsetHeight),p=d-(s+e.offsetWidth);return{top:u,left:s,bottom:f,right:p,height:c,width:d}}function a(e,t){let n,r,i,o=e,a=o.ownerDocument;if(!a)return;let s=a.documentElement;if(!s)return;let c=a.defaultView.HTMLElement,d=0,f=0,p=o.offsetHeight,h=o.offsetWidth;for(;!(o===a.body||o===t);){if(d+=o.offsetTop||0,f+=o.offsetLeft||0,!(o.offsetParent instanceof c))return;o=o.offsetParent}if(t&&t!==a&&t!==a.defaultView&&t!==a.documentElement&&t!==a.body){if(!(t instanceof c))return;i=t,n=t.scrollHeight,r=t.scrollWidth}else i=s,n=l(a.body,s),r=u(a.body,s);let m=n-(d+p),g=r-(f+h);return{top:d,left:f,bottom:m,right:g,_container:i}}function l(e,t){return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight)}function u(e,t){return Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)}n.d(t,{VZ:()=>i,_C:()=>o,cv:()=>r,oE:()=>a})},47142:(e,t,n)=>{n.d(t,{CD:()=>E,DU:()=>i,Gs:()=>v,m7:()=>y});var r=-1/0,i=1/0,o=-.005,a=-.005,l=-.01,u=1,s=.9,c=.8,d=.7,f=.6;function p(e){return e.toLowerCase()===e}function h(e){return e.toUpperCase()===e}function m(e){for(var t=e.length,n=Array(t),r="/",i=0;i<t;i++){var o=e[i];"/"===r?n[i]=s:"-"===r||"_"===r||" "===r?n[i]=c:"."===r?n[i]=f:p(r)&&h(o)?n[i]=d:n[i]=0,r=o}return n}function g(e,t,n,i){for(var s=e.length,c=t.length,d=e.toLowerCase(),f=t.toLowerCase(),p=m(t,p),h=0;h<s;h++){n[h]=Array(c),i[h]=Array(c);for(var g=r,v=h===s-1?a:l,y=0;y<c;y++)if(d[h]===f[y]){var E=r;h?y&&(E=Math.max(i[h-1][y-1]+p[y],n[h-1][y-1]+u)):E=y*o+p[y],n[h][y]=E,i[h][y]=g=Math.max(E,g+v)}else n[h][y]=r,i[h][y]=g+=v}}function v(e,t){var n=e.length,o=t.length;if(!n||!o)return r;if(n===o)return i;if(o>1024)return r;var a=Array(n),l=Array(n);return g(e,t,a,l),l[n-1][o-1]}function y(e,t){var n=e.length,i=t.length,o=Array(n);if(!n||!i)return o;if(n===i){for(var a=0;a<n;a++)o[a]=a;return o}if(i>1024)return o;var l=Array(n),s=Array(n);g(e,t,l,s);for(var c=!1,a=n-1,d=i-1;a>=0;a--)for(;d>=0;d--)if(l[a][d]!==r&&(c||l[a][d]===s[a][d])){c=a&&d&&s[a][d]===l[a-1][d-1]+u,o[a]=d--;break}return o}function E(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,i=0;r<n;r+=1)if(0===(i=t.indexOf(e[r],i)+1))return!1;return!0}},58797:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){let t=!1,n=null;function r(e,t,n,r=!1){t instanceof HTMLInputElement&&(t.indeterminate=r,t.checked!==n&&(t.checked=n,setTimeout(()=>{let n=new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{relatedTarget:e}});t.dispatchEvent(n)})))}function i(i){let o=i.target;o instanceof Element&&(o.hasAttribute("data-check-all")?function(t){if(t instanceof CustomEvent&&t.detail){let{relatedTarget:e}=t.detail;if(e&&e.hasAttribute("data-check-all-item"))return}let i=t.target;if(i instanceof HTMLInputElement){for(let t of(n=null,e.querySelectorAll("[data-check-all-item]")))r(i,t,i.checked);i.indeterminate=!1,a()}}(i):o.hasAttribute("data-check-all-item")&&function(i){if(i instanceof CustomEvent&&i.detail){let{relatedTarget:e}=i.detail;if(e&&(e.hasAttribute("data-check-all")||e.hasAttribute("data-check-all-item")))return}let o=i.target;if(!(o instanceof HTMLInputElement))return;let l=Array.from(e.querySelectorAll("[data-check-all-item]"));if(t&&n){let[e,t]=[l.indexOf(n),l.indexOf(o)].sort();for(let n of l.slice(e,+t+1||9e9))r(o,n,o.checked)}t=!1,n=o;let u=e.querySelector("[data-check-all]");if(u){let e=l.length,t=l.filter(e=>e instanceof HTMLInputElement&&e.checked).length;r(o,u,t===e,e>t&&t>0)}a()}(i))}function o(e){if(!(e.target instanceof Element))return;let n=e.target instanceof HTMLLabelElement&&e.target.control||e.target;n.hasAttribute("data-check-all-item")&&(t=e.shiftKey)}function a(){let t=e.querySelector("[data-check-all-count]");if(t){let n=e.querySelectorAll("[data-check-all-item]:checked").length;t.textContent=n.toString()}}return e.addEventListener("mousedown",o),e.addEventListener("change",i),{unsubscribe:()=>{e.removeEventListener("mousedown",o),e.removeEventListener("change",i)}}}},69567:(e,t,n)=>{function*r(e){let t="",n=0,r=!1;for(let i=0;i<e.length;i+=1)"{"!==e[i]||"{"!==e[i+1]||"\\"===e[i-1]||r?"}"===e[i]&&"}"===e[i+1]&&"\\"!==e[i-1]&&r&&(r=!1,yield{type:"part",start:n,end:i+2,value:t.slice(2).trim()},t="",i+=2,n=i):(r=!0,t&&(yield{type:"string",start:n,end:i,value:t}),t="{{",n=i,i+=2),t+=e[i]||"";t&&(yield{type:"string",start:n,end:e.length,value:t})}n.d(t,{R:()=>TemplateInstance,XK:()=>v});var i,o,a,l,u,s=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},c=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let AttributeTemplatePart=class AttributeTemplatePart{constructor(e,t){this.expression=t,i.set(this,void 0),o.set(this,""),s(this,i,e),c(this,i).updateParent("")}get attributeName(){return c(this,i).attr.name}get attributeNamespace(){return c(this,i).attr.namespaceURI}get value(){return c(this,o)}set value(e){s(this,o,e||""),c(this,i).updateParent(e)}get element(){return c(this,i).element}get booleanValue(){return c(this,i).booleanValue}set booleanValue(e){c(this,i).booleanValue=e}};i=new WeakMap,o=new WeakMap;let AttributeValueSetter=class AttributeValueSetter{constructor(e,t){this.element=e,this.attr=t,this.partList=[]}get booleanValue(){return this.element.hasAttributeNS(this.attr.namespaceURI,this.attr.name)}set booleanValue(e){if(1!==this.partList.length)throw new DOMException("Operation not supported","NotSupportedError");this.partList[0].value=e?"":null}append(e){this.partList.push(e)}updateParent(e){if(1===this.partList.length&&null===e)this.element.removeAttributeNS(this.attr.namespaceURI,this.attr.name);else{let e=this.partList.map(e=>"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}};var d=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},f=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};let NodeTemplatePart=class NodeTemplatePart{constructor(e,t){this.expression=t,a.set(this,void 0),d(this,a,[e]),e.textContent=""}get value(){return f(this,a).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return f(this,a)[0].previousSibling}get nextSibling(){return f(this,a)[f(this,a).length-1].nextSibling}replace(...e){let t=e.map(e=>"string"==typeof e?new Text(e):e);for(let e of(t.length||t.push(new Text("")),f(this,a)[0].before(...t),f(this,a)))e.remove();d(this,a,t)}};function p(e){return{createCallback(e,t,n){this.processCallback(e,t,n)},processCallback(t,n,r){var i;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!==(i=r[t.expression])&&void 0!==i?i:"";e(t,n)}}}}}function h(e,t){e.value=String(t)}function m(e,t){return"boolean"==typeof t&&e instanceof AttributeTemplatePart&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,!0)}a=new WeakMap;let g=p(h),v=p((e,t)=>{m(e,t)||h(e,t)});var y=function(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n},E=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)};function*b(e){let t;let n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);for(;t=n.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let e=0;e<t.attributes.length;e+=1){let n=t.attributes.item(e);if(n&&n.value.includes("{{")){let e=new AttributeValueSetter(t,n);for(let t of r(n.value))if("string"===t.type)e.append(t.value);else{let n=new AttributeTemplatePart(e,t.value);e.append(n),yield n}}}else if(t instanceof Text&&t.textContent&&t.textContent.includes("{{"))for(let e of r(t.textContent)){e.end<t.textContent.length&&t.splitText(e.end),"part"===e.type&&(yield new NodeTemplatePart(t,e.value));break}}let TemplateInstance=class TemplateInstance extends DocumentFragment{constructor(e,t,n=g){var r,i;super(),l.set(this,void 0),u.set(this,void 0),Object.getPrototypeOf(this!==TemplateInstance.prototype)&&Object.setPrototypeOf(this,TemplateInstance.prototype),this.appendChild(e.content.cloneNode(!0)),y(this,u,Array.from(b(this))),y(this,l,n),null===(i=(r=E(this,l)).createCallback)||void 0===i||i.call(r,this,E(this,u),t)}update(e){E(this,l).processCallback(this,E(this,u),e)}};l=new WeakMap,u=new WeakMap},8433:(e,t,n)=>{function r(e){let t="==".slice(0,(4-e.length%4)%4),n=e.replace(/-/g,"+").replace(/_/g,"/")+t,r=atob(n),i=new ArrayBuffer(r.length),o=new Uint8Array(i);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return i}function i(e){let t=new Uint8Array(e),n="";for(let e of t)n+=String.fromCharCode(e);let r=btoa(n),i=r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return i}n.d(t,{JO:()=>y,U2:()=>L,Ue:()=>w,Zh:()=>x,wz:()=>b});var o="copy",a="convert";function l(e,t,n){if(t===o)return n;if(t===a)return e(n);if(t instanceof Array)return n.map(n=>l(e,t[0],n));if(t instanceof Object){let r={};for(let[i,o]of Object.entries(t)){if(o.derive){let e=o.derive(n);void 0!==e&&(n[i]=e)}if(!(i in n)){if(o.required)throw Error(`Missing key: ${i}`);continue}if(null==n[i]){r[i]=null;continue}r[i]=l(e,o.schema,n[i])}return r}}function u(e,t){return{required:!0,schema:e,derive:t}}function s(e){return{required:!0,schema:e}}function c(e){return{required:!1,schema:e}}var d={type:s(o),id:s(a),transports:c(o)},f={appid:c(o),appidExclude:c(o),credProps:c(o)},p={appid:c(o),appidExclude:c(o),credProps:c(o)},h={publicKey:s({rp:s(o),user:s({id:s(a),name:s(o),displayName:s(o)}),challenge:s(a),pubKeyCredParams:s(o),timeout:c(o),excludeCredentials:c([d]),authenticatorSelection:c(o),attestation:c(o),extensions:c(f)}),signal:c(o)},m={type:s(o),id:s(o),rawId:s(a),authenticatorAttachment:c(o),response:s({clientDataJSON:s(a),attestationObject:s(a),transports:u(o,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:u(p,e=>e.getClientExtensionResults())},g={mediation:c(o),publicKey:s({challenge:s(a),timeout:c(o),rpId:c(o),allowCredentials:c([d]),userVerification:c(o),extensions:c(f)}),signal:c(o)},v={type:s(o),id:s(o),rawId:s(a),authenticatorAttachment:c(o),response:s({clientDataJSON:s(a),authenticatorData:s(a),signature:s(a),userHandle:s(a)}),clientExtensionResults:u(p,e=>e.getClientExtensionResults())};function y(e){return l(r,h,e)}function E(e){return l(i,m,e)}function b(e){return l(r,g,e)}function T(e){return l(i,v,e)}function x(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}async function w(e){let t=await navigator.credentials.create(e);return t.toJSON=()=>E(t),t}async function L(e){let t=await navigator.credentials.get(e);return t.toJSON=()=>T(t),t}},89900:(e,t,n)=>{n.d(t,{Z:()=>a});let r=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],i="undefined"!=typeof window,o=i&&null!=window.mozInnerScreenX;function a(e,t,n){let i=n&&n.debug||!1;if(i){let e=document.querySelector("#input-textarea-caret-position-mirror-div");e&&e.parentNode.removeChild(e)}let a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);let l=a.style,u=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,s="INPUT"===e.nodeName;for(let t of(l.whiteSpace="pre-wrap",s||(l.wordWrap="break-word"),l.position="absolute",i||(l.visibility="hidden"),r))if(s&&"lineHeight"===t){if("border-box"===u.boxSizing){let e=parseInt(u.height),t=parseInt(u.paddingTop)+parseInt(u.paddingBottom)+parseInt(u.borderTopWidth)+parseInt(u.borderBottomWidth),n=t+parseInt(u.lineHeight);e>n?l.lineHeight=`${e-t}px`:e===n?l.lineHeight=u.lineHeight:l.lineHeight=0}else l.lineHeight=u.height}else if(s||"width"!==t||"border-box"!==u.boxSizing)l[t]=u[t];else{let n=parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth),r=o?parseFloat(u[t])-n:e.clientWidth+n;l[t]=`${r}px`}o?e.scrollHeight>parseInt(u.height)&&(l.overflowY="scroll"):l.overflow="hidden",a.textContent=e.value.substring(0,t),s&&(a.textContent=a.textContent.replace(/\s/g,"\xa0"));let c=document.createElement("span");c.textContent=e.value.substring(t)||".",a.appendChild(c);let d={top:c.offsetTop+parseInt(u.borderTopWidth),left:c.offsetLeft+parseInt(u.borderLeftWidth),height:parseInt(u.lineHeight)};return i?c.style.backgroundColor="#aaa":document.body.removeChild(a),d}},38085:(e,t,n)=>{n.d(t,{Fu:()=>k,NO:()=>j,Yn:()=>V,a4:()=>b,mr:()=>K,mw:()=>w});var r,i,o,a,l,u=-1,s=function(e){addEventListener("pageshow",function(t){t.persisted&&(u=t.timeStamp,e(t))},!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=c();return e&&e.activationStart||0},f=function(e,t){var n=c(),r="navigate";return u>=0?r="back-forward-cache":n&&(r=document.prerendering||d()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},h=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},m=function(e,t,n,r){var i,o;return function(a){var l;t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=(l=t.value)>n[1]?"poor":l>n[0]?"needs-improvement":"good",e(t))}},g=-1,v=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(){h(function(e){g=e.timeStamp},!0)},E=function(){return g<0&&(g=v(),y(),s(function(){setTimeout(function(){g=v(),y()},0)})),{get firstHiddenTime(){return g}}},b=function(e,t){t=t||{};var n,r=[1800,3e3],i=E(),o=f("FCP"),a=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime<i.firstHiddenTime&&(o.value=Math.max(e.startTime-d(),0),o.entries.push(e),n(!0)))})},l=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],u=l?null:p("paint",a);(l||u)&&(n=m(e,o,r,t.reportAllChanges),l&&a([l]),s(function(i){n=m(e,o=f("FCP"),r,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){o.value=performance.now()-i.timeStamp,n(!0)})})}))},T=!1,x=-1,w=function(e,t){t=t||{};var n=[.1,.25];T||(b(function(e){x=e.value}),T=!0);var r,i=function(t){x>-1&&e(t)},o=f("CLS",0),a=0,l=[],u=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=l[0],n=l[l.length-1];a&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,l.push(e)):(a=e.value,l=[e]),a>o.value&&(o.value=a,o.entries=l,r())}})},c=p("layout-shift",u);c&&(r=m(i,o,n,t.reportAllChanges),h(function(){u(c.takeRecords()),r(!0)}),s(function(){a=0,x=-1,r=m(i,o=f("CLS",0),n,t.reportAllChanges)}))},L={passive:!0,capture:!0},C=new Date,A=function(e,t){r||(r=t,i=e,o=new Date,H(removeEventListener),S())},S=function(){if(i>=0&&i<o-C){var e={entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+i};a.forEach(function(t){t(e)}),a=[]}},N=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){A(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,L),removeEventListener("pointercancel",n,L)},addEventListener("pointerup",t,L),addEventListener("pointercancel",n,L)):A(i,e)}},H=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,N,L)})},k=function(e,t){t=t||{};var n,o=[100,300],l=E(),u=f("FID"),c=function(e){e.startTime<l.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),n(!0))},d=function(e){e.forEach(c)},g=p("first-input",d);n=m(e,u,o,t.reportAllChanges),g&&h(function(){d(g.takeRecords()),g.disconnect()},!0),g&&s(function(){n=m(e,u=f("FID"),o,t.reportAllChanges),a=[],i=-1,r=null,H(addEventListener),a.push(c),S()})},I=0,M=1/0,O=0,P=function(e){e.forEach(function(e){e.interactionId&&(M=Math.min(M,e.interactionId),I=(O=Math.max(O,e.interactionId))?(O-M)/7+1:0)})},D=function(){return l?I:performance.interactionCount||0},$=function(){"interactionCount"in performance||l||(l=p("event",P,{type:"event",buffered:!0,durationThreshold:0}))},W=0,F=function(){return D()-W},R=[],_={},q=function(e){var t=R[R.length-1],n=_[e.interactionId];if(n||R.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};_[r.id]=r,R.push(r)}R.sort(function(e,t){return t.latency-e.latency}),R.splice(10).forEach(function(e){delete _[e.id]})}},V=function(e,t){t=t||{};var n=[200,500];$();var r,i=f("INP"),o=function(e){e.forEach(function(e){e.interactionId&&q(e),"first-input"!==e.entryType||R.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||q(e)});var t,n=(t=Math.min(R.length-1,Math.floor(F()/50)),R[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},a=p("event",o,{durationThreshold:t.durationThreshold||40});r=m(e,i,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),h(function(){o(a.takeRecords()),i.value<0&&F()>0&&(i.value=0,i.entries=[]),r(!0)}),s(function(){R=[],W=D(),r=m(e,i=f("INP"),n,t.reportAllChanges)}))},U={},j=function(e,t){t=t||{};var n,r=[2500,4e3],i=E(),o=f("LCP"),a=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-d(),0);r<i.firstHiddenTime&&(o.value=r,o.entries=[t],n())}},l=p("largest-contentful-paint",a);if(l){n=m(e,o,r,t.reportAllChanges);var u=function(){U[o.id]||(a(l.takeRecords()),l.disconnect(),U[o.id]=!0,n(!0))};["keydown","click"].forEach(function(e){addEventListener(e,u,{once:!0,capture:!0})}),h(u,!0),s(function(i){n=m(e,o=f("LCP"),r,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){o.value=performance.now()-i.timeStamp,U[o.id]=!0,n(!0)})})})}},B=function e(t){document.prerendering?addEventListener("prerenderingchange",function(){return e(t)},!0):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},K=function(e,t){t=t||{};var n=[800,1800],r=f("TTFB"),i=m(e,r,n,t.reportAllChanges);B(function(){var o=c();if(o){if(r.value=Math.max(o.responseStart-d(),0),r.value<0||r.value>performance.now())return;r.entries=[o],i(!0),s(function(){(i=m(e,r=f("TTFB",0),n,t.reportAllChanges))(!0)})}})}}}]);
//# sourceMappingURL=vendors-node_modules_github_paste-markdown_dist_index_esm_js-node_modules_github_quote-select-7a8e2b-014840492ab7.js.map