Last active
January 3, 2025 19:43
-
-
Save nicoandmee/023e9ca99eeb3e071bdb14a068cf0b68 to your computer and use it in GitHub Desktop.
Surfingkeys config 1/3/2025, 11:43:35 AM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var e,t,o,s,n=Object.defineProperty,i=e=>{throw TypeError(e)},a=(e,t,o)=>((e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),c=(e,t,o)=>t.has(e)||i("Cannot "+o),l=(e,t,o)=>(c(e,t,"read from private field"),o?o.call(e):t.get(e)),p=(e,t,o)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),d=(e,t,o,r)=>(c(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o);const u=(()=>{if("undefined"!=typeof window&&"undefined"!=typeof api)return console.debug("api",api),api;throw new Error("api not found")})(),m={rosewater:"#f5e0dc",flamingo:"#f2cdcd",pink:"#f5c2e7",mauve:"#cba6f7",red:"#f38ba8",maroon:"#eba0ac",peach:"#fab387",yellow:"#f9e2af",green:"#a6e3a1",teal:"#94e2d5",sky:"#89dceb",sapphire:"#74c7ec",blue:"#87b0f9",lavender:"#b4befe",text:"#c6d0f5",subtext1:"#b3bcdf",subtext0:"#a1a8c9",overlay3:"#9ca3c0",overlay2:"#8e95b3",overlay1:"#7b819d",overlay0:"#696d86",surface2:"#565970",surface1:"#43465a",surface0:"#313244",base:"#1e1e2e",mantle:"#181825",crust:"#11111b"},g=`\n font-size: 14pt;\n font-family: "Iosevka Nerd Font";\n border: 0px;\n color: ${m.text} !important;\n background: ${m.base};\n background-color: ${m.base};\n`;api.Hints.style(g),api.Hints.style(g,"text"),api.Visual.style("marks",`background-color: ${m.green};`),api.Visual.style("cursor",`background-color: ${m.sapphire};`);const h=`\n background: ${m.teal} none;\n border: solid 1px ${m.blue};\n color: ${m.crust};\n font-size: 14px;\n font-weight: 200;\n font-family: "Iosevka Nerd Font";\n padding: 2px;\n text-transform: lowercase;\n`;api.Hints.style(h),api.Hints.style(`div { ${h} }\n div.begin { color: ${m.crust}; }`,"text"),api.Hints.charactersUpper=!1;const b=`\n${f=m,`:root {\n${Object.entries(f).map((([e,t])=>`\t--ctp-${e.toLowerCase()}: ${t};`)).join("\n")}\n}`}\n :root {\n --font: 'Iosevka Nerd Font', Menlo, sans;\n --font-size: 18;\n --font-weight: bold;\n\n --tridactyl-hintspan-fg: var(--base0A);\n --tridactyl-hintspan-bg: var(--base08);\n --tridactyl-hintspan-border-color: var(--base00);\n --tridactyl-hintspan-border-width: 2px;\n --tridactyl-hintspan-border-radius: 30px;\n --tridactyl-hintspan-margin: 3px;\n --tridactyl-hintspan-border-style: solid;\n\n --tridactyl-fg: var(--base05);\n --tridactyl-bg: var(--base00);\n --tridactyl-url-fg: var(--base08);\n --tridactyl-url-bg: var(--base00);\n --tridactyl-highlight-box-bg: var(--base0B);\n --tridactyl-highlight-box-fg: var(--base00);\n }\n\n\n .sk_theme {\n background: var(--ctp-base);\n color: var(--ctp-text);\n }\n .sk_theme input {\n color: var(--ctp-text);\n }\n .sk_theme .url {\n color: var(--ctp-lavender);\n }\n .sk_theme .annotation {\n color: var(--ctp-rosewater);\n }\n .sk_theme kbd {\n background: var(--ctp-overlay0);\n color: var(--ctp-text);\n }\n .sk_theme .frame {\n background: var(--ctp-surface1);\n }\n .sk_theme .omnibar_highlight {\n color: var(--ctp-overlay1);\n }\n .sk_theme .omnibar_folder {\n color: var(--ctp-text);\n }\n .sk_theme .omnibar_timestamp {\n color: var(--ctp-blue);\n }\n .sk_theme .omnibar_visitcount {\n color: var(--ctp-maroon);\n }\n .sk_theme .prompt, .sk_theme .resultPage {\n color: var(--ctp-text);\n }\n .sk_theme .feature_name {\n color: var(--ctp-text);\n }\n .sk_theme .separator {\n color: var(--ctp-overlay1);\n }\n body {\n margin: 0;\n font-family: "Iosevka Nerd Font", "Cascadia Code", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 16px;\n }\n #sk_omnibar {\n overflow: hidden;\n position: fixed;\n width: 80%;\n max-height: 80%;\n left: 10%;\n text-align: left;\n box-shadow: 0px 2px 10px var(--ctp-overlay0);\n z-index: 2147483000;\n }\n .sk_omnibar_middle {\n top: 10%;\n border-radius: 4px;\n }\n .sk_omnibar_bottom {\n bottom: 0;\n border-radius: 4px 4px 0px 0px;\n }\n #sk_omnibar span.omnibar_highlight {\n text-shadow: 0 0 0.01em;\n }\n #sk_omnibarSearchArea .prompt, #sk_omnibarSearchArea .resultPage {\n display: inline-block;\n font-size: 20px;\n width: auto;\n }\n #sk_omnibarSearchArea>input {\n display: inline-block;\n width: 100%;\n flex: 1;\n font-size: 20px;\n margin-bottom: 0;\n padding: 0px 0px 0px 0.5rem;\n background: transparent;\n border-style: none;\n outline: none;\n }\n #sk_omnibarSearchArea {\n display: flex;\n align-items: center;\n border-bottom: 1px solid var(--ctp-overlay1);\n }\n .sk_omnibar_middle #sk_omnibarSearchArea {\n margin: 0.5rem 1rem;\n }\n .sk_omnibar_bottom #sk_omnibarSearchArea {\n margin: 0.2rem 1rem;\n }\n .sk_omnibar_middle #sk_omnibarSearchResult>ul {\n margin-top: 0;\n }\n .sk_omnibar_bottom #sk_omnibarSearchResult>ul {\n margin-bottom: 0;\n }\n #sk_omnibarSearchResult {\n max-height: 60vh;\n overflow: hidden;\n margin: 0rem 0.6rem;\n }\n #sk_omnibarSearchResult:empty {\n display: none;\n }\n #sk_omnibarSearchResult>ul {\n padding: 0;\n }\n #sk_omnibarSearchResult>ul>li {\n padding: 0.2rem 0rem;\n display: block;\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n }\n .sk_theme #sk_omnibarSearchResult>ul>li:nth-child(odd) {\n background: var(--ctp-surface1);\n }\n .sk_theme #sk_omnibarSearchResult>ul>li.focused {\n background: var(--ctp-overlay0);\n }\n .sk_theme #sk_omnibarSearchResult>ul>li.window {\n border: 2px solid var(--ctp-overlay1);\n border-radius: 8px;\n margin: 4px 0px;\n }\n .sk_theme #sk_omnibarSearchResult>ul>li.window.focused {\n border: 2px solid var(--ctp-lavender);\n }\n .sk_theme div.table {\n display: table;\n }\n .sk_theme div.table>* {\n vertical-align: middle;\n display: table-cell;\n }\n #sk_omnibarSearchResult li div.title {\n text-align: left;\n }\n #sk_omnibarSearchResult li div.url {\n font-weight: bold;\n white-space: nowrap;\n }\n #sk_omnibarSearchResult li.focused div.url {\n white-space: normal;\n }\n #sk_omnibarSearchResult li span.annotation {\n float: right;\n }\n #sk_omnibarSearchResult .tab_in_window {\n display: inline-block;\n padding: 5px;\n margin: 5px;\n box-shadow: 0px 2px 10px var(--ctp-overlay0);\n }\n #sk_status {w\n position: fixed;\n bottom: 0;\n right: 20%;\n z-index: 2147483000;\n padding: 4px 8px 0 8px;\n border-radius: 4px 4px 0px 0px;\n border: 1px solid var(--ctp-overlay1);\n font-size: 12px;\n }\n #sk_status>span {\n line-height: 16px;\n }\n .expandRichHints span.annotation {\n padding-left: 4px;\n color: var(--ctp-rosewater);\n }\n .expandRichHints .kbd-span {\n min-width: 30px;\n text-align: right;\n display: inline-block;\n }\n .expandRichHints kbd>.candidates {\n color: var(--ctp-text);\n font-weight: bold;\n }\n .expandRichHints kbd {\n padding: 1px 2px;\n }\n #sk_find {\n border-style: none;\n outline: none;\n }\n #sk_keystroke {\n padding: 6px;\n position: fixed;\n float: right;\n bottom: 0px;\n z-index: 2147483000;\n right: 0px;\n background: var(--ctp-base);\n color: var(--ctp-text);\n }\n #sk_usage, #sk_popup, #sk_editor {\n overflow: auto;\n position: fixed;\n width: 80%;\n max-height: 80%;\n top: 10%;\n left: 10%;\n text-align: left;\n box-shadow: var(--ctp-overlay0);\n z-index: 2147483298;\n padding: 1rem;\n }\n #sk_nvim {\n position: fixed;\n top: 10%;\n left: 10%;\n width: 80%;\n height: 30%;\n }\n #sk_popup img {\n width: 100%;\n }\n #sk_usage>div {\n display: inline-block;\n vertical-align: top;\n }\n #sk_usage .kbd-span {\n width: 80px;\n text-align: right;\n display: inline-block;\n }\n #sk_usage .feature_name {\n text-align: center;\n padding-bottom: 4px;\n }\n #sk_usage .feature_name>span {\n border-bottom: 2px solid $highlightHigh;\n }\n #sk_usage span.annotation {\n padding-left: 32px;\n line-height: 22px;\n }\n #sk_usage * {\n font-size: 10pt;\n }\n kbd {\n white-space: nowrap;\n display: inline-block;\n padding: 3px 5px;\n font: 11px "Iosevka Nerd Font", "Cascadia Code", "Helvetica Neue", Helvetica, Arial, sans-serif;\n line-height: 10px;\n vertical-align: middle;\n border: solid 1px var(--ctp-overlay3);\n border-bottom-lolor: var(--ctp-overlay3);\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 var(--ctp-overlay0);\n }\n #sk_banner {\n padding: 0.5rem;\n position: fixed;\n left: 10%;\n top: -3rem;\n z-index: 2147483000;\n width: 80%;\n border-radius: 0px 0px 4px 4px;\n border: 1px solid var(--ctp-overlay1);\n border-top-style: none;\n text-align: center;\n background: var(--ctp-base);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n #sk_tabs {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: transparent;\n overflow: auto;\n z-index: 2147483000;\n }\n div.sk_tab {\n display: inline-flex;\n height: 28px;\n width: 202px;\n justify-content: space-between;\n align-items: center;\n flex-direction: row-reverse;\n border-radius: 3px;\n padding: 10px 20px;\n margin: 5px;\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--ctp-base)), color-stop(100%,var(--ctp-base)));\n box-shadow: 0px 3px 7px 0px var(--ctp-overlay0);\n }\n div.sk_tab_wrap {\n display: inline-block;\n flex: 1;\n }\n div.sk_tab_icon {\n display: inline-block;\n vertical-align: middle;\n }\n div.sk_tab_icon>img {\n width: 18px;\n }\n div.sk_tab_title {\n width: 150px;\n display: inline-block;\n vertical-align: middle;\n font-size: 10pt;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding-left: 5px;\n color: var(--ctp-text);\n }\n div.sk_tab_url {\n font-size: 10pt;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: var(--ctp-lavender);\n }\n div.sk_tab_hint {\n display: inline-block;\n float:right;\n font-size: 10pt;\n font-weight: bold;\n padding: 0px 2px 0px 2px;\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--ctp-base)), color-stop(100%,var(--ctp-base)));\n color: var(--ctp-text);\n border: solid 1px var(--ctp-overlay1);\n border-radius: 3px;\n box-shadow: var(--ctp-overlay0);\n }\n #sk_tabs.vertical div.sk_tab_hint {\n position: initial;\n margin-inline: 0;\n }\n div.tab_rocket {\n display: none;\n }\n #sk_bubble {\n position: absolute;\n padding: 9px;\n border: 1px solid var(--ctp-overlay1);\n border-radius: 4px;\n box-shadow: 0 0 20px var(--ctp-overlay0);\n color: var(--ctp-text);\n background-color: var(--ctp-base);\n z-index: 2147483000;\n font-size: 14px;\n }\n #sk_bubble .sk_bubble_content {\n overflow-y: scroll;\n background-size: 3px 100%;\n background-position: 100%;\n background-repeat: no-repeat;\n }\n .sk_scroller_indicator_top {\n background-image: linear-gradient(var(--ctp-base), transparent);\n }\n .sk_scroller_indicator_middle {\n background-image: linear-gradient(transparent, var(--ctp-base), transparent);\n }\n .sk_scroller_indicator_bottom {\n background-image: linear-gradient(transparent, var(--ctp-base), transparent);\n }\n #sk_bubble * {\n color: var(--ctp-text) !important;\n }\n div.sk_arrow>div:nth-of-type(1) {\n left: 0;\n position: absolute;\n width: 0;\n border-left: 12px solid transparent;\n border-right: 12px solid transparent;\n background: transparent;\n }\n div.sk_arrow[dir=down]>div:nth-of-type(1) {\n border-top: 12px solid var(--ctp-overlay1);\n }\n div.sk_arrow[dir=up]>div:nth-of-type(1) {\n border-bottom: 12px solid var(--ctp-overlay1);\n }\n div.sk_arrow>div:nth-of-type(2) {\n left: 2px;\n position: absolute;\n width: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n background: transparent;\n }\n div.sk_arrow[dir=down]>div:nth-of-type(2) {\n border-top: 10px solid var(--ctp-text);\n }\n div.sk_arrow[dir=up]>div:nth-of-type(2) {\n top: 2px;\n border-bottom: 10px solid var(--ctp-text);\n }\n .ace_editor.ace_autocomplete {\n z-index: 2147483300 !important;\n width: 80% !important;\n }\n @media only screen and (max-width: 767px) {\n #sk_omnibar {\n width: 100%;\n left: 0;\n }\n #sk_omnibarSearchResult {\n max-height: 50vh;\n overflow: scroll;\n }\n .sk_omnibar_bottom #sk_omnibarSearchArea {\n margin: 0;\n padding: 0.2rem;\n }\n }\n`;var f;const w={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},y={silent:{level:-1},fatal:{level:w.fatal},error:{level:w.error},warn:{level:w.warn},log:{level:w.log},info:{level:w.info},success:{level:w.success},fail:{level:w.fail},ready:{level:w.info},start:{level:w.info},box:{level:w.info},debug:{level:w.debug},trace:{level:w.trace},verbose:{level:w.verbose}};function k(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.iterator in e||Symbol.toStringTag in e&&"[object Module]"!==Object.prototype.toString.call(e))}function v(e,t,o=".",r){if(!k(t))return v(e,{},o);const s=Object.assign({},t);for(const n in e){if("__proto__"===n||"constructor"===n)continue;const t=e[n];null!=t&&(Array.isArray(t)&&Array.isArray(s[n])?s[n]=[...t,...s[n]]:k(t)&&k(s[n])?s[n]=v(t,s[n],(o?`${o}.`:"")+n.toString()):s[n]=t)}return s}const T=(...e)=>e.reduce(((e,t)=>v(e,t,"")),{});let _=!1;const E=[];class S{constructor(e={}){a(this,"options"),a(this,"_lastLog"),a(this,"_mockFn");const t=e.types||y;this.options=T({...e,defaults:{...e.defaults},level:x(e.level,t),reporters:[...e.reporters||[]]},{types:y,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const o in t){const e={type:o,...this.options.defaults,...t[o]};this[o]=this._wrapLogFn(e),this[o].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=x(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new S({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(-1!==t)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){_=!0}resumeLogs(){_=!1;const e=E.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const o in this.options.types)this[o]=t(o,this.options.types[o])||this[o],this[o].raw=this[o]}_wrapLogFn(e,t){return(...o)=>{if(!_)return this._logFn(e,o,t);E.push([this,e,o,t])}}_logFn(e,t,o){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:x(e.level,this.options.types)};!o&&1===t.length&&function(e){return t=e,!("[object Object]"!==Object.prototype.toString.call(t)||!e.message&&!e.args||e.stack);var t}(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const s=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const n=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,n<this.options.throttle)try{const e=JSON.stringify([r.type,r.tag,r.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(s,this.options.throttle))}catch{}s(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function x(e,t={},o=3){return void 0===e?o:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:o}S.prototype.add=S.prototype.addReporter,S.prototype.remove=S.prototype.removeReporter,S.prototype.clear=S.prototype.removeReporter,S.prototype.withScope=S.prototype.withTag,S.prototype.mock=S.prototype.mockTypes,S.prototype.pause=S.prototype.pauseLogs,S.prototype.resume=S.prototype.resumeLogs;class O{constructor(e){a(this,"options"),a(this,"defaultColor"),a(this,"levelColorMap"),a(this,"typeColorMap"),this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),o="log"===e.type?"":e.type,r=e.tag||"",s=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,n=`%c${[r,o].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${n}%c ${e.args[0]}`,s,"",...e.args.slice(1)):t(n,s,...e.args)}}const A=function(e={}){return function(e={}){return new S(e)}({reporters:e.reporters||[new O({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}(),P={kagiApiKey:"AgCAUaugNAc.g3S1dK7Ymx5Tk_1tYVjXtOOJ94Bm2fmnQKInHHg7HaY",html2markdown:"html2md_WpHoiu1hKtt_Bt5TG7WCpUsompYSWxtVtFs4UhsnNsNqeK5WTipKhbb9_7eT7WtfD4sP2N3vk9FJfq9pJzfeRK7kae7xo6inAFgh3",kagiSession:"https://kagi.com/search?token=TQFAAlcn1QY.kJFJhpSaRe3xz_IuoWKrF1l5lRhZ3gi6Le1t08zH3to",crunchbase:"",google_cs:"AIzaSyDSc6lADAURez0Dl9BKcwlrYV6zb5QojJs",google_yt:"AIzaSyCIRN6kHTGFABfdDzwA2M7BdpOz5BiUuus",wolframalpha:"J7L5L3-RH2UEW2HGE",domainr:"18cffef341msh21358904326422ep10bd31jsnda2649a3cbe4",alternativeTo:"88489cdf3a8fbfe07a2f607bf1568330",google_cx_ex:"65f6a233959ec4562",google_cx_af:"72db069dbcfb14ad6",google_cx_al:"65aec8d98a5394c9f",google_cx_no:"60d886841b821401e",google_cx_cs:"5631bd769b1024c83",google_cx_jq:"04ab5af0010924f0e",google_cx_gg:"d4d7e03d7d5ca4117",google_cx_rc:"65f6a233959ec4562",dictionary_api_key:"3d833848-c116-4247-9dce-c588f5d6701d",thesaurus_api_key:"90e74706-3753-4385-8e06-04238726823a"},R=e=>`https://doi.org/${e}`;A.debug({keys:P,doi_handler:R});const C=P,G=R,F=document,U=window,L=F.documentElement,D=F.createElement.bind(F),q=D("div"),I=D("table"),j=D("tbody"),N=D("tr"),{isArray:z,prototype:H}=Array,{concat:M,filter:B,indexOf:W,map:V,push:J,slice:K,some:Y,splice:Z}=H,X=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,Q=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,ee=/<.+>/,te=/^\w+$/;function oe(e,t){const o=!!(r=t)&&11===r.nodeType;var r;return e&&(o||ce(t)||le(t))?!o&&Q.test(e)?t.getElementsByClassName(e.slice(1).replace(/\\/g,"")):!o&&te.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e):[]}class re{constructor(e,t){if(!e)return;if(ie(e))return e;let o=e;if(de(e)){const r=t||F;if(o=X.test(e)&&ce(r)?r.getElementById(e.slice(1).replace(/\\/g,"")):ee.test(e)?Ge(e):ie(r)?r.find(e):de(r)?ne(r).find(e):oe(e,r),!o)return}else if(pe(e))return this.ready(e);(o.nodeType||o===U)&&(o=[o]),this.length=o.length;for(let r=0,s=this.length;r<s;r++)this[r]=o[r]}init(e,t){return new re(e,t)}}const se=re.prototype,ne=se.init;function ie(e){return e instanceof re}function ae(e){return!!e&&e===e.window}function ce(e){return!!e&&9===e.nodeType}function le(e){return!!e&&1===e.nodeType}function pe(e){return"function"==typeof e}function de(e){return"string"==typeof e}function ue(e){return void 0===e}function me(e){return null===e}function ge(e){return!isNaN(parseFloat(e))&&isFinite(e)}function he(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function be(e,t,o){if(o){let o=e.length;for(;o--;)if(!1===t.call(e[o],o,e[o]))return e}else if(he(e)){const o=Object.keys(e);for(let r=0,s=o.length;r<s;r++){const s=o[r];if(!1===t.call(e[s],s,e[s]))return e}}else for(let r=0,s=e.length;r<s;r++)if(!1===t.call(e[r],r,e[r]))return e;return e}function fe(...e){const t="boolean"==typeof e[0]&&e.shift(),o=e.shift(),r=e.length;if(!o)return{};if(!r)return fe(t,ne,o);for(let s=0;s<r;s++){const r=e[s];for(const e in r)t&&(z(r[e])||he(r[e]))?(o[e]&&o[e].constructor===r[e].constructor||(o[e]=new r[e].constructor),fe(t,o[e],r[e])):o[e]=r[e]}return o}ne.fn=ne.prototype=se,se.length=0,se.splice=Z,"function"==typeof Symbol&&(se[Symbol.iterator]=H[Symbol.iterator]),ne.isWindow=ae,ne.isFunction=pe,ne.isArray=z,ne.isNumeric=ge,ne.isPlainObject=he,ne.each=be,se.each=function(e){return be(this,e)},se.empty=function(){return this.each(((e,t)=>{for(;t.firstChild;)t.removeChild(t.firstChild)}))},ne.extend=fe,se.extend=function(e){return fe(se,e)};const we=/\S+/g;function ye(e){return de(e)&&e.match(we)||[]}function ke(e,t,o){if(!le(e))return;const r=U.getComputedStyle(e,null);return o?r.getPropertyValue(t)||void 0:r[t]||e.style[t]}function ve(e,t){return parseInt(ke(e,t),10)||0}function Te(e,t){return ve(e,`border${t?"Left":"Top"}Width`)+ve(e,"padding"+(t?"Left":"Top"))+ve(e,"padding"+(t?"Right":"Bottom"))+ve(e,`border${t?"Right":"Bottom"}Width`)}se.toggleClass=function(e,t){const o=ye(e),r=!ue(t);return this.each(((e,s)=>{le(s)&&be(o,((e,o)=>{r?t?s.classList.add(o):s.classList.remove(o):s.classList.toggle(o)}))}))},se.addClass=function(e){return this.toggleClass(e,!0)},se.removeAttr=function(e){const t=ye(e);return this.each(((e,o)=>{le(o)&&be(t,((e,t)=>{o.removeAttribute(t)}))}))},se.attr=function(e,t){if(e){if(de(e)){if(arguments.length<2){if(!this[0]||!le(this[0]))return;const t=this[0].getAttribute(e);return me(t)?void 0:t}return ue(t)?this:me(t)?this.removeAttr(e):this.each(((o,r)=>{le(r)&&r.setAttribute(e,t)}))}for(const t in e)this.attr(t,e[t]);return this}},se.removeClass=function(e){return arguments.length?this.toggleClass(e,!1):this.attr("class","")},se.hasClass=function(e){return!!e&&Y.call(this,(t=>le(t)&&t.classList.contains(e)))},se.get=function(e){return ue(e)?K.call(this):this[(e=Number(e))<0?e+this.length:e]},se.eq=function(e){return ne(this.get(e))},se.first=function(){return this.eq(0)},se.last=function(){return this.eq(-1)},se.text=function(e){return ue(e)?this.get().map((e=>{return le(e)||(t=e)&&3===t.nodeType?e.textContent:"";var t})).join(""):this.each(((t,o)=>{le(o)&&(o.textContent=e)}))};const _e={};function Ee(e){return"none"===ke(e,"display")}function Se(e,t){const o=e&&(e.matches||e.webkitMatchesSelector||e.msMatchesSelector);return!!o&&!!t&&o.call(e,t)}function xe(e){return de(e)?(t,o)=>Se(o,e):pe(e)?e:ie(e)?(t,o)=>e.is(o):e?(t,o)=>o===e:()=>!1}function Oe(e,t){return t?e.filter(t):e}se.filter=function(e){const t=xe(e);return ne(B.call(this,((e,o)=>t.call(e,o,e))))},se.detach=function(e){return Oe(this,e).each(((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)})),this};const Ae=/^\s*<(\w+)[^>]*>/,Pe=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Ce={"*":q,tr:j,td:N,th:N,thead:I,tbody:I,tfoot:I};function Ge(e){if(!de(e))return[];if(Pe.test(e))return[D(RegExp.$1)];const t=Ae.test(e)&&RegExp.$1,o=Ce[t]||Ce["*"];return o.innerHTML=e,ne(o.childNodes).detach().get()}function $e(e,t,o,r){const s=[],n=pe(t),i=r&&xe(r);for(let a=0,c=e.length;a<c;a++)if(n){const o=t(e[a]);o.length&&J.apply(s,o)}else{let n=e[a][t];for(;!(null==n||r&&i(-1,n));)s.push(n),n=o?n[t]:null}return s}function Fe(e){return e.multiple&&e.options?$e(B.call(e.options,(e=>e.selected&&!e.disabled&&!e.parentNode.disabled)),"value"):e.value||""}function Ue(e){return e.length>1?B.call(e,((e,t,o)=>W.call(o,e)===t)):e}ne.parseHTML=Ge,se.has=function(e){const t=de(e)?(t,o)=>oe(e,o).length:(t,o)=>o.contains(e);return this.filter(t)},se.not=function(e){const t=xe(e);return this.filter(((o,r)=>(!de(e)||le(r))&&!t.call(r,o,r)))},se.val=function(e){return arguments.length?this.each(((t,o)=>{const r=o.multiple&&o.options;if(r||ut.test(o.type)){const t=z(e)?V.call(e,String):me(e)?[]:[String(e)];r?be(o.options,((e,o)=>{o.selected=t.indexOf(o.value)>=0}),!0):o.checked=t.indexOf(o.value)>=0}else o.value=ue(e)||me(e)?"":e})):this[0]&&Fe(this[0])},se.is=function(e){const t=xe(e);return Y.call(this,((e,o)=>t.call(e,o,e)))},ne.guid=1,ne.unique=Ue,se.add=function(e,t){return ne(Ue(this.get().concat(ne(e,t).get())))},se.children=function(e){return Oe(ne(Ue($e(this,(e=>e.children)))),e)},se.parent=function(e){return Oe(ne(Ue($e(this,"parentNode"))),e)},se.index=function(e){const t=e?ne(e)[0]:this[0],o=e?this:ne(t).parent().children();return W.call(o,t)},se.closest=function(e){const t=this.filter(e);if(t.length)return t;const o=this.parent();return o.length?o.closest(e):t},se.siblings=function(e){return Oe(ne(Ue($e(this,(e=>ne(e).parent().children().not(e))))),e)},se.find=function(e){return ne(Ue($e(this,(t=>oe(e,t)))))};const Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,De=/^$|^module$|\/(java|ecma)script/i,qe=["type","src","nonce","noModule"];function Ie(e,t,o,r,s,n,i,a){return be(e,((e,n)=>{be(ne(n),((e,n)=>{be(ne(t),((t,i)=>{const a=o?i:n,c=o?e:t;!function(e,t,o,r,s){r?e.insertBefore(t,o?e.firstChild:null):"HTML"===e.nodeName?e.parentNode.replaceChild(t,e):e.parentNode.insertBefore(t,o?e:e.nextSibling),s&&function(e,t){const o=ne(e);o.filter("script").add(o.find("script")).each(((e,o)=>{if(De.test(o.type)&&L.contains(o)){const e=D("script");e.text=o.textContent.replace(Le,""),be(qe,((t,r)=>{o[r]&&(e[r]=o[r])})),t.head.insertBefore(e,null),t.head.removeChild(e)}}))}(t,e.ownerDocument)}(o?n:i,c?a.cloneNode(!0):a,r,s,!c)}),a)}),i)}),n),t}se.after=function(){return Ie(arguments,this,!1,!1,!1,!0,!0)},se.append=function(){return Ie(arguments,this,!1,!1,!0)},se.html=function(e){if(!arguments.length)return this[0]&&this[0].innerHTML;if(ue(e))return this;const t=/<script[\s>]/.test(e);return this.each(((o,r)=>{le(r)&&(t?ne(r).empty().append(e):r.innerHTML=e)}))},se.appendTo=function(e){return Ie(arguments,this,!0,!1,!0)},se.wrapInner=function(e){return this.each(((t,o)=>{const r=ne(o),s=r.contents();s.length?s.wrapAll(e):r.append(e)}))},se.before=function(){return Ie(arguments,this,!1,!0)},se.wrapAll=function(e){let t=ne(e),o=t[0];for(;o.children.length;)o=o.firstElementChild;return this.first().before(t),this.appendTo(o)},se.wrap=function(e){return this.each(((t,o)=>{const r=ne(e)[0];ne(o).wrapAll(t?r.cloneNode(!0):r)}))},se.insertAfter=function(e){return Ie(arguments,this,!0,!1,!1,!1,!1,!0)},se.insertBefore=function(e){return Ie(arguments,this,!0,!0)},se.prepend=function(){return Ie(arguments,this,!1,!0,!0,!0,!0)},se.prependTo=function(e){return Ie(arguments,this,!0,!0,!0,!1,!1,!0)},se.contents=function(){return ne(Ue($e(this,(e=>"IFRAME"===e.tagName?[e.contentDocument]:"TEMPLATE"===e.tagName?e.content.childNodes:e.childNodes))))},se.next=function(e,t,o){return Oe(ne(Ue($e(this,"nextElementSibling",t,o))),e)},se.nextAll=function(e){return this.next(e,!0)},se.nextUntil=function(e,t){return this.next(t,!0,e)},se.parents=function(e,t){return Oe(ne(Ue($e(this,"parentElement",!0,t))),e)},se.parentsUntil=function(e,t){return this.parents(t,e)},se.prev=function(e,t,o){return Oe(ne(Ue($e(this,"previousElementSibling",t,o))),e)},se.prevAll=function(e){return this.prev(e,!0)},se.prevUntil=function(e,t){return this.prev(t,!0,e)},se.map=function(e){return ne(M.apply([],V.call(this,((t,o)=>e.call(t,o,t)))))},se.clone=function(){return this.map(((e,t)=>t.cloneNode(!0)))},se.offsetParent=function(){return this.map(((e,t)=>{let o=t.offsetParent;for(;o&&"static"===ke(o,"position");)o=o.offsetParent;return o||L}))},se.slice=function(e,t){return ne(K.call(this,e,t))};const je=/-([a-z])/g;function Ne(e){return e.replace(je,((e,t)=>t.toUpperCase()))}se.ready=function(e){const t=()=>setTimeout(e,0,ne);return"loading"!==F.readyState?t():F.addEventListener("DOMContentLoaded",t),this},se.unwrap=function(){return this.parent().each(((e,t)=>{if("BODY"===t.tagName)return;const o=ne(t);o.replaceWith(o.children())})),this},se.offset=function(){const e=this[0];if(!e)return;const t=e.getBoundingClientRect();return{top:t.top+U.pageYOffset,left:t.left+U.pageXOffset}},se.position=function(){const e=this[0];if(!e)return;const t="fixed"===ke(e,"position"),o=t?e.getBoundingClientRect():this.offset();if(!t){const t=e.ownerDocument;let r=e.offsetParent||t.documentElement;for(;(r===t.body||r===t.documentElement)&&"static"===ke(r,"position");)r=r.parentNode;if(r!==e&&le(r)){const e=ne(r).offset();o.top-=e.top+ve(r,"borderTopWidth"),o.left-=e.left+ve(r,"borderLeftWidth")}}return{top:o.top-ve(e,"marginTop"),left:o.left-ve(e,"marginLeft")}};const ze={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};se.prop=function(e,t){if(e){if(de(e))return e=ze[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each(((o,r)=>{r[e]=t}));for(const t in e)this.prop(t,e[t]);return this}},se.removeProp=function(e){return this.each(((t,o)=>{delete o[ze[e]||e]}))};const He=/^--/;function Me(e){return He.test(e)}const Be={},{style:We}=q,Ve=["webkit","moz","ms"],Je={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function Ke(e,t,o=Me(e)){return o||Je[e]||!ge(t)?t:`${t}px`}function Ye(e,t){try{return e(t)}catch(o){return t}}se.css=function(e,t){if(de(e)){const o=Me(e);return e=function(e,t=Me(e)){if(t)return e;if(!Be[e]){const t=Ne(e),o=`${t[0].toUpperCase()}${t.slice(1)}`;be(`${t} ${Ve.join(`${o} `)}${o}`.split(" "),((t,o)=>{if(o in We)return Be[e]=o,!1}))}return Be[e]}(e,o),arguments.length<2?this[0]&&ke(this[0],e,o):e?(t=Ke(e,t,o),this.each(((r,s)=>{le(s)&&(o?s.style.setProperty(e,t):s.style[e]=t)}))):this}for(const o in e)this.css(o,e[o]);return this};const Ze=/^\s+|\s+$/;function Xe(e,t){const o=e.dataset[t]||e.dataset[Ne(t)];return Ze.test(o)?o:Ye(JSON.parse,o)}function Qe(e,t){const o=e.documentElement;return Math.max(e.body[`scroll${t}`],o[`scroll${t}`],e.body[`offset${t}`],o[`offset${t}`],o[`client${t}`])}se.data=function(e,t){if(!e){if(!this[0])return;const e={};for(const t in this[0].dataset)e[t]=Xe(this[0],t);return e}if(de(e))return arguments.length<2?this[0]&&Xe(this[0],e):ue(t)?this:this.each(((o,r)=>{var s,n,i;s=r,n=e,i=t,i=Ye(JSON.stringify,i),s.dataset[Ne(n)]=i}));for(const o in e)this.data(o,e[o]);return this},be([!0,!1],((e,t)=>{be(["Width","Height"],((e,o)=>{se[`${t?"outer":"inner"}${o}`]=function(r){if(this[0])return ae(this[0])?t?this[0][`inner${o}`]:this[0].document.documentElement[`client${o}`]:ce(this[0])?Qe(this[0],o):this[0][`${t?"offset":"client"}${o}`]+(r&&t?ve(this[0],"margin"+(e?"Top":"Left"))+ve(this[0],"margin"+(e?"Bottom":"Right")):0)}}))})),be(["Width","Height"],((e,t)=>{const o=t.toLowerCase();se[o]=function(r){if(!this[0])return ue(r)?void 0:this;if(!arguments.length)return ae(this[0])?this[0].document.documentElement[`client${t}`]:ce(this[0])?Qe(this[0],t):this[0].getBoundingClientRect()[o]-Te(this[0],!e);const s=parseInt(r,10);return this.each(((t,r)=>{if(!le(r))return;const n=ke(r,"boxSizing");r.style[o]=Ke(o,s+("border-box"===n?Te(r,!e):0))}))}}));const et="___cd";se.toggle=function(e){return this.each(((t,o)=>{if(!le(o))return;const r=Ee(o);(ue(e)?r:e)?(o.style.display=o[et]||"",Ee(o)&&(o.style.display=function(e){if(_e[e])return _e[e];const t=D(e);F.body.insertBefore(t,null);const o=ke(t,"display");return F.body.removeChild(t),_e[e]="none"!==o?o:"block"}(o.tagName))):r||(o[et]=ke(o,"display"),o.style.display="none")}))},se.hide=function(){return this.toggle(!1)},se.show=function(){return this.toggle(!0)};const tt="___ce",ot={focus:"focusin",blur:"focusout"},rt={mouseenter:"mouseover",mouseleave:"mouseout"},st=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function nt(e){return rt[e]||ot[e]||e}function it(e){const t=e.split(".");return[t[0],t.slice(1).sort()]}function at(e){return e[tt]=e[tt]||{}}function ct(e,t){return!t||!Y.call(t,(t=>e.indexOf(t)<0))}function lt(e,t,o,r,s){const n=at(e);if(t)n[t]&&(n[t]=n[t].filter((([n,i,a])=>{if(s&&a.guid!==s.guid||!ct(n,o)||r&&r!==i)return!0;e.removeEventListener(t,a)})));else for(t in n)lt(e,t,o,r,s)}se.trigger=function(e,t){if(de(e)){const[t,o]=it(e),r=nt(t);if(!r)return this;const s=st.test(r)?"MouseEvents":"HTMLEvents";(e=F.createEvent(s)).initEvent(r,!0,!0),e.namespace=o.join("."),e.___ot=t}e.___td=t;const o=e.___ot in ot;return this.each(((t,r)=>{o&&pe(r[e.___ot])&&(r[`___i${e.type}`]=!0,r[e.___ot](),r[`___i${e.type}`]=!1),r.dispatchEvent(e)}))},se.off=function(e,t,o){if(ue(e))this.each(((e,t)=>{(le(t)||ce(t)||ae(t))&<(t)}));else if(de(e))pe(t)&&(o=t,t=""),be(ye(e),((e,r)=>{const[s,n]=it(r),i=nt(s);this.each(((e,r)=>{(le(r)||ce(r)||ae(r))&<(r,i,n,t,o)}))}));else for(const r in e)this.off(r,e[r]);return this},se.remove=function(e){return Oe(this,e).detach().off(),this},se.replaceWith=function(e){return this.before(e).remove()},se.replaceAll=function(e){return ne(e).replaceWith(this),this},se.on=function(e,t,o,r,s){if(!de(e)){for(const r in e)this.on(r,t,o,e[r],s);return this}return de(t)||(ue(t)||me(t)?t="":ue(o)?(o=t,t=""):(r=o,o=t,t="")),pe(r)||(r=o,o=void 0),r?(be(ye(e),((e,n)=>{const[i,a]=it(n),c=nt(i),l=i in rt,p=i in ot;c&&this.each(((e,n)=>{if(!le(n)&&!ce(n)&&!ae(n))return;const i=function(e){if(e.target[`___i${e.type}`])return e.stopImmediatePropagation();if(e.namespace&&!ct(a,e.namespace.split(".")))return;if(!t&&(p&&(e.target!==n||e.___ot===c)||l&&e.relatedTarget&&n.contains(e.relatedTarget)))return;let d=n;if(t){let o=e.target;for(;!Se(o,t);){if(o===n)return;if(o=o.parentNode,!o)return}d=o}Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>d}),Object.defineProperty(e,"delegateTarget",{configurable:!0,get:()=>n}),Object.defineProperty(e,"data",{configurable:!0,get:()=>o});const u=r.call(d,e,e.___td);s&<(n,c,a,t,i),!1===u&&(e.preventDefault(),e.stopPropagation())};i.guid=r.guid=r.guid||ne.guid++,function(e,t,o,r,s){const n=at(e);n[t]=n[t]||[],n[t].push([o,r,s]),e.addEventListener(t,s)}(n,c,a,t,i)}))})),this):this},se.one=function(e,t,o,r){return this.on(e,t,o,r,!0)};const pt=/\r?\n/g,dt=/file|reset|submit|button|image/i,ut=/radio|checkbox/i;se.serialize=function(){let e="";return this.each(((t,o)=>{be(o.elements||[o],((t,o)=>{if(o.disabled||!o.name||"FIELDSET"===o.tagName||dt.test(o.type)||ut.test(o.type)&&!o.checked)return;const r=Fe(o);ue(r)||be(z(r)?r:[r],((t,r)=>{var s,n;e+=(s=o.name,n=r,`&${encodeURIComponent(s)}=${encodeURIComponent(n.replace(pt,"\r\n"))}`)}))}))})),e.slice(1)};const{entries:mt,setPrototypeOf:gt,isFrozen:ht,getPrototypeOf:bt,getOwnPropertyDescriptor:ft}=Object;let{freeze:wt,seal:yt,create:kt}=Object,{apply:vt,construct:Tt}="undefined"!=typeof Reflect&&Reflect;wt||(wt=function(e){return e}),yt||(yt=function(e){return e}),vt||(vt=function(e,t,o){return e.apply(t,o)}),Tt||(Tt=function(e,t){return new e(...t)});const _t=Lt(Array.prototype.forEach),Et=Lt(Array.prototype.pop),St=Lt(Array.prototype.push),xt=Lt(String.prototype.toLowerCase),Ot=Lt(String.prototype.toString),At=Lt(String.prototype.match),Pt=Lt(String.prototype.replace),Rt=Lt(String.prototype.indexOf),Ct=Lt(String.prototype.trim),Gt=Lt(Object.prototype.hasOwnProperty),$t=Lt(RegExp.prototype.test),Ft=(Ut=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Tt(Ut,t)});var Ut;function Lt(e){return function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return vt(e,t,r)}}function Dt(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xt;gt&>(e,null);let r=t.length;for(;r--;){let s=t[r];if("string"==typeof s){const e=o(s);e!==s&&(ht(t)||(t[r]=e),s=e)}e[s]=!0}return e}function qt(e){for(let t=0;t<e.length;t++)Gt(e,t)||(e[t]=null);return e}function It(e){const t=kt(null);for(const[o,r]of mt(e))Gt(e,o)&&(Array.isArray(r)?t[o]=qt(r):r&&"object"==typeof r&&r.constructor===Object?t[o]=It(r):t[o]=r);return t}function jt(e,t){for(;null!==e;){const o=ft(e,t);if(o){if(o.get)return Lt(o.get);if("function"==typeof o.value)return Lt(o.value)}e=bt(e)}return function(){return null}}const Nt=wt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zt=wt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ht=wt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mt=wt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Bt=wt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Wt=wt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vt=wt(["#text"]),Jt=wt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Kt=wt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yt=wt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zt=wt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xt=yt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qt=yt(/<%[\w\W]*|[\w\W]*%>/gm),eo=yt(/\$\{[\w\W]*}/gm),to=yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),oo=yt(/^aria-[\-\w]+$/),ro=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),so=yt(/^(?:\w+script|data):/i),no=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),io=yt(/^html$/i),ao=yt(/^[a-z][.\w]*(-[.\w]+)+$/i);var co=Object.freeze({__proto__:null,ARIA_ATTR:oo,ATTR_WHITESPACE:no,CUSTOM_ELEMENT:ao,DATA_ATTR:to,DOCTYPE_NAME:io,ERB_EXPR:Qt,IS_ALLOWED_URI:ro,IS_SCRIPT_OR_DATA:so,MUSTACHE_EXPR:Xt,TMPLIT_EXPR:eo});var lo=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const o=t=>e(t);if(o.version="3.2.3",o.removed=[],!t||!t.document||9!==t.document.nodeType)return o.isSupported=!1,o;let{document:r}=t;const s=r,n=s.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:m,trustedTypes:g}=t,h=l.prototype,b=jt(h,"cloneNode"),f=jt(h,"remove"),w=jt(h,"nextSibling"),y=jt(h,"childNodes"),k=jt(h,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,T="";const{implementation:_,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:x}=r,{importNode:O}=s;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof mt&&"function"==typeof k&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:P,ERB_EXPR:R,TMPLIT_EXPR:C,DATA_ATTR:G,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:L}=co;let{IS_ALLOWED_URI:D}=co,q=null;const I=Dt({},[...Nt,...zt,...Ht,...Bt,...Vt]);let j=null;const N=Dt({},[...Jt,...Kt,...Yt,...Zt]);let z=Object.seal(kt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,M=null,B=!0,W=!0,V=!1,J=!0,K=!1,Y=!0,Z=!1,X=!1,Q=!1,ee=!1,te=!1,oe=!1,re=!0,se=!1,ne=!0,ie=!1,ae={},ce=null;const le=Dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let pe=null;const de=Dt({},["audio","video","img","source","image","track"]);let ue=null;const me=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let fe=be,we=!1,ye=null;const ke=Dt({},[ge,he,be],Ot);let ve=Dt({},["mi","mo","mn","ms","mtext"]),Te=Dt({},["annotation-xml"]);const _e=Dt({},["title","style","font","a","script"]);let Ee=null;const Se=["application/xhtml+xml","text/html"];let xe=null,Oe=null;const Ae=r.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Oe||Oe!==e){if(e&&"object"==typeof e||(e={}),e=It(e),Ee=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Ee?Ot:xt,q=Gt(e,"ALLOWED_TAGS")?Dt({},e.ALLOWED_TAGS,xe):I,j=Gt(e,"ALLOWED_ATTR")?Dt({},e.ALLOWED_ATTR,xe):N,ye=Gt(e,"ALLOWED_NAMESPACES")?Dt({},e.ALLOWED_NAMESPACES,Ot):ke,ue=Gt(e,"ADD_URI_SAFE_ATTR")?Dt(It(me),e.ADD_URI_SAFE_ATTR,xe):me,pe=Gt(e,"ADD_DATA_URI_TAGS")?Dt(It(de),e.ADD_DATA_URI_TAGS,xe):de,ce=Gt(e,"FORBID_CONTENTS")?Dt({},e.FORBID_CONTENTS,xe):le,H=Gt(e,"FORBID_TAGS")?Dt({},e.FORBID_TAGS,xe):{},M=Gt(e,"FORBID_ATTR")?Dt({},e.FORBID_ATTR,xe):{},ae=!!Gt(e,"USE_PROFILES")&&e.USE_PROFILES,B=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||ro,fe=e.NAMESPACE||be,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,Te=e.HTML_INTEGRATION_POINTS||Te,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(W=!1),te&&(ee=!0),ae&&(q=Dt({},Vt),j=[],!0===ae.html&&(Dt(q,Nt),Dt(j,Jt)),!0===ae.svg&&(Dt(q,zt),Dt(j,Kt),Dt(j,Zt)),!0===ae.svgFilters&&(Dt(q,Ht),Dt(j,Kt),Dt(j,Zt)),!0===ae.mathMl&&(Dt(q,Bt),Dt(j,Yt),Dt(j,Zt))),e.ADD_TAGS&&(q===I&&(q=It(q)),Dt(q,e.ADD_TAGS,xe)),e.ADD_ATTR&&(j===N&&(j=It(j)),Dt(j,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&Dt(ue,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(ce===le&&(ce=It(ce)),Dt(ce,e.FORBID_CONTENTS,xe)),ne&&(q["#text"]=!0),Z&&Dt(q,["html","head","body"]),q.table&&(Dt(q,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let o=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(o=t.getAttribute(r));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(n){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(g,n)),null!==v&&"string"==typeof T&&(T=v.createHTML(""));wt&&wt(e),Oe=e}},Ce=Dt({},[...zt,...Ht,...Mt]),Ge=Dt({},[...Bt,...Wt]),$e=function(e){St(o.removed,{element:e});try{k(e).removeChild(e)}catch(t){f(e)}},Fe=function(e,t){try{St(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){St(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{$e(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,o=null;if(Q)e="<remove></remove>"+e;else{const t=At(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===Ee&&fe===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=v?v.createHTML(e):e;if(fe===be)try{t=(new m).parseFromString(s,Ee)}catch(i){}if(!t||!t.documentElement){t=_.createDocument(fe,"template",null);try{t.documentElement.innerHTML=we?T:s}catch(i){}}const n=t.body||t.documentElement;return e&&o&&n.insertBefore(r.createTextNode(o),n.childNodes[0]||null),fe===be?x.call(t,Z?"html":"body")[0]:Z?t.documentElement:n},Le=function(e){return E.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof u&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},qe=function(e){return"function"==typeof c&&e instanceof c};function Ie(e,t,r){_t(e,(e=>{e.call(o,t,r,Oe)}))}const je=function(e){let t=null;if(Ie(A.beforeSanitizeElements,e,null),De(e))return $e(e),!0;const r=xe(e.nodeName);if(Ie(A.uponSanitizeElement,e,{tagName:r,allowedTags:q}),e.hasChildNodes()&&!qe(e.firstElementChild)&&$t(/<[/\w]/g,e.innerHTML)&&$t(/<[/\w]/g,e.textContent))return $e(e),!0;if(7===e.nodeType)return $e(e),!0;if(Y&&8===e.nodeType&&$t(/<[/\w]/g,e.data))return $e(e),!0;if(!q[r]||H[r]){if(!H[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&$t(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(ne&&!ce[r]){const t=k(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&t)for(let r=o.length-1;r>=0;--r){const s=b(o[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,w(e))}}return $e(e),!0}return e instanceof l&&!function(e){let t=k(e);t&&t.tagName||(t={namespaceURI:fe,tagName:"template"});const o=xt(e.tagName),r=xt(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===be?"svg"===o:t.namespaceURI===ge?"svg"===o&&("annotation-xml"===r||ve[r]):Boolean(Ce[o]):e.namespaceURI===ge?t.namespaceURI===be?"math"===o:t.namespaceURI===he?"math"===o&&Te[r]:Boolean(Ge[o]):e.namespaceURI===be?!(t.namespaceURI===he&&!Te[r])&&!(t.namespaceURI===ge&&!ve[r])&&!Ge[o]&&(_e[o]||!Ce[o]):!("application/xhtml+xml"!==Ee||!ye[e.namespaceURI]))}(e)?($e(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!$t(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&3===e.nodeType&&(t=e.textContent,_t([P,R,C],(e=>{t=Pt(t,e," ")})),e.textContent!==t&&(St(o.removed,{element:e.cloneNode()}),e.textContent=t)),Ie(A.afterSanitizeElements,e,null),!1):($e(e),!0)},Ne=function(e,t,o){if(re&&("id"===t||"name"===t)&&(o in r||o in Ae))return!1;if(W&&!M[t]&&$t(G,t));else if(B&&$t($,t));else if(!j[t]||M[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&$t(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&$t(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&$t(z.tagNameCheck,o)||z.tagNameCheck instanceof Function&&z.tagNameCheck(o))))return!1}else if(ue[t]);else if($t(D,Pt(o,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Rt(o,"data:")||!pe[e])if(V&&!$t(F,Pt(o,U,"")));else if(o)return!1;return!0},ze=function(e){return"annotation-xml"!==e&&At(e,L)},He=function(e){Ie(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||De(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let s=t.length;for(;s--;){const i=t[s],{name:a,namespaceURI:c,value:l}=i,p=xe(a);let d="value"===a?l:Ct(l);if(r.attrName=p,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ie(A.uponSanitizeAttribute,e,r),d=r.attrValue,!se||"id"!==p&&"name"!==p||(Fe(a,e),d="user-content-"+d),Y&&$t(/((--!?|])>)|<\/(style|title)/i,d)){Fe(a,e);continue}if(r.forceKeepAttr)continue;if(Fe(a,e),!r.keepAttr)continue;if(!J&&$t(/\/>/i,d)){Fe(a,e);continue}K&&_t([P,R,C],(e=>{d=Pt(d,e," ")}));const u=xe(e.nodeName);if(Ne(u,p,d)){if(v&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(c);else switch(g.getAttributeType(u,p)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{c?e.setAttributeNS(c,a,d):e.setAttribute(a,d),De(e)?$e(e):Et(o.removed)}catch(n){}}}Ie(A.afterSanitizeAttributes,e,null)},Me=function e(t){let o=null;const r=Le(t);for(Ie(A.beforeSanitizeShadowDOM,t,null);o=r.nextNode();)Ie(A.uponSanitizeShadowNode,o,null),je(o),He(o),o.content instanceof i&&e(o.content);Ie(A.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,n=null,a=null,l=null;if(we=!e,we&&(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw Ft("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ft("dirty is not a string, aborting")}if(!o.isSupported)return e;if(X||Re(t),o.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){const t=xe(e.nodeName);if(!q[t]||H[t])throw Ft("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=Ue("\x3c!----\x3e"),n=r.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ee&&!K&&!Z&&-1===e.indexOf("<"))return v&&oe?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:oe?T:""}r&&Q&&$e(r.firstChild);const p=Le(ie?e:r);for(;a=p.nextNode();)je(a),He(a),a.content instanceof i&&Me(a.content);if(ie)return e;if(ee){if(te)for(l=S.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(j.shadowroot||j.shadowrootmode)&&(l=O.call(s,l,!0)),l}let d=Z?r.outerHTML:r.innerHTML;return Z&&q["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&$t(io,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),K&&_t([P,R,C],(e=>{d=Pt(d,e," ")})),v&&oe?v.createHTML(d):d},o.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),X=!0},o.clearConfig=function(){Oe=null,X=!1},o.isValidAttribute=function(e,t,o){Oe||Re({});const r=xe(e),s=xe(t);return Ne(r,s,o)},o.addHook=function(e,t){"function"==typeof t&&St(A[e],t)},o.removeHook=function(e){return Et(A[e])},o.removeHooks=function(e){A[e]=[]},o.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();const{isArray:po}=Array,{getPrototypeOf:uo,getOwnPropertyDescriptor:mo}=Object,go=[],ho=()=>document.createRange(),bo=(e,t,o)=>(e.set(t,o),o),fo=(e,t)=>t.reduceRight(wo,e),wo=(e,t)=>e.childNodes[t],{setPrototypeOf:yo}=Object;let ko;const vo=(e,t,o)=>(ko||(ko=ho()),o?ko.setStartAfter(e):ko.setStartBefore(e),ko.setEndAfter(t),ko.deleteContents(),e),To=({firstChild:e,lastChild:t},o)=>vo(e,t,o);let _o=!1;const Eo=(e,t)=>_o&&11===e.nodeType?1/t<0?t?To(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,So=e=>document.createComment(e);class xo extends((e=>{function t(e){return yo(e,new.target.prototype)}return t.prototype=e.prototype,t})(DocumentFragment)){constructor(r){super(r),p(this,e,So("<>")),p(this,t,So("</>")),p(this,o,go),this.replaceChildren(l(this,e),...r.childNodes,l(this,t)),_o=!0}get firstChild(){return l(this,e)}get lastChild(){return l(this,t)}get parentNode(){return l(this,e).parentNode}remove(){To(this,!1)}replaceWith(e){To(this,!0).replaceWith(e)}valueOf(){const{parentNode:e}=this;if(e===this)l(this,o)===go&&d(this,o,[...this.childNodes]);else{if(e){let{firstChild:e,lastChild:t}=this;for(d(this,o,[e]);e!==t;)l(this,o).push(e=e.nextSibling)}this.replaceChildren(...l(this,o))}return this}}e=new WeakMap,t=new WeakMap,o=new WeakMap;const Oo=(e,t,o)=>e.setAttribute(t,o),Ao=(e,t)=>e.removeAttribute(t);let Po;const Ro=(e,t,o)=>{o=o.slice(1),Po||(Po=new WeakMap);const r=Po.get(e)||bo(Po,e,{});let s=r[o];return s&&s[0]&&e.removeEventListener(o,...s),s=po(t)?t:[t,!1],r[o]=s,s[0]&&e.addEventListener(o,...s),t},Co=(e,t)=>{const{t:o,n:r}=e;let s=!1;switch(typeof t){case"object":if(null!==t){(r||o).replaceWith(e.n=t.valueOf());break}case"undefined":s=!0;default:o.data=s?"":t,r&&(e.n=null,r.replaceWith(o))}return t},Go=(e,t,o)=>e[o]=t,$o=(e,t,o)=>Go(e,t,o.slice(1)),Fo=(e,t,o)=>null==t?(Ao(e,o),t):Go(e,t,o),Uo=(e,t)=>("function"==typeof t?t(e):t.current=e,t),Lo=(e,t,o)=>(null==t?Ao(e,o):Oo(e,o,t),t),Do=(e,t,o)=>(e.toggleAttribute(o.slice(1),t),t),qo=(e,t,o)=>{const{length:r}=t;if(e.data=`[${r}]`,r)return((e,t,o,r,s)=>{const n=o.length;let i=t.length,a=n,c=0,l=0,p=null;for(;c<i||l<a;)if(i===c){const t=a<n?l?r(o[l-1],-0).nextSibling:r(o[a],0):s;for(;l<a;)e.insertBefore(r(o[l++],1),t)}else if(a===l)for(;c<i;)p&&p.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===o[l])c++,l++;else if(t[i-1]===o[a-1])i--,a--;else if(t[c]===o[a-1]&&o[l]===t[i-1]){const s=r(t[--i],-0).nextSibling;e.insertBefore(r(o[l++],1),r(t[c++],-0).nextSibling),e.insertBefore(r(o[--a],1),s),t[i]=o[a]}else{if(!p){p=new Map;let e=l;for(;e<a;)p.set(o[e],e++)}if(p.has(t[c])){const s=p.get(t[c]);if(l<s&&s<a){let n=c,d=1;for(;++n<i&&n<a&&p.get(t[n])===s+d;)d++;if(d>s-l){const n=r(t[c],0);for(;l<s;)e.insertBefore(r(o[l++],1),n)}else e.replaceChild(r(o[l++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return o})(e.parentNode,o,t,Eo,e);switch(o.length){case 1:o[0].remove();case 0:break;default:vo(Eo(o[0],0),Eo(o.at(-1),-0),!1)}return go},Io=new Map([["aria",(e,t)=>{for(const o in t){const r=t[o],s="role"===o?o:`aria-${o}`;null==r?Ao(e,s):Oo(e,s,r)}return t}],["class",(e,t)=>Fo(e,t,null==t?"class":"className")],["data",(e,t)=>{const{dataset:o}=e;for(const r in t)null==t[r]?delete o[r]:o[r]=t[r];return t}],["ref",Uo],["style",(e,t)=>null==t?Fo(e,t,"style"):Go(e.style,t,"cssText")]]),jo=(e,t,o)=>{var r;switch(t[0]){case".":return $o;case"?":return Do;case"@":return Ro;default:return o||"ownerSVGElement"in e?"ref"===t?Uo:Lo:Io.get(t)||(t in e?t.startsWith("on")?Go:(null==(r=((e,t)=>{let o;do{o=mo(e,t)}while(!o&&(e=uo(e)));return o})(e,t))?void 0:r.set)?Fo:Lo:Lo)}},No=(e,t)=>(e.textContent=null==t?"":t,t),zo=(e,t,o)=>({a:e,b:t,c:o}),Ho=(e,t,o,r)=>({v:go,u:e,t:t,n:o,c:r}),Mo=()=>zo(null,null,go),Bo=e=>(t,o)=>{const{a:r,b:s,c:n}=e(t,o),i=document.importNode(r,!0);let a=go;if(s!==go){a=[];for(let e,t,o=0;o<s.length;o++){const{a:r,b:n,c:c}=s[o],l=r===t?e:e=fo(i,t=r);a[o]=Ho(n,l,c,n===qo?[]:n===Co?Mo():null)}}return((e,t)=>({b:e,c:t}))(n?i.firstChild:new xo(i),a)},Wo=/^(?:plaintext|script|style|textarea|title|xmp)$/i,Vo=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,Jo=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,Ko=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,Yo=/[\x01\x02]/g;let Zo,Xo,Qo=document.createElement("template");const er=e=>{const t=[];let o;for(;o=e.parentNode;)t.push(t.indexOf.call(o.childNodes,e)),e=o;return t},tr=()=>document.createTextNode(""),or=(e,t,o)=>{const r=((e,t)=>{if(t)return Zo||(Zo=document.createElementNS("http://www.w3.org/2000/svg","svg"),Xo=ho(),Xo.selectNodeContents(Zo)),Xo.createContextualFragment(e);Qo.innerHTML=e;const{content:o}=Qo;return Qo=Qo.cloneNode(!1),o})(((e,t,o)=>{let r=0;return e.join("").trim().replace(Jo,((e,t,r,s)=>`<${t}${r.replace(Ko,"=$2$1").trimEnd()}${s?o||Vo.test(t)?" /":`></${t}`:""}>`)).replace(Yo,(e=>""===e?`\x3c!--${t+r++}--\x3e`:t+r++))})(e,sr,o),o),{length:s}=e;let n=go;if(s>1){const e=[],i=document.createTreeWalker(r,129);let a=0,c=`${sr}${a++}`;for(n=[];a<s;){const r=i.nextNode();if(8===r.nodeType){if(r.data===c){const o=po(t[a-1])?qo:Co;o===Co&&e.push(r),n.push(zo(er(r),o,null)),c=`${sr}${a++}`}}else{let e;for(;r.hasAttribute(c);){e||(e=er(r));const t=r.getAttribute(c);n.push(zo(e,jo(r,t,o),t)),Ao(r,c),c=`${sr}${a++}`}!o&&Wo.test(r.localName)&&r.textContent.trim()===`\x3c!--${c}--\x3e`&&(n.push(zo(e||er(r),No,null)),c=`${sr}${a++}`)}}for(a=0;a<e.length;a++)e[a].replaceWith(tr())}const{childNodes:i}=r;let{length:a}=i;return a<1?(a=1,r.appendChild(tr())):1===a&&1!==s&&1!==i[0].nodeType&&(a=0),bo(rr,e,zo(r,n,1===a))},rr=new WeakMap,sr="isµ",nr=e=>(t,o)=>rr.get(t)||or(t,o,e),ir=Bo(nr(!1)),ar=Bo(nr(!0)),cr=(e,{s:t,t:o,v:r})=>{if(e.a!==o){const{b:s,c:n}=(t?ar:ir)(o,r);e.a=o,e.b=s,e.c=n}for(let{c:s}=e,n=0;n<s.length;n++){const e=r[n],t=s[n];switch(t.u){case qo:t.v=qo(t.t,lr(t.c,e),t.v);break;case Co:const o=e instanceof pr?cr(t.c||(t.c=Mo()),e):(t.c=null,e);o!==t.v&&(t.v=Co(t,o));break;default:e!==t.v&&(t.v=t.u(t.t,e,t.n,t.v))}}return e.b},lr=(e,t)=>{let o=0,{length:r}=t;for(r<e.length&&e.splice(r);o<r;o++){const r=t[o];r instanceof pr?t[o]=cr(e[o]||(e[o]=Mo()),r):e[o]=null}return t};class pr{constructor(e,t,o){this.s=e,this.t=t,this.v=o}toDOM(e=Mo()){return cr(e,this)}}const dr=(e=>(e,...t)=>new pr(false,e,t))(),{Hints:ur,RUNTIME:mr,Clipboard:gr,Front:hr,tabOpenLink:br,Normal:fr}=u,wr=e=>(...t)=>new Promise(((o,r)=>{try{e(...t,o)}catch(s){r(s)}})),yr=wr(mr),kr=async(e,t)=>(await yr("request",{...t,url:e})).text,vr=({count:e=0,domain:t=!1}={})=>{let o=window.location.pathname.slice(1);return e&&(o=o.split("/").slice(0,e).join("/")),t&&(o=`${window.location.hostname}/${o}`),o},Tr=(e,t=(e=>e),o=50,r=50)=>new Promise(((s,n)=>{const i=(a=0)=>{const c=e();t(c)?s(c):a>o?n(new Error("until: timeout")):setTimeout((()=>i(a+1)),r)};i()})),[_r,Er]="undefined"!=typeof browser?[browser.storage.local.get,browser.storage.local.set]:"undefined"!=typeof chrome?[chrome.storage.local.get,chrome.storage.local.set].map((e=>wr(e.bind(chrome.storage.local)))):void 0,Sr=async(e,t)=>{const o=`surfingkeys-conf.${e}`;console.debug("localStorageSet",o,t);const r={[o]:t};return await Er(r)},xr=(e,t={USE_PROFILES:{html:!0}})=>{return o=lo.sanitize(e,t),dr.node([o]);var o},Or=(e,...t)=>dr.node(e,...t),Ar=e=>e.map((e=>dr.for(e)`${e}`)),Pr=(e,...t)=>Or(e,...t).outerHTML,Rr=(e={})=>(t,...o)=>({html:Pr(t,...o),props:e}),Cr="a[href]:not([href^=javascript])",Gr=(e=Cr,t=ur.dispatchMouseClick,o={})=>new Promise((r=>{ur.create(e,((...e)=>{r(...e),"function"==typeof t&&t(...e)}),o)})),$r=(e,t,...o)=>{Gr(((e=Cr,t=(()=>!0))=>[...document.querySelectorAll(e)].filter(t))(t,e),...o)},Fr=e=>{return e.offsetHeight>0&&e.offsetWidth>0&&!e.getAttribute("disabled")&&(t=e.getBoundingClientRect()).height>0&&t.width>0&&t.bottom>=0&&t.right>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth);var t},Ur=e=>{const t=e instanceof URL?e:new URL(e);return new URL(`https://icons.duckduckgo.com/ip3/${t.hostname}.ico`).href},Lr=e=>u.getClickableElements(e)[0],Dr=e=>e&&!e.disabled&&("textarea"===e.localName||e.isContentEditable||"input"===e.localName&&/^(?!button|checkbox|file|hidden|image|radio|reset|submit)/i.test(e.type)),qr=(e,t=!0)=>/http[^#\?]*/.exec(e)[0],Ir=e=>{let t="https://google.com/favicon.ico";return e.favicon?t=e.favicon:e.domain?t=Ur(`https://${e.domain}`):e.search&&(t=Ur(e.search)),{favicon:t,compl:`https://www.googleapis.com/customsearch/v1?key=${C.google_cs}&cx=${C[`google_cx_${e.alias}`]}&q=`,search:`https://cse.google.com/cse/publicurl?cx=${C[`google_cx_${e.alias}`]}&q=`,callback:e=>JSON.parse(e.text).items.map((e=>Rr({url:e.link})` | |
<div> | |
<div class="title"><strong>${xr(e.htmlTitle)}</strong></div> | |
<div>${xr(e.htmlSnippet)}</div> | |
</div> | |
`)),priv:!0,...e}},jr={alias:"mk",name:"mankier",search:"https://www.mankier.com/?q=",compl:"https://www.mankier.com/api/v2/suggest/?exclude_sections=&q=",callback:e=>JSON.parse(e.text).results.map((e=>console.debug(e)),Rr({url:r.url})` | |
<div style="padding:5px;display:grid;grid-template-columns:32px 1fr;grid-gap:15px"> | |
<div> | |
<div class="title"><strong>${r.text}</strong></div> | |
<div class="title">${r.description??""}</div> | |
</div> | |
</div> | |
`)},Nr={alias:"rd",name:"raindrop",domain:"app.raindrop.io",search:"https://api.raindrop.io/v1/raindrops/0?sort=-created&perpage=10&search=",callback:e=>JSON.parse(e.text).items.map((e=>{const t=e.title,o=e.link,r=new URL(o).hostname;return Rr({url:o})` | |
<div> | |
<div class="title"><strong>${t}</strong></div> | |
<div>${r}</div> | |
</div> | |
`}))},zr={alias:"trkt",name:"Trakt.tv",domain:"trakt.tv",search:"https://trakt.tv/search?query=",callback:e=>JSON.parse(e.text).results.filter((e=>e.html&&e.klass)).map((e=>{const t=(new DOMParser).parseFromString(e.html,"text/html"),o=t.querySelector(".search-result"),r=`https://trakt.tv${o?o.getAttribute("data-url"):""}`,s=t.querySelector(".info .title"),n=s?s.textContent.trim():"Unknown Title",i=t.querySelector(".info .tags .tag.year"),a=i?i.textContent.trim():"",c=t.querySelector(".info .tags .tag.type"),l=c?c.textContent.trim():"",p=t.querySelector(".info .genres"),d=p?p.textContent.trim():"",u=t.querySelector(".poster img.real"),m=u?u.getAttribute("data-original"):"";return util.suggestionItem({url:r})` | |
<div style="display: flex; align-items: center;"> | |
<img src="${m}" alt="${n}" style="width: 50px; margin-right: 10px;"> | |
<div> | |
<div class="title"><strong>${n}</strong> (${a})</div> | |
<div>${l}</div> | |
<div>${d}</div> | |
</div> | |
</div> | |
`}))},Hr={alias:"wa",name:"wolframalpha",search:"http://www.wolframalpha.com/input/?i=",compl:`http://api.wolframalpha.com/v2/query?appid=${C.wolframalpha}&format=plaintext,image&output=json&reinterpret=true&input=%s`,priv:!0,callback:(e,{query:t})=>{const o=JSON.parse(e.text).queryresult;if(o.error)return[Rr({url:"https://www.wolframalpha.com/"})` | |
<div> | |
<div class="title"><strong>Error</strong> (Code ${o.error.code})</div> | |
<div class="title">${o.error.msg}</div> | |
</div> | |
`];if(!o.success)return o.tips?[Rr({url:"https://www.wolframalpha.com/"})` | |
<div> | |
<div class="title"><strong>No Results</strong></div> | |
<div class="title">${o.tips.text}</div> | |
</div> | |
`]:o.didyoumeans?o.didyoumeans.map((e=>Rr({url:"https://www.wolframalpha.com/"})` | |
<div> | |
<div class="title"><strong>Did you mean...?</strong></div> | |
<div class="title">${e.val}</div> | |
</div> | |
`)):[Rr({url:"https://www.wolframalpha.com/"})` | |
<div> | |
<div class="title"><strong>Error</strong></div> | |
<div class="title">An unknown error occurred.</div> | |
</div> | |
`];const r=[];return o.pods.forEach((e=>{const o={title:e.title,values:[],url:`http://www.wolframalpha.com/input/?i=${encodeURIComponent(t)}`};e.numsubpods>0&&(e.subpods[0].plaintext&&(o.url=encodeURIComponent(e.subpods[0].plaintext),o.copy=e.subpods[0].plaintext),e.subpods.forEach((e=>{let t="";e.title&&(t=Or`<strong>${e.title}</strong>: `),e.img?t=Or` | |
<div>${t}</div> | |
<div> | |
<img | |
src="${e.img.src}" | |
width="${e.img.width}" | |
height="${e.img.height}" | |
style="margin-top: 6px; padding: 12px; border-radius: 12px; background: white" | |
> | |
</div> | |
`:e.plaintext&&(t=`${t}${e.plaintext}`),t&&(t=Or`<div class="title">${t}</div>`),o.values.push(t)}))),o.values.length>0&&r.push(o)})),r.map((e=>Rr({url:e.url,copy:e.copy,query:e.query})` | |
<div> | |
<div class="title"><strong>${e.title}</strong></div> | |
${Ar(e.values)} | |
</div>`))}},Mr="undefined"!=typeof navigator?navigator.language:"",Br={td:{alias:"td",name:"thefreedictionary",search:"https://www.thefreedictionary.com/search.php?q="}};Br.nx={alias:"nx",name:"nixpkg",search:"https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=",callback:e=>{const t=JSON.parse(e.text);return console.debug("nixpkg",t),t.hits.hits.map((e=>{const t=e._source,o=t.package_attr_name||t.package_pname,r=t.package_pversion,s=t.package_description||t.package_longDescription||"",n=t.package_homepage?t.package_homepage[0]:"",i=t.package_license_set?t.package_license_set.join(", "):"unknown",a=t.package_maintainers_set?t.package_maintainers_set.join(", "):"unknown",c=`https://search.nixos.org/packages?channel=unstable&show=${encodeURIComponent(o)}`;return Rr({url:c})` | |
<div> | |
<div class="title"><strong>${o}</strong> ${r}</div> | |
<div>${s}</div> | |
<div><em>Homepage:</em> ${n}</div> | |
<div><em>License:</em> ${i}</div> | |
<div><em>Maintainers:</em> ${a}</div> | |
</div> | |
`}))}},Br.usw={alias:"usw",name:"userstyles.world",search:"https://userstyles.world/search?q="},Br.gr={alias:"gr",name:"grep",search:"https://grep.app/search?q=",compl:"https://grep.app/search?q=",callback:e=>JSON.parse(e.text).map((function(e){return e.phrase}))},Br.trkt=zr,Br.ya={alias:"ya",name:"yarn",search:"https://yarnpkg.com/en/search?q=",compl:"https://ofcncog2cu-dsn.algolia.net/1/indexes/npm-search/query",favicon:Ur("https://yarnpkg.com"),opts:({query:e})=>({method:"POST",headers:{"Content-Type":"application/json","X-Algolia-Application-Id":"OFCNCOG2CU","X-Algolia-API-Key":"f54e21fa3a2a0160595bb058179bfb1e"},body:JSON.stringify({params:`query=${encodeURIComponent(e)}&hitsPerPage=10`})}),callback:e=>JSON.parse(e.text).hits.map((e=>{const t=e.name,o=e.version,r=e.description||"",s=(e.downloadsLast30Days||0).toLocaleString(),n=e.keywords?e.keywords.join(", "):"",i=`https://yarnpkg.com/package/${encodeURIComponent(t)}`;return Rr({url:i})` | |
<div style="padding: 5px;"> | |
<div class="title"> | |
<strong>${t}</strong> <span style="opacity: 0.7;">${o}</span> | |
</div> | |
<div>${r}</div> | |
<div style="font-size: 0.9em; opacity: 0.8;"> | |
<span>Downloads (30 days): ${s}</span> | |
${n?`<span> • Keywords: ${n}</span>`:""} | |
</div> | |
</div> | |
`}))},Br.at={alias:"at",name:"alternativeTo",search:"https://alternativeto.net/browse/search/?q=",compl:"https://zidpns2vb0-dsn.algolia.net/1/indexes/items?x-algolia-api-key=88489cdf3a8fbfe07a2f607bf1568330&x-algolia-application-id=ZIDPNS2VB0&query=",priv:!0},Br.at.callback=async e=>JSON.parse(e.text).hits.map((e=>{var t,o,r;let s=htmlPurify(e.name),n="";e._highlightResult&&e._highlightResult.name&&(s=htmlPurify(e._highlightResult.name.value)),e.likes&&(n+=`[↑${parseInt(e.likes,10)}] `);const i=(null==(r=null==(o=null==(t=null==e?void 0:e.images.filter((e=>"Icon"==e.type)).at(0))?void 0:t.signedImages)?void 0:o.at(0))?void 0:r.signedURL)??wpDefaultIcon;return Rr({url:`https://alternativeto.net/software/${e.urlName}`})` | |
<div style="padding:5px;display:grid;grid-template-columns:60px 1fr;grid-gap:15px"> | |
<img style="width:60px" src="${i}" alt="${e.name}"> | |
<div> | |
<div class="title"><strong>${n}${s}</strong></div> | |
<span>${htmlPurify(e.tagLine||e.description||"")}</span> | |
</div> | |
</div> | |
`})),Br.gp={alias:"gp",name:"gopkg",search:"https://pkg.go.dev/search?q=htmlq&m=package",compl:"https://pkg.go.dev/search?q=",callback:e=>JSON.parse(e.text).Results.map((e=>{const t=new URL("https://pkg.go.dev");return t.searchParams.append("q",e.Name),suggestionItem({url:t.href})` | |
<div> | |
<div class="title"><strong>${e.Name}</strong></div> | |
<div>${e.Synopsis}</div> | |
</div> | |
`}))},Br.gg=Ir({alias:"gg",name:"golang",domain:"golang.org"}),Br.cs=Ir({alias:"cs",name:"chromestore",search:"https://chrome.google.com/webstore/search/"}),Br.ow={alias:"ow",name:"owasp",search:"https://www.owasp.org/index.php?go=go&search=",compl:"https://www.owasp.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search="},Br.ow.callback=e=>JSON.parse(e.text)[1],Br.so={alias:"so",name:"stackoverflow",search:"https://stackoverflow.com/search?q=",compl:"https://api.stackexchange.com/2.2/search/advanced?pagesize=10&order=desc&sort=relevance&site=stackoverflow&q="},Br.so.callback=e=>JSON.parse(e.text).items.map((e=>urlItem(`[${e.score}] ${e.title}`,e.link,{query:!1}))),Br.se={alias:"se",name:"stackexchange",search:"https://stackexchange.com/search?q=",compl:"https://duckduckgo.com/ac/?q=!stackexchange%20"},Br.se.callback=e=>JSON.parse(e.text).map((e=>e.phrase.replace(/^!stackexchange /,""))),Br.dh={alias:"dh",name:"dockerhub",search:"https://hub.docker.com/search/?page=1&q=",compl:"https://hub.docker.com/v2/search/repositories/?page_size=20&query="},Br.dh.callback=e=>JSON.parse(e.text).results.map((e=>{let t="",o=e.repo_name;return t+=`[★${e.star_count}] `,t+=`[↓${e.pull_count}] `,-1===o.indexOf("/")&&(o=`_/${o}`),Rr({url:`https://hub.docker.com/r/${o}`})` | |
<div> | |
<div class="title"><strong>${o}</strong></div> | |
<div>${t}</div> | |
<div>${e.short_description}</div> | |
</div> | |
`})),Br.vw={alias:"vw",name:"vimwiki",search:"https://vim.fandom.com/wiki/Special:Search?query=",compl:"https://vim.fandom.com/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search="},Br.vw.callback=e=>JSON.parse(e.text)[1].map((e=>urlItem(e,`https://vim.fandom.com/wiki/${encodeURIComponent(e)}`,{query:!1}))),Br.trkt={alias:"trkt",name:"Trakt.tv",domain:"trakt.tv",search:"https://trakt.tv/search?query="},Br.trkt.callback=e=>JSON.parse(e.text).results.filter((e=>e.html&&e.klass)).map((e=>{const t=(new DOMParser).parseFromString(e.html,"text/html"),o=t.querySelector(".search-result"),r=`https://trakt.tv${o?o.getAttribute("data-url"):""}`,s=t.querySelector(".info .title"),n=s?s.textContent.trim():"Unknown Title",i=t.querySelector(".info .tags .tag.year"),a=i?i.textContent.trim():"",c=t.querySelector(".info .tags .tag.type"),l=c?c.textContent.trim():"",p=t.querySelector(".info .genres"),d=p?p.textContent.trim():"",u=t.querySelector(".poster img.real"),m=u?u.getAttribute("data-original"):"";return Rr({url:r})` | |
<div style="display: flex; align-items: center;"> | |
<img src="${m}" alt="${n}" style="width: 50px; margin-right: 10px;"> | |
<div> | |
<div class="title"><strong>${n}</strong> (${a})</div> | |
<div>${l}</div> | |
<div>${d}</div> | |
</div> | |
</div> | |
`})),Br.dd={alias:"du",name:"duckduckgo",search:"https://duckduckgo.com/?q=",compl:"https://duckduckgo.com/ac/?q=",callback:e=>JSON.parse(e.text).map((e=>e.phrase))},Br.di={alias:"di",name:"duckduckgo-images",search:"https://duckduckgo.com/?ia=images&iax=images&q=",compl:"https://duckduckgo.com/ac/?ia=images&iax=images&q=",callback:Br.dd.callback},Br.tv={alias:"mv",domain:"imdb.com",name:"IMDB",search:"https://www.imdb.com/find?s=all&q="},Br.al={alias:"al",name:"archlinux",search:"https://www.archlinux.org/packages/?arch=x86_64&q="},Br.np={alias:"np",name:"npm",search:"https://www.npmjs.com/search?q=",compl:"https://api.npms.io/v2/search/suggestions?size=20&q=",favicon:Ur("https://www.npmjs.com")},Br.np.callback=e=>JSON.parse(e.text).map((e=>{let t="",o="",r="",s="";return e.package.description&&(o=escapeForAlias(e.package.description)),e.score&&e.score.final&&(s=Math.round(5*Number(e.score.final)),r="⭐".repeat(s)+"☆".repeat(5-s)),e.flags&&Object.keys(e.flags).forEach((e=>{t+=`[<span style='color:#ff4d00'>⚑</span> ${escapeForAlias(e)}] `})),createutil.suggestionItem(`\n <div>\n <style>.title>em { font-weight: bold; }</style>\n <div class="title">${e.highlight}</div>\n <div>\n <span style="font-size:1.5em;line-height:1em">${r}</span>\n <span>${t}</span>\n </div>\n <div>${o}</div>\n </div>\n `,{url:e.package.links.npm})})),Br.wa=Hr,Br.wt={alias:"wt",name:"wiktionary",search:"https://en.wiktionary.org/w/index.php?search=",compl:"https://en.wiktionary.org/w/api.php?action=query&format=json&generator=prefixsearch&gpssearch=",callback:e=>{const t=JSON.parse(e.text);return Object.values(t.query.pages).map((e=>e.title))}},Br.au={alias:"au",name:"AUR",search:"https://aur.archlinux.org/packages/?O=0&SeB=nd&outdated=&SB=v&SO=d&PP=100&do_Search=Go&K=",compl:"https://aur.archlinux.org/rpc?v=5&type=suggest&arg=",callback:e=>JSON.parse(e.text).map((e=>urlItem(e,`https://aur.archlinux.org/packages/${encodeURIComponent(e)}`)))},Br.aw={alias:"aw",name:"archwiki",search:"https://wiki.archlinux.org/index.php?go=go&search=",compl:"https://wiki.archlinux.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search=",callback:e=>JSON.parse(e.text)[1]},Br.mk=jr,Br.rd=Nr,Br.bs={alias:"bs",name:"brave-search",search:"https://search.brave.com/search?q=",compl:"https://search.brave.com/api/suggest?q="},Br.bs.callback=e=>JSON.parse(e.text)[1],Br.bi={alias:"bi",name:"brave-images",search:"https://search.brave.com/images?q=",compl:"https://search.brave.com/api/suggest?q="},Br.bi.callback=e=>JSON.parse(e.text)[1],Br.bn={alias:"bn",name:"brave-news",search:"https://search.brave.com/news?q=",compl:"https://search.brave.com/api/suggest?q="},Br.bn.callback=e=>JSON.parse(e.text)[1],Br.ka={alias:"ka",name:"kagi",search:`${C.kagiSession}&q=`,compl:("/search"==new URL(C.kagiSession).pathname?"/autosuggest":"/search")+"?q="},Br.ka.callback=e=>JSON.parse(e.text).map((e=>{const t=new URL(C.kagiSession);return t.searchParams.append("q",e.t),e.goto&&(t.href=e.goto),Rr({url:t.href})` | |
<div style="padding: 5px; display: grid; grid-template-columns: 32px 1fr; grid-gap: 15px"> | |
<img style="width: 32px" src="${e.img?new URL(e.img,"https://kagi.com"):Re}" /> | |
<div> | |
<div class="title"><strong>${e.t}</strong></div> | |
<div class="title">${e.txt??""}</div> | |
</div> | |
</div> | |
`})),Br.lg={alias:"lg",name:"libgen",search:"https://libgen.is/search.php?req="};const Wr=e=>JSON.parse(e.text).results.map((e=>{let{name:t}=e;"object"==typeof t&&(t=void 0!==t[navigator.language]?t[navigator.language]:Object.values(t)[0]),t=encodeURIComponent(t);let o="";switch(e.type){case"extension":o+="� ";break;case"statictheme":o+="🖌 "}return Rr(`\n <div style="padding:5px; display:grid; grid-template-columns:2em 1fr; grid-gap:15px">\n <img style="width:2em" src="${e.icon_url}" alt="${t}">\n <div>\n <div class="title"><strong>${o}${t}</strong></div>\n </div>\n </div>\n `,e.url)}));Br.fa={alias:"fa",name:"firefox-addons",search:`https://addons.mozilla.org/${Mr}/firefox/search/?q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?q=",callback:Wr},Br.ft={alias:"ft",name:"firefox-themes",search:`https://addons.mozilla.org/${Mr}/firefox/search/?type=statictheme&q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?type=statictheme&q=",callback:Wr},Br.fe={alias:"fe",name:"firefox-extensions",search:`https://addons.mozilla.org/${Mr}/firefox/search/?type=extension&q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?type=extension&q="},Br.fe.callback=Wr,Br.so={alias:"so",name:"stackoverflow",search:"https://stackoverflow.com/search?q=",compl:"https://api.stackexchange.com/2.2/search/advanced?pagesize=10&order=desc&sort=relevance&site=stackoverflow&q="},Br.so.callback=e=>JSON.parse(e.text).items.map((e=>((e,t,{desc:o=null,query:r=null}={})=>{const s=o&&o.length>0?(Array.isArray(o)?o:[o]).map((e=>Or`<div>${e}</div>`)):[];return Rr({url:t,query:r??e})` | |
<div> | |
<div style="font-weight: bold">${e}</div> | |
${Ar(s)} | |
<div style="opacity: 0.7; line-height: 1.3em">${t}</div> | |
</div> | |
`})(`[${e.score}] ${e.title}`,e.link,{query:!1}))),Br.se={alias:"se",name:"stackexchange",search:"https://stackexchange.com/search?q=",compl:"https://duckduckgo.com/ac/?q=!stackexchange%20"},Br.se.callback=e=>JSON.parse(e.text).map((e=>e.phrase.replace(/^!stackexchange /,""))),Br.sg={alias:"sg",name:"Sourcegraph",search:"https://sourcegraph.com/search?q=",compl:"https://sourcegraph.com/.api/graphql?SuggestionsRepo"};const Vr=async e=>{const t=JSON.parse(e.text),o=Object.entries(t.hits.reduce(((e,t)=>{const{lvl0:o}=t.hierarchy;return e[o]||(e[o]=[]),e[o].push(t),e}),{})).sort((([e],[t])=>e.localeCompare(t))).flatMap((([e,t])=>t.map((e=>{const t=e.type,o=Object.entries(e.hierarchy).reduce(((t,[o,r])=>r&&o!==e.type?`${t?`${t} > `:""}${r}`:t),""),r=e.hierarchy[t],s=e.content;return Rr({url:e.url})` | |
<div> | |
<div style="font-weight: bold"> | |
<span style="opacity: 0.6">${htmlPurify(o)}${r?" > ":""}</span> | |
<span style="">${htmlPurify(r)}</span> | |
</div> | |
<div>${htmlPurify(s)}</div> | |
<div style="opacity: 0.6; line-height: 1.3em">${htmlPurify(e.url)}</div> | |
</div> | |
`}))));return console.log(o),o};Br.ts={alias:"ts",name:"typescript",domain:"www.typescriptlang.org",search:"https://duckduckgo.com/?q=site%3Awww.typescriptlang.org+",compl:"https://bgcdyoiyz5-dsn.algolia.net/1/indexes/typescriptlang?x-algolia-application-id=BGCDYOIYZ5&x-algolia-api-key=37ee06fa68db6aef451a490df6df7c60&query=",favicon:"https://www.typescriptlang.org/favicon-32x32.png",callback:Vr},Br.lcp={alias:"lcp",name:"langchain python",domain:"https://python.langchain.com",search:"https://duckduckgo.com/?q=site%3Apython.langchain.com+",compl:"https://vau016laws-dsn.algolia.net/1/indexes/python-langchain-latest?x-algolia-application-id=VAU016LAWS&x-algolia-api-key=6c01842d6a88772ed2236b9c85806441&query=",favicon:Ur("https://python.langchain.com"),callback:Vr},Br.lcp={alias:"lcj",name:"langchain js",domain:"https://js.langchain.com",search:"https://duckduckgo.com/?q=site%js.langchain.com+",compl:"https://3ezv6u1tyc-dsn.algolia.net/1/indexes/js-langchain-latest?x-algolia-application-id=3EZV6U1TYC&x-algolia-api-key=180851bbb9ba0ef6be9214849d6efeaf&query=",favicon:Ur("https://js.langchain.com"),callback:Vr},Br.ci={alias:"ci",name:"caniuse",search:"https://caniuse.com/?search=",compl:"https://caniuse.com/process/query.php?search=",favicon:"https://caniuse.com/img/favicon-128.png"},Br.ci.getData=async()=>{const e="completions.ci.data",t=await(async e=>{const t=`surfingkeys-conf.${e}`;return console.debug("localStorageGet",t),(await _r(t))[t]})(e);if(t)return JSON.parse(t);const o=JSON.parse(await kr("https://caniuse.com/data.json"));return await Sr(e,JSON.stringify(o)),o},Br.ci.callback=async e=>{const{featureIds:t}=JSON.parse(e.text),o=await Br.ci.getData();return t.map((e=>{const t=o.data[e];return t?Rr({url:`https://caniuse.com/${e}`})` | |
<div> | |
<div class="title"><strong>${t.title}</strong></div> | |
<div>${t.description}</div> | |
</div> | |
`:null})).filter((e=>!!e))},Br.lb={alias:"lb",name:"lobsters",domain:"lobste.rs",search:"https://lobste.rs/search?what=comments&order=newest&q="},Br.dt={alias:"dto",name:"DEV",domain:"dev.to",search:"https://dev.to/search&sort_by=published_at&sort_direction=desc&q="},Br.py=Ir({alias:"py",name:"python",domain:"python.org"}),Br.no=Ir({alias:"no",name:"node",domain:"nodejs.org"}),Br.md={alias:"md",name:"mdn",search:"https://developer.mozilla.org/search?q=",compl:"https://developer.mozilla.org/api/v1/search?q="},Br.md.callback=e=>JSON.parse(e.text).documents.map((e=>Rr({url:`https://developer.mozilla.org/${e.locale}/docs/${e.slug}`})` | |
<div> | |
<div class="title"><strong>${e.title}</strong></div> | |
<div style="font-size:0.8em"><em>${e.slug}</em></div> | |
<div>${e.summary}</div> | |
</div> | |
`)),Br.raycast={alias:"rc",name:"raycast",domain:"https://developers.raycast.com/",search:"https://duckduckgo.com/?q=site%3Adevelopers.raycast.com ",favicon:Ur("https://developers.raycast.com/"),compl:"https://www.raycast.com/frontend_api/extensions/search?&page=1&q="},Br.raycast.callback=e=>{const t=JSON.parse(e.text).data;return console.debug("raycast",t),t.map((e=>{const t=e.download_count.toLocaleString(),o=e.categories.join(", "),r=e.commands.length;return Rr({url:e.store_url,query:e.title})` | |
<div> | |
<div class="title"> | |
<strong>${e.title}</strong> | |
<span style="opacity: 0.7">${t} downloads</span> | |
</div> | |
<div>${e.description}</div> | |
<div style="opacity: 0.7"> | |
${o} • ${r} commands | |
</div> | |
</div> | |
`}))},Br.lr={alias:"lr",name:"luarocks",domain:"luarocks.org",search:"https://luarocks.org/search?q="},Br.hn={alias:"hn",name:"hackernews",domain:"news.ycombinator.com",search:"https://hn.algolia.com/?query=",compl:"https://hn.algolia.com/api/v1/search?tags=(story,comment)&query=",favicon:Ur("https://news.ycombinator.com")},Br.hn.callback=e=>JSON.parse(e.text).hits.map((e=>{let t="",o="";switch(e.points&&(o+=`[↑${e.points}] `),e.num_comments&&(o+=`[↲${e.num_comments}] `),e._tags[0]){case"story":t=e.title;break;case"comment":t=e.comment_text;break;default:t=e.objectID}const r=`https://news.ycombinator.com/item?id=${encodeURIComponent(e.objectID)}`;return Rr({url:r})` | |
<div> | |
<div class="title">${o}${t}</div> | |
<div class="url">${r}</div> | |
</div> | |
`})),Br.hd={alias:"hd",name:"hexdocs",search:"https://hex.pm/packages?sort=downloads&search=",compl:"https://hex.pm/api/packages?sort=downloads&hd&search="},Br.hd.callback=e=>JSON.parse(e.text).map((e=>{var t,o;return Rr({url:`https://hexdocs.pm/${encodeURIComponent(e.name)}`})` | |
<div> | |
<div class="title">${e.repository}/<strong>${e.name}</strong></div> | |
<div>${(null==(t=e.downloads)?void 0:t.all)?`[↓${e.downloads.all}]`:""}</div> | |
<div>${(null==(o=e.meta)?void 0:o.description)??""}</div> | |
</div> | |
`})),Br.br={alias:"br",name:"brew",domain:"formulae.brew.sh",search:"https://formulae.brew.sh/search/",compl:"https://formulae.brew.sh/api/formula.json",favicon:"https://formulae.brew.sh/assets/img/homebrew-256x256.png",callback:e=>JSON.parse(e.text).map((e=>{const t=e.name,o=e.desc;return Rr({url:`https://formulae.brew.sh/formula/${e.name}`})` | |
<div> | |
<div class="title"><strong>${t}</strong></div> | |
<div>${o}</div> | |
</div> | |
`}))},Br.re={alias:"re",name:"reddit",search:"https://www.reddit.com/search?sort=relevance&t=all&q=",compl:"https://api.reddit.com/search?syntax=plain&sort=relevance&limit=20&q="},Br.re.thumbs={default:"https://i.imgur.com/VCm94xa.png",image:"https://i.imgur.com/OaAUUaQ.png",nsfw:"https://i.imgur.com/lnmJrXP.png",self:"https://i.imgur.com/KQ8uYZz.png",spoiler:"https://i.imgur.com/gx2tGsv.png"},Br.re.callback=async(e,{query:t})=>{const[o,r,s,n=""]=t.match(/^\s*\/?(r\/[a-zA-Z0-9_]+)(\s+(.*))?/)??[null,null,null,t];if(r&&n)e={text:await kr(`https://api.reddit.com/${encodeURIComponent(r)}/search?syntax=plain&sort=relevance&restrict_sr=on&limit=20&q=${encodeURIComponent(n)}`)};else if(r){const e=await kr(`https://www.reddit.com/api/search_reddit_names.json?typeahead=true&exact=false&query=${encodeURIComponent(r)}`);return JSON.parse(e).names.map((e=>urlItem(`r/${e}`,`https://reddit.com/r/${encodeURIComponent(e)}`,{query:`r/${e}`})))}return JSON.parse(e.text).data.children.map((({data:e})=>{var t;const o=(null==(t=e.thumbnail)?void 0:t.match(/^https?:\/\//))?e.thumbnail:Br.re.thumbs[e.thumbnail]??Br.re.thumbs.default,r=prettyDate(new Date(1e3*parseInt(e.created,10)));return Rr({url:encodeURI(`https://reddit.com${e.permalink}`)})` | |
<div style="display: flex; flex-direction: row"> | |
<img style="width: 70px; height: 50px; margin-right: 0.8em" alt="thumbnail" src="${o}"> | |
<div> | |
<div> | |
<strong><span style="font-size: 1.2em; margin-right: 0.2em">↑</span>${e.score}</strong> ${e.title} <span style="font-size: 0.8em; opacity: 60%">(${e.domain})</span> | |
</div> | |
<div> | |
<span style="font-size: 0.8em"><span style="color: opacity: 70%">r/${e.subreddit}</span> • <span style="color: opacity: 70%">${e.num_comments??"unknown"}</span> <span style="opacity: 60%">comments</span> • <span style="opacity: 60%">submitted ${r} by</span> <span style="color: opacity: 70%">${e.author}</span></span> | |
</div> | |
</div> | |
</div> | |
`}))},Br.ol={alias:"ol",name:"OpenLibrary",domain:"openlibrary.org",search:"https://openlibrary.org/search?q=",compl:"https://openlibrary.org/search.json?q=",callback:e=>JSON.parse(e.text).docs.map((e=>{var t;const o=(null==(t=e.author_name)?void 0:t[0])??"unknown",r=e.title,s=e.first_publish_year??"unknown";return Rr({url:`https://openlibrary.org${e.key}`})` | |
<div> | |
<div class="title"><strong>${r}</strong></div> | |
<div class="title">${o} • ${s}</div> | |
</div> | |
`}))},Br.do={alias:"do",name:"domainr",search:"https://domainr.com/?q=",compl:"https://5jmgqstc3m.execute-api.us-west-1.amazonaws.com/v1/domainr?q="},Br.do.callback=e=>Object.entries(JSON.parse(e.text)).map((([e,t])=>{let o="inherit",r="<strong>?</strong> ";switch(t.summary){case"inactive":o="#23b000",r="✔ ";break;case"unknown":break;default:o="#ff4d00",r="✘ "}return createSuggestionItem(`<div><div class="title" style="color:${o}"><strong>${r}${escape(e)}</strong></div></div>`,{url:`https://domainr.com/${e}`})})),Br.devv={alias:"dvai",name:"devv.ai",domain:"devv.ai",search:"https://devv.ai/search/",favicon:"https://devv.ai/favicon.ico"},Br.aw={alias:"aw",name:"archwiki",search:"https://wiki.archlinux.org/index.php?go=go&search=",compl:"https://wiki.archlinux.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=25&suggest=true&search="},Br.aw.callback=e=>JSON.parse(e.text)[1],Br.af={alias:"af",name:"archforums",domain:"bbs.archlinux.org",search:("af",`https://cse.google.com/cse/publicurl?cx=${C.google_cx_af}&q=`),compl:`https://www.googleapis.com/customsearch/v1?key=${C.google_cs}&cx=${C.google_cx_af}&q=`,callback:e=>JSON.parse(e.text).items.map((e=>Rr(`\n <div>\n <div class="title"><strong>${e.htmlTitle}</strong></div>\n <div>${e.htmlSnippet}</div>\n </div>\n `,e.link)))},Br.au={alias:"au",name:"AUR",search:"https://aur.archlinux.org/packages/?O=0&SeB=nd&outdated=&SB=v&SO=d&PP=100&do_Search=Go&K=",compl:"https://aur.archlinux.org/rpc?v=5&type=suggest&arg="},Br.au.callback=e=>JSON.parse(e.text).map((e=>urlItem(e,`https://aur.archlinux.org/packages/${e}`))),Br.gs={alias:"gs",name:"google-scholar",search:"https://scholar.google.com/scholar?q=",compl:"https://scholar.google.com/scholar_complete?q="},Br.gs.callback=e=>JSON.parse(e.text).l,Br.yt={alias:"yt",name:"youtube",search:"https://www.youtube.com/search?q=",compl:`https://www.googleapis.com/youtube/v3/search?maxResults=20&part=snippet&type=video,channel&key=${C.google_yt}&safeSearch=none&q=`,priv:!0},Br.yt.callback=e=>JSON.parse(e.text).items.map((e=>{const t=e.snippet.thumbnails.default;switch(e.id.kind){case"youtube#channel":return Rr({url:`https://youtube.com/channel/${e.id.channelId}`})` | |
<div style="display: flex; flex-direction: row"> | |
<img style="${`width: ${t.width??120}px; height: ${t.height??90}px; margin-right: 0.8em`}" alt="thumbnail" src="${t.url}"> | |
<div> | |
<div> | |
<strong>${e.snippet.channelTitle}</strong> | |
</div> | |
<div> | |
<span>${e.snippet.description}</span> | |
</div> | |
<div> | |
<span style="font-size: 0.8em"><span style="opacity: 70%">channel</span></span> | |
</div> | |
</div> | |
</div> | |
`;case"youtube#video":const o=prettyDate(new Date(e.snippet.publishTime));return Rr({url:`https://youtu.be/${encodeURIComponent(e.id.videoId)}`})` | |
<div style="display: flex; flex-direction: row"> | |
<img style="${`width: ${t.width??120}px; height: ${t.height??90}px; margin-right: 0.8em`}" alt="thumbnail" src="${t.url}"> | |
<div> | |
<div> | |
<strong>${htmlPurify(e.snippet.title)}</strong> | |
</div> | |
<div> | |
<span>${htmlPurify(e.snippet.description)}</span> | |
</div> | |
<div> | |
<span style="font-size: 0.8em"><span style="opacity: 70%">video</span> <span style="opacity: 60%">by</span> <span style="opacity: 70%">${e.snippet.channelTitle}</span> • <span style="opacity: 70%">${o}</span></span> | |
</div> | |
</div> | |
</div> | |
`;default:return null}})).filter((e=>!!e)),Br.hf={alias:"hf",name:"huggingface",search:"https://huggingface.co/models?search=",compl:"https://huggingface.co/api/quicksearch?q="},Br.hf.callback=e=>{const t=JSON.parse(e.text);return console.log(t),[...t.models.map((e=>Rr({url:`https://huggingface.co/${e.id}`})` | |
<div> | |
<div><strong>${e.id}</strong></div> | |
<div><span style="font-size: 0.9em; opacity: 70%">model</span></div> | |
</div> | |
`)),...t.datasets.map((e=>Rr({url:`https://huggingface.co/datasets/${e.id}`})` | |
<div> | |
<div><strong>${e.id}</strong></div> | |
<div><span style="font-size: 0.9em; opacity: 70%">dataset</span></div> | |
</div> | |
`))]},Br.az={alias:"az",name:"amazon",search:"https://smile.amazon.com/s/?field-keywords=",compl:"https://completion.amazon.com/search/complete?method=completion&mkt=1&search-alias=aps&q="},Br.az.callback=e=>JSON.parse(e.text)[1],Br.cl={alias:"cl",name:"craigslist",search:"https://www.craigslist.org/search/sss?query=",compl:"https://www.craigslist.org/suggest?v=12&type=search&cat=sss&area=1&term="},Br.cl.callback=e=>JSON.parse(e.text),Br.eb={alias:"eb",name:"ebay",search:"https://www.ebay.com/sch/i.html?_nkw=",compl:"https://autosug.ebay.com/autosug?callback=0&sId=0&kwd="},Br.eb.callback=e=>JSON.parse(e.text).res.sug,Br.yp={alias:"yp",name:"yelp",search:"https://www.yelp.com/search?find_desc=",compl:"https://www.yelp.com/search_suggest/v2/prefetch?prefix="},Br.yp.callback=e=>{const t=JSON.parse(e.text).response,o=[];return t.forEach((e=>{e.suggestions.forEach((e=>{const t=e.query;-1===o.indexOf(t)&&o.push(t)}))})),o};const Jr=(e,t={})=>{const o={maxDefs:-1,ellipsis:!1,...t};return e.map((e=>{const t=[];let r="";if((o.maxDefs<=-1||o.maxDefs>0)&&e.defs&&e.defs.length>0){for(const r of e.defs.slice(0,o.maxDefs<=-1?void 0:o.maxDefs)){const e=r.split("\t"),o=`(${e[0]})`,s=e[1];t.push(`<span><em>${o}</em> ${s}</span>`)}o.ellipsis&&e.defs.length>o.maxDefs&&t.push("<span><em>…</em></span>"),r=`<div>${t.join("<br />")}</div>`}return Rr({url:`${o.wordBaseURL}${e.word}`})` | |
<div> | |
<div class="title"><strong>${e.word}</strong></div> | |
${xr(r)} | |
</div> | |
`}))};Br.de={alias:"de",name:"define",search:"http://onelook.com/?w=",compl:"https://api.datamuse.com/words?md=d&sp=%s*",opts:{maxDefs:16,ellipsis:!0,wordBaseURL:"http://onelook.com/?w="}},Br.de.callback=e=>{const t=JSON.parse(e.text);return Jr(t,Br.de.opts)},Br.th={alias:"th",name:"thesaurus",search:"https://www.onelook.com/thesaurus/?s=",compl:"https://api.datamuse.com/words?md=d&ml=%s",opts:{maxDefs:3,ellipsis:!0,wordBaseURL:"http://onelook.com/thesaurus/?s="}},Br.th.callback=e=>{const t=JSON.parse(e.text);return Jr(t,Br.th.opts)},Br.un={alias:"un",name:"unicode",search:"https://unicode-table.com/en/search/?q=",compl:`${settings.localServer}/s/unicode?q=`,local:!0},Br.cr={alias:"cr",name:"crates",search:"https://crates.io/search?q=",compl:"https://crates.io/api/v1/crates?q=",callback:e=>JSON.parse(e.text).crates.map((e=>{const t=`[${e.num_downloads} downloads]`;return Rr({url:e.documentation})` | |
<div> | |
<div class="title"><strong>${e.name}</strong></div> | |
<div>${e.description}</div> | |
<div>${t}</div> | |
</div> | |
`}))},Br.gh={alias:"gh",name:"github",search:"https://github.com/search?q=",compl:"https://api.github.com/search/repositories?sort=stars&order=desc&q="},Br.gh.callback=e=>JSON.parse(e.text).items.map((e=>{let t="";return e.stargazers_count&&(t+=`[★${parseInt(e.stargazers_count,10)}] `),urlItem(t+e.full_name,e.html_url,{query:e.full_name,desc:e.description})})),Br.gst={alias:"gst",name:"Gist [JS]",search:"https://gist.github.com/search?o=desc&s=stars&q=%22%3D%3DUserScript%3D%3D%22+",compl:"https://api.github.com/gists/public?&l=JavaScript&q=per_page=20&q=",favicon:Ur("https://gist.github.com"),callback:e=>JSON.parse(e.text).map((e=>{const t=e.description?e.description:"No description";return Rr({url:e.html_url})` | |
<div> | |
<div class="title"><strong>${e.owner.login}/${e.files[Object.keys(e.files)[0]].filename}</strong></div> | |
<div>${t}</div> | |
</div> | |
`}))},Br.ch={alias:"ch",name:"cheatsheets",search:"https://cheatsheets.zip/?q="};const{Hints:Kr,Front:Yr,Clipboard:Zr,tabOpenLink:Xr,RUNTIME:Qr,Normal:es}=u,ts=(e=!0)=>{Qr("getTabs",null,(t=>{const o=t&&t.tabs||[];markdownStr=o.filter((e=>e.url.startsWith("http")&&-1===e.url.indexOf("cache"))).map((t=>`[${t.title}](${qr(t.url,e)})`)).concat((e=>{const{prefix:t,title:o,url:r}=(e=>{let t=document.title;const o=location.href,r=location.hostname,s=location.pathname;let n="";if(r.includes("www.alfredforum.com")&&(t=t.replace("- Discussion & Help - Alfred App Community Forum","")),"github.com"===r){const e=/pull\/\d+$/;if(/issues\/\d+$/.test(s)){const e=/\/(.*)\/issues\/(\d+)$/.exec(s),[,o,r]=e;t=`${o}#${r}`}else if(e.test(s)){const e=/\/(.*)\/pull\/(\d+)$/.exec(s),[,o,r]=e;t=`${o} PR #${r}`}else{const e=document.querySelector("#repo-stars-counter-star"),t=e&&e.innerText.trim()||"0";n=t.endsWith("k")||parseInt(t)>99?`${t}★ `:""}}return{prefix:n,title:t,url:qr(o,e)}})(e);return`${t}[${o}](${r})`})(e)).join("\n"),Zr.write(markdownStr)}))},os=((e,t,...o)=>o.forEach((o=>{const r=document.createEvent(e);r.initEvent(o,!0,!0),t.dispatchEvent(r)}))).bind(void 0,["MouseEvents"]),rs=({title:e=document.title,href:t=window.location.href}={})=>`[${e}](${t})`,ss=({newTab:e=!1,active:t=!0,prop:o="href"}={})=>r=>ns(r[o],{newTab:e,active:t}),ns=(e,{newTab:t=!1,active:o=!0}={})=>{t?Qr("openLink",{tab:{tabbed:!0,active:o},url:e instanceof URL?e.href:e}):window.location.assign(e)},is=(e,t)=>{os(e,"mousedown"),es.scroll(t)},as=(e,t)=>{console.debug(e,t);const o="'"!==e,r=e=>()=>{u.RUNTIME("openLink",{tab:{tabbed:o},url:e})};for(const[s,n]of Object.entries(t))console.debug(s,n,`${e}${s}`,`qmark: ${n}`),u.mapkey(`${e}${s}`,`qmark: ${n}`,r(n))},cs={goParent:()=>{const e=document.querySelector(".navs>a[href^='item']");e&&ns(e.href)},collapseNextComment:()=>{const e=Array.from(document.querySelectorAll("a.togg")).filter((e=>"[–]"===e.innerText&&Fr(e)));e.length>0&&e[0].click()},goPage:(e=1)=>{let t;try{t=new URL(window.location.href)}catch(n){return}let o=t.searchParams.get("p");null!==o&&""!==o||(o="1");const r=parseInt(o,10);if(Number.isNaN(r))return;const s=r+e;s<1||(t.searchParams.set("p",s),ns(t.href,{newTab:!0}))},openLinkAndComments:e=>{const t=e.querySelector(".titleline>a").href,o=e.nextElementSibling.querySelector("a[href^='item']:not(.titlelink)").href;ns(o,{newTab:!0}),ns(t,{newTab:!0})}},{Hints:ls,Front:ps,Clipboard:ds,tabOpenLink:us,RUNTIME:ms}=u,gs={openExternal:()=>{ls.create("ul[class^='postsList_'] > li > div[class^='item_']",(e=>ns(e.querySelector("div[class^='meta_'] > div[class^='actions_'] > div[class^='minorActions_'] > a:nth-child(1)").href,{newTab:!0})))}},hs={openUser:()=>{Gr([].concat([...document.querySelectorAll("a[role='link'] img[src^='https://pbs.twimg.com/profile_images']")].map((e=>e.closest("a"))),[...document.querySelectorAll("a[role='link']")].filter((e=>e.text.match(/^@/)))))}},{Hints:bs,Front:fs,Clipboard:ws,tabOpenLink:ys,RUNTIME:ks,util:vs}=u,Ts={copyDID:()=>{Gr("img[src*='/did:plc:']",(e=>{const[t,o]=e.src.match("/(did:.*)/");o&&ws.write(o)}))},copyPostID:()=>{Gr('a[href*="/post/"]',(e=>{const[t,o]=e.pathname.match(/^\/profile\/[^/]+\/post\/(\w+)/);o&&ws.write(o)}))}},_s={openKagiInGoogle:()=>{location.href.startsWith("https://kagi.com/search?")&&(location.href=`https://www.google.com/search?q=${new URL(location.href).searchParams.get("q")}`)}},Es={toggleSimple:()=>{const e=new URL(window.location.href);e.hostname=e.hostname.split(".").map(((e,t)=>0===t?"simple"===e?"":"simple":e)).filter((e=>""!==e)).join("."),ns(e.href)},viewWikiRank:()=>{const e=document.location.hostname.split("."),t=e.length>2&&"www"!==e[0]?e[0]:"en",o=document.location.pathname.split("/");if(o.length<3||"wiki"!==o[1])return;const r=o.slice(2).join("/");ns(`https://wikirank.net/${t}/${r}`,{newTab:!0})},markdownSummary:()=>`> [!wiki]\n> ${[e=>[...e.querySelectorAll("sup")].map((e=>e.remove())),e=>[...e.querySelectorAll("b")].forEach((e=>{e.innerText=`**${e.innerText}**`})),e=>[...e.querySelectorAll("i")].forEach((e=>{e.innerText=`_${e.innerText}_`}))].reduce(((e,t)=>(t(e),e)),document.querySelector("#mw-content-text p:not([class]):not([id])").cloneNode(!0)).innerText.trim()}\n>\n> — ${rs()}`},{Hints:Ss}=u,xs={viewProduct:()=>{const e=/^([-\w]+[.])*amazon.\w+$/,t=/^(?:.*\/)*(?:dp|gp\/product)(?:\/(\w{10})).*/,o={};document.querySelectorAll("a[href]").forEach((r=>{const s=new URL(r.href);if(0===s.hash.length&&e.test(s.hostname)){const e=t.exec(s.pathname);if(null===e||2!==e.length)return;if(!((e,t)=>{var o,r,s,n=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth;return r=n,s=Dr(o=e)?1:4,(r=r||o.getBoundingClientRect()).width>s&&r.height>s&&n.top<i&&n.bottom>0&&n.left<a&&n.right>0})(r))return;const n=e[1];if(void 0!==o[n]&&!(0===o[n].text.trim().length&&r.text.trim().length>0))return;o[n]=r}})),Ss.create(Object.values(o),Ss.dispatchMouseClick)},yankAsin:()=>{Ss.create(".xtaqv-copy",(function(e){void 0!==clickedElement&&clickedElement.removeAttribute("style");const t=e.closest(".xtaqv-root");clickedElement=t,t.setAttribute("style","background-color: #BFE6B1 !important"),u.Clipboard.write(e.textContent)}))}};function Os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var As={};const Ps=["300","302","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","425","426","427","428","429","430","431","500","501","502","503","504","505","506","507","508","509","510","511","693","694","695","900","about","account","admin","advisories","anonymous","any","api","apps","attributes","auth","billing","blob","blog","bounty","branches","business","businesses","c","cache","careers","case-studies","categories","central","certification","changelog","chat","cla","cloud","codereview","collection","collections","comments","commit","commits","companies","compare","contact","contributing","cookbook","copilot","coupons","customer","customer-stories","customers","dashboard","dashboard-feed","dashboards","design","develop","developer","diff","discover","discussions","downloads","downtime","editor","editors","edu","education","enterprise","events","explore","featured","features","files","fixtures","forked","garage","ghost","gist","gists","graphs","groups","guide","guides","help","help-wanted","home","hooks","hosting","hovercards","identity","images","inbox","individual","info","integration","interfaces","introduction","invalid-email-address","investors","issues","jobs","join","journal","journals","lab","labs","languages","launch","layouts","learn","legal","library","linux","listings","lists","login","logos","logout","mac","maintenance","malware","man","marketplace","mention","mentioned","mentioning","mentions","migrating","milestones","mine","mirrors","mobile","navigation","network","new","news","none","nonprofit","nonprofits","notices","notifications","oauth","offer","open-source","organisations","organizations","orgs","pages","partners","payments","personal","plans","plugins","popular","popularity","posts","press","preview","pricing","professional","projects","pulls","raw","readme","recommendations","redeem","releases","render","reply","repositories","resources","restore","revert","save-net-neutrality","saved","scraping","search","security","services","sessions","settings","shareholders","shop","showcases","signin","signup","site","socials","spam","sponsors","ssh","staff","starred","stars","static","status","statuses","storage","store","stories","styleguide","subscriptions","suggest","suggestion","suggestions","support","suspended","talks","teach","teacher","teachers","teaching","team","teams","ten","terms","timeline","topic","topics","tos","tour","train","training","translations","tree","trending","undefined","updates","username","users","visualization","w","watching","wiki","wikis","windows","works-with","www0","www1","www2","www3","www4","www5","www6","www7","www8","www9"],Rs={avatars:{reserved:!0,taken:!0,typical:!0,included:!1},assets:{reserved:!0,taken:!0,typical:!0,included:!1},bookmarks:{reserved:!0,taken:!0,typical:!0,included:!1},checks:{reserved:!0,taken:!0,typical:!0,included:!1},conversations:{reserved:!0,taken:!0,typical:!0,included:!1},labels:{reserved:!0,taken:!0,typical:!0,included:!1},media:{reserved:!0,taken:!0,typical:!0,included:!1},nodes:{reserved:!0,taken:!0,typical:!0,included:!1},owners:{reserved:!0,taken:!0,typical:!0,included:!1},page:{reserved:!0,taken:!0,typical:!0,included:!1},registry:{reserved:!0,taken:!0,typical:!0,included:!1},seats:{reserved:!0,taken:!0,typical:!0,included:!1},shared:{reserved:!0,taken:!0,typical:!0,included:!1},tasks:{reserved:!0,taken:!0,typical:!0,included:!1},uploads:{reserved:!0,taken:!0,typical:!0,included:!1},account:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/settings/profile",included:!0},apps:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/marketplace",included:!0},blog:{reserved:!0,taken:!1,typical:!1,redirect:"https://blog.github.com",included:!0},c:{reserved:!0,taken:!1,typical:!1,redirect:"https://support.github.com/",included:!0},contact:{reserved:!0,taken:!1,typical:!1,redirect:"https://support.github.com/",included:!0},contributing:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/about/careers",included:!0},customer:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/business/customers",included:!0},customers:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/business/customers",included:!0},developer:{reserved:!0,taken:!1,typical:!1,redirect:"https://developer.github.com",included:!0},edu:{reserved:!0,taken:!1,typical:!1,redirect:"https://education.github.com",included:!0},guides:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com",included:!0},help:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com",included:!0},launch:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/search",included:!0},mac:{reserved:!0,taken:!1,typical:!1,redirect:"https://desktop.github.com",included:!0},mirrors:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com/articles/about-github-mirrors/",included:!0},pages:{reserved:!0,taken:!1,typical:!1,redirect:"https://pages.github.com",included:!0},plans:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/pricing",included:!0},press:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/about/press",included:!0},readme:{reserved:!0,taken:!1,typical:!1,included:!0},repositories:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/trending",included:!0},resources:{reserved:!0,taken:!1,typical:!1,redirect:"https://resources.github.com",included:!0},security:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com/articles/github-security/",included:!0},settings:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/settings/profile",included:!0},signup:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/join",included:!0},terms:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com/articles/github-terms-of-service/",included:!0},topic:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com/topics",included:!0},tos:{reserved:!0,taken:!1,typical:!1,redirect:"https://help.github.com/articles/github-terms-of-service/",included:!0},training:{reserved:!0,taken:!1,typical:!1,redirect:"https://services.github.com",included:!0},users:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com",included:!0},wiki:{reserved:!0,taken:!1,typical:!1,redirect:"https://github.com",included:!0},windows:{reserved:!0,taken:!1,typical:!1,redirect:"https://desktop.github.com",included:!0},advisories:{reserved:!0,taken:!0,typical:!1,included:!0,notes:"GitHub Advisory Database"},collections:{reserved:!0,taken:!1,typical:!1,included:!0,notes:"Curated lists of GitHub repos"},"dashboard-feed":{reserved:!0,taken:!0,typical:!1,included:!0,notes:"GitHub dashboard feed"},hovercards:{reserved:!0,taken:!1,typical:!1,included:!0,notes:"HTTP ERROR 406"},inbox:{reserved:!0,taken:!0,typical:!1,redirect:"https://github.com/410",included:!0,notes:"410 ERROR"},"invalid-email-address":{reserved:!0,taken:!0,typical:!1,included:!0,notes:"HTTP ERROR 404"},suggestions:{reserved:!0,taken:!1,typical:!1,included:!0},suspended:{reserved:!0,taken:!0,typical:!1,redirect:"https://github.com",included:!0,notes:"Page behaviour depends on whether you're logged in or if your account is actually suspended"},"case-studies":{reserved:!1,taken:!0,typical:!1,included:!0},watching:{reserved:!1,taken:!0,typical:!1,included:!0},"save-net-neutrality":{reserved:!1,taken:!0,typical:!1,included:!0},ghost:{reserved:!1,taken:!0,typical:!0,included:!0},status:{reserved:!0,taken:!1,typical:!1,included:!0}};var Cs;const Gs=Os(function(){if(Cs)return As;Cs=1;const e=Ps,t=Rs;return As.all=e,As.check=t=>(t=(t||"").toString().toLowerCase(),e.includes(t)),As.oddballs=e=>e&&e in t?t[e]:Object.keys(t).sort(),As}());var $s,Fs,Us,Ls,Ds,qs,Is,js,Ns,zs,Hs,Ms;function Bs(){return Fs?$s:(Fs=1,$s=function(e,t){!0===t&&(t=0);var o="";if("string"==typeof e)try{o=new URL(e).protocol}catch(s){}else e&&e.constructor===URL&&(o=e.protocol);var r=o.split(/\:|\+/).filter(Boolean);return"number"==typeof t?r[t]:r})}function Ws(){if(zs)return Ns;zs=1;var e=function(){if(qs)return Ds;qs=1;var e,t=(e=function(){if(Ls)return Us;Ls=1;var e=Bs();return Us=function(t){var o={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:t,query:{},parse_failed:!1};try{var r=new URL(t);o.protocols=e(r),o.protocol=o.protocols[0],o.port=r.port,o.resource=r.hostname,o.host=r.host,o.user=r.username||"",o.password=r.password||"",o.pathname=r.pathname,o.hash=r.hash.slice(1),o.search=r.search.slice(1),o.href=r.href,o.query=Object.fromEntries(r.searchParams)}catch(s){o.protocols=["file"],o.protocol=o.protocols[0],o.port="",o.resource="",o.user="",o.pathname="",o.hash="",o.search="",o.href=t,o.query={},o.parse_failed=!0}return o}}())&&"object"==typeof e&&"default"in e?e:{default:e},o={};const r=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));var s=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){if(this instanceof e){var o=[null];return o.push.apply(o,arguments),new(Function.bind.apply(t,o))}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),o}(Object.freeze({__proto__:null,default:function(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const o=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!o)throw new Error(`Invalid URL: ${e}`);let{type:r,data:s,hash:n}=o.groups;const i=r.split(";");n=t?"":n;let a=!1;"base64"===i[i.length-1]&&(i.pop(),a=!0);const c=(i.shift()||"").toLowerCase(),l=[...i.map((e=>{let[t,o=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(o=o.toLowerCase(),"us-ascii"===o)?"":`${t}${o?`=${o}`:""}`})).filter(Boolean)];return a&&l.push("base64"),(l.length>0||c&&"text/plain"!==c)&&l.unshift(c),`data:${l.join(";")},${a?s.trim():s}${n?`#${n}`:""}`})(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");const o=e.startsWith("//");!o&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const s=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===s.protocol&&(s.protocol="http:"),t.forceHttps&&"http:"===s.protocol&&(s.protocol="https:"),t.stripAuthentication&&(s.username="",s.password=""),t.stripHash?s.hash="":t.stripTextFragment&&(s.hash=s.hash.replace(/#?:~:text.*?$/i,"")),s.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,o="";for(;;){const r=e.exec(s.pathname);if(!r)break;const n=r[0],i=r.index;o+=s.pathname.slice(t,i).replace(/\/{2,}/g,"/"),o+=n,t=i+n.length}o+=s.pathname.slice(t,s.pathname.length).replace(/\/{2,}/g,"/"),s.pathname=o}if(s.pathname)try{s.pathname=decodeURI(s.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=s.pathname.split("/");const o=e[e.length-1];r(o,t.removeDirectoryIndex)&&(e=e.slice(0,-1),s.pathname=e.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const i of[...s.searchParams.keys()])r(i,t.removeQueryParameters)&&s.searchParams.delete(i);if(!0===t.removeQueryParameters&&(s.search=""),t.sortQueryParameters){s.searchParams.sort();try{s.search=decodeURIComponent(s.search)}catch{}}t.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,""));const n=e;return e=s.toString(),t.removeSingleSlash||"/"!==s.pathname||n.endsWith("/")||""!==s.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===s.pathname)&&""===s.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),o&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}}));Object.defineProperty(o,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(s),a=c(t.default);function c(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e){var o=new Error(e);throw o.subject_url=t,o};"string"==typeof t&&t.trim()||r("Invalid url."),t.length>e.MAX_INPUT_LENGTH&&r("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),o&&("object"!==(void 0===o?"undefined":n(o))&&(o={stripHash:!1}),t=(0,i.default)(t,o));var s=(0,a.default)(t);if(s.parse_failed){var c=s.href.match(/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/);c?(s.protocols=["ssh"],s.protocol="ssh",s.resource=c[2],s.host=c[2],s.user=c[1],s.pathname="/"+c[3],s.parse_failed=!1):r("URL parsing failed.")}return s};l.MAX_INPUT_LENGTH=2048;var p=o.default=l;return Ds=p}(),t=function(){if(js)return Is;js=1;var e=Bs();return Is=function t(o){if(Array.isArray(o))return-1!==o.indexOf("ssh")||-1!==o.indexOf("rsync");if("string"!=typeof o)return!1;var r=e(o);if(o=o.substring(o.indexOf("://")+3),t(r))return!0;var s=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!o.match(s)&&o.indexOf("@")<o.indexOf(":")}}();return Ns=function(o){var r=e(o);return r.token="","x-oauth-basic"===r.password?r.token=r.user:"x-token-auth"===r.user&&(r.token=r.password),t(r.protocols)||0===r.protocols.length&&t(o)?r.protocol="ssh":r.protocols.length?r.protocol=r.protocols[0]:(r.protocol="file",r.protocols=["file"]),r.href=r.href.replace(/\/$/,""),r}}const Vs=Os(function(){if(Ms)return Hs;Ms=1;var e=Ws();function t(o,r){if(r=r||[],"string"!=typeof o)throw new Error("The url must be a string.");if(!r.every((function(e){return"string"==typeof e})))throw new Error("The refs should contain only strings");/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i.test(o)&&(o="https://github.com/"+o);var s=e(o),n=s.resource.split("."),i=null;switch(s.toString=function(e){return t.stringify(this,e)},s.source=n.length>2?n.slice(1-n.length).join("."):s.source=s.resource,s.git_suffix=/\.git$/.test(s.pathname),s.name=decodeURIComponent((s.pathname||s.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),s.owner=decodeURIComponent(s.user),s.source){case"git.cloudforge.com":s.owner=s.user,s.organization=n[0],s.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===s.resource){4===(i=s.name.split("/")).length&&(s.organization=i[1],s.owner=i[2],s.name=i[3],s.full_name=i[2]+"/"+i[3]);break}2===(i=s.name.split("/")).length?(s.owner=i[1],s.name=i[1],s.full_name="_git/"+s.name):3===i.length?(s.name=i[2],"DefaultCollection"===i[0]?(s.owner=i[2],s.organization=i[0],s.full_name=s.organization+"/_git/"+s.name):(s.owner=i[0],s.full_name=s.owner+"/_git/"+s.name)):4===i.length&&(s.organization=i[0],s.owner=i[1],s.name=i[3],s.full_name=s.organization+"/"+s.owner+"/_git/"+s.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===s.resource){4===(i=s.name.split("/")).length&&(s.organization=i[1],s.owner=i[2],s.name=i[3]);break}5===(i=s.name.split("/")).length?(s.organization=i[0],s.owner=i[1],s.name=i[4],s.full_name="_git/"+s.name):3===i.length?(s.name=i[2],"DefaultCollection"===i[0]?(s.owner=i[2],s.organization=i[0],s.full_name=s.organization+"/_git/"+s.name):(s.owner=i[0],s.full_name=s.owner+"/_git/"+s.name)):4===i.length&&(s.organization=i[0],s.owner=i[1],s.name=i[3],s.full_name=s.organization+"/"+s.owner+"/_git/"+s.name),s.query&&s.query.path&&(s.filepath=s.query.path.replace(/^\/+/g,"")),s.query&&s.query.version&&(s.ref=s.query.version.replace(/^GB/,""));break;default:var a=(i=s.name.split("/")).length-1;if(i.length>=2){var c=i.indexOf("-",2),l=i.indexOf("blob",2),p=i.indexOf("tree",2),d=i.indexOf("commit",2),u=i.indexOf("issues",2),m=i.indexOf("src",2),g=i.indexOf("raw",2),h=i.indexOf("edit",2);a=c>0?c-1:l>0&&p>0?Math.min(l-1,p-1):l>0?l-1:u>0?u-1:p>0?p-1:d>0?d-1:m>0?m-1:g>0?g-1:h>0?h-1:a,s.owner=i.slice(0,a).join("/"),s.name=i[a],d&&u<0&&(s.commit=i[a+2])}s.ref="",s.filepathtype="",s.filepath="";var b=i.length>a&&"-"===i[a+1]?a+1:a;i.length>b+2&&["raw","src","blob","tree","edit"].indexOf(i[b+1])>=0&&(s.filepathtype=i[b+1],s.ref=i[b+2],i.length>b+3&&(s.filepath=i.slice(b+3).join("/"))),s.organization=s.owner}s.full_name||(s.full_name=s.owner,s.name&&(s.full_name&&(s.full_name+="/"),s.full_name+=s.name)),s.owner.startsWith("scm/")&&(s.source="bitbucket-server",s.owner=s.owner.replace("scm/",""),s.organization=s.owner,s.full_name=s.owner+"/"+s.name);var f,w,y=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(s.pathname);return null!=y&&(s.source="bitbucket-server","users"===y[1]?s.owner="~"+y[2]:s.owner=y[2],s.organization=s.owner,s.name=y[3],(i=y[4].split("/")).length>1&&(["raw","browse"].indexOf(i[1])>=0?(s.filepathtype=i[1],i.length>2&&(s.filepath=i.slice(2).join("/"))):"commits"===i[1]&&i.length>2&&(s.commit=i[2])),s.full_name=s.owner+"/"+s.name,s.query.at?s.ref=s.query.at:s.ref=""),0!==r.length&&s.ref&&(s.ref=(f=s.href,w="",r.forEach((function(e){f.includes(e)&&e.length>w.length&&(w=e)})),w||s.ref),s.filepath=s.href.split(s.ref+"/")[1]),s}return t.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var o,r=e.port?":"+e.port:"",s=e.user||"git",n=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+s+"@"+e.resource+r+"/"+e.full_name+n:s+"@"+e.resource+":"+e.full_name+n;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+s+"@"+e.resource+r+"/"+e.full_name+n;case"http":case"https":return t+"://"+(e.token?"bitbucket.org"===(o=e).source?"x-token-auth:"+o.token+"@":o.token+"@":e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"")+e.resource+r+"/"+function(e){return"bitbucket-server"===e.source?"scm/"+e.full_name:e.full_name.split("/").map((function(e){return encodeURIComponent(e)})).join("/")}(e)+n;default:return e.href}},Hs=t}());function Js(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function Ks(e,t,o,r){if("function"!=typeof o)throw new Error("method for before hook must be a function");return r||(r={}),Array.isArray(t)?t.reverse().reduce(((t,o)=>Ks.bind(null,e,o,t,r)),o)():Promise.resolve().then((()=>e.registry[t]?e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,r)),o)():o(r)))}function Ys(e,t,o,r){const s=r;e.registry[o]||(e.registry[o]=[]),"before"===t&&(r=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))),"after"===t&&(r=(e,t)=>{let o;return Promise.resolve().then(e.bind(null,t)).then((e=>(o=e,s(o,t)))).then((()=>o))}),"error"===t&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))),e.registry[o].push({hook:r,orig:s})}function Zs(e,t,o){if(!e.registry[t])return;const r=e.registry[t].map((e=>e.orig)).indexOf(o);-1!==r&&e.registry[t].splice(r,1)}const Xs=Function.bind,Qs=Xs.bind(Xs);function en(e,t,o){const r=Qs(Zs,null).apply(null,o?[t,o]:[t]);e.api={remove:r},e.remove=r,["before","error","after","wrap"].forEach((r=>{const s=o?[t,r,o]:[t,r];e[r]=e.api[r]=Qs(Ys,null).apply(null,s)}))}const tn=function(){const e={registry:{}},t=Ks.bind(null,e);return en(t,e),t};var on=`octokit-endpoint.js/0.0.0-development ${Js()}`;function rn(e,t){const o=Object.assign({},e);return Object.keys(t).forEach((r=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const o=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&Function.prototype.call(o)===Function.prototype.call(e)}(t[r])?Object.assign(o,{[r]:t[r]}):r in e?o[r]=rn(e[r],t[r]):Object.assign(o,{[r]:t[r]})})),o}function sn(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function nn(e,t,o){var r,s;if("string"==typeof t){let[e,r]=t.split(" ");o=Object.assign(r?{method:e,url:r}:{url:e},o)}else o=Object.assign({},t);o.headers=(s=o.headers)?Object.keys(s).reduce(((e,t)=>(e[t.toLowerCase()]=s[t],e)),{}):{},sn(o),sn(o.headers);const n=rn(e||{},o);return"/graphql"===o.url&&(e&&(null==(r=e.mediaType.previews)?void 0:r.length)&&(n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))),n}var an=/\{[^}]+\}/g;function cn(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function ln(e,t){const o={__proto__:null};for(const r of Object.keys(e))-1===t.indexOf(r)&&(o[r]=e[r]);return o}function pn(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function dn(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function un(e,t,o){return t="+"===e||"#"===e?pn(t):dn(t),o?dn(o)+"="+t:t}function mn(e){return null!=e}function gn(e){return";"===e||"&"===e||"?"===e}function hn(e,t){var o=["+","#",".","/",";","?","&"];return"/"===(e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,r,s){if(r){let e="";const s=[];if(-1!==o.indexOf(r.charAt(0))&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach((function(o){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(o);s.push(function(e,t,o,r){var s=e[o],n=[];if(mn(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),r&&"*"!==r&&(s=s.substring(0,parseInt(r,10))),n.push(un(t,s,gn(t)?o:""));else if("*"===r)Array.isArray(s)?s.filter(mn).forEach((function(e){n.push(un(t,e,gn(t)?o:""))})):Object.keys(s).forEach((function(e){mn(s[e])&&n.push(un(t,s[e],e))}));else{const e=[];Array.isArray(s)?s.filter(mn).forEach((function(o){e.push(un(t,o))})):Object.keys(s).forEach((function(o){mn(s[o])&&(e.push(dn(o)),e.push(un(t,s[o].toString())))})),gn(t)?n.push(dn(o)+"="+e.join(",")):0!==e.length&&n.push(e.join(","))}else";"===t?mn(s)&&n.push(dn(o)):""!==s||"&"!==t&&"?"!==t?""===s&&n.push(""):n.push(dn(o)+"=");return n}(t,e,r[1],r[2]||r[3]))})),e&&"+"!==e){var n=",";return"?"===e?n="&":"#"!==e&&(n=e),(0!==s.length?e:"")+s.join(n)}return s.join(",")}return pn(s)})))?e:e.replace(/\/$/,"")}function bn(e){var t;let o,r=e.method.toUpperCase(),s=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),i=ln(e,["method","baseUrl","url","headers","request","mediaType"]);const a=function(e){const t=e.match(an);return t?t.map(cn).reduce(((e,t)=>e.concat(t)),[]):[]}(s);var c;s=(c=s,{expand:hn.bind(null,c)}).expand(i),/^http/.test(s)||(s=e.baseUrl+s);const l=ln(i,Object.keys(e).filter((e=>a.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),s.endsWith("/graphql")&&(null==(t=e.mediaType.previews)?void 0:t.length))){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(r)?s=function(e,t){const o=/\?/.test(e)?"&":"?",r=Object.keys(t);return 0===r.length?e:e+o+r.map((e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`)).join("&")}(s,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),n["content-type"]||void 0===o||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&void 0===o&&(o=""),Object.assign({method:r,url:s,headers:n},void 0!==o?{body:o}:null,e.request?{request:e.request}:null)}function fn(e,t,o){return bn(nn(e,t,o))}var wn,yn=function e(t,o){const r=nn(t,o),s=fn.bind(null,r);return Object.assign(s,{DEFAULTS:r,defaults:e.bind(null,r),merge:nn.bind(null,r),parse:bn})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":on},mediaType:{format:""}}),kn={},vn=function(){if(wn)return kn;wn=1;const e=function(){};e.prototype=Object.create(null);const t=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,o=/\\([\v\u0020-\u00ff])/gu,r=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,s={type:"",parameters:new e};function n(s){if("string"!=typeof s)throw new TypeError("argument header is required and must be a string");let n=s.indexOf(";");const i=-1!==n?s.slice(0,n).trim():s.trim();if(!1===r.test(i))throw new TypeError("invalid media type");const a={type:i.toLowerCase(),parameters:new e};if(-1===n)return a;let c,l,p;for(t.lastIndex=n;l=t.exec(s);){if(l.index!==n)throw new TypeError("invalid parameter format");n+=l[0].length,c=l[1].toLowerCase(),p=l[2],'"'===p[0]&&(p=p.slice(1,p.length-1),o.test(p)&&(p=p.replace(o,"$1"))),a.parameters[c]=p}if(n!==s.length)throw new TypeError("invalid parameter format");return a}function i(n){if("string"!=typeof n)return s;let i=n.indexOf(";");const a=-1!==i?n.slice(0,i).trim():n.trim();if(!1===r.test(a))return s;const c={type:a.toLowerCase(),parameters:new e};if(-1===i)return c;let l,p,d;for(t.lastIndex=i;p=t.exec(n);){if(p.index!==i)return s;i+=p[0].length,l=p[1].toLowerCase(),d=p[2],'"'===d[0]&&(d=d.slice(1,d.length-1),o.test(d)&&(d=d.replace(o,"$1"))),c.parameters[l]=d}return i!==n.length?s:c}return Object.freeze(s.parameters),Object.freeze(s),kn.default={parse:n,safeParse:i},kn.parse=n,kn.safeParse=i,kn.defaultContentType=s,kn}();class Tn extends Error{constructor(e,t,o){super(e),a(this,"name"),a(this,"status"),a(this,"request"),a(this,"response"),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in o&&(this.response=o.response);const r=Object.assign({},o.request);o.request.headers.authorization&&(r.headers=Object.assign({},o.request.headers,{authorization:o.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),r.url=r.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=r}}async function _n(e){var t,o,r,s,n;const i=(null==(t=e.request)?void 0:t.fetch)||globalThis.fetch;if(!i)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const a=(null==(o=e.request)?void 0:o.log)||console,c=!1!==(null==(r=e.request)?void 0:r.parseSuccessResponseBody),l=function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const o=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&Function.prototype.call(o)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,p=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let d;try{d=await i(e.url,{method:e.method,body:l,redirect:null==(s=e.request)?void 0:s.redirect,headers:p,signal:null==(n=e.request)?void 0:n.signal,...e.body&&{duplex:"half"}})}catch(b){let t="Unknown Error";if(b instanceof Error){if("AbortError"===b.name)throw b.status=500,b;t=b.message,"TypeError"===b.name&&"cause"in b&&(b.cause instanceof Error?t=b.cause.message:"string"==typeof b.cause&&(t=b.cause))}const o=new Tn(t,500,{request:e});throw o.cause=b,o}const u=d.status,m=d.url,g={};for(const[f,w]of d.headers)g[f]=w;const h={url:m,status:u,headers:g,data:""};if("deprecation"in g){const t=g.link&&g.link.match(/<([^>]+)>; rel="deprecation"/),o=t&&t.pop();a.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${g.sunset}${o?`. See ${o}`:""}`)}if(204===u||205===u)return h;if("HEAD"===e.method){if(u<400)return h;throw new Tn(d.statusText,u,{response:h,request:e})}if(304===u)throw h.data=await En(d),new Tn("Not modified",u,{response:h,request:e});if(u>=400)throw h.data=await En(d),new Tn(function(e){if("string"==typeof e)return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}(h.data),u,{response:h,request:e});return h.data=c?await En(d):d.body,h}async function En(e){var t;const o=e.headers.get("content-type");if(!o)return e.text().catch((()=>""));const r=vn.safeParse(o);if("application/json"!==r.type)return r.type.startsWith("text/")||"utf-8"===(null==(t=r.parameters.charset)?void 0:t.toLowerCase())?e.text().catch((()=>"")):e.arrayBuffer().catch((()=>new ArrayBuffer(0)));{let t="";try{return t=await e.text(),JSON.parse(t)}catch(s){return t}}}var Sn=function e(t,o){const r=t.defaults(o);return Object.assign((function(t,o){const s=r.merge(t,o);if(!s.request||!s.request.hook)return _n(r.parse(s));const n=(e,t)=>_n(r.parse(r.merge(e,t)));return Object.assign(n,{endpoint:r,defaults:e.bind(null,r)}),s.request.hook(n,s)}),{endpoint:r,defaults:e.bind(null,r)})}(yn,{headers:{"user-agent":`octokit-request.js/0.0.0-development ${Js()}`}}),xn=class extends Error{constructor(e,t,o){super("Request failed due to following response errors:\n"+o.errors.map((e=>` - ${e.message}`)).join("\n")),a(this,"name","GraphqlResponseError"),a(this,"errors"),a(this,"data"),this.request=e,this.headers=t,this.response=o,this.errors=o.errors,this.data=o.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},On=["method","baseUrl","url","headers","request","query","mediaType"],An=["query","method","url"],Pn=/\/api\/v3\/?$/;function Rn(e,t){const o=e.defaults(t);return Object.assign(((e,t)=>function(e,t,o){if(o){if("string"==typeof t&&"query"in o)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in o)if(An.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const r="string"==typeof t?Object.assign({query:t},o):t,s=Object.keys(r).reduce(((e,t)=>On.includes(t)?(e[t]=r[t],e):(e.variables||(e.variables={}),e.variables[t]=r[t],e)),{}),n=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Pn.test(n)&&(s.url=n.replace(Pn,"/api/graphql")),e(s).then((e=>{if(e.data.errors){const t={};for(const o of Object.keys(e.headers))t[o]=e.headers[o];throw new xn(s,t,e.data)}return e.data.data}))}(o,e,t)),{defaults:Rn.bind(null,o),endpoint:o.endpoint})}Rn(Sn,{headers:{"user-agent":`octokit-graphql.js/0.0.0-development ${Js()}`},method:"POST",url:"/graphql"});var Cn=/^v1\./,Gn=/^ghs_/,$n=/^ghu_/;async function Fn(e){const t=3===e.split(/\./).length,o=Cn.test(e)||Gn.test(e),r=$n.test(e);return{type:"token",token:e,tokenType:t?"app":o?"installation":r?"user-to-server":"oauth"}}async function Un(e,t,o,r){const s=t.endpoint.merge(o,r);return s.headers.authorization=3===(n=e).split(/\./).length?`bearer ${n}`:`token ${n}`,t(s);var n}var Ln=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Fn.bind(null,e),{hook:Un.bind(null,e)})};const Dn="6.1.2",qn=()=>{},In=console.warn.bind(console),jn=console.error.bind(console),Nn=`octokit-core.js/${Dn} ${Js()}`;function zn(e){e.hook.wrap("request",((t,o)=>{e.log.debug("request",o);const r=Date.now(),s=e.request.endpoint.parse(o),n=s.url.replace(o.baseUrl,"");return t(o).then((t=>{const o=t.headers["x-github-request-id"];return e.log.info(`${s.method} ${n} - ${t.status} with id ${o} in ${Date.now()-r}ms`),t})).catch((t=>{var o;const i=(null==(o=t.response)?void 0:o.headers["x-github-request-id"])||"UNKNOWN";throw e.log.error(`${s.method} ${n} - ${t.status} with id ${i} in ${Date.now()-r}ms`),t}))}))}function Hn(e,t,o){const r="function"==typeof t?t.endpoint(o):e.request.endpoint(t,o),s="function"==typeof t?t:e.request,n=r.method,i=r.headers;let a=r.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,o=e.data.repository_selection,r=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const s=Object.keys(e.data)[0],n=e.data[s];return e.data=n,void 0!==t&&(e.data.incomplete_results=t),void 0!==o&&(e.data.repository_selection=o),e.data.total_count=r,e}(await s({method:n,url:a,headers:i}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function Mn(e,t,o,r){return"function"==typeof o&&(r=o,o=void 0),Bn(e,[],Hn(e,t,o)[Symbol.asyncIterator](),r)}function Bn(e,t,o,r){return o.next().then((s=>{if(s.done)return t;let n=!1;return t=t.concat(r?r(s.value,(function(){n=!0})):s.value.data),n?t:Bn(e,t,o,r)}))}function Wn(e){return{paginate:Object.assign(Mn.bind(null,e),{iterator:Hn.bind(null,e)})}}zn.VERSION="5.3.1",Object.assign(Mn,{iterator:Hn}),Wn.VERSION="0.0.0-development";const Vn=new Map;for(const[r,$]of Object.entries({actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}}))for(const[e,t]of Object.entries($)){const[o,s,n]=t,[i,a]=o.split(/ /),c=Object.assign({method:i,url:a},s);Vn.has(r)||Vn.set(r,new Map),Vn.get(r).set(e,{scope:r,methodName:e,endpointDefaults:c,decorations:n})}const Jn={has:({scope:e},t)=>Vn.get(e).has(t),getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty:(e,t,o)=>(Object.defineProperty(e.cache,t,o),!0),deleteProperty:(e,t)=>(delete e.cache[t],!0),ownKeys:({scope:e})=>[...Vn.get(e).keys()],set:(e,t,o)=>e.cache[t]=o,get({octokit:e,scope:t,cache:o},r){if(o[r])return o[r];const s=Vn.get(t).get(r);if(!s)return;const{endpointDefaults:n,decorations:i}=s;return o[r]=i?function(e,t,o,r,s){const n=e.request.defaults(r);return Object.assign((function(...r){let i=n.endpoint.merge(...r);if(s.mapToData)return i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0}),n(i);if(s.renamed){const[r,n]=s.renamed;e.log.warn(`octokit.${t}.${o}() has been renamed to octokit.${r}.${n}()`)}if(s.deprecated&&e.log.warn(s.deprecated),s.renamedParameters){const i=n.endpoint.merge(...r);for(const[r,n]of Object.entries(s.renamedParameters))r in i&&(e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${o}()". Use "${n}" instead`),n in i||(i[n]=i[r]),delete i[r]);return n(i)}return n(...r)}),n)}(e,t,r,n,i):e.request.defaults(n),o[r]}};function Kn(e){const t=function(e){const t={};for(const o of Vn.keys())t[o]=new Proxy({octokit:e,scope:o,cache:{}},Jn);return t}(e);return{...t,rest:t}}Kn.VERSION="13.2.6";const Yn=(s=class{constructor(e={}){a(this,"request"),a(this,"graphql"),a(this,"log"),a(this,"hook"),a(this,"auth");const t=new tn,o={baseUrl:Sn.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var r;if(o.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Nn}`:Nn,e.baseUrl&&(o.baseUrl=e.baseUrl),e.previews&&(o.mediaType.previews=e.previews),e.timeZone&&(o.headers["time-zone"]=e.timeZone),this.request=Sn.defaults(o),this.graphql=(r=this.request,Rn(r,{method:"POST",url:"/graphql"})).defaults(o),this.log=Object.assign({debug:qn,info:qn,warn:In,error:jn},e.log),this.hook=t,e.authStrategy){const{authStrategy:o,...r}=e,s=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap("request",s.hook),this.auth=s}else if(e.auth){const o=Ln(e.auth);t.wrap("request",o.hook),this.auth=o}else this.auth=async()=>({type:"unauthenticated"});const s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}static defaults(e){return class extends(this){constructor(...t){const o=t[0]||{};super("function"!=typeof e?Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null):e(o))}}}static plugin(...e){var t;const o=this.plugins;return a(t=class extends(this){},"plugins",o.concat(e.filter((e=>!o.includes(e))))),t}},a(s,"VERSION",Dn),a(s,"plugins",[]),s).plugin(zn,Kn,Wn).defaults({userAgent:"octokit-rest.js/21.0.2"}),{tabOpenLink:Zn,Front:Xn,Hints:Qn,Normal:ei,RUNTIME:ti,Clipboard:oi}=u,ri=new Yn({auth:"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"}),si=()=>{const e=new URL(window.location.href);if(!e.href.includes("search"))return;let t;return"github.com"===e.hostname&&e.pathname.startsWith("/search")?t=[...document.querySelectorAll('a[data-testid="link-to-search-result"]')].map((e=>e.href.split("#")[0])):"gist.github.com"===e.hostname&&e.pathname.startsWith("/search")&&(t=(()=>{const e=[...document.querySelectorAll(".gist-snippet div.d-inline-block a:nth-child(2)")].map((e=>e.href.split("#")[0]));return console.dir(e,{depth:null}),e})()),t},ni={extractAllLinksFromSearch:()=>{const e=si(),t=e.map((e=>`- ${e}`)).join("\n");oi.write(t),Xn.showBanner(`Copied ${e.length} links to the clipboard.`)},extractAllRawLinksFromSearch:async()=>{const e=si(),t=await Promise.all(e.map((e=>(async e=>{if("gist.github.com"===new URL(e).hostname)return await(async e=>{const t=e.split("/").pop(),o=await ri.gists.get({gist_id:t});return console.dir(o,{depth:null}),Object.values(o.data.files).map((e=>e.raw_url)).join("\n")})(e);const t=Vs(e);return console.dir(t,{depth:null}),`https://cdn.githubraw.com/${t.full_name}/${t.ref}/${t.filepath}`})(e))));oi.write(t.join("\n")),Xn.showBanner(`Copied ${t.length} raw links to the clipboard.`)},extractAllRepoSlugsFromSearch:()=>{if("gist.github.com"===new URL(window.location.href).hostname)return;const e=si().map((e=>getGithubRepoSlug(e))),t=[...new Set(e)];oi.write(t.join("\n")),Xn.showBanner(`Copied ${t.length} unique repo slugs to the clipboard.`)},nextPage:()=>{const e=document.querySelector('a[aria-label="Next Page"]');e&&e.click()},previousPage:()=>{const e=document.querySelector('a[aria-label="Previous Page"]');e&&e.click()},watch:()=>{const e=document.querySelector('button[aria-label="Watch"]');e&&e.click()},expandAllInFeed:()=>{window.location.href.includes("dashboard")&&window.location.href.includes("feed")&&[...document.querySelectorAll("svg[aria-label=Expand]")].map((e=>e.parentElement.parentElement)).forEach((e=>e.click()))},viewSourceGraphInSameTab:()=>ni.viewSourceGraph(!1),star:({toggle:e=!1}={})=>async()=>{var t;const o=e=>"none"===window.getComputedStyle(e).display||!!e.parentElement&&o(e.parentElement),r=[...document.querySelectorAll("div.starring-container")].filter((e=>!o(e)));let s;switch(r.length){case 0:return;case 1:[s]=r;break;default:try{s=await Gr(r,{action:null})}catch(d){return}}const n=(null==(t=s.parentElement.parentElement)?void 0:t.matches("ul.pagehead-actions"))?window.location.pathname:new URL(s.parentElement.querySelector("form").action).pathname,i=s.classList.contains("on"),a=n.slice(1).split("/").slice(0,2).join("/");let c="★",l="starred",p="is";(i&&e||!i&&!e)&&(l=`un${l}`,c="☆"),e&&(p="has been",s.querySelector(i?".starred button, button.starred":".unstarred button, button.unstarred").click()),Xn.showBanner(`${c} Repository ${a} ${p} ${l}!`)},parseRepoV2:(e=window.location.href,t=!1)=>Vs(e),parseRepo:(e=window.location.href,t=!1)=>{let o;try{o=e instanceof URL?e:new URL(e)}catch(a){o=new URL(`https://github.com/${e}`)}const[r,s,...n]=o.pathname.split("/").filter((e=>""!==e)),i=0===n.length;return["github.com","gist.github.com","raw.githubusercontent.com"].includes(o.hostname)&&"string"==typeof r&&r.length>0&&"string"==typeof s&&s.length>0&&(i||!1===t)&&/^([a-zA-Z0-9]+-?)+$/.test(r)&&!Gs.check(r)?{type:"repo",user:r,repo:s,owner:r,name:s,href:e,url:o,repoBase:`${r}/${s}`,repoRoot:i,repoPath:n}:null},parseUser:(e=window.location.href,t=!1)=>{const o=e instanceof URL?e:new URL(e),[r,...s]=o.pathname.split("/").filter((e=>""!==e)),n=0===s.length;return o.origin===window.location.origin&&"string"==typeof r&&r.length>0&&(!1===t||0===s.length)&&/^([a-zA-Z0-9]+-?)+$/.test(r)&&!Gs.check(r)?{type:"user",name:r,user:r,href:e,url:o,userRoot:n,userPath:s}:null},parseFile:(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[o,r,s,n,...i]=t.pathname.split("/").filter((e=>""!==e));if(!(t.origin===window.location.origin&&"string"==typeof o&&o.length>0&&"string"==typeof r&&r.length>0&&"string"==typeof s&&("blob"===s||"tree"===s)&&"string"==typeof n&&n.length>0&&/^([a-zA-Z0-9]+-?)+$/.test(o))||Gs.check(o))return null;const a={type:"file",user:o,repo:r,pathType:s,commitHash:n,isDirectory:"tree"===s,href:e,url:t,filePath:i,repoBase:`/${o}/${r}`};return a.rawUrl=a.isDirectory?null:`https://raw.githubusercontent.com/${a.user}/${a.repo}/${a.commitHash}/${a.filePath.join("/")}`,a},parseCommit:(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[o,r,s,n]=t.pathname.split("/").filter((e=>""!==e));return t.origin===window.location.origin&&"string"==typeof o&&o.length>0&&"string"==typeof r&&r.length>0&&"string"==typeof s&&"commit"===s&&"string"==typeof n&&n.length>0&&/^([a-zA-Z0-9]+-?)+$/.test(o)&&!Gs.check(o)?{type:"commit",user:o,repo:r,commitHash:n,href:e,url:t}:null},parseIssue:(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[o,r,s,...n]=t.pathname.split("/").filter((e=>""!==e)),i=0===n.length;return t.origin===window.location.origin&&"string"==typeof o&&o.length>0&&"string"==typeof r&&r.length>0&&"issues"===s&&/^([a-zA-Z0-9]+-?)+$/.test(o)&&!Gs.check(o)?{href:e,url:t,...i?{type:"issues",issuePath:n}:{type:"issue",number:n[0],issuePath:n}}:null},parsePull:(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[o,r,s,...n]=t.pathname.split("/").filter((e=>""!==e)),i=0===n.length;return t.origin===window.location.origin&&"string"==typeof o&&o.length>0&&"string"==typeof r&&r.length>0&&/^pulls?$/.test(s)&&/^([a-zA-Z0-9]+-?)+$/.test(o)&&!Gs.check(o)?{href:e,url:t,...i?{type:"pulls",pullPath:n}:{type:"pull",number:n[0],pullPath:n}}:null},isUser:(e=window.location.href,t=!0)=>null!==ni.parseUser(e,t),isRepo:(e=window.location.href,t=!0)=>null!==ni.parseRepo(e,t),isFile:(e=window.location.href)=>null!==ni.parseFile(e),isCommit:(e=window.location.href)=>null!==ni.parseCommit(e),isIssue:(e=window.location.href)=>null!==ni.parseIssue(e),isPull:(e=window.location.href)=>null!==ni.parsePull(e),openRepo:()=>$r((e=>ni.isRepo(e.href))),openUser:()=>$r((e=>ni.isUser(e.href))),openFile:()=>$r((e=>ni.isFile(e.href))),openCommit:()=>$r((e=>ni.isCommit(e.href))),openIssue:()=>$r((e=>ni.isIssue(e.href))),openPull:()=>$r((e=>ni.isPull(e.href))),openPage:e=>ns(`https://github.com/${e}`),openRepoPage:e=>{const t=ni.parseRepoV2();null!==t&&ns(`${t.href}/${e}`)},openRepoOwner:()=>{const e=ni.parseRepoV2();null!==e&&ni.openPage(`${e.owner}`)},fetchStars:async(e="nicoandmee")=>{let t=window.ky;const o=await t.get(`https://api.github.com/users/${e}/starred`);A.log({raw:o.data})},openGithubPagesRepo:()=>{const e=window.location.hostname.split(".")[0],t=window.location.pathname.split("/")[1]??"";ni.openPage(`${e}/${t}`)},openSourceFile:()=>{const e=window.location.pathname.split("/");ni.openPage(`${[...e.slice(1,3),"tree",...e.slice(3)].join("/")}`)},openProfile:()=>{var e;return ni.openPage(`${null==(e=document.querySelector("meta[name='user-login']"))?void 0:e.content}`)},toggleLangStats:()=>{var e;return null==(e=document.querySelector(".repository-lang-stats-graph"))?void 0:e.click()},goParent:()=>{const e=window.location.pathname.split("/").filter((e=>""!==e)),t=(()=>{const[t,o,r]=e;switch(e.length){case 0:return!1;case 4:switch(r){case"blob":case"tree":return[t,o];case"pull":return[t,o,"pulls"]}break;case 5:if("blob"===r)return[t,o]}return e.slice(0,e.length-1)})();if(!1!==t){const e=`${window.location.origin}/${t.join("/")}`;ns(e)}},viewSourceGraph:(e=!1)=>{const t=new URL("https://sourcegraph.com/github.com");let o=null;if(null!==(o=ni.parseFile(window.location.href))){const e=o.filePath.join("/");if(t.pathname+=`/${o.user}/${o.repo}@${o.commitHash}/-/${o.pathType}/${e}`,""!==window.location.hash)t.hash=window.location.hash;else if(!Fr(document.querySelector("#L1")))for(const o of document.querySelectorAll(".js-line-number"))if(Fr(o)){t.hash=o.id;break}}else null!==(o=ni.parseCommit(window.location.href))?t.pathname+=`/${o.user}/${o.repo}@${o.commitHash}`:null!==(o=ni.parseRepo(window.location.href))?t.pathname+=`/${o.user}/${o.repo}`:t.pathname="";ns(t.href,{newTab:!e})},openInDev:({newTab:e=!1}={})=>{const t=new URL(window.location.href);t.hostname="github.dev",ns(t.href,{newTab:e})},selectFile:async({files:e=!0,directories:t=!0}={})=>{if(!e&&!t)throw new Error("At least one of 'files' or 'directories' must be true");const o=o=>o&&!(!t&&o.isDirectory||!e&&!o.isDirectory);let r=ni.parseFile();if(o(r))return r;if(null===ni.parseRepo())throw new Error("Not a repository");const s=$r((e=>{const t=ni.parseFile(e.href);return t&&!1===t.isDirectory}),null);if(r=ni.parseFile(s.href),!o(r))throw new Error("Not a file");return r},openFileFromClipboard:async({newTab:e=!0}={})=>{const t=await navigator.clipboard.readText();if("string"!=typeof t||0===t.length)return;const o=window.location.href,r={user:null,repo:null,commitHash:"master"},s=ni.parseFile(o);if(null!==s)r.user=s.user,r.repo=s.repo,r.commitHash=s.commitHash;else{const e=ni.parseCommit(o);if(null!==e)r.user=e.user,r.repo=e.repo,r.commitHash=e.commitHash;else{const e=ni.parseRepo(o);if(null!==e)return;r.user=e.user,r.repo=e.repo}}ns(`https://github.com/${r.user}/${r.repo}/tree/${r.commitHash}/${t}`,{newTab:e})},viewGodoc:()=>{const e=new URL(`https://godoc.org/${vr({count:2,domain:!0})}`);console.debug("viewGodoc",e),ns(e.href,{newTab:!0})},changeSearchSorting:(e="best")=>{if(!window.location.href.includes("/search"))return;const t=new URL(window.location.href);t.searchParams.set("s",e),window.location.href=t.toString()},addRepositoryToList:()=>{let e=document.querySelector('summary[aria-label="Add this repository to a list"]');e&&e.click()},viewTopicOnSourceGraph:()=>{if(!window.location.pathname.includes("/topics/"))return;const e=window.location.pathname.split("/").pop();console.debug(e);const t=`https://sourcegraph.com/search?q=topic:${e}`;console.debug("viewTopicOnSourceGraph",t,{href:window.location.href}),ns(t,{newTab:!0})},viewDependencyGraph:()=>{const e=actions.gh.parseRepo();if(null===e)return;actions.openLink(`https://github.com/${e.repoBase}/network/dependents`,{newTab:!0,active:!1});const t=[...document.querySelectorAll("div.Box-row")].map((e=>e.innerText.trim())).map((e=>e.split("\n")[0])).map((e=>e.replaceAll(/\s/g,"")));A.info("viewDependencyGraph",t),u.Clipboard.write(t.join("\n")),u.Front.showBanner(`Copied ${t.length} dependents to the clipboard.`)},downloadGistFiles:()=>{[...document.querySelectorAll(".Button--secondary")].filter((e=>e.innerText.trim().includes("Raw"))).map((e=>e.href)).forEach((e=>{u.Clipboard.write(e),ns(e,{newTab:!0,active:!1})}))}};function ii(e=!0){if(!window.location.href.includes("sourcegraph.com"))return;document.querySelector(".NewSearchContent-module__new-filters")&&document.querySelector(".NewSearchContent-module__new-filters").remove();const t=[...document.querySelectorAll("button, [type=button]")].filter((e=>["Hide preview","Preview"].includes(e.innerText.trim())));(()=>{const o=t.findIndex((e=>"Hide preview"===e.innerText.trim())),r=o+1,s=o-1;e&&r<t.length?t.at(r).click():!e&&s>=0&&t.at(s).click()})(),document.querySelector('div[aria-label="File sidebar"]').style.width="100%"}const ai={toggleCody:()=>{const e=document.querySelector("button.AskCodyButton-module__cody-button");e&&e.click()},closeCody:()=>{const e=document.querySelector(".Button-module__btn:nth-child(3) > .mdi-icon");e&&e.click()},toggleSymbols:()=>{const e=document.querySelector('button[data-tab-content="symbols"][aria-selected="false"]');e&&e.click()},toggleFiles:()=>{const e=document.querySelector('button[data-tab-content="files"][aria-selected="false"]');e&&e.click()},copyRepoName:()=>{const e=document.querySelector('span[data-testid="repo-header"]');e&&(u.Clipboard.write(e.innerText.trim()),u.Front.showBanner(`Copied repo name [${e.innerText.trim()}] to the clipboard.`))},viewFileHistory:()=>{[...document.querySelectorAll("a.RepoHeaderActions-module__action")].find((e=>e.innerText.trim().includes("History")))},downloadRaw:()=>{document.querySelector("mdi-icon Icon-module__icon-inline LoadingSpinner-module__loading-spinner,div[aria-label='Loading']"),[...document.querySelectorAll("button[data-reach-menu-button]")].filter((e=>"…"===e.innerText.trim()))},copyAllRepos:()=>{Object.entries(window.localStorage).forEach((([e,t])=>{e.startsWith("user-history:")&&!e.includes("anonymous")&&(console.log(e),console.log(JSON.parse(t)))}))},toggleHistoryView:()=>{const e=document.querySelector('button[aria-label="Open search history"]');e&&e.click()},openBranchesView:()=>{let e=[...document.querySelectorAll(".Button-module__btn-group a")].find((e=>e.textContent.trim().toLowerCase().includes("branches")));e&&ns(e.href,{newTab:!1})},openTagsView:()=>{let e=[...document.querySelectorAll(".Button-module__btn-group a")].find((e=>e.textContent.trim().toLowerCase().includes("tags")));e&&ns(e.href,{newTab:!1})},openCommitsView:()=>{let e=document.querySelector('a[name="Commits"]');e&&ns(e.href,{newTab:!1})},toggleSidebar:()=>{const e=document.querySelector('button[aria-label="Show sidebar"],button[aria-label="Hide sidebar"]');e&&e.click()},openPreviewed:()=>{let e=document.querySelector(".NewSearchContent-module__preview .AnchorLink-module__anchor-link");e&&ns(e.href,{newTab:!0,active:!1})},openCodeOnHost:()=>{let e=document.querySelector("a[id='go-to-code-host']");e&&ns(e.href,{newTab:!1})},prevNext:()=>{ii(!0)},prevPrev:()=>{ii(!1)},saveSearchQuery:()=>{const e=(e=>{const t=new URL(e),o=t.searchParams.get("q");return t.pathname.split("/").slice(1).join("/"),`https://sourcegraph.com/saved-searches/new?query=${o}&patternType=keyword&sm=0`})(window.location.href);ns(e,{newTab:!0,active:!1})},getRawFile:()=>{var e;let t=document.querySelector('a[aria-label="View on GitHub"]').href;t=t.replace("sourcegraph.com","github.com");const o=(null==(e=document.querySelector('a[data-value="Raw"]'))?void 0:e.href)||t+"/raw/master/";console.debug("getRawFile",o),o&&ns(o,{newTab:!0})},openOnGitHub:()=>{const e=document.querySelector('a[aria-label="View on GitHub"]');e&&ns(e.href,{newTab:!0})},openSourcegraphFromExt:()=>{if("github.com"!==window.location.hostname&&"sourcegraph.com"!==window.location.hostname)return void alert(`This bookmarklet may only be used on GitHub.com or Sourcegraph.com, not ${window.location.hostname}.`);const e=[["^/([^/]+)/([^/]+)/tree/([^/]+)$","/github.com/$1/$2@$3","^/github.com/([^/]+)/([^/@]+)@([^/]+)$","/$1/$2/tree/$3"],["^/([^/]+)/([^/]+)/tree/([^/]+)/(.+)$","/github.com/$1/$2@$3/-/tree/$4","^/github.com/([^/]+)/([^/@]+)@([^/]+)/-/tree/(.+)$","/$1/$2/tree/$3/$4"],["^/([^/]+)/([^/]+)/blob/([^/]+)/(.+)$","/github.com/$1/$2@$3/-/blob/$4","",""],["^/([^/]+)/([^/]+)$","/github.com/$1/$2","^/github.com/([^/]+)/([^/]+)$","/$1/$2"],["^/([^/]+)$","/$1","^/([^/]+)$","/$1"]];let{pathname:t}=window.location;"sourcegraph.com"===window.location.hostname&&(0===t.indexOf("/sourcegraph.com/")?t=t.replace("/sourcegraph.com/","/github.com/"):0===t.indexOf("/sourcegraph/")&&(t=`/github.com${t}`));for(let s=0;s<e.length;s++){const n=e[s];if("github.com"===window.location.hostname){if(""===n[0])continue;var o=new RegExp(n[0]);if(t.match(o)){var r=t.replace(o,n[1]);return void(window.location=`https://sourcegraph.com${r}`)}}else{if(""===n[2])continue;if(o=new RegExp(n[2]),t.match(o))return r=t.replace(o,n[3]),void(window.location=`https://github.com${r}`)}}}},ci=e=>is(document.querySelector("._list"),e),li=e=>is(document.querySelector("._content"),e);api;const pi={scrollSidebar:e=>is(document.getElementById("sidebar-content"),e),scrollContent:e=>is(document.body,e),focusSearch:()=>os(document.getElementById("docsearch"),"mousedown","click")},di={getCurrentTimestamp:()=>{var e,t,o,r;const[s,n,i=0]=(null==(r=null==(o=null==(t=null==(e=document.querySelector("#ytd-player .ytp-time-current"))?void 0:e.innerText)?void 0:t.split(":"))?void 0:o.reverse())?void 0:r.map(Number))??[0,0,0];return[s,n,i]},getCurrentTimestampSeconds:()=>{const[e,t,o]=di.getCurrentTimestamp();return 60*o*60+60*t+e},getCurrentTimestampHuman:()=>{const[e,t,o]=di.getCurrentTimestamp(),r=e=>`${e}`.padStart(2,"0");return o>0?`${o}:${r(t)}:${r(e)}`:`${t}:${r(e)}`},getShortLink:()=>`https://youtu.be/${new URLSearchParams(window.location.search).get("v")}`,getCurrentTimestampLink:()=>`${di.getShortLink()}?t=${di.getCurrentTimestampSeconds()}`,getCurrentTimestampMarkdownLink:()=>rs({title:`${document.querySelector("#ytd-player .ytp-title").innerText} @ ${di.getCurrentTimestampHuman()} - YouTube`,href:di.getCurrentTimestampLink()})},{Hints:ui,Front:mi,Clipboard:gi,tabOpenLink:hi,RUNTIME:bi}=u,fi={meta_citation_doi:()=>{var e;return null==(e=document.querySelector("meta[name=citation_doi]"))?void 0:e.content},meta_dcIdentifier_doi:()=>{var e;return null==(e=document.querySelector("meta[name='dc.Identifier'][scheme=doi]"))?void 0:e.content}},wi=fi,yi={copyImdbId:()=>{if(!window.location.hostname.includes("imdb.com"))return;const e=/imdb\.com\/title\/(tt\d+)/.exec(window.location.href);if(null===e||2!==e.length)return;const t=`imdb:${e[1]}`;u.Clipboard.write(t),u.Front.showBanner(`Copied title id [${t}] to the clipboard.`)},paginateIMDB:()=>{const e=document.querySelector("span.ipc-see-more__text");e&&(e.click(),setTimeout((()=>{actions.paginateIMDB()}),1e3))}},ki={copyTVDBId:()=>{if(window.location.hostname.includes("thetvdb.com")&&document.querySelector("div#series_basic_info li:nth-child(1) > span")){let e=document.querySelector("div#series_basic_info li:nth-child(1) > span").innerText;e=`tvdb:${e}`,A.info(`Copying series id [${e}] to the clipboard.`),u.Clipboard.write(e),u.Front.showBanner(`Copied series id [${e}] to the clipboard.`)}}},vi={nextItem:()=>{const e=document.querySelector("a.Navigation-next");console.debug("nextItem",e),e&&e.click()}},{Hints:Ti,Front:_i,Clipboard:Ei,tabOpenLink:Si,RUNTIME:xi}=api,Oi={copyVsExtensionId:()=>{if(!window.location.hostname.includes("marketplace.visualstudio.com"))return;const e=new URL(window.location.href).searchParams.get("itemName");e&&(Ei.write(e),_i.showBanner(`Copied extension id [${e}] to the clipboard.`))},goToProjectRepository:()=>{const e=document.querySelector("a.githubLinks.repo-link");e&&Si(e.href)},goToProjectIssues:()=>{const e=document.querySelector("div#overviewTab div.resources-async-div > div > ul > li:nth-child(1) > a");e&&e.innerText.trim().toLowerCase().includes("issues")&&Si(e.href)}},Ai={prevPackage:()=>{const e=[...document.querySelectorAll("li.package")];if(0===e.length)return;const t=e.at(e.findIndex((e=>e.className.includes("opened")))-1);t&&(console.debug("prevEl",t,e),t.click())},nextPackage:()=>{let e=[...document.querySelectorAll("li.package")];if(0===e.length)return;const t=e.at(e.findIndex((e=>e.className.includes("opened")))+1);t&&(console.debug("nextEl",t,e),t.click())},copyFlakeInstallSnippet:()=>{const e=document.querySelector("pre.code-block.shell-command");if(3!==e.length)return;const t=e.map((e=>e.innerText)).at(1).split("\n").at(3);console.debug(`copyNixFlakeSnippet: ${t}`),t&&(u.Clipboard.write(t),u.Front.showBanner(`Copied ${t} to the clipboard.`))}},Pi={viewPkgbuild:()=>{const e=document.querySelector(".small > li:nth-child(1) > a:nth-child(1)");console.debug("pkgbuildLink",e),e&&actions.openLink(e.href,{newTab:!0})},goToUpstream:()=>{const e=document.querySelector("tr:nth-child(4) a");console.debug("upstreamLink",e),e&&actions.openLink(e.href,{newTab:!0})}},{Hints:Ri,Front:Ci,Clipboard:Gi,tabOpenLink:$i,RUNTIME:Fi}=u,Ui={goToHomepage:()=>{const e=document.querySelector(".vertical-tabs__tabs > .sidebar-section > .vertical-tabs__list .vertical-tabs__tab");console.dir(e,{depth:null});let t=null==e?void 0:e.href.trim();t&&(Gi.write(t),Ci.showBanner(`Copied ${t} to the clipboard.`),window.open(t,"_blank"))},copyInstallSnippet:()=>{const e=document.querySelector("span#pip-command");if(e){let t=e.innerText.trim();console.debug(`Copying install snippet: ${t}`),Gi.write(t),Ci.showBanner(`Copied ${t} to the clipboard.`)}}},{Hints:Li,Front:Di,Clipboard:qi,tabOpenLink:Ii,RUNTIME:ji}=u,Ni={goToRepository:()=>{const e=document.querySelector('a[aria-labelledby="repository repository-link"]');e&&Ii(e.href)},copyPackageName:()=>{var e;const t=null==(e=document.querySelector("h1.package-name-redundant"))?void 0:e.innerText.trim();t&&(u.Clipboard.write(t),u.Front.showBanner(`Copied package name [${t.innerText.trim()}] to the clipboard.`))},changeSorting(e="popularity"){const t=document.querySelector("select[name='sort']");t&&(t.value=e,t.dispatchEvent(new Event("change",{bubbles:!0})))}},{Hints:zi,Front:Hi,Clipboard:Mi,tabOpenLink:Bi,RUNTIME:Wi}=u,Vi={copyAddonId:()=>{var e;const t=null==(e=document.querySelector("input[name='addonId']"))?void 0:e.value;t&&(Mi.write(t),consola.info(`Copied addon id [${t}] to the clipboard.`))}},Ji={activateConsoleView:()=>{var e;const t=[...document.querySelectorAll("button")].filter((e=>e.innerText.trim().toLowerCase().includes("console")));t.length>0&&(null==(e=t.at(1))||e.click())},activateShellView:()=>{var e;const t=[...document.querySelectorAll("button")].filter((e=>e.innerText.trim().toLowerCase().includes("shell")));t.length>0&&(null==(e=t.at(1))||e.click())},toggleLeftSidebar:()=>{const e=document.querySelector("button[aria-label='Toggle sidebar']");e&&e.click()},maximizeCodePane:()=>{const e=document.querySelector("button[aria-label='Maximize pane']");e&&e.click()},minimizeCodePane:()=>{const e=document.querySelector("button[aria-label='Restore pane']");e&&e.click()},splitPane:()=>{const e=document.querySelector('button[aria-label="Split pane"]');e&&e.click()}},{Hints:Ki,Front:Yi,Clipboard:Zi,tabOpenLink:Xi,RUNTIME:Qi}=api,ea={getCloneUrl:()=>{const e=document.querySelector('meta[name="forge:summary"]').content;e&&(Zi.write(e),Yi.showBanner(`Copied read-only clone url [${e}] to the clipboard.`))},copyRepoName:()=>{const e=document.querySelector('meta[name="forge:summary"]').content;let t=Vs(e).name;Zi.write(t),Yi.showBanner(`Copied repo name [${t}] to the clipboard.`)}},{Hints:ta,Front:oa,Clipboard:ra,tabOpenLink:sa,RUNTIME:na}=u,ia={installExtension:()=>{window.location.href.includes("raycast.com")&&[...document.querySelectorAll("a")].filter((e=>e.innerText.trim().toLowerCase().includes("install"))).forEach((e=>e.click()))},requestFeature:()=>{window.location.href.includes("raycast.com")&&[...document.querySelectorAll("a")].filter((e=>e.innerText.trim().toLowerCase().includes("request"))).forEach((e=>e.click()))},versionHistory:()=>{window.location.href.includes("raycast.com")&&[...document.querySelectorAll("button")].filter((e=>e.innerText.trim().toLowerCase().includes("version"))).forEach((e=>e.click()))},exposedCommands:()=>{window.location.href.includes("raycast.com")&&[...document.querySelectorAll("button")].filter((e=>e.innerText.trim().toLowerCase().includes("commands"))).forEach((e=>e.click()))},goToRepo:()=>{var e;if(!window.location.href.includes("raycast.com"))return;const t=null==(e=document.querySelector('a[rel="noreferrer"]'))?void 0:e.href;t&&sa(t,{newWindow:!0})}},aa={openBotPicker:()=>{const e=document.querySelector('textarea[placeholder="Start a new chat"]');e&&e.focus()},openPromptPicker:()=>{},copyLastResponse:()=>{const e=[...document.querySelectorAll("button")].filter((e=>e.innerText.includes("Copy")));0!==e.length&&e.at(-1).click()}},{Hints:ca,Front:la,Clipboard:pa,tabOpenLink:da,RUNTIME:ua,Normal:ma}=u,ga={openLibRedirect:()=>{const e=u.getBrowserName();"Chrome"===e?da("chrome-extension://oladmjdebphlnjjcnomfhhbfdldiimaf/pages/options/index.html#general"):"Firefox"===e&&da("moz-extension://1aa6dcc8-760b-40ed-9b73-09ed23f89c21/pages/options/index.html")},openStylus:()=>{const e=u.getBrowserName();"Chrome"===e?da("chrome-extension://apmmpaebfobifelkijhaljbmpcgbjbdo/manage.html"):"Firefox"===e&&da("moz-extension://f82cebdf-ac3a-4fb1-b48b-b5df266cfb6c/manage.html#stylus-options")},openAFineStart:()=>{const e=u.getBrowserName();"Chrome"===e?da("chrome-extension://kcgjmjiklcchbhljelchjdpoooccmhcn/bookmarks/index.html"):"Firefox"===e&&da("moz-extension://26276c35-3a6b-4cf5-84bf-24e3152003c1/bookmarks/index.html")},openTobyMini:()=>{const e=u.getBrowserName();"Chrome"===e?da("chrome-extension://gfdcgfhkelkdmglklfbndgopaihmoeci/toby.html"):"Firefox"===e&&da("moz-extension://59b912fc-f318-419e-99a7-76469dc200ce/toby.html")},openOneTab:()=>{const e=u.getBrowserName();da("Chrome"===e?"chrome-extension://chphlpgkkbolifaimnlloiipkdnihall/onetab.html":"moz-extension://59b912fc-f318-419e-99a7-76469dc200ce/onetab.html")},openProxySwitchOmega:()=>{const e=u.getBrowserName();"Chrome"===e?da("chrome-extension://padekgcemlokbadohgkifijomclgjgif/options.html"):"Firefox"===e&&da("moz-extension://f1f9076e-23c8-496e-a9c3-205956daadbc/options.html")},openChromeBookmarks:()=>da("chrome://bookmarks/"),openChromeNewTab:()=>da("chrome://newtab/"),openChromeNetInternals:()=>da("chrome://net-internals/#proxy"),openChromeHelp:()=>da("chrome://help/"),openChromeCache:()=>da("chrome://net-internals/#cache"),openChromeExtensions:()=>da("chrome://extensions/"),openChromeShortcuts:()=>da("chrome://extensions/shortcuts/"),openChromeFlags:()=>da("chrome://flags/"),openChromeSettings:()=>da("chrome://settings/"),openChromeHistory:()=>da("chrome://history/"),openFirefoxExtensions:()=>da("about:addons"),openFirefoxShortcuts:()=>da("about:support"),openFirefoxSettings:()=>da("about:preferences"),openFirefoxConfig:()=>da("about:config")};api;const ha="http://centralops.net/co/DomainDossier.aspx",ba=({hostname:e=window.location.hostname,all:t=!1}={})=>`${ha}?dom_dns=true&addr=${e}${t?"?dom_whois=true&dom_dns=true&traceroute=true&net_whois=true&svc_scan=true":""}`,{Front:fa,Hints:wa,Normal:ya,RUNTIME:ka,Clipboard:va}=u,Ta={a:"https://aws.amazon.com/console",b:"https://bard.google.com",M:"https://mail.google.com",g:"https://www.goodreads.com",t:"https://twitter.com/search-home",p:"http://127.0.0.1:8000/playground",s:"http://stackoverflow.com"};as('"',Ta),as("'",Ta);const _a={star:()=>{const e=window.location.pathname.slice(1).split("/").slice(0,2).join("/"),t=document.querySelector(".btn.star-btn > span");t.click();const o=`${t.textContent.toLowerCase()}red`;let r="☆";"starred"===o&&(r="★"),fa.showBanner(`${r} Repository ${e} ${o}`)}},Ea={collapseNextComment:()=>{const e=Array.from(document.querySelectorAll(".noncollapsed.comment")).filter((e=>Fr(e)));e.length>0&&e[0].querySelector(".expand").click()},copySubredditName:()=>{var e;const t=null==(e=document.querySelector(".shreddit-subreddit-header-buttons"))?void 0:e.getAttribute("name");t&&va.writeText(t)}},Sa={loadMore:()=>{const e=[...document.querySelectorAll('button[aria-disabled="false"]')].find((e=>"Load more"===e.innerText.trim()));e&&(console.debug("Loading more posts from Patreon"),e.click())},loadAll:async()=>{for(var e;"Load more"===(null==(e=document.querySelector("button[aria-disabled='false']"))?void 0:e.innerText.trim());)await Tr((()=>document.querySelector("button[aria-disabled='false']"))),Sa.loadMore()}},xa={categories:{help:0,mouseClick:1,scroll:2,tabs:3,pageNav:4,sessions:5,searchSelectedWith:6,clipboard:7,omnibar:8,visualMode:9,vimMarks:10,settings:11,chromeURLs:12,proxy:13,misc:14,insertMode:15}},{categories:Oa}=xa,{Clipboard:Aa,Front:Pa,tabOpenLink:Ra,Normal:Ca,Hints:Ga}=u,$a={mappings:["gk","gn","sb","sw","ob","oe","ow","oy","cp",";cp",";ap","spa","spb","spd","sps","spc","spi","sfr","zQ","zz","zR","od","ab","Q","q","ag","af","yj",";s","yp","p","<Ctrl-j>","<Ctrl-h>"],searchAliases:{s:["g","d","b","e","w","s","h","y"]}},Fa={};Fa.global=[{alias:"p",category:Oa.mouseClick,description:"Go to editable text ✏️",callback:()=>{wa.setCharacters(hintsCharactersAll),wa.create([`input:not(${["button","checkbox","color","date","datetime-local","file","image","radio","range","reset","submit"].map((e=>`input[type=${e}]`)).join(", ")})`,"textarea","*[contenteditable=true]","*[role=textbox]","select","div.ace_cursor"].join(", "),wa.dispatchMouseClick)}},{alias:"F",map:"gf",category:Oa.mouseClick,description:"Open a link in non-active new tab 🆕",callback:()=>Ga.create("",Ga.dispatchMouseClick,{tabbed:!0,active:!1})},{alias:"zf",category:Oa.mouseClick,description:"Open link URL in vim editor ⌨️",callback:()=>Gr("a[href]",(e=>Yr.showEditor(e.href,(e=>ns(e)),"url")))},{alias:"ZZ",category:Oa.sessions,description:"Save current session and quit 💾",callback:()=>{Qr("createSession",{name:"LAST"}),Qr("quit")}},{alias:"ZR",category:Oa.sessions,description:"Restore last session ↩️",callback:()=>{Qr("openSession",{name:"LAST"})}},{alias:"Zl",category:Oa.sessions,description:"List saved sessions 📜",callback:()=>{runtime.command({action:"getSessions"},(function(e){Omnibar.listResults(Object.keys(e.sessions),(function(e){return $("<li></li>").html(e)}))}))}},{alias:"w",map:"k",category:Oa.scroll,description:"Scroll up ⬆️"},{alias:"s",map:"j",category:Oa.scroll,description:"Scroll down ⬇️"},{alias:"K",map:"e",category:Oa.scroll,description:"Scroll half page up 🔼"},{alias:"J",map:"d",category:Oa.scroll,description:"Scroll half page down 🔽"},{alias:"gh",category:Oa.scroll,description:"Scroll to element targeted by URL hash 🔗",callback:(e=null)=>{const t=(e||document.location.hash).replace("#",""),o=document.getElementById(t)||document.querySelector(`[name="${t}"]`);o&&o.scrollIntoView({behavior:"smooth"})}},{alias:"gI",category:Oa.pageNav,description:"View image in new tab 🖼️",callback:()=>Gr("img",(e=>ns(e.src)))},{alias:"g.",category:Oa.pageNav,description:"Go to parent domain ↖️",callback:()=>{const e=window.location.host.split("."),t=(e.length>2?e.slice(1):e).join(".");ns(`${window.location.protocol}//${t}`)}},{alias:"gn",category:Oa.misc,description:"Jump to vim-like mark in new tab 🔖",callback:e=>{const t=quickmarkUrls[e];if(!t)return void u.Normal.jumpVIMark(e,!0);const o=Array.isArray(t)?t:[t];console.debug(o,e),o.forEach((e=>{console.debug(`opening ${e}`),u.RUNTIME("openLink",{url:e,scrollLeft:0,scrollTop:0,tab:{tabbed:!1,active:!1}})}))}},{alias:"yp",category:Oa.clipboard,description:"Copy readable URL 🔗",callback:()=>{const e=decodeURI(window.location.href);Zr.write(e),u.Front.showBanner(`Copied ${e} to the clipboard.`)}},{alias:"ya",category:Oa.clipboard,description:"Copy a link URL to the clipboard 🔗",callback:()=>{Kr.create("*[href]",(function(e){Zr.write(e.href),u.Front.showBanner(`Copied ${e.href} to the clipboard.`)}))}},{alias:"ya",category:Oa.clipboard,description:"Copy multiple link URLs to the clipboard 🔗",callback:()=>{const e=[];Kr.create("*[href]",(function(t){e.push(t.href),Zr.write(e.join("\n")),u.Front.showBanner(`Copied ${e.length} links to the clipboard.`)}),{multipleHits:!0})}},{alias:"yO",category:Oa.misc,description:"Copy current page's link to obsidian 📝",callback:(e="quartzmd",t=!0,o="append")=>{const r=new URL(window.location.href),s=`[${window.document.title.replace(/(<|>)/g,"\\$1")}](${r.href})`;console.debug("copyCurrentURLToObsidian",{vault:e,writeData:s});const n="obsidian://advanced-uri?vault="+e+"&daily="+t+"&mode="+o+"&data="+s;window.open(n,"_blank"),u.Front.showBanner("Sent to Obsidian: "+s)}},{alias:"ybca",category:Oa.clipboard,description:"Copy all tabs in Markdown format, removing query and hash in URL 📝",callback:()=>ts(!0)},{alias:"ybl",category:Oa.clipboard,description:"Copy current tab's title, with custimized transformation. 📝",callback:()=>ts(!0)},{alias:"yI",category:Oa.clipboard,description:"Copy Image URL 🖼️",callback:()=>Gr("img",(e=>Aa.write(e.src)))},{alias:"yA",category:Oa.clipboard,description:"Copy link as Markdown 📝",callback:()=>Gr("a[href]",(e=>Aa.write(`[${e.innerText}](${e.href})`)))},{alias:"yM",category:Oa.clipboard,description:"Copy page URL/Title as Markdown link 📝",callback:()=>Aa.write((({title:e=document.title,href:t=window.location.href}={})=>`[${e}](${t})`)())},{alias:"yh",category:Oa.clipboard,description:"Copy page title 📋",callback:()=>Aa.write(document.title.replace(/[\r\n]/g,"").trim())},{alias:"yT",category:Oa.tabs,description:"Duplicate current tab (non-active new tab) 🆕",callback:()=>ns(window.location.href,{newTab:!0,active:!1})},{alias:"yl",category:Oa.tabs,description:"Copy last element in URL 🔗",callback:()=>{const e=window.location.href.split("/");console.debug("locationParts",e);const t=e[e.length-1].split("#")[0].split("?")[0];t?(u.Clipboard.write(t),u.Front.showBanner(`Copied ${t} to the clipboard.`)):u.Front.showBanner("No last element was found.")}},{alias:";se",category:Oa.settings,description:"Edit SK Settings ⚙️",callback:()=>Xr(chrome.extension.getURL("/pages/options.html"))},{alias:"gs",category:Oa.chromeURLs,description:"Open Chrome Shortcuts ⌨️",callback:ga.openChromeShortcuts},{alias:"gh",category:Oa.chromeURLs,description:"Open Chrome History 🕓",callback:ga.openChromeHistory},{alias:"gz",category:Oa.misc,description:"Open Proxy SwitchyOmega 🌐",callback:ga.openProxySwitchOmega},{alias:"gA",category:Oa.misc,description:"Open AFineStart 🌅",callback:ga.openAFineStart},{alias:"gk",category:Oa.misc,description:"Open Toby 📑",callback:ga.openTobyMini},{alias:"gS",category:Oa.misc,description:"Open Stylus ✒️",callback:ga.openStylus},{alias:";s",category:Oa.misc,description:"Show Squirt ✨",callback:()=>{const e=document.createElement("script");e.innerHTML='(() => {\n const sq = window.sq || {}\n window.sq = sq\n if (sq.script) {\n sq.again()\n } else if (sq.context !== "inner") {\n sq.bookmarkletVersion = "0.3.0"\n sq.iframeQueryParams = { host: "//squirt.io" }\n sq.script = document.createElement("script")\n sq.script.src = `${sq.iframeQueryParams.host}/bookmarklet/frame.outer.js`\n document.body.appendChild(sq.script)\n }\n })()',document.body.appendChild(e)}},{alias:";1",category:Oa.misc,description:"Inject Utility Libraries 🧩",callback:()=>{(()=>{const e=document.createElement("script");e.type="module",e.async=!0,e.innerHTML="\n (async () => {\n const { nanoid } = await import('https://cdn.jsdelivr.net/npm/nanoid/nanoid.js');\n window.nanoid = nanoid;\n console.log('Nanoid injected:', window.nanoid);\n })();\n ",document.head.appendChild(e)})(),(()=>{const e=document.createElement("script");e.type="module",e.async=!0,e.innerHTML="\n (async () => {\n const R = await import('https://cdn.jsdelivr.net/npm/[email protected]/es/index.js');\n window.R = R;\n console.log('Ramda injected:', window.R);\n })();\n ",document.head.appendChild(e)})(),(()=>{const e=document.createElement("script");e.type="module",e.async=!0,e.innerHTML="\n (async () => {\n const _ = await import('https://cdn.jsdelivr.net/npm/[email protected]/lodash.js');\n window._ = _;\n console.log('Lodash injected:', window._);\n })();\n ",document.head.appendChild(e)})(),(()=>{const e=document.createElement("script");e.type="module",e.async=!0,e.innerHTML="\n (async () => {\n const { default: ky } = await import('https://cdn.jsdelivr.net/npm/[email protected]/distribution/index.js');\n window.ky = ky;\n console.log('Ky injected:', window.ky);\n })();\n ",document.head.appendChild(e)})(),(()=>{const e=document.createElement("script");e.type="module",e.async=!0,e.innerHTML="\n (async () => {\n const dayjs = await import('https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js');\n window.dayjs = dayjs;\n console.log('Day.js injected:', window.dayjs);\n })();\n ",document.head.appendChild(e)})()}},{alias:";4",category:Oa.misc,description:"Convert HTML to Markdown ↩️",callback:()=>(async()=>{try{for(async function(){var e=document.createElement("script");e.type="module",e.src="data:text/javascript;base64,"+btoa("\n import ky from 'https://unpkg.com/ky/distribution/index.js';\n window.ky = ky;\n console.log('Ky has been loaded.');\n "),document.head.appendChild(e)}();!window.ky;)await new Promise((e=>setTimeout(e,100)));const e=document.documentElement.outerHTML;console.info(e);let t=window.ky.post("https://api.html-to-markdown.com/v1/convert",{headers:{"X-API-Key":"html2md_WpHoiu1hKtt_Bt5TG7WCpUsompYSWxtVtFs4UhsnNsNqeK5WTipKhbb9_7eT7WtfD4sP2N3vk9FJfq9pJzfeRK7kae7xo6inAFgh3","Content-Type":"application/json"},json:{html:e}});const o=await t.json();return console.info(o),o.markdown}catch(e){return console.error(e),""}})().then((e=>Aa.write(e))).catch(console.error)},{alias:"gO",category:Oa.misc,description:"Open OneTab 🗃️",callback:ga.openOneTab},{alias:"=W",category:Oa.misc,description:"Lookup whois information for domain 🌐",callback:()=>ns((({hostname:e=window.location.hostname}={})=>`${ha}?dom_whois=true&addr=${e}`)(),{newTab:!0})},{alias:"=d",category:Oa.misc,description:"Lookup dns information for domain 🌐",callback:()=>ns(ba(),{newTab:!0})},{alias:"=D",category:Oa.misc,description:"Lookup all information for domain 🌐",callback:()=>ns(ba({all:!0}),{newTab:!0})},{alias:"=c",category:Oa.misc,description:"Show shodan information for domain 👁️",callback:()=>ns((({hostname:e=window.location.hostname}={})=>`https://www.shodan.io/host/${e}`)(),{newTab:!0})},{alias:"=p",category:Oa.misc,description:"Remove popups, banners, and ads from any website. 🧹",callback:()=>ns((({href:e=window.location.href}={})=>`https://12ft.io/${e}`)(),{newTab:!1})},{alias:"=a",category:Oa.misc,description:"Show Archive.org Wayback Machine for page ⏳",callback:()=>ns((({href:e=window.location.href}={})=>`https://web.archive.org/web/*/${e}`)(),{newTab:!0})},{alias:"=S",category:Oa.misc,description:"View summary for page 📄",callback:()=>ns((({href:e=window.location.href}={})=>`https://kagi.com/summarizer/index.html?${new URLSearchParams({url:e})}`)(),{newTab:!0})},{alias:"=t",category:Oa.misc,description:"Add to Things ➕",callback:()=>{const e=document.title,t=`Link:${href}`;window.open(`things:///add?title=${e}¬es=${t}&list=Backlog&heading=Someday&show-quick-entry=true&reveal=true&tags=${["web"].join(",")}`,"_blank"),u.Front.showBanner("Sent to Things: "+t)}},{alias:"=A",category:Oa.misc,description:"Add to Anybox 📦",callback:({href:e=window.location.href}={})=>{window.open(`anybox://download?url=${encodeURIComponent(e)}`,"_blank"),u.Front.showBanner("Saved tab to AnyBox: "+e)}},{alias:"=R",category:Oa.misc,description:"Add to Raindrop 💧",callback:({href:e=window.location.href}={})=>{const t=parseInt(screen.width/2-225),o=parseInt(screen.height/2-300);window.open("https://app.raindrop.io/add?link="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title),"raindrop-save","width=450,height=600,resizable=yes,scrollbars=yes,status=false,location=false,toolbar=false,left="+t+",top="+o)}},{alias:"=I",category:Oa.misc,description:"Add to Readwise 📚",callback:({href:e=window.location.href}={})=>{const t=document.title.trim();window.open(`https://readwise.io/save?title=${encodeURIComponent(t)}&url=${encodeURIComponent(e)}`,"_blank"),u.Front.showBanner("Saved page to Readwise: "+t+" "+e)}},{alias:";pd",category:Oa.misc,description:"Toggle PDF viewer from SurfingKeys 📑",callback:()=>{Yr.showBanner("PDF toggle."),chrome.storage.local.get("noPdfViewer",(e=>{e.noPdfViewer?chrome.storage.local.remove("noPdfViewer",(()=>{Yr.showBanner("PDF viewer enabled.")})):chrome.storage.local.set({noPdfViewer:1},(()=>{Yr.showBanner("PDF viewer disabled.")}))}))}},{alias:";dI",category:Oa.misc,description:"Download image to ⬇️",callback:()=>{u.Hints.create("img",(function(e){u.RUNTIME("download",{url:e.src,saveAs:!0})}))}},{alias:"gxE",map:"gxt",category:Oa.tabs,description:"Close tab to left ❌"},{alias:"gxR",map:"gxT",category:Oa.tabs,description:"Close tab to right ❌"},{alias:"F",map:"gf",category:Oa.mouseClick,description:"Open a link in non-active new tab 🆕"},{alias:"ol",category:Oa.omnibar,description:"Open localhost 🖥️",callback:()=>{const e=[9222,9706].map((e=>({title:`localhost:${e}`,url:`http://localhost:${e}`})));Yr.openOmnibar({type:"UserURLs",extra:e})}},{alias:"oh",category:Oa.omnibar,description:"Open URL from history 🕑",callback:()=>Pa.openOmnibar({type:"History"})},{alias:"or",category:Oa.omnibar,description:"Open RecentlyClosed ♻️",callback:()=>Pa.openOmnibar({type:"RecentlyClosed"})},{alias:"oc",category:Oa.omnibar,description:"Search grep.app 🔎",callback:()=>Pa.openOmnibar({type:"SearchEngine",extra:"gr"})}],Fa["patreon.com"]=[{alias:"l",description:"Load more posts",callback:Sa.loadMore},{alias:"L",description:"Load all posts",callback:Sa.loadAll}],Fa["marketplace.visualstudio.com"]=[{alias:"yc",description:"Copy extension id",callback:Oi.copyVsExtensionId},{alias:"gr",description:"Go to project repository",callback:Oi.goToProjectRepository},{alias:"gi",description:"Go to project issues",callback:Oi.goToProjectIssues}],Fa["imdb.com"]=[{alias:"yt",description:"Copy IMDB title identifier",callback:yi.copyImdbId}],Fa["thetvdb.com"]=[{alias:"yt",description:"Copy TVDB title identifier",callback:ki.copyTVDBId}],Fa["marketplace.visualstudio.com"]=[{alias:"yc",description:"Copy extension id",callback:Oi.copyVsExtensionId},{alias:"gr",description:"Go to project repository",callback:Oi.goToProjectRepository},{alias:"gi",description:"Go to project issues",callback:Oi.goToProjectIssues}],Fa["amazon.com"]=[{alias:"a",description:"View product",callback:xs.viewProduct},{alias:"c",description:"Add to Cart",callback:()=>Gr("#add-to-cart-button")},{alias:"R",description:"View Product Reviews",callback:()=>ns("#customerReviews")},{alias:"Q",description:"View Product Q&A",callback:()=>ns("#Ask")},{alias:"A",description:"Open Account page",callback:()=>ns("/gp/css/homepage.html")},{alias:"C",description:"Open Cart page",callback:()=>ns("/gp/cart/view.html")},{alias:"O",description:"Open Orders page",callback:()=>ns("/gp/css/order-history")}],Fa["imgur.com"]=[{alias:"!rRight",decsription:"Imgur Next Item",callback:vi.nextItem}];const Ua=["a h3","h3 a","a[href^='/search']:not(.fl):not(#pnnext,#pnprev):not([role]):not(.hide-focus-ring)","g-scrolling-carousel a",".rc > div:nth-child(2) a",".kno-rdesc a",".kno-fv a",".isv-r > a:first-child",".dbsr > a:first-child",".X5OiLe",".WlydOe",".fl"].join(",");Fa["www.google.com"]=[{alias:"a",description:"Open search result",callback:()=>Gr(Ua)},{alias:"A",description:"Open search result (new tab)",callback:()=>Gr(Ua,ss({newTab:!0,active:!1}))}],Fa["algolia.com"]=[{alias:"a",description:"Open search result",callback:()=>Gr(".item-main h2>a:first-child")}],Fa["youtube.com"]=[{leader:"",alias:"A",description:"Open video",callback:()=>Gr("*[id='video-title']",ss({newTab:!0}))},{leader:"",alias:"C",description:"Open channel",callback:()=>Gr("*[id='byline']")},{leader:"",alias:"gH",description:"Goto homepage",callback:()=>ns("https://www.youtube.com/feed/subscriptions?flow=2")},{leader:"",alias:"F",description:"Toggle fullscreen",callback:()=>os(document.querySelector("#movie_player.ytp-fullscreen-button"),"mousedown","click")},{leader:"",alias:"Yt",description:"Copy YouTube video link for current time",callback:()=>Aa.write(di.getCurrentTimestampLink())},{leader:"",alias:"Ym",description:"Copy YouTube video markdown link for current time",callback:()=>Aa.write(di.getCurrentTimestampMarkdownLink())}],Fa["pypi.org"]=[{alias:"b",description:"Go to project homepage",callback:Ui.goToHomepage},{alias:"y",description:"Copy install snippet",callback:Ui.copyInstallSnippet}],Fa["ankiweb.net"]=[{alias:"y",description:"Copy addon id",callback:Vi.copyAddonId}],Fa["npmjs.com"]=[{alias:"y",description:"Copy package name",callback:Ni.copyPackageName},{alias:"r",description:"Go to repository",callback:Ni.goToRepository},{alias:"p",description:"Sort by popularity",callback:()=>Ni.changeSorting("popularity")}],Fa["poe.com"]=[{alias:"y",description:"Copy last response",callback:aa.copyLastResponse},{alias:"p",description:"Open bot picker",callback:aa.openBotPicker}],Fa["git.sr.ht"]=[{alias:"u ",description:"Copy read-only clone url",callback:ea.getCloneUrl},{alias:"y",description:"Copy repo name",callback:ea.copyRepoName}],Fa["sourcegraph.com"]=[{alias:"]",description:"Preview next search result ➡️",callback:ai.prevNext},{alias:"[",description:"Preview previous search result ⬅️",callback:ai.prevPrev},{alias:"O",description:"Open currently previewed search result 🚀",callback:ai.openPreviewed},{alias:"S",description:"Save search query 💾",callback:ai.saveSearchQuery},{alias:"1",description:"Toggle sidebar 📂",callback:ai.toggleSidebar},{alias:"c",description:"Open Commits View 🕑",callback:ai.openCommitsView},{alias:"b",description:"Open Branches View 🌳",callback:ai.openBranchesView},{alias:"h",description:"Toggle history view 📜",callback:ai.toggleHistoryView},{alias:"g",description:"View on GitHub (new tab) 🐙",callback:ai.openOnGitHub},{alias:"y",description:"Copy repo name 📋",callback:ai.copyRepoName},{alias:"s",description:"Toggle Symbols 🔍",callback:ai.toggleSymbols},{alias:"f",description:"Toggle Files 📁",callback:ai.toggleFiles},{alias:"C",description:"Toggle Cody 🤖",callback:ai.toggleCody}],Fa["nixos.org"]=[{alias:"j",description:"Next package",callback:Ai.nextPackage},{alias:"k",description:"Previous package",callback:Ai.prevPackage},{alias:"yi",description:"Copy install snippet (nix flake)",callback:Ai.copyFlakeInstallSnippet}],Fa["devdocs.io"]=[{leader:"",alias:"w",description:"Scroll sidebar up",callback:()=>ci("up")},{leader:"",alias:"s",description:"Scroll sidebar down",callback:()=>ci("down")},{leader:"",alias:"e",description:"Scroll sidebar page up",callback:()=>ci("pageUp")},{leader:"",alias:"d",description:"Scroll sidebar page down",callback:()=>ci("pageDown")},{leader:"",alias:"k",description:"Scroll body up",callback:()=>li("up")},{leader:"",alias:"j",description:"Scroll body down",callback:()=>li("down")},{leader:"",alias:"K",description:"Scroll body page up",callback:()=>li("pageUp")},{leader:"",alias:"J",description:"Scroll body page down",callback:()=>li("pageDown")}];const La="/docs(/.*)?";Fa["rescript-lang.org"]=[{leader:"",alias:"i",description:"Focus search field",path:`(${La})?$`,callback:pi.focusSearch},{alias:"a",description:"Open docs link",path:La,callback:()=>Gr("a[href^='/docs/']")},{alias:"L",description:"Open language manual",callback:()=>ns("/docs/manual/latest/introduction")},{alias:"R",description:"Open ReScript + React docs",callback:()=>ns("/docs/react/latest/introduction")},{alias:"G",description:"Open GenType docs",callback:()=>ns("/docs/gentype/latest/introduction")},{alias:"P",description:"Open package index",callback:()=>ns("/packages")},{alias:"Y",description:"Open playground",callback:()=>ns("/try")},{alias:"S",description:"Open syntax lookup",callback:()=>ns("/syntax-lookup")},{alias:"F",description:"Open community forum",callback:()=>ns("https://forum.rescript-lang.org/")},{alias:"A",description:"Open API docs",callback:()=>ns("/docs/manual/latest/api")},{alias:"J",description:"Open JS API docs",callback:()=>ns("/docs/manual/latest/api/js")},{alias:"B",description:"Open Belt API docs",callback:()=>ns("/docs/manual/latest/api/belt")},{alias:"D",description:"Open DOM API docs",callback:()=>ns("/docs/manual/latest/api/dom")},{leader:"",alias:"w",description:"Scroll sidebar up",path:La,callback:()=>pi.scrollSidebar("up")},{leader:"",alias:"s",description:"Scroll sidebar down",path:La,callback:()=>pi.scrollSidebar("down")},{leader:"",alias:"e",description:"Scroll sidebar page up",path:La,callback:()=>pi.scrollSidebar("pageUp")},{leader:"",alias:"d",description:"Scroll sidebar page down",path:La,callback:()=>pi.scrollSidebar("pageDown")},{leader:"",alias:"k",description:"Scroll body up",path:La,callback:()=>pi.scrollContent("up")},{leader:"",alias:"j",description:"Scroll body down",path:La,callback:()=>pi.scrollContent("down")},{leader:"",alias:"K",description:"Scroll body page up",path:La,callback:()=>pi.scrollContent("pageUp")},{leader:"",alias:"J",description:"Scroll body page down",path:La,callback:()=>pi.scrollContent("pageDown")}],Fa["github.com"]=[{alias:";ru",description:"Sort by most recently updated",callback:()=>ni.changeSearchSorting("updated")},{alias:";rs",description:"Sort by most stars",callback:()=>ni.changeSearchSorting("stars")},{alias:";rr",description:"Download associated gist files (raw)",callback:ni.downloadGistFiles},{alias:".l",description:"Add repository to list(s) (beta)",callback:ni.addRepositoryToList},{alias:"gT",description:"View topic on SourceGraph",callback:ni.viewTopicOnSourceGraph},{alias:"A",description:"Open repository Actions page",callback:()=>ni.openRepoPage("/actions")},{alias:"C",description:"Open repository Commits page",callback:()=>ni.openRepoPage("/commits")},{alias:"I",description:"Open repository Issues page",callback:()=>ni.openRepoPage("/issues")},{alias:"N",description:"Open notifications page",callback:()=>ni.openPage("/notifications")},{alias:"P",description:"Open repository Pull Requests page",callback:()=>ni.openRepoPage("/pulls")},{alias:"R",description:"Open Repository page",callback:()=>ni.openRepoPage("/")},{alias:"S",description:"Open repository Settings page",callback:()=>ni.openRepoPage("/settings")},{alias:"W",description:"Open repository Wiki page",callback:()=>ni.openRepoPage("/wiki")},{alias:"X",description:"Open repository Security page",callback:()=>ni.openRepoPage("/security")},{alias:"O",description:"Open repository Owner's profile page",callback:ni.openRepoOwner},{alias:"M",description:"Open your profile page ('Me')",callback:ni.openProfile},{alias:"a",description:"View Repository",callback:ni.openRepo},{alias:"u",description:"View User",callback:ni.openUser},{alias:"f",description:"View File",callback:ni.openFile},{alias:"c",description:"View Commit",callback:ni.openCommit},{alias:"i",description:"View Issue",callback:ni.openIssue},{alias:"p",description:"View Pull Request",callback:ni.openPull},{alias:"e",description:"View external link",callback:()=>Gr("a[rel=nofollow]")},{leader:"",alias:"gu",description:"Go up one path in the URL (GitHub)",callback:ni.goParent},{alias:"s",description:"Toggle Star",callback:ni.star({toggle:!0})},{alias:"yy",description:"Copy repository name (owner/repo)",callback:async()=>Aa.write(vr({count:2}))},{alias:"l",description:"Expand all in gh feed",callback:ni.expandAllInFeed},{alias:"D",description:"Open in github.dev (new tab)",callback:()=>ni.openInDev({newTab:!0})},{alias:"gD",description:"Open go.dev documentation for the project",callback:ni.viewGodoc},{alias:"G",description:"View on SourceGraph",callback:ni.viewSourceGraph},{alias:"g",description:"View on SourceGraph (Preserve Tab)",callback:ni.viewSourceGraphInSameTab},{alias:"r",description:"View live raw version of file",callback:()=>ni.selectFile({directories:!1}).then((e=>ns(e.rawUrl,{newTab:!0})))},{alias:"y0",description:"Copy raw link to file",callback:()=>ni.selectFile({directories:!1}).then((e=>Aa.write(e.rawUrl)))},{alias:"yf",description:"Copy link to file",callback:()=>ni.selectFile().then((e=>Aa.write(e.url)))},{alias:"gcp",description:"Open clipboard string as file path in repo",callback:ni.openFileFromClipboard},{alias:"yl",description:"Extract all links from search results",callback:ni.extractAllLinksFromSearch},{alias:"yr",description:"Extract all raw links from search results",callback:ni.extractAllRawLinksFromSearch},{alias:"ys",description:"Extract all unique repo slugs from search results",callback:ni.extractAllRepoSlugsFromSearch},{alias:"n",description:"Next page of search results",callback:ni.nextPage},{alias:"p",description:"Previous page of search results",callback:ni.previousPage}],Fa["replit.com"]=[{alias:"b",description:"Toggle left sidebar",callback:Ji.toggleLeftSidebar},{alias:"m",description:"Maximize code pane",callback:Ji.maximizeCodePane},{alias:"r",description:"Restore code pane",callback:Ji.minimizeCodePane},{alias:"s",description:"Split pane",callback:Ji.splitPane}],Fa["raw.githubusercontent.com"]=[{alias:"R",description:"Open Repository page",callback:()=>ni.openRepoPage("/")},{alias:"F",description:"Open Source File",callback:ni.openSourceFile}],Fa["github.io"]=[{alias:"R",description:"Open Repository page",callback:()=>ni.openGithubPagesRepo()}],Fa["gitlab.com"]=[{alias:"s",description:"Toggle Star",callback:_a.star},{alias:"y",description:"Copy Project Path",callback:()=>Aa.write(vr({count:2}))},{alias:"Y",description:"Copy Project Path (including domain)",callback:()=>Aa.write(vr({count:2,domain:!0}))}],Fa["lobste.rs"]=[{alias:"f",description:"Open Link and Comments [Lobsters]",path:/^(page.*)?$/,callback:()=>(({story:e,link:t,comments:o}={})=>{wa.create(e,(e=>{((e=[])=>{new Set(e.map((e=>e.href))).forEach((e=>u.RUNTIME("openLink",{tab:{tabbed:!0,active:!1},url:e})))})([Lr(`*[id="${e.id}"] ${t}`),Lr(`*[id="${e.id}"] ${o}`)])}))})({story:"li.story",link:"a.u-url",comments:".comments_label a"})}],Fa["x.com"]=[{alias:"ye",description:"Get Twitter embed script",callback:()=>async()=>Aa.write(await(async e=>{if("twitter.com"!==e.hostname&&"mobile.twitter.com"!==e.hostname&&"x.com"!==e.hostname||!/^\/\w+\/status\/\d+/.exec(e.pathname))return;const t=new URL("https://publish.twitter.com/oembed");t.searchParams.set("url",e.href),t.searchParams.set("omit_script","t"),t.searchParams.set("lang",navigator.language||"en");const o=await fetch(t.href);if(!o.ok)throw new Error(`${t.href}: response is not ok ${JSON.stringify(o.statusText)}`);return(await o.json()).html})(new URL(window.location.href)))},{alias:"f",description:"Follow user",callback:()=>Gr("div[role='button'][data-testid$='follow']")},{alias:"s",description:"Like tweet",callback:()=>Gr("div[role='button'][data-testid$='like']")},{alias:"R",description:"Retweet",callback:()=>Gr("div[role='button'][data-testid$='retweet']")},{alias:"c",description:"Comment/Reply",callback:()=>Gr("div[role='button'][data-testid='reply']")},{alias:"T",description:"New tweet",callback:()=>document.querySelector("a[role='button'][data-testid='SideNav_NewTweet_Button']").click()},{alias:"u",description:"Goto user",callback:hs.openUser},{alias:"t",description:"Goto tweet",callback:()=>Gr("article, article div[data-focusable='true'][role='link'][tabindex='0']")}],Fa["bsky.app"]=[{alias:"d",description:"Copy user DID",callback:Ts.copyDID},{alias:"p",description:"Copy user post ID",callback:Ts.copyPostID}],Fa["reddit.com"]=[{alias:"x",description:"Collapse comment",callback:()=>Gr(".expand")},{alias:"X",description:"Collapse next comment",callback:Ea.collapseNextComment},{alias:"s",description:"Upvote",callback:()=>Gr(".arrow.up")},{alias:"S",description:"Downvote",callback:()=>Gr(".arrow.down")},{alias:"e",description:"Expand expando",callback:()=>Gr(".expando-button")},{alias:"a",description:"View post (link)",callback:()=>Gr(".title")},{alias:"A",description:"View post (link) (non-active new tab)",callback:()=>Gr(".title",ss({newTab:!0,active:!1}))},{alias:"c",description:"View post (comments)",callback:()=>Gr(".comments")},{alias:"C",description:"View post (comments) (non-active new tab)",callback:()=>Gr(".comments",ss({newTab:!0,active:!1}))}],Fa["news.ycombinator.com"]=[{alias:"x",description:"Collapse comment",callback:()=>Gr(".togg")},{alias:"X",description:"Collapse next comment",callback:cs.collapseNextComment},{alias:"s",description:"Upvote",callback:()=>Gr(".votearrow[title='upvote']")},{alias:"S",description:"Downvote",callback:()=>Gr(".votearrow[title='downvote']")},{alias:"a",description:"View post (link)",callback:()=>Gr(".titleline>a")},{alias:"A",description:"View post (link and comments)",callback:()=>Gr(".athing",cs.openLinkAndComments)},{alias:"c",description:"View post (comments)",callback:()=>Gr(".subline>a[href^='item']")},{alias:"C",description:"View post (comments) (non-active new tab)",callback:()=>Gr(".subline>a[href^='item']",ss({newTab:!0,active:!1}))},{alias:"e",description:"View external link",callback:()=>Gr("a[rel=nofollow]")},{leader:"",alias:"gp",description:"Go to parent",callback:cs.goParent},{leader:"",alias:"]]",description:"Next page",callback:()=>cs.goPage(1)},{leader:"",alias:"[[",description:"Prev page",callback:()=>cs.goPage(-1)}],Fa["producthunt.com"]=[{alias:"a",description:"View product (external)",callback:gs.openExternal},{alias:"v",description:"View product",callback:()=>Gr("ul[class^='postsList_'] > li > div[class^='item_'] > a")},{alias:"s",description:"Upvote product",callback:()=>Gr("button[data-test='vote-button']")}],Fa["claude.ai"]=[{alias:"i",leader:"",description:"Focus input",callback:()=>setTimeout((()=>u.Hints.dispatchMouseClick(document.querySelector(".ProseMirror[contenteditable=true]"))),0)}],Fa["wikipedia.org"]=[{alias:"s",description:"Toggle simple version of current article",callback:Es.toggleSimple},{alias:"a",description:"View page",callback:()=>Gr("#bodyContent :not(sup):not(.mw-editsection) > a:not([rel=nofollow])")},{alias:"e",description:"View external link",callback:()=>Gr("a[rel=nofollow]")},{alias:"ys",description:"Copy article summary as Markdown",callback:()=>Aa.write(Es.markdownSummary())},{alias:"R",description:"View WikiRank for current article",callback:Es.viewWikiRank}],Fa["raycast.com"]=[{alias:"s",description:"Go to source repo",callback:ia.goToRepo}],Fa["craigslist.org"]=[{alias:"a",description:"View listing",callback:()=>Gr("a.result-title")}],Fa["stackoverflow.com"]=[{alias:"a",description:"View question",callback:()=>Gr("a.question-hyperlink")}],Fa["aur.archlinux.org"]=[{alias:"b",description:"View pkgbuild",callback:Pi.viewPkgbuild},{alias:"u",description:"Go to upstream",callback:Pi.goToUpstream},{alias:"a",description:"View package",callback:()=>Gr("a[href^='/packages/'][href$='/']")}],Fa["ebay.com"]=[{alias:"fs",description:"Fakespot",callback:(e=window.location.href)=>ns(`https://fakespot.com/analyze?ra=true&url=${e}`,{newTab:!0,active:!1})}],Fa["kagi.com"]=[{alias:"gg",description:"Kagi to Google",callback:_s.openKagiInGoogle}],Fa["chat.openai.com"]=[{alias:"n",description:"New chat",callback:()=>(async()=>{const e=cg.getNewChatLink();e?(await(async e=>(e.click(),await Tr((()=>[...document.querySelectorAll('li[class*="group/toggle"]')].find((e=>"GPT-4"===e.innerText))))))(e)).querySelector("button>div").click():location.assign("https://chat.openai.com/?model=gpt-4")})()},{alias:"a",description:"Open chat",callback:()=>Gr([...cg.getNewChatLink().parentElement.nextSibling.nextSibling.querySelectorAll("a")])}];const Da=(e,t=wi.meta_citation_doi)=>{Fa[e]||(Fa[e]=[]),Fa[e].push({alias:"O",description:"Open DOI",callback:()=>{const e=(e=>{if(!G)return void mi.showBanner("DOI Handler not configured (see conf.priv.example.js)");const t=e();if(t)return G(t);mi.showBanner("DOI not found")})(fi.meta_citation_doi);e&&ns(e,{newTab:!0})},hide:!0})};Da("aaai.org"),Da("academic.oup.com"),Da("aeaweb.org"),Da("aging-us.com"),Da("ahajournals.org",wi.meta_dcIdentifier_doi),Da("ajnr.org"),Da("annualreviews.org",wi.meta_dcIdentifier_doi),Da("apa.org",(()=>{var e,t;return null==(t=null==(e=document.querySelector(".citation a"))?void 0:e.innerText)?void 0:t.replace(/^https:\/\/doi\.org\//,"")})),Da("ashpublications.org"),Da("asnjournals.org"),Da("biomedcentral.com"),Da("bmj.com"),Da("brill.com"),Da("cambridge.org"),Da("cell.com"),Da("cmaj.ca"),Da("cochranelibrary.com"),Da("diabetesjournals.org"),Da("direct.mit.edu"),Da("dl.acm.org",wi.meta_dcIdentifier_doi),Da("elifesciences.org",(()=>{var e,t;return null==(t=null==(e=document.querySelector("meta[name='dc.identifier']"))?void 0:e.content)?void 0:t.replace(/^doi:/,"")})),Da("embopress.org"),Da("emerald.com",wi.meta_dcIdentifier_doi),Da("episciences.org"),Da("epubs.siam.org",wi.meta_dcIdentifier_doi),Da("ersjournals.com"),Da("europepmc.org"),Da("frontiersin.org"),Da("future-science.com",wi.meta_dcIdentifier_doi),Da("go.gale.com"),Da("ieee.org",(()=>{var e;return null==(e=document.querySelector(".stats-document-abstract-doi a"))?void 0:e.innerText})),Da("ingentaconnect.com",(()=>{var e,t;return null==(t=null==(e=document.querySelector("meta[name='DC.identifier']"))?void 0:e.content)?void 0:t.replace(/^info:doi\//,"")})),Da("jacc.or",wi.meta_dcIdentifier_doi),Da("jamanetwork.com"),Da("jci.org"),Da("jfdc.cnic.cn"),Da("jlr.org"),Da("jneurosci.org"),Da("journals.lww.com"),Da("journals.physiology.org",wi.meta_dcIdentifier_doi),Da("journals.plos.org"),Da("journals.sagepub.com",wi.meta_dcIdentifier_doi),Da("journals.uchicago.edu",wi.meta_dcIdentifier_doi),Da("jst.go.jp"),Da("karger.com"),Da("koreascience.kr"),Da("koreascience.or.kr"),Da("liebertpub.com",wi.meta_dcIdentifier_doi),Da("mdpi.com"),Da("msp.org",(()=>{var e;return null==(e=document.querySelector(".paper-doi a"))?void 0:e.innerText})),Da("nature.com"),Da("nejm.org",wi.meta_dcIdentifier_doi),Da("nowpublishers.com"),Da("nsf.gov"),Da("ocl-journal.org"),Da("onlinelibrary.wiley.com"),Da("pnas.org"),Da("ncbi.nlm.nih.gov"),Da("pubs.acs.org",wi.meta_dcIdentifier_doi),Da("pubs.geoscienceworld.org"),Da("pubs.rsna.org",wi.meta_dcIdentifier_doi),Da("research.manchester.ac.uk"),Da("royalsocietypublishing.org",wi.meta_dcIdentifier_doi),Da("rupress.org"),Da("science.org",wi.meta_dcIdentifier_doi),Da("sciencedirect.com"),Da("scitation.org"),Da("spandidos-publications.com"),Da("spiedigitallibrary.org"),Da("springer.com"),Da("synapse.koreamed.org"),Da("tandfonline.com",wi.meta_dcIdentifier_doi),Da("thelancet.com"),Da("worldscientific.com",wi.meta_dcIdentifier_doi);const qa={"wikipedia.org":["wiktionary.org","wikiquote.org","wikisource.org","wikimedia.org","mediawiki.org","wikivoyage.org","wikibooks.org","wikinews.org","wikiversity.org","wikidata.org"],"stackoverflow.com":["stackexchange.com","serverfault.com","superuser.com","askubuntu.com","stackapps.com","mathoverflow.net"]};console.dir({unmaps:$a,maps:Fa,aliases:qa});const Ia={unmaps:$a,maps:Fa,aliases:qa},ja={settings:{ignoredFrameHosts:["https://tpc.googlesyndication.com"],editableBodyCare:!0,digitForRepeat:!0,hintAlign:"left",hintCharacters:"fdsajklghvcxzmbnuioprewqty",hintsCharactersAll:"crhtnsueoabmwvzkjq;",hintsCharactersLeft:"iueoakjq;",hintsCharactersRight:"dhtnsbmwvzcr",omnibarSuggestionTimeout:500,omnibarMaxResults:40,richHintsForKeystroke:500,stealFocusOnLoad:!1,defaultSearchEngine:"ka",enableAutoFocus:!0,modeAfterYank:"Normal",noPdfViewer:!0,smoothScroll:!0,tabsMRUOrder:!0,scrollStepSize:140,omnibarHistoryCacheSize:1e3,tabsThreshold:0,theme:b,nextLinkRegex:/((下一|次の|次へ)|\b(next|older|more|forw(ard)?)\b|continue|(>+|›|〉|⌄|⋁|≻|⋎|⋗|»|≫|⋙|→|↓|⟶|⇀|⇁|⇂|⇃|⥛|⥟|⥝|⥡|⥓|⥗|⥕|⥙|⤍|⤏|⇢|⇣|↠|↡|⇾|↣|↦|↧|⟼|⇸|⍆|⍖|⤈|⇻|⇟|⇥|⤓|⇲|⤞|⤠|⤻|↝|⇝|↬|↷|⤾|↻|⟳|⥁|↪|⤵|⤷|⇒|⇓|⟹|⤇|⟾|⥤|⥥|⥬|⥭|⇛|⤋|⟱|⇉|⇊|⇨|⇩|➡|⬇|⊳|▶|▷|▸|▹|►|▻|▼|▽|▾|▿|☛|☞|☟))/i,prevLinkRegex:/((上一|前の|前へ)|\b(prev(ious)?|newer|less|back(ward)?)\b|(<+|‹|〈|⌃|⋀|≺|⋏|⋖|«|≪|⋘|←|↑|⟵|↼|↽|↾|↿|⥚|⥞|⥜|⥠|⥒|⥖|⥔|⥘|⤌|⤎|⇠|⇡|↞|↟|⇽|↢|↤|↥|⟻|⇷|⍅|⍏|⤉|⇺|⇞|⇤|⤒|⇱|⤝|⤟|⤺|↜|⇜|↫|↶|⤿|↺|⟲|⥀|↩|⤴|⤶|⇐|⇑|⟸|⤆|⟽|⥢|⥣|⥪|⥫|⇚|⤊|⟰|⇇|⇈|⇦|⇧|⬅|⬆|⊲|◀|◁|◂|◃|◄|◅|▲|△|▴|▵|☚|☜|☝))/i,optionalRegex:/(\b(confirm|okay|ok|understand|g(e|o)t\sit|accept|dismiss|close|continue|cancel|yes|no)\b)/i,loginLinkRegex:/(\blog\b|\bsign\b|\bjoin\b|登录|注册|加入|登錄|註冊|加入)/i,useLocalMarkdownAPI:!1,showModeStatus:!0,autoSpeakOnInlineQuery:!0,interceptedErrors:[],lurkingPattern:function(){const e=["\bgithub.com\b","\bperplexity.ai\b","\bsourcegraph.com\b","\bcl.localhost\b","\bchatlands.com\b","\bkermit.dog\b"].join("|");return new RegExp(`.*${e}.*`,"i")}(),blocklistPattern:new RegExp(["youtube.com/watch","console.aws.amazon.com","colab.research.google.com","www.notion.so","docs.google.com","mail.google.com","calendar.google.com","readwise.io","udemy.com","overleaf.com","duolingo.com","inoreader.com","coinmarketcap.com"].join("|"),"i")},keys:Ia,searchEngines:Br,siteleader:"<Space>",searchleader:"a",logLevels:["log","warn","error"]},Na={DICT_LOOKUP:{url:function(e){return`https://dictionaryapi.com/api/v3/references/collegiate/json/${e}?key=${C.dictionary_api_key}`},parseResult:function(e){try{const[t]=JSON.parse(e.text);if(t){let e="<ul><li>No definitions found</li></ul>",o="<ul><li>No pronunciations found</li></ul>";if(t.hasOwnProperty("shortdef")){const o=[];for(let e of t.shortdef)o.push(`${e}`);e=`<ul>${o.map((function(e){return`<li>${e}</li>`})).join("")}</ul>`}if(t.hasOwnProperty("hwi")){const e=[],r=t.hwi.prs;if(r&&0!==r.length){for(let t=0;t<r.length;t++)r[t].l?e.push(`<li>${r[t].l} -- ${r[t].ipa}</li>`):e.push(`<li>${r[t].ipa}</li>`);o=`<ul>${e.join("")}</ul>`}}return`<h3>Pronunciations</h3>\n ${o}\n <hr/>\n <h3>Definitions</h3>\n ${e}\n `}return"\n <h3>This is not the definition you were looking for...</h3>\n "}catch(t){return console.log(t.message),"Something bad happend... Look behind you, a three headed monkey!"}}}},{categories:za}=xa,{mapkey:Ha,map:Ma,unmap:Ba,Clipboard:Wa,Front:Va,removeSearchAlias:Ja,addSearchAlias:Ka}=u,Ya=(e,t,o)=>{console.debug("registerKey",e,t,o);const{alias:r,callback:s,leader:n=("global"===e?"":o),category:i=za.misc,description:a="",path:c="(/.*)?"}=t,l={},p=`${n}${r}`;if("global"!==e){const t=e.replace(".","\\.");l.domain=new RegExp(`^http(s)?://(([a-zA-Z0-9-_]+\\.)*)(${t})${c}`)}const d=`#${i} ${a}`;void 0!==t.map?Ma(r,t.map):Ha(p,d,s,l)};if("undefined"!=typeof window)try{(async()=>{var e;if(window.surfingKeys=u,console.dir(ja,{depth:null}),ja.settings&&Object.assign(settings,"function"==typeof ja.settings?ja.settings():ja.settings),ja.logLevels&&(console.debug("conf.logLevels",ja.logLevels),await Sr("logLevels",ja.logLevels)),ja.keys&&ja.keys.unmaps){const{unmaps:e}=ja.keys;if(e.mappings)for(const t of e.mappings)console.debug("unmap",t),Ba(t);if(e.searchAliases)for(const[t,o]of Object.entries(e.searchAliases))for(const e of o)console.debug("removeSearchAlias",e,t),Ja(e,t)}if(ja.searchEngines&&((e,t)=>{for(const o of e){const e={favicon_url:o.favicon,skipMaps:!0};console.debug("registerSearchEngines",o,e),Ka(o.alias,o.name,o.search,"",o.compl,o.callback,void 0,e),Ha(`${t}${o.alias}`,`#8Search ${o.name}`,(()=>Va.openOmnibar({type:"SearchEngine",extra:o.alias}))),Ha(`c${t}${o.alias}`,`#8Search ${o.name} with clipboard contents`,(()=>{Wa.read((e=>{Va.openOmnibar({type:"SearchEngine",pref:e.data,extra:o.alias})}))}))}})(ja.searchEngines,ja.searchleader??"o"),null==(e=ja.keys)?void 0:e.maps){const{keys:e}=ja,{maps:t,aliases:o={}}=e;console.debug("registerKeys",{maps:t,aliases:o,conf:ja}),((e,t,o)=>{const r=Object.entries(t).flatMap((([t,o])=>o.flatMap((o=>({[o]:e[t]}))))),s=Object.assign({},e,...r);for(const[n,i]of Object.entries(s))for(const e of i)console.debug("registerKey",n,e,o),Ya(n,e,o)})(t,o,ja.siteleader)}Va.registerInlineQuery(Na.DICT_LOOKUP)})()}catch(Za){console.error(Za)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment