RSS-Bridge.rss-bridge/daux_libraries/search.min.js

10 lines
34 KiB
JavaScript
Raw Normal View History

(function(){"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){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 _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}var n,l,u,t,r,o,e={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var i,s,o,l={};for(o in t)"key"==o?i=t[o]:"ref"==o?s=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===l[o]&&(l[o]=e.defaultProps[o]);return y(e,l,i,s,null)}function y(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++u:i};return null==i&&null!=l.vnode&&l.vnode(s),s}function d(e){return e.children}function _(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function b(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return b(e)}}function m(e){(!e.__d&&(e.__d=!0)&&t.push(e)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(g)}function g(){for(var e;g.__r=t.length;)e=t.sort((function(e,t){return e.__v.__b-t.__v.__b})),t=[],e
/**!
* FlexSearch.js v0.7.21 (Bundle)
* Copyright 2018-2021 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
* https://github.com/nextapps-de/flexsearch
*/(function(module){(function _f(self){try{module&&(self=module)}catch(e){}var t;function u(e){return"undefined"===typeof e||e}function aa(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=v();return t}function v(){return Object.create(null)}function ba(e,t){return t.length-e.length}function x(e){return"string"===typeof e}function C(e){return"object"===typeof e}function D(e){return"function"===typeof e}function ca(e,t){var n=da;if(e&&(t&&(e=E(e,t)),this.H&&(e=E(e,this.H)),this.J&&1<e.length&&(e=E(e,this.J)),n||""===n)){if(e=e.split(n),this.filter){t=this.filter,n=e.length;const r=[];for(let i=0,s=0;i<n;i++){const n=e[i];n&&!t[n]&&(r[s++]=n)}e=r}return e}return e}self._factory=_f;const da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(e,t){const n=Object.keys(e),r=n.length,i=[];let s="",o=0;for(let l,a,c=0;c<r;c++)l=n[c],(a=e[l])?(i[o++]=F(t?"(?!\\b)"+l+"(\\b|_)":l),i[o++]=a):s+=(s?"|":"")+l;return s&&(i[o++]=F(t?"(?!\\b)("+s+")(\\b|_)":"("+s+")"),i[o]=""),i}function E(e,t){for(let n=0,r=t.length;n<r&&(e=e.replace(t[n],t[n+1]),e);n+=2);return e}function F(e){return new RegExp(e,"g")}function ha(e){let t="",n="";for(let r,i=0,s=e.length;i<s;i++)(r=e[i])!==n&&(t+=n=r);return t}var ja={encode:ia,F:!1,G:""};function ia(e){return ca.call(this,(""+e).toLowerCase(),!1)}const ka={},G={};function la(e){I(e,"add"),I(e,"append"),I(e,"search"),I(e,"update"),I(e,"remove")}function I(e,t){e[t+"Async"]=function(){const e=this,n=arguments;var r=n[n.length-1];let i;return D(r)&&(i=r,delete n[n.length-1]),r=new Promise((function(r){setTimeout((function(){e.async=!0;const i=e[t].apply(e,n);e.async=!1,r(i)}))})),i?(r.then(i),this):r}}function ma(e,t,n,r){const i=e.length;let s,o,l=[],a=0;r&&(r=[]);for(let c=i-1;0<=c;c--){const h=e[c],u=h.length,f=v();let _=!s;for(let e=0;e<u;e++){const u=h[e],d=u.length;if(d)for(let e,h,p=0;p<d;p++)if(h=u[p],s){if(s[h]){if(!c)if(n)n--;else if(l[a++]=h,a===t)return l;(c||r)&&(f[h]=1),_=!0}if(r&&(o[h]=(e=o[h])?++e:e=1,e<i)){const t=r[e-2]||(r[e-2]=[]);t[t.length]=h}}else f[h]=1}if(r)s||(o=f);else if(!_)return[];s=f}if(r)for(let e,i,o=r.length-1;0<=o;o--){e=r[o],i=e.length;for(let r,o=0;o<i;o++)if(r=e[o],!s[r]){if(n)n--;else if(l[a++]=r,a===t)return l;s[r]=1}}return l}function na(e,t){const n=v(),r=v(),i=[];for(let t=0;t<e.length;t++)n[e[t]]=1;for(let e,s=0;s<t.length;s++){e=t[s];for(let t,s=0;s<e.length;s++)t=e[s],n[t]&&!r[t]&&(r[t]=1,i[i.length]=t)}return i}function J(e){this.l=!0!==e&&e,this.cache=v(),this.h=[]}function oa(e,t,n){C(e)&&(e=e.query);let r=this.cache.get(e);return r||(r=this.search(e,t,n),this.cache.set(e,r)),r}J.prototype.set=function(e,t){if(!this.cache[e]){var n=this.h.length;for(n===this.l?delete this.cache[this.h[n-1]]:n++,--n;0<n;n--)this.h[n]=this.h[n-1];this.h[0]=e}this.cache[e]=t},J.prototype.get=function(e){const t=this.cache[e];if(this.l&&t&&(e=this.h.indexOf(e))){const t=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=t}return t};const qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(e,t,n,r,i,s){setTimeout((function(){const o=e(n,JSON.stringify(s));o&&o.then?o.then((function(){t.export(e,t,n,r,i+1)})):t.export(e,t,n,r,i+1)}))}function K(e,t){if(!(this instanceof K))return new K(e);var n;if(e){x(e)?e=qa[e]:(n=e.preset)&&(e=Object.assign({},n[n],e)),n=e.charset;var r=e.lang;x(n)&&(-1===n.indexOf(":")&&(n+=":default"),n=G[n]),x(r)&&(r=ka[r])}else e={};let i,s,o=e.context||{};if(this.encode=e.encode||n&&n.encode||ia,this.register=t||v(),this.D=i=e.resolution||9,this.G=t=n&&n.G||e.tokenize||"strict",this.depth="strict"===t&&o.depth,this.l=u(o.bidirectional),this.s=s=u(e.optimize),this.m=u(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=s?aa(i):v(),this.A=i=o.resolution||1,this.h=s?aa(i):v(),this.F=n&&n.F||e.rtl,this.H=(t=e.matcher||r&&r.H)&&fa(t,!1),this.J=(t=e.stemmer||r&&r.J)&&fa(t,!0),n=t=e.filter||r&&r.filter){n=t,r=v();for(let e=0,t=n.length;e<t;e++)r[n[e]]=1;n=r}this.filter=n,this.cach
//# sourceMappingURL=search.min.js.map