PageSourceSearch

https://www.wbolt.com/wp-content/themes/wbolt/js/res.js?ver=4.4.36

js wbolt.com collected 2026-10-02 04:57:25 UTC 24,268 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t=(...t)=>{let e=t;3===e.length&&(e=[[document.documentElement],...e]),"String"===e[0].constructor.name?e[0]=[...document.querySelectorAll(e[0])]:e[0].forEach?e[0]=[...e[0]]:e[0]=[e[0]],"String"!==e[2].constructor.name&&(e[2].forEach?e[2]=[...e[2]]:e[2]=[e[2]]);const[n,r,o,i]=e,a=r.split(" "),c=t=>{let e;"String"===o.constructor.name?e=t.target.closest(o):[e]=o.filter((e=>e===t.target||e.contains(t.target))),e&&(t.relatedElements=n,i.call(e,t,e))};return n.forEach((t=>{a.forEach((e=>{t.addEventListener(e,c,!0)}))})),c};function e(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function n(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}const a={ajaxurl:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php",baseUrl:{dev:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php",process:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php"},i18n:{searchPlaceHolder:"请输入关键词"}};function c(){c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return q()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=L(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function v(){}function h(){}function m(){}var p={};u(p,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==e&&n.call(w,o)&&(p=w);var y=m.prototype=v.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,c,s){var u=d(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&
1(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:q}}function q(){return{value:void 0,done:!0}}return h.prototype=m,u(y,"constructor",m),u(m,"constructor",h),h.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=E,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var s={stringify:function(t){if("object"!=i(t))return"";var e=[];return Object.entries(t).forEach((function(t){var n=o(t,2),r=n[0],i=n[1];e.push("".concat(r,"=").concat(i))})),e.join("&")},getData:function(t){return n(c().mark((function e(){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.stringify(t)},e.prev=1,e.next=4,fetch(a.ajaxurl,n);case 4:return r=e.sent,e.abrupt("return",r.json());case 8:e.prev=8,e.t0=e.catch(1),Promise.reject(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))()},getList:function(t){return n(c().mark((function e(){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.stringify(t)},e.prev=1,e.next=4,fetch(a.ajaxurl,n);case 4:return r=e.sent,e.abrupt("return",r.text());case 8:e.prev=8,e.t0=e.catch(1),Promise.reject(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))()},getListData:function(t){return n(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.abrupt("return",n.text());case 7:e.prev=7,e.t0=e.catch(0),Promise.reject(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()}},u=s.getData,l=s.getList,d=s.getListData,f=u,v=function(){if(document.querySelector(".wb-dropdown")){var e,n=function(t){t.classList.remove("active"),document.removeEventListener("click",o)},r=function(t,e){for(var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t&&!n.call(t,e);)t=t.parentElement;return t},o=function(t){var o=e.classList.contains("active"),i=!!r(t.target,".wb-dropdown");return!(!o||i)&&(n(e),!1)};t("click",".wb-dropdown .wb-dd-selected",(function(t,r){e&&n(e),(e=r.parentNode).classList.toggle("active"),document.addEventListener("click",o)})),t("click",".wb-dropdown .dropdown-item",(function(t,e){var o=r(t.target,".wb-dropdown");
1if(e.classList.contains("selected"))n(o);else{var i=o.querySelector(".wb-dd-selected"),a=o.querySelector(".dropdown-item.selected"),c=e.querySelector("span")?e.querySelector("span").innerText:e.innerText;i.querySelector("strong").innerText=c,a.classList.remove("selected"),e.classList.add("selected"),n(o)}}))}},h={st:0,smTo:null,init:function(){var t=this;!function(){if("undefined"!=typeof wb_base){console.log("bdOcpc run");var t,e,n,r=(t=new RegExp("(^|&)bd_vid=([^&]*)(&|$)","i"),(null!==(n=(e=window.location.href.split("?"))&&e[1]?e[1].match(t):null)?decodeURIComponent(n[2]):null)||""),o=0;if(r){var i=new Date;r=window.location.href;var a=(o=wb_base.inow)+encodeURIComponent(r);i.setTime(i.getTime()+864e5),document.cookie="wb_bd_vid="+a+"; expires="+i.toUTCString()+"; path=/"}else{var c=document.cookie.split("; ");for(var s in c){var u=c[s].split("=");if("wb_bd_vid"==u[0]){r=u[1];break}}r&&/^1\d{9}/.test(r)>-1&&(o=r.substr(0,10),r=decodeURIComponent(r.substr(10)))}r&&o&&wb_base._wp_uid>0&&wb_base._wp_reg_time>o&&f({action:"wb_front",op:"bd_vid",v:r,t:49}).then((function(t){})),r&&/\/buy\?id=/.test(window.location.href)>0&&f({action:"wb_front",op:"bd_vid",v:r,t:46}).then((function(t){}))}}(),void 0!==wb_base&&(t=>{const{theme_url:e,theme_name:n,assets_ver:r}=t,o=r,i=e+"/images/wb_svg.html?v="+o,a=n?"wbInlineSVGdata_"+n:"wbInlineSVGdata",c=n?"wbInlineSVGrev_"+n:"wbInlineSVGrev";if(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)return!0;const s="localStorage"in window&&null!==window.localStorage;let u,l;const d=()=>{document.body.insertAdjacentHTML("afterbegin",l)},f=()=>{document.body?d():document.addEventListener("DOMContentLoaded",d)};if(s&&localStorage.getItem(c)===o&&(l=localStorage.getItem(a),l))return f(),!0;try{u=new XMLHttpRequest,u.open("GET",i,!0),u.onload=()=>{u.status>=200&&u.status<400&&(l='<div style="display:none;position:absolute;z-index:-1;">'+u.responseText+"</div>",f(),s&&(localStorage.setItem(a,l),localStorage.setItem(c,o)))},u.send()}catch(t){console.log("load svg icon: ",t)}})(wb_base),t.resizeHandler(),document.querySelector("#J_backTop")&&t.backTop(document.querySelector("#J_backTop"));var e=document.querySelectorAll(".search-form");e&&Array.prototype.forEach.call(e,(function(e){t.search(e)}));var n=document.querySelector(".wb-tabs");n&&this.tabs(n),v()},backTop:function(t){t&&t.addEventListener("click",(function(){window.scrollTo({top:0,behavior:"smooth"})}))},search:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector("#searchform"),e=t,n=e.querySelector(".btn-search"),r=e.querySelector(".form-control");r.addEventListener("focus",(function(){e.classList.add("active")})),r.addEventListener("blur",(function(){""===r.value&&e.classList.remove("active")})),n.addEventListener("click",(function(){""!==r.value?e.submit():(r.focus(),r.setAttribute("placeholder","请输入关键词"))}))},resizeHandler:function(){var t=window.innerWidth,e=window.innerHeight;if(!(t<=640)){var n=document.querySelector(".header"),r=document.querySelector(".footer"),o=n?n.offsetHeight:318,i=r?r.offsetHeight:69,a=e-i-o,c=sessionStorage.getItem("WB_CONT_H");n&&(sessionStorage.setItem("WB_HD_H",o),sessionStorage.setItem("WB_FT_H",i)),a!=c&&document.documentElement.style.setProperty("--wb-container-height",a+"px")}},tabs:function(e){t(e,"click",".tab-item",(function(t,n){var r=n.dataset.index;e.querySelector(".tab-item.current").classList.remove("current"),e.querySelector(".wb-tab-cont.current").classList.remove("current"),n.classList.add("current"),e.querySelectorAll(".wb-tab-cont")[r].classList.add("current")}))}};const m=/mobile/i.test(navigator.userAgent),p=(/android/i.test(navigator.userAgent),/iPhone|iPad|iPod/i.test(navigator.userAgent),/MicroMessenger/i.test(navigator.userAgent));var b={st:0,smTo:null,init:function(){m&&(this.mobile.mobileNav(),document.addEventListener("touchstart",(function(){}),!1))},mobile:{mobileNav:function(){var e=b,n=document.querySelector("#J_btnNavMb"),r=document.querySelector("#J_navBar"),o=document.querySelector("body"),i=!1;n&&n.addEventListener("click",(function(){i?(o.classList.toggle("display-nav-m"),window.scrollTo(0,e.st)):(e.st=document.documentElement.scrollTop,o.classList.toggle("display-nav-m")),i=!i})),r&&t(r,"click",".menu-item-has-children .wb-submenu-item-label",(function(t,n){t.preventDefault(),r.classList.toggle("submenu-display"),n.parentNode.classList.toggle("active-submenu"),e.subMenuHandler(n)})),t("click",".wb-sm-hd",(function(t,n){e.closeSubmenu()}))}},subMenuHandler:function(t){var e=b,n=this.getSubmenuWp(),r=e.next(t,".wb-sub-menu")[0],o=t.dataset.desc,i='<a class="wb-sm-bd" href="'.concat(t.getAttribute("href"),'"><strong>').concat(t.innerHTML,'</strong><div class="wb-sm-desc">').concat(o,"</div></a>");n.insertAdjacentHTML("afterbegin",i),n.insertAdjacentHTML("afterbegin",'<div class="wb-sm-hd">返回</div>'),n.insertAdjacentHTML("beforeend",r.innerHTML),n.style.display="block",e.smTo=setTimeout((function(){n.classList.add("active"),clearTimeout(e.smTo)}),30)},getSubmenuWp:function(){var t=document.querySelector("#wbSubmenuWp");return t||(document.querySelector("body").insertAdjacentHTML("beforeend",'<div class="wb-submenu-panel" id="wbSubmenuWp"></div>'),t=document.querySelector("#wbSubmenuWp")),t},closeSubmenu:function(){var t=b,e=this.getSubmenuWp();e.classList.remove("active"),t.smTo=setTimeout((function(){e.innerHTML="",e.style.display="none",clearTimeout(t.smTo)}),300)},next:function(t,e){for(var n=t.nextElementSibling;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]}},w=function(){var t=0,e=document.querySelector("#WB_filterPanel");
1if(e){var n=e.querySelector(".switch-btn"),r=e.querySelector(".filter-box-m");if(r){n&&n.addEventListener("click",(function(e){r.style.display="block",t=setTimeout(o,100)}));var o=function(){clearTimeout(t),r.classList.add("active")},i=function(){r.style.display="none",r.classList.remove("active")},a=r.querySelector(".wb-mask-filter"),c=r.querySelector(".j-close");a&&a.addEventListener("click",(function(t){i()})),c&&c.addEventListener("click",(function(t){i()}))}}},y={scTitleClass:"j-wbsc-title",sctName:"wb-sc-",itso:null,init:function(){var t=this,e=document.querySelector("#J_asideLiftWp"),n=document.querySelector(".article-detail");e&&n&&(t.setContentTitle(n,e),t.itso=new IntersectionObserver((function(n){var r=e.offsetHeight,o=n[0].target,i=o.offsetTop;n[0].intersectionRatio<1&&e.scrollTo({top:i-r/2,behavior:"smooth"}),t.itso.unobserve(o)}),{root:e}))},setContentTitle:function(t,e){var n=this;if(e.dataset.wbCt){var r=e.dataset.wbCt.split(""),o=t.querySelectorAll("h".concat(r[0]));if(Array.prototype.forEach.call(o,(function(t,e){t.classList.add(n.sctName+e,n.scTitleClass),t.hasAttribute("id")||t.setAttribute("id","toc-".concat(e))})),r[1]){var i=t.querySelectorAll("h".concat(r[1]));Array.prototype.forEach.call(i,(function(t,e){t.classList.add(n.sctName+"sub-"+e,n.scTitleClass),t.hasAttribute("id")||t.setAttribute("id","toc-s-".concat(e))}))}var a=t.querySelectorAll("."+n.scTitleClass);Array.prototype.forEach.call(a,(function(t,e){t.setAttribute("data-index",e)}));var c=document.querySelector("#J_asideLiftWp");if(c){var s=new IntersectionObserver((function(t){t.forEach((function(t){var e=t.target.dataset.index;t.intersectionRatio>0&&null!=e&&n.updateLift(e,c)}))}),{rootMargin:"-45% 0px"});Array.prototype.forEach.call(a,(function(t){s.observe(t)})),n.liftSideHandler(c)}}},liftSideHandler:function(e){var n=this;e.querySelectorAll(".wb-toc-item")&&t(e,"click",".wb-toc-item",(function(t,r){var o=r.querySelector(".wb-toc-subtitle"),i=r.querySelector(".wb-toc-title"),a=o?"sub-"+o.dataset.index:i.dataset.index,c=document.querySelector(".".concat(n.sctName).concat(a));if(c){var s=n.elemOffsetY(c)-80,u=e.querySelector(".current");u&&u.classList.remove("current"),r.classList.add("current"),n.updateBuoy(r,e),window.scrollTo({top:s})}}))},updateLift:function(t,e){var n=this,r=e.querySelectorAll(".wb-toc-item"),o=e.querySelector(".current"),i=r[t];o&&o.classList.remove("current"),i.classList.add("current"),n.updateBuoy(i,e),n.itso&&n.itso.observe(i)},updateBuoy:function(t,e){var n=t||e.querySelector(".current"),r=e.querySelector(".buoy");r&&(r.style="transform: translate3d(0,"+n.offsetTop+"px, 0);")},elemOffsetY:function(t){return t.offsetParent?t.offsetTop+this.elemOffsetY(t.offsetParent):t.offsetTop}};function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var L=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,e);var o={};this.opt=Object.assign(o,r);var i=t.dataset.wbatsTarget||this.opt.target;this.asTo=null,this.$target=document.querySelector(i),this.opt.onReady&&this.opt.onReady(),this.$target&&(t.addEventListener("click",(function(){n.active()})),this.inactive())}var n,r,o;return n=e,(r=[{key:"active",value:function(){var t=this,e=t.$target;t.opt.onActive&&t.opt.onActive(e),e.classList.add("wb-active"),t.asTo=setTimeout((function(){e.classList.add("wb-slide-in")}),50)}},{key:"inactive",value:function(){var e=this.$target,n=this;t(e,"click",".was-close, .was-mask",(function(){n.opt.onInactive&&n.opt.onInactive(e),e.classList.remove("wb-slide-in","wb-active")}))}}])&&S(n.prototype,r),o&&S(n,o),Object.defineProperty(n,"prototype",{writable:!1}),e}(),T={st:0,sct:null,init:function(){var t=this,e=document.querySelectorAll("[data-wbats-target]");Array.prototype.forEach.call(e,(function(t){new L(t)}));var n=document.querySelector(".wb-act-share-nvt");n&&(navigator.share?n.addEventListener("click",(function(){navigator.share({title:document.title||"",url:window.location.href}).then((function(){return console.log("分享成功!")}
1)).catch((function(t){return console.log("分享失败:",t)}))})):p?t.wxShareTips(n):new L(n,{target:".wb-ats-share"}));var r=document.querySelector(".header"),o=document.querySelector(".wb-tabbar"),i=document.documentElement.scrollHeight;window.addEventListener("scroll",(function(){clearTimeout(t.sct),t.sct=setTimeout((function(){var e=window.pageYOffset||document.documentElement.scrollTop;if(e+window.innerHeight>=i-1)return r&&r.classList.add("wb-hide"),void(o&&o.classList.remove("wb-hide"));e>t.st?(r&&r.classList.add("wb-hide"),o&&o.classList.remove("wb-hide")):e<t.st&&(r&&r.classList.remove("wb-hide"),o&&o.classList.add("wb-hide")),t.st=e}),200)}))},wxShareTips:function(t){var e=document.querySelector(".wb-wx-share-wp");if(!e){var n=document.title||"页面标题";document.querySelector("body").insertAdjacentHTML("beforeend",'\n        <div class="wb-wx-share-wp">\n        <div class="wb-wst-inner">\n          <div class="wb-wst-hd">点击右上角即可分享</div>\n          <div class="wb-wst-img">\n            <div class="wb-wst-title">'.concat(n,'</div>\n            <div class="wb-wst-close"></div>\n            <div class="wb-wst-points"><i></i><i></i><i></i></div>\n          </div>\n        </div>\n      </div>\n      ')),e=document.querySelector(".wb-wx-share-wp")}t.addEventListener("click",(function(){e.classList.add("active")})),e.addEventListener("click",(function(){e.classList.remove("active")}))}},x={resListLoading:!1,init:function(){var e=this;document.querySelector("#J_asideLiftWp")&&y.init(),h.init(),b.init(),document.querySelector("#J_postListResource")&&e.getResourceItems();var n=document.querySelector(".bread-crumbs");n&&e.scToMainHandler(n),m&&(w(),T.init()),t("click",'a[data-wbil="true"]',(function(t,n){t.stopPropagation(),t.preventDefault(),e.ajaxContentHandler(n,".wbil-wp");var r=document.querySelector(".bread-crumbs");r&&e.scToMainHandler(r)}))},getResourceItems:function(){var t=this,e=document.querySelector("#J_postListResource"),n=document.querySelector("#J_loadMoreResourceBtn"),r=e&&e.nextElementSibling,o=parseInt(e.dataset.paged),i=parseInt(e.dataset.maxpage),a={action:"wb_lazy_load",do:"get_resource_items"},c=o;e&&(o>=i?n.style.display="none":n.addEventListener("click",(function(){t.resListLoading||(r.style.display="block",c&&(c++,a.paged=c),l(a).then((function(t){e.dataset.paged=c,r.style.display="none",e.insertAdjacentHTML("beforeend",t),c>=i&&(n.style.display="none")})))})))},scToMainHandler:function(t){window.scrollTo({top:t.offsetTop})},loadingBar:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector("#wbTopLoading");n||(document.body.insertAdjacentHTML("beforeend",'<div id="wbTopLoading" class="wb-loading-bar"><div class="wb-loading-bar-inner"></div></div>'),n=document.querySelector("#wbTopLoading")),n.style.display=t?"block":"none",n.style.cssText="--anmt-width: "+(50+40*Math.random())+"%",n.classList.toggle("active",t),e&&(n.classList.toggle("finish",e),setTimeout((function(){n.remove()}),500))},ajaxContentHandler:function(t,e){var n=this,r=t.href,o=document.querySelector(e);n.loadingBar(!0),d(r).then((function(t){var i=(new DOMParser).parseFromString(t,"text/html").querySelector(e),a=i.className;o.innerHTML=i.innerHTML,o.className=a,history.pushState({},"",r),n.loadingBar(!0,!0)}))}};document.addEventListener("DOMContentLoaded",(function(){x.init()}))})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.