204 lines
No EOL
118 KiB
JavaScript
204 lines
No EOL
118 KiB
JavaScript
(()=>{var e={856:function(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,a){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,a)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,r,o){return n=a()?Reflect.construct:function(e,a,n){var r=[null];r.push.apply(r,a);var o=new(Function.bind.apply(e,r));return n&&t(o,n.prototype),o},n.apply(null,arguments)}function r(e){return o(e)||i(e)||s(e)||l()}function o(e){if(Array.isArray(e))return c(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p=Object.hasOwnProperty,d=Object.setPrototypeOf,u=Object.isFrozen,m=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,g=Object.freeze,f=Object.seal,b=Object.create,w="undefined"!=typeof Reflect&&Reflect,k=w.apply,y=w.construct;k||(k=function(e,t,a){return e.apply(t,a)}),g||(g=function(e){return e}),f||(f=function(e){return e}),y||(y=function(e,t){return n(e,r(t))});var v=R(Array.prototype.forEach),x=R(Array.prototype.pop),S=R(Array.prototype.push),_=R(String.prototype.toLowerCase),$=R(String.prototype.toString),T=R(String.prototype.match),L=R(String.prototype.replace),O=R(String.prototype.indexOf),C=R(String.prototype.trim),E=R(RegExp.prototype.test),N=A(TypeError);function R(e){return function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];return k(e,t,n)}}function A(e){return function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return y(e,a)}}function q(e,t,a){a=a||_,d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=a(r);o!==r&&(u(t)||(t[n]=o),r=o)}e[r]=!0}return e}function I(e){var t,a=b(null);for(t in e)k(p,e,[t])&&(a[t]=e[t]);return a}function D(e,t){for(;null!==e;){var a=h(e,t);if(a){if(a.get)return R(a.get);if("function"==typeof a.value)return R(a.value)}e=m(e)}function n(e){return console.warn("fallback value for",e),null}return n}var P=g(["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"]),U=g(["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"]),H=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=g(["animate","color-profile","cursor","discard","fedropshadow","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"]),j=g(["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"]),z=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=g(["#text"]),V=g(["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","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","xmlns","slot"]),B=g(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),G=g(["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"]),J=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=f(/<%[\w\W]*|[\w\W]*%>/gm),K=f(/\${[\w\W]*}/gm),Z=f(/^data-[\-\w.\u00B7-\uFFFF]/),X=f(/^aria-[\-\w]+$/),Q=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=f(/^html$/i),ne=function(){return"undefined"==typeof window?null:window},re=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";a.currentScript&&a.currentScript.hasAttribute(r)&&(n=a.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne(),a=function(e){return oe(e)};if(a.version="2.4.1",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var n=t.document,o=t.document,i=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,l=t.Element,p=t.NodeFilter,d=t.NamedNodeMap,u=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,m=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,b=l.prototype,w=D(b,"cloneNode"),k=D(b,"nextSibling"),y=D(b,"childNodes"),R=D(b,"parentNode");if("function"==typeof s){var A=o.createElement("template");A.content&&A.content.ownerDocument&&(o=A.content.ownerDocument)}var ie=re(f,n),se=ie?ie.createHTML(""):"",ce=o,le=ce.implementation,pe=ce.createNodeIterator,de=ce.createDocumentFragment,ue=ce.getElementsByTagName,me=n.importNode,he={};try{he=I(o).documentMode?o.documentMode:{}}catch(e){}var ge={};a.isSupported="function"==typeof R&&le&&void 0!==le.createHTMLDocument&&9!==he;var fe,be,we=W,ke=Y,ye=K,ve=Z,xe=X,Se=ee,_e=te,$e=Q,Te=null,Le=q({},[].concat(r(P),r(U),r(H),r(j),r(F))),Oe=null,Ce=q({},[].concat(r(V),r(B),r(G),r(J))),Ee=Object.seal(Object.create(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}})),Ne=null,Re=null,Ae=!0,qe=!0,Ie=!1,De=!1,Pe=!1,Ue=!1,He=!1,Me=!1,je=!1,ze=!1,Fe=!0,Ve=!1,Be="user-content-",Ge=!0,Je=!1,We={},Ye=null,Ke=q({},["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"]),Ze=null,Xe=q({},["audio","video","img","source","image","track"]),Qe=null,et=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,it=null,st=q({},[tt,at,nt],$),ct=["application/xhtml+xml","text/html"],lt="text/html",pt=null,dt=o.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}),t=I(t),fe=fe=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?lt:t.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===fe?$:_,Te="ALLOWED_TAGS"in t?q({},t.ALLOWED_TAGS,be):Le,Oe="ALLOWED_ATTR"in t?q({},t.ALLOWED_ATTR,be):Ce,it="ALLOWED_NAMESPACES"in t?q({},t.ALLOWED_NAMESPACES,$):st,Qe="ADD_URI_SAFE_ATTR"in t?q(I(et),t.ADD_URI_SAFE_ATTR,be):et,Ze="ADD_DATA_URI_TAGS"in t?q(I(Xe),t.ADD_DATA_URI_TAGS,be):Xe,Ye="FORBID_CONTENTS"in t?q({},t.FORBID_CONTENTS,be):Ke,Ne="FORBID_TAGS"in t?q({},t.FORBID_TAGS,be):{},Re="FORBID_ATTR"in t?q({},t.FORBID_ATTR,be):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Ae=!1!==t.ALLOW_ARIA_ATTR,qe=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,Me=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Je=t.IN_PLACE||!1,$e=t.ALLOWED_URI_REGEXP||$e,rt=t.NAMESPACE||nt,t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(qe=!1),je&&(Me=!0),We&&(Te=q({},r(F)),Oe=[],!0===We.html&&(q(Te,P),q(Oe,V)),!0===We.svg&&(q(Te,U),q(Oe,B),q(Oe,J)),!0===We.svgFilters&&(q(Te,H),q(Oe,B),q(Oe,J)),!0===We.mathMl&&(q(Te,j),q(Oe,G),q(Oe,J))),t.ADD_TAGS&&(Te===Le&&(Te=I(Te)),q(Te,t.ADD_TAGS,be)),t.ADD_ATTR&&(Oe===Ce&&(Oe=I(Oe)),q(Oe,t.ADD_ATTR,be)),t.ADD_URI_SAFE_ATTR&&q(Qe,t.ADD_URI_SAFE_ATTR,be),t.FORBID_CONTENTS&&(Ye===Ke&&(Ye=I(Ye)),q(Ye,t.FORBID_CONTENTS,be)),Ge&&(Te["#text"]=!0),Pe&&q(Te,["html","head","body"]),Te.table&&(q(Te,["tbody"]),delete Ne.tbody),g&&g(t),pt=t)},ht=q({},["mi","mo","mn","ms","mtext"]),gt=q({},["foreignobject","desc","title","annotation-xml"]),ft=q({},["title","style","font","a","script"]),bt=q({},U);q(bt,H),q(bt,M);var wt=q({},j);q(wt,z);var kt=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var a=_(e.tagName),n=_(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===nt?"svg"===a:t.namespaceURI===tt?"svg"===a&&("annotation-xml"===n||ht[n]):Boolean(bt[a]):e.namespaceURI===tt?t.namespaceURI===nt?"math"===a:t.namespaceURI===at?"math"===a&>[n]:Boolean(wt[a]):e.namespaceURI===nt?!(t.namespaceURI===at&&!gt[n])&&!(t.namespaceURI===tt&&!ht[n])&&!wt[a]&&(ft[a]||!bt[a]):!("application/xhtml+xml"!==fe||!it[e.namespaceURI]))},yt=function(e){S(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},vt=function(e,t){try{S(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){S(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Me||je)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,a;if(He)e="<remove></remove>"+e;else{var n=T(e,/^[\r\n\t ]+/);a=n&&n[0]}"application/xhtml+xml"===fe&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ie?ie.createHTML(e):e;if(rt===nt)try{t=(new h).parseFromString(r,fe)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?"":r}catch(e){}}var i=t.body||t.documentElement;return e&&a&&i.insertBefore(o.createTextNode(a),i.childNodes[0]||null),rt===nt?ue.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:i},St=function(e){return pe.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},_t=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},$t=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Tt=function(e,t,n){ge[e]&&v(ge[e],(function(e){e.call(a,t,n,pt)}))},Lt=function(e){var t;if(Tt("beforeSanitizeElements",e,null),_t(e))return yt(e),!0;if(E(/[\u0080-\uFFFF]/,e.nodeName))return yt(e),!0;var n=be(e.nodeName);if(Tt("uponSanitizeElement",e,{tagName:n,allowedTags:Te}),e.hasChildNodes()&&!$t(e.firstElementChild)&&(!$t(e.content)||!$t(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return yt(e),!0;if("select"===n&&E(/<template/i,e.innerHTML))return yt(e),!0;if(!Te[n]||Ne[n]){if(!Ne[n]&&Ct(n)){if(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,n))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))return!1}if(Ge&&!Ye[n]){var r=R(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var i=o.length-1;i>=0;--i)r.insertBefore(w(o[i],!0),k(e))}return yt(e),!0}return e instanceof l&&!kt(e)?(yt(e),!0):"noscript"!==n&&"noembed"!==n||!E(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=L(t,we," "),t=L(t,ke," "),t=L(t,ye," "),e.textContent!==t&&(S(a.removed,{element:e.cloneNode()}),e.textContent=t)),Tt("afterSanitizeElements",e,null),!1):(yt(e),!0)},Ot=function(e,t,a){if(Fe&&("id"===t||"name"===t)&&(a in o||a in dt))return!1;if(qe&&!Re[t]&&E(ve,t));else if(Ae&&E(xe,t));else if(!Oe[t]||Re[t]){if(!(Ct(e)&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&E(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||"is"===t&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,a)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(a))))return!1}else if(Qe[t]);else if(E($e,L(a,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(a,"data:")||!Ze[e])if(Ie&&!E(Se,L(a,_e,"")));else if(a)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},Et=function(t){var n,r,o,i;Tt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(i=s.length;i--;){var l=n=s[i],p=l.name,d=l.namespaceURI;if(r="value"===p?n.value:C(n.value),o=be(p),c.attrName=o,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,Tt("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(vt(p,t),c.keepAttr))if(E(/\/>/i,r))vt(p,t);else{De&&(r=L(r,we," "),r=L(r,ke," "),r=L(r,ye," "));var u=be(t.nodeName);if(Ot(u,o,r)){if(!Ve||"id"!==o&&"name"!==o||(vt(p,t),r=Be+r),ie&&"object"===e(f)&&"function"==typeof f.getAttributeType)if(d);else switch(f.getAttributeType(u,o)){case"TrustedHTML":r=ie.createHTML(r);break;case"TrustedScriptURL":r=ie.createScriptURL(r)}try{d?t.setAttributeNS(d,p,r):t.setAttribute(p,r),x(a.removed)}catch(e){}}}}Tt("afterSanitizeAttributes",t,null)}},Nt=function e(t){var a,n=St(t);for(Tt("beforeSanitizeShadowDOM",t,null);a=n.nextNode();)Tt("uponSanitizeShadowNode",a,null),Lt(a)||(a.content instanceof i&&e(a.content),Et(a));Tt("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(r){var o,s,l,p,d,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!$t(r)){if("function"!=typeof r.toString)throw N("toString is not a function");if("string"!=typeof(r=r.toString()))throw N("dirty is not a string, aborting")}if(!a.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof r)return t.toStaticHTML(r);if($t(r))return t.toStaticHTML(r.outerHTML)}return r}if(Ue||mt(u),a.removed=[],"string"==typeof r&&(Je=!1),Je){if(r.nodeName){var m=be(r.nodeName);if(!Te[m]||Ne[m])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof c)1===(s=(o=xt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!Me&&!De&&!Pe&&-1===r.indexOf("<"))return ie&&ze?ie.createHTML(r):r;if(!(o=xt(r)))return Me?null:ze?se:""}o&&He&&yt(o.firstChild);for(var h=St(Je?r:o);l=h.nextNode();)3===l.nodeType&&l===p||Lt(l)||(l.content instanceof i&&Nt(l.content),Et(l),p=l);if(p=null,Je)return r;if(Me){if(je)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return Oe.shadowroot&&(d=me.call(n,d,!0)),d}var g=Pe?o.outerHTML:o.innerHTML;return Pe&&Te["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&E(ae,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),De&&(g=L(g,we," "),g=L(g,ke," "),g=L(g,ye," ")),ie&&ze?ie.createHTML(g):g},a.setConfig=function(e){mt(e),Ue=!0},a.clearConfig=function(){pt=null,Ue=!1},a.isValidAttribute=function(e,t,a){pt||mt({});var n=be(e),r=be(t);return Ot(n,r,a)},a.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],S(ge[e],t))},a.removeHook=function(e){if(ge[e])return x(ge[e])},a.removeHooks=function(e){ge[e]&&(ge[e]=[])},a.removeAllHooks=function(){ge={}},a}return oe()}()},119:(e,t,a)=>{"use strict";const n=a(978),r=a(658);t.all=n,t.check=e=>(e=(e||"").toString().toLowerCase(),n.includes(e)),t.oddballs=e=>e&&e in r?r[e]:Object.keys(r).sort()},658:e=>{"use strict";e.exports='{\n\t"avatars": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"assets": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"bookmarks": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"checks": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"conversations": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"labels": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"media": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"nodes": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"owners": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"page": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"registry": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"seats": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"shared": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"tasks": {"reserved": true, "taken": true, "typical": true, "included": false},\n\t"uploads": {"reserved": true, "taken": true, "typical": true, "included": false},\n\n\t"account": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/settings/profile", "included": true},\n\t"apps": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/marketplace", "included": true},\n\t"blog": {"reserved": true, "taken": false, "typical": false, "redirect": "https://blog.github.com", "included": true},\n\t"c": {"reserved": true, "taken": false, "typical": false, "redirect": "https://support.github.com/", "included": true},\n\t"contact": {"reserved": true, "taken": false, "typical": false, "redirect": "https://support.github.com/", "included": true},\n\t"contributing": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/about/careers", "included": true},\n\t"customer": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/business/customers", "included": true},\n\t"customers": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/business/customers", "included": true},\n\t"developer": {"reserved": true, "taken": false, "typical": false, "redirect": "https://developer.github.com", "included": true},\n\t"edu": {"reserved": true, "taken": false, "typical": false, "redirect": "https://education.github.com", "included": true},\n\t"guides": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com", "included": true},\n\t"help": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com", "included": true},\n\t"launch": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/search", "included": true},\n\t"mac": {"reserved": true, "taken": false, "typical": false, "redirect": "https://desktop.github.com", "included": true},\n\t"mirrors": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com/articles/about-github-mirrors/", "included": true},\n\t"pages": {"reserved": true, "taken": false, "typical": false, "redirect": "https://pages.github.com", "included": true},\n\t"plans": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/pricing", "included": true},\n\t"press": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/about/press", "included": true},\n\t"readme": {"reserved": true, "taken": false, "typical": false, "included": true},\n\t"repositories": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/trending", "included": true},\n\t"resources": {"reserved": true, "taken": false, "typical": false, "redirect": "https://resources.github.com", "included": true},\n\t"security": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com/articles/github-security/", "included": true},\n\t"settings": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/settings/profile", "included": true},\n\t"signup": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/join", "included": true},\n\t"terms": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com/articles/github-terms-of-service/", "included": true},\n\t"topic": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com/topics", "included": true},\n\t"tos": {"reserved": true, "taken": false, "typical": false, "redirect": "https://help.github.com/articles/github-terms-of-service/", "included": true},\n\t"training": {"reserved": true, "taken": false, "typical": false, "redirect": "https://services.github.com", "included": true},\n\t"users": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com", "included": true},\n\t"wiki": {"reserved": true, "taken": false, "typical": false, "redirect": "https://github.com", "included": true},\n\t"windows": {"reserved": true, "taken": false, "typical": false, "redirect": "https://desktop.github.com", "included": true},\n\n\t"advisories": {"reserved": true, "taken": true, "typical": false, "included": true, "notes": "GitHub Advisory Database"},\n\t"collections": {"reserved": true, "taken": false, "typical": false, "included": true, "notes": "Curated lists of GitHub repos"},\n\t"hovercards": {"reserved": true, "taken": false, "typical": false, "included": true, "notes": "HTTP ERROR 406"},\n\t"inbox": {"reserved": true, "taken": true, "typical": false, "redirect": "https://github.com/410", "included": true, "notes": "410 ERROR"},\n\t"invalid-email-address": {"reserved": true, "taken": true, "typical": false, "included": true, "notes": "HTTP ERROR 404"},\n\t"suggestions": {"reserved": true, "taken": false, "typical": false, "included": true},\n\t"suspended": {"reserved": true, "taken": true, "typical": false, "redirect": "https://github.com", "included": true, "notes": "Page behaviour depends on whether you\'re logged in or if your account is actually suspended"},\n\n\t"case-studies": {"reserved": false, "taken": true, "typical": false, "included": true},\n\t"watching": {"reserved": false, "taken": true, "typical": false, "included": true},\n\t"save-net-neutrality": {"reserved": false, "taken": true, "typical": false, "included": true},\n\n\t"ghost": {"reserved": false, "taken": true, "typical": true, "included": true},\n\n\t"status": {"reserved": true, "taken": false, "typical": false, "included": true}\n}\n'},978:e=>{"use strict";e.exports='[\n "400",\n "401",\n "402",\n "403",\n "404",\n "405",\n "406",\n "407",\n "408",\n "409",\n "410",\n "411",\n "412",\n "413",\n "414",\n "415",\n "416",\n "417",\n "418",\n "419",\n "420",\n "421",\n "422",\n "423",\n "424",\n "425",\n "426",\n "427",\n "428",\n "429",\n "430",\n "431",\n "500",\n "501",\n "502",\n "503",\n "504",\n "505",\n "506",\n "507",\n "508",\n "509",\n "510",\n "511",\n "about",\n "access",\n "account",\n "admin",\n "advisories",\n "anonymous",\n "any",\n "api",\n "apps",\n "attributes",\n "auth",\n "billing",\n "blob",\n "blog",\n "bounty",\n "branches",\n "business",\n "businesses",\n "c",\n "cache",\n "case-studies",\n "categories",\n "central",\n "certification",\n "changelog",\n "cla",\n "cloud",\n "codereview",\n "collection",\n "collections",\n "comments",\n "commit",\n "commits",\n "community",\n "companies",\n "compare",\n "contact",\n "contributing",\n "cookbook",\n "coupons",\n "customer-stories",\n "customer",\n "customers",\n "dashboard",\n "dashboards",\n "design",\n "develop",\n "developer",\n "diff",\n "discover",\n "discussions",\n "docs",\n "downloads",\n "downtime",\n "editor",\n "editors",\n "edu",\n "enterprise",\n "events",\n "explore",\n "featured",\n "features",\n "files",\n "fixtures",\n "forked",\n "garage",\n "ghost",\n "gist",\n "gists",\n "graphs",\n "guide",\n "guides",\n "help",\n "help-wanted",\n "home",\n "hooks",\n "hosting",\n "hovercards",\n "identity",\n "images",\n "inbox",\n "individual",\n "info",\n "integration",\n "interfaces",\n "introduction",\n "invalid-email-address",\n "investors",\n "issues",\n "jobs",\n "join",\n "journal",\n "journals",\n "lab",\n "labs",\n "languages",\n "launch",\n "layouts",\n "learn",\n "legal",\n "library",\n "linux",\n "listings",\n "lists",\n "login",\n "logos",\n "logout",\n "mac",\n "maintenance",\n "malware",\n "man",\n "marketplace",\n "mention",\n "mentioned",\n "mentioning",\n "mentions",\n "migrating",\n "milestones",\n "mine",\n "mirrors",\n "mobile",\n "navigation",\n "network",\n "new",\n "news",\n "none",\n "nonprofit",\n "nonprofits",\n "notices",\n "notifications",\n "oauth",\n "offer",\n "open-source",\n "organisations",\n "organizations",\n "orgs",\n "pages",\n "partners",\n "payments",\n "personal",\n "plans",\n "plugins",\n "popular",\n "popularity",\n "posts",\n "press",\n "pricing",\n "professional",\n "projects",\n "pulls",\n "raw",\n "readme",\n "recommendations",\n "redeem",\n "releases",\n "render",\n "reply",\n "repositories",\n "resources",\n "restore",\n "revert",\n "save-net-neutrality",\n "saved",\n "scraping",\n "search",\n "security",\n "services",\n "sessions",\n "settings",\n "shareholders",\n "shop",\n "showcases",\n "signin",\n "signup",\n "site",\n "spam",\n "sponsors",\n "ssh",\n "staff",\n "starred",\n "stars",\n "static",\n "status",\n "statuses",\n "storage",\n "store",\n "stories",\n "styleguide",\n "subscriptions",\n "suggest",\n "suggestion",\n "suggestions",\n "support",\n "suspended",\n "talks",\n "teach",\n "teacher",\n "teachers",\n "teaching",\n "team",\n "teams",\n "ten",\n "terms",\n "timeline",\n "topic",\n "topics",\n "tos",\n "tour",\n "train",\n "training",\n "translations",\n "tree",\n "trending",\n "updates",\n "username",\n "users",\n "visualization",\n "w",\n "watching",\n "wiki",\n "windows",\n "works-with",\n "www0",\n "www1",\n "www2",\n "www3",\n "www4",\n "www5",\n "www6",\n "www7",\n "www8",\n "www9"\n]\n'}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,a),o.exports}(()=>{"use strict";const e=()=>{if(-1!==window.navigator.userAgent.indexOf("Chrome"))return"Chrome";if(0===window.navigator.vendor.indexOf("Apple Computer, Inc.")){return/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1?"Safari-iOS":"Safari"}return-1!==window.navigator.userAgent.indexOf("Firefox")?"Firefox":"Chrome"},t="undefined"==typeof window?{}:"undefined"!=typeof api?{v1:!0,...api}:{v1:!1,getBrowserName:e,RUNTIME,Clipboard,Normal,Hints,Visual,Front,insertJS:Normal.insertJS,addSearchAlias:addSearchAliasX,aceVimMap,addVimMapKey,cmap,imap,imapkey,getClickableElements,getFormData,map,unmap,unmapAllExcept,iunmap,vunmap,mapkey,readText,removeSearchAlias,searchSelectedWith,tabOpenLink,vmap,vmapkey},{Hints:n,Visual:r}=t;n.style("border: solid 2px #6e738d; color:#8aadf4; font-size: 12px; font-weight: bold; background: initial; background-color: #1e2030;"),n.style("border: solid 2px #6e738d !important; padding: 1px !important; color: #939ab7 !important; background: #181926 !important;","text"),r.style("marks","background-color: #ed8796;"),r.style("cursor","background-color: #8aadf4;");var o=a(119);const i={crunchbase:"",google_cs:"",google_yt:"",wolframalpha:"",domainr:"",alternativeTo:"",google_cx_ex:"",google_cx_af:"",google_cx_al:"",google_cx_no:"",google_cx_cs:"",google_cx_jq:"",google_cx_gg:""},s=e=>`https://doi.org/${e}`;class c extends Map{set(e,t){return super.set(e,t),t}}class l extends WeakMap{set(e,t){return super.set(e,t),t}}const p=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,d=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/?)>/g,u=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,m=/[\x01\x02]/g,h=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const a=document.createRange();return a.setStartAfter(e),a.setEndAfter(t),a.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e,{isArray:g}=Array,{indexOf:f,slice:b}=[];let w=!1;class k{constructor(e,t){w=!0,this._=(...a)=>e(...a,t)}}const y=e=>null==e?e:e.valueOf(),v=(e,t)=>{let a,n,r=t.slice(2);return!(t in e)&&(n=t.toLowerCase())in e&&(r=n.slice(2)),t=>{const n=g(t)?t:[t,!1];a!==n[0]&&(a&&e.removeEventListener(r,a,n[1]),(a=n[0])&&e.addEventListener(r,a,n[1]))}},{isArray:x,prototype:S}=Array,{indexOf:_}=S,{createDocumentFragment:$,createElement:T,createElementNS:L,createTextNode:O,createTreeWalker:C,importNode:E}=new Proxy(document,{get:(e,t)=>e[t].bind(e)});let N;const R=(e,t)=>t?(e=>{N||(N=L("http://www.w3.org/2000/svg","svg")),N.innerHTML=e;const t=$();return t.append(...N.childNodes),t})(e):(e=>{const t=T("template");return t.innerHTML=e,t.content})(e),A=({childNodes:e},t)=>e[t],q=(e,t,a)=>((e,t,a,n,r)=>{const o=a.length;let i=t.length,s=o,c=0,l=0,p=null;for(;c<i||l<s;)if(i===c){const t=s<o?l?n(a[l-1],-0).nextSibling:n(a[s-l],0):r;for(;l<s;)e.insertBefore(n(a[l++],1),t)}else if(s===l)for(;c<i;)p&&p.has(t[c])||e.removeChild(n(t[c],-1)),c++;else if(t[c]===a[l])c++,l++;else if(t[i-1]===a[s-1])i--,s--;else if(t[c]===a[s-1]&&a[l]===t[i-1]){const r=n(t[--i],-1).nextSibling;e.insertBefore(n(a[l++],1),n(t[c++],-1).nextSibling),e.insertBefore(n(a[--s],1),r),t[i]=a[s]}else{if(!p){p=new Map;let e=l;for(;e<s;)p.set(a[e],e++)}if(p.has(t[c])){const r=p.get(t[c]);if(l<r&&r<s){let o=c,d=1;for(;++o<i&&o<s&&p.get(t[o])===r+d;)d++;if(d>r-l){const o=n(t[c],0);for(;l<r;)e.insertBefore(n(a[l++],1),o)}else e.replaceChild(n(a[l++],1),n(t[c++],-1))}else c++}else e.removeChild(n(t[c++],-1))}return a})(e.parentNode,t,a,h,e),I=(e,t)=>{switch(t[0]){case"?":return((e,t,a)=>n=>{const r=!!y(n);a!==r&&((a=r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const a in t){const n=t[a];null==n?delete e[a]:e[a]=n}})(e):a=>{e[t]=a})(e,t.slice(1));case"@":return v(e,"on"+t.slice(1));case"o":if("n"===t[1])return v(e,t)}switch(t){case"ref":return(e=>{let t;return a=>{t!==a&&(t=a,"function"==typeof a?a(e):a.current=e)}})(e);case"aria":return(e=>t=>{for(const a in t){const n="role"===a?a:`aria-${a}`,r=t[a];null==r?e.removeAttribute(n):e.setAttribute(n,r)}})(e)}return((e,t)=>{let a,n=!0;const r=document.createAttributeNS(null,t);return o=>{const i=w&&o instanceof k?o._(e,t):y(o);a!==i&&(null==(a=i)?n||(e.removeAttributeNode(r),n=!0):(r.value=i,n&&(e.setAttributeNodeNS(r),n=!1)))}})(e,t)};function D(e){const{type:t,path:a}=e,n=a.reduceRight(A,this);return"node"===t?(e=>{let t,a,n=[];const r=o=>{switch(typeof o){case"string":case"number":case"boolean":t!==o&&(t=o,a||(a=O("")),a.data=o,n=q(e,n,[a]));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,n=q(e,n,[]));break}if(x(o)){t=o,0===o.length?n=q(e,n,[]):"object"==typeof o[0]?n=q(e,n,o):r(String(o));break}if(t!==o)if("ELEMENT_NODE"in o)t=o,n=q(e,n,11===o.nodeType?[...o.childNodes]:[o]);else{const e=o.valueOf();e!==o&&r(e)}break;case"function":r(o(e))}};return r})(n):"attr"===t?I(n,e.name):(e=>{let t;return a=>{const n=y(a);t!=n&&(t=n,e.textContent=null==n?"":n)}})(n)}const P=e=>{const t=[];let{parentNode:a}=e;for(;a;)t.push(_.call(a.childNodes,e)),e=a,({parentNode:a}=e);return t},U="isµ",H=new l,M=/^(?:textarea|script|style|title|plaintext|xmp)$/,j=(e,t)=>{const a="svg"===e,n=((e,t,a)=>{let n=0;return e.join("").trim().replace(d,((e,t,n,r)=>{let o=t+n.replace(u,"=$2$1").trimEnd();return r.length&&(o+=a||p.test(t)?" /":"></"+t),"<"+o+">"})).replace(m,(e=>""===e?"\x3c!--"+t+n+++"--\x3e":t+n++))})(t,U,a),r=R(n,a),o=C(r,129),i=[],s=t.length-1;let c=0,l=`isµ${c}`;for(;c<s;){const e=o.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.data===l&&(i.push({type:"node",path:P(e)}),l="isµ"+ ++c);else{for(;e.hasAttribute(l);)i.push({type:"attr",path:P(e),name:e.getAttribute(l)}),e.removeAttribute(l),l="isµ"+ ++c;M.test(e.localName)&&e.textContent.trim()===`\x3c!--${l}--\x3e`&&(e.textContent="",i.push({type:"text",path:P(e)}),l="isµ"+ ++c)}}return{content:r,nodes:i}},z=(e,t)=>{const{content:a,nodes:n}=H.get(t)||H.set(t,j(e,t)),r=E(a,!0);return{content:r,updates:n.map(D,r)}},F=(e,{type:t,template:a,values:n})=>{const r=V(e,n);let{entry:o}=e;o&&o.template===a&&o.type===t||(e.entry=o=((e,t)=>{const{content:a,updates:n}=z(e,t);return{type:e,template:t,content:a,updates:n,wire:null}})(t,a));const{content:i,updates:s,wire:c}=o;for(let e=0;e<r;e++)s[e](n[e]);return c||(o.wire=(e=>{const{firstChild:t,lastChild:a}=e;if(t===a)return a||e;const{childNodes:n}=e,r=[...n];return{ELEMENT_NODE:1,nodeType:111,firstChild:t,lastChild:a,valueOf:()=>(n.length!==r.length&&e.append(...r),e)}})(i))},V=({stack:e},t)=>{const{length:a}=t;for(let n=0;n<a;n++){const a=t[n];a instanceof B?t[n]=F(e[n]||(e[n]={stack:[],entry:null,wire:null}),a):x(a)?V(e[n]||(e[n]={stack:[],entry:null,wire:null}),a):e[n]=null}return a<e.length&&e.splice(a),a};class B{constructor(e,t,a){this.type=e,this.template=t,this.values=a}}const G=e=>{const t=new l;return Object.assign(((t,...a)=>new B(e,t,a)),{for(a,n){const r=t.get(a)||t.set(a,new c);return r.get(n)||r.set(n,(t=>(a,...n)=>F(t,{type:e,template:a,values:n}))({stack:[],entry:null,wire:null}))},node:(t,...a)=>F({stack:[],entry:null,wire:null},new B(e,t,a)).valueOf()})},J=(new l,G("html"));G("svg");var W=a(856);const{Hints:Y,RUNTIME:K}=t,Z={},X=e=>(...t)=>new Promise(((a,n)=>{try{e(...t,a)}catch(e){n(e)}}));Z.promisify=X;const Q=X(K);Z.runtime=Q,Z.runtimeHttpRequest=async(e,t)=>(await Q("request",{...t,url:e})).text,Z.getURLPath=({count:e=0,domain:t=!1}={})=>{let a=window.location.pathname.slice(1);return e&&(a=a.split("/").slice(0,e).join("/")),t&&(a=`${window.location.hostname}/${a}`),a},Z.getMap=(e,t)=>t.split("").reduce(((e,t)=>e[t]||e),e.mappings).meta||null,Z.escapeHTML=e=>{const t=document.createElement("span");return t.textContent=e,t.innerHTML},Z.escapeRegExp=e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),Z.until=(e,t=(e=>e),a=50,n=50)=>new Promise(((r,o)=>{const i=(s=0)=>{const c=e();t(c)?r(c):s>a?o(new Error("until: timeout")):setTimeout((()=>i(s+1)),n)};i()}));const[ee,te]=(()=>{if("undefined"!=typeof browser)return[browser.storage.local.get,browser.storage.local.set];if("undefined"!=typeof chrome)return[chrome.storage.local.get,chrome.storage.local.set].map((e=>Z.promisify(e.bind(chrome.storage.local))));const e=()=>new Error("local storage unavailable: unsupported environment");return[e,e]})();Z.localStorage={},Z.localStorage.fullkey=e=>`surfingkeys-conf.${e}`,Z.localStorage.get=async e=>{const t=Z.localStorage.fullkey(e);return(await ee(t))[t]},Z.localStorage.set=async(e,t)=>{const a=Z.localStorage.fullkey(e);return te({[a]:t})},Z.htmlUnsafe=e=>J.node([e]),Z.htmlPurify=(e,t={USE_PROFILES:{html:!0}})=>Z.htmlUnsafe(W.sanitize(e,t)),Z.htmlNode=(e,...t)=>J.node(e,...t),Z.htmlForEach=e=>e.map((e=>J.for(e)`${e}`)),Z.html=(e,...t)=>Z.htmlNode(e,...t).outerHTML,Z.suggestionItem=(e={})=>(t,...a)=>({html:Z.html(t,...a),props:e}),Z.urlItem=(e,t,{desc:a=null,query:n=null}={})=>{const r=a&&a.length>0?(Array.isArray(a)?a:[a]).map((e=>Z.htmlNode`<div>${e}</div>`)):[];return Z.suggestionItem({url:t,query:n??e})`
|
||
<div>
|
||
<div style="font-weight: bold">${e}</div>
|
||
${Z.htmlForEach(r)}
|
||
<div style="opacity: 0.7; line-height: 1.3em">${t}</div>
|
||
</div>
|
||
`},Z.defaultSelector="a[href]:not([href^=javascript])",Z.querySelectorFiltered=(e=Z.defaultSelector,t=(()=>!0))=>[...document.querySelectorAll(e)].filter(t),Z.createHints=(e=Z.defaultSelector,t=Y.dispatchMouseClick,a={})=>new Promise((n=>{Y.create(e,((...e)=>{n(...e),"function"==typeof t&&t(...e)}),a)})),Z.createHintsFiltered=(e,t,...a)=>{Z.createHints(Z.querySelectorFiltered(t,e),...a)},Z.isRectVisibleInViewport=e=>e.height>0&&e.width>0&&e.bottom>=0&&e.right>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth),Z.isElementInViewport=e=>e.offsetHeight>0&&e.offsetWidth>0&&!e.getAttribute("disabled")&&Z.isRectVisibleInViewport(e.getBoundingClientRect()),Z.getDuckduckgoFaviconUrl=e=>{const t=e instanceof URL?e:new URL(e);return new URL(`https://icons.duckduckgo.com/ip3/${t.hostname}.ico`).href},Z.prettyDate=e=>{const t=((new Date).getTime()-e.getTime())/1e3,a=Math.floor(t/86400);if(Number.isNaN(a)||a<0)return"";const[n,r]=0===a&&(t<60&&[null,"just now"]||t<3600&&[Math.floor(t/60),"minute"]||t<86400&&[Math.floor(t/3600),"hour"])||1===a&&[null,"yesterday"]||a<7&&[a,"day"]||a<30&&[Math.round(a/7),"week"]||a<365&&[Math.round(a/30),"month"]||[Math.round(a/365),"year"];return`${n??""}${n?" ":""}${r}${(n??0)>1?"s":""}${n?" ago":""}`};const ae=Z,{tabOpenLink:ne,Front:re,Hints:oe,Normal:ie,RUNTIME:se,Clipboard:ce}=t,le={moveTabNextToTab:(e,t,a=!1)=>browser.tabs.move(e,{windowId:t.windowId,index:t.index-(a?1:0)}),dispatchEvents:(e,t,...a)=>a.forEach((a=>{const n=document.createEvent(e);n.initEvent(a,!0,!0),t.dispatchEvent(n)}))};le.dispatchMouseEvents=le.dispatchEvents.bind(void 0,["MouseEvents"]),le.scrollToHash=(e=null)=>{const t=(e||document.location.hash).replace("#",""),a=document.getElementById(t)||document.querySelector(`[name="${t}"]`);a&&a.scrollIntoView({behavior:"smooth"})},le.openLast=()=>{se("openLast")},le.vimEditURL=()=>re.showEditor(window.location.href,(e=>{le.openLink(e)}),"url"),le.getOrgLink=()=>`[[${window.location.href}][${document.title}]]`,le.getMarkdownLink=({title:e=document.title,href:t=window.location.href}={})=>`[${e}](${t})`;const pe="http://centralops.net/co/DomainDossier.aspx";le.getWhoisUrl=({hostname:e=window.location.hostname}={})=>`${pe}?dom_whois=true&addr=${e}`,le.getDnsInfoUrl=({hostname:e=window.location.hostname,all:t=!1}={})=>`${pe}?dom_dns=true&addr=${e}${t?"?dom_whois=true&dom_dns=true&traceroute=true&net_whois=true&svc_scan=true":""}`,le.getGoogleCacheUrl=({href:e=window.location.href}={})=>`https://webcache.googleusercontent.com/search?q=cache:${e}`,le.getWaybackUrl=({href:e=window.location.href}={})=>`https://web.archive.org/web/*/${e}`,le.getOutlineUrl=({href:e=window.location.href}={})=>`https://outline.com/${e}`,le.getAlexaUrl=({hostname:e=window.location.hostname}={})=>`https://www.alexa.com/siteinfo/${e}`,le.getBuiltWithUrl=({href:e=window.location.href}={})=>`https://www.builtwith.com/?${e}`,le.getWappalyzerUrl=({hostname:e=window.location.hostname}={})=>`https://www.wappalyzer.com/lookup/${e}`,le.getDiscussionsUrl=({href:e=window.location.href}={})=>`https://discussions.xojoc.pw/?${new URLSearchParams({url:e})}`,le.getSummaryUrl=({href:e=window.location.href}={})=>`https://kagi.com/summarizer/index.html?${new URLSearchParams({url:e})}`,le.openAnchor=({newTab:e=!1,active:t=!0,prop:a="href"}={})=>n=>le.openLink(n[a],{newTab:e,active:t}),le.openLink=(e,{newTab:t=!1,active:a=!0}={})=>{t?se("openLink",{tab:{tabbed:!0,active:a},url:e instanceof URL?e.href:e}):window.location.assign(e)},le.editSettings=()=>ne(chrome.extension.getURL("/pages/options.html")),le.togglePdfViewer=()=>chrome.storage.local.get("noPdfViewer",(e=>{e.noPdfViewer?chrome.storage.local.remove("noPdfViewer",(()=>{re.showBanner("PDF viewer enabled.")})):chrome.storage.local.set({noPdfViewer:1},(()=>{re.showBanner("PDF viewer disabled.")}))})),le.previewLink=()=>ae.createHints("a[href]",(e=>re.showEditor(e.href,(e=>le.openLink(e)),"url"))),le.scrollElement=(e,t)=>{le.dispatchMouseEvents(e,"mousedown"),ie.scroll(t)},le.fakeSpot=(e=window.location.href)=>le.openLink(`https://fakespot.com/analyze?ra=true&url=${e}`,{newTab:!0,active:!1}),le.az={},le.az.viewProduct=()=>{const e=/^([-\w]+[.])*amazon.\w+$/,t=/^(?:.*\/)*(?:dp|gp\/product)(?:\/(\w{10})).*/,a={};document.querySelectorAll("a[href]").forEach((n=>{const r=new URL(n.href);if(0===r.hash.length&&e.test(r.hostname)){const e=t.exec(r.pathname);if(null===e||2!==e.length)return;if(!ae.isElementInViewport(n))return;const o=e[1];if(void 0!==a[o]&&!(0===a[o].text.trim().length&&n.text.trim().length>0))return;a[o]=n}})),oe.create(Object.values(a),oe.dispatchMouseClick)},le.viewGodoc=()=>le.openLink(`https://godoc.org/${ae.getURLPath({count:2,domain:!0})}`,{newTab:!0}),le.go={},le.go.parseLocation=()=>{const e=new URL(window.location.href),t=e.searchParams.get("q"),a=e.pathname.split("/"),n={type:"unknown",url:e,query:t};if("www.google.com"===e.hostname)if(a.length<=1)n.type="home";else if("search"===a[1])switch(e.searchParams.get("tbm")){case"vid":n.type="videos";break;case"isch":n.type="images";break;case"nws":n.type="news";break;default:n.type="web"}else"maps"===a[1]&&(n.type="maps","search"===a[2]&&void 0!==a[3]?n.query=a[3]:void 0!==a[2]&&(n.query=a[2]));return n},le.go.ddg=()=>{const e=le.go.parseLocation(),t=new URL("https://duckduckgo.com");switch(e.query&&t.searchParams.set("q",e.query),e.type){case"videos":t.searchParams.set("ia","videos"),t.searchParams.set("iax","videos");break;case"images":t.searchParams.set("ia","images"),t.searchParams.set("iax","images");break;case"news":t.searchParams.set("ia","news"),t.searchParams.set("iar","news");break;case"maps":t.searchParams.set("iaxm","maps");break;default:t.searchParams.set("ia","web")}le.openLink(t.href)},le.dg={},le.dg.goog=()=>{let e;try{e=new URL(window.location.href)}catch(e){return}const t=e.searchParams.get("q");if(!t)return;const a=new URL("https://google.com/search");a.searchParams.set("q",t);const n=e.searchParams.get("iax"),r=e.searchParams.get("iaxm"),o=e.searchParams.get("iar");"images"===n?a.searchParams.set("tbm","isch"):"videos"===n?a.searchParams.set("tbm","vid"):"news"===o?a.searchParams.set("tbm","nws"):"maps"===r&&(a.pathname="/maps"),le.openLink(a.href)},le.dg.siteSearch=e=>{let t;try{t=new URL(window.location.href)}catch(e){return}const a=`site:${e}`,n=t.searchParams.get("q");if(!n)return;-1!==n.indexOf(a)?t.searchParams.set("q",n.replace(a,"")):t.searchParams.set("q",`${n} ${a}`),le.openLink(t.href)},le.gh={},le.gh.star=({toggle:e=!1}={})=>async()=>{const t=e=>"none"===window.getComputedStyle(e).display||!!e.parentElement&&t(e.parentElement),a=Array.from(document.querySelectorAll("div.starring-container")).filter((e=>!t(e)));let n;switch(a.length){case 0:return;case 1:[n]=a;break;default:try{n=await ae.createHints(a,{action:null})}catch(e){return}}const r=n.parentElement.parentElement?.matches("ul.pagehead-actions")?window.location.pathname:new URL(n.parentElement.querySelector("form").action).pathname,o=n.classList.contains("on"),i=r.slice(1).split("/").slice(0,2).join("/");let s="★",c="starred",l="is";(o&&e||!o&&!e)&&(c=`un${c}`,s="☆"),e&&(l="has been",n.querySelector(o?".starred button, button.starred":".unstarred button, button.unstarred").click()),re.showBanner(`${s} Repository ${i} ${l} ${c}!`)},le.gh.parseRepo=(e=window.location.href,t=!1)=>{let a;try{a=e instanceof URL?e:new URL(e)}catch(t){a=new URL(`https://github.com/${e}`)}const[n,r,...i]=a.pathname.split("/").filter((e=>""!==e)),s=0===i.length;return["github.com","gist.github.com","raw.githubusercontent.com"].includes(a.hostname)&&"string"==typeof n&&n.length>0&&"string"==typeof r&&r.length>0&&(s||!1===t)&&/^([a-zA-Z0-9]+-?)+$/.test(n)&&!o.check(n)?{type:"repo",user:n,repo:r,owner:n,name:r,href:e,url:a,repoBase:`${n}/${r}`,repoRoot:s,repoPath:i}:null},le.gh.parseUser=(e=window.location.href,t=!1)=>{const a=e instanceof URL?e:new URL(e),[n,...r]=a.pathname.split("/").filter((e=>""!==e)),i=0===r.length;return a.origin===window.location.origin&&"string"==typeof n&&n.length>0&&(!1===t||0===r.length)&&/^([a-zA-Z0-9]+-?)+$/.test(n)&&!o.check(n)?{type:"user",name:n,user:n,href:e,url:a,userRoot:i,userPath:r}:null},le.gh.parseFile=(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[a,n,r,i,...s]=t.pathname.split("/").filter((e=>""!==e));if(!(t.origin===window.location.origin&&"string"==typeof a&&a.length>0&&"string"==typeof n&&n.length>0&&"string"==typeof r&&("blob"===r||"tree"===r)&&"string"==typeof i&&i.length>0&&/^([a-zA-Z0-9]+-?)+$/.test(a)&&!o.check(a)))return null;const c={type:"file",user:a,repo:n,pathType:r,commitHash:i,isDirectory:"tree"===r,href:e,url:t,filePath:s,repoBase:`/${a}/${n}`};return c.rawUrl=c.isDirectory?null:`https://raw.githubusercontent.com/${c.user}/${c.repo}/${c.commitHash}/${c.filePath.join("/")}`,c},le.gh.parseCommit=(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[a,n,r,i]=t.pathname.split("/").filter((e=>""!==e));return t.origin===window.location.origin&&"string"==typeof a&&a.length>0&&"string"==typeof n&&n.length>0&&"string"==typeof r&&"commit"===r&&"string"==typeof i&&i.length>0&&/^([a-zA-Z0-9]+-?)+$/.test(a)&&!o.check(a)?{type:"commit",user:a,repo:n,commitHash:i,href:e,url:t}:null},le.gh.parseIssue=(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[a,n,r,...i]=t.pathname.split("/").filter((e=>""!==e)),s=0===i.length;return t.origin===window.location.origin&&"string"==typeof a&&a.length>0&&"string"==typeof n&&n.length>0&&"issues"===r&&/^([a-zA-Z0-9]+-?)+$/.test(a)&&!o.check(a)?{href:e,url:t,...s?{type:"issues",issuePath:i}:{type:"issue",number:i[0],issuePath:i}}:null},le.gh.parsePull=(e=window.location.href)=>{const t=e instanceof URL?e:new URL(e),[a,n,r,...i]=t.pathname.split("/").filter((e=>""!==e)),s=0===i.length;return t.origin===window.location.origin&&"string"==typeof a&&a.length>0&&"string"==typeof n&&n.length>0&&/^pulls?$/.test(r)&&/^([a-zA-Z0-9]+-?)+$/.test(a)&&!o.check(a)?{href:e,url:t,...s?{type:"pulls",pullPath:i}:{type:"pull",number:i[0],pullPath:i}}:null},le.gh.isUser=(e=window.location.href,t=!0)=>null!==le.gh.parseUser(e,t),le.gh.isRepo=(e=window.location.href,t=!0)=>null!==le.gh.parseRepo(e,t),le.gh.isFile=(e=window.location.href)=>null!==le.gh.parseFile(e),le.gh.isCommit=(e=window.location.href)=>null!==le.gh.parseCommit(e),le.gh.isIssue=(e=window.location.href)=>null!==le.gh.parseIssue(e),le.gh.isPull=(e=window.location.href)=>null!==le.gh.parsePull(e),le.gh.openRepo=()=>ae.createHintsFiltered((e=>le.gh.isRepo(e.href))),le.gh.openUser=()=>ae.createHintsFiltered((e=>le.gh.isUser(e.href))),le.gh.openFile=()=>ae.createHintsFiltered((e=>le.gh.isFile(e.href))),le.gh.openCommit=()=>ae.createHintsFiltered((e=>le.gh.isCommit(e.href))),le.gh.openIssue=()=>ae.createHintsFiltered((e=>le.gh.isIssue(e.href))),le.gh.openPull=()=>ae.createHintsFiltered((e=>le.gh.isPull(e.href))),le.gh.openPage=e=>le.openLink(`https://github.com/${e}`),le.gh.openRepoPage=e=>{const t=le.gh.parseRepo();null!==t&&le.gh.openPage(`${t.repoBase}${e}`)},le.gh.openRepoOwner=()=>{const e=le.gh.parseRepo();null!==e&&le.gh.openPage(`${e.owner}`)},le.gh.openGithubPagesRepo=()=>{const e=window.location.hostname.split(".")[0],t=window.location.pathname.split("/")[1]??"";le.gh.openPage(`${e}/${t}`)},le.gh.openSourceFile=()=>{const e=window.location.pathname.split("/");le.gh.openPage(`${[...e.slice(1,3),"tree",...e.slice(3)].join("/")}`)},le.gh.openProfile=()=>le.gh.openPage(`${document.querySelector("meta[name='user-login']").content}`),le.gh.toggleLangStats=()=>document.querySelector(".repository-lang-stats-graph").click(),le.gh.goParent=()=>{const e=window.location.pathname.split("/").filter((e=>""!==e)),t=(()=>{const[t,a,n]=e;switch(e.length){case 0:return!1;case 4:switch(n){case"blob":case"tree":return[t,a];case"pull":return[t,a,"pulls"]}break;case 5:if("blob"===n)return[t,a]}return e.slice(0,e.length-1)})();if(!1!==t){const e=`${window.location.origin}/${t.join("/")}`;le.openLink(e)}},le.gh.viewSourceGraph=()=>{const e=new URL("https://sourcegraph.com/github.com");let t=null;if(null!==(t=le.gh.parseFile(window.location.href))){const a=t.filePath.join("/");if(e.pathname+=`/${t.user}/${t.repo}@${t.commitHash}/-/${t.pathType}/${a}`,""!==window.location.hash)e.hash=window.location.hash;else if(!ae.isElementInViewport(document.querySelector("#L1")))for(const t of document.querySelectorAll(".js-line-number"))if(ae.isElementInViewport(t)){e.hash=t.id;break}}else null!==(t=le.gh.parseCommit(window.location.href))?e.pathname+=`/${t.user}/${t.repo}@${t.commitHash}`:null!==(t=le.gh.parseRepo(window.location.href))?e.pathname+=`/${t.user}/${t.repo}`:e.pathname="";le.openLink(e.href,{newTab:!0})},le.gh.openInDev=({newTab:e=!1}={})=>{const t=new URL(window.location.href);t.hostname="github.dev",le.openLink(t.href,{newTab:e})},le.gh.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 a=a=>a&&!(!t&&a.isDirectory||!e&&!a.isDirectory);let n=le.gh.parseFile();if(a(n))return n;if(null===le.gh.parseRepo())throw new Error("Not a repository");const r=ae.createHintsFiltered((e=>{const t=le.gh.parseFile(e.href);return t&&!1===t.isDirectory}),null);if(n=le.gh.parseFile(r.href),!a(n))throw new Error("Not a file");return n},le.gh.openFileFromClipboard=async({newTab:e=!0}={})=>{const t=await navigator.clipboard.readText();if("string"!=typeof t||0===t.length)return;const a=window.location.href,n={user:null,repo:null,commitHash:"master"},r=le.gh.parseFile(a);if(null!==r)n.user=r.user,n.repo=r.repo,n.commitHash=r.commitHash;else{const e=le.gh.parseCommit(a);if(null!==e)n.user=e.user,n.repo=e.repo,n.commitHash=e.commitHash;else{const e=le.gh.parseRepo(a);if(null!==e)return;n.user=e.user,n.repo=e.repo}}le.openLink(`https://github.com/${n.user}/${n.repo}/tree/${n.commitHash}/${t}`,{newTab:e})},le.gl={},le.gl.star=()=>{const e=window.location.pathname.slice(1).split("/").slice(0,2).join("/"),t=document.querySelector(".btn.star-btn > span");t.click();const a=`${t.textContent.toLowerCase()}red`;let n="☆";"starred"===a&&(n="★"),re.showBanner(`${n} Repository ${e} ${a}`)},le.tw={},le.tw.openUser=()=>ae.createHints([].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(/^@/))))),le.by={},le.by.copyDID=()=>{ae.createHints("img[src*='/did:plc:']",(e=>{const[t,a]=e.src.match("/(did:.*)/");a&&ce.write(a)}))},le.by.copyPostID=()=>{ae.createHints('a[href*="/post/"]',(e=>{const[t,a]=e.pathname.match(/^\/profile\/[^/]+\/post\/(\w+)/);a&&ce.write(a)}))},le.re={},le.re.collapseNextComment=()=>{const e=Array.from(document.querySelectorAll(".noncollapsed.comment")).filter((e=>ae.isElementInViewport(e)));e.length>0&&e[0].querySelector(".expand").click()},le.hn={},le.hn.goParent=()=>{const e=document.querySelector(".navs>a[href^='item']");e&&le.openLink(e.href)},le.hn.collapseNextComment=()=>{const e=Array.from(document.querySelectorAll("a.togg")).filter((e=>"[–]"===e.innerText&&ae.isElementInViewport(e)));e.length>0&&e[0].click()},le.hn.goPage=(e=1)=>{let t;try{t=new URL(window.location.href)}catch(e){return}let a=t.searchParams.get("p");null!==a&&""!==a||(a="1");const n=parseInt(a,10);if(Number.isNaN(n))return;const r=n+e;r<1||(t.searchParams.set("p",r),le.openLink(t.href))},le.hn.openLinkAndComments=e=>{const t=e.querySelector(".titleline>a").href,a=e.nextElementSibling.querySelector("a[href^='item']:not(.titlelink)").href;le.openLink(a,{newTab:!0}),le.openLink(t,{newTab:!0})},le.ph={},le.ph.openExternal=()=>{oe.create("ul[class^='postsList_'] > li > div[class^='item_']",(e=>le.openLink(e.querySelector("div[class^='meta_'] > div[class^='actions_'] > div[class^='minorActions_'] > a:nth-child(1)").href,{newTab:!0})))},le.wp={},le.wp.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("."),le.openLink(e.href)},le.wp.viewWikiRank=()=>{const e=document.location.hostname.split("."),t=e.length>2&&"www"!==e[0]?e[0]:"en",a=document.location.pathname.split("/");if(a.length<3||"wiki"!==a[1])return;const n=a.slice(2).join("/");le.openLink(`https://wikirank.net/${t}/${n}`,{newTab:!0})},le.wp.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> — ${le.getMarkdownLink()}`,le.nt={},le.nt.adjustTemp=e=>document.querySelector(`button[data-test='thermozilla-controller-controls-${e>0?"in":"de"}crement-button']`).click(),le.nt.setMode=async e=>(async t=>{const a=()=>!t.isConnected,n=a();return n||(t.querySelector(`button[data-test='thermozilla-mode-switcher-${e}-button']`).click(),ae.until(a))})(await(async()=>{const e=()=>document.querySelector("div[data-test='thermozilla-mode-popover']"),t=e();return t||(document.querySelector("button[data-test='thermozilla-mode-button']").click(),ae.until(e))})()),le.nt.setFan=async e=>{const t=async(e,t)=>{const a=()=>!t.isConnected,n=a();return n||(t.querySelector(`div[data-test='thermozilla-fan-timer-${e}-button']`).click(),ae.until(a))},a=async()=>{const e=()=>document.querySelector("div[data-test='thermozilla-fan-timer-popover']"),t=e();return t||(document.querySelector("button[data-test='thermozilla-fan-button']").click(),ae.until(e))},n=()=>document.querySelector("div[data-test='thermozilla-aag-fan-listcell-title']"),r=async()=>{const e=await a(),n=await(async e=>{const t=()=>e.querySelector("div[role='listbox']");return t()||(oe.dispatchMouseClick(e.querySelector("div[role='combobox']")),ae.until(t))})(e);return await(async e=>{const t=()=>!e.isConnected;return t()||(oe.dispatchMouseClick(e.querySelector("div[role='option']:last-child")),ae.until(t))})(n),t("start",e)};n()&&await(async()=>{const e=await a();await t("stop",e),await ae.until((()=>!n()))})(),1===e&&await r()},le.re={},le.re.focusSearch=()=>le.dispatchMouseEvents(document.getElementById("docsearch"),"mousedown","click"),le.re.scrollSidebar=e=>le.scrollElement(document.getElementById("sidebar-content"),e),le.re.scrollContent=e=>le.scrollElement(document.body,e),le.dv={},le.dv.scrollSidebar=e=>le.scrollElement(document.querySelector("._list"),e),le.dv.scrollContent=e=>le.scrollElement(document.querySelector("._content"),e),le.ik={},le.ik.toggleProductDetails=async()=>{const e=()=>document.querySelector(".range-revamp-expander__btn"),t=document.querySelector(".range-revamp-modal-header__close");if(t)return void t.click();const a=await(async()=>{document.querySelector(".range-revamp-product-information-section__button button").click();const t=e();return t||ae.until(e)})();a&&a.click()},le.ik.toggleProductReviews=()=>{const e=document.querySelector(".ugc-rr-pip-fe-modal-header__close")??document.querySelector(".range-revamp-chunky-header__reviews");e&&e.click()},le.yt={},le.yt.getCurrentTimestamp=()=>{const[e,t,a=0]=document.querySelector("#ytd-player .ytp-time-current")?.innerText?.split(":")?.reverse()?.map(Number)??[0,0,0];return[e,t,a]},le.yt.getCurrentTimestampSeconds=()=>{const[e,t,a]=le.yt.getCurrentTimestamp();return 60*a*60+60*t+e},le.yt.getCurrentTimestampHuman=()=>{const[e,t,a]=le.yt.getCurrentTimestamp(),n=e=>`${e}`.padStart(2,"0");return a>0?`${a}:${n(t)}:${n(e)}`:`${t}:${n(e)}`},le.yt.getShortLink=()=>`https://youtu.be/${new URLSearchParams(window.location.search).get("v")}`,le.yt.getCurrentTimestampLink=()=>`${le.yt.getShortLink()}?t=${le.yt.getCurrentTimestampSeconds()}`,le.yt.getCurrentTimestampMarkdownLink=()=>le.getMarkdownLink({title:`${document.querySelector("#ytd-player .ytp-title").innerText} @ ${le.yt.getCurrentTimestampHuman()} - YouTube`,href:le.yt.getCurrentTimestampLink()}),le.doi={},le.doi.providers={},le.doi.providers.meta_citation_doi=()=>document.querySelector("meta[name=citation_doi]")?.content,le.doi.providers.meta_dcIdentifier_doi=()=>document.querySelector("meta[name='dc.Identifier'][scheme=doi]")?.content,le.doi.getLink=e=>{if(!s)return void re.showBanner("DOI Handler not confingured (see conf.priv.example.js)");const t=e();if(t)return s(t);re.showBanner("DOI not found")},le.cg={},le.cg.getNewChatLink=()=>[...document.querySelectorAll("a")].find((e=>"New chat"===e.innerText)),le.cg.newChat=async()=>{const e=le.cg.getNewChatLink();if(e){(await(async e=>(e.click(),await ae.until((()=>[...document.querySelectorAll('li[class*="group/toggle"]')].find((e=>"GPT-4"===e.innerText))))))(e)).querySelector("button>div").click()}else location.assign("https://chat.openai.com/?model=gpt-4")},le.cg.getChatLinks=()=>le.cg.getNewChatLink().parentElement.nextSibling.nextSibling.querySelectorAll("a");const de=le,ue={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:me}=ue,{Clipboard:he,Front:ge,Hints:fe}=t,be={};be.global=[{alias:"F",map:"gf",category:me.mouseClick,description:"Open a link in non-active new tab"},{alias:"zf",category:me.mouseClick,description:"Open link URL in vim editor",callback:de.previewLink},{alias:"<Ctrl-u>",map:"e",category:me.scroll,description:"Scroll half page up"},{alias:"<Ctrl-d>",map:"d",category:me.scroll,description:"Scroll half page down"},{alias:"H",map:"S",category:me.pageNav,description:"Backwards on history"},{alias:"L",map:"D",category:me.pageNav,description:"Forwards on history"},{alias:"d",map:"x",category:me.tabs,description:"Close a tab"},{alias:"oo",map:"t",category:me.omnibar,description:"Open omnibar"},{alias:"u",category:me.tabs,description:"Open last closed tab",callback:de.openLast},{alias:"gh",category:me.scroll,description:"Scroll to element targeted by URL hash",callback:de.scrollToHash},{alias:"gi",category:me.pageNav,description:"Edit current URL with vim editor",callback:de.vimEditURL},{alias:"gI",category:me.pageNav,description:"View image in new tab",callback:()=>ae.createHints("img",(e=>de.openLink(e.src)))},{alias:"g.",category:me.pageNav,description:"Go to parent domain",callback:()=>{const e=window.location.host.split("."),t=(e.length>2?e.slice(1):e).join(".");de.openLink(`${window.location.protocol}//${t}`)}},{alias:"yp",category:me.clipboard,description:"Copy URL path of current page",callback:()=>he.write(window.location.href)},{alias:"yI",category:me.clipboard,description:"Copy Image URL",callback:()=>ae.createHints("img",(e=>he.write(e.src)))},{alias:"yA",category:me.clipboard,description:"Copy link as Markdown",callback:()=>ae.createHints("a[href]",(e=>he.write(`[${e.innerText}](${e.href})`)))},{alias:"yO",category:me.clipboard,description:"Copy page URL/Title as Org-mode link",callback:()=>he.write(de.getOrgLink())},{alias:"yM",category:me.clipboard,description:"Copy page URL/Title as Markdown link",callback:()=>he.write(de.getMarkdownLink())},{alias:"yT",category:me.tabs,description:"Duplicate current tab (non-active new tab)",callback:()=>de.openLink(window.location.href,{newTab:!0,active:!1})},{alias:";se",category:me.settings,description:"Edit Settings",callback:de.editSettings},{alias:"gS",category:me.chromeURLs,description:"Open Chrome settings"},{alias:"=W",category:me.misc,description:"Lookup whois information for domain",callback:()=>de.openLink(de.getWhoisUrl(),{newTab:!0})},{alias:"=d",category:me.misc,description:"Lookup dns information for domain",callback:()=>de.openLink(de.getDnsInfoUrl(),{newTab:!0})},{alias:"=D",category:me.misc,description:"Lookup all information for domain",callback:()=>de.openLink(de.getDnsInfoUrl({all:!0}),{newTab:!0})},{alias:"=c",category:me.misc,description:"Show Google's cached version of page",callback:()=>de.openLink(de.getGoogleCacheUrl(),{newTab:!0})},{alias:"=a",category:me.misc,description:"Show Archive.org Wayback Machine for page",callback:()=>de.openLink(de.getWaybackUrl(),{newTab:!0})},{alias:"=A",category:me.misc,description:"Show Alexa.com info for domain",callback:()=>de.openLink(de.getAlexaUrl(),{newTab:!0})},{alias:"=s",category:me.misc,description:"View social discussions for page",callback:()=>de.openLink(de.getDiscussionsUrl(),{newTab:!0})},{alias:"=S",category:me.misc,description:"View summary for page",callback:()=>de.openLink(de.getSummaryUrl(),{newTab:!0})},{alias:"=o",category:me.misc,description:"Show outline.com version of page",callback:()=>de.openLink(de.getOutlineUrl(),{newTab:!0})},{alias:"=bw",category:me.misc,description:"Show BuiltWith report for page",callback:()=>de.openLink(de.getBuiltWithUrl(),{newTab:!0})},{alias:"=wa",category:me.misc,description:"Show Wappalyzer report for page",callback:()=>de.openLink(de.getWappalyzerUrl(),{newTab:!0})},{alias:";pd",category:me.misc,description:"Toggle PDF viewer from SurfingKeys",callback:de.togglePdfViewer},{alias:"gxE",map:"gxt",category:me.tabs,description:"Close tab to left"},{alias:"gxR",map:"gxT",category:me.tabs,description:"Close tab to right"},{alias:"\\cgh",category:me.clipboard,description:"Open clipboard string as GitHub path (e.g. 'torvalds/linux')",callback:async()=>{const{url:e}=de.gh.parseRepo(await navigator.clipboard.readText());ge.showBanner(`Open ${e}`),de.openLink(e,{newTab:!0})}},{alias:"F",map:"gf",category:me.mouseClick,description:"Open a link in non-active new tab"},{alias:"oh",category:me.omnibar,description:"Open URL from history",callback:()=>ge.openOmnibar({type:"History"})}],be["amazon.com"]=[{alias:"fs",description:"Fakespot",callback:de.fakeSpot},{alias:"a",description:"View product",callback:de.az.viewProduct},{alias:"c",description:"Add to Cart",callback:()=>ae.createHints("#add-to-cart-button")},{alias:"R",description:"View Product Reviews",callback:()=>de.openLink("#customerReviews")},{alias:"Q",description:"View Product Q&A",callback:()=>de.openLink("#Ask")},{alias:"A",description:"Open Account page",callback:()=>de.openLink("/gp/css/homepage.html")},{alias:"C",description:"Open Cart page",callback:()=>de.openLink("/gp/cart/view.html")},{alias:"O",description:"Open Orders page",callback:()=>de.openLink("/gp/css/order-history")}];const we=["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(",");be["www.google.com"]=[{alias:"a",description:"Open search result",callback:()=>ae.createHints(we)},{alias:"A",description:"Open search result (new tab)",callback:()=>ae.createHints(we,de.openAnchor({newTab:!0,active:!1}))},{alias:"d",description:"Open search in DuckDuckGo",callback:de.go.ddg}],be["algolia.com"]=[{alias:"a",description:"Open search result",callback:()=>ae.createHints(".item-main h2>a:first-child")}];const ke=["a[rel=noopener][target=_self]:not([data-testid=result-extras-url-link])",".js-images-show-more",".module--images__thumbnails__link",".tile--img__sub"].join(",");be["duckduckgo.com"]=[{alias:"a",description:"Open search result",callback:()=>ae.createHints(ke)},{alias:"A",description:"Open search result (non-active new tab)",callback:()=>ae.createHints(ke,de.openAnchor({newTab:!0,active:!1}))},{leader:"",alias:"]]",description:"Show more results",callback:()=>document.querySelector(".result--more__btn").click()},{alias:"g",description:"Open search in Google",callback:de.dg.goog},{alias:"sgh",description:"Search site:github.com",callback:()=>de.dg.siteSearch("github.com")},{alias:"sre",description:"Search site:reddit.com",callback:()=>de.dg.siteSearch("reddit.com")}],be["www.yelp.com"]=[{alias:"fs",description:"Fakespot",callback:de.fakeSpot}],be["youtube.com"]=[{leader:"",alias:"A",description:"Open video",callback:()=>ae.createHints("*[id='video-title']",de.openAnchor({newTab:!0}))},{leader:"",alias:"C",description:"Open channel",callback:()=>ae.createHints("*[id='byline']")},{leader:"",alias:"gH",description:"Goto homepage",callback:()=>de.openLink("https://www.youtube.com/feed/subscriptions?flow=2")},{leader:"",alias:"F",description:"Toggle fullscreen",callback:()=>de.dispatchMouseEvents(document.querySelector("#movie_player.ytp-fullscreen-button"),"mousedown","click")},{leader:"",alias:"Yt",description:"Copy YouTube video link for current time",callback:()=>he.write(de.yt.getCurrentTimestampLink())},{leader:"",alias:"Ym",description:"Copy YouTube video markdown link for current time",callback:()=>he.write(de.yt.getCurrentTimestampMarkdownLink())}],be["vimeo.com"]=[{alias:"F",description:"Toggle fullscreen",callback:()=>document.querySelector(".fullscreen-icon").click()}],be["github.com"]=[{alias:"A",description:"Open repository Actions page",callback:()=>de.gh.openRepoPage("/actions")},{alias:"C",description:"Open repository Commits page",callback:()=>de.gh.openRepoPage("/commits")},{alias:"I",description:"Open repository Issues page",callback:()=>de.gh.openRepoPage("/issues")},{alias:"N",description:"Open notifications page",callback:()=>de.gh.openPage("/notifications")},{alias:"P",description:"Open repository Pull Requests page",callback:()=>de.gh.openRepoPage("/pulls")},{alias:"R",description:"Open Repository page",callback:()=>de.gh.openRepoPage("/")},{alias:"S",description:"Open repository Settings page",callback:()=>de.gh.openRepoPage("/settings")},{alias:"W",description:"Open repository Wiki page",callback:()=>de.gh.openRepoPage("/wiki")},{alias:"X",description:"Open repository Security page",callback:()=>de.gh.openRepoPage("/security")},{alias:"O",description:"Open repository Owner's profile page",callback:de.gh.openRepoOwner},{alias:"M",description:"Open your profile page ('Me')",callback:de.gh.openProfile},{alias:"a",description:"View Repository",callback:de.gh.openRepo},{alias:"u",description:"View User",callback:de.gh.openUser},{alias:"f",description:"View File",callback:de.gh.openFile},{alias:"c",description:"View Commit",callback:de.gh.openCommit},{alias:"i",description:"View Issue",callback:de.gh.openIssue},{alias:"p",description:"View Pull Request",callback:de.gh.openPull},{alias:"e",description:"View external link",callback:()=>ae.createHints("a[rel=nofollow]")},{leader:"",alias:"gu",description:"Go up one path in the URL (GitHub)",callback:de.gh.goParent},{alias:"s",description:"Toggle Star",callback:de.gh.star({toggle:!0})},{alias:"yy",description:"Copy Project Path",callback:async()=>he.write(ae.getURLPath({count:2}))},{alias:"Y",description:"Copy Project Path (including domain)",callback:()=>he.write(ae.getURLPath({count:2,domain:!0}))},{alias:"l",description:"Toggle repo language stats",callback:de.gh.toggleLangStats},{alias:"D",description:"Open in github.dev (new tab)",callback:()=>de.gh.openInDev({newTab:!0})},{alias:"dd",description:"Open in github.dev",callback:de.gh.openInDev},{alias:"G",description:"View on SourceGraph",callback:de.gh.viewSourceGraph},{alias:"r",description:"View live raw version of file",callback:()=>de.gh.selectFile({directories:!1}).then((e=>de.openLink(e.rawUrl,{newTab:!0})))},{alias:"yr",description:"Copy raw link to file",callback:()=>de.gh.selectFile({directories:!1}).then((e=>he.write(e.rawUrl)))},{alias:"yf",description:"Copy link to file",callback:()=>de.gh.selectFile().then((e=>he.write(e.url)))},{alias:"gcp",description:"Open clipboard string as file path in repo",callback:de.gh.openFileFromClipboard}],be["raw.githubusercontent.com"]=[{alias:"R",description:"Open Repository page",callback:()=>de.gh.openRepoPage("/")},{alias:"F",description:"Open Source File",callback:de.gh.openSourceFile}],be["github.io"]=[{alias:"R",description:"Open Repository page",callback:()=>de.gh.openGithubPagesRepo()}],be["gitlab.com"]=[{alias:"s",description:"Toggle Star",callback:de.gl.star},{alias:"y",description:"Copy Project Path",callback:()=>he.write(ae.getURLPath({count:2}))},{alias:"Y",description:"Copy Project Path (including domain)",callback:()=>he.write(ae.getURLPath({count:2,domain:!0}))},{alias:"D",description:"View GoDoc for Project",callback:de.viewGodoc}],be["twitter.com"]=[{alias:"f",description:"Follow user",callback:()=>ae.createHints("div[role='button'][data-testid$='follow']")},{alias:"s",description:"Like tweet",callback:()=>ae.createHints("div[role='button'][data-testid$='like']")},{alias:"R",description:"Retweet",callback:()=>ae.createHints("div[role='button'][data-testid$='retweet']")},{alias:"c",description:"Comment/Reply",callback:()=>ae.createHints("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:de.tw.openUser},{alias:"t",description:"Goto tweet",callback:()=>ae.createHints("article, article div[data-focusable='true'][role='link'][tabindex='0']")}],be["bsky.app"]=[{alias:"d",description:"Copy user DID",callback:de.by.copyDID},{alias:"p",description:"Copy user post ID",callback:de.by.copyPostID}],be["reddit.com"]=[{alias:"x",description:"Collapse comment",callback:()=>ae.createHints(".expand")},{alias:"X",description:"Collapse next comment",callback:de.re.collapseNextComment},{alias:"s",description:"Upvote",callback:()=>ae.createHints(".arrow.up")},{alias:"S",description:"Downvote",callback:()=>ae.createHints(".arrow.down")},{alias:"e",description:"Expand expando",callback:()=>ae.createHints(".expando-button")},{alias:"a",description:"View post (link)",callback:()=>ae.createHints(".title")},{alias:"A",description:"View post (link) (non-active new tab)",callback:()=>ae.createHints(".title",de.openAnchor({newTab:!0,active:!1}))},{alias:"c",description:"View post (comments)",callback:()=>ae.createHints(".comments")},{alias:"C",description:"View post (comments) (non-active new tab)",callback:()=>ae.createHints(".comments",de.openAnchor({newTab:!0,active:!1}))}],be["news.ycombinator.com"]=[{alias:"x",description:"Collapse comment",callback:()=>ae.createHints(".togg")},{alias:"X",description:"Collapse next comment",callback:de.hn.collapseNextComment},{alias:"s",description:"Upvote",callback:()=>ae.createHints(".votearrow[title='upvote']")},{alias:"S",description:"Downvote",callback:()=>ae.createHints(".votearrow[title='downvote']")},{alias:"a",description:"View post (link)",callback:()=>ae.createHints(".titleline>a")},{alias:"A",description:"View post (link and comments)",callback:()=>ae.createHints(".athing",de.hn.openLinkAndComments)},{alias:"c",description:"View post (comments)",callback:()=>ae.createHints(".subline>a[href^='item']")},{alias:"C",description:"View post (comments) (non-active new tab)",callback:()=>ae.createHints(".subline>a[href^='item']",de.openAnchor({newTab:!0,active:!1}))},{alias:"e",description:"View external link",callback:()=>ae.createHints("a[rel=nofollow]")},{leader:"",alias:"gp",description:"Go to parent",callback:de.hn.goParent},{leader:"",alias:"]]",description:"Next page",callback:()=>de.hn.goPage(1)},{leader:"",alias:"[[",description:"Prev page",callback:()=>de.hn.goPage(-1)}],be["producthunt.com"]=[{alias:"a",description:"View product (external)",callback:de.ph.openExternal},{alias:"v",description:"View product",callback:()=>ae.createHints("ul[class^='postsList_'] > li > div[class^='item_'] > a")},{alias:"s",description:"Upvote product",callback:()=>ae.createHints("button[data-test='vote-button']")}],be["behance.net"]=[{alias:"s",description:"Appreciate project",callback:()=>ae.createHints(".appreciation-button")},{alias:"b",description:"Add project to collection",callback:()=>document.querySelector(".qa-action-collection").click()},{alias:"a",description:"View project",callback:()=>ae.createHints(".rf-project-cover__title")},{alias:"A",description:"View project (non-active new tab)",callback:()=>ae.createHints(".rf-project-cover__title",de.openAnchor({newTab:!0,active:!1}))}],be["fonts.adobe.com"]=[{alias:"a",description:"Activate font",callback:()=>ae.createHints(".spectrum-ToggleSwitch-input")},{alias:"s",description:"Favorite font",callback:()=>ae.createHints(".favorite-toggle-icon")}],be["wikipedia.org"]=[{alias:"s",description:"Toggle simple version of current article",callback:de.wp.toggleSimple},{alias:"a",description:"View page",callback:()=>ae.createHints("#bodyContent :not(sup):not(.mw-editsection) > a:not([rel=nofollow])")},{alias:"e",description:"View external link",callback:()=>ae.createHints("a[rel=nofollow]")},{alias:"ys",description:"Copy article summary as Markdown",callback:()=>he.write(de.wp.markdownSummary())},{alias:"R",description:"View WikiRank for current article",callback:de.wp.viewWikiRank}],be["craigslist.org"]=[{alias:"a",description:"View listing",callback:()=>ae.createHints("a.result-title")}],be["stackoverflow.com"]=[{alias:"a",description:"View question",callback:()=>ae.createHints("a.question-hyperlink")}],be["aur.archlinux.org"]=[{alias:"a",description:"View package",callback:()=>ae.createHints("a[href^='/packages/'][href$='/']")}],be["home.nest.com"]=[{path:"/thermostat/DEVICE_.*",leader:"",alias:"=",description:"Increment temperature",callback:()=>de.nt.adjustTemp(1)},{path:"/thermostat/DEVICE_.*",leader:"",alias:"-",description:"Decrement temperature",callback:()=>de.nt.adjustTemp(-1)},{path:"/thermostat/DEVICE_.*",alias:"h",description:"Switch mode to Heat",callback:()=>de.nt.setMode("heat")},{path:"/thermostat/DEVICE_.*",alias:"c",description:"Switch mode to Cool",callback:()=>de.nt.setMode("cool")},{path:"/thermostat/DEVICE_.*",alias:"r",description:"Switch mode to Heat/Cool",callback:()=>de.nt.setMode("range")},{path:"/thermostat/DEVICE_.*",alias:"o",description:"Switch mode to Off",callback:()=>de.nt.setMode("off")},{path:"/thermostat/DEVICE_.*",alias:"f",description:"Switch fan On",callback:()=>de.nt.setFan(1)},{path:"/thermostat/DEVICE_.*",alias:"F",description:"Switch fan Off",callback:()=>de.nt.setFan(0)}];const ye="/docs(/.*)?";be["rescript-lang.org"]=[{leader:"",alias:"i",description:"Focus search field",path:`(${ye})?$`,callback:de.re.focusSearch},{alias:"a",description:"Open docs link",path:ye,callback:()=>ae.createHints("a[href^='/docs/']")},{alias:"L",description:"Open language manual",callback:()=>de.openLink("/docs/manual/latest/introduction")},{alias:"R",description:"Open ReScript + React docs",callback:()=>de.openLink("/docs/react/latest/introduction")},{alias:"G",description:"Open GenType docs",callback:()=>de.openLink("/docs/gentype/latest/introduction")},{alias:"P",description:"Open package index",callback:()=>de.openLink("/packages")},{alias:"Y",description:"Open playground",callback:()=>de.openLink("/try")},{alias:"S",description:"Open syntax lookup",callback:()=>de.openLink("/syntax-lookup")},{alias:"F",description:"Open community forum",callback:()=>de.openLink("https://forum.rescript-lang.org/")},{alias:"A",description:"Open API docs",callback:()=>de.openLink("/docs/manual/latest/api")},{alias:"J",description:"Open JS API docs",callback:()=>de.openLink("/docs/manual/latest/api/js")},{alias:"B",description:"Open Belt API docs",callback:()=>de.openLink("/docs/manual/latest/api/belt")},{alias:"D",description:"Open DOM API docs",callback:()=>de.openLink("/docs/manual/latest/api/dom")},{leader:"",alias:"w",description:"Scroll sidebar up",path:ye,callback:()=>de.re.scrollSidebar("up")},{leader:"",alias:"s",description:"Scroll sidebar down",path:ye,callback:()=>de.re.scrollSidebar("down")},{leader:"",alias:"e",description:"Scroll sidebar page up",path:ye,callback:()=>de.re.scrollSidebar("pageUp")},{leader:"",alias:"d",description:"Scroll sidebar page down",path:ye,callback:()=>de.re.scrollSidebar("pageDown")},{leader:"",alias:"k",description:"Scroll body up",path:ye,callback:()=>de.re.scrollContent("up")},{leader:"",alias:"j",description:"Scroll body down",path:ye,callback:()=>de.re.scrollContent("down")},{leader:"",alias:"K",description:"Scroll body page up",path:ye,callback:()=>de.re.scrollContent("pageUp")},{leader:"",alias:"J",description:"Scroll body page down",path:ye,callback:()=>de.re.scrollContent("pageDown")}],be["devdocs.io"]=[{leader:"",alias:"w",description:"Scroll sidebar up",callback:()=>de.dv.scrollSidebar("up")},{leader:"",alias:"s",description:"Scroll sidebar down",callback:()=>de.dv.scrollSidebar("down")},{leader:"",alias:"e",description:"Scroll sidebar page up",callback:()=>de.dv.scrollSidebar("pageUp")},{leader:"",alias:"d",description:"Scroll sidebar page down",callback:()=>de.dv.scrollSidebar("pageDown")},{leader:"",alias:"k",description:"Scroll body up",callback:()=>de.dv.scrollContent("up")},{leader:"",alias:"j",description:"Scroll body down",callback:()=>de.dv.scrollContent("down")},{leader:"",alias:"K",description:"Scroll body page up",callback:()=>de.dv.scrollContent("pageUp")},{leader:"",alias:"J",description:"Scroll body page down",callback:()=>de.dv.scrollContent("pageDown")}],be["ebay.com"]=[{alias:"fs",description:"Fakespot",callback:de.fakeSpot}],be["ikea.com"]=[{alias:"d",description:"Toggle Product Details",callback:()=>de.ik.toggleProductDetails()},{alias:"i",description:"Toggle Product Details",callback:()=>de.ik.toggleProductDetails()},{alias:"r",description:"Toggle Product Reviews",callback:()=>de.ik.toggleProductReviews()},{alias:"C",description:"Open Cart page",callback:()=>de.openLink("/us/en/shoppingcart/")},{alias:"P",description:"Open Profile page",callback:()=>de.openLink("/us/en/profile/login/")},{alias:"F",description:"Open Favorites page",callback:()=>de.openLink("/us/en/favorites/")},{alias:"O",description:"Open Orders page",callback:()=>de.openLink("/us/en/customer-service/track-manage-order/")}],be["chat.openai.com"]=[{alias:"n",description:"New chat",callback:()=>de.cg.newChat()},{alias:"a",description:"Open chat",callback:()=>ae.createHints([...de.cg.getChatLinks()])}],be["claude.ai"]=[{alias:"i",leader:"",description:"Focus input",callback:()=>setTimeout((()=>fe.dispatchMouseClick(document.querySelector(".ProseMirror[contenteditable=true]"))),0)}];const ve=(e,t=de.doi.providers.meta_citation_doi)=>{be[e]||(be[e]=[]),be[e].push({alias:"O",description:"Open DOI",callback:()=>{const e=de.doi.getLink(t);e&&de.openLink(e,{newTab:!0})},hide:!0})};s&&(ve("aaai.org"),ve("academic.oup.com"),ve("aeaweb.org"),ve("aging-us.com"),ve("ahajournals.org",de.doi.providers.meta_dcIdentifier_doi),ve("ajnr.org"),ve("annualreviews.org",de.doi.providers.meta_dcIdentifier_doi),ve("apa.org",(()=>document.querySelector(".citation a")?.innerText?.replace(/^https:\/\/doi\.org\//,""))),ve("ashpublications.org"),ve("asnjournals.org"),ve("biomedcentral.com"),ve("bmj.com"),ve("brill.com"),ve("cambridge.org"),ve("cell.com"),ve("cmaj.ca"),ve("cochranelibrary.com"),ve("diabetesjournals.org"),ve("direct.mit.edu"),ve("dl.acm.org",de.doi.providers.meta_dcIdentifier_doi),ve("elifesciences.org",(()=>document.querySelector("meta[name='dc.identifier']")?.content?.replace(/^doi:/,""))),ve("embopress.org"),ve("emerald.com",de.doi.providers.meta_dcIdentifier_doi),ve("episciences.org"),ve("epubs.siam.org",de.doi.providers.meta_dcIdentifier_doi),ve("ersjournals.com"),ve("europepmc.org"),ve("frontiersin.org"),ve("future-science.com",de.doi.providers.meta_dcIdentifier_doi),ve("go.gale.com"),ve("ieee.org",(()=>document.querySelector(".stats-document-abstract-doi a")?.innerText)),ve("ingentaconnect.com",(()=>document.querySelector("meta[name='DC.identifier']")?.content?.replace(/^info:doi\//,""))),ve("jacc.or",de.doi.providers.meta_dcIdentifier_doi),ve("jamanetwork.com"),ve("jci.org"),ve("jfdc.cnic.cn"),ve("jlr.org"),ve("jneurosci.org"),ve("journals.lww.com"),ve("journals.physiology.org",de.doi.providers.meta_dcIdentifier_doi),ve("journals.plos.org"),ve("journals.sagepub.com",de.doi.providers.meta_dcIdentifier_doi),ve("journals.uchicago.edu",de.doi.providers.meta_dcIdentifier_doi),ve("jst.go.jp"),ve("karger.com"),ve("koreascience.kr"),ve("koreascience.or.kr"),ve("liebertpub.com",de.doi.providers.meta_dcIdentifier_doi),ve("mdpi.com"),ve("msp.org",(()=>document.querySelector(".paper-doi a")?.innerText)),ve("nature.com"),ve("nejm.org",de.doi.providers.meta_dcIdentifier_doi),ve("nowpublishers.com"),ve("nsf.gov"),ve("ocl-journal.org"),ve("onlinelibrary.wiley.com"),ve("pnas.org"),ve("ncbi.nlm.nih.gov"),ve("pubs.acs.org",de.doi.providers.meta_dcIdentifier_doi),ve("pubs.geoscienceworld.org"),ve("pubs.rsna.org",de.doi.providers.meta_dcIdentifier_doi),ve("research.manchester.ac.uk"),ve("royalsocietypublishing.org",de.doi.providers.meta_dcIdentifier_doi),ve("rupress.org"),ve("science.org",de.doi.providers.meta_dcIdentifier_doi),ve("sciencedirect.com"),ve("scitation.org"),ve("spandidos-publications.com"),ve("spiedigitallibrary.org"),ve("springer.com"),ve("synapse.koreamed.org"),ve("tandfonline.com",de.doi.providers.meta_dcIdentifier_doi),ve("thelancet.com"),ve("worldscientific.com",de.doi.providers.meta_dcIdentifier_doi));const xe={unmaps:{mappings:["sb","sw","ob","oe","ow","oy","cp",";cp",";ap","spa","spb","spd","sps","spc","spi","sfr","zQ","zz","zR","ab","Q","q","ag","af",";s","yp","p","<Ctrl-j>","<Ctrl-h>"],searchAliases:{s:["g","d","b","e","w","s","h","y"]},pages:[{url:/matt-startpage.vercel.app/,maps:["t","r","f"]}]},maps:be,aliases:{"wikipedia.org":["wiktionary.org","wikiquote.org","wikisource.org","wikimedia.org","mediawiki.org","wikivoyage.org","wikibooks.org","wikinews.org","wikiversity.org","wikidata.org","wiki.archlinux.org"],"stackoverflow.com":["stackexchange.com","serverfault.com","superuser.com","askubuntu.com","stackapps.com","mathoverflow.net"]}},{htmlPurify:Se,htmlNode:_e,htmlForEach:$e,suggestionItem:Te,urlItem:Le,prettyDate:Oe,getDuckduckgoFaviconUrl:Ce,localStorage:Ee,runtimeHttpRequest:Ne}=ae,Re="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2056%2056%22%20enable-background%3D%22new%200%200%2056%2056%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h56v56h-56z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23999%22%20d%3D%22M36.4%2013.5h-18.6v24.9c0%201.4.9%202.3%202.3%202.3h18.7v-25c.1-1.4-1-2.2-2.4-2.2zm-6.2%203.5h5.1v6.4h-5.1v-6.4zm-8.8%200h6v1.8h-6v-1.8zm0%204.6h6v1.8h-6v-1.8zm0%2015.5v-1.8h13.8v1.8h-13.8zm13.8-4.5h-13.8v-1.8h13.8v1.8zm0-4.7h-13.8v-1.8h13.8v1.8z%22%2F%3E%0A%3C%2Fsvg%3E%0A",Ae="undefined"!=typeof navigator?navigator.language:"",qe={},Ie=e=>{let t="https://google.com/favicon.ico";return e.favicon?t=e.favicon:e.domain?t=Ce(`https://${e.domain}`):e.search&&(t=Ce(e.search)),{favicon:t,compl:`https://www.googleapis.com/customsearch/v1?key=${i.google_cs}&cx=${i[`google_cx_${e.alias}`]}&q=`,search:`https://cse.google.com/cse/publicurl?cx=${i[`google_cx_${e.alias}`]}&q=`,callback:e=>JSON.parse(e.text).items.map((e=>Te({url:e.link})`
|
||
<div>
|
||
<div class="title"><strong>${Se(e.htmlTitle)}</strong></div>
|
||
<div>${Se(e.htmlSnippet)}</div>
|
||
</div>
|
||
`)),priv:!0,...e}};qe.al=Ie({alias:"al",name:"archlinux",search:"https://www.archlinux.org/packages/?arch=x86_64&q="}),qe.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="},qe.au.callback=e=>JSON.parse(e.text).map((e=>Le(e,`https://aur.archlinux.org/packages/${e}`))),qe.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="},qe.aw.callback=e=>JSON.parse(e.text)[1],qe.af=Ie({alias:"af",name:"archforums",domain:"bbs.archlinux.org"}),qe.at={alias:"at",name:"alternativeTo",search:"https://alternativeto.net/browse/search/?q=",compl:`https://zidpns2vb0-dsn.algolia.net/1/indexes/fullitems?x-algolia-application-id=ZIDPNS2VB0&x-algolia-api-key=${i.alternativeTo}&attributesToRetrieve=Name,UrlName,TagLine,Description,Likes,HasIcon,IconId,IconExtension,InternalUrl&query=`,priv:!0},qe.at.callback=async e=>JSON.parse(e.text).hits.map((e=>{let t=e.Name,a="";e._highlightResult&&e._highlightResult.Name&&(t=e._highlightResult.Name.value),e.Likes&&(a+=`[↑${parseInt(e.Likes,10)}] `);const n=e.HasIcon?`https://d2.alternativeto.net/dist/icons/${e.UrlName}_${e.IconId}${e.IconExtension}?width=100&height=100&mode=crop&upscale=false`:Re;return Te({url:`https://${e.InternalUrl}`})`
|
||
<div style="padding:5px;display:grid;grid-template-columns:60px 1fr;grid-gap:15px">
|
||
<img style="width:60px" src="${n}" alt="${e.Name}">
|
||
<div>
|
||
<div class="title"><strong>${a}${Se(t)}</strong></div>
|
||
<span>${Se(e.TagLine||e.Description||"")}</span>
|
||
</div>
|
||
</div>
|
||
`})),qe.cs=Ie({alias:"cs",name:"chromestore",search:"https://chrome.google.com/webstore/search/"});const De=e=>JSON.parse(e.text).results.map((e=>{let{name:t}=e;"object"==typeof t&&(void 0!==t[navigator.language]?t=t[navigator.language]:[t]=Object.values(t));let a="";switch(e.type){case"extension":a+="🧩 ";break;case"statictheme":a+="🖌 "}return Te({url:e.url})`
|
||
<div style="padding:5px;display:grid;grid-template-columns:2em 1fr;grid-gap:15px">
|
||
<img style="width:2em" src="${e.icon_url}">
|
||
<div>
|
||
<div class="title"><strong>${a}${t}</strong></div>
|
||
</div>
|
||
</div>
|
||
`}));qe.fa={alias:"fa",name:"firefox-addons",search:`https://addons.mozilla.org/${Ae}/firefox/search/?q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?q=",callback:De},qe.ft={alias:"ft",name:"firefox-themes",search:`https://addons.mozilla.org/${Ae}/firefox/search/?type=statictheme&q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?type=statictheme&q=",callback:De},qe.fe={alias:"fe",name:"firefox-extensions",search:`https://addons.mozilla.org/${Ae}/firefox/search/?type=extension&q=`,compl:"https://addons.mozilla.org/api/v4/addons/autocomplete/?type=extension&q=",callback:De},qe.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="},qe.ow.callback=e=>JSON.parse(e.text)[1],qe.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="},qe.so.callback=e=>JSON.parse(e.text).items.map((e=>Le(`[${e.score}] ${e.title}`,e.link,{query:!1}))),qe.se={alias:"se",name:"stackexchange",search:"https://stackexchange.com/search?q=",compl:"https://duckduckgo.com/ac/?q=!stackexchange%20"},qe.se.callback=e=>JSON.parse(e.text).map((e=>e.phrase.replace(/^!stackexchange /,""))),qe.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="},qe.dh.callback=e=>JSON.parse(e.text).results.map((e=>{let t="",a=e.repo_name;return t+=`[★${e.star_count}] `,t+=`[↓${e.pull_count}] `,-1===a.indexOf("/")&&(a=`_/${a}`),Te({url:`https://hub.docker.com/r/${a}`})`
|
||
<div>
|
||
<div class="title"><strong>${a}</strong></div>
|
||
<div>${t}</div>
|
||
<div>${e.short_description}</div>
|
||
</div>
|
||
`})),qe.gh={alias:"gh",name:"github",search:"https://github.com/search?q=",compl:"https://api.github.com/search/repositories?sort=stars&order=desc&q="},qe.gh.callback=e=>JSON.parse(e.text).items.map((e=>{let t="";return e.stargazers_count&&(t+=`[★${parseInt(e.stargazers_count,10)}] `),Le(t+e.full_name,e.html_url,{query:e.full_name,desc:e.description})})),qe.do={alias:"do",name:"domainr",search:"https://domainr.com/?q=",compl:"https://5jmgqstc3m.execute-api.us-west-1.amazonaws.com/v1/domainr?q="},qe.do.callback=e=>Object.entries(JSON.parse(e.text)).map((([e,t])=>{const[a="inherit",n="?"]={inactive:["#23b000","✔"],active:["#ff4d00","✘"]}[t.summary]??[];return Te({url:`https://domainr.com/${e}`})`
|
||
<div class="title" style="${`color: ${a}`}"><strong>${n} ${e}</strong></div>
|
||
`})),qe.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="},qe.vw.callback=e=>JSON.parse(e.text)[1].map((e=>Le(e,`https://vim.fandom.com/wiki/${encodeURIComponent(e)}`,{query:!1}))),qe.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="},qe.az.callback=e=>JSON.parse(e.text)[1],qe.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="},qe.cl.callback=e=>JSON.parse(e.text),qe.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="},qe.eb.callback=e=>JSON.parse(e.text).res.sug,qe.yp={alias:"yp",name:"yelp",search:"https://www.yelp.com/search?find_desc=",compl:"https://www.yelp.com/search_suggest/v2/prefetch?prefix="},qe.yp.callback=e=>{const t=JSON.parse(e.text).response,a=[];return t.forEach((e=>{e.suggestions.forEach((e=>{const t=e.query;-1===a.indexOf(t)&&a.push(t)}))})),a},qe.un={alias:"un",name:"unicode",search:"https://symbl.cc/en/search/?q=",compl:"http://localhost:9919/s/unicode?q=",local:!0},qe.un.callback=e=>{const t=JSON.parse(e.text).slice(0,20),a="font-family: monospace; background-color: rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.4); border-radius: 5px; padding: 2px 4px; opacity: 70%";return t.map((({symbol:e,name:t,value:n})=>{return Te({url:`https://symbl.cc/en/${n}`,copy:e})`
|
||
<div>
|
||
<span style="font-size: 2em; font-weight: bold; min-width: 1em; margin-left: 0.5em; display: inline-block">${e}</span>
|
||
<span style="${a}">U+${n}</span>
|
||
<span style="${a}">&#${parseInt(n,16)};</span>
|
||
<span>${r=t.toLowerCase(),r.split(" ").map((e=>`${e[0]?.toUpperCase()??""}${e.length>1?e.slice(1):""}`)).join(" ")}</span>
|
||
</div>
|
||
`;var r}))};const Pe=(e,t={})=>{const a={maxDefs:-1,ellipsis:!1,...t};return e.map((e=>{const t=[];let n="";if((a.maxDefs<=-1||a.maxDefs>0)&&e.defs&&e.defs.length>0){for(const n of e.defs.slice(0,a.maxDefs<=-1?void 0:a.maxDefs)){const e=n.split("\t"),a=`(${e[0]})`,r=e[1];t.push(`<span><em>${a}</em> ${r}</span>`)}a.ellipsis&&e.defs.length>a.maxDefs&&t.push("<span><em>…</em></span>"),n=`<div>${t.join("<br />")}</div>`}return Te({url:`${a.wordBaseURL}${e.word}`})`
|
||
<div>
|
||
<div class="title"><strong>${e.word}</strong></div>
|
||
${Se(n)}
|
||
</div>
|
||
`}))};qe.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="}},qe.de.callback=e=>{const t=JSON.parse(e.text);return Pe(t,qe.de.opts)},qe.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="}},qe.th.callback=e=>{const t=JSON.parse(e.text);return Pe(t,qe.th.opts)},qe.wp={alias:"wp",name:"wikipedia",search:"https://en.wikipedia.org/w/index.php?search=",compl:"https://en.wikipedia.org/w/api.php?action=query&format=json&generator=prefixsearch&prop=info|pageprops%7Cpageimages%7Cdescription&redirects=&ppprop=displaytitle&piprop=thumbnail&pithumbsize=100&pilimit=6&inprop=url&gpssearch="},qe.wp.callback=e=>Object.values(JSON.parse(e.text).query.pages).map((e=>{const t=e.thumbnail?e.thumbnail.source:Re;return Te({url:e.fullurl})`
|
||
<div style="padding:5px;display:grid;grid-template-columns:60px 1fr;grid-gap:15px">
|
||
<img style="width:60px" src="${t}">
|
||
<div>
|
||
<div class="title"><strong>${e.title}</strong></div>
|
||
<div class="title">${e.description??""}</div>
|
||
</div>
|
||
</div>
|
||
`})),qe.ws={alias:"ws",name:"wikipedia-simple",search:"https://simple.wikipedia.org/w/index.php?search=",compl:"https://simple.wikipedia.org/w/api.php?action=query&format=json&generator=prefixsearch&prop=info|pageprops%7Cpageimages%7Cdescription&redirects=&ppprop=displaytitle&piprop=thumbnail&pithumbsize=100&pilimit=6&inprop=url&gpssearch=",callback:qe.wp.callback},qe.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="},qe.wt.callback=e=>Object.values(JSON.parse(e.text).query.pages).map((e=>e.title)),qe.wa={alias:"wa",name:"wolframalpha",search:"http://www.wolframalpha.com/input/?i=",compl:`http://api.wolframalpha.com/v2/query?appid=${i.wolframalpha}&format=plaintext,image&output=json&reinterpret=true&input=%s`,priv:!0},qe.wa.callback=(e,{query:t})=>{const a=JSON.parse(e.text).queryresult;if(a.error)return[Te({url:"https://www.wolframalpha.com/"})`
|
||
<div>
|
||
<div class="title"><strong>Error</strong> (Code ${a.error.code})</div>
|
||
<div class="title">${a.error.msg}</div>
|
||
</div>
|
||
`];if(!a.success)return a.tips?[Te({url:"https://www.wolframalpha.com/"})`
|
||
<div>
|
||
<div class="title"><strong>No Results</strong></div>
|
||
<div class="title">${a.tips.text}</div>
|
||
</div>
|
||
`]:a.didyoumeans?a.didyoumeans.map((e=>Te({url:"https://www.wolframalpha.com/"})`
|
||
<div>
|
||
<div class="title"><strong>Did you mean...?</strong></div>
|
||
<div class="title">${e.val}</div>
|
||
</div>
|
||
`)):[Te({url:"https://www.wolframalpha.com/"})`
|
||
<div>
|
||
<div class="title"><strong>Error</strong></div>
|
||
<div class="title">An unknown error occurred.</div>
|
||
</div>
|
||
`];const n=[];return a.pods.forEach((e=>{const a={title:e.title,values:[],url:`http://www.wolframalpha.com/input/?i=${encodeURIComponent(t)}`};e.numsubpods>0&&(e.subpods[0].plaintext&&(a.url=encodeURIComponent(e.subpods[0].plaintext),a.copy=e.subpods[0].plaintext),e.subpods.forEach((e=>{let t="";e.title&&(t=_e`<strong>${e.title}</strong>: `),e.img?t=_e`
|
||
<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=_e`<div class="title">${t}</div>`),a.values.push(t)}))),a.values.length>0&&n.push(a)})),n.map((e=>Te({url:e.url,copy:e.copy,query:e.query})`
|
||
<div>
|
||
<div class="title"><strong>${e.title}</strong></div>
|
||
${$e(e.values)}
|
||
</div>`))},qe.dd={alias:"du",name:"duckduckgo",search:"https://duckduckgo.com/?q=",compl:"https://duckduckgo.com/ac/?q="},qe.dd.callback=e=>JSON.parse(e.text).map((e=>e.phrase)),qe.D={alias:"D",name:"duckduckgo-lucky",search:"https://duckduckgo.com/?q=\\",compl:"https://duckduckgo.com/ac/?q=\\",callback:qe.dd.callback},qe.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:qe.dd.callback},qe.dv={alias:"dv",name:"duckduckgo-videos",search:"https://duckduckgo.com/?ia=videos&iax=videos&q=",compl:"https://duckduckgo.com/ac/?ia=videos&iax=videos&q=",callback:qe.dd.callback},qe.dn={alias:"dn",name:"duckduckgo-news",search:"https://duckduckgo.com/?iar=news&ia=news&q=",compl:"https://duckduckgo.com/ac/?iar=news&ia=news&q=",callback:qe.dd.callback},qe.dm={alias:"dm",name:"duckduckgo-maps",search:"https://duckduckgo.com/?ia=maps&iax=maps&iaxm=places&q=",compl:"https://duckduckgo.com/ac/?ia=maps&iax=maps&iaxm=places&q=",callback:qe.dd.callback},qe.go={alias:"go",name:"google",search:"https://www.google.com/search?q=",compl:"https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q="},qe.go.callback=e=>JSON.parse(e.text)[1],qe.gi={alias:"gi",name:"google-images",search:"https://www.google.com/search?tbm=isch&q=",compl:"https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&ds=i&q=",callback:qe.go.callback},qe.gI={alias:"gI",name:"google-reverse-image",search:"https://www.google.com/searchbyimage?image_url="},qe.G={alias:"G",name:"google-lucky",search:"https://www.google.com/search?btnI=1&q=",compl:"https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=",callback:qe.go.callback},qe.gs={alias:"gs",name:"google-scholar",search:"https://scholar.google.com/scholar?q=",compl:"https://scholar.google.com/scholar_complete?q="},qe.gs.callback=e=>JSON.parse(e.text).l,qe.ka={alias:"ka",name:"kagi",search:"https://kagi.com/search?q=",compl:"https://kagi.com/autosuggest?q=",callback:e=>JSON.parse(e.text).map((e=>{const t=new URL("https://kagi.com/search");return t.searchParams.append("q",e.t),e.goto&&(t.href=e.goto),Te({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>
|
||
`}))},qe.b={alias:"b",name:"brave",search:"https://search.brave.com/search?q=",compl:"https://search.brave.com/api/suggest?q="},qe.b.callback=e=>JSON.parse(e.text)[1],qe.hx={alias:"hx",name:"hex",search:"https://hex.pm/packages?sort=downloads&search=",compl:"https://hex.pm/api/packages?sort=downloads&hx&search="},qe.hx.callback=e=>JSON.parse(e.text).map((e=>Te({url:e.html_url})`
|
||
<div>
|
||
<div class="title">${e.repository}/<strong>${e.name}</strong></div>
|
||
<div>${e.downloads?.all?`[↓${e.downloads.all}]`:""}</div>
|
||
<div>${e.meta?.description??""}</div>
|
||
</div>
|
||
`)),qe.hd={alias:"hd",name:"hexdocs",search:"https://hex.pm/packages?sort=downloads&search=",compl:"https://hex.pm/api/packages?sort=downloads&hd&search="},qe.hd.callback=e=>JSON.parse(e.text).map((e=>Te({url:`https://hexdocs.pm/${encodeURIComponent(e.name)}`})`
|
||
<div>
|
||
<div class="title">${e.repository}/<strong>${e.name}</strong></div>
|
||
<div>${e.downloads?.all?`[↓${e.downloads.all}]`:""}</div>
|
||
<div>${e.meta?.description??""}</div>
|
||
</div>
|
||
`)),qe.gg=Ie({alias:"gg",name:"golang",domain:"golang.org"}),qe.ho={alias:"ho",name:"hoogle",search:"https://www.haskell.org/hoogle/?hoogle=",compl:"https://www.haskell.org/hoogle/?mode=json&hoogle="},qe.ho.callback=e=>JSON.parse(e.text).map((e=>{const t=e.package.name&&e.module.name?_e`<div style="font-size:0.8em; margin-bottom: 0.8em; margin-top: 0.8em">[${e.package.name}] ${e.module.name}</div>`:"";return Te({url:e.url})`
|
||
<div>
|
||
<div class="title" style="font-size: 1.1em; font-weight: bold">${Se(e.item)}</div>
|
||
${t}
|
||
<div style="padding: 0.5em">${Se(e.docs)}</div>
|
||
</div>
|
||
`})),qe.hw={alias:"hw",name:"haskellwiki",search:"https://wiki.haskell.org/index.php?go=go&search=",compl:"https://wiki.haskell.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search="},qe.hw.callback=e=>JSON.parse(e.text)[1],qe.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"},qe.ci.getData=async()=>{const e="completions.ci.data",t=await Ee.get(e);if(t)return JSON.parse(t);const a=JSON.parse(await Ne("https://caniuse.com/data.json"));return Ee.set(e,JSON.stringify(a)),a},qe.ci.callback=async e=>{const{featureIds:t}=JSON.parse(e.text),a=await qe.ci.getData();return t.map((e=>{const t=a.data[e];return t?Te({url:`https://caniuse.com/${e}`})`
|
||
<div>
|
||
<div class="title"><strong>${t.title}</strong></div>
|
||
<div>${t.description}</div>
|
||
</div>
|
||
`:null})).filter((e=>!!e))},qe.jq=Ie({alias:"jq",name:"jquery",domain:"jquery.com"}),qe.no=Ie({alias:"no",name:"node",domain:"nodejs.org"}),qe.md={alias:"md",name:"mdn",search:"https://developer.mozilla.org/search?q=",compl:"https://developer.mozilla.org/api/v1/search?q="},qe.md.callback=e=>JSON.parse(e.text).documents.map((e=>Te({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>
|
||
`)),qe.np={alias:"np",name:"npm",search:"https://www.npmjs.com/search?q=",compl:"https://api.npms.io/v2/search/suggestions?size=20&q=",favicon:Ce("https://www.npmjs.com")},qe.np.callback=e=>JSON.parse(e.text).map((e=>{const t=e.package?.description?e.package.description:"",a=e.package?.date?Oe(new Date(e.package.date)):"",n=e.flags?Object.keys(e.flags).map((e=>_e`[<span style='color:#ff4d00'>⚑</span> ${e}] `)):[];return Te({url:e.package.links.npm})`
|
||
<div>
|
||
<div>
|
||
<span class="title">${Se(e.highlight)}</span>
|
||
<span style="font-size: 0.8em">v${e.package.version}</span>
|
||
</div>
|
||
<div>
|
||
<i style="alpha: 0.7; font-size: 0.8em">${a}</i>
|
||
<span>${$e(n)}</span>
|
||
</div>
|
||
<div>${t}</div>
|
||
</div>
|
||
`})),qe.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"},qe.ts.callback=async e=>{const t=JSON.parse(e.text);return Object.entries(t.hits.reduce(((e,t)=>{const a=t.hierarchy.lvl0;return e[a]||(e[a]=[]),e[a].push(t),e}),{})).sort((([e],[t])=>e.localeCompare(t))).flatMap((([e,t])=>t.map((e=>{console.log(e);const t=e.type,a=Object.entries(e.hierarchy).reduce(((t,[a,n])=>n&&a!==e.type?`${t?t+" > ":""}${n}`:t),""),n=e.hierarchy[t],r=e.content;return Te({url:e.url})`
|
||
<div>
|
||
<div style="font-weight: bold">
|
||
<span style="opacity: 0.6">${Se(a)}${n?" > ":""}</span>
|
||
<span style="">${Se(n)}</span>
|
||
</div>
|
||
<div>${Se(r)}</div>
|
||
<div style="opacity: 0.6; line-height: 1.3em">${Se(e.url)}</div>
|
||
</div>
|
||
`}))))},qe.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="},qe.hn.callback=e=>JSON.parse(e.text).hits.map((e=>{let t="",a="";switch(e.points&&(a+=`[↑${e.points}] `),e.num_comments&&(a+=`[↲${e.num_comments}] `),e._tags[0]){case"story":t=e.title;break;case"comment":t=e.comment_text;break;default:t=e.objectID}const n=`https://news.ycombinator.com/item?id=${encodeURIComponent(e.objectID)}`;return Te({url:n})`
|
||
<div>
|
||
<div class="title">${a}${t}</div>
|
||
<div class="url">${n}</div>
|
||
</div>
|
||
`})),qe.tw={alias:"tw",name:"twitter",search:"https://twitter.com/search?q=",compl:"https://duckduckgo.com/ac/?q=twitter%20"},qe.tw.callback=(e,{query:t})=>{const a=JSON.parse(e.text).map((e=>{const t=e.phrase.replace(/^twitter /,"");return Le(t,`https://twitter.com/search?q=${encodeURIComponent(t)}`)}));return t.length>=2&&t.match(/^@/)&&a.unshift(Le(t,`https://twitter.com/${encodeURIComponent(t.replace(/^@/,""))}`)),a},qe.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="},qe.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"},qe.re.callback=async(e,{query:t})=>{const[a,n,r,o=""]=t.match(/^\s*\/?(r\/[a-zA-Z0-9_]+)(\s+(.*))?/)??[null,null,null,t];if(n&&o)e={text:await Ne(`https://api.reddit.com/${encodeURIComponent(n)}/search?syntax=plain&sort=relevance&restrict_sr=on&limit=20&q=${encodeURIComponent(o)}`)};else if(n){const e=await Ne(`https://www.reddit.com/api/search_reddit_names.json?typeahead=true&exact=false&query=${encodeURIComponent(n)}`);return JSON.parse(e).names.map((e=>Le(`r/${e}`,`https://reddit.com/r/${encodeURIComponent(e)}`,{query:`r/${e}`})))}return JSON.parse(e.text).data.children.map((({data:e})=>{const t=e.thumbnail?.match(/^https?:\/\//)?e.thumbnail:qe.re.thumbs[e.thumbnail]??qe.re.thumbs.default,a=Oe(new Date(1e3*parseInt(e.created,10)));return Te({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="${t}">
|
||
<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 ${a} by</span> <span style="color: opacity: 70%">${e.author}</span></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`}))},qe.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=${i.google_yt}&safeSearch=none&q=`,priv:!0},qe.yt.callback=e=>JSON.parse(e.text).items.map((e=>{const t=e.snippet.thumbnails.default;switch(e.id.kind){case"youtube#channel":return Te({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 a=Oe(new Date(e.snippet.publishTime));return Te({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>${Se(e.snippet.title)}</strong>
|
||
</div>
|
||
<div>
|
||
<span>${Se(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%">${a}</span></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`;default:return null}})).filter((e=>!!e)),qe.hf={alias:"hf",name:"huggingface",search:"https://huggingface.co/models?search=",compl:"https://huggingface.co/api/quicksearch?type=all&q="},qe.hf.callback=e=>{const t=JSON.parse(e.text);return[...t.models.map((e=>Te({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=>Te({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>
|
||
`))]};const Ue={settings:{hintAlign:"left",hintCharacters:"qwertasdfgzxcvb",omnibarSuggestionTimeout:500,richHintsForKeystroke:1,defaultSearchEngine:"b",stealFocusOnLoad:!1,theme:"\n:root {\n /* Font */\n --font: 'JetBrainsMono Nerd Font';\n --font-size: 13px;\n --font-weight: bold;\n\n --fg: #cad3f5;\n --bg: #24273a;\n --bg-dark: #1e2030;\n --border: #6e738d;\n --main-fg: #cad3f5;\n --accent-fg: #b7bdf8;\n --info-fg: #ed8796;\n --select: #494d64;\n}\n\n/* ---------- Generic ---------- */\n.sk_theme {\nbackground: var(--bg);\ncolor: var(--fg);\n background-color: var(--bg);\n border-color: var(--border);\n font-family: var(--font);\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n}\n\ninput {\n font-family: var(--font);\n font-weight: var(--font-weight);\n}\n\n.sk_theme tbody {\n color: var(--fg);\n}\n\n.sk_theme input {\n color: var(--fg);\n}\n\n#sk_tabs .sk_tab {\n background: var(--bg-dark);\n border: 1px solid var(--border);\n}\n\n#sk_tabs .sk_tab_title {\n color: var(--fg);\n}\n\n#sk_tabs .sk_tab_url {\n color: var(--main-fg);\n}\n\n#sk_tabs .sk_tab_hint {\n background: var(--bg);\n border: 1px solid var(--border);\n color: var(--accent-fg);\n}\n\n.sk_theme #sk_frame {\n background: var(--bg);\n opacity: 0.2;\n color: var(--accent-fg);\n}\n\n/* ---------- Omnibar ---------- */\n/* Uncomment this and use settings.omnibarPosition = 'bottom' for Pentadactyl/Tridactyl style bottom bar */\n/* .sk_theme#sk_omnibar {\n width: 100%;\n left: 0;\n} */\n\n.sk_theme .title {\n color: var(--accent-fg);\n}\n\n.sk_theme .url {\n color: var(--main-fg);\n}\n\n.sk_theme .annotation {\n color: var(--accent-fg);\n}\n\n.sk_theme .omnibar_highlight {\n color: var(--accent-fg);\n}\n\n.sk_theme .omnibar_timestamp {\n color: var(--info-fg);\n}\n\n.sk_theme .omnibar_visitcount {\n color: var(--accent-fg);\n}\n\n.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {\n background: var(--bg-dark);\n}\n\n.sk_theme #sk_omnibarSearchResult ul li.focused {\n background: var(--border);\n}\n\n.sk_theme #sk_omnibarSearchArea {\n border-top-color: var(--border);\n border-bottom-color: var(--border);\n}\n\n.sk_theme #sk_omnibarSearchArea input,\n.sk_theme #sk_omnibarSearchArea span {\n font-size: var(--font-size);\n}\n\n.sk_theme .separator {\n color: var(--accent-fg);\n}\n\n/* ---------- Popup Notification Banner ---------- */\n#sk_banner {\n font-family: var(--font);\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n background: var(--bg);\n border-color: var(--border);\n color: var(--fg);\n opacity: 0.9;\n}\n\n/* ---------- Popup Keys ---------- */\n#sk_keystroke {\n background-color: var(--bg);\n}\n\n.sk_theme kbd .candidates {\n color: var(--info-fg);\n}\n\n.sk_theme span.annotation {\n color: var(--accent-fg);\n}\n\n/* ---------- Popup Translation Bubble ---------- */\n#sk_bubble {\n background-color: var(--bg) !important;\n color: var(--fg) !important;\n border-color: var(--border) !important;\n}\n\n#sk_bubble * {\n color: var(--fg) !important;\n}\n\n#sk_bubble div.sk_arrow div:nth-of-type(1) {\n border-top-color: var(--border) !important;\n border-bottom-color: var(--border) !important;\n}\n\n#sk_bubble div.sk_arrow div:nth-of-type(2) {\n border-top-color: var(--bg) !important;\n border-bottom-color: var(--bg) !important;\n}\n\n/* ---------- Search ---------- */\n#sk_status,\n#sk_find {\n font-size: var(--font-size);\n border-color: var(--border);\n}\n\n.sk_theme kbd {\n background: var(--bg-dark);\n border-color: var(--border);\n box-shadow: none;\n color: var(--fg);\n}\n\n.sk_theme .feature_name span {\n color: var(--main-fg);\n}\n\n/* ---------- ACE Editor ---------- */\n#sk_editor {\n background: var(--bg-dark) !important;\n height: 50% !important;\n /* Remove this to restore the default editor size */\n}\n\n.ace_dialog-bottom {\n border-top: 1px solid var(--bg) !important;\n}\n\n.ace-chrome .ace_print-margin,\n.ace_gutter,\n.ace_gutter-cell,\n.ace_dialog {\n background: var(--bg) !important;\n}\n\n.ace-chrome {\n color: var(--fg) !important;\n}\n\n.ace_gutter,\n.ace_dialog {\n color: var(--fg) !important;\n}\n\n.ace_cursor {\n color: var(--fg) !important;\n}\n\n.normal-mode .ace_cursor {\n background-color: var(--fg) !important;\n border: var(--fg) !important;\n opacity: 0.7 !important;\n}\n\n.ace_marker-layer .ace_selection {\n background: var(--select) !important;\n}\n\n.ace_editor,\n.ace_dialog span,\n.ace_dialog input {\n font-family: var(--font);\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n}\n"},keys:xe,searchEngines:qe,siteleader:"a",searchleader:"s",logLevels:["error"]},{categories:He}=ue,{mapkey:Me,map:je,unmap:ze,unmapAllExcept:Fe,Clipboard:Ve,Front:Be,removeSearchAlias:Ge,addSearchAlias:Je}=t,We=(e,t,a)=>{const n=Object.entries(t).flatMap((([t,a])=>a.flatMap((a=>({[a]:e[t]}))))),r=Object.assign({},e,...n);Object.entries(r).forEach((([e,t])=>t.forEach((t=>((e,t,a)=>{const{alias:n,callback:r,leader:o=("global"===e?"":a),category:i=He.misc,description:s="",path:c="(/.*)?"}=t,l={},p=`${o}${n}`;if("global"!==e){const t=e.replace(".","\\.");l.domain=new RegExp(`^http(s)?://(([a-zA-Z0-9-_]+\\.)*)(${t})${c}`)}const d=`#${i} ${s}`;void 0!==t.map?je(n,t.map):Me(p,d,r,l)})(e,t,a)))))},Ye=async()=>{if(window.surfingKeys=t,Ue.settings&&Object.assign(settings,"function"==typeof Ue.settings?Ue.settings():Ue.settings),Ue.logLevels&&await chrome.storage.local.set({logLevels:Ue.logLevels}),Ue.keys&&Ue.keys.unmaps){const{unmaps:e}=Ue.keys;e.mappings&&e.mappings.forEach((e=>ze(e))),e.searchAliases&&Object.entries(e.searchAliases).forEach((([e,t])=>{t.forEach((t=>Ge(t,e)))})),e.pages&&e.pages.forEach((e=>Fe(e.maps,e.url)))}var e,a;if(Ue.searchEngines&&(e=Ue.searchEngines,a=Ue.searchleader??"o",Object.values(e).forEach((e=>{const t={favicon_url:e.favicon,skipMaps:!0};Je(e.alias,e.name,e.search,"",e.compl,e.callback,void 0,t),Me(`${a}${e.alias}`,`#8Search ${e.name}`,(()=>Be.openOmnibar({type:"SearchEngine",extra:e.alias}))),Me(`c${a}${e.alias}`,`#8Search ${e.name} with clipboard contents`,(()=>{Ve.read((t=>{Be.openOmnibar({type:"SearchEngine",pref:t.data,extra:e.alias})}))}))}))),Ue.keys&&Ue.keys.maps){const{keys:e}=Ue,{maps:t,aliases:a={}}=e;We(t,a,Ue.siteleader)}};"undefined"!=typeof window&&Ye()})()})(); |