mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
335 KiB
7 lines
335 KiB
7 months ago
|
/*! typesense-docsearch.js 3.4.1 (UNRELEASED 1db4c40) | MIT License | © Algolia, Inc. and contributors | https://typesense.org/docs/latest/guide/docsearch.html */
|
||
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).docsearch=t()}(this,(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){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var r,o,i,a,s,u={},c=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(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 p(e,t,n){var r,o,i,a=arguments,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return d(e,s,r,o,null)}function d(e,t,n,o,i){var a={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(a),a}function v(e){return e.children}function m(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(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?_(e):null}function y(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 y(e)}}function g(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!b.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||i)(b)}function b(){for(var e;b.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,P(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?_(o):i,o.__h),j(n,o),o.__e!=i&&y(o)))}))}function w(e,t,n,r,o,i,a,s,l,f){var h,p,m,y,g,b,w,E=r&&r.__k||c,x=E.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(y=n.__k[h]=null==(y=t[h])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y?d(null,y,null,null,y):Array.isArray(y)?d(v,{children:y},null,null,null):y.__b>0?d(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(m=E[h])||m&&y.key==m.key&&y.type===m.type)E[h]=void 0;else for(p=0;p<x;p++){if((m=E[p])&&y.key==m.key&&y.type===m.type){E[p]=void 0;break}m=null}P(e,y,m=m||u,o,i,a,s,l,f),g=y.__e,(p=y.ref)&&m.ref!=p&&(w||(w=[]),m.ref&&w.push(m.ref,null,y),w.push(p,y.__c||g,y)),null!=g?(null==b&&(b=g),"function"==typeof y.type&&null!=y.__k&&y.__k===m.__k?y.__d=l=O(y,l,e):l=S(e,y,m,E,g,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&m.__e==l&&l.parentNode!=e&&(l=_(m))}for(n.__e=b,h=x;h--;)null!=E[h]&&("function"==typeof n.type&&null!=E[h].__e&&E[h].__e==n.__d&&(n.__d=_(r,h+1)),I(E[h],E[h]));if(w)for(h=0;h<w.length;h++)T(w[h],w[++h],w[++h])}function O(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?O(o,t,n):S(n,o,o,e.__k,o.__e,t));return t}function E(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,t)})):t.push(e)),t}function S(e,t,n,r,o,i){var
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
|
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new R(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var d={};function v(){}function m(){}function _(){}var y={};f(y,u,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==o&&i.call(b,u)&&(y=b);var w=_.prototype=v.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,n){function r(o,a,s,u){var c=p(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,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 j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}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 u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=_,a(w,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:m,configurable:!0}),m.displayName=f(_,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},O(E.prototype),f(E.prototype,c,(function(){return this})),r.AsyncIterator=E,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new E(h(e,t,n,o),i);return r.isGeneratorFunction(t)?
|
||
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
||
|
var Ts=2147483647,Is=/[^\x20-\x7E]/,Ls=/[\x2E\u3002\uFF0E\uFF61]/g,Ns={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ds=Math.floor,Ms=String.fromCharCode;function Us(e){throw new RangeError(Ns[e])}function Fs(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function Hs(e,t,n){var r=0;for(e=n?Ds(e/700):e>>1,e+=Ds(e/t);e>455;r+=36)e=Ds(e/35);return Ds(r+36*e/(e+38))}function qs(e){return function(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}((e=e.replace(Ls,".")).split("."),t).join(".");return r+o}(e,(function(e){return Is.test(e)?"xn--"+function(e){var t,n,r,o,i,a,s,u,c,l,f,h,p,d,v,m=[];for(e=function(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}(e),h=e.length,t=128,n=0,i=72,a=0;a<h;++a)(f=e[a])<128&&m.push(Ms(f));for(r=o=m.length,o&&m.push("-");r<h;){for(s=Ts,a=0;a<h;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>Ds((Ts-n)/(p=r+1))&&Us("overflow"),n+=(s-t)*p,t=s,a=0;a<h;++a)if((f=e[a])<t&&++n>Ts&&Us("overflow"),f==t){for(u=n,c=36;!(u<(l=c<=i?1:c>=i+26?26:c-i));c+=36)v=u-l,d=36-l,m.push(Ms(Fs(l+v%d,0))),u=Ds(v/d);m.push(Ms(Fs(u,0))),i=Hs(n,p,r==o),n=0,++r}++n,++t}return m.join("")}(e):e}))}function Bs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var zs=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Zs(t){switch(e(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function Vs(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var Ws=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t};function Ks(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var c,l,f,h,p=e[u].replace(i,"%20"),d=p.indexOf(n);d>=0?(c=p.substr(0,d),l=p.substr(d+1)):(c=p,l=""),f=decodeURIComponent(c),h=decodeURIComponent(l),Bs(o,f)?zs(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o}var Ys={parse:uu,resolve:function(e,t){return uu(e,!1,!0).resolve(t)},resolveObject:function(e,t){return e?uu(e,!1,!0).resolveObject(t):t},format:function(e){la(e)&&(e=cu({},e));return lu(e)},Url:Gs};function Gs(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Js=/^([a-z0-9.+-]+:)/i,$s=/:[0-9]*$/,Xs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Qs=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),eu=["'"].concat(Qs),tu=["%","/","?",";","#"].concat(eu),nu=["/","?","#"],ru=/^[+a-z0-9A-Z_-]{0,63}$/,ou=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,iu={javascript:!0,"javascript:":!0},au={javascript:!0,"javascript:":!0},su={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function uu(e,t,n){if(e&&pa(e)&&e instanceof Gs)return e;var r=new Gs;return r.parse(e,t,n),r}function cu(t,n,r,o){if(!la(n))throw new TypeError("Parameter 'url' must be a string, not "+e(n));var i=n.indexOf("?"),a=-1!==i&&i<n.indexOf("#")?"?":"#",s=n.split(a);s[0]=s[0].replace(/\\/g,"/");var u=n=s.join(a);if(u=u.trim(),!o&&1===n.split("#").length){var c=Xs.exec(u);if(c)return t.path=u,t.href=u,t.pathname=c[1],c[2]?(t.search=c[2],t.query=r?Ks(t.search.substr(1)):t.search.substr(1)):r&&(t.search="",t.query={}),t}var l,f,h,p,d=Js.exec(u);if(d){var v=(d=d[0]).toLowerCase();t.protocol=v,u=u.substr(d.length)}if(o||d||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===u.substr(0,2);!m||d&&au[d]||(u=u.substr(2),t.slashes=!0)}if(!au[d]&&(m||d&&!su[d])){var _,y,g=-1;for(l=0;l<nu.length;l++)-1!==(f=u.indexOf(nu[l]))&&(-1===g||f<g)&&
|