!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/trending-search"]=t():e["style/hide/trending-search"]=t()}(globalThis,(()=>(()=>{var e,t,n={95:(e,t,n)=>{var r=n(955)((function(e){return e[1]}));r.push([e.id,'@charset "UTF-8";\n.search-panel > .trending, .search-pannel > .trending {\n  display: none !important;\n}\n.search-panel:not(:has(.history)), .search-pannel:not(:has(.history)) {\n  padding: 0 !important;\n  border: none !important;\n}\n\n#nav-searchform.is-focus {\n  /* 搜索框 focusing 且有关键字列表 or 历史记录列表时不显示低边框*/\n}\n#nav-searchform.is-focus:not(:has(+ .search-panel > .suggestions), :has(+ .search-panel > .history)) {\n  border-radius: 8px !important;\n}',""]),e.exports=r},955:e=>{"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
t.i=function(e,n,r){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},65:(e,t,n)=>{var r=n(95);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},129:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=129,e.exports=t},278:e=>{"use strict";e.exports="隐藏搜索栏和搜索页面中的 `bilibili 热搜`. 请注意这只是视觉上的隐藏, 如果不输入任何关键词就点 Enter 或搜索按钮, 仍然会跳转至推荐的热搜词."}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.d(i,{component:()=>c});const e=coreApis.componentApis.define,t=coreApis.observer,n=coreApis.spinQuery,r="搜索",a=e=>{e.placeholder=r,e.title=r},s=()=>"live.bilibili.com"===window.location.host?"input.nav-search-content":"input.nav-search-input",c=(0,e.defineComponentMetadata)({name:"hideTrendingSearch",displayName:"隐藏热搜",tags:[componentsTags.style],instantStyles:[{name:"hideTrendingSearch",style:()=>Promise.resolve().then(o.t.bind(o,65,23))}],entry:async()=>{const e=s(),o=await(0,n.select)(e,{queryInterval:500});o?a(o):(0,t.allMutations)((e=>{e.forEach((e=>{(e=>{if(!(e instanceof HTMLInputElement))return!1;const t=["nav-search-content","nav-search-input"].some((t=>e.classList.contains(t)));return e.placeholder!==r&&t})(e.target)&&a(e.target)}))}))},commitHash:"f8d9b5665fc198fe5b2eb39c57dab6d686e5ed74",coreVersion:"2.10.4",description:(()=>{const e=o(129);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(o.t.bind(o,278,17)).then((e=>e.default))}})()})})(),i=i.component})()));