多维表格
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.
 
 
 
 
 
 

6 lines
335 KiB

/*! 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 a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?R:C,i):e.removeEventListener(t,i?R:C,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function C(e){this.l[e.type+!1](r.event?r.event(e):e)}function R(e){this.l[e.type+!0](r.event?r.event(e):e)}function P(e,t,n,o,i,a,s,u,c){var l,h,p,d,_,y,g,b,O,E,S,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(l=r.__b)&&l(t);try{e:if("function"==typeof x){if(b=t.props,O=(l=x.contextType)&&o[l.__c],E=l?O?O.props.value:l.__:o,n.__c?g=(h=t.__c=n.__c).__=h.__E:("prototype"in x&&x.prototype.render?t.__c=h=new x(b,E):(t.__c=h=new m(b,E),h.constructor=x,h.render=L),O&&O.sub(h),h.props=b,h.state||(h.state={}),h.context=E,h.__n=o,p=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=x.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=f({},h.__s)),f(h.__s,x.getDerivedStateFromProps(b,h.__s))),d=h.props,_=h.state,p)null==x.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,E),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,E)||t.__v===n.__v){h.props=b,h.state=h.__s,t.__v!==n.__v&&(h.__d=!1),h.__v=t,t.__e=n.__e,t.__k=n.__k,h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,E),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(d,_,y)}))}h.context=E,h.props=b,h.state=h.__s,(l=r.__r)&&l(t),h.__d=!1,h.__v=t,h.__P=e,l=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=f(f({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(y=h.getSnapshotBeforeUpdate(d,_)),S=null!=l&&l.type===v&&null==l.key?l.props.children:l,w(e,Array.isArray(S)?S:[S],t,n,o,i,a,s,u,c),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),g&&(h.__E=h.__=null),h.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,o,i,a,s,c);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=u,t.__h=!!c,a[a.indexOf(u)]=null),r.__e(e,t,n)}}function j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function A(e,t,n,r,o,i,a,s){var l,f,p,d,v=n.props,m=t.props,_=t.type,y=0;if("svg"===_&&(o=!0),null!=i)for(;y<i.length;y++)if((l=i[y])&&(l===e||(_?l.localName==_:3==l.nodeType))){e=l,i[y]=null;break}if(null==e){if(null===_)return document.createTextNode(m);e=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,m.is&&m),i=null,s=!1}if(null===_)v===m||s&&e.data===m||(e.data=m);else{if(i=i&&c.slice.call(e.childNodes),f=(v=n.props||u).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!s){if(null!=i)for(v={},d=0;d<e.attributes.length;d++)v[e.attributes[d].name]=e.attributes[d].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}(e,m,v,o,s),p)t.__k=[];else if(y=t.props.children,w(e,Array.isArray(y)?y:[y],t,n,r,o&&"foreignObject"!==_,i,a,e.firstChild,s),null!=i)for(y=i.length;y--;)null!=i[y]&&h(i[y]);s||("value"in m&&void 0!==(y=m.value)&&(y!==e.value||"progress"===_&&!y)&&k(e,"value",y,v.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==e.checked&&k(e,"checked",y,v.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function I(e,t,n){var o,i,a;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(a=0;a<o.length;a++)o[a]&&I(o[a],t,n);null!=i&&h(i)}function L(e,t,n){return this.constructor(e,n)}function N(e,t,n){var o,i,a;r.__&&r.__(e,t),i=(o="function"==typeof n)?null:n&&n.__k||t.__k,a=[],P(t,e=(!o&&n||t).__k=p(v,null,[e]),i||u,u,void 0!==t.ownerSVGElement,!o&&n?[n]:i?null:t.firstChild?c.slice.call(t.childNodes):null,a,!o&&n?n:i?i.__e:t.firstChild,o),j(a,e)}function D(e,t){N(e,t,D)}function M(e,t,n){var r,o,i,a=arguments,s=f({},e.props);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]);return null!=n&&(s.children=n),d(e.type,s,r||e.key,o||e.ref,null)}r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},m.prototype.render=v,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b.__r=0,s=0;var U,F,H,q=0,B=[],z=r.__b,Z=r.__r,V=r.diffed,W=r.__c,K=r.unmount;function Y(e,t){r.__h&&r.__h(F,e,q||t),q=0;var n=F.__H||(F.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function G(e,t,n){var r=Y(U++,2);return r.t=e,r.__c||(r.__=[n?n(t):oe(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=F),r.__}function J(e,t){var n=Y(U++,3);!r.__s&&re(n.__H,t)&&(n.__=e,n.__H=t,F.__H.__h.push(n))}function $(e,t){var n=Y(U++,4);!r.__s&&re(n.__H,t)&&(n.__=e,n.__H=t,F.__h.push(n))}function X(e,t){var n=Y(U++,7);return re(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Q(){B.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(te),e.__H.__h.forEach(ne),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}})),B=[]}r.__b=function(e){F=null,z&&z(e)},r.__r=function(e){Z&&Z(e),U=0;var t=(F=e.__c).__H;t&&(t.__h.forEach(te),t.__h.forEach(ne),t.__h=[])},r.diffed=function(e){V&&V(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==B.push(t)&&H===r.requestAnimationFrame||((H=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ee&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ee&&(t=requestAnimationFrame(n))})(Q)),F=void 0},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(te),e.__h=e.__h.filter((function(e){return!e.__||ne(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),W&&W(e,t)},r.unmount=function(e){K&&K(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(te)}catch(e){r.__e(e,t.__v)}};var ee="function"==typeof requestAnimationFrame;function te(e){var t=F;"function"==typeof e.__c&&e.__c(),F=t}function ne(e){var t=F;e.__c=e.__(),F=t}function re(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function oe(e,t){return"function"==typeof t?t(e):t}function ie(e,t){for(var n in t)e[n]=t[n];return e}function ae(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function se(e){this.props=e}(se.prototype=new m).isPureReactComponent=!0,se.prototype.shouldComponentUpdate=function(e,t){return ae(this.props,e)||ae(this.state,t)};var ue=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ue&&ue(e)};var ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var le=function(e,t){return null==e?null:E(E(e).map(t))},fe={map:le,forEach:le,count:function(e){return e?E(e).length:0},only:function(e){var t=E(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:E},he=r.__e;function pe(){this.__u=0,this.t=null,this.__b=null}function de(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ve(){this.u=null,this.o=null}r.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);he(e,t,n)},(pe.prototype=new m).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=de(r.__v),i=!1,a=function(){i||(i=!0,n.componentWillUnmount=n.__c,o?o(s):s())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){a(),n.__c&&n.__c()};var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},pe.prototype.componentWillUnmount=function(){this.t=[]},pe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=ie({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&p(v,null,e.fallback);return o&&(o.__h=null),[p(v,null,t.__e?null:e.children),o]};var me=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _e(e){return this.getChildContext=function(){return e.context},e.children}function ye(e){var t=this,n=e.i;t.componentWillUnmount=function(){N(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),N(p(_e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ge(e,t){return p(ye,{__v:e,i:t})}(ve.prototype=new m).__e=function(e){var t=this,n=de(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),me(t,e,r)):o()};n?n(i):i()}},ve.prototype.render=function(e){this.u=null,this.o=new Map;var t=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ve.prototype.componentDidUpdate=ve.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){me(e,n,t)}))};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,we=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Oe=function(t){return("undefined"!=typeof Symbol&&"symbol"==e(Symbol())?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Ee(e,t,n){return null==t.__k&&(t.textContent=""),N(e,t),"function"==typeof n&&n(),e?e.__c:null}m.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(m.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Se=r.event;function xe(){}function ke(){return this.cancelBubble}function Ce(){return this.defaultPrevented}r.event=function(e){return Se&&(e=Se(e)),e.persist=xe,e.isPropagationStopped=ke,e.isDefaultPrevented=Ce,e.nativeEvent=e};var Re,Pe={configurable:!0,get:function(){return this.class}},je=r.vnode;r.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Oe(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():we.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=E(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=E(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Pe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Pe)),e.$$typeof=be,je&&je(e)};var Ae=r.__r;r.__r=function(e){Ae&&Ae(e),Re=e.__c};var Te={ReactCurrentDispatcher:{current:{readContext:function(e){return Re.__n[e.__c].props.value}}}};"object"==("undefined"==typeof performance?"undefined":e(performance))&&"function"==typeof performance.now&&performance.now.bind(performance);function Ie(e){return!!e&&e.$$typeof===be}var Le={useState:function(e){return q=1,G(oe,e)},useReducer:G,useEffect:J,useLayoutEffect:$,useRef:function(e){return q=5,X((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){q=6,$((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:X,useCallback:function(e,t){return q=8,X((function(){return e}),t)},useContext:function(e){var t=F.context[e.__c],n=Y(U++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(F)),t.props.value):e.__},useDebugValue:function(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)},version:"16.8.0",Children:fe,render:Ee,hydrate:function(e,t,n){return D(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(N(null,e),!0)},createPortal:ge,createElement:p,createContext:function(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return p.bind(null,e)},cloneElement:function(e){return Ie(e)?M.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:v,isValidElement:Ie,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:m,PureComponent:se,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ae(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(t){function n(n,r){var o=ie({},n);return delete o.ref,t(o,(r=n.ref||r)&&("object"!=e(r)||"current"in r)?r:null)}return n.$$typeof=ce,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:v,Suspense:pe,SuspenseList:ve,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Te},Ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function De(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Me(e,t){return e(t={exports:{}},t.exports),t.exports}var Ue=Me((function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Fe=De(Ue),He=Me((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));De(He);var qe=Me((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports}));De(qe);var Be=Me((function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Be);var ze=Me((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));De(ze);var Ze=Me((function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Ze);var Ve=Me((function(e){e.exports=function(e,t){return He(e)||qe(e,t)||ze(e,t)||Ze()},e.exports.__esModule=!0,e.exports.default=e.exports})),We=De(Ve),Ke=Me((function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));De(Ke);var Ye=Me((function(e){var t=Ke.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Ye);var Ge=Me((function(e){var t=Ke.default;e.exports=function(e){var n=Ye(e,"string");return"symbol"===t(n)?n:String(n)},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Ge);var Je=Me((function(e){e.exports=function(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports})),$e=De(Je),Xe=Me((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Xe);var Qe=Me((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o=Xe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports})),et=De(Qe);function tt(e){return e.reduce((function(e,t){return e.concat(t)}),[])}var nt=0;function rt(e){return 0===e.collections.length?0:e.collections.reduce((function(e,t){return e+t.items.length}),0)}var ot=function(){},it=[{segment:"autocomplete-core",version:"1.8.2"}];function at(e,t){var n=t;return{then:function(t,r){return at(e.then(ut(t,n,e),ut(r,n,e)),n)},catch:function(t){return at(e.catch(ut(t,n,e)),n)},finally:function(t){return t&&n.onCancelList.push(t),at(e.finally(ut(t&&function(){return n.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===n.isCanceled}}}function st(e){return at(e,{isCanceled:!1,onCancelList:[]})}function ut(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function ct(e,t,n,r){if(!n)return null;if(e<0&&(null===t||null!==r&&0===t))return n+e;var o=(null===t?-1:t)+e;return o<=-1||o>=n?null===r?null:0:o}function lt(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 ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e){var t=function(e){var t=e.collections.map((function(e){return e.items.length})).reduce((function(e,t,n){var r=(e[n-1]||0)+t;return e.push(r),e}),[]).reduce((function(t,n){return n<=e.activeItemId?t+1:t}),0);return e.collections[t]}(e);if(!t)return null;var n=t.items[function(e){for(var t=e.state,n=e.collection,r=!1,o=0,i=0;!1===r;){var a=t.collections[o];if(a===n){r=!0;break}i+=a.items.length,o++}return t.activeItemId-i}({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}var dt=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function vt(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 mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(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 gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(r,i){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);o=e(o,{type:r,props:t,payload:i}),n({state:o,prevState:a})},pendingRequests:(r=[],{add:function(e){return r.push(e),e.finally((function(){r=r.filter((function(t){return t!==e}))}))},cancelAll:function(){r.forEach((function(e){return e.cancel()}))},isEmpty:function(){return 0===r.length}})}}function wt(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 Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){Et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e){return function(e){if(Array.isArray(e))return xt(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 xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(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 xt(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}function kt(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t){var n,r="undefined"!=typeof window?window:{},o=e.plugins||[];return Ct(Ct({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:r,shouldPanelOpen:function(e){return rt(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:"autocomplete-".concat(nt++),plugins:o,initialState:Ct({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(St(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:ot,onResolve:ot};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=ft(ft({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return tt(e)})).then((function(e){return e.map((function(e){return Ct(Ct({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:Ct({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function jt(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 At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(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 Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e){return function(e){if(Array.isArray(e))return Mt(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 Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(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 Mt(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}function Ut(e){return Boolean(e.execute)}function Ft(e,t,n){if(o=e,Boolean(null==o?void 0:o.execute)){var r="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(Dt(Object.keys(n.context).map((function(e){var t;return null===(t=n.context[e])||void 0===t?void 0:t.__algoliaSearchParameters}))))):{};return Lt(Lt({},e),{},{requests:e.queries.map((function(n){return{query:"algolia"===e.requesterId?Lt(Lt({},n),{},{params:Lt(Lt({},r),n.params)}):n,sourceId:t,transformResponse:e.transformResponse}}))})}var o;return{items:e,sourceId:t}}function Ht(e){var t=e.reduce((function(e,t){if(!Ut(t))return e.push(t),e;var n=t.searchClient,r=t.execute,o=t.requesterId,i=t.requests,a=e.find((function(e){return Ut(t)&&Ut(e)&&e.searchClient===n&&Boolean(o)&&e.requesterId===o}));if(a){var s;(s=a.items).push.apply(s,Dt(i))}else{var u={execute:r,requesterId:o,items:i,searchClient:n};e.push(u)}return e}),[]),n=t.map((function(e){if(!Ut(e))return Promise.resolve(e);var t=e,n=t.execute,r=t.items;return n({searchClient:t.searchClient,requests:r})}));return Promise.all(n).then((function(e){return tt(e)}))}function qt(e,t,n){return t.map((function(t){var r=e.filter((function(e){return e.sourceId===t.sourceId})),o=r.map((function(e){return e.items})),i=r[0].transformResponse,a=i?i(function(e){var t=e.map((function(e){var t;return mt(mt({},e),{},{hits:null===(t=e.hits)||void 0===t?void 0:t.map((function(t){return mt(mt({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))})}));return{results:t,hits:t.map((function(e){return e.hits})).filter(Boolean),facetHits:t.map((function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}}(o)):o;return t.onResolve({source:t,results:o,items:a,state:n.getState()}),a.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:a}}))}var Bt=["event","nextState","props","query","refresh","store"];function zt(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 Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kt,Yt,Gt,Jt=null,$t=(Kt=-1,Yt=-1,Gt=void 0,function(e){var t=++Kt;return Promise.resolve(e).then((function(e){return Gt&&t<Yt?Gt:(Yt=t,Gt=e,e)}))});function Xt(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,o=e.props,i=e.query,a=e.refresh,s=e.store,u=Wt(e,Bt);Jt&&o.environment.clearTimeout(Jt);var c=u.setCollections,l=u.setIsOpen,f=u.setQuery,h=u.setActiveItemId,p=u.setStatus;if(f(i),h(o.defaultActiveItemId),!i&&!1===o.openOnFocus){var d,v=s.getState().collections.map((function(e){return Zt(Zt({},e),{},{items:[]})}));p("idle"),c(v),l(null!==(d=r.isOpen)&&void 0!==d?d:o.shouldPanelOpen({state:s.getState()}));var m=st($t(v).then((function(){return Promise.resolve()})));return s.pendingRequests.add(m)}p("loading"),Jt=o.environment.setTimeout((function(){p("stalled")}),o.stallThreshold);var _=st($t(o.getSources(Zt({query:i,refresh:a,state:s.getState()},u)).then((function(e){return Promise.all(e.map((function(e){return Promise.resolve(e.getItems(Zt({query:i,refresh:a,state:s.getState()},u))).then((function(t){return Ft(t,e.sourceId,s.getState())}))}))).then(Ht).then((function(t){return qt(t,e,s)})).then((function(e){return function(e){var t=e.collections,n=e.props,r=e.state,o=t.reduce((function(e,t){return At(At({},e),{},Tt({},t.source.sourceId,At(At({},t.source),{},{getItems:function(){return tt(t.items)}})))}),{}),i=n.plugins.reduce((function(e,t){return t.reshape?t.reshape(e):e}),{sourcesBySourceId:o,state:r}).sourcesBySourceId;return tt(n.reshape({sourcesBySourceId:i,sources:Object.values(i),state:r})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:o,state:s.getState()})}))})))).then((function(e){var n;p("idle"),c(e);var f=o.shouldPanelOpen({state:s.getState()});l(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!i&&f||f);var h=pt(s.getState());if(null!==s.getState().activeItemId&&h){var d=h.item,v=h.itemInputValue,m=h.itemUrl,_=h.source;_.onActive(Zt({event:t,item:d,itemInputValue:v,itemUrl:m,refresh:a,source:_,state:s.getState()},u))}})).finally((function(){p("idle"),Jt&&o.environment.clearTimeout(Jt)}));return s.pendingRequests.add(_)}var Qt=["event","props","refresh","store"];function en(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 tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var on=["props","refresh","store"],an=["inputElement","formElement","panelElement"],sn=["inputElement"],un=["inputElement","maxLength"],cn=["sourceIndex"],ln=["sourceIndex"],fn=["item","source","sourceIndex"];function hn(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 pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mn(e){var t=e.props,n=e.refresh,r=e.store,o=vn(e,on),i=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;function a(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,i].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return pn({onTouchStart:a,onMouseDown:a,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},vn(e,an))},getRootProps:function(e){return pn({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return pn({action:"",noValidate:!0,role:"search",onSubmit:function(i){var a;i.preventDefault(),t.onSubmit(pn({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(a=e.inputElement)||void 0===a||a.blur()},onReset:function(i){var a;i.preventDefault(),t.onReset(pn({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(a=e.inputElement)||void 0===a||a.focus()}},vn(e,sn))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,o=vn(n,cn);return pn({htmlFor:"".concat(i(t.id,r),"-input"),id:"".concat(i(t.id,r),"-label")},o)},getInputProps:function(e){var i;function a(e){(t.openOnFocus||Boolean(r.getState().query))&&Xt(pn({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var s=e||{},u=(s.inputElement,s.maxLength),c=void 0===u?512:u,l=vn(s,un),f=pt(r.getState()),h=function(e){return Boolean(e&&e.match(dt))}((null===(i=t.environment.navigator)||void 0===i?void 0:i.userAgent)||""),p=null!=f&&f.itemUrl&&!h?"go":"search";return pn({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:p,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){Xt(pn({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=rn(e,Qt);if("ArrowUp"===t.key||"ArrowDown"===t.key){var a=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},s=function(){var e=pt(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,a=e.itemInputValue,s=e.itemUrl,u=e.source;u.onActive(tn({event:t,item:n,itemInputValue:a,itemUrl:s,refresh:r,source:u,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?Xt(tn({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),s(),setTimeout(a,0)})):(o.dispatch(t.key,{}),s(),a())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var u=pt(o.getState()),c=u.item,l=u.itemInputValue,f=u.itemUrl,h=u.source;if(t.metaKey||t.ctrlKey)void 0!==f&&(h.onSelect(tn({event:t,item:c,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:f,item:c,state:o.getState()}));else if(t.shiftKey)void 0!==f&&(h.onSelect(tn({event:t,item:c,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:f,item:c,state:o.getState()}));else if(t.altKey);else{if(void 0!==f)return h.onSelect(tn({event:t,item:c,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:o.getState()},i)),void n.navigator.navigate({itemUrl:f,item:c,state:o.getState()});Xt(tn({event:t,nextState:{isOpen:!1},props:n,query:l,refresh:r,store:o},i)).then((function(){h.onSelect(tn({event:t,item:c,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:o.getState()},i))}))}}}(pn({event:e,props:t,refresh:n,store:r},o))},onFocus:a,onBlur:ot,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||a(n)}},l)},getPanelProps:function(e){return pn({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,o=vn(n,ln);return pn({role:"listbox","aria-labelledby":"".concat(i(t.id,r),"-label"),id:"".concat(i(t.id,r),"-list")},o)},getItemProps:function(e){var a=e.item,s=e.source,u=e.sourceIndex,c=vn(e,fn);return pn({id:"".concat(i(t.id,u),"-item-").concat(a.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===a.__autocomplete_id,onMouseMove:function(e){if(a.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",a.__autocomplete_id);var t=pt(r.getState());if(null!==r.getState().activeItemId&&t){var i=t.item,s=t.itemInputValue,u=t.itemUrl,c=t.source;c.onActive(pn({event:e,item:i,itemInputValue:s,itemUrl:u,refresh:n,source:c,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var i=s.getItemInputValue({item:a,state:r.getState()}),u=s.getItemUrl({item:a,state:r.getState()});(u?Promise.resolve():Xt(pn({event:e,nextState:{isOpen:!1},props:t,query:i,refresh:n,store:r},o))).then((function(){s.onSelect(pn({event:e,item:a,itemInputValue:i,itemUrl:u,refresh:n,source:s,state:r.getState()},o))}))}},c)}}}function _n(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 yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){var t,n,r,o,i=e.plugins,a=e.options,s=null===(t=((null===(n=a.__autocomplete_metadata)||void 0===n?void 0:n.userAgents)||[])[0])||void 0===t?void 0:t.segment,u=s?gn({},s,Object.keys((null===(r=a.__autocomplete_metadata)||void 0===r?void 0:r.options)||{})):{};return{plugins:i.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:yn({"autocomplete-core":Object.keys(a)},u),ua:it.concat((null===(o=a.__autocomplete_metadata)||void 0===o?void 0:o.userAgents)||[])}}function wn(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=pt(n))||void 0===t?void 0:t.itemInputValue)||null}function On(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 En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return En(En({},e),{},{activeItemId:t.payload});case"setQuery":return En(En({},e),{},{query:t.payload,completion:null});case"setCollections":return En(En({},e),{},{collections:t.payload});case"setIsOpen":return En(En({},e),{},{isOpen:t.payload});case"setStatus":return En(En({},e),{},{status:t.payload});case"setContext":return En(En({},e),{},{context:En(En({},e.context),t.payload)});case"ArrowDown":var n=En(En({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:ct(1,e.activeItemId,rt(e),t.props.defaultActiveItemId)});return En(En({},n),{},{completion:wn({state:n})});case"ArrowUp":var r=En(En({},e),{},{activeItemId:ct(-1,e.activeItemId,rt(e),t.props.defaultActiveItemId)});return En(En({},r),{},{completion:wn({state:r})});case"Escape":return e.isOpen?En(En({},e),{},{activeItemId:null,isOpen:!1,completion:null}):En(En({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return En(En({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return En(En({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":return En(En({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:En(En({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return En(En({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function kn(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 Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e){var t=[],n=Pt(e,t),r=bt(xn,n,(function(e){var t=e.prevState,r=e.state;n.onStateChange(Cn({prevState:t,state:r,refresh:a,navigator:n.navigator},o))})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map((function(e){return Ot(Ot({},e),{},{items:tt(e.items).map((function(e){return Ot(Ot({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),i=mn(Cn({props:n,refresh:a,store:r,navigator:n.navigator},o));function a(){return Xt(Cn({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:a,store:r},o))}return n.plugins.forEach((function(e){var r;return null===(r=e.subscribe)||void 0===r?void 0:r.call(e,Cn(Cn({},o),{},{navigator:n.navigator,refresh:a,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})},onResolve:function(e){t.push({onResolve:e})}}))})),function(e){var t,n,r=e.metadata,o=e.environment;if(null===(t=o.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var i=o.document.createElement("meta"),a=o.document.querySelector("head");i.name="algolia:metadata",setTimeout((function(){i.content=JSON.stringify(r),a.appendChild(i)}),0)}}({metadata:bn({plugins:n.plugins,options:e}),environment:n.environment}),Cn(Cn({refresh:a,navigator:n.navigator},i),o)}var jn=function(){return"undefined"!=typeof window&&(null===(e=window.navigator)||void 0===e||null===(t=e.platform)||void 0===t?void 0:t.includes("Mac"))?"⌘":"Ctrl";var e,t};function An(){return Le.createElement("div",{className:"doc-container"},Le.createElement("div",{className:"doc-footer-item doc-shortcut-active"},Le.createElement("svg",{className:"doc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Le.createElement("path",{fill:"#3366ff",d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6m4 18H6V4h7v5h5v11Z"})),"Document",Le.createElement("span",{className:"doc-shortcut doc-icon-active"},jn()," + J")),Le.createElement("div",{className:"doc-footer-item"},Le.createElement("svg",{className:"doc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Le.createElement("path",{fill:"#65696f",d:"M12 6.5A2.5 2.5 0 0 1 14.5 9a2.5 2.5 0 0 1-2.5 2.5A2.5 2.5 0 0 1 9.5 9A2.5 2.5 0 0 1 12 6.5M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7m0 2a5 5 0 0 0-5 5c0 1 0 3 5 9.71C17 12 17 10 17 9a5 5 0 0 0-5-5Z"})),"Quick Navigation",Le.createElement("span",{className:"doc-shortcut"},jn()," + K")),Le.createElement("div",{className:"doc-footer-item"},Le.createElement("svg",{className:"doc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Le.createElement("path",{fill:"#65696f",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z"})),"Recent",Le.createElement("span",{className:"doc-shortcut"},jn()," + L")))}function Tn(e){var t=e.hit,n=e.children;return Le.createElement("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},n)}function In(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},Le.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),Le.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Ln(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Nn(){return Le.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},Le.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),Le.createElement("path",{d:"M8 17l-6-6 6-6"})))}var Dn=function(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function Mn(e){switch(e.type){case"lvl1":return Le.createElement(Dn,null);case"content":return Le.createElement(Fn,null);default:return Le.createElement(Un,null)}}function Un(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Fn(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Hn(){return Le.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Le.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function qn(){return Le.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},Le.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function Bn(){return Le.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},Le.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function zn(e){var t=e.translations,n=void 0===t?{}:t,r=n.titleText,o=void 0===r?"Unable to fetch results":r,i=n.helpText,a=void 0===i?"You might want to check your network connection.":i;return Le.createElement("div",{className:"DocSearch-ErrorScreen"},Le.createElement("div",{className:"DocSearch-Screen-Icon"},Le.createElement(qn,null)),Le.createElement("p",{className:"DocSearch-Title"},o),Le.createElement("p",{className:"DocSearch-Help"},a))}var Zn=Me((function(e){e.exports=function(e){if(Array.isArray(e))return Be(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Zn);var Vn=Me((function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Vn);var Wn=Me((function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Wn);var Kn=Me((function(e){e.exports=function(e){return Zn(e)||Vn(e)||ze(e)||Wn()},e.exports.__esModule=!0,e.exports.default=e.exports})),Yn=De(Kn),Gn=["translations"];function Jn(e){var t=e.translations,n=void 0===t?{}:t,r=et(e,Gn),o=n.noResultsText,i=void 0===o?"No results for":o,a=n.suggestedQueryText,s=void 0===a?"Try searching for":a,u=n.reportMissingResultsText,c=void 0===u?"Believe this query should return results?":u,l=n.reportMissingResultsLinkText,f=void 0===l?"Let us know.":l,h=r.state.context.searchSuggestions;return Le.createElement("div",{className:"DocSearch-NoResults"},Le.createElement("div",{className:"DocSearch-Screen-Icon"},Le.createElement(Bn,null)),Le.createElement("p",{className:"DocSearch-Title"},i,' "',Le.createElement("strong",null,r.state.query),'"'),h&&h.length>0&&Le.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},Le.createElement("p",{className:"DocSearch-Help"},s,":"),Le.createElement("ul",null,h.slice(0,3).reduce((function(e,t){return[].concat(Yn(e),[Le.createElement("li",{key:t},Le.createElement("button",{className:"DocSearch-Prefill",key:t,type:"button",onClick:function(){r.setQuery(t.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},t))])}),[]))),r.getMissingResultsUrl&&Le.createElement("p",{className:"DocSearch-Help"},"".concat(c," "),Le.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var $n=["hit","attribute","tagName"];function Xn(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 Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e){var t,n,r,o,i=e.hit,a=e.attribute,s=e.tagName,u=void 0===s?"span":s,c=et(e,$n),l=(null==i||null===(t=i._highlightResult)||void 0===t||null===(n=t[a])||void 0===n?void 0:n.value)||(null==i?void 0:i[a]);if(null!=i&&null!==(r=i._snippetResult)&&void 0!==r&&null!==(o=r[a])&&void 0!==o&&o.value){var f,h,d=null==i||null===(f=i._snippetResult)||void 0===f||null===(h=f[a])||void 0===h?void 0:h.value;l.substring(0,20)!==d.substring(0,20)&&(d="… ".concat(d)),l.substring(l.length-20,l.length)!==d.substring(d.length-20,d.length)&&(d="".concat(d," …")),l=d}return p(u,Qn(Qn({},c),{},{dangerouslySetInnerHTML:{__html:l}}))}function tr(e){return e.collection&&0!==e.collection.items.length?Le.createElement("section",{className:"DocSearch-Hits"},Le.createElement("div",{className:"DocSearch-Hit-source"},e.title),Le.createElement("ul",e.getListProps(),e.collection.items.map((function(t,n){return Le.createElement(nr,Fe({key:[e.title,t.objectID].join(":"),item:t,index:n},e))})))):null}function nr(e){var t=e.item,n=e.index,r=e.renderIcon,o=e.renderAction,i=e.getItemProps,a=e.onItemClick,s=e.collection,u=e.hitComponent,c=Le.useState(!1),l=We(c,2),f=l[0],h=l[1],p=Le.useState(!1),d=We(p,2),v=d[0],m=d[1],_=Le.useRef(null),y=u;return Le.createElement("li",Fe({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",f&&"DocSearch-Hit--deleting",v&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){_.current&&_.current()}},i({item:t,source:s.source,onClick:function(){a(t)}})),Le.createElement(y,{hit:t},Le.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t["hierarchy.".concat(t.type)]&&"lvl0"===t.type&&Le.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Le.createElement(er,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl0"})),t["hierarchy.".concat(t.type)]&&"lvl1"===t.type&&Le.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Le.createElement(er,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&Le.createElement(er,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t["hierarchy.".concat(t.type)]&&("lvl2"===t.type||"lvl3"===t.type||"lvl4"===t.type||"lvl5"===t.type||"lvl6"===t.type)&&Le.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Le.createElement(er,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),Le.createElement(er,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),"content"===t.type&&Le.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Le.createElement(er,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),Le.createElement(er,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),o({item:t,runDeleteTransition:function(e){h(!0),_.current=e},runFavoriteTransition:function(e){m(!0),_.current=e}}))))}function rr(e,t){return e.reduce((function(e,n){var r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].length<5&&e[r].push(n),e}),{})}function or(e){return e}function ir(){}var ar=/(<mark>|<\/mark>)/g,sr=RegExp(ar.source);function ur(e){var t,n,r,o=e;if(!o.__docsearch_parent&&!e._highlightResult)return e["hierarchy.lvl0"];var i=((o.__docsearch_parent?null===(t=o.__docsearch_parent)||void 0===t||null===(n=t._highlightResult)||void 0===n?void 0:n["hierarchy.lvl0"]:null===(r=e._highlightResult)||void 0===r?void 0:r["hierarchy.lvl0"])||{}).value;return i&&sr.test(i)?i.replace(ar,""):i}function cr(e){return Le.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.collections.map((function(t){if(0===t.items.length)return null;var n=ur(t.items[0]);return Le.createElement(tr,Fe({},e,{key:t.source.sourceId,title:n,collection:t,renderIcon:function(e){var n,r=e.item,o=e.index;return Le.createElement(Le.Fragment,null,r.__docsearch_parent&&Le.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},Le.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},r.__docsearch_parent!==(null===(n=t.items[o+1])||void 0===n?void 0:n.__docsearch_parent)?Le.createElement("path",{d:"M8 6v21M20 27H8.3"}):Le.createElement("path",{d:"M8 6v42M20 27H8.3"}))),Le.createElement("div",{className:"DocSearch-Hit-icon"},Le.createElement(Mn,{type:r.type})))},renderAction:function(){return Le.createElement("div",{className:"DocSearch-Hit-action"},Le.createElement(Nn,null))}}))})),e.resultsFooterComponent&&Le.createElement("section",{className:"DocSearch-HitsFooter"},Le.createElement(e.resultsFooterComponent,{state:e.state})))}var lr=["translations"];function fr(e){var t=e.translations,n=void 0===t?{}:t,r=et(e,lr),o=n.recentSearchesTitle,i=void 0===o?"Recent":o,a=n.noRecentSearchesText,s=void 0===a?"No recent searches":a,u=n.saveRecentSearchButtonTitle,c=void 0===u?"Save this search":u,l=n.removeRecentSearchButtonTitle,f=void 0===l?"Remove this search from history":l,h=n.favoriteSearchesTitle,p=void 0===h?"Favorite":h,d=n.removeFavoriteSearchButtonTitle,v=void 0===d?"Remove this search from favorites":d;return"idle"===r.state.status&&!1===r.hasCollections?r.disableUserPersonalization?null:Le.createElement("div",{className:"DocSearch-StartScreen"},Le.createElement("p",{className:"DocSearch-Help"},s)):!1===r.hasCollections?null:Le.createElement("div",{className:"DocSearch-Dropdown-Container"},Le.createElement(tr,Fe({},r,{title:i,collection:r.state.collections[0],renderIcon:function(){return Le.createElement("div",{className:"DocSearch-Hit-icon"},Le.createElement(In,null))},renderAction:function(e){var t=e.item,n=e.runFavoriteTransition,o=e.runDeleteTransition;return Le.createElement(Le.Fragment,null,Le.createElement("div",{className:"DocSearch-Hit-action"},Le.createElement("button",{className:"DocSearch-Hit-action-button",title:c,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),n((function(){r.favoriteSearches.add(t),r.recentSearches.remove(t),r.refresh()}))}},Le.createElement(Hn,null))),Le.createElement("div",{className:"DocSearch-Hit-action"},Le.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),o((function(){r.recentSearches.remove(t),r.refresh()}))}},Le.createElement(Ln,null))))}})),Le.createElement(tr,Fe({},r,{title:p,collection:r.state.collections[1],renderIcon:function(){return Le.createElement("div",{className:"DocSearch-Hit-icon"},Le.createElement(Hn,null))},renderAction:function(e){var t=e.item,n=e.runDeleteTransition;return Le.createElement("div",{className:"DocSearch-Hit-action"},Le.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),n((function(){r.favoriteSearches.remove(t),r.refresh()}))}},Le.createElement(Ln,null)))}})))}var hr=["translations"],pr=Le.memo((function(e){var t=e.translations,n=void 0===t?{}:t,r=et(e,hr);if("error"===r.state.status)return Le.createElement(zn,{translations:null==n?void 0:n.errorScreen});var o=r.state.collections.some((function(e){return e.items.length>0}));return r.state.query?!1===o?Le.createElement(Jn,Fe({},r,{translations:null==n?void 0:n.noResultsScreen})):Le.createElement(cr,r):Le.createElement(fr,Fe({},r,{hasCollections:o,translations:null==n?void 0:n.startScreen}))}),(function(e,t){return"loading"===t.state.status||"stalled"===t.state.status})),dr=De(Me((function(e){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},e.exports.__esModule=!0,e.exports.default=e.exports})));function vr(e){var t=Fe({},(dr(e),e)),n=t.getFormProps({inputElement:t.inputRef.current}).onReset;return Le.useEffect((function(){t.autoFocus&&t.inputRef.current&&t.inputRef.current.focus()}),[t.autoFocus,t.inputRef]),Le.useEffect((function(){t.isFromSelection&&t.inputRef.current&&t.inputRef.current.select()}),[t.isFromSelection,t.inputRef]),Le.createElement(Le.Fragment,null,Le.createElement("form",{className:"DocSearch-Form",onSubmit:function(e){e.preventDefault()},onReset:n},Le.createElement("input",Fe({className:"DocSearch-Input",ref:t.inputRef},t.getInputProps({inputElement:t.inputRef.current,autoFocus:t.autoFocus,maxLength:64})))))}var mr=["_highlightResult","_snippetResult"];function _r(e){return!1===function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(e){return!1}}()?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function yr(e){var t=e.key,n=e.limit,r=void 0===n?5:n,o=_r(t),i=o.getItem().slice(0,r);return{add:function(e){var t=e,n=(t._highlightResult,t._snippetResult,et(t,mr)),a=i.findIndex((function(e){return e.objectID===n.objectID}));a>-1&&i.splice(a,1),i.unshift(n),i=i.slice(0,r),o.setItem(i)},remove:function(e){i=i.filter((function(t){return t.objectID!==e.objectID})),o.setItem(i)},getAll:function(){return i}}}var gr=Me((function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,u,"next",e)}function u(e){t(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports})),br=De(gr),wr=Me((function(e){var t=Ke.default;function n(){
/*! 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)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(w),f(w,l,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=P,R.prototype={constructor:R,reset:function(e){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(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}));De(wr);var Or=wr(),Er=Or;try{regeneratorRuntime=Or}catch(t){"object"===("undefined"==typeof globalThis?"undefined":e(globalThis))?globalThis.regeneratorRuntime=Or:Function("r","regeneratorRuntime = r")(Or)}var Sr=Me((function(t){var n,r;n=Ne,r=function(){var t=function(){},n="undefined",r=("undefined"==typeof window?"undefined":e(window))!==n&&e(window.navigator)!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(o){return"debug"===o&&(o="log"),("undefined"==typeof console?"undefined":e(console))!==n&&("trace"===o&&r?a:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):t)}function u(e,n){for(var r=0;r<o.length;r++){var i=o[r];this[i]=r<e?t:this.methodFactory(i,e,n)}this.log=this.debug}function c(t,r,o){return function(){("undefined"==typeof console?"undefined":e(console))!==n&&(u.call(this,r,o),this[t].apply(this,arguments))}}function l(e,t,n){return s(e)||c.apply(this,arguments)}function f(t,r,i){var a,s=this;r=null==r?"WARN":r;var c="loglevel";function f(){var t;if(("undefined"==typeof window?"undefined":e(window))!==n&&c){try{t=window.localStorage[c]}catch(e){}if(e(t)===n)try{var r=window.document.cookie,o=r.indexOf(encodeURIComponent(c)+"=");-1!==o&&(t=/^([^;]+)/.exec(r.slice(o))[1])}catch(e){}return void 0===s.levels[t]&&(t=void 0),t}}"string"==typeof t?c+=":"+t:"symbol"===e(t)&&(c=void 0),s.name=t,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=i||l,s.getLevel=function(){return a},s.setLevel=function(r,i){if("string"==typeof r&&void 0!==s.levels[r.toUpperCase()]&&(r=s.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(a=r,!1!==i&&function(t){var r=(o[t]||"silent").toUpperCase();if(("undefined"==typeof window?"undefined":e(window))!==n&&c){try{return void(window.localStorage[c]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(e){}}}(r),u.call(s,r,t),("undefined"==typeof console?"undefined":e(console))===n&&r<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){r=e,f()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(r,!1),function(){if(("undefined"==typeof window?"undefined":e(window))!==n&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var h=f();null==h&&(h=r),s.setLevel(h,!1)}var h=new f,p={};h.getLogger=function(t){if("symbol"!==e(t)&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var n=p[t];return n||(n=p[t]=new f(t,h.getLevel(),h.methodFactory)),n};var d=("undefined"==typeof window?"undefined":e(window))!==n?window.log:void 0;return h.noConflict=function(){return("undefined"==typeof window?"undefined":e(window))!==n&&window.log===h&&(window.log=d),h},h.getLoggers=function(){return p},h.default=h,h},t.exports?t.exports=r():n.log=r()})),xr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.name=n.name,Object.setPrototypeOf(r,n.prototype),r}return r(t,e),t}(Error);t.default=o}));De(xr);var kr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(kr);var Cr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Cr);var Rr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Rr);var Pr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Pr);var jr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(jr);var Ar=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Ar);var Tr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Tr);var Ir=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o(xr).default);t.default=i}));De(Ir);var Lr=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.importResults=n,r}return r(t,e),t}(o(xr).default);t.default=i}));De(Lr);var Nr=Me((function(e,t){var n=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var r=n(kr);t.HTTPError=r.default;var o=n(Cr);t.MissingConfigurationError=o.default;var i=n(Rr);t.ObjectAlreadyExists=i.default;var a=n(Pr);t.ObjectNotFound=a.default;var s=n(jr);t.ObjectUnprocessable=s.default;var u=n(Ar);t.RequestMalformed=u.default;var c=n(Tr);t.RequestUnauthorized=c.default;var l=n(Ir);t.ServerError=l.default;var f=n(Lr);t.ImportError=f.default;var h=n(xr);t.TypesenseError=h.default}));De(Nr);Nr.ImportError,Nr.TypesenseError,Nr.ServerError,Nr.RequestUnauthorized,Nr.RequestMalformed,Nr.ObjectUnprocessable,Nr.ObjectNotFound,Nr.ObjectAlreadyExists,Nr.MissingConfigurationError,Nr.HTTPError;var Dr=Me((function(e,t){var n=Ne&&Ne.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},r=Ne&&Ne.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=Ne&&Ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Ne&&Ne.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(Sr),s=function(){function e(e){var t=this;this.nodes=e.nodes||[],this.nodes=this.nodes.map((function(e){return t.setDefaultPathInNode(e)})).map((function(e){return t.setDefaultPortInNode(e)})).map((function(e){return n({},e)})),null==e.randomizeNodes&&(e.randomizeNodes=!0),!0===e.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=e.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=e.connectionTimeoutSeconds||e.timeoutSeconds||5,this.healthcheckIntervalSeconds=e.healthcheckIntervalSeconds||60,this.numRetries=e.numRetries||this.nodes.length+(null==this.nearestNode?0:1)||3,this.retryIntervalSeconds=e.retryIntervalSeconds||.1,this.apiKey=e.apiKey,this.sendApiKeyAsQueryParam=e.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=e.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=e.useServerSideSearchCache||!1,this.logger=e.logger||a,this.logLevel=e.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=e.additionalHeaders,this.showDeprecationWarnings(e),this.validate()}return e.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new Nr.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new Nr.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new Nr.MissingConfigurationError("Ensure that apiKey is set");return!0},e.prototype.validateNodes=function(){var e=this;return this.nodes.some((function(t){return e.isNodeMissingAnyParameters(t)}))},e.prototype.isNodeMissingAnyParameters=function(e){return!["protocol","host","port","path"].every((function(t){return e.hasOwnProperty(t)}))&&null==e.url},e.prototype.setDefaultPathInNode=function(e){return null==e||e.hasOwnProperty("path")||(e.path=""),e},e.prototype.setDefaultPortInNode=function(e){if(null!=e&&!e.hasOwnProperty("port")&&e.hasOwnProperty("protocol"))switch(e.protocol){case"https":e.port=443;break;case"http":e.port=80}return e},e.prototype.showDeprecationWarnings=function(e){e.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),e.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),e.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},e.prototype.shuffleArray=function(e){for(var t,n=e.length-1;n>0;n--){var r=Math.floor(Math.random()*(n+1));t=[e[r],e[n]],e[n]=t[0],e[r]=t[1]}},e}();t.default=s}));De(Dr);var Mr=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Ur=Object.prototype.toString;function Fr(e){return Array.isArray(e)}function Hr(e){return void 0===e}function qr(e){return"[object ArrayBuffer]"===Ur.call(e)}function Br(t){return null!==t&&"object"===e(t)}function zr(e){if("[object Object]"!==Ur.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Zr(e){return"[object Function]"===Ur.call(e)}function Vr(t,n){if(null!=t)if("object"!==e(t)&&(t=[t]),Fr(t))for(var r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}var Wr={isArray:Fr,isArrayBuffer:qr,isBuffer:function(e){return null!==e&&!Hr(e)&&null!==e.constructor&&!Hr(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===Ur.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&qr(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Br,isPlainObject:zr,isUndefined:Hr,isDate:function(e){return"[object Date]"===Ur.call(e)},isFile:function(e){return"[object File]"===Ur.call(e)},isBlob:function(e){return"[object Blob]"===Ur.call(e)},isFunction:Zr,isStream:function(e){return Br(e)&&Zr(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===Ur.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Vr,merge:function e(){var t={};function n(n,r){zr(t[r])&&zr(n)?t[r]=e(t[r],n):zr(n)?t[r]=e({},n):Fr(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)Vr(arguments[r],n);return t},extend:function(e,t,n){return Vr(t,(function(t,r){e[r]=n&&"function"==typeof t?Mr(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Kr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Yr=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Wr.isURLSearchParams(t))r=t.toString();else{var o=[];Wr.forEach(t,(function(e,t){null!=e&&(Wr.isArray(e)?t+="[]":e=[e],Wr.forEach(e,(function(e){Wr.isDate(e)?e=e.toISOString():Wr.isObject(e)&&(e=JSON.stringify(e)),o.push(Kr(t)+"="+Kr(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function Gr(){this.handlers=[]}Gr.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},Gr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Gr.prototype.forEach=function(e){Wr.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Jr=Gr,$r="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Xr(){throw new Error("setTimeout has not been defined")}function Qr(){throw new Error("clearTimeout has not been defined")}var eo=Xr,to=Qr;function no(e){if(eo===setTimeout)return setTimeout(e,0);if((eo===Xr||!eo)&&setTimeout)return eo=setTimeout,setTimeout(e,0);try{return eo(e,0)}catch(t){try{return eo.call(null,e,0)}catch(t){return eo.call(this,e,0)}}}"function"==typeof $r.setTimeout&&(eo=setTimeout),"function"==typeof $r.clearTimeout&&(to=clearTimeout);var ro,oo=[],io=!1,ao=-1;function so(){io&&ro&&(io=!1,ro.length?oo=ro.concat(oo):ao=-1,oo.length&&uo())}function uo(){if(!io){var e=no(so);io=!0;for(var t=oo.length;t;){for(ro=oo,oo=[];++ao<t;)ro&&ro[ao].run();ao=-1,t=oo.length}ro=null,io=!1,function(e){if(to===clearTimeout)return clearTimeout(e);if((to===Qr||!to)&&clearTimeout)return to=clearTimeout,clearTimeout(e);try{to(e)}catch(t){try{return to.call(null,e)}catch(t){return to.call(this,e)}}}(e)}}function co(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];oo.push(new lo(e,t)),1!==oo.length||io||no(uo)}function lo(e,t){this.fun=e,this.array=t}lo.prototype.run=function(){this.fun.apply(null,this.array)};function fo(){}var ho=fo,po=fo,vo=fo,mo=fo,_o=fo,yo=fo,go=fo;var bo=$r.performance||{},wo=bo.now||bo.mozNow||bo.msNow||bo.oNow||bo.webkitNow||function(){return(new Date).getTime()};var Oo=new Date;var Eo={nextTick:co,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ho,addListener:po,once:vo,off:mo,removeListener:_o,removeAllListeners:yo,emit:go,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*wo.call(bo),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Oo)/1e3}},So=function(e,t){Wr.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},xo=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},ko={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Co=function(e,t,n,r,o){var i=new Error(e);return xo(i,t,n,r,o)},Ro=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(Co("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)},Po=Wr.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Wr.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Wr.isString(r)&&a.push("path="+r),Wr.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},jo=function(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},Ao=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],To=Wr.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Wr.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function Io(e){this.message=e}Io.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Io.prototype.__CANCEL__=!0;var Lo=Io,No=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}Wr.isFormData(o)&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+l)}var f=jo(e.baseURL,e.url);function h(){if(u){var r="getAllResponseHeaders"in u?function(e){var t,n,r,o={};return e?(Wr.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Wr.trim(e.substr(0,r)).toLowerCase(),n=Wr.trim(e.substr(r+1)),t){if(o[t]&&Ao.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(u.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};Ro((function(e){t(e),s()}),(function(e){n(e),s()}),o),u=null}}if(u.open(e.method.toUpperCase(),Yr(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(n(Co("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){n(Co("Network Error",e,null,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||ko;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Co(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Wr.isStandardBrowserEnv()){var p=(e.withCredentials||To(f))&&e.xsrfCookieName?Po.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in u&&Wr.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),Wr.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new Lo("canceled"):e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null),u.send(o)}))},Do=[],Mo=[],Uo="undefined"!=typeof Uint8Array?Uint8Array:Array,Fo=!1;function Ho(){Fo=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Do[t]=e[t],Mo[e.charCodeAt(t)]=t;Mo["-".charCodeAt(0)]=62,Mo["_".charCodeAt(0)]=63}function qo(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Do[(o=r)>>18&63]+Do[o>>12&63]+Do[o>>6&63]+Do[63&o]);return i.join("")}function Bo(e){var t;Fo||Ho();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,u=n-r;s<u;s+=a)i.push(qo(e,s,s+a>u?u:s+a));return 1===r?(t=e[n-1],o+=Do[t>>2],o+=Do[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Do[t>>10],o+=Do[t>>4&63],o+=Do[t<<2&63],o+="="),i.push(o),i.join("")}function zo(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)}function Zo(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=d,a/=256,c-=8);e[n+p-d]|=128*v}var Vo={}.toString,Wo=Array.isArray||function(e){return"[object Array]"==Vo.call(e)};function Ko(){return Go.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Yo(e,t){if(Ko()<t)throw new RangeError("Invalid typed array length");return Go.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Go.prototype:(null===e&&(e=new Go(t)),e.length=t),e}function Go(e,t,n){if(!(Go.TYPED_ARRAY_SUPPORT||this instanceof Go))return new Go(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Xo(this,e)}return Jo(this,e,t,n)}function Jo(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);Go.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Go.prototype:e=Qo(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Go.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|ni(t,n),o=(e=Yo(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(ti(t)){var n=0|ei(t.length);return 0===(e=Yo(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Yo(e,0):Qo(e,t);if("Buffer"===t.type&&Wo(t.data))return Qo(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function $o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Xo(e,t){if($o(t),e=Yo(e,t<0?0:0|ei(t)),!Go.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Qo(e,t){var n=t.length<0?0:0|ei(t.length);e=Yo(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function ei(e){if(e>=Ko())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ko().toString(16)+" bytes");return 0|e}function ti(e){return!(null==e||!e._isBuffer)}function ni(e,t){if(ti(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Pi(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ji(e).length;default:if(r)return Pi(e).length;t=(""+t).toLowerCase(),r=!0}}function ri(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return yi(this,t,n);case"utf8":case"utf-8":return di(this,t,n);case"ascii":return mi(this,t,n);case"latin1":case"binary":return _i(this,t,n);case"base64":return pi(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gi(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function oi(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ii(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Go.from(t,r)),ti(t))return 0===t.length?-1:ai(e,t,n,r,o);if("number"==typeof t)return t&=255,Go.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ai(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function ai(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){f=!1;break}if(f)return i}return-1}function si(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function ui(e,t,n,r){return Ai(Pi(t,e.length-n),e,n,r)}function ci(e,t,n,r){return Ai(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function li(e,t,n,r){return ci(e,t,n,r)}function fi(e,t,n,r){return Ai(ji(t),e,n,r)}function hi(e,t,n,r){return Ai(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function pi(e,t,n){return 0===t&&n===e.length?Bo(e):Bo(e.slice(t,n))}function di(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=vi)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=vi));return n}(r)}Go.TYPED_ARRAY_SUPPORT=void 0===$r.TYPED_ARRAY_SUPPORT||$r.TYPED_ARRAY_SUPPORT,Go.poolSize=8192,Go._augment=function(e){return e.__proto__=Go.prototype,e},Go.from=function(e,t,n){return Jo(null,e,t,n)},Go.TYPED_ARRAY_SUPPORT&&(Go.prototype.__proto__=Uint8Array.prototype,Go.__proto__=Uint8Array),Go.alloc=function(e,t,n){return function(e,t,n,r){return $o(t),t<=0?Yo(e,t):void 0!==n?"string"==typeof r?Yo(e,t).fill(n,r):Yo(e,t).fill(n):Yo(e,t)}(null,e,t,n)},Go.allocUnsafe=function(e){return Xo(null,e)},Go.allocUnsafeSlow=function(e){return Xo(null,e)},Go.isBuffer=Ti,Go.compare=function(e,t){if(!ti(e)||!ti(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Go.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Go.concat=function(e,t){if(!Wo(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Go.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Go.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!ti(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Go.byteLength=ni,Go.prototype._isBuffer=!0,Go.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)oi(this,t,t+1);return this},Go.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)oi(this,t,t+3),oi(this,t+1,t+2);return this},Go.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)oi(this,t,t+7),oi(this,t+1,t+6),oi(this,t+2,t+5),oi(this,t+3,t+4);return this},Go.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?di(this,0,e):ri.apply(this,arguments)},Go.prototype.equals=function(e){if(!ti(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Go.compare(this,e)},Go.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Go.prototype.compare=function(e,t,n,r,o){if(!ti(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),l=0;l<s;++l)if(u[l]!==c[l]){i=u[l],a=c[l];break}return i<a?-1:a<i?1:0},Go.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Go.prototype.indexOf=function(e,t,n){return ii(this,e,t,n,!0)},Go.prototype.lastIndexOf=function(e,t,n){return ii(this,e,t,n,!1)},Go.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return si(this,e,t,n);case"utf8":case"utf-8":return ui(this,e,t,n);case"ascii":return ci(this,e,t,n);case"latin1":case"binary":return li(this,e,t,n);case"base64":return fi(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hi(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Go.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var vi=4096;function mi(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _i(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function yi(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Ri(e[i]);return o}function gi(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function bi(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function wi(e,t,n,r,o,i){if(!ti(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Oi(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Ei(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Si(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function xi(e,t,n,r,o){return o||Si(e,0,n,4),Zo(e,t,n,r,23,4),n+4}function ki(e,t,n,r,o){return o||Si(e,0,n,8),Zo(e,t,n,r,52,8),n+8}Go.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Go.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Go.prototype;else{var o=t-e;n=new Go(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Go.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||bi(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Go.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||bi(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Go.prototype.readUInt8=function(e,t){return t||bi(e,1,this.length),this[e]},Go.prototype.readUInt16LE=function(e,t){return t||bi(e,2,this.length),this[e]|this[e+1]<<8},Go.prototype.readUInt16BE=function(e,t){return t||bi(e,2,this.length),this[e]<<8|this[e+1]},Go.prototype.readUInt32LE=function(e,t){return t||bi(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Go.prototype.readUInt32BE=function(e,t){return t||bi(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Go.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||bi(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Go.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||bi(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Go.prototype.readInt8=function(e,t){return t||bi(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Go.prototype.readInt16LE=function(e,t){t||bi(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Go.prototype.readInt16BE=function(e,t){t||bi(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Go.prototype.readInt32LE=function(e,t){return t||bi(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Go.prototype.readInt32BE=function(e,t){return t||bi(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Go.prototype.readFloatLE=function(e,t){return t||bi(e,4,this.length),zo(this,e,!0,23,4)},Go.prototype.readFloatBE=function(e,t){return t||bi(e,4,this.length),zo(this,e,!1,23,4)},Go.prototype.readDoubleLE=function(e,t){return t||bi(e,8,this.length),zo(this,e,!0,52,8)},Go.prototype.readDoubleBE=function(e,t){return t||bi(e,8,this.length),zo(this,e,!1,52,8)},Go.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||wi(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Go.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||wi(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Go.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,1,255,0),Go.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Go.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,2,65535,0),Go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oi(this,e,t,!0),t+2},Go.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,2,65535,0),Go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oi(this,e,t,!1),t+2},Go.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,4,4294967295,0),Go.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ei(this,e,t,!0),t+4},Go.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,4,4294967295,0),Go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ei(this,e,t,!1),t+4},Go.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);wi(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Go.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);wi(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Go.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,1,127,-128),Go.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Go.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,2,32767,-32768),Go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oi(this,e,t,!0),t+2},Go.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,2,32767,-32768),Go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oi(this,e,t,!1),t+2},Go.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,4,2147483647,-2147483648),Go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ei(this,e,t,!0),t+4},Go.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||wi(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ei(this,e,t,!1),t+4},Go.prototype.writeFloatLE=function(e,t,n){return xi(this,e,t,!0,n)},Go.prototype.writeFloatBE=function(e,t,n){return xi(this,e,t,!1,n)},Go.prototype.writeDoubleLE=function(e,t,n){return ki(this,e,t,!0,n)},Go.prototype.writeDoubleBE=function(e,t,n){return ki(this,e,t,!1,n)},Go.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Go.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Go.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Go.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=ti(e)?e:Pi(new Go(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var Ci=/[^+\/0-9A-Za-z-_]/g;function Ri(e){return e<16?"0"+e.toString(16):e.toString(16)}function Pi(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function ji(e){return function(e){var t,n,r,o,i,a;Fo||Ho();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Uo(3*s/4-i),r=i>0?s-4:s;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=Mo[e.charCodeAt(t)]<<18|Mo[e.charCodeAt(t+1)]<<12|Mo[e.charCodeAt(t+2)]<<6|Mo[e.charCodeAt(t+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=Mo[e.charCodeAt(t)]<<2|Mo[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=Mo[e.charCodeAt(t)]<<10|Mo[e.charCodeAt(t+1)]<<4|Mo[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ci,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ai(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Ti(e){return null!=e&&(!!e._isBuffer||Ii(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Ii(e.slice(0,0))}(e))}function Ii(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Li,Ni,Di=Vi($r.fetch)&&Vi($r.ReadableStream);function Mi(e){Ni||(Ni=new $r.XMLHttpRequest).open("GET",$r.location.host?"/":"https://example.com");try{return Ni.responseType=e,Ni.responseType===e}catch(e){return!1}}var Ui=void 0!==$r.ArrayBuffer,Fi=Ui&&Vi($r.ArrayBuffer.prototype.slice),Hi=Ui&&Mi("arraybuffer"),qi=!Di&&Fi&&Mi("ms-stream"),Bi=!Di&&Ui&&Mi("moz-chunked-arraybuffer"),zi=Vi(Ni.overrideMimeType),Zi=Vi($r.VBArray);function Vi(e){return"function"==typeof e}Ni=null;var Wi="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Ki=/%[sdj%]/g;function Yi(e){if(!la(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Qi(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(Ki,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<o;a=r[++n])sa(a)||!pa(a)?i+=" "+a:i+=" "+Qi(a);return i}function Gi(e,t){if(fa($r.process))return function(){return Gi(e,t).apply(this,arguments)};if(!0===Eo.noDeprecation)return e;var n=!1;return function(){if(!n){if(Eo.throwDeprecation)throw new Error(t);Eo.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var Ji,$i={};function Xi(e){if(fa(Ji)&&(Ji=Eo.env.NODE_DEBUG||""),e=e.toUpperCase(),!$i[e])if(new RegExp("\\b"+e+"\\b","i").test(Ji)){$i[e]=function(){var t=Yi.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else $i[e]=function(){};return $i[e]}function Qi(e,t){var n={seen:[],stylize:ta};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),aa(t)?n.showHidden=t:t&&Oa(n,t),fa(n.showHidden)&&(n.showHidden=!1),fa(n.depth)&&(n.depth=2),fa(n.colors)&&(n.colors=!1),fa(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=ea),na(n,e,n.depth)}function ea(e,t){var n=Qi.styles[t];return n?"["+Qi.colors[n][0]+"m"+e+"["+Qi.colors[n][1]+"m":e}function ta(e,t){return e}function na(e,t,n){if(e.customInspect&&t&&ma(t.inspect)&&t.inspect!==Qi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return la(r)||(r=na(e,r,n)),r}var o=function(e,t){if(fa(t))return e.stylize("undefined","undefined");if(la(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(ca(t))return e.stylize(""+t,"number");if(aa(t))return e.stylize(""+t,"boolean");if(sa(t))return e.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),va(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ra(t);if(0===i.length){if(ma(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(ha(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(da(t))return e.stylize(Date.prototype.toString.call(t),"date");if(va(t))return ra(t)}var u,c="",l=!1,f=["{","}"];(ia(t)&&(l=!0,f=["[","]"]),ma(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return ha(t)&&(c=" "+RegExp.prototype.toString.call(t)),da(t)&&(c=" "+Date.prototype.toUTCString.call(t)),va(t)&&(c=" "+ra(t)),0!==i.length||l&&0!=t.length?n<0?ha(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=l?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)Ea(t,String(a))?i.push(oa(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(oa(e,t,n,r,o,!0))})),i}(e,t,n,a,i):i.map((function(r){return oa(e,t,n,a,r,l)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,f)):f[0]+c+f[1]}function ra(e){return"["+Error.prototype.toString.call(e)+"]"}function oa(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),Ea(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=sa(n)?na(e,u.value,null):na(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),fa(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function ia(e){return Array.isArray(e)}function aa(e){return"boolean"==typeof e}function sa(e){return null===e}function ua(e){return null==e}function ca(e){return"number"==typeof e}function la(e){return"string"==typeof e}function fa(e){return void 0===e}function ha(e){return pa(e)&&"[object RegExp]"===ya(e)}function pa(t){return"object"===e(t)&&null!==t}function da(e){return pa(e)&&"[object Date]"===ya(e)}function va(e){return pa(e)&&("[object Error]"===ya(e)||e instanceof Error)}function ma(e){return"function"==typeof e}function _a(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===e(t)||void 0===t}function ya(e){return Object.prototype.toString.call(e)}function ga(e){return e<10?"0"+e.toString(10):e.toString(10)}Qi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Qi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var ba=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wa(){var e=new Date,t=[ga(e.getHours()),ga(e.getMinutes()),ga(e.getSeconds())].join(":");return[e.getDate(),ba[e.getMonth()],t].join(" ")}function Oa(e,t){if(!t||!pa(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Ea(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Sa={inherits:Wi,_extend:Oa,log:function(){console.log("%s - %s",wa(),Yi.apply(null,arguments))},isBuffer:function(e){return Ti(e)},isPrimitive:_a,isFunction:ma,isError:va,isDate:da,isObject:pa,isRegExp:ha,isUndefined:fa,isSymbol:function(t){return"symbol"===e(t)},isString:la,isNumber:ca,isNullOrUndefined:ua,isNull:sa,isBoolean:aa,isArray:ia,inspect:Qi,deprecate:Gi,format:Yi,debuglog:Xi};function xa(){}function ka(){ka.init.call(this)}function Ca(e){return void 0===e._maxListeners?ka.defaultMaxListeners:e._maxListeners}function Ra(e,t,n){if(t)e.call(n);else for(var r=e.length,o=Da(e,r),i=0;i<r;++i)o[i].call(n)}function Pa(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=Da(e,o),a=0;a<o;++a)i[a].call(n,r)}function ja(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=Da(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function Aa(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=Da(e,a),u=0;u<a;++u)s[u].call(n,r,o,i)}function Ta(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=Da(e,o),a=0;a<o;++a)i[a].apply(n,r)}function Ia(e,t,n,r){var o,i,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new xa,e._eventsCount=0),a){if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=Ca(e))&&o>0&&a.length>o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(s)}}else a=i[t]=n,++e._eventsCount;return e}function La(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function Na(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Da(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function Ma(){this.head=null,this.tail=null,this.length=0}xa.prototype=Object.create(null),ka.EventEmitter=ka,ka.usingDomains=!1,ka.prototype.domain=void 0,ka.prototype._events=void 0,ka.prototype._maxListeners=void 0,ka.defaultMaxListeners=10,ka.init=function(){this.domain=null,ka.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new xa,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ka.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ka.prototype.getMaxListeners=function(){return Ca(this)},ka.prototype.emit=function(e){var t,n,r,o,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:Ra(n,l,this);break;case 2:Pa(n,l,this,arguments[1]);break;case 3:ja(n,l,this,arguments[1],arguments[2]);break;case 4:Aa(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];Ta(n,l,this,o)}return!0},ka.prototype.addListener=function(e,t){return Ia(this,e,t,!1)},ka.prototype.on=ka.prototype.addListener,ka.prototype.prependListener=function(e,t){return Ia(this,e,t,!0)},ka.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,La(this,e,t)),this},ka.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,La(this,e,t)),this},ka.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new xa:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new xa,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},ka.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new xa,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new xa:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new xa,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},ka.prototype.listeners=function(e){var t,n,r=this._events;return n=r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[],n},ka.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Na.call(e,t)},ka.prototype.listenerCount=Na,ka.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},Ma.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Ma.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Ma.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Ma.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ma.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Ma.prototype.concat=function(e){if(0===this.length)return Go.alloc(0);if(1===this.length)return this.head.data;for(var t=Go.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Ua=Go.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Fa(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Ua(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=qa;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ba;break;default:return void(this.write=Ha)}this.charBuffer=new Go(6),this.charReceived=0,this.charLength=0}function Ha(e){return e.toString(this.encoding)}function qa(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ba(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Fa.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((o=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&o<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var o;r=(t+=e.toString(this.encoding,0,r)).length-1;if((o=t.charCodeAt(r))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,r)}return t},Fa.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Fa.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t},Va.ReadableState=Za;var za=Xi("stream");function Za(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof gs&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ma,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Fa(e.encoding),this.encoding=e.encoding)}function Va(e){if(!(this instanceof Va))return new Va(e);this._readableState=new Za(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),ka.call(this)}function Wa(e,t,n,r,o){var i=function(e,t){var n=null;Ti(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(i)e.emit("error",i);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Ga(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||o||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),o||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Ga(e))),function(e,t){t.readingMore||(t.readingMore=!0,co($a,e,t))}(e,t)}else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Wi(Va,ka),Va.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=Go.from(e,t),t=""),Wa(this,n,e,t,!1)},Va.prototype.unshift=function(e){return Wa(this,this._readableState,e,"",!0)},Va.prototype.isPaused=function(){return!1===this._readableState.flowing},Va.prototype.setEncoding=function(e){return this._readableState.decoder=new Fa(e),this._readableState.encoding=e,this};var Ka=8388608;function Ya(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=Ka?e=Ka:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Ga(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(za("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?co(Ja,e):Ja(e))}function Ja(e){za("emit readable"),e.emit("readable"),es(e)}function $a(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(za("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function Xa(e){za("readable nexttick read 0"),e.read(0)}function Qa(e,t){t.reading||(za("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),es(e),t.flowing&&!t.reading&&e.read(0)}function es(e){var t=e._readableState;for(za("flow",t.flowing);t.flowing&&null!==e.read(););}function ts(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=Go.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function ns(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,co(rs,t,e))}function rs(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function os(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function is(){}function as(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function ss(e,t){Object.defineProperty(this,"buffer",{get:Gi((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof gs&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?co(o,r):o(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,o);else{var i=hs(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||fs(e,n),r?co(ls,e,n,i,o):ls(e,n,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new vs(this)}function us(e){if(!(this instanceof us||this instanceof gs))return new us(e);this._writableState=new ss(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),ka.call(this)}function cs(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function ls(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),ds(e,t)}function fs(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0;n;)o[a]=n,n=n.next,a+=1;cs(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new vs(t)}else{for(;n;){var s=n.chunk,u=n.encoding,c=n.callback;if(cs(e,t,!1,t.objectMode?1:s.length,s,u,c),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function hs(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function ps(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function ds(e,t){var n=hs(t);return n&&(0===t.pendingcb?(ps(e,t),t.finished=!0,e.emit("finish")):ps(e,t)),n}function vs(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Va.prototype.read=function(e){za("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return za("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ns(this):Ga(this),null;if(0===(e=Ya(e,t))&&t.ended)return 0===t.length&&ns(this),null;var r,o=t.needReadable;return za("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&za("length less than watermark",o=!0),t.ended||t.reading?za("reading or ended",o=!1):o&&(za("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Ya(n,t))),null===(r=e>0?ts(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ns(this)),null!==r&&this.emit("data",r),r},Va.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Va.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,za("pipe count=%d opts=%j",r.pipesCount,t);var o=!t||!1!==t.end?a:c;function i(e){za("onunpipe"),e===n&&c()}function a(){za("onend"),e.end()}r.endEmitted?co(o):n.once("end",o),e.on("unpipe",i);var s=function(e){return function(){var t=e._readableState;za("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,es(e))}}(n);e.on("drain",s);var u=!1;function c(){za("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",i),n.removeListener("end",a),n.removeListener("end",c),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var l=!1;function f(t){za("ondata"),l=!1,!1!==e.write(t)||l||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==os(r.pipes,e))&&!u&&(za("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function h(t){za("onerror",t),v(),e.removeListener("error",h),0===function(e,t){return e.listeners(t).length}(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",d),v()}function d(){za("onfinish"),e.removeListener("close",p),v()}function v(){za("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",n),r.flowing||(za("pipe resume"),n.resume()),e},Va.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var i=os(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Va.prototype.on=function(e,t){var n=ka.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Ga(this):co(Xa,this))}return n},Va.prototype.addListener=Va.prototype.on,Va.prototype.resume=function(){var e=this._readableState;return e.flowing||(za("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,co(Qa,e,t))}(this,e)),this},Va.prototype.pause=function(){return za("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(za("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Va.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var o in e.on("end",(function(){if(za("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(o){(za("wrapped data"),t.decoder&&(o=t.decoder.write(o)),t.objectMode&&null==o)||(t.objectMode||o&&o.length)&&(r.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){za("wrapped _read",t),n&&(n=!1,e.resume())},r},Va._fromList=ts,us.WritableState=ss,Wi(us,ka),ss.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},us.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},us.prototype.write=function(e,t,n){var r=this._writableState,o=!1;return"function"==typeof t&&(n=t,t=null),Go.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=is),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),co(t,n)}(this,n):function(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):Go.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),co(r,i),o=!1),o}(this,r,e,n)&&(r.pendingcb++,o=function(e,t,n,r,o){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Go.from(t,n));return t}(t,n,r),Go.isBuffer(n)&&(r="buffer");var i=t.objectMode?1:n.length;t.length+=i;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new as(n,r,o),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else cs(e,t,!1,i,n,r,o);return a}(this,r,e,t,n)),o},us.prototype.cork=function(){this._writableState.corked++},us.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||fs(this,e))},us.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},us.prototype._write=function(e,t,n){n(new Error("not implemented"))},us.prototype._writev=null,us.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,ds(e,t),n&&(t.finished?co(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Wi(gs,Va);for(var ms=Object.keys(us.prototype),_s=0;_s<ms.length;_s++){var ys=ms[_s];gs.prototype[ys]||(gs.prototype[ys]=us.prototype[ys])}function gs(e){if(!(this instanceof gs))return new gs(e);Va.call(this,e),us.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",bs)}function bs(){this.allowHalfOpen||this._writableState.ended||co(ws,this)}function ws(e){e.end()}function Os(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Es(e){if(!(this instanceof Es))return new Es(e);gs.call(this,e),this._transformState=new Os(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Ss(t,e)})):Ss(t)}))}function Ss(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function xs(e){if(!(this instanceof xs))return new xs(e);Es.call(this,e)}function ks(){ka.call(this)}Wi(Es,gs),Es.prototype.push=function(e,t){return this._transformState.needTransform=!1,gs.prototype.push.call(this,e,t)},Es.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Es.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Es.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Wi(xs,Es),xs.prototype._transform=function(e,t,n){n(null,e)},Wi(ks,ka),ks.Readable=Va,ks.Writable=us,ks.Duplex=gs,ks.Transform=Es,ks.PassThrough=xs,ks.Stream=ks,ks.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",s));var i=!1;function a(){i||(i=!0,e.end())}function s(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===ka.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e};var Cs=3,Rs=4;function Ps(e,t,n){var r,o=this;if(Va.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",(function(){co((function(){o.emit("close")}))})),"fetch"===n){o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText;for(var i,a,s=t.headers[Symbol.iterator]();i=(a=s.next()).value,!a.done;)o.headers[i[0].toLowerCase()]=i[1],o.rawHeaders.push(i[0],i[1]);var u=t.body.getReader();(r=function(){u.read().then((function(e){o._destroyed||(e.done?o.push(null):(o.push(new Go(e.value)),r()))}))})()}else{if(o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===o.headers[n]&&(o.headers[n]=[]),o.headers[n].push(t[2])):void 0!==o.headers[n]?o.headers[n]+=", "+t[2]:o.headers[n]=t[2],o.rawHeaders.push(t[1],t[2])}})),o._charset="x-user-defined",!zi){var c=o.rawHeaders["mime-type"];if(c){var l=c.match(/;\s*charset=([^;])(;|$)/);l&&(o._charset=l[1].toLowerCase())}o._charset||(o._charset="utf-8")}}}function js(e){var t,n=this;us.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new Go(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!zi;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return Di&&t?"fetch":Bi?"moz-chunked-arraybuffer":qi?"ms-stream":Hi&&e?"arraybuffer":Zi&&e?"text:vbarray":"text"}(t,r),n.on("finish",(function(){n._onFinish()}))}Wi(Ps,Va),Ps.prototype._read=function(){},Ps.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Rs)break;try{n=new $r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new Go(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var r=n.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new Go(r.length),i=0;i<r.length;i++)o[i]=255&r.charCodeAt(i);e.push(o)}else e.push(r,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==Rs||!t.response)break;n=t.response,e.push(new Go(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==Cs||!n)break;e.push(new Go(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==Cs)break;var a=new $r.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new Go(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(n)}e._xhr.readyState===Rs&&"ms-stream"!==e._mode&&e.push(null)},Wi(js,us);var As=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];js.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===As.indexOf(n)&&(this._headers[n]={name:e,value:t})},js.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},js.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},js.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,n=e._opts,r=e._headers;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method||(t=function(){if(void 0!==Li)return Li;try{new $r.Blob([new ArrayBuffer(1)]),Li=!0}catch(e){Li=!1}return Li}()?new $r.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(Ti(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):Go.concat(e._body).toString()),"fetch"===e._mode){var o=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));$r.fetch(e._opts.url,{method:e._opts.method,headers:o,body:t,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var i=e._xhr=new $r.XMLHttpRequest;try{i.open(e._opts.method,e._opts.url,!0)}catch(t){return void co((function(){e.emit("error",t)}))}"responseType"in i&&(i.responseType=e._mode.split(":")[0]),"withCredentials"in i&&(i.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){i.setRequestHeader(r[e].name,r[e].value)})),e._response=null,i.onreadystatechange=function(){switch(i.readyState){case Cs:case Rs:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(i.onprogress=function(){e._onXHRProgress()}),i.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{i.send(t)}catch(t){return void co((function(){e.emit("error",t)}))}}}},js.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},js.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Ps(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},js.prototype._write=function(e,t,n){this._body.push(e),n()},js.prototype.abort=js.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},js.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),us.prototype.end.call(this,e,t,n)},js.prototype.flushHeaders=function(){},js.prototype.setTimeout=function(){},js.prototype.setNoDelay=function(){},js.prototype.setSocketKeepAlive=function(){};
/*! 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)&&(g=f);for(-1!==(y=-1===g?u.lastIndexOf("@"):u.lastIndexOf("@",g))&&(_=u.slice(0,y),u=u.slice(y+1),t.auth=decodeURIComponent(_)),g=-1,l=0;l<tu.length;l++)-1!==(f=u.indexOf(tu[l]))&&(-1===g||f<g)&&(g=f);-1===g&&(g=u.length),t.host=u.slice(0,g),u=u.slice(g),fu(t),t.hostname=t.hostname||"";var b="["===t.hostname[0]&&"]"===t.hostname[t.hostname.length-1];if(!b){var w=t.hostname.split(/\./);for(l=0,h=w.length;l<h;l++){var O=w[l];if(O&&!O.match(ru)){for(var E="",S=0,x=O.length;S<x;S++)O.charCodeAt(S)>127?E+="x":E+=O[S];if(!E.match(ru)){var k=w.slice(0,l),C=w.slice(l+1),R=O.match(ou);R&&(k.push(R[1]),C.unshift(R[2])),C.length&&(u="/"+C.join(".")+u),t.hostname=k.join(".");break}}}}t.hostname.length>255?t.hostname="":t.hostname=t.hostname.toLowerCase(),b||(t.hostname=qs(t.hostname)),p=t.port?":"+t.port:"";var P=t.hostname||"";t.host=P+p,t.href+=t.host,b&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!iu[v])for(l=0,h=eu.length;l<h;l++){var j=eu[l];if(-1!==u.indexOf(j)){var A=encodeURIComponent(j);A===j&&(A=escape(j)),u=u.split(j).join(A)}}var T=u.indexOf("#");-1!==T&&(t.hash=u.substr(T),u=u.slice(0,T));var I=u.indexOf("?");if(-1!==I?(t.search=u.substr(I),t.query=u.substr(I+1),r&&(t.query=Ks(t.query)),u=u.slice(0,I)):r&&(t.search="",t.query={}),u&&(t.pathname=u),su[v]&&t.hostname&&!t.pathname&&(t.pathname="/"),t.pathname||t.search){p=t.pathname||"";var L=t.search||"";t.path=p+L}return t.href=lu(t),t}function lu(t){var n=t.auth||"";n&&(n=(n=encodeURIComponent(n)).replace(/%3A/i,":"),n+="@");var r,o,i,a,s=t.protocol||"",u=t.pathname||"",c=t.hash||"",l=!1,f="";t.host?l=n+t.host:t.hostname&&(l=n+(-1===t.hostname.indexOf(":")?t.hostname:"["+this.hostname+"]"),t.port&&(l+=":"+t.port)),t.query&&pa(t.query)&&Object.keys(t.query).length&&(r=t.query,o=o||"&",i=i||"=",null===r&&(r=void 0),f="object"===e(r)?Vs(Ws(r),(function(e){var t=encodeURIComponent(Zs(e))+i;return zs(r[e])?Vs(r[e],(function(e){return t+encodeURIComponent(Zs(e))})).join(o):t+encodeURIComponent(Zs(r[e]))})).join(o):a?encodeURIComponent(Zs(a))+i+encodeURIComponent(Zs(r)):"");var h=t.search||f&&"?"+f||"";return s&&":"!==s.substr(-1)&&(s+=":"),t.slashes||(!s||su[s])&&!1!==l?(l="//"+(l||""),u&&"/"!==u.charAt(0)&&(u="/"+u)):l||(l=""),c&&"#"!==c.charAt(0)&&(c="#"+c),h&&"?"!==h.charAt(0)&&(h="?"+h),s+l+(u=u.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(h=h.replace("#","%23"))+c}function fu(e){var t=e.host,n=$s.exec(t);n&&(":"!==(n=n[0])&&(e.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(e.hostname=t)}function hu(e,t){"string"==typeof e&&(e=uu(e));var n=-1===$r.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||n,o=e.hostname||e.host,i=e.port,a=e.path||"/";o&&-1!==o.indexOf(":")&&(o="["+o+"]"),e.url=(o?r+"//"+o:"")+(i?":"+i:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new js(e);return t&&s.on("response",t),s}function pu(){}Gs.prototype.parse=function(e,t,n){return cu(this,e,t,n)},Gs.prototype.format=function(){return lu(this)},Gs.prototype.resolve=function(e){return this.resolveObject(uu(e,!1,!0)).format()},Gs.prototype.resolveObject=function(e){if(la(e)){var t=new Gs;t.parse(e,!1,!0),e=t}for(var n,r=new Gs,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return su[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!su[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var h=l[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||au[e.protocol])r.pathname=e.pathname;else{for(n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",d=r.search||"";r.path=p+d}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v,m=r.pathname&&"/"===r.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=_||m||r.host&&e.pathname,g=y,b=r.pathname&&r.pathname.split("/")||[],w=r.protocol&&!su[r.protocol];if(n=e.pathname&&e.pathname.split("/")||[],w&&(r.hostname="",r.port=null,r.host&&(""===b[0]?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),y=y&&(""===n[0]||""===b[0])),_)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=n;else if(n.length)b||(b=[]),b.pop(),b=b.concat(n),r.search=e.search,r.query=e.query;else if(!ua(e.search))return w&&(r.hostname=r.host=b.shift(),(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),r.search=e.search,r.query=e.query,sa(r.pathname)&&sa(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=b.slice(-1)[0],E=(r.host||e.host||b.length>1)&&("."===O||".."===O)||""===O,S=0,x=b.length;x>=0;x--)"."===(O=b[x])?b.splice(x,1):".."===O?(b.splice(x,1),S++):S&&(b.splice(x,1),S--);if(!y&&!g)for(;S--;S)b.unshift("..");!y||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),E&&"/"!==b.join("/").substr(-1)&&b.push("");var k=""===b[0]||b[0]&&"/"===b[0].charAt(0);return w&&(r.hostname=r.host=k?"":b.length?b.shift():"",(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),(y=y||r.host&&b.length)&&!k&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),sa(r.pathname)&&sa(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Gs.prototype.parseHost=function(){return fu(this)},pu.defaultMaxSockets=4;var du={request:hu,get:function(e,t){var n=hu(e,t);return n.end(),n},Agent:pu,METHODS:["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],STATUS_CODES:{100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}};function vu(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}var mu,_u=Object.prototype.hasOwnProperty,yu=Object.keys||function(e){var t=[];for(var n in e)_u.call(e,n)&&t.push(n);return t},gu=Array.prototype.slice;function bu(){return void 0!==mu?mu:mu="foo"===function(){}.name}function wu(e){return Object.prototype.toString.call(e)}function Ou(e){return!Ti(e)&&("function"==typeof $r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function Eu(e,t){e||Pu(e,!0,t,"==",ju)}var Su=/\s*function\s+([^\(\s]*)\s*/;function xu(e){if(ma(e)){if(bu())return e.name;var t=e.toString().match(Su);return t&&t[1]}}function ku(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return Cu(Ru(e.actual),128)+" "+e.operator+" "+Cu(Ru(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||Pu;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,o=xu(t),i=r.indexOf("\n"+o);if(i>=0){var a=r.indexOf("\n",i+1);r=r.substring(a+1)}this.stack=r}}}function Cu(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function Ru(e){if(bu()||!ma(e))return Qi(e);var t=xu(e);return"[Function"+(t?": "+t:"")+"]"}function Pu(e,t,n,r,o){throw new ku({message:n,actual:e,expected:t,operator:r,stackStartFunction:o})}function ju(e,t){e||Pu(e,!0,t,"==",ju)}function Au(t,n,r,o){if(t===n)return!0;if(Ti(t)&&Ti(n))return 0===vu(t,n);if(da(t)&&da(n))return t.getTime()===n.getTime();if(ha(t)&&ha(n))return t.source===n.source&&t.global===n.global&&t.multiline===n.multiline&&t.lastIndex===n.lastIndex&&t.ignoreCase===n.ignoreCase;if(null!==t&&"object"===e(t)||null!==n&&"object"===e(n)){if(Ou(t)&&Ou(n)&&wu(t)===wu(n)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===vu(new Uint8Array(t.buffer),new Uint8Array(n.buffer));if(Ti(t)!==Ti(n))return!1;var i=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===o.expected.indexOf(n)||(o.actual.push(t),o.expected.push(n),function(e,t,n,r){if(null==e||null==t)return!1;if(_a(e)||_a(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=Tu(e),i=Tu(t);if(o&&!i||!o&&i)return!1;if(o)return Au(e=gu.call(e),t=gu.call(t),n);var a,s,u=yu(e),c=yu(t);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;s>=0;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;s>=0;s--)if(!Au(e[a=u[s]],t[a],n,r))return!1;return!0}(t,n,r,o))}return r?t===n:t==n}function Tu(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function Iu(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function Lu(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&Pu(o,n,"Missing expected exception"+r);var i="string"==typeof r,a=!e&&o&&!n;if((!e&&va(o)&&i&&Iu(o,n)||a)&&Pu(o,n,"Got unwanted exception"+r),e&&o&&n&&!Iu(o,n)||!e&&o)throw o}Eu.AssertionError=ku,Wi(ku,Error),Eu.fail=Pu,Eu.ok=ju,Eu.equal=function e(t,n,r){t!=n&&Pu(t,n,r,"==",e)},Eu.notEqual=function e(t,n,r){t==n&&Pu(t,n,r,"!=",e)},Eu.deepEqual=function e(t,n,r){Au(t,n,!1)||Pu(t,n,r,"deepEqual",e)},Eu.deepStrictEqual=function e(t,n,r){Au(t,n,!0)||Pu(t,n,r,"deepStrictEqual",e)},Eu.notDeepEqual=function e(t,n,r){Au(t,n,!1)&&Pu(t,n,r,"notDeepEqual",e)},Eu.notDeepStrictEqual=function e(t,n,r){Au(t,n,!0)&&Pu(t,n,r,"notDeepStrictEqual",e)},Eu.strictEqual=function e(t,n,r){t!==n&&Pu(t,n,r,"===",e)},Eu.notStrictEqual=function e(t,n,r){t===n&&Pu(t,n,r,"!==",e)},Eu.throws=function(e,t,n){Lu(!0,e,t,n)},Eu.doesNotThrow=function(e,t,n){Lu(!1,e,t,n)},Eu.ifError=function(e){if(e)throw e};var Nu=1e3,Du=6e4,Mu=60*Du,Uu=24*Mu,Fu=7*Uu,Hu=365.25*Uu,qu=function(t,n){n=n||{};var r=e(t);if("string"===r&&t.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*Hu;case"weeks":case"week":case"w":return n*Fu;case"days":case"day":case"d":return n*Uu;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Mu;case"minutes":case"minute":case"mins":case"min":case"m":return n*Du;case"seconds":case"second":case"secs":case"sec":case"s":return n*Nu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(t);if("number"===r&&isFinite(t))return n.long?function(e){var t=Math.abs(e);if(t>=Uu)return Bu(e,t,Uu,"day");if(t>=Mu)return Bu(e,t,Mu,"hour");if(t>=Du)return Bu(e,t,Du,"minute");if(t>=Nu)return Bu(e,t,Nu,"second");return e+" ms"}(t):function(e){var t=Math.abs(e);if(t>=Uu)return Math.round(e/Uu)+"d";if(t>=Mu)return Math.round(e/Mu)+"h";if(t>=Du)return Math.round(e/Du)+"m";if(t>=Nu)return Math.round(e/Nu)+"s";return e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Bu(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var zu=function(e){function n(e){var t,o=null;function i(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(i.enabled){var a=i,s=Number(new Date),u=s-(t||s);a.diff=u,a.prev=t,a.curr=s,t=s,r[0]=n.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var c=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,t){if("%%"===e)return"%";c++;var o=n.formatters[t];if("function"==typeof o){var i=r[c];e=o.call(a,i),r.splice(c,1),c--}return e})),n.formatArgs.call(a,r);var l=a.log||n.log;l.apply(a,r)}}return i.namespace=e,i.useColors=n.useColors(),i.color=n.selectColor(e),i.extend=r,i.destroy=n.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===o?n.enabled(e):o},set:function(e){o=e}}),"function"==typeof n.init&&n.init(i),i}function r(e,t){var r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){var e=[].concat(t(n.names.map(o)),t(n.skips.map(o).map((function(e){return"-"+e})))).join(",");return n.enable(""),e},n.enable=function(e){var t;n.save(e),n.names=[],n.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(t=0;t<o;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=qu,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(t){n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){for(var t=0,r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n},Zu=Me((function(e,t){var n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==Eo&&"env"in Eo&&(e=Eo.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=zu(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));Zu.formatArgs,Zu.save,Zu.load,Zu.useColors,Zu.storage,Zu.destroy,Zu.colors,Zu.log;var Vu,Wu={isatty:function(){return!1},ReadStream:function(){throw new Error("tty.ReadStream is not implemented")},WriteStream:function(){throw new Error("tty.ReadStream is not implemented")}};function Ku(){return"/tmp"}var Yu,Gu={EOL:"\n",tmpdir:Ku,tmpDir:Ku,networkInterfaces:function(){},getNetworkInterfaces:function(){},release:function(){return void 0!==$r.navigator?$r.navigator.appVersion:""},type:function(){return"Browser"},cpus:function(){return[]},totalmem:function(){return Number.MAX_VALUE},freemem:function(){return Number.MAX_VALUE},uptime:function(){return 0},loadavg:function(){return[]},hostname:function(){return void 0!==$r.location?$r.location.hostname:""},endianness:function(){if(void 0===Vu){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Vu="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Vu="LE"}}return Vu}},Ju=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Eo.argv,n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)},$u=Eo.env;function Xu(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Qu(e,t){if(0===Yu)return 0;if(Ju("color=16m")||Ju("color=full")||Ju("color=truecolor"))return 3;if(Ju("color=256"))return 2;if(e&&!t&&void 0===Yu)return 0;var n=Yu||0;if("dumb"===$u.TERM)return n;if("win32"===Eo.platform){var r=Gu.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in $u)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((function(e){return e in $u}))||"codeship"===$u.CI_NAME?1:n;if("TEAMCITY_VERSION"in $u)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($u.TEAMCITY_VERSION)?1:0;if("truecolor"===$u.COLORTERM)return 3;if("TERM_PROGRAM"in $u){var o=parseInt(($u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($u.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($u.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($u.TERM)||"COLORTERM"in $u?1:n}Ju("no-color")||Ju("no-colors")||Ju("color=false")||Ju("color=never")?Yu=0:(Ju("color")||Ju("colors")||Ju("color=true")||Ju("color=always"))&&(Yu=1),"FORCE_COLOR"in $u&&(Yu="true"===$u.FORCE_COLOR?1:"false"===$u.FORCE_COLOR?0:0===$u.FORCE_COLOR.length?1:Math.min(parseInt($u.FORCE_COLOR,10),3));var ec,tc={supportsColor:function(e){return Xu(Qu(e,e&&e.isTTY))},stdout:Xu(Qu(!0,Wu.isatty(1))),stderr:Xu(Qu(!0,Wu.isatty(2)))},nc=Me((function(e,t){t.init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return Eo.stderr.write(Sa.format.apply(Sa,arguments)+"\n")},t.formatArgs=function(n){var r=this.namespace;if(this.useColors){var o=this.color,i="[3"+(o<8?o:"8;5;"+o),a=" ".concat(i,";1m").concat(r," ");n[0]=a+n[0].split("\n").join("\n"+a),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?Eo.env.DEBUG=e:delete Eo.env.DEBUG},t.load=function(){return Eo.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):Wu.isatty(Eo.stderr.fd)},t.destroy=Sa.deprecate((function(){}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{tc&&(tc.stderr||tc).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(Eo.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=Eo.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=zu(t);var n=e.exports.formatters;n.o=function(e){return this.inspectOpts.colors=this.useColors,Sa.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,Sa.inspect(e,this.inspectOpts)}})),rc=(nc.init,nc.log,nc.formatArgs,nc.save,nc.load,nc.useColors,nc.destroy,nc.colors,nc.inspectOpts,Me((function(e){void 0===Eo||Eo.type,e.exports=Zu}))),oc=function(){if(!ec){try{ec=rc("follow-redirects")}catch(e){}"function"!=typeof ec&&(ec=function(){})}ec.apply(null,arguments)},ic=Ys.URL,ac=ks.Writable,sc=["abort","aborted","connect","error","socket","timeout"],uc=Object.create(null);sc.forEach((function(e){uc[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var cc=yc("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),lc=yc("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),fc=yc("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),hc=yc("ERR_STREAM_WRITE_AFTER_END","write after end");function pc(e,t){ac.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function dc(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var o=r+":",i=n[o]=e[r],a=t[r]=Object.create(i);Object.defineProperties(a,{request:{value:function(e,r,i){if("string"==typeof e){var a=e;try{e=mc(new ic(a))}catch(t){e=Ys.parse(a)}}else ic&&e instanceof ic?e=mc(e):(i=r,r=e,e={protocol:o});return"function"==typeof r&&(i=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,Eu.equal(r.protocol,o,"protocol mismatch"),oc("options",r),new pc(r,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=a.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function vc(){}function mc(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function _c(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function yc(e,t){function n(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}function gc(e){for(var t=0,n=sc;t<n.length;t++){var r=n[t];e.removeListener(r,uc[r])}e.on("error",vc),e.abort()}pc.prototype=Object.create(ac.prototype),pc.prototype.abort=function(){gc(this._currentRequest),this.emit("abort")},pc.prototype.write=function(t,n,r){if(this._ending)throw new hc;if(!("string"==typeof t||"object"===e(t)&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof n&&(r=n,n=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:n}),this._currentRequest.write(t,n,r)):(this.emit("error",new fc),this.abort()):r&&r()},pc.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,o=this._currentRequest;this.write(e,t,(function(){r._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},pc.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},pc.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},pc.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),i()}),e),r(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",r),this.on("abort",i),this.on("error",i),this.on("response",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){pc.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(pc.prototype,e,{get:function(){return this._currentRequest[e]}})})),pc.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},pc.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);r._redirectable=this;for(var o=0,i=sc;o<i.length;o++){var a=i[o];r.on(a,uc[a])}if(this._currentUrl=/^\//.test(this._options.path)?Ys.format(this._options):this._currentUrl=this._options.path,this._isRedirect){var s=0,u=this,c=this._requestBodyBuffers;!function e(t){if(r===u._currentRequest)if(t)u.emit("error",t);else if(s<c.length){var n=c[s++];r.finished||r.write(n.data,n.encoding,e)}else u._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},pc.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(gc(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new lc);else{var r,o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_c(/^content-/i,this._options.headers));var a,s=_c(/^host$/i,this._options.headers),u=Ys.parse(this._currentUrl),c=s||u.host,l=/^\w+:/.test(n)?this._currentUrl:Ys.format(Object.assign(u,{host:c}));try{a=Ys.resolve(l,n)}catch(e){return void this.emit("error",new cc(e))}oc("redirecting to",a),this._isRedirect=!0;var f=Ys.parse(a);if(Object.assign(this._options,f),(f.protocol!==u.protocol&&"https:"!==f.protocol||f.host!==c&&!function(e,t){var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(f.host,c))&&_c(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof o){var h={headers:e.headers,statusCode:t},p={url:l,method:i,headers:r};try{o(this._options,h,p)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new cc(e))}}};var bc=dc({http:du,https:du}),wc=dc;bc.wrap=wc;var Oc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Ec(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Sc(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]}var xc=Uint8Array,kc=Uint16Array,Cc=Int32Array;function Rc(e){for(var t=e.length;--t>=0;)e[t]=0}var Pc=256,jc=286,Ac=30,Tc=15,Ic=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Lc=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Nc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Dc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mc=new Array(576);Rc(Mc);var Uc=new Array(60);Rc(Uc);var Fc=new Array(512);Rc(Fc);var Hc=new Array(256);Rc(Hc);var qc=new Array(29);Rc(qc);var Bc,zc,Zc,Vc=new Array(Ac);function Wc(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function Kc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Yc(e){return e<256?Fc[e]:Fc[256+(e>>>7)]}function Gc(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Jc(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,Gc(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function $c(e,t,n){Jc(e,n[2*t],n[2*t+1])}function Xc(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function Qc(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=Tc;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=Xc(i[s]++,s))}}function el(e){var t;for(t=0;t<jc;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Ac;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function tl(e){e.bi_valid>8?Gc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function nl(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function rl(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&nl(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!nl(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function ol(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?$c(e,o,t):($c(e,(i=Hc[o])+Pc+1,t),0!==(a=Ic[i])&&Jc(e,o-=qc[i],a),$c(e,i=Yc(--r),n),0!==(a=Lc[i])&&Jc(e,r-=Vc[i],a))}while(s<e.last_lit);$c(e,256,t)}function il(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)rl(e,i,n);o=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],rl(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,rl(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,v=0;for(i=0;i<=Tc;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=u[2*u[2*(r=e.heap[n])+1]+1]+1)>d&&(i=d,v++),u[2*r+1]=i,r>c||(e.bl_count[i]++,a=0,r>=p&&(a=h[r-p]),s=u[2*r],e.opt_len+=s*(i+a),f&&(e.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(i=d-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[d]--,v-=2}while(v>0);for(i=d;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>c||(u[2*o+1]!==i&&(e.opt_len+=(i-u[2*o+1])*u[2*o],u[2*o+1]=i),r--)}}(e,t),Qc(i,c,e.bl_count)}function al(e,t,n){var r,o,i=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<u&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4))}function sl(e,t,n){var r,o,i=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<u&&o===a)){if(s<c)do{$c(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==i&&($c(e,o,e.bl_tree),s--),$c(e,16,e.bl_tree),Jc(e,s-3,2)):s<=10?($c(e,17,e.bl_tree),Jc(e,s-3,3)):($c(e,18,e.bl_tree),Jc(e,s-11,7));s=0,i=o,0===a?(u=138,c=3):o===a?(u=6,c=3):(u=7,c=4)}}Rc(Vc);var ul=!1;function cl(e){ul||(!function(){var e,t,n,r,o,i=new Array(16);for(n=0,r=0;r<28;r++)for(qc[r]=n,e=0;e<1<<Ic[r];e++)Hc[n++]=r;for(Hc[n-1]=r,o=0,r=0;r<16;r++)for(Vc[r]=o,e=0;e<1<<Lc[r];e++)Fc[o++]=r;for(o>>=7;r<Ac;r++)for(Vc[r]=o<<7,e=0;e<1<<Lc[r]-7;e++)Fc[256+o++]=r;for(t=0;t<=Tc;t++)i[t]=0;for(e=0;e<=143;)Mc[2*e+1]=8,e++,i[8]++;for(;e<=255;)Mc[2*e+1]=9,e++,i[9]++;for(;e<=279;)Mc[2*e+1]=7,e++,i[7]++;for(;e<=287;)Mc[2*e+1]=8,e++,i[8]++;for(Qc(Mc,287,i),e=0;e<Ac;e++)Uc[2*e+1]=5,Uc[2*e]=Xc(e,5);Bc=new Wc(Mc,Ic,257,jc,Tc),zc=new Wc(Uc,Lc,0,Ac,Tc),Zc=new Wc(new Array(0),Nc,0,19,7)}(),ul=!0),e.l_desc=new Kc(e.dyn_ltree,Bc),e.d_desc=new Kc(e.dyn_dtree,zc),e.bl_desc=new Kc(e.bl_tree,Zc),e.bi_buf=0,e.bi_valid=0,el(e)}function ll(e,t,n,r){Jc(e,0+(r?1:0),3),function(e,t,n,r){tl(e),r&&(Gc(e,n),Gc(e,~n)),Sc(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}function fl(e){Jc(e,2,3),$c(e,256,Mc),function(e){16===e.bi_valid?(Gc(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function hl(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Pc;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),il(e,e.l_desc),il(e,e.d_desc),a=function(e){var t;for(al(e,e.dyn_ltree,e.l_desc.max_code),al(e,e.dyn_dtree,e.d_desc.max_code),il(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Dc[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?ll(e,t,n,r):4===e.strategy||i===o?(Jc(e,2+(r?1:0),3),ol(e,Mc,Uc)):(Jc(e,4+(r?1:0),3),function(e,t,n,r){var o;for(Jc(e,t-257,5),Jc(e,n-1,5),Jc(e,r-4,4),o=0;o<r;o++)Jc(e,e.bl_tree[2*Dc[o]+1],3);sl(e,e.dyn_ltree,t-1),sl(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),ol(e,e.dyn_ltree,e.dyn_dtree)),el(e),r&&tl(e)}function pl(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Hc[n]+Pc+1)]++,e.dyn_dtree[2*Yc(t)]++),e.last_lit===e.lit_bufsize-1}function dl(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}var vl=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function ml(e,t,n,r){var o=vl,i=r+n;e^=-1;for(var a=r;a<i;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}var _l,yl=-2,gl=258,bl=262,wl=103,Ol=113,El=666;function Sl(e,t){return e.msg=Oc[t],t}function xl(e){return(e<<1)-(e>4?9:0)}function kl(e){for(var t=e.length;--t>=0;)e[t]=0}function Cl(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Sc(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Rl(e,t){hl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Cl(e.strm)}function Pl(e,t){e.pending_buf[e.pending++]=t}function jl(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Al(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-bl?e.strstart-(e.w_size-bl):0,c=e.window,l=e.w_mask,f=e.prev,h=e.strstart+gl,p=c[i+a-1],d=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===d&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=gl-(h-i),i=h-gl,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[i+a-1],d=c[i+a]}}}while((t=f[t&l])>u&&0!=--o);return a<=e.lookahead?a:e.lookahead}function Tl(e){var t,n,r,o,i,a,s,u,c,l,f=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-bl)){Sc(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=f?r-f:0}while(--n);t=n=f;do{r=e.prev[--t],e.prev[t]=r>=f?r-f:0}while(--n);o+=f}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,u=e.strstart+e.lookahead,c=o,l=void 0,(l=a.avail_in)>c&&(l=c),n=0===l?0:(a.avail_in-=l,Sc(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=dl(a.adler,s,l,u):2===a.state.wrap&&(a.adler=ml(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+3-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<bl&&0!==e.strm.avail_in)}function Il(e,t){for(var n,r;;){if(e.lookahead<bl){if(Tl(e),e.lookahead<bl&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-bl&&(e.match_length=Al(e,n)),e.match_length>=3)if(r=pl(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=pl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Rl(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Rl(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Rl(e,!1),0===e.strm.avail_out)?1:2}function Ll(e,t){for(var n,r,o;;){if(e.lookahead<bl){if(Tl(e),e.lookahead<bl&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-bl&&(e.match_length=Al(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=pl(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Rl(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=pl(e,0,e.window[e.strstart-1]))&&Rl(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=pl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Rl(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Rl(e,!1),0===e.strm.avail_out)?1:2}function Nl(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function Dl(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new kc(1146),this.dyn_dtree=new kc(122),this.bl_tree=new kc(78),kl(this.dyn_ltree),kl(this.dyn_dtree),kl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new kc(16),this.heap=new kc(573),kl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new kc(573),kl(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ml(e){var t=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:Ol,e.adler=2===t.wrap?0:1,t.last_flush=0,cl(t),0):Sl(e,yl)}(e);return 0===t&&function(e){e.window_size=2*e.w_size,kl(e.head),e.max_lazy_match=_l[e.level].max_lazy,e.good_match=_l[e.level].good_length,e.nice_match=_l[e.level].nice_length,e.max_chain_length=_l[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function Ul(e,t){var n,r,o,i;if(!e||!e.state||t>5||t<0)return e?Sl(e,yl):yl;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===El&&4!==t)return Sl(e,0===e.avail_out?-5:yl);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,Pl(r,31),Pl(r,139),Pl(r,8),r.gzhead?(Pl(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Pl(r,255&r.gzhead.time),Pl(r,r.gzhead.time>>8&255),Pl(r,r.gzhead.time>>16&255),Pl(r,r.gzhead.time>>24&255),Pl(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Pl(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Pl(r,255&r.gzhead.extra.length),Pl(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ml(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Pl(r,0),Pl(r,0),Pl(r,0),Pl(r,0),Pl(r,0),Pl(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Pl(r,3),r.status=Ol);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Ol,jl(r,a),0!==r.strstart&&(jl(r,e.adler>>>16),jl(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),Cl(e),o=r.pending,r.pending!==r.pending_buf_size));)Pl(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),Cl(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Pl(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),Cl(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Pl(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=ml(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.status=wl)}else r.status=wl;if(r.status===wl&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Cl(e),r.pending+2<=r.pending_buf_size&&(Pl(r,255&e.adler),Pl(r,e.adler>>8&255),e.adler=0,r.status=Ol)):r.status=Ol),0!==r.pending){if(Cl(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&xl(t)<=xl(n)&&4!==t)return Sl(e,-5);if(r.status===El&&0!==e.avail_in)return Sl(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==El){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Tl(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=pl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Rl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Rl(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Rl(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,o,i,a=e.window;;){if(e.lookahead<=gl){if(Tl(e),e.lookahead<=gl&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=a[o=e.strstart-1])===a[++o]&&r===a[++o]&&r===a[++o]){i=e.strstart+gl;do{}while(r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&o<i);e.match_length=gl-(i-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=pl(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=pl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Rl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Rl(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Rl(e,!1),0===e.strm.avail_out)?1:2}(r,t):_l[r.level].func(r,t);if(3!==s&&4!==s||(r.status=El),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?fl(r):5!==t&&(ll(r,0,0,!1),3===t&&(kl(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Cl(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(Pl(r,255&e.adler),Pl(r,e.adler>>8&255),Pl(r,e.adler>>16&255),Pl(r,e.adler>>24&255),Pl(r,255&e.total_in),Pl(r,e.total_in>>8&255),Pl(r,e.total_in>>16&255),Pl(r,e.total_in>>24&255)):(jl(r,e.adler>>>16),jl(r,65535&e.adler)),Cl(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}_l=[new Nl(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Tl(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Rl(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-bl&&(Rl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Rl(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Rl(e,!1),e.strm.avail_out),1)})),new Nl(4,4,8,4,Il),new Nl(4,5,16,8,Il),new Nl(4,6,32,32,Il),new Nl(4,4,16,16,Ll),new Nl(8,16,32,32,Ll),new Nl(8,16,128,128,Ll),new Nl(8,32,128,256,Ll),new Nl(32,128,258,1024,Ll),new Nl(32,258,258,4096,Ll)];function Fl(e,t){var n,r,o,i,a,s,u,c,l,f,h,p,d,v,m,_,y,g,b,w,O,E,S,x,k;n=e.state,r=e.next_in,x=e.input,o=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,p=n.hold,d=n.bits,v=n.lencode,m=n.distcode,_=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{d<15&&(p+=x[r++]<<d,d+=8,p+=x[r++]<<d,d+=8),g=v[p&_];t:for(;;){if(p>>>=b=g>>>24,d-=b,0===(b=g>>>16&255))k[i++]=65535&g;else{if(!(16&b)){if(0==(64&b)){g=v[(65535&g)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&g,(b&=15)&&(d<b&&(p+=x[r++]<<d,d+=8),w+=p&(1<<b)-1,p>>>=b,d-=b),d<15&&(p+=x[r++]<<d,d+=8,p+=x[r++]<<d,d+=8),g=m[p&y];n:for(;;){if(p>>>=b=g>>>24,d-=b,!(16&(b=g>>>16&255))){if(0==(64&b)){g=m[(65535&g)+(p&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(O=65535&g,d<(b&=15)&&(p+=x[r++]<<d,(d+=8)<b&&(p+=x[r++]<<d,d+=8)),(O+=p&(1<<b)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=b,d-=b,O>(b=i-a)){if((b=O-b)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=0,S=h,0===f){if(E+=c-b,b<w){w-=b;do{k[i++]=h[E++]}while(--b);E=i-O,S=k}}else if(f<b){if(E+=c+f-b,(b-=f)<w){w-=b;do{k[i++]=h[E++]}while(--b);if(E=0,f<w){w-=b=f;do{k[i++]=h[E++]}while(--b);E=i-O,S=k}}}else if(E+=f-b,b<w){w-=b;do{k[i++]=h[E++]}while(--b);E=i-O,S=k}for(;w>2;)k[i++]=S[E++],k[i++]=S[E++],k[i++]=S[E++],w-=3;w&&(k[i++]=S[E++],w>1&&(k[i++]=S[E++]))}else{E=i-O;do{k[i++]=k[E++],k[i++]=k[E++],k[i++]=k[E++],w-=3}while(w>2);w&&(k[i++]=k[E++],w>1&&(k[i++]=k[E++]))}break}}break}}while(r<o&&i<s);r-=w=d>>3,p&=(1<<(d-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=d}var Hl=15,ql=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Bl=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],zl=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Zl=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Vl(e,t,n,r,o,i,a,s){var u,c,l,f,h,p,d,v,m,_=s.bits,y=0,g=0,b=0,w=0,O=0,E=0,S=0,x=0,k=0,C=0,R=null,P=0,j=new kc(16),A=new kc(16),T=null,I=0;for(y=0;y<=Hl;y++)j[y]=0;for(g=0;g<r;g++)j[t[n+g]]++;for(O=_,w=Hl;w>=1&&0===j[w];w--);if(O>w&&(O=w),0===w)return o[i++]=20971520,o[i++]=20971520,s.bits=1,0;for(b=1;b<w&&0===j[b];b++);for(O<b&&(O=b),x=1,y=1;y<=Hl;y++)if(x<<=1,(x-=j[y])<0)return-1;if(x>0&&(0===e||1!==w))return-1;for(A[1]=0,y=1;y<Hl;y++)A[y+1]=A[y]+j[y];for(g=0;g<r;g++)0!==t[n+g]&&(a[A[t[n+g]]++]=g);if(0===e?(R=T=a,p=19):1===e?(R=ql,P-=257,T=Bl,I-=257,p=256):(R=zl,T=Zl,p=-1),C=0,g=0,y=b,h=i,E=O,S=0,l=-1,f=(k=1<<O)-1,1===e&&k>852||2===e&&k>592)return 1;for(;;){d=y-S,a[g]<p?(v=0,m=a[g]):a[g]>p?(v=T[I+a[g]],m=R[P+a[g]]):(v=96,m=0),u=1<<y-S,b=c=1<<E;do{o[h+(C>>S)+(c-=u)]=d<<24|v<<16|m|0}while(0!==c);for(u=1<<y-1;C&u;)u>>=1;if(0!==u?(C&=u-1,C+=u):C=0,g++,0==--j[y]){if(y===w)break;y=t[n+a[g]]}if(y>O&&(C&f)!==l){for(0===S&&(S=O),h+=b,x=1<<(E=y-S);E+S<w&&!((x-=j[E+S])<=0);)E++,x<<=1;if(k+=1<<E,1===e&&k>852||2===e&&k>592)return 1;o[l=C&f]=O<<24|E<<16|h-i|0}}return 0!==C&&(o[h+C]=y-S<<24|64<<16|0),s.bits=O,0}var Wl=-2,Kl=12,Yl=30;function Gl(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Jl(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new kc(320),this.work=new kc(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $l(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Cc(852),t.distcode=t.distdyn=new Cc(592),t.sane=1,t.back=-1,0):Wl}(e)):Wl}function Xl(e,t){var n,r;return e?(r=new Jl,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Wl:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,$l(e))):Wl}(e,t),0!==n&&(e.state=null),n):Wl}var Ql,ef,tf=!0;function nf(e){if(tf){var t;for(Ql=new Cc(512),ef=new Cc(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Vl(1,e.lens,0,288,Ql,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Vl(2,e.lens,0,32,ef,0,e.work,{bits:5}),tf=!1}e.lencode=Ql,e.lenbits=9,e.distcode=ef,e.distbits=5}function rf(e,t){var n,r,o,i,a,s,u,c,l,f,h,p,d,v,m,_,y,g,b,w,O,E,S,x,k=0,C=new xc(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Wl;(n=e.state).mode===Kl&&(n.mode=13),a=e.next_out,o=e.output,u=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,l=n.bits,f=s,h=u,E=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,C[0]=255&c,C[1]=c>>>8&255,n.check=ml(n.check,C,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Yl;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=Yl;break}if(l-=4,O=8+(15&(c>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=Yl;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&c?10:Kl,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Yl;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Yl;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ml(n.check,C,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,n.check=ml(n.check,C,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ml(n.check,C,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ml(n.check,C,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Sc(n.head.extra,r,i,p,O)),512&n.flags&&(n.check=ml(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{O=r[i+p++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O))}while(O&&p<s);if(512&n.flags&&(n.check=ml(n.check,r,p,i)),s-=p,i+=p,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{O=r[i+p++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O))}while(O&&p<s);if(512&n.flags&&(n.check=ml(n.check,r,p,i)),s-=p,i+=p,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Yl;break}c=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Kl;break;case 10:for(;l<32;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}e.adler=n.check=Gl(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=l,2;e.adler=n.check=1,n.mode=Kl;case Kl:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(nf(n),n.mode=20,6===t){c>>>=2,l-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Yl}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Yl;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>u&&(p=u),0===p)break e;Sc(o,r,i,p,a),s-=p,i+=p,u-=p,a+=p,n.length-=p;break}n.mode=Kl;break;case 17:for(;l<14;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Yl;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.lens[R[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=Vl(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid code lengths set",n.mode=Yl;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(k=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&k,!((m=k>>>24)<=l);){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(y<16)c>>>=m,l-=m,n.lens[n.have++]=y;else{if(16===y){for(x=m+2;l<x;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(c>>>=m,l-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=Yl;break}O=n.lens[n.have-1],p=3+(3&c),c>>>=2,l-=2}else if(17===y){for(x=m+3;l<x;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}l-=m,O=0,p=3+(7&(c>>>=m)),c>>>=3,l-=3}else{for(x=m+7;l<x;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}l-=m,O=0,p=11+(127&(c>>>=m)),c>>>=7,l-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Yl;break}for(;p--;)n.lens[n.have++]=O}}if(n.mode===Yl)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Yl;break}if(n.lenbits=9,S={bits:n.lenbits},E=Vl(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid literal/lengths set",n.mode=Yl;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=Vl(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){e.msg="invalid distances set",n.mode=Yl;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&u>=258){e.next_out=a,e.avail_out=u,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=l,Fl(e,h),a=e.next_out,o=e.output,u=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,l=n.bits,n.mode===Kl&&(n.back=-1);break}for(n.back=0;_=(k=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&k,!((m=k>>>24)<=l);){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(_&&0==(240&_)){for(g=m,b=_,w=y;_=(k=n.lencode[w+((c&(1<<g+b)-1)>>g)])>>>16&255,y=65535&k,!(g+(m=k>>>24)<=l);){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}c>>>=g,l-=g,n.back+=g}if(c>>>=m,l-=m,n.back+=m,n.length=y,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=Kl;break}if(64&_){e.msg="invalid literal/length code",n.mode=Yl;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(x=n.extra;l<x;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(k=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&k,!((m=k>>>24)<=l);){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(0==(240&_)){for(g=m,b=_,w=y;_=(k=n.distcode[w+((c&(1<<g+b)-1)>>g)])>>>16&255,y=65535&k,!(g+(m=k>>>24)<=l);){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}c>>>=g,l-=g,n.back+=g}if(c>>>=m,l-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=Yl;break}n.offset=y,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(x=n.extra;l<x;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Yl;break}n.mode=25;case 25:if(0===u)break e;if(p=h-u,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Yl;break}p>n.wnext?(p-=n.wnext,d=n.wsize-p):d=n.wnext-p,p>n.length&&(p=n.length),v=n.window}else v=o,d=a-n.offset,p=n.length;p>u&&(p=u),u-=p,n.length-=p;do{o[a++]=v[d++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;o[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break e;s--,c|=r[i++]<<l,l+=8}if(h-=u,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?ml(n.check,o,h,a-h):dl(n.check,o,h,a-h)),h=u,(n.flags?c:Gl(c))!==n.check){e.msg="incorrect data check",n.mode=Yl;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break e;s--,c+=r[i++]<<l,l+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Yl;break}c=0,l=0}n.mode=29;case 29:E=1;break e;case Yl:E=-3;break e;case 31:return-4;default:return Wl}return e.next_out=a,e.avail_out=u,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==e.avail_out&&n.mode<Yl&&(n.mode<27||4!==t))&&function(e,t,n,r){var o,i=e.state;null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new xc(i.wsize)),r>=i.wsize?(Sc(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),Sc(i.window,t,n-r,o,i.wnext),(r-=o)?(Sc(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o)))}(e,e.output,e.next_out,h-e.avail_out),f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?ml(n.check,o,h,e.next_out-h):dl(n.check,o,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Kl?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===t)&&0===E&&(E=-5),E}var of;function af(e){if(e<1||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function sf(e,t){for(var n=0;n<e.length;n++)this[t+n]=e[n]}af.prototype.init=function(e,t,n,r,o){var i;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Ec,this.mode){case 1:case 3:case 5:i=function(e,t,n,r,o,i){if(!e)return yl;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||i<0||i>4)return Sl(e,yl);8===r&&(r=9);var s=new Dl;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new xc(2*s.w_size),s.head=new kc(s.hash_size),s.prev=new kc(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new xc(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=n,Ml(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:i=Xl(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===i?(this.write_in_progress=!1,this.init_done=!0):this._error(i)},af.prototype.params=function(){throw new Error("deflateParams Not supported")},af.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},af.prototype.write=function(e,t,n,r,o,i,a){this._writeCheck(),this.write_in_progress=!0;var s=this;return co((function(){s.write_in_progress=!1;var u=s._write(e,t,n,r,o,i,a);s.callback(u[0],u[1]),s.pending_close&&s.close()})),this},af.prototype.writeSync=function(e,t,n,r,o,i,a){return this._writeCheck(),this._write(e,t,n,r,o,i,a)},af.prototype._write=function(e,t,n,r,o,i,a){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw new Error("Invalid flush value");null==t&&(t=new Go(0),r=0,n=0),o._set?o.set=o._set:o.set=sf;var s,u=this.strm;switch(u.avail_in=r,u.input=t,u.next_in=n,u.avail_out=a,u.output=o,u.next_out=i,this.mode){case 1:case 3:case 5:s=Ul(u,e);break;case 7:case 2:case 4:case 6:s=rf(u,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[u.avail_in,u.avail_out]},af.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&(42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==wl&&t!==Ol&&t!==El?Sl(e,yl):(e.state=null,t===Ol&&Sl(e,-3)))}(this.strm):function(e){if(!e||!e.state)return Wl;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},af.prototype.reset=function(){switch(this.mode){case 1:case 5:of=Ml(this.strm);break;case 2:case 6:of=$l(this.strm)}0!==of&&this._error(of)},af.prototype._error=function(e){this.onerror(Oc[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var uf=Object.freeze({__proto__:null,NONE:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:af});var cf={};Object.keys(uf).forEach((function(e){cf[e]=uf[e]})),cf.Z_MIN_WINDOWBITS=8,cf.Z_MAX_WINDOWBITS=15,cf.Z_DEFAULT_WINDOWBITS=15,cf.Z_MIN_CHUNK=64,cf.Z_MAX_CHUNK=1/0,cf.Z_DEFAULT_CHUNK=16384,cf.Z_MIN_MEMLEVEL=1,cf.Z_MAX_MEMLEVEL=9,cf.Z_DEFAULT_MEMLEVEL=8,cf.Z_MIN_LEVEL=-1,cf.Z_MAX_LEVEL=9,cf.Z_DEFAULT_LEVEL=cf.Z_DEFAULT_COMPRESSION;var lf={Z_OK:cf.Z_OK,Z_STREAM_END:cf.Z_STREAM_END,Z_NEED_DICT:cf.Z_NEED_DICT,Z_ERRNO:cf.Z_ERRNO,Z_STREAM_ERROR:cf.Z_STREAM_ERROR,Z_DATA_ERROR:cf.Z_DATA_ERROR,Z_MEM_ERROR:cf.Z_MEM_ERROR,Z_BUF_ERROR:cf.Z_BUF_ERROR,Z_VERSION_ERROR:cf.Z_VERSION_ERROR};function ff(e,t,n){var r=[],o=0;function i(){for(var t;null!==(t=e.read());)r.push(t),o+=t.length;e.once("readable",i)}function a(){var t=Go.concat(r,o);r=[],n(null,t),e.close()}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",i),n(t)})),e.on("end",a),e.end(t),i()}function hf(e,t){if("string"==typeof t&&(t=new Go(t)),!Ti(t))throw new TypeError("Not a string or buffer");var n=cf.Z_FINISH;return e._processChunk(t,n)}function pf(e){if(!(this instanceof pf))return new pf(e);bf.call(this,e,cf.DEFLATE)}function df(e){if(!(this instanceof df))return new df(e);bf.call(this,e,cf.INFLATE)}function vf(e){if(!(this instanceof vf))return new vf(e);bf.call(this,e,cf.GZIP)}function mf(e){if(!(this instanceof mf))return new mf(e);bf.call(this,e,cf.GUNZIP)}function _f(e){if(!(this instanceof _f))return new _f(e);bf.call(this,e,cf.DEFLATERAW)}function yf(e){if(!(this instanceof yf))return new yf(e);bf.call(this,e,cf.INFLATERAW)}function gf(e){if(!(this instanceof gf))return new gf(e);bf.call(this,e,cf.UNZIP)}function bf(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||cf.Z_DEFAULT_CHUNK,Es.call(this,e),e.flush&&e.flush!==cf.Z_NO_FLUSH&&e.flush!==cf.Z_PARTIAL_FLUSH&&e.flush!==cf.Z_SYNC_FLUSH&&e.flush!==cf.Z_FULL_FLUSH&&e.flush!==cf.Z_FINISH&&e.flush!==cf.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||cf.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<cf.Z_MIN_CHUNK||e.chunkSize>cf.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<cf.Z_MIN_WINDOWBITS||e.windowBits>cf.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<cf.Z_MIN_LEVEL||e.level>cf.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<cf.Z_MIN_MEMLEVEL||e.memLevel>cf.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=cf.Z_FILTERED&&e.strategy!=cf.Z_HUFFMAN_ONLY&&e.strategy!=cf.Z_RLE&&e.strategy!=cf.Z_FIXED&&e.strategy!=cf.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Ti(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new cf.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=new Error(e);r.errno=t,r.code=cf.codes[t],n.emit("error",r)};var r=cf.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var o=cf.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(o=e.strategy),this._binding.init(e.windowBits||cf.Z_DEFAULT_WINDOWBITS,r,e.memLevel||cf.Z_DEFAULT_MEMLEVEL,o,e.dictionary),this._buffer=new Go(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=o,this.once("end",this.close)}Object.keys(lf).forEach((function(e){lf[lf[e]]=e})),Wi(bf,Es),bf.prototype.params=function(e,t,n){if(e<cf.Z_MIN_LEVEL||e>cf.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=cf.Z_FILTERED&&t!=cf.Z_HUFFMAN_ONLY&&t!=cf.Z_RLE&&t!=cf.Z_FIXED&&t!=cf.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(cf.Z_SYNC_FLUSH,(function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())}))}else co(n)},bf.prototype.reset=function(){return this._binding.reset()},bf.prototype._flush=function(e){this._transform(new Go(0),"",e)},bf.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=cf.Z_FULL_FLUSH),n.ended)t&&co(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(t)}))}else this._flushFlag=e,this.write(new Go(0),"",t)},bf.prototype.close=function(e){if(e&&co(e),!this._closed){this._closed=!0,this._binding.close();var t=this;co((function(){t.emit("close")}))}},bf.prototype._transform=function(e,t,n){var r,o=this._writableState,i=(o.ending||o.ended)&&(!e||o.length===e.length);if(null===!e&&!Ti(e))return n(new Error("invalid input"));i?r=cf.Z_FINISH:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||cf.Z_NO_FLUSH)),this._processChunk(e,r,n)},bf.prototype._processChunk=function(e,t,n){var r=e&&e.length,o=this._chunkSize-this._offset,i=0,a=this,s="function"==typeof n;if(!s){var u,c=[],l=0;this.on("error",(function(e){u=e}));do{var f=this._binding.writeSync(t,e,i,r,this._buffer,this._offset,o)}while(!this._hadError&&d(f[0],f[1]));if(this._hadError)throw u;var h=Go.concat(c,l);return this.close(),h}var p=this._binding.write(t,e,i,r,this._buffer,this._offset,o);function d(u,f){if(!a._hadError){var h=o-f;if(function(e,t){if(!e)throw new Error(t)}(h>=0,"have should not go down"),h>0){var p=a._buffer.slice(a._offset,a._offset+h);a._offset+=h,s?a.push(p):(c.push(p),l+=p.length)}if((0===f||a._offset>=a._chunkSize)&&(o=a._chunkSize,a._offset=0,a._buffer=new Go(a._chunkSize)),0===f){if(i+=r-u,r=u,!s)return!0;var v=a._binding.write(t,e,i,r,a._buffer,a._offset,a._chunkSize);return v.callback=d,void(v.buffer=e)}if(!s)return!1;n()}}p.buffer=e,p.callback=d},Wi(pf,bf),Wi(df,bf),Wi(vf,bf),Wi(mf,bf),Wi(_f,bf),Wi(yf,bf),Wi(gf,bf);var wf={codes:lf,createDeflate:function(e){return new pf(e)},createInflate:function(e){return new df(e)},createDeflateRaw:function(e){return new _f(e)},createInflateRaw:function(e){return new yf(e)},createGzip:function(e){return new vf(e)},createGunzip:function(e){return new mf(e)},createUnzip:function(e){return new gf(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new pf(t),e,n)},deflateSync:function(e,t){return hf(new pf(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new vf(t),e,n)},gzipSync:function(e,t){return hf(new vf(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new _f(t),e,n)},deflateRawSync:function(e,t){return hf(new _f(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new gf(t),e,n)},unzipSync:function(e,t){return hf(new gf(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new df(t),e,n)},inflateSync:function(e,t){return hf(new df(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new mf(t),e,n)},gunzipSync:function(e,t){return hf(new mf(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ff(new yf(t),e,n)},inflateRawSync:function(e,t){return hf(new yf(t),e)},Deflate:pf,Inflate:df,Gzip:vf,Gunzip:mf,DeflateRaw:_f,InflateRaw:yf,Unzip:gf,Zlib:bf},Of="0.26.1",Ef=bc.http,Sf=bc.https,xf=Of,kf=/https:?/;function Cf(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var r=Go.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+r}e.beforeRedirect=function(e){e.headers.host=e.host,Cf(e,t,e.href)}}var Rf=function(e){return new Promise((function(t,n){var r;function o(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}var i=function(e){o(),t(e)},a=!1,s=function(e){o(),a=!0,n(e)},u=e.data,c=e.headers,l={};if(Object.keys(c).forEach((function(e){l[e.toLowerCase()]=e})),"user-agent"in l?c[l["user-agent"]]||delete c[l["user-agent"]]:c["User-Agent"]="axios/"+xf,u&&!Wr.isStream(u)){if(Ti(u));else if(Wr.isArrayBuffer(u))u=Go.from(new Uint8Array(u));else{if(!Wr.isString(u))return s(Co("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u=Go.from(u,"utf-8")}if(e.maxBodyLength>-1&&u.length>e.maxBodyLength)return s(Co("Request body larger than maxBodyLength limit",e));l["content-length"]||(c["Content-Length"]=u.length)}var f=void 0;e.auth&&(f=(e.auth.username||"")+":"+(e.auth.password||""));var h=jo(e.baseURL,e.url),p=Ys.parse(h),d=p.protocol||"http:";if(!f&&p.auth){var v=p.auth.split(":");f=(v[0]||"")+":"+(v[1]||"")}f&&l.authorization&&delete c[l.authorization];var m=kf.test(d),_=m?e.httpsAgent:e.httpAgent;try{Yr(p.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var g={path:Yr(p.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:_,agents:{http:e.httpAgent,https:e.httpsAgent},auth:f};e.socketPath?g.socketPath=e.socketPath:(g.hostname=p.hostname,g.port=p.port);var b,w=e.proxy;if(!w&&!1!==w){var O=d.slice(0,-1)+"_proxy",E=Eo.env[O]||Eo.env[O.toUpperCase()];if(E){var S=Ys.parse(E),x=Eo.env.no_proxy||Eo.env.NO_PROXY,k=!0;if(x){var C=x.split(",").map((function(e){return e.trim()}));k=!C.some((function(e){return!!e&&("*"===e||("."===e[0]&&p.hostname.substr(p.hostname.length-e.length)===e||p.hostname===e))}))}if(k&&(w={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var R=S.auth.split(":");w.auth={username:R[0],password:R[1]}}}}w&&(g.headers.host=p.hostname+(p.port?":"+p.port:""),Cf(g,w,d+"//"+p.hostname+(p.port?":"+p.port:"")+g.path));var P=m&&(!w||kf.test(w.protocol));e.transport?b=e.transport:0===e.maxRedirects?b=du:(e.maxRedirects&&(g.maxRedirects=e.maxRedirects),b=P?Sf:Ef),e.maxBodyLength>-1&&(g.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(g.insecureHTTPParser=e.insecureHTTPParser);var j=b.request(g,(function(t){if(!j.aborted){var n=t,r=t.req||j;if(204!==t.statusCode&&"HEAD"!==r.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(wf.createUnzip()),delete t.headers["content-encoding"]}var o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:r};if("stream"===e.responseType)o.data=n,Ro(i,s,o);else{var u=[],c=0;n.on("data",(function(t){u.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(a=!0,n.destroy(),s(Co("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,r)))})),n.on("aborted",(function(){a||(n.destroy(),s(Co("error request aborted",e,"ERR_REQUEST_ABORTED",r)))})),n.on("error",(function(t){j.aborted||s(xo(t,e,null,r))})),n.on("end",(function(){try{var t=1===u.length?u[0]:Go.concat(u);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Wr.stripBOM(t))),o.data=t}catch(t){s(xo(t,e,t.code,o.request,o))}Ro(i,s,o)}))}}}));if(j.on("error",(function(t){j.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(xo(t,e,null,j))})),j.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var A=parseInt(e.timeout,10);if(isNaN(A))return void s(Co("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",j));j.setTimeout(A,(function(){j.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var n=e.transitional||ko;s(Co(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",j))}))}(e.cancelToken||e.signal)&&(r=function(e){j.aborted||(j.abort(),s(!e||e&&e.type?new Lo("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),Wr.isStream(u)?u.on("error",(function(t){s(xo(t,e,null,j))})).pipe(j):j.end(u)}))},Pf={"Content-Type":"application/x-www-form-urlencoded"};function jf(e,t){!Wr.isUndefined(e)&&Wr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Af,Tf={transitional:ko,adapter:("undefined"!=typeof XMLHttpRequest?Af=No:void 0!==Eo&&"[object process]"===Object.prototype.toString.call(Eo)&&(Af=Rf),Af),transformRequest:[function(e,t){return So(t,"Accept"),So(t,"Content-Type"),Wr.isFormData(e)||Wr.isArrayBuffer(e)||Wr.isBuffer(e)||Wr.isStream(e)||Wr.isFile(e)||Wr.isBlob(e)?e:Wr.isArrayBufferView(e)?e.buffer:Wr.isURLSearchParams(e)?(jf(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Wr.isObject(e)||t&&"application/json"===t["Content-Type"]?(jf(t,"application/json"),function(e,t,n){if(Wr.isString(e))try{return(t||JSON.parse)(e),Wr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Tf.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Wr.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw xo(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Wr.forEach(["delete","get","head"],(function(e){Tf.headers[e]={}})),Wr.forEach(["post","put","patch"],(function(e){Tf.headers[e]=Wr.merge(Pf)}));var If=Tf,Lf=function(e,t,n){var r=this||If;return Wr.forEach(n,(function(n){e=n.call(r,e,t)})),e},Nf=function(e){return!(!e||!e.__CANCEL__)};function Df(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lo("canceled")}var Mf=function(e){return Df(e),e.headers=e.headers||{},e.data=Lf.call(e,e.data,e.headers,e.transformRequest),e.headers=Wr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Wr.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||If.adapter)(e).then((function(t){return Df(e),t.data=Lf.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Nf(t)||(Df(e),t&&t.response&&(t.response.data=Lf.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Uf=function(e,t){t=t||{};var n={};function r(e,t){return Wr.isPlainObject(e)&&Wr.isPlainObject(t)?Wr.merge(e,t):Wr.isPlainObject(t)?Wr.merge({},t):Wr.isArray(t)?t.slice():t}function o(n){return Wr.isUndefined(t[n])?Wr.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Wr.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return Wr.isUndefined(t[n])?Wr.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Wr.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);Wr.isUndefined(r)&&t!==s||(n[e]=r)})),n},Ff=Of,Hf={};["object","boolean","number","function","string","symbol"].forEach((function(t,n){Hf[t]=function(r){return e(r)===t||"a"+(n<1?"n ":" ")+t}}));var qf={};Hf.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ff+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Error(r(o," has been removed"+(t?" in "+t:"")));return t&&!qf[o]&&(qf[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Bf={assertOptions:function(t,n,r){if("object"!==e(t))throw new TypeError("options must be an object");for(var o=Object.keys(t),i=o.length;i-- >0;){var a=o[i],s=n[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:Hf},zf=Bf.validators;function Zf(e){this.defaults=e,this.interceptors={request:new Jr,response:new Jr}}Zf.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Uf(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&Bf.assertOptions(n,{silentJSONParsing:zf.transitional(zf.boolean),forcedJSONParsing:zf.transitional(zf.boolean),clarifyTimeoutError:zf.transitional(zf.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var s=[Mf,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),i=Promise.resolve(t);s.length;)i=i.then(s.shift(),s.shift());return i}for(var u=t;r.length;){var c=r.shift(),l=r.shift();try{u=c(u)}catch(e){l(e);break}}try{i=Mf(u)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},Zf.prototype.getUri=function(e){return e=Uf(this.defaults,e),Yr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Wr.forEach(["delete","get","head","options"],(function(e){Zf.prototype[e]=function(t,n){return this.request(Uf(n||{},{method:e,url:t,data:(n||{}).data}))}})),Wr.forEach(["post","put","patch"],(function(e){Zf.prototype[e]=function(t,n,r){return this.request(Uf(r||{},{method:e,url:t,data:n}))}}));var Vf=Zf;function Wf(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new Lo(e),t(n.reason))}))}Wf.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Wf.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Wf.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Wf.source=function(){var e,t=new Wf((function(t){e=t}));return{token:t,cancel:e}};var Kf=Wf;var Yf=function e(t){var n=new Vf(t),r=Mr(Vf.prototype.request,n);return Wr.extend(r,Vf.prototype,n),Wr.extend(r,n),r.create=function(n){return e(Uf(t,n))},r}(If);Yf.Axios=Vf,Yf.Cancel=Lo,Yf.CancelToken=Kf,Yf.isCancel=Nf,Yf.VERSION=Of,Yf.all=function(e){return Promise.all(e)},Yf.spread=function(e){return function(t){return e.apply(null,t)}},Yf.isAxiosError=function(e){return Wr.isObject(e)&&!0===e.isAxiosError};var Gf=Yf,Jf=Yf;Gf.default=Jf;var $f=Gf,Xf=Me((function(t,n){var r=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=i($f),s=i(xr),u=!0,c=function(){function t(e){this.configuration=e,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return t.prototype.get=function(e,t,n){void 0===t&&(t={});var i=void 0===n?{}:n,a=i.abortSignal,s=void 0===a?null:a,u=i.responseType,c=void 0===u?void 0:u;return r(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.performRequest("get",e,{queryParameters:t,abortSignal:s,responseType:c})]}))}))},t.prototype.delete=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this.performRequest("delete",e,{queryParameters:t})]}))}))},t.prototype.post=function(e,t,n,i){return void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={}),r(this,void 0,void 0,(function(){return o(this,(function(r){return[2,this.performRequest("post",e,{queryParameters:n,bodyParameters:t,additionalHeaders:i})]}))}))},t.prototype.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r(this,void 0,void 0,(function(){return o(this,(function(r){return[2,this.performRequest("put",e,{queryParameters:n,bodyParameters:t})]}))}))},t.prototype.patch=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r(this,void 0,void 0,(function(){return o(this,(function(r){return[2,this.performRequest("patch",e,{queryParameters:n,bodyParameters:t})]}))}))},t.prototype.performRequest=function(t,n,i){var s,c,l,f=i.queryParameters,h=void 0===f?null:f,p=i.bodyParameters,d=void 0===p?null:p,v=i.additionalHeaders,m=void 0===v?{}:v,_=i.abortSignal,y=void 0===_?null:_,g=i.responseType,b=void 0===g?void 0:g,w=i.skipConnectionTimeout,O=void 0!==w&&w;return r(this,void 0,void 0,(function(){var r,i,f,p,v,_;return o(this,(function(g){switch(g.label){case 0:this.configuration.validate(),r=Date.now(),this.logger.debug("Request #".concat(r,": Performing ").concat(t.toUpperCase()," request: ").concat(n)),f=function(f){var v,_,g,w,E,S,x;return o(this,(function(o){switch(o.label){case 0:if(v=p.getNextNode(r),p.logger.debug("Request #".concat(r,": Attempting ").concat(t.toUpperCase()," request Try #").concat(f," to Node ").concat(v.index)),y&&y.aborted)return[2,{value:Promise.reject(new Error("Request aborted by caller."))}];_=void 0,o.label=1;case 1:return o.trys.push([1,3,5,6]),g={method:t,url:p.uriFor(n,v),headers:Object.assign({},p.defaultHeaders(),m,p.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,responseType:b,validateStatus:function(e){return e>0},transformResponse:[function(e,t){var n=e;return void 0!==t&&"string"==typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(n=JSON.parse(e)),n}]},!0!==O&&(g.timeout=1e3*p.connectionTimeoutSeconds),h&&0!==Object.keys(h).length&&(g.params=h),p.sendApiKeyAsQueryParam&&(g.params=g.params||{},g.params["x-typesense-api-key"]=p.apiKey),d&&("string"==typeof d&&0!==d.length||"object"===e(d)&&0!==Object.keys(d).length)&&(g.data=d),y&&(w=a.default.CancelToken,E=w.source(),_=function(){return E.cancel()},y.addEventListener("abort",_),g.cancelToken=E.token),[4,(0,a.default)(g)];case 2:if((S=o.sent()).status>=1&&S.status<=499&&p.setNodeHealthcheck(v,u),p.logger.debug("Request #".concat(r,": Request to Node ").concat(v.index," was made. Response Code was ").concat(S.status,".")),S.status>=200&&S.status<300)return[2,{value:Promise.resolve(S.data)}];if(S.status<500)return[2,{value:Promise.reject(p.customErrorForResponse(S,null===(s=S.data)||void 0===s?void 0:s.message))}];throw p.customErrorForResponse(S,null===(c=S.data)||void 0===c?void 0:c.message);case 3:return x=o.sent(),p.setNodeHealthcheck(v,false),i=x,p.logger.warn("Request #".concat(r,": Request to Node ").concat(v.index,' failed due to "').concat(x.code," ").concat(x.message).concat(null==x.response?"":" - "+JSON.stringify(null===(l=x.response)||void 0===l?void 0:l.data),'"')),p.logger.warn("Request #".concat(r,": Sleeping for ").concat(p.retryIntervalSeconds,"s and then retrying request...")),[4,p.timer(p.retryIntervalSeconds)];case 4:return o.sent(),[3,6];case 5:return y&&_&&y.removeEventListener("abort",_),[7];case 6:return[2]}}))},p=this,v=1,g.label=1;case 1:return v<=this.numRetriesPerRequest+1?[5,f(v)]:[3,4];case 2:if("object"===e(_=g.sent()))return[2,_.value];g.label=3;case 3:return v++,[3,1];case 4:return this.logger.debug("Request #".concat(r,": No retries left. Raising last error")),[2,Promise.reject(i)]}}))}))},t.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map((function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")})).join(" || ")));for(var t=this.nodes[0],n=0;n<=this.nodes.length;n++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(t=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},t.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var n=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return n&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),n},t.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,u)),this.nodes.forEach((function(t,n){t.index=n,e.setNodeHealthcheck(t,u)}))},t.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},t.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},t.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e["X-TYPESENSE-API-KEY"]=this.apiKey),e["Content-Type"]="application/json",e},t.prototype.timer=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,1e3*e)}))]}))}))},t.prototype.customErrorForResponse=function(e,t){var n="Request failed with HTTP code ".concat(e.status);"string"==typeof t&&""!==t.trim()&&(n+=" | Server said: ".concat(t));var r=new s.default(n);return(r=400===e.status?new Nr.RequestMalformed(n):401===e.status?new Nr.RequestUnauthorized(n):404===e.status?new Nr.ObjectNotFound(n):409===e.status?new Nr.ObjectAlreadyExists(n):422===e.status?new Nr.ObjectUnprocessable(n):e.status>=500&&e.status<=599?new Nr.ServerError(n):new Nr.HTTPError(n)).httpStatus=e.status,r},t}();n.default=c}));De(Xf);var Qf=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="/collections",i=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.post(o,e,t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(o)]}))}))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return o},enumerable:!1,configurable:!0}),e}();t.default=i}));De(Qf);var eh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.responseCache=new Map,this.responsePromiseCache=new Map}return e.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},e.prototype.perform=function(e,t,i,a){return n(this,void 0,void 0,(function(){var n,s,u,c,l,f,h,p,d,v,m;return r(this,(function(r){switch(r.label){case 0:if(n=a.cacheResponseForSeconds,s=void 0===n?120:n,u=a.maxSize,c=void 0===u?100:u,s<=0||c<=0)return[2,t.call.apply(t,o([e],i,!1))];if(l=JSON.stringify(i),f=this.responseCache.get(l),h=Date.now(),f){if(h-f.requestTimestamp<1e3*s)return this.responseCache.delete(l),this.responseCache.set(l,f),[2,Promise.resolve(f.response)];this.responseCache.delete(l)}if(p=this.responsePromiseCache.get(l)){if(h-p.requestTimestamp<1e3*s)return this.responsePromiseCache.delete(l),this.responsePromiseCache.set(l,p),[2,p.responsePromise];this.responsePromiseCache.delete(l)}return d=t.call.apply(t,o([e],i,!1)),this.responsePromiseCache.set(l,{requestTimestamp:h,responsePromise:d}),[4,d];case 1:return v=r.sent(),this.responseCache.set(l,{requestTimestamp:h,response:v}),this.responseCache.size>c&&(m=this.responseCache.keys().next().value,this.responseCache.delete(m)),this.responsePromiseCache.size>c&&(m=this.responsePromiseCache.keys().next().value,this.responsePromiseCache.delete(m)),[2,v]}}))}))},e}();t.default=i}));De(eh);var th=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyDocuments=void 0;var i=o(eh),a=o(Qf),s="/documents",u=function(){function e(e,t,n){this.collectionName=e,this.apiCall=t,this.configuration=n,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.search=function(e,t){var o=void 0===t?{}:t,i=o.cacheSearchResultsForSeconds,a=void 0===i?this.configuration.cacheSearchResultsForSeconds:i,s=o.abortSignal,u=void 0===s?null:s;return n(this,void 0,void 0,(function(){var t,n,o;return r(this,(function(r){for(n in t={},!0===this.configuration.useServerSideSearchCache&&(t.use_cache=!0),e)Array.isArray(e[n])&&(t[n]=e[n].join(","));return o=Object.assign({},e,t),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.get,[this.endpointPath("search"),o,{abortSignal:u}],{cacheResponseForSeconds:a})]}))}))},e.prototype.endpointPath=function(e){return"".concat(a.default.RESOURCEPATH,"/").concat(this.collectionName).concat(s).concat(void 0===e?"":"/"+e)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),e}();t.SearchOnlyDocuments=u}));De(th);th.SearchOnlyDocuments;var nh=Me((function(e,t){var n,r=Ne&&Ne.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return r(t,e),t.prototype.create=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(n){if(!e)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,t)]}))}))},t.prototype.upsert=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(n){if(!e)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"upsert"}))]}))}))},t.prototype.update=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(n){if(!e)throw new Error("No document provided");return null!=t.filter_by?[2,this.apiCall.patch(this.endpointPath(),e,Object.assign({},t))]:[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"update"}))]}))}))},t.prototype.delete=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return i(this,(function(t){return"string"==typeof e?[2,this.apiCall.delete(this.endpointPath(e),e)]:[2,this.apiCall.delete(this.endpointPath(),e)]}))}))},t.prototype.createMany=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){return i(this,(function(n){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(e,t)]}))}))},t.prototype.import=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:if(Array.isArray(e))try{n=e.map((function(e){return JSON.stringify(e)})).join("\n")}catch(e){if(RangeError instanceof e&&(null==e?void 0:e.includes("Too many properties to enumerate")))throw new Error("".concat(e,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw new Error(e)}else n=e;return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:t,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:if(r=i.sent(),Array.isArray(e)){if(o=r.split("\n").map((function(e){return JSON.parse(e)})),a=o.filter((function(e){return!1===e.success})),a.length>0)throw new Nr.ImportError("".concat(o.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),o);return[2,o]}return[2,r]}}))}))},t.prototype.export=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]}))}))},t.prototype.exportStream=function(e){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]}))}))},t}(th.SearchOnlyDocuments);t.default=a}));De(nh);var rh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(Qf),a=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+t)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),e}();t.default=a}));De(rh);var oh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(Qf),a=o(rh),s=function(){function e(e,t,n){this.collectionName=e,this.overrideId=t,this.apiCall=n}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(a.default.RESOURCEPATH,"/").concat(this.overrideId)},e}();t.default=s}));De(oh);var ih=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(Qf),a=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+t)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),e}();t.default=a}));De(ih);var ah=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(Qf),a=o(ih),s=function(){function e(e,t,n){this.collectionName=e,this.synonymId=t,this.apiCall=n}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(a.default.RESOURCEPATH,"/").concat(this.synonymId)},e}();t.default=s}));De(ah);var sh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var i=o(Qf),a=o(nh),s=function(){function e(e,t,n){this.collectionName=e,this.documentId=t,this.apiCall=n}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.update=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.patch(this.endpointPath(),e,t)]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(a.default.RESOURCEPATH,"/").concat(this.documentId)},e}();t.Document=s}));De(sh);sh.Document;var uh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(Qf),a=o(nh),s=o(rh),u=o(oh),c=o(ih),l=o(ah),f=function(){function e(e,t,n){this.name=e,this.apiCall=t,this.configuration=n,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=e,this.apiCall=t,this.configuration=n,this._documents=new a.default(this.name,this.apiCall,this.configuration),this._overrides=new s.default(this.name,this.apiCall),this._synonyms=new c.default(this.name,this.apiCall)}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.update=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this.apiCall.patch(this.endpointPath(),e)]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.exists=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return t.sent(),[2,!0];case 2:if((e=t.sent())instanceof Nr.ObjectNotFound)return[2,!1];throw e;case 3:return[2]}}))}))},e.prototype.documents=function(e){return e?(void 0===this.individualDocuments[e]&&(this.individualDocuments[e]=new sh.Document(this.name,e,this.apiCall)),this.individualDocuments[e]):this._documents},e.prototype.overrides=function(e){return void 0===e?this._overrides:(void 0===this.individualOverrides[e]&&(this.individualOverrides[e]=new u.default(this.name,e,this.apiCall)),this.individualOverrides[e])},e.prototype.synonyms=function(e){return void 0===e?this._synonyms:(void 0===this.individualSynonyms[e]&&(this.individualSynonyms[e]=new l.default(this.name,e,this.apiCall)),this.individualSynonyms[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.name)},e}();t.default=f}));De(uh);var ch=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="/aliases",i=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(o)]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH,"/").concat(t)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return o},enumerable:!1,configurable:!0}),e}();t.default=i}));De(ch);var lh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(ch),a=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.name)},e}();t.default=a}));De(lh);var fh={},hh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="/keys",i=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.post(e.RESOURCEPATH,t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(o)]}))}))},e.prototype.generateScopedSearchKey=function(e,t){var n=JSON.stringify(t),r=Go.from((0,fh.createHmac)("sha256",e).update(n).digest("base64")),o=e.substr(0,4),i="".concat(r).concat(o).concat(n);return Go.from(i).toString("base64")},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return o},enumerable:!1,configurable:!0}),e}();t.default=i}));De(hh);var ph=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(hh),a=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.id)},e}();t.default=a}));De(ph);var dh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get("/debug")]}))}))},e}();t.default=o}));De(dh);var vh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get("/metrics.json")]}))}))},e}();t.default=o}));De(vh);var mh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get("/health")]}))}))},e}();t.default=o}));De(mh);var _h=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e}return e.prototype.perform=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.post("".concat("/operations","/").concat(e),{},t)]}))}))},e}();t.default=o}));De(_h);var yh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(eh),a=function(){function e(e,t,n){void 0===n&&(n=!1),this.apiCall=e,this.configuration=t,this.useTextContentType=n,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.perform=function(e,t,o){void 0===t&&(t={});var i=(void 0===o?{}:o).cacheSearchResultsForSeconds,a=void 0===i?this.configuration.cacheSearchResultsForSeconds:i;return n(this,void 0,void 0,(function(){var n,o,i;return r(this,(function(r){return n={},this.useTextContentType&&(n["content-type"]="text/plain"),o={},!0===this.configuration.useServerSideSearchCache&&(o.use_cache=!0),i=Object.assign({},t,o),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.post,["/multi_search",e,i,n],{cacheResponseForSeconds:a})]}))}))},e}();t.default=a}));De(yh);var gh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+t)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),e}();t.default=o}));De(gh);var bh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(gh),a=function(){function e(e,t){this.presetId=e,this.apiCall=t}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.presetId)},e}();t.default=a}));De(bh);var wh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,this.apiCall.put(this.endpointPath(e),t)]}))}))},e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+t)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),e}();t.default=o}));De(wh);var Oh=Me((function(e,t){var n=Ne&&Ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=Ne&&Ne.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},o=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(wh),a=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.get(this.endpointPath())]}))}))},e.prototype.delete=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.apiCall.delete(this.endpointPath())]}))}))},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(this.name)},e}();t.default=a}));De(Oh);var Eh=Me((function(e,t){var n=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(wh),o=n(Oh),i=function(){function e(e){this.apiCall=e,this.individualAnalyticsRules={},this.apiCall=e,this._analyticsRules=new r.default(this.apiCall)}return e.prototype.rules=function(e){return void 0===e?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new o.default(e,this.apiCall)),this.individualAnalyticsRules[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),e}();t.default=i}));De(Eh);var Sh=Me((function(e,t){var n=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(Dr),o=n(Xf),i=n(Qf),a=n(uh),s=n(ch),u=n(lh),c=n(hh),l=n(ph),f=n(dh),h=n(vh),p=n(mh),d=n(_h),v=n(yh),m=n(gh),_=n(bh),y=n(Eh),g=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!==(t=e.sendApiKeyAsQueryParam)&&void 0!==t&&t,this.configuration=new r.default(e),this.apiCall=new o.default(this.configuration),this.debug=new f.default(this.apiCall),this.metrics=new h.default(this.apiCall),this.health=new p.default(this.apiCall),this.operations=new d.default(this.apiCall),this.multiSearch=new v.default(this.apiCall,this.configuration),this._collections=new i.default(this.apiCall),this.individualCollections={},this._aliases=new s.default(this.apiCall),this.individualAliases={},this._keys=new c.default(this.apiCall),this.individualKeys={},this._presets=new m.default(this.apiCall),this.individualPresets={},this.analytics=new y.default(this.apiCall)}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new a.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new u.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new l.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new _.default(e,this.apiCall)),this.individualPresets[e])},e}();t.default=g}));De(Sh);var xh=Me((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var n=function(){function e(e,t,n){this.name=e,this.apiCall=t,this.configuration=n,this._documents=new th.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}();t.SearchOnlyCollection=n}));De(xh);xh.SearchOnlyCollection;var kh=Me((function(e,t){var n=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(Dr),o=n(Xf),i=n(yh),a=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null===(t=e.sendApiKeyAsQueryParam)||void 0===t||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new r.default(e),this.apiCall=new o.default(this.configuration),this.multiSearch=new i.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach((function(e){e[0];e[1].documents().clearCache()}))},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new xh.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw new Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}();t.default=a}));De(kh);var Ch=Me((function(e,t){var n=Ne&&Ne.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Ne&&Ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Ne&&Ne.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.SearchClient=t.Client=void 0;var a=i(Sh);t.Client=a.default;var s=i(kh);t.SearchClient=s.default;var u=o(Nr);t.Errors=u,t.default={Client:a.default,SearchClient:s.default,Errors:u}}));De(Ch);Ch.Errors;var Rh=Ch.SearchClient,Ph=(Ch.Client,Me((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports})));De(Ph);var jh=Me((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}));De(jh);var Ah=Me((function(e){function t(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,Ge(r.key),r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}));De(Ah);var Th=Me((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0;var n={_adaptHighlightTag:function(e,t,n){return e.replace(new RegExp("<mark>","g"),t||"<mark>").replace(new RegExp("</mark>","g"),n||"</mark>")},_adaptNumberOfPages:function(){var e=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(e)?Math.ceil(e):1}};t.utils=n}));De(Th);Th.utils;var Ih=Me((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResponseAdapter=void 0;var n=Ph(Ke),r=Ph(Ve),o=Ph(Kn),i=Ph(Je),a=Ph(jh),s=Ph(Ah);function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];(0,a.default)(this,e),this.typesenseResponse=t,this.instantsearchRequest=n,this.configuration=r,this.allTypesenseResponses=o}return(0,s.default)(e,[{key:"_adaptGroupedHits",value:function(e){var t=this,n=[];return n=e.map((function(e){var n=t._adaptHits(e.hits);return n.forEach((function(t){t.group_key=t._group_key=e.group_key,e.found&&(t._group_found=e.found)})),n})),n=this.configuration.flattenGroupedHits?n.flat():n.map((function(e){return c(c({},e[0]),{},{_grouped_hits:e})}))}},{key:"_adaptHits",value:function(e){var t=this;return e.map((function(e){var n=c({},e.document);n.objectID=e.document.id,n._snippetResult=t._adaptHighlightResult(e,"snippet"),n._highlightResult=t._adaptHighlightResult(e,"value"),n._rawTypesenseHit=e,["text_match","geo_distance_meters","curated","text_match_info","hybrid_search_info","vector_distance"].forEach((function(t){Object.keys(e).includes(t)&&!Object.keys(n).includes(t)&&(n[t]=e[t])}));var r=n[t.configuration.geoLocationField];return r&&(n._geoloc={lat:r[0],lng:r[1]}),n}))}},{key:"_adaptHighlightResult",value:function(e,t){var n={};return null!=e.highlight&&this.isHighlightPost0240RCN32Format(e.highlight)?this.adaptHighlightObject(e,n,t):this.adaptHighlightsArray(e,n,t),n}},{key:"isHighlightPost0240RCN32Format",value:function(e){return null==e.full&&null==e.snippet}},{key:"adaptHighlightsArray",value:function(e,t,a){var s=this;Object.assign.apply(Object,[t].concat((0,o.default)(Object.entries(e.document).map((function(e){var t=(0,r.default)(e,2),n=t[0],o=t[1];return(0,i.default)({},n,{value:o,matchLevel:"none",matchedWords:[]})}))))),e.highlights.forEach((function(e){t[e.field]={value:e[a]||e["".concat(a,"s")],matchLevel:"full",matchedWords:e.matched_tokens},e.indices&&(t[e.field].matchedIndices=e.indices)})),Object.entries(t).forEach((function(o){var i=(0,r.default)(o,2),u=i[0],c=i[1],l=u,f=c.value,h=c.matchLevel,p=c.matchedWords,d=c.matchedIndices;null==f?t[l]=s._adaptHighlightNullValue():Array.isArray(f)?(t[l]=[],e.document[l].forEach((function(e,r){d&&d.includes(r)?t[l].push({value:s._adaptHighlightTag("".concat(f[d.indexOf(r)]),s.instantsearchRequest.params.highlightPreTag,s.instantsearchRequest.params.highlightPostTag),matchLevel:h,matchedWords:p[r]}):"object"===(0,n.default)(e)?t[l].push(s._adaptHighlightInObjectValue(e,{},a)):t[l].push({value:"".concat(e),matchLevel:"none",matchedWords:[]})}))):"object"===(0,n.default)(f)?t[l]=s._adaptHighlightInObjectValue(f,{},a):t[l].value=s._adaptHighlightTag("".concat(f),s.instantsearchRequest.params.highlightPreTag,s.instantsearchRequest.params.highlightPostTag)}))}},{key:"adaptHighlightObject",value:function(e,t,n){Object.assign(t,this._adaptHighlightInObjectValue(e.document,e.highlight,n))}},{key:"_adaptHighlightInObjectValue",value:function(e,t,a){var s=this;return Object.assign.apply(Object,[{}].concat((0,o.default)(Object.entries(e).map((function(e){var o,u=(0,r.default)(e,2),c=u[0],l=u[1];if(null==l)o=s._adaptHighlightNullValue();else if(Array.isArray(l)){var f;o=s._adaptHighlightInArrayValue(l,null!==(f=null==t?void 0:t[c])&&void 0!==f?f:[],a)}else if("object"===(0,n.default)(l)){var h;o=s._adaptHighlightInObjectValue(l,null!==(h=null==t?void 0:t[c])&&void 0!==h?h:{},a)}else o=s._adaptHighlightInPrimitiveValue(l,null==t?void 0:t[c],a);return(0,i.default)({},c,o)})))))}},{key:"_adaptHighlightInArrayValue",value:function(e,t,r){var o=this;return e.map((function(e,i){var a;if(null==e)a=o._adaptHighlightNullValue();else if(Array.isArray(e)){var s;a=o._adaptHighlightInArrayValue(e,null!==(s=null==t?void 0:t[i])&&void 0!==s?s:[],r)}else if("object"===(0,n.default)(e)){var u;a=o._adaptHighlightInObjectValue(e,null!==(u=null==t?void 0:t[i])&&void 0!==u?u:{},r)}else a=o._adaptHighlightInPrimitiveValue(e,null==t?void 0:t[i],r);return a}))}},{key:"_adaptHighlightInPrimitiveValue",value:function(e,t,n){var r,o;return null!=t?{value:this._adaptHighlightTag("".concat(null!==(r=null!==(o=t[n])&&void 0!==o?o:t.highlight)&&void 0!==r?r:t.snippet),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(t.matched_tokens||[]).length>0?"full":"none",matchedWords:t.matched_tokens||[]}:{value:this._adaptHighlightTag("".concat(e),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function(e){var t={};return e.forEach((function(e){Object.assign(t,(0,i.default)({},e.field_name,Object.assign.apply(Object,[{}].concat((0,o.default)(e.counts.map((function(e){return(0,i.default)({},e.value,e.count)})))))))})),t}},{key:"_adaptFacetStats",value:function(e){var t={};return e.forEach((function(e){Object.keys(e.stats).length>0&&Object.assign(t,(0,i.default)({},e.field_name,e.stats))})),t}},{key:"_adaptRenderingContent",value:function(e){var t,n=Object.assign({},this.configuration.renderingContent);return null==(null===(t=n.facetOrdering)||void 0===t||null===(t=t.facets)||void 0===t?void 0:t.order)&&(n.facetOrdering=n.facetOrdering||{},n.facetOrdering.facets=n.facetOrdering.facets||{},n.facetOrdering.facets.order=(0,o.default)(new Set(e.map((function(e){return e.field_name})).concat(this.allTypesenseResponses.map((function(e){return e.facet_counts||[]})).flat().map((function(e){return e.field_name})).filter((function(e){return e})))))),n}},{key:"adapt",value:function(){var e=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]);return c({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys(e).length>0?{renderingContent:e}:null)}}]),e}();t.SearchResponseAdapter=l,Object.assign(l.prototype,Th.utils)}));De(Ih);var Lh=Ih.SearchResponseAdapter;function Nh(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 Dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mh=["footer","searchBox"];function Uh(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 Fh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hh(e){var t=e.typesenseCollectionName,n=e.typesenseServerConfig,r=e.typesenseSearchParameters,o=e.placeholder,i=void 0===o?"Search docs":o,a=e.onClose,s=void 0===a?ir:a,u=e.transformItems,c=void 0===u?or:u,l=e.hitComponent,f=void 0===l?Tn:l,h=e.resultsFooterComponent,p=void 0===h?function(){return null}:h,d=e.navigator,v=e.initialScrollY,m=void 0===v?0:v,_=e.transformSearchClient,y=void 0===_?or:_,g=e.disableUserPersonalization,b=void 0!==g&&g,w=e.initialQuery,O=void 0===w?"":w,E=e.translations,S=void 0===E?{}:E,x=e.getMissingResultsUrl,k=(S.footer,S.searchBox),C=et(S,Mh),R=Le.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),P=We(R,2),j=P[0],A=P[1],T=t,I=Le.useRef(null),L=Le.useRef(null),N=Le.useRef(null),D=Le.useRef(null),M=Le.useRef(null),U=Le.useRef(10),F=Le.useRef("undefined"!=typeof window?window.getSelection().toString().slice(0,64):"").current,H=Le.useRef(O||F).current,q=function(e,t){return Le.useMemo((function(){var n,r=new Rh(e),o={search:(n=br(Er.mark((function e(t){var n,o,i,a;return Er.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=We(t,1),o=n[0],e.next=3,r.multiSearch.perform({searches:[o]});case 3:return i=e.sent,a=new Lh(i.results[0],{params:Dh(Dh({},o.params),{},{highlightPreTag:"<mark>",highlightPostTag:"</mark>"})},{geoLocationField:""}),e.abrupt("return",{results:[a.adapt()]});case 6:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})};return t(o)}),[t,e])}(n,y),B=Le.useRef(yr({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(T),limit:10})).current,z=Le.useRef(yr({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(T),limit:4})).current,Z=Le.useCallback((function(e){if(!b){var t="content"===e.type?e.__docsearch_parent:e;t&&-1===B.getAll().findIndex((function(e){return e.objectID===t.objectID}))&&z.add(t)}}),[B,z,b]),V=Le.useMemo((function(){return Pn({id:"docsearch",defaultActiveItemId:0,placeholder:i,openOnFocus:!0,initialState:{query:H,context:{searchSuggestions:[]}},navigator:d,onStateChange:function(e){A(e.state)},getSources:function(e){var n=e.query,o=e.state,i=e.setContext,a=e.setStatus;return n?q.search([Fh({collection:t,q:n,query_by:"hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content",include_fields:"hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content,anchor,url,type,id",highlight_full_fields:"hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content",group_by:"url",group_limit:3,sort_by:"item_priority:desc",snippet_threshold:8,highlight_affix_num_tokens:4},r)]).catch((function(e){throw"RetryError"===e.name&&a("error"),e})).then((function(e){var t=e.results[0],n=t.hits,r=t.nbHits,a=rr(n,(function(e){return ur(e)}));return o.context.searchSuggestions.length<Object.keys(a).length&&i({searchSuggestions:Object.keys(a)}),i({nbHits:r}),Object.values(a).map((function(e,t){return{sourceId:"hits".concat(t),onSelect:function(e){var t=e.item,n=e.event;Z(t),n.shiftKey||n.ctrlKey||n.metaKey||s()},getItemUrl:function(e){return e.item.url},getItems:function(){return Object.values(rr(e,(function(e){return e["hierarchy.lvl1"]}))).map(c).map((function(e){return e.map((function(t){return Fh(Fh({},t),{},{__docsearch_parent:"lvl1"!==t.type&&e.find((function(e){return"lvl1"===e.type&&e["hierarchy.lvl1"]===t["hierarchy.lvl1"]}))})}))})).flat()}}}))})):b?[]:[{sourceId:"recentSearches",onSelect:function(e){var t=e.item,n=e.event;Z(t),n.shiftKey||n.ctrlKey||n.metaKey||s()},getItemUrl:function(e){return e.item.url},getItems:function(){return z.getAll()}},{sourceId:"favoriteSearches",onSelect:function(e){var t=e.item,n=e.event;Z(t),n.shiftKey||n.ctrlKey||n.metaKey||s()},getItemUrl:function(e){return e.item.url},getItems:function(){return B.getAll()}}]}})}),[t,r,q,s,z,B,Z,H,i,d,c,b]),W=V.getEnvironmentProps,K=V.getRootProps,Y=V.refresh;return function(e){var t=e.getEnvironmentProps,n=e.panelElement,r=e.formElement,o=e.inputElement;Le.useEffect((function(){if(n&&r&&o){var e=t({panelElement:n,formElement:r,inputElement:o}),i=e.onTouchStart,a=e.onTouchMove;return window.addEventListener("touchstart",i),window.addEventListener("touchmove",a),function(){window.removeEventListener("touchstart",i),window.removeEventListener("touchmove",a)}}}),[t,n,r,o])}({getEnvironmentProps:W,panelElement:D.current,formElement:N.current,inputElement:M.current}),function(e){var t=e.container;Le.useEffect((function(){if(t){var e=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),n=e[0],r=e[e.length-1];return t.addEventListener("keydown",o),function(){t.removeEventListener("keydown",o)}}function o(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus()))}}),[t])}({container:I.current}),Le.useEffect((function(){return document.body.classList.add("DocSearch--active"),function(){var e,t;document.body.classList.remove("DocSearch--active"),null===(e=(t=window).scrollTo)||void 0===e||e.call(t,0,m)}}),[]),Le.useEffect((function(){window.matchMedia("(max-width: 768px)").matches&&(U.current=5)}),[]),Le.useEffect((function(){D.current&&(D.current.scrollTop=0)}),[j.query]),Le.useEffect((function(){H.length>0&&(Y(),M.current&&M.current.focus())}),[H,Y]),Le.useEffect((function(){function e(){if(L.current){var e=.01*window.innerHeight;L.current.style.setProperty("--docsearch-vh","".concat(e,"px"))}}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Le.createElement("div",Fe({ref:I},K({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container","stalled"===j.status&&"DocSearch-Container--Stalled","error"===j.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(e){e.target===e.currentTarget&&s()}}),Le.createElement("div",{className:"DocSearch-Modal",ref:L},Le.createElement("header",{className:"DocSearch-SearchBar",ref:N},Le.createElement(vr,Fe({},V,{state:j,autoFocus:0===H.length,inputRef:M,isFromSelection:Boolean(H)&&H===F,translations:k,onClose:s}))),Le.createElement("div",{className:"DocSearch-Dropdown nc-scrollbar-md",ref:D},Le.createElement(pr,Fe({},V,{indexName:T,state:j,hitComponent:f,resultsFooterComponent:p,disableUserPersonalization:b,recentSearches:z,favoriteSearches:B,inputRef:M,translations:C,getMissingResultsUrl:x,onItemClick:function(e){Z(e),s()}}))),Le.createElement("footer",{className:"DocSearch-Footer"},Le.createElement(An,null))))}function qh(e){var t,n=Le.useState(!1),r=We(n,2),o=r[0],i=r[1],a=Le.useCallback((function(){var e;null!==(e=window)&&void 0!==e&&e.doc_enabled&&i(!0)}),[i]),s=Le.useCallback((function(){i(!1)}),[i]);return J((function(){var e=function(e){var t,n,r;o&&"Escape"===e.key?s():"k"===(null===(t=e.key)||void 0===t?void 0:t.toLocaleLowerCase())&&(e.metaKey||e.ctrlKey)&&o||"l"===(null===(n=e.key)||void 0===n?void 0:n.toLocaleLowerCase())&&(e.metaKey||e.ctrlKey)&&o?(e.preventDefault(),s()):"j"!==(null===(r=e.key)||void 0===r?void 0:r.toLowerCase())||!e.metaKey&&!e.ctrlKey||o||(e.preventDefault(),a())};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[o,s,a]),Le.createElement(Le.Fragment,null,o&&ge(Le.createElement(Hh,Fe({},e,{initialScrollY:window.scrollY,placeholder:"Search through our docs",initialQuery:e.initialQuery,translations:null==e||null===(t=e.translations)||void 0===t?void 0:t.modal,onClose:s})),document.body))}return function(e){Ee(Le.createElement(qh,e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return"string"==typeof e?t.document.querySelector(e):e}(e.container,e.environment))}}));