1import{j as Ae,_ as ne,a as q,i as _n,k as Yt,f as He,r as na,h as ge,g as wn,c as Rn,e as T,l as ce,b as aa,d as ia}from"./index.BdAgIBCY.js";import{a as bn,c as hr}from"./_commonjsHelpers.DsqdWQfm.js";import{r as oa}from"./___vite-browser-external_commonjs-proxy.DX5pRjDX.js";var sa="ais",Ge=function(r){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.descendantName,a=n.modifierName,i=e?"-".concat(e):"",l=a?"--".concat(a):"";return"".concat(sa,"-").concat(r).concat(i).concat(l)}},le={highlightPreTag:"<mark>",highlightPostTag:"</mark>"},ua=Promise.resolve();function $e(t){var r=null,n=!1,e=function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];r===null&&(r=ua.then(function(){if(r=null,n){n=!1;return}t.apply(void 0,Ae._(l))}))};return e.wait=function(){if(r===null)throw new Error("The deferred function should be called before calling `wait()`");return r},e.cancel=function(){r!==null&&(n=!0)},e}function Ke(t,r){var n=Array.isArray(r)?r:r.split(".");return n.reduce(function(e,a){return e&&e[a]},t)}var ca=Ge("Highlight");function An(t){var r=t.attribute,n=t.highlightedTagName,e=n===void 0?"mark":n,a=t.hit,i=t.cssClasses,l=i===void 0?{}:i,s=Ke(a._highlightResult,r),u=s||{},h=u.value,m=h===void 0?"":h,S=ca({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):"");return m.replace(new RegExp(le.highlightPreTag,"g"),"<".concat(e,' class="').concat(S,'">')).replace(new RegExp(le.highlightPostTag,"g"),"</".concat(e,">"))}function En(t){var r=le.highlightPreTag,n=le.highlightPostTag;return t.map(function(e){return e.isHighlighted?r+e.value+n:e.value}).join("")}function xn(t){var r=le.highlightPostTag,n=le.highlightPreTag,e=t.split(n),a=e.shift(),i=a?[{value:a,isHighlighted:!1}]:[];return e.forEach(function(l){var s=l.split(r);i.push({value:s[0],isHighlighted:!0}),s[1]!==""&&i.push({value:s[1],isHighlighted:!1})}),i}var la={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pn=/&(amp|quot|lt|gt|#39);/g,fa=RegExp(Pn.source);function da(t){return t&&fa.test(t)?t.replace(Pn,function(r){return la[r]}):t}var ha=new RegExp(/\w/i);function pa(t,r){var n,e,a=t[r],i=((n=t[r+1])===null||n===void 0?void 0:n.isHighlighted)||!0,l=((e=t[r-1])===null||e===void 0?void 0:e.isHighlighted)||!0;return!ha.test(da(a.value))&&l===i?l:a.isHighlighted}function In(t){return t.some(function(r){return r.isHighlighted})?t.map(function(r,n){return ne._(q._({},r),{isHighlighted:!pa(t,n)})}):t.map(function(r){return ne._(q._({},r),{isHighlighted:!1})})}var va=Ge("ReverseHighlight");function On(t){var r=t.attribute,n=t.highlightedTagName,e=n===void 0?"mark":n,a=t.hit,i=t.cssClasses,l=i===void 0?{}:i,s=Ke(a._highlightResult,r),u=s||{},h=u.value,m=h===void 0?"":h,S=va({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):""),p=En(In(xn(m)));return p.replace(new RegExp(le.highlightPreTag,"g"),"<".concat(e,' class="').concat(S,'">')).replace(new RegExp(le.highlightPostTag,"g"),"</".concat(e,">"))}var ga=Ge("Snippet");function Tn(t){var r=t.attribute,n=t.highlightedTagName,e=n===void 0?"mark":n,a=t.hit,i=t.cssClasses,l=i===void 0?{}:i,s=Ke(a._snippetResult,r),u=s||{},h=u.value,m=h===void 0?"":h,S=ga({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):"");return m.replace(new RegExp(le.highlightPreTag,"g"),"<".concat(e,' class="').concat(S,'">')).replace(new RegExp(le.highlightPostTag,"g"),"</".concat(e,">"))}var ya=Ge("ReverseSnippet");function Cn(t){var r=t.attribute,n=t.highlightedTagName,e=n===void 0?"mark":n,a=t.hit,i=t.cssClasses,l=i===void 0?{}:i,s=Ke(a._snippetResult,r),u=s||{},h=u.value,m=h===void 0?"":h,S=ya({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):""),p=En(In(xn(m)));return p.replace(new RegExp(le.highlightPreTag,"g"),"<".concat(e,' class="').concat(S,'">')).replace(new RegExp(le.highlightPostTag,"g"),"</".concat(e,">"))}function ma(t){return btoa(encodeURIComponent(JSON.stringify(t)))}function Sa(t){var r=t.method,n=t.payload;if((typeof n>"u"?"undefined":_n._(n))!=="object")throw new Error("The insights helper expects the payload to be an object.");var e;try{e=ma(n)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(e,'"')}function $n(t,r){return Sa({method:t,payload:r})}var _a="_ALGOLIA";function wa(t){if(!((typeof document>"u"?"undefined":_n._(document))!=="object"||typeof document.cookie!="string"))for(var r="".concat(t,"="),n=document.cookie.split(";"),e=0;e<n.length;e++){for(var a=n[e];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(r)===0)return a.substring(r.length,a.length)}}function Un(){return wa(_a)}function Ra(){return Un()}function pr(t){return t!==Object(t)}function Zt(t,r){if(t===r)return!0;
1if(pr(t)||pr(r)||typeof t=="function"||typeof r=="function")return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,e=!1,a=void 0;try{for(var i=Object.keys(t)[Symbol.iterator](),l;!(n=(l=i.next()).done);n=!0){var s=l.value;if(!(s in r)||!Zt(t[s],r[s]))return!1}}catch(u){e=!0,a=u}finally{try{!n&&i.return!=null&&i.return()}finally{if(e)throw a}}return!0}function ye(t){var r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}}).fallback;return typeof window>"u"?r():t({window})}function vr(t){var r=t||{};r.page;var n=He._(r,["page"]);return n}function ba(){var t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).key,r=["ais.infiniteHits",t].filter(Boolean).join(":");return{read:function(e){var a=e.state,i=ye(function(s){var u=s.window;return u.sessionStorage});if(!i)return null;try{var l=JSON.parse(i.getItem(r));return l&&Zt(l.state,vr(a))?l.hits:null}catch(s){if(Yt._(s,SyntaxError))try{i.removeItem(r)}catch{}return null}},write:function(e){var a=e.state,i=e.hits,l=ye(function(s){var u=s.window;return u.sessionStorage});if(l)try{l.setItem(r,JSON.stringify({state:vr(a),hits:i}))}catch{}}}}var Aa=na();const Ea=bn(Aa);function Se(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n]}function gr(t,r){for(var n,e=0;e<t.length;e++)if(n=t[e],r(n,e,t))return n}function yr(t){if(t.appId&&t.apiKey)return[t.appId,t.apiKey];if(t.transporter){var r=t.transporter,n=r.headers||r.baseHeaders,e=r.queryParameters||r.baseQueryParameters,a="x-algolia-application-id",i="x-algolia-api-key",l=n[a]||e[a],s=n[i]||e[i];return[l,s]}else return[t.applicationID,t.apiKey]}function xa(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t==="x"?r:r&3|8;return n.toString(16)})}var Nn="2.17.2",Pa="https://cdn.jsdelivr.net/npm/search-insights@".concat(Nn,"/dist/search-insights.min.js");function mr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.insightsClient,n=t.insightsInitParams,e=t.onEvent,a=t.$$internal,i=a===void 0?!1:a,l=t.$$automatic,s=l===void 0?!1:l,u=r;!r&&r!==null&&ye(function(m){var S=m.window,p=S.AlgoliaAnalyticsObject||"aa";typeof p=="string"&&(u=S[p]),u||(S.AlgoliaAnalyticsObject=p,S[p]||(S[p]=function(){for(var d=arguments.length,_=new Array(d),A=0;A<d;A++)_[A]=arguments[A];S[p].queue||(S[p].queue=[]),S[p].queue.push(_)},S[p].version=Nn,S[p].shouldAddScript=!0),u=S[p])});var h=u||Se;return function(m){var S=m.instantSearchInstance,p,d=S.middleware.filter(function(x){return x.instance.$$type==="ais.insights"&&x.instance.$$internal}).map(function(x){return x.creator});(p=S).unuse.apply(p,Ae._(d));var _=ge._(yr(S.client),2),A=_[0],g=_[1],c=void 0,o=void 0,w=void 0,y=h.queue;if(Array.isArray(y)){var R;R=ge._(["setUserToken","init"].map(function(x){var P=ge._(gr(y.slice().reverse(),function($){var I=ge._($,1),N=I[0];return N===x})||[],2),O=P[1];return O}),2),o=R[0],c=R[1]}h("getUserToken",null,function(x,P){w=_r(P)}),(n||!Sr(h))&&h("init",q._({appId:A,apiKey:g,partial:!0},n));var b,E;return{$$type:"ais.insights",$$internal:i,$$automatic:s,onStateChange:function(){},subscribe:function(){if(h.shouldAddScript){var P="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var O=document.createElement("script");O.async=!0,O.src=Pa,O.onerror=function(){S.emit("error",new Error(P))},document.body.appendChild(O),h.shouldAddScript=!1}catch{h.shouldAddScript=!1,S.emit("error",new Error(P))}}},started:function(){h("addAlgoliaAgent","insights-middleware"),E=S.mainHelper;var P=h.queue;if(Array.isArray(P)){var O;O=ge._(["setUserToken","init"].map(function(H){var G=ge._(gr(P.slice().reverse(),function(z){var ee=ge._(z,1),V=ee[0];return V===H})||[],2),Y=G[1];return Y}),2),o=O[0],c=O[1]}b=Ia(S),s||E.overrideStateWithoutTriggeringChangeEvent(ne._(q._({},E.state),{clickAnalytics:!0})),i||S.scheduleSearch();var $=function(G){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,z=_r(G);if(!z)return;var ee=E.state.userToken;function V(){E.overrideStateWithoutTriggeringChangeEvent(ne._(q._({},E.state),{userToken:z})),ee&&ee!==G&&S.scheduleSearch()}Y?V():setTimeout(V,0)};function I(H){$(H,!0),h("setUserToken",H)}var N=void 0,M=Un();if(M)N=M;else{var X="anonymous-".concat(xa());N=X}var W,L=b.userToken;n?.userToken&&(W=n.userToken),W?I(W):L?I(L):w?I(w):o?I(o):N&&(I(N),(n?.useCookie||c?.useCookie)&&Oa(N,n?.cookieDuration||c?.cookieDuration)),h("onUserTokenChange",function(H){return $(H,!0)},{immediate:!0});var C=h;Sr(h)&&(C=function(G,Y){var z=ge._(yr(S.client),2),ee=z[0],V=z[1],ve={headers:{"X-Algolia-Application-Id":ee,"X-Algolia-API-Key":V}};return h(G,Y,ve)});var Q=new Set,ae;S.mainHelper.derivedHelpers[0].on("result",function(H){var G=H.results;G&&(!G.queryID||G.queryID!==ae)&&(ae=G.queryID,Q.clear())}),S.sendEventToInsights=function(H){if(e)e(H,C);else if(H.insightsMethod){if(H.insightsMethod==="viewedObjectIDs"){var G=H.payload,Y=G.objectIDs.filter(function(z){return!Q.has(z)});if(Y.length===0)return;Y.forEach(function(z){return Q.add(z)}),G.objectIDs=Y}H.payload.algoliaSource=["instantsearch"],s&&H.payload.algoliaSource.pu
1sh("instantsearch-automatic"),H.eventModifier==="internal"&&H.payload.algoliaSource.push("instantsearch-internal"),C(H.insightsMethod,H.payload)}}},unsubscribe:function(){h("onUserTokenChange",void 0),S.sendEventToInsights=Se,E&&b&&(E.overrideStateWithoutTriggeringChangeEvent(q._({},E.state,b)),S.scheduleSearch())}}}}function Ia(t){var r,n,e=((n=t._initialResults)===null||n===void 0||(r=n[t.indexName])===null||r===void 0?void 0:r.state)||{},a=t.mainHelper.state;return{userToken:e.userToken||a.userToken,clickAnalytics:e.clickAnalytics||a.clickAnalytics}}function Oa(t,r){var n=2592e6,e=new Date;e.setTime(e.getTime()+(r||n*6));var a="expires=".concat(e.toUTCString());document.cookie="_ALGOLIA=".concat(t,";").concat(a,";path=/")}function Sr(t){var r=ge._((t.version||"").split(".").map(Number),2),n=r[0],e=r[1],a=n>=3,i=n===2&&e>=6,l=n===1&&e>=10;return a||i||l}function _r(t){if(t)return typeof t=="number"?t.toString():t}function Ta(t){var r=t;return r.transporter&&r.transporter.userAgent?r.transporter.userAgent.value:r._ua}function Le(t,r,n){var e=r.getHelper();return{uiState:n,helper:e,parent:r,instantSearchInstance:t,state:e.state,renderState:t.renderState,templatesConfig:t.templatesConfig,createURL:r.createURL,scopedResults:[],searchMetadata:{isSearchStalled:t.status==="stalled"},status:t.status,error:t.error}}function wr(t,r,n){var e=r.getResultsForWidget(n),a=r.getHelper();return{helper:a,parent:r,instantSearchInstance:t,results:e,scopedResults:r.getScopedResults(),state:e&&"_state"in e?e._state:a.state,renderState:t.renderState,templatesConfig:t.templatesConfig,createURL:r.createURL,searchMetadata:{isSearchStalled:t.status==="stalled"},status:t.status,error:t.error}}function Fn(t,r,n){var e=Le(r,r.mainIndex,r._initialUiState);t.forEach(function(a){var i={};if(a.getWidgetRenderState){var l=a.getWidgetRenderState(e);l&&l.widgetParams&&(i=l.widgetParams)}var s=Object.keys(i).filter(function(u){return i[u]!==void 0});n.widgets.push({type:a.$$type,widgetType:a.$$widgetType,params:s}),a.$$type==="ais.index"&&Fn(a.getWidgets(),r,n)})}function Ca(){return ye(function(t){var r=t.window,n,e;return((e=r.navigator)===null||e===void 0||(n=e.userAgent)===null||n===void 0?void 0:n.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function $a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.$$internal,n=r===void 0?!1:r;return function(e){var a=e.instantSearchInstance,i={widgets:[]},l=document.createElement("meta"),s=document.querySelector("head");return l.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:n,onStateChange:function(){},subscribe:function(){setTimeout(function(){i.ua=Ta(a.client),Fn(a.mainIndex.getWidgets(),a,i),a.middleware.forEach(function(h){return i.widgets.push({middleware:!0,type:h.instance.$$type,internal:h.instance.$$internal})}),l.content=JSON.stringify(i),s.appendChild(l)},0)},started:function(){},unsubscribe:function(){l.remove()}}}}var at,Rr;function Ue(){return Rr||(Rr=1,at=TypeError),at}var it,br;function ze(){if(br)return it;br=1;var t=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&r&&typeof r.get=="function"?r.get:null,e=t&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&i&&typeof i.get=="function"?i.get:null,s=a&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,h=u?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,S=m?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,d=p?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,A=Object.prototype.toString,g=Function.prototype.toString,c=String.prototype.match,o=String.prototype.slice,w=String.prototype.replace,y=String.prototype.toUpperCase,R=String.prototype.toLowerCase,b=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,$=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,M=typeof Symbol=="function"&&typeof Symbol.iterator=="object",X=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,L=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function C(f,v){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||b.call(/e/,v))return v;var D=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var j=f<0?-O(-f):O(f);if(j!==f){var B=String(j),U=o.call(v,B.length+1);return w.call(B,D,"$&_")+"."+w.call(w.call(U,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(v,D,"$&_")}var Q=oa,ae=Q.custom,H=te(ae)?ae:null,G={__proto__:null,double:'"',single:"'"},Y={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};it=function f(v,D,j,B){var U=D||{};if(ie(U,"quoteStyle")&&!ie(G,U.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ie(U,"maxStringLength")&&(typeof U.maxStringLength=="number"?U.maxStringLength<0&&U.maxStringLength!==1/0:U.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Re=ie(U,"customInspect")?U.customInspect:!0;if(typeof Re!="boolean"&&Re!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 32,999 bytes, lines 1-4
1if(ie(U,"indent")&&U.indent!==null&&U.indent!==" "&&!(parseInt(U.indent,10)===U.indent&&U.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ie(U,"numericSeparator")&&typeof U.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ee=U.numericSeparator;if(typeof v>"u")return"undefined";if(v===null)return"null";if(typeof v=="boolean")return v?"true":"false";if(typeof v=="string")return nr(v,U);if(typeof v=="number"){if(v===0)return 1/0/v>0?"0":"-0";var oe=String(v);return Ee?C(v,oe):oe}if(typeof v=="bigint"){var be=String(v)+"n";return Ee?C(v,be):be}var Xe=typeof U.depth>"u"?5:U.depth;if(typeof j>"u"&&(j=0),j>=Xe&&Xe>0&&typeof v=="object")return ve(v)?"[Array]":"[Object]";var Te=ea(U,j);if(typeof B>"u")B=[];else if(we(B,v)>=0)return"[Circular]";function de(Ce,Be,ra){if(Be&&(B=P.call(B),B.push(Be)),ra){var dr={depth:U.depth};return ie(U,"quoteStyle")&&(dr.quoteStyle=U.quoteStyle),f(Ce,dr,j+1,B)}return f(Ce,U,j+1,B)}if(typeof v=="function"&&!Z(v)){var ir=xe(v),or=ke(v,de);return"[Function"+(ir?": "+ir:" (anonymous)")+"]"+(or.length>0?" { "+x.call(or,", ")+" }":"")}if(te(v)){var sr=M?w.call(String(v),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(v);return typeof v=="object"&&!M?Ne(sr):sr}if(Xn(v)){for(var Fe="<"+R.call(String(v.nodeName)),Ye=v.attributes||[],je=0;je<Ye.length;je++)Fe+=" "+Ye[je].name+"="+z(ee(Ye[je].value),"double",U);return Fe+=">",v.childNodes&&v.childNodes.length&&(Fe+="..."),Fe+="</"+R.call(String(v.nodeName))+">",Fe}if(ve(v)){if(v.length===0)return"[]";var Ze=ke(v,de);return Te&&!Zn(Ze)?"["+Je(Ze,Te)+"]":"[ "+x.call(Ze,", ")+" ]"}if(F(v)){var et=ke(v,de);return!("cause"in Error.prototype)&&"cause"in v&&!W.call(v,"cause")?"{ ["+String(v)+"] "+x.call(E.call("[cause]: "+de(v.cause),et),", ")+" }":et.length===0?"["+String(v)+"]":"{ ["+String(v)+"] "+x.call(et,", ")+" }"}if(typeof v=="object"&&Re){if(H&&typeof v[H]=="function"&&Q)return Q(v,{depth:Xe-j});if(Re!=="symbol"&&typeof v.inspect=="function")return v.inspect()}if(fe(v)){var ur=[];return e&&e.call(v,function(Ce,Be){ur.push(de(Be,v,!0)+" => "+de(Ce,v))}),ar("Map",n.call(v),ur,Te)}if(Oe(v)){var cr=[];return s&&s.call(v,function(Ce){cr.push(de(Ce,v))}),ar("Set",l.call(v),cr,Te)}if(Pe(v))return Ve("WeakMap");if(Jn(v))return Ve("WeakSet");if(Ie(v))return Ve("WeakRef");if(k(v))return Ne(de(Number(v)));if(se(v))return Ne(de($.call(v)));if(J(v))return Ne(_.call(v));if(K(v))return Ne(de(String(v)));if(typeof window<"u"&&v===window)return"{ [object Window] }";if(typeof globalThis<"u"&&v===globalThis||typeof hr<"u"&&v===hr)return"{ [object globalThis] }";if(!_e(v)&&!Z(v)){var tt=ke(v,de),lr=L?L(v)===Object.prototype:v instanceof Object||v.constructor===Object,rt=v instanceof Object?"":"null prototype",fr=!lr&&X&&Object(v)===v&&X in v?o.call(ue(v),8,-1):rt?"Object":"",ta=lr||typeof v.constructor!="function"?"":v.constructor.name?v.constructor.name+" ":"",nt=ta+(fr||rt?"["+x.call(E.call([],fr||[],rt||[]),": ")+"] ":"");return tt.length===0?nt+"{}":Te?nt+"{"+Je(tt,Te)+"}":nt+"{ "+x.call(tt,", ")+" }"}return String(v)};function z(f,v,D){var j=D.quoteStyle||v,B=G[j];return B+f+B}function ee(f){return w.call(String(f),/"/g,""")}function V(f){return!X||!(typeof f=="object"&&(X in f||typeof f[X]<"u"))}function ve(f){return ue(f)==="[object Array]"&&V(f)}function _e(f){return ue(f)==="[object Date]"&&V(f)}function Z(f){return ue(f)==="[object RegExp]"&&V(f)}function F(f){return ue(f)==="[object Error]"&&V(f)}function K(f){return ue(f)==="[object String]"&&V(f)}function k(f){return ue(f)==="[object Number]"&&V(f)}function J(f){return ue(f)==="[object Boolean]"&&V(f)}function te(f){if(M)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!N)return!1;try{return N.call(f),!0}catch{}return!1}function se(f){if(!f||typeof f!="object"||!$)return!1;try{return $.call(f),!0}catch{}return!1}var re=Object.prototype.hasOwnProperty||function(f){return f in this};function ie(f,v){return re.call(f,v)}function ue(f){return A.call(f)}function xe(f){if(f.name)return f.name;var v=c.call(g.call(f),/^function\s*([\w$]+)/);return v?v[1]:null}function we(f,v){if(f.indexOf)return f.indexOf(v);for(var D=0,j=f.length;D<j;D++)if(f[D]===v)return D;return-1}function fe(f){if(!n||!f||typeof f!="object")return!1;try{n.call(f);try{l.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function Pe(f){if(!h||!f||typeof f!="object")return!1;try{h.call(f,h);try{S.call(f,S)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Ie(f){if(!d||!f||typeof f!="object")return!1;try{return d.call(f),!0}catch{}return!1}function Oe(f){if(!l||!f||typeof f!="object")return!1;try{l.call(f);try{n.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Jn(f){if(!S||!f||typeof f!="object")return!1;try{S.call(f,S);try{h.call(f,h)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function Xn(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function nr(f,v){if(f.length>v.maxStringLength){var D=f.length-v.maxStringLength,j="... "+D+" more character"+(D>1?"s":"");return nr(o.call(f,0,v.maxStringLength),v)+j}var B=Y[v.quoteStyle||"single"];B.lastIndex=0;var U=w.call(w.call(f,B,"\\$1"),/[\x00-\x1f]/g,Yn);return z(U,"single",v)}function Yn(f){var v=f.charCodeAt(0),D={8:"b",9:"t",10:"n",12:"f",13:"r"}[v];return D?"\\"+D:"\\x"+(v<16?"0":"")+y.call(v.toString(16))}function Ne(f){return"Object("+f+")"}function Ve(f){return f+" { ? }"}function ar(f,v,D,j){var B=j?Je(D,j):x.call(D,", ");return f+" ("+v+") {"+B+"}"}function Zn(f){for(var v=0;v<f.length;v++)if(we(f[v],` 2`)>=0)return!1;return!0}function ea(f,v){var D;if(f.indent===" ")D=" ";else if(typeof f.indent=="number"&&f.indent>0)D=x.call(Array(f.indent+1)," ");else return null;return{base:D,prev:x.call(Array(v+1),D)}}function Je(f,v){if(f.length===0)return"";var D=` 3`+v.prev+v.base;return D+x.call(f,","+D)+` 4`+v.prev}function ke(f,v){var D=ve(f),j=[];if(D){j.length=f.length;for(var B=0;B<f.length;B++)j[B]=ie(f,B)?v(f[B],f):""}var U=typeof I=="function"?I(f):[],Re;if(M){Re={};for(var Ee=0;Ee<U.length;Ee++)Re["$"+U[Ee]]=U[Ee]}for(var oe in f)ie(f,oe)&&(D&&String(Number(oe))===oe&&oe<f.length||M&&Re["$"+oe]instanceof Symbol||(b.call(/[^\w$]/,oe)?j.push(v(oe,f)+": "+v(f[oe],f)):j.push(oe+": "+v(f[oe],f))));if(typeof I=="function")for(var be=0;be<U.length;be++)W.call(f,U[be])&&j.push("["+v(U[be])+"]: "+v(f[U[be]],f));return j}return it}var ot,Ar;function Ua(){if(Ar)return ot;Ar=1;var t=ze(),r=Ue(),n=function(s,u,h){for(var m=s,S;(S=m.next)!=null;m=S)if(S.key===u)return m.next=S.next,h||(S.next=s.next,s.next=S),S},e=function(s,u){if(s){var h=n(s,u);return h&&h.value}},a=function(s,u,h){var m=n(s,u);m?m.value=h:s.next={key:u,next:s.next,value:h}},i=function(s,u){return s?!!n(s,u):!1},l=function(s,u){if(s)return n(s,u,!0)};return ot=function(){var u,h={assert:function(m){if(!h.has(m))throw new r("Side channel does not contain "+t(m))},delete:function(m){var S=u&&u.next,p=l(u,m);return p&&S&&S===p&&(u=void 0),!!p},get:function(m){return e(u,m)},has:function(m){return i(u,m)},set:function(m,S){u||(u={next:void 0}),a(u,m,S)}};return h},ot}var st,Er;function Wn(){return Er||(Er=1,st=Object),st}var ut,xr;function Na(){return xr||(xr=1,ut=Error),ut}var ct,Pr;function Fa(){return Pr||(Pr=1,ct=EvalError),ct}var lt,Ir;function Wa(){return Ir||(Ir=1,lt=RangeError),lt}var ft,Or;function Da(){return Or||(Or=1,ft=ReferenceError),ft}var dt,Tr;function qa(){return Tr||(Tr=1,dt=SyntaxError),dt}var ht,Cr;function La(){return Cr||(Cr=1,ht=URIError),ht}var pt,$r;function Ha(){return $r||($r=1,pt=Math.abs),pt}var vt,Ur;function Ma(){return Ur||(Ur=1,vt=Math.floor),vt}var gt,Nr;function ka(){return Nr||(Nr=1,gt=Math.max),gt}var yt,Fr;function ja(){return Fr||(Fr=1,yt=Math.min),yt}var mt,Wr;function Ba(){return Wr||(Wr=1,mt=Math.pow),mt}var St,Dr;function Ga(){return Dr||(Dr=1,St=Math.round),St}var _t,qr;function Ka(){return qr||(qr=1,_t=Number.isNaN||function(r){return r!==r}),_t}var wt,Lr;function za(){if(Lr)return wt;Lr=1;var t=Ka();return wt=function(n){return t(n)||n===0?n:n<0?-1:1},wt}var Rt,Hr;function Qa(){return Hr||(Hr=1,Rt=Object.getOwnPropertyDescriptor),Rt}var bt,Mr;function Dn(){if(Mr)return bt;Mr=1;var t=Qa();if(t)try{t([],"length")}catch{t=null}return bt=t,bt}var At,kr;function Va(){if(kr)return At;kr=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return At=t,At}var Et,jr;function Ja(){return jr||(jr=1,Et=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),e=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(e)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}),Et}var xt,Br;function Xa(){if(Br)return xt;Br=1;var t=typeof Symbol<"u"&&Symbol,r=Ja();return xt=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},xt}var Pt,Gr;function qn(){return Gr||(Gr=1,Pt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Pt}var It,Kr;function Ln(){if(Kr)return It;Kr=1;var t=Wn();return It=t.getPrototypeOf||null,It}var Ot,zr;function Ya(){if(zr)return Ot;zr=1;var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,e="[object Function]",a=function(u,h){for(var m=[],S=0;S<u.length;S+=1)m[S]=u[S];for(var p=0;p<h.length;p+=1)m[p+u.length]=h[p];return m},i=function(u,h){for(var m=[],S=h,p=0;S<u.length;S+=1,p+=1)m[p]=u[S];return m},l=function(s,u){for(var h="",m=0;m<s.length;m+=1)h+=s[m],m+1<s.length&&(h+=u);return h};return Ot=function(u){var h=this;if(typeof h!="function"||r.apply(h)!==e)throw new TypeError(t+h);for(var m=i(arguments,1),S,p=function(){if(this instanceof S){var c=h.apply(this,a(m,arguments));return Object(c)===c?c:this}return h.apply(u,a(m,arguments))},d=n(0,h.length-m.length),_=[],A=0;A<d;A++)_[A]="$"+A;if(S=Function("binder","return function ("+l(_,",")+"){ return binder.apply(this,arguments); }")(p),h.prototype){var g=function(){};g.prototype=h.prototype,S.prototype=new g,g.prototype=null}return S},Ot}var Tt,Qr;function Qe(){if(Qr)return Tt;Qr=1;var t=Ya();return Tt=Function.prototype.bind||t,Tt}var Ct,Vr;function er(){return Vr||(Vr=1,Ct=Function.prototype.call),Ct}var $t,Jr;function Hn(){return Jr||(Jr=1,$t=Function.prototype.apply),$t}var Ut,Xr;function Za(){return Xr||(Xr=1,Ut=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ut}var Nt,Yr;function ei(){if(Yr)return Nt;Yr=1;var t=Qe(),r=Hn(),n=er(),e=Za();return Nt=e||t.call(n,r),Nt}var Ft,Zr;function Mn(){if(Zr)return Ft;Zr=1;var t=Qe(),r=Ue(),n=er(),e=ei();return Ft=function(i){if(i.length<1||typeof i[0]!="function")throw new r("a function is required");return e(t,n,i)},Ft}var Wt,en;function ti(){if(en)return Wt;en=1;var t=Mn(),r=Dn(),n;try{n=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var e=!!n&&r&&r(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return Wt=e&&typeof e.get=="function"?t([e.get]):typeof i=="function"?function(s){return i(s==null?s:a(s))}:!1,Wt}var Dt,tn;function ri(){if(tn)return Dt;tn=1;var t=qn(),r=Ln(),n=ti();return Dt=t?function(a){return t(a)}:r?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return r(a)}:n?function(a){return n(a)}:null,Dt}var qt,rn;function ni(){if(rn)return qt;rn=1;var t=Function.prototype.call,r=Object.prototype.hasOwnProperty,n=Qe();return qt=n.call(t,r),qt}var Lt,nn;function tr(){if(nn)return Lt;nn=1;var t,r=Wn(),n=Na(),e=Fa(),a=Wa(),i=Da(),l=qa(),s=Ue(),u=La(),h=Ha(),m=Ma(),S=ka(),p=ja(),d=Ba(),_=Ga(),A=za(),g=Function,c=function(Z){try{return g('"use strict"; return ('+Z+").constructor;")()}catch{}},o=Dn(),w=Va(),y=function(){throw new s},R=o?(function(){try{return arguments.callee,y}catch{try{return o(arguments,"callee").get}catch{return y}}})():y,b=Xa()(),E=ri(),x=Ln(),P=qn(),O=Hn(),$=er(),I={},N=typeof Uint8Array>"u"||!E?t:E(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":b&&E?E([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":e,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b&&E?E(E([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!b||!E?t:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":o,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!b||!E?t:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b&&E?E(""[Symbol.iterator]()):t,"%Symbol%":b?Symbol:t,"%SyntaxError%":l,"%ThrowTypeError%":R,"%TypedArray%":N,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":$,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":x,"%Math.abs%":h,"%Math.floor%":m,"%Math.max%":S,"%Math.min%":p,"%Math.pow%":d,"%Math.round%":_,"%Math.sign%":A,"%Reflect.getPrototypeOf%":P};if(E)try{null.error}catch(Z){var X=E(E(Z));M["%Error.prototype%"]=X}var W=function Z(F){var K;if(F==="%AsyncFunction%")K=c("async function () {}");else if(F==="%GeneratorFunction%")K=c("function* () {}");else if(F==="%AsyncGeneratorFunction%")K=c("async function* () {}");else if(F==="%AsyncGenerator%"){var k=Z("%AsyncGeneratorFunction%");k&&(K=k.prototype)}else if(F==="%AsyncIteratorPrototype%"){var J=Z("%AsyncGenerator%");J&&E&&(K=E(J.prototype))}return M[F]=K,K},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=Qe(),Q=ni(),ae=C.call($,Array.prototype.concat),H=C.call(O,Array.prototype.splice),G=C.call($,String.prototype.replace),Y=C.call($,String.prototype.slice),z=C.call($,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,ve=function(F){var K=Y(F,0,1),k=Y(F,-1);if(K==="%"&&k!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&K!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var J=[];return G(F,ee,function(te,se,re,ie){J[J.length]=re?G(ie,V,"$1"):se||te}),J},_e=function(F,K){var k=F,J;if(Q(L,k)&&(J=L[k],k="%"+J[0]+"%"),Q(M,k)){var te=M[k];if(te===I&&(te=W(k)),typeof te>"u"&&!K)throw new s("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:J,name:k,value:te}}throw new l("intrinsic "+F+" does not exist!")};return Lt=function(F,K){if(typeof F!="string"||F.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof K!="boolean")throw new s('"allowMissing" argument must be a boolean');if(z(/^%?[^%]*%?$/,F)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=ve(F),J=k.length>0?k[0]:"",te=_e("%"+J+"%",K),se=te.name,re=te.value,ie=!1,ue=te.alias;ue&&(J=ue[0],H(k,ae([0,1],ue)));for(var xe=1,we=!0;xe<k.length;xe+=1){var fe=k[xe],Pe=Y(fe,0,1),Ie=Y(fe,-1);if((Pe==='"'||Pe==="'"||Pe==="`"||Ie==='"'||Ie==="'"||Ie==="`")&&Pe!==Ie)throw new l("property names with quotes must have matching quotes");if((fe==="constructor"||!we)&&(ie=!0),J+="."+fe,se="%"+J+"%",Q(M,se))re=M[se];else if(re!=null){if(!(fe in re)){if(!K)throw new s("base intrinsic for "+F+" exists, but the property is not available.");return}if(o&&xe+1>=k.length){var Oe=o(re,fe);we=!!Oe,we&&"get"in Oe&&!("originalValue"in Oe.get)?re=Oe.get:re=re[fe]}else we=Q(re,fe),re=re[fe];we&&!ie&&(M[se]=re)}}return re},Lt}var Ht,an;function kn(){if(an)return Ht;an=1;var t=tr(),r=Mn(),n=r([t("%String.prototype.indexOf%")]);return Ht=function(a,i){var l=t(a,!!i);return typeof l=="function"&&n(a,".prototype.")>-1?r([l]):l},Ht}var Mt,on;function jn(){if(on)return Mt;on=1;var t=tr(),r=kn(),n=ze(),e=Ue(),a=t("%Map%",!0),i=r("Map.prototype.get",!0),l=r("Map.prototype.set",!0),s=r("Map.prototype.has",!0),u=r("Map.prototype.delete",!0),h=r("Map.prototype.size",!0);return Mt=!!a&&function(){var S,p={assert:function(d){if(!p.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){if(S){var _=u(S,d);return h(S)===0&&(S=void 0),_}return!1},get:function(d){if(S)return i(S,d)},has:function(d){return S?s(S,d):!1},set:function(d,_){S||(S=new a),l(S,d,_)}};return p},Mt}var kt,sn;function ai(){if(sn)return kt;sn=1;var t=tr(),r=kn(),n=ze(),e=jn(),a=Ue(),i=t("%WeakMap%",!0),l=r("WeakMap.prototype.get",!0),s=r("WeakMap.prototype.set",!0),u=r("WeakMap.prototype.has",!0),h=r("WeakMap.prototype.delete",!0);return kt=i?function(){var S,p,d={assert:function(_){if(!d.has(_))throw new a("Side channel does not contain "+n(_))},delete:function(_){if(i&&_&&(typeof _=="object"||typeof _=="function")){if(S)return h(S,_)}else if(e&&p)return p.delete(_);return!1},get:function(_){return i&&_&&(typeof _=="object"||typeof _=="function")&&S?l(S,_):p&&p.get(_)},has:function(_){return i&&_&&(typeof _=="object"||typeof _=="function")&&S?u(S,_):!!p&&p.has(_)},set:function(_,A){i&&_&&(typeof _=="object"||typeof _=="function")?(S||(S=new i),s(S,_,A)):e&&(p||(p=e()),p.set(_,A))}};return d}:e,kt}var jt,un;function ii(){if(un)return jt;un=1;var t=Ue(),r=ze(),n=Ua(),e=jn(),a=ai(),i=a||e||n;return jt=function(){var s,u={assert:function(h){if(!u.has(h))throw new t("Side channel does not contain "+r(h))},delete:function(h){return!!s&&s.delete(h)},get:function(h){return s&&s.get(h)},has:function(h){return!!s&&s.has(h)},set:function(h,m){s||(s=i()),s.set(h,m)}};return u},jt}var Bt,cn;function rr(){if(cn)return Bt;cn=1;var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Bt={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Bt}var Gt,ln;function Bn(){if(ln)return Gt;ln=1;var t=rr(),r=Object.prototype.hasOwnProperty,n=Array.isArray,e=(function(){for(var g=[],c=0;c<256;++c)g.push("%"+((c<16?"0":"")+c.toString(16)).toUpperCase());return g})(),a=function(c){for(;c.length>1;){var o=c.pop(),w=o.obj[o.prop];if(n(w)){for(var y=[],R=0;R<w.length;++R)typeof w[R]<"u"&&y.push(w[R]);o.obj[o.prop]=y}}},i=function(c,o){for(var w=o&&o.plainObjects?{__proto__:null}:{},y=0;y<c.length;++y)typeof c[y]<"u"&&(w[y]=c[y]);return w},l=function g(c,o,w){if(!o)return c;if(typeof o!="object"&&typeof o!="function"){if(n(c))c.push(o);else if(c&&typeof c=="object")(w&&(w.plainObjects||w.allowPrototypes)||!r.call(Object.prototype,o))&&(c[o]=!0);else return[c,o];return c}if(!c||typeof c!="object")return[c].concat(o);var y=c;return n(c)&&!n(o)&&(y=i(c,w)),n(c)&&n(o)?(o.forEach(function(R,b){if(r.call(c,b)){var E=c[b];E&&typeof E=="object"&&R&&typeof R=="object"?c[b]=g(E,R,w):c.push(R)}else c[b]=R}),c):Object.keys(o).reduce(function(R,b){var E=o[b];return r.call(R,b)?R[b]=g(R[b],E,w):R[b]=E,R},y)},s=function(c,o){return Object.keys(o).reduce(function(w,y){return w[y]=o[y],w},c)},u=function(g,c,o){var w=g.replace(/\+/g," ");if(o==="iso-8859-1")return w.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(w)}catch{return w}},h=1024,m=function(c,o,w,y,R){if(c.length===0)return c;var b=c;if(typeof c=="symbol"?b=Symbol.prototype.toString.call(c):typeof c!="string"&&(b=String(c)),w==="iso-8859-1")return escape(b).replace(/%u[0-9a-f]{4}/gi,function(N){return"%26%23"+parseInt(N.slice(2),16)+"%3B"});for(var E="",x=0;x<b.length;x+=h){for(var P=b.length>=h?b.slice(x,x+h):b,O=[],$=0;$<P.length;++$){var I=P.charCodeAt($);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||R===t.RFC1738&&(I===40||I===41)){O[O.length]=P.charAt($);continue}if(I<128){O[O.length]=e[I];continue}if(I<2048){O[O.length]=e[192|I>>6]+e[128|I&63];continue}if(I<55296||I>=57344){O[O.length]=e[224|I>>12]+e[128|I>>6&63]+e[128|I&63];continue}$+=1,I=65536+((I&1023)<<10|P.charCodeAt($)&1023),O[O.length]=e[240|I>>18]+e[128|I>>12&63]+e[128|I>>6&63]+e[128|I&63]}E+=O.join("")}return E},S=function(c){for(var o=[{obj:{o:c},prop:"o"}],w=[],y=0;y<o.length;++y)for(var R=o[y],b=R.obj[R.prop],E=Object.keys(b),x=0;x<E.length;++x){var P=E[x],O=b[P];typeof O=="object"&&O!==null&&w.indexOf(O)===-1&&(o.push({obj:b,prop:P}),w.push(O))}return a(o),c},p=function(c){return Object.prototype.toString.call(c)==="[object RegExp]"},d=function(c){return!c||typeof c!="object"?!1:!!(c.constructor&&c.constructor.isBuffer&&c.constructor.isBuffer(c))},_=function(c,o){return[].concat(c,o)},A=function(c,o){if(n(c)){for(var w=[],y=0;y<c.length;y+=1)w.push(o(c[y]));return w}return o(c)};return Gt={arrayToObject:i,assign:s,combine:_,compact:S,decode:u,encode:m,isBuffer:d,isRegExp:p,maybeMap:A,merge:l},Gt}var Kt,fn;function oi(){if(fn)return Kt;fn=1;var t=ii(),r=Bn(),n=rr(),e=Object.prototype.hasOwnProperty,a={brackets:function(g){return g+"[]"},comma:"comma",indices:function(g,c){return g+"["+c+"]"},repeat:function(g){return g}},i=Array.isArray,l=Array.prototype.push,s=function(A,g){l.apply(A,i(g)?g:[g])},u=Date.prototype.toISOString,h=n.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:n.formatters[h],indices:!1,serializeDate:function(g){return u.call(g)},skipNulls:!1,strictNullHandling:!1},S=function(g){return typeof g=="string"||typeof g=="number"||typeof g=="boolean"||typeof g=="symbol"||typeof g=="bigint"},p={},d=function A(g,c,o,w,y,R,b,E,x,P,O,$,I,N,M,X,W,L){for(var C=g,Q=L,ae=0,H=!1;(Q=Q.get(p))!==void 0&&!H;){var G=Q.get(g);if(ae+=1,typeof G<"u"){if(G===ae)throw new RangeError("Cyclic object value");H=!0}typeof Q.get(p)>"u"&&(ae=0)}if(typeof P=="function"?C=P(c,C):C instanceof Date?C=I(C):o==="comma"&&i(C)&&(C=r.maybeMap(C,function(se){return se instanceof Date?I(se):se})),C===null){if(R)return x&&!X?x(c,m.encoder,W,"key",N):c;C=""}if(S(C)||r.isBuffer(C)){if(x){var Y=X?c:x(c,m.encoder,W,"key",N);return[M(Y)+"="+M(x(C,m.encoder,W,"value",N))]}return[M(c)+"="+M(String(C))]}var z=[];if(typeof C>"u")return z;var ee;if(o==="comma"&&i(C))X&&x&&(C=r.maybeMap(C,x)),ee=[{value:C.length>0?C.join(",")||null:void 0}];else if(i(P))ee=P;else{var V=Object.keys(C);ee=O?V.sort(O):V}var ve=E?String(c).replace(/\./g,"%2E"):String(c),_e=w&&i(C)&&C.length===1?ve+"[]":ve;if(y&&i(C)&&C.length===0)return _e+"[]";for(var Z=0;Z<ee.length;++Z){var F=ee[Z],K=typeof F=="object"&&F&&typeof F.value<"u"?F.value:C[F];if(!(b&&K===null)){var k=$&&E?String(F).replace(/\./g,"%2E"):String(F),J=i(C)?typeof o=="function"?o(_e,k):_e:_e+($?"."+k:"["+k+"]");L.set(g,ae);var te=t();te.set(p,L),s(z,A(K,J,o,w,y,R,b,E,o==="comma"&&X&&i(C)?null:x,P,O,$,I,N,M,X,W,te))}}return z},_=function(g){if(!g)return m;if(typeof g.allowEmptyArrays<"u"&&typeof g.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof g.encodeDotInKeys<"u"&&typeof g.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(g.encoder!==null&&typeof g.encoder<"u"&&typeof g.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=g.charset||m.charset;if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=n.default;if(typeof g.format<"u"){if(!e.call(n.formatters,g.format))throw new TypeError("Unknown format option provided.");o=g.format}var w=n.formatters[o],y=m.filter;(typeof g.filter=="function"||i(g.filter))&&(y=g.filter);var R;if(g.arrayFormat in a?R=g.arrayFormat:"indices"in g?R=g.indices?"indices":"repeat":R=m.arrayFormat,"commaRoundTrip"in g&&typeof g.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var b=typeof g.allowDots>"u"?g.encodeDotInKeys===!0?!0:m.allowDots:!!g.allowDots;return{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:m.addQueryPrefix,allowDots:b,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:R,charset:c,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!g.commaRoundTrip,delimiter:typeof g.delimiter>"u"?m.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:m.encode,encodeDotInKeys:typeof g.encodeDotInKeys=="boolean"?g.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof g.encoder=="function"?g.encoder:m.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:m.encodeValuesOnly,filter:y,format:o,formatter:w,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:m.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:m.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:m.strictNullHandling}};return Kt=function(A,g){var c=A,o=_(g),w,y;typeof o.filter=="function"?(y=o.filter,c=y("",c)):i(o.filter)&&(y=o.filter,w=y);var R=[];if(typeof c!="object"||c===null)return"";var b=a[o.arrayFormat],E=b==="comma"&&o.commaRoundTrip;w||(w=Object.keys(c)),o.sort&&w.sort(o.sort);for(var x=t(),P=0;P<w.length;++P){var O=w[P],$=c[O];o.skipNulls&&$===null||s(R,d($,O,b,E,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,x))}var I=R.join(o.delimiter),N=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?N+="utf8=%26%2310003%3B&":N+="utf8=%E2%9C%93&"),I.length>0?N+I:""},Kt}var zt,dn;function si(){if(dn)return zt;dn=1;var t=Bn(),r=Object.prototype.hasOwnProperty,n=Array.isArray,e={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(p){return p.replace(/&#(\d+);/g,function(d,_){return String.fromCharCode(parseInt(_,10))})},i=function(p,d,_){if(p&&typeof p=="string"&&d.comma&&p.indexOf(",")>-1)return p.split(",");if(d.throwOnLimitExceeded&&_>=d.arrayLimit)throw new RangeError("Array limit exceeded. Only "+d.arrayLimit+" element"+(d.arrayLimit===1?"":"s")+" allowed in an array.");return p},l="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",u=function(d,_){var A={__proto__:null},g=_.ignoreQueryPrefix?d.replace(/^\?/,""):d;g=g.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=_.parameterLimit===1/0?void 0:_.parameterLimit,o=g.split(_.delimiter,_.throwOnLimitExceeded?c+1:c);if(_.throwOnLimitExceeded&&o.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(c===1?"":"s")+" allowed.");var w=-1,y,R=_.charset;if(_.charsetSentinel)for(y=0;y<o.length;++y)o[y].indexOf("utf8=")===0&&(o[y]===s?R="utf-8":o[y]===l&&(R="iso-8859-1"),w=y,y=o.length);for(y=0;y<o.length;++y)if(y!==w){var b=o[y],E=b.indexOf("]="),x=E===-1?b.indexOf("="):E+1,P,O;x===-1?(P=_.decoder(b,e.decoder,R,"key"),O=_.strictNullHandling?null:""):(P=_.decoder(b.slice(0,x),e.decoder,R,"key"),O=t.maybeMap(i(b.slice(x+1),_,n(A[P])?A[P].length:0),function(I){return _.decoder(I,e.decoder,R,"value")})),O&&_.interpretNumericEntities&&R==="iso-8859-1"&&(O=a(String(O))),b.indexOf("[]=")>-1&&(O=n(O)?[O]:O);var $=r.call(A,P);$&&_.duplicates==="combine"?A[P]=t.combine(A[P],O):(!$||_.duplicates==="last")&&(A[P]=O)}return A},h=function(p,d,_,A){var g=0;if(p.length>0&&p[p.length-1]==="[]"){var c=p.slice(0,-1).join("");g=Array.isArray(d)&&d[c]?d[c].length:0}for(var o=A?d:i(d,_,g),w=p.length-1;w>=0;--w){var y,R=p[w];if(R==="[]"&&_.parseArrays)y=_.allowEmptyArrays&&(o===""||_.strictNullHandling&&o===null)?[]:t.combine([],o);else{y=_.plainObjects?{__proto__:null}:{};var b=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,E=_.decodeDotInKeys?b.replace(/%2E/g,"."):b,x=parseInt(E,10);!_.parseArrays&&E===""?y={0:o}
4:!isNaN(x)&&R!==E&&String(x)===E&&x>=0&&_.parseArrays&&x<=_.arrayLimit?(y=[],y[x]=o):E!=="__proto__"&&(y[E]=o)}o=y}return o},m=function(d,_,A,g){if(d){var c=A.allowDots?d.replace(/\.([^.[]+)/g,"[$1]"):d,o=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,y=A.depth>0&&o.exec(c),R=y?c.slice(0,y.index):c,b=[];if(R){if(!A.plainObjects&&r.call(Object.prototype,R)&&!A.allowPrototypes)return;b.push(R)}for(var E=0;A.depth>0&&(y=w.exec(c))!==null&&E<A.depth;){if(E+=1,!A.plainObjects&&r.call(Object.prototype,y[1].slice(1,-1))&&!A.allowPrototypes)return;b.push(y[1])}if(y){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");b.push("["+c.slice(y.index)+"]")}return h(b,_,A,g)}},S=function(d){if(!d)return e;if(typeof d.allowEmptyArrays<"u"&&typeof d.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof d.decodeDotInKeys<"u"&&typeof d.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(d.decoder!==null&&typeof d.decoder<"u"&&typeof d.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof d.throwOnLimitExceeded<"u"&&typeof d.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof d.charset>"u"?e.charset:d.charset,A=typeof d.duplicates>"u"?e.duplicates:d.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var g=typeof d.allowDots>"u"?d.decodeDotInKeys===!0?!0:e.allowDots:!!d.allowDots;return{allowDots:g,allowEmptyArrays:typeof d.allowEmptyArrays=="boolean"?!!d.allowEmptyArrays:e.allowEmptyArrays,allowPrototypes:typeof d.allowPrototypes=="boolean"?d.allowPrototypes:e.allowPrototypes,allowSparse:typeof d.allowSparse=="boolean"?d.allowSparse:e.allowSparse,arrayLimit:typeof d.arrayLimit=="number"?d.arrayLimit:e.arrayLimit,charset:_,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:e.charsetSentinel,comma:typeof d.comma=="boolean"?d.comma:e.comma,decodeDotInKeys:typeof d.decodeDotInKeys=="boolean"?d.decodeDotInKeys:e.decodeDotInKeys,decoder:typeof d.decoder=="function"?d.decoder:e.decoder,delimiter:typeof d.delimiter=="string"||t.isRegExp(d.delimiter)?d.delimiter:e.delimiter,depth:typeof d.depth=="number"||d.depth===!1?+d.depth:e.depth,duplicates:A,ignoreQueryPrefix:d.ignoreQueryPrefix===!0,interpretNumericEntities:typeof d.interpretNumericEntities=="boolean"?d.interpretNumericEntities:e.interpretNumericEntities,parameterLimit:typeof d.parameterLimit=="number"?d.parameterLimit:e.parameterLimit,parseArrays:d.parseArrays!==!1,plainObjects:typeof d.plainObjects=="boolean"?d.plainObjects:e.plainObjects,strictDepth:typeof d.strictDepth=="boolean"?!!d.strictDepth:e.strictDepth,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:e.strictNullHandling,throwOnLimitExceeded:typeof d.throwOnLimitExceeded=="boolean"?d.throwOnLimitExceeded:!1}};return zt=function(p,d){var _=S(d);if(p===""||p===null||typeof p>"u")return _.plainObjects?{__proto__:null}:{};for(var A=typeof p=="string"?u(p,_):p,g=_.plainObjects?{__proto__:null}:{},c=Object.keys(A),o=0;o<c.length;++o){var w=c[o],y=m(w,A[w],_,typeof p=="string");g=t.merge(g,y,_)}return _.allowSparse===!0?g:t.compact(g)},zt}var Qt,hn;function ui(){if(hn)return Qt;hn=1;var t=oi(),r=si(),n=rr();return Qt={formats:n,parse:r,stringify:t},Qt}var ci=ui();const pn=bn(ci);var vn=function(r){r&&(window.document.title=r)},li=(function(){function t(r){var n=this,e=r.windowTitle,a=r.writeDelay,i=a===void 0?400:a,l=r.createURL,s=r.parseURL,u=r.getLocation,h=r.start,m=r.dispose,S=r.push,p=r.cleanUrlOnDispose;Rn._(this,t),T._(this,"$$type","ais.browser"),T._(this,"windowTitle",void 0),T._(this,"writeDelay",void 0),T._(this,"_createURL",void 0),T._(this,"parseURL",void 0),T._(this,"getLocation",void 0),T._(this,"writeTimer",void 0),T._(this,"_onPopState",void 0),T._(this,"inPopState",!1),T._(this,"isDisposed",!1),T._(this,"latestAcknowledgedHistory",0),T._(this,"_start",void 0),T._(this,"_dispose",void 0),T._(this,"_push",void 0),T._(this,"_cleanUrlOnDispose",void 0),this.windowTitle=e,this.writeTimer=void 0,this.writeDelay=i,this._createURL=l,this.parseURL=s,this.getLocation=u,this._start=h,this._dispose=m,this._push=S,this._cleanUrlOnDispose=typeof p>"u"?!0:p,ye(function(d){var _=d.window,A=n.windowTitle&&n.windowTitle(n.read());vn(A),n.latestAcknowledgedHistory=_.history.length})}return wn._(t,[{key:"read",value:function(){return this.parseURL({qsModule:pn,location:this.getLocation()})}},{key:"write",value:function(n){var e=this;ye(function(a){var i=a.window,l=e.createURL(n),s=e.windowTitle&&e.windowTitle(n);e.writeTimer&&clearTimeout(e.writeTimer),e.writeTimer=setTimeout(function(){vn(s),e.shouldWrite(l)&&(e._push?e._push(l):i.history.pushState(n,s||"",l),e.latestAcknowledgedHistory=i.history.length),e.inPopState=!1,e.writeTimer=void 0},e.writeDelay)})}}
4,{key:"onUpdate",value:function(n){var e=this;this._start&&this._start(function(){n(e.read())}),this._onPopState=function(){e.writeTimer&&(clearTimeout(e.writeTimer),e.writeTimer=void 0),e.inPopState=!0,n(e.read())},ye(function(a){var i=a.window;i.addEventListener("popstate",e._onPopState)})}},{key:"createURL",value:function(n){var e=this._createURL({qsModule:pn,routeState:n,location:this.getLocation()});return e}},{key:"dispose",value:function(){var n=this;this._dispose&&this._dispose(),this.isDisposed=!0,ye(function(e){var a=e.window;n._onPopState&&a.removeEventListener("popstate",n._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(n){var e=this;return ye(function(a){var i=a.window;if(e.isDisposed&&!e._cleanUrlOnDispose)return!1;var l=!(e.isDisposed&&e.latestAcknowledgedHistory!==i.history.length);return!e.inPopState&&l&&n!==i.location.href})}}]),t})();function fi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.createURL,n=r===void 0?function(_){var A=_.qsModule,g=_.routeState,c=_.location,o=c.protocol,w=c.hostname,y=c.port,R=y===void 0?"":y,b=c.pathname,E=c.hash,x=A.stringify(g),P=R===""?"":":".concat(R);
4return x?"".concat(o,"//").concat(w).concat(P).concat(b,"?").concat(x).concat(E):"".concat(o,"//").concat(w).concat(P).concat(b).concat(E)}:r,e=t.parseURL,a=e===void 0?function(_){var A=_.qsModule,g=_.location;return A.parse(g.search.slice(1),{arrayLimit:99})}:e,i=t.writeDelay,l=i===void 0?400:i,s=t.windowTitle,u=t.getLocation,h=u===void 0?function(){return ye(function(_){var A=_.window;return A.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:u,m=t.start,S=t.dispose,p=t.push,d=t.cleanUrlOnDispose;return new li({createURL:n,parseURL:a,writeDelay:l,windowTitle:s,getLocation:h,start:m,dispose:S,push:p,cleanUrlOnDispose:d})}function gn(t){t.configure;var r=He._(t,["configure"]);return r}function di(){return{$$type:"ais.simple",stateToRoute:function(r){return Object.keys(r).reduce(function(n,e){return ne._(q._({},n),T._({},e,gn(r[e])))},{})},routeToState:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(n,e){return ne._(q._({},n),T._({},e,gn(r[e])))},{})}}}var hi=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.router,e=n===void 0?fi():n,a=r.stateMapping,i=a===void 0?di():a,l=r.$$internal,s=l===void 0?!1:l;return function(u){var h=u.instantSearchInstance;function m(d){var _=h.mainIndex.getWidgets().length===0?h._initialUiState:h.mainIndex.getWidgetUiState({}),A=Object.keys(d).reduce(function(c,o){return ne._(q._({},c),T._({},o,d[o]))},_),g=i.stateToRoute(A);return e.createURL(g)}h._createURL=m;var S=void 0,p=h._initialUiState;return{$$type:"ais.router({router:".concat(e.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(_){var A=_.uiState,g=i.stateToRoute(A);(S===void 0||!Zt(S,g))&&(e.write(g),S=g)},subscribe:function(){h._initialUiState=q._({},p,i.routeToState(e.read())),e.onUpdate(function(_){h.mainIndex.getWidgets().length>0&&h.setUiState(i.routeToState(_))})},started:function(){var _;(_=e.start)===null||_===void 0||_.call(e)},unsubscribe:function(){e.dispose()}}}},pi=0;function vi(t){t.dependsOn==="recommend"&&(t.$$id=pi++)}function he(t){return t.$$type==="ais.index"}function gi(t){var r=t.name,n=t.connector,e=n===void 0?!1:n;return["https://www.algolia.com/doc/api-reference/widgets/",r,"/js/",e?"#connector":""].join("")}function Gn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var e=r.map(function(a){return gi(a)}).join(", ");return function(a){return[a,"See documentation: ".concat(e)].filter(Boolean).join(` 5 6`)}}function yi(t,r){if(!Array.isArray(t))return-1;for(var n=0;n<t.length;n++)if(r(t[n]))return n;return-1}function mi(t){return t.filter(function(r,n,e){return e.indexOf(r)===n})}var Si=function(r,n){n.facets,n.disjunctiveFacets,n.facetsRefinements,n.facetsExcludes,n.disjunctiveFacetsRefinements,n.numericRefinements,n.tagRefinements,n.hierarchicalFacets,n.hierarchicalFacetsRefinements,n.ruleContexts;var e=He._(n,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return r.setQueryParameters(e)},_i=function(r,n){return n.facets.reduce(function(e,a){return e.addFacet(a)},r)},wi=function(r,n){return n.disjunctiveFacets.reduce(function(e,a){return e.addDisjunctiveFacet(a)},r)},Ri=function(r,n){return r.setQueryParameters({hierarchicalFacets:n.hierarchicalFacets.reduce(function(e,a){var i=yi(e,function(s){return s.name===a.name});if(i===-1)return e.concat(a);var l=e.slice();return l.splice(i,1,a),l},r.hierarchicalFacets)})},bi=function(r,n){return n.tagRefinements.reduce(function(e,a){return e.addTagRefinement(a)},r)},Ai=function(r,n){return r.setQueryParameters({facetsRefinements:q._({},r.facetsRefinements,n.facetsRefinements)})},Ei=function(r,n){return r.setQueryParameters({facetsExcludes:q._({},r.facetsExcludes,n.facetsExcludes)})},xi=function(r,n){return r.setQueryParameters({disjunctiveFacetsRefinements:q._({},r.disjunctiveFacetsRefinements,n.disjunctiveFacetsRefinements)})},Pi=function(r,n){return r.setQueryParameters({numericRefinements:q._({},r.numericRefinements,n.numericRefinements)})},Ii=function(r,n){return r.setQueryParameters({hierarchicalFacetsRefinements:q._({},r.hierarchicalFacetsRefinements,n.hierarchicalFacetsRefinements)})},Oi=function(r,n){var e=mi([].concat(r.ruleContexts).concat(n.ruleContexts).filter(
6Boolean));return e.length>0?r.setQueryParameters({ruleContexts:e}):r},yn=function(){for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return n.reduce(function(a,i){var l=Ii(a,i),s=Ri(l,i),u=bi(s,i),h=Pi(u,i),m=xi(h,i),S=Ei(m,i),p=Ai(S,i),d=wi(p,i),_=Oi(d,i),A=_i(_,i);return Si(A,i)})};function mn(t){for(var r=t.getParent(),n=[t.getHelper().state];r!==null;)n=[r.getHelper().state].concat(n),r=r.getParent();return n}var We=Gn({name:"index-widget"});function Kn(t,r){var n=r.state,e=r.recommendState,a=r.isPageReset,i=r._uiState;n!==t.state&&(t.state=n,t.emit("change",{state:t.state,results:t.lastResults,isPageReset:a,_uiState:i})),e!==t.recommendState&&(t.recommendState=e)}function De(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.reduce(function(e,a){return he(a)||!a.getWidgetUiState&&!a.getWidgetState?e:a.getWidgetUiState?a.getWidgetUiState(e,r):a.getWidgetState(e,r)},n)}function qe(t,r){var n=r.initialSearchParameters,e=He._(r,["initialSearchParameters"]);return t.reduce(function(a,i){return!i.getWidgetSearchParameters||he(i)?a:i.dependsOn==="search"&&i.getWidgetParameters?i.getWidgetParameters(a,e):i.getWidgetSearchParameters(a,e)},n)}function Sn(t,r){var n=r.initialRecommendParameters,e=He._(r,["initialRecommendParameters"]);return t.reduce(function(a,i){return!he(i)&&i.dependsOn==="recommend"&&i.getWidgetParameters?i.getWidgetParameters(a,e):a},n)}function zn(t){var r=t.filter(he);r.length!==0&&r.forEach(function(n){var e=n.getHelper();Kn(e,{state:e.state.resetPage(),recommendState:e.recommendState,isPageReset:!0}),zn(n.getWidgets())})}function Qn(t){var r=t.filter(he);return r.reduce(function(n,e){var a;return(a=n).concat.apply(a,[{indexId:e.getIndexId(),results:e.getResults(),helper:e.getHelper()}].concat(Ae._(Qn(e.getWidgets()))))},[])}var Ti=function(r){if(r===void 0||r.indexName===void 0&&!r.EXPERIMENTAL_isolated)throw new Error(We("The `indexName` option is required."));var n=r.indexName,e=n===void 0?"":n,a=r.indexId,i=a===void 0?e:a,l=r.EXPERIMENTAL_isolated,s=l===void 0?!1:l,u=[],h={},m=null,S=null,p=null,d=null,_=null,A=!1,g=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:s,getIndexName:function(){return e},getIndexId:function(){return i},getHelper:function(){return p},getResults:function(){return d?.lastResults?(d.lastResults._state=p.state,d.lastResults):null},getResultsForWidget:function(o){return o.dependsOn!=="recommend"||he(o)||o.$$id===void 0?this.getResults():p?.lastRecommendResults?p.lastRecommendResults[o.$$id]:null},getPreviousState:function(){return _},getScopedResults:function(){var o=this.getParent(),w;return o?w=o.getWidgets():e.length===0?w=this.getWidgets():w=[this],Qn(w)},getParent:function(){return s?null:S},createURL:function(o){return typeof o=="function"?m._createURL(T._({},i,o(h))):m._createURL(T._({},i,De(u,{searchParameters:o,helper:p})))},scheduleLocalSearch:$e(function(){s&&p?.search()}),getWidgets:function(){return u},addWidgets:function(o){var w=this;if(!Array.isArray(o))throw new Error(We("The `addWidgets` method expects an array of widgets."));var y=o.reduce(function(R,b){return R.concat(Array.isArray(b)?b:[b])},[]);if(y.some(function(R){return typeof R.init!="function"&&typeof R.render!="function"}))throw new Error(We("The widget definition expects a `render` and/or an `init` method."));return y.forEach(function(R){R.parent=w,!he(R)&&(m&&R.dependsOn==="recommend"?m._hasRecommendWidget=!0:m?m._hasSearchWidget=!0:R.dependsOn==="recommend"?A=!0:g=!0,vi(R))}),u=u.concat(y),m&&y.length&&(Kn(p,{state:qe(u,{uiState:h,initialSearchParameters:p.state}),recommendState:Sn(u,{uiState:h,initialRecommendParameters:p.recommendState}),_uiState:h}),y.forEach(function(R){if(R.getRenderState){var b=R.getRenderState(m.renderState[w.getIndexId()]||{},Le(m,w,m._initialUiState));Vt({renderState:b,instantSearchInstance:m,parent:w})}}),y.forEach(function(R){R.init&&R.init(Le(m,w,m._initialUiState))}),s?this.scheduleLocalSearch():m.scheduleSearch()),this},removeWidgets:function(o){var w=this;if(!Array.isArray(o))throw new Error(We("The `removeWidgets` method expects an array of widgets."));var y=o.reduce(function(P,O){return P.concat(Array.isArray(O)?O:[O])},[]);
6if(y.some(function(P){return typeof P.dispose!="function"}))throw new Error(We("The widget definition expects a `dispose` method."));if(u=u.filter(function(P){return y.indexOf(P)===-1}),u.forEach(function(P){P.parent=void 0,!he(P)&&(m&&P.dependsOn==="recommend"?m._hasRecommendWidget=!0:m?m._hasSearchWidget=!0:P.dependsOn==="recommend"?A=!0:g=!0)}),m&&y.length){var R=y.reduce(function(P,O){var $=O.dispose({helper:p,state:P.cleanedSearchState,recommendState:P.cleanedRecommendState,parent:w});return Yt._($,ce.RecommendParameters)?P.cleanedRecommendState=$:$&&(P.cleanedSearchState=$),P},{cleanedSearchState:p.state,cleanedRecommendState:p.recommendState}),b=R.cleanedSearchState,E=R.cleanedRecommendState,x=m.future.preserveSharedStateOnUnmount?qe(u,{uiState:h,initialSearchParameters:new ce.SearchParameters({index:this.getIndexName()})}):qe(u,{uiState:De(u,{searchParameters:b,helper:p}),initialSearchParameters:b});h=De(u,{searchParameters:x,helper:p}),p.setState(x),p.recommendState=E,u.length&&(s?this.scheduleLocalSearch():m.scheduleSearch())}return this},init:function(o){var w=this,y=o.instantSearchInstance,R=o.parent,b=o.uiState,E;if(p===null){m=y,S=R,h=b[i]||{};var x=y.mainHelper,P=qe(u,{uiState:h,initialSearchParameters:new ce.SearchParameters({index:e})}),O=Sn(u,{uiState:h,initialRecommendParameters:new ce.RecommendParameters});p=ce(x.getClient(),P.index,P),p.recommendState=O,p.search=function(){return s?(y.status="loading",w.render({instantSearchInstance:y}),y.compositionID?p.searchWithComposition():p.searchOnlyWithDerivedHelpers()):y.onStateChange?(y.onStateChange({uiState:y.mainIndex.getWidgetUiState({}),setUiState:function(L){return y.setUiState(L,!1)}}),x):x.search()},p.searchWithoutTriggeringOnStateChange=function(){return x.search()},p.searchForFacetValues=function(W,L,C,Q){var ae=yn.apply(void 0,[x.state].concat(Ae._(mn(w)))).setQueryParameters(Q);return x.searchForFacetValues(W,L,C,ae)};var $=e?p:ce({},"__empty_index__",{}),I=s?$:Ci(R,x);d=I.derive(function(){return yn.apply(void 0,[x.state].concat(Ae._(mn(w))))},function(){return w.getHelper().recommendState});var N=(E=y._initialResults)===null||E===void 0?void 0:E[this.getIndexId()];if(N?.results){var M=new ce.SearchResults(new ce.SearchParameters(N.state),N.results);d.lastResults=M,p.lastResults=M}if(N?.recommendResults){var X=new ce.RecommendResults(new ce.RecommendParameters({params:N.recommendResults.params}),N.recommendResults.results);d.lastRecommendResults=X,p.lastRecommendResults=X}p.on("change",function(W){var L=W.isPageReset;L&&zn(u)}),d.on("search",function(){y.scheduleStalledRender()}),d.on("result",function(W){var L=W.results;y.scheduleRender(),p.lastResults=L,_=L?._state}),d.on("recommend:result",function(W){var L=W.recommend;y.scheduleRender(),p.lastRecommendResults=L.results}),u.forEach(function(W){if(W.getRenderState){var L=W.getRenderState(y.renderState[w.getIndexId()]||{},Le(y,w,b));Vt({renderState:L,instantSearchInstance:y,parent:w})}}),u.forEach(function(W){W.init&&W.init(Le(y,w,b))}),p.on("change",function(W){var L=W.state,C=W._uiState;h=De(u,{searchParameters:L,helper:p},C||{}),y.onStateChange||y.onInternalStateChange()}),N&&y.scheduleRender(),A&&(y._hasRecommendWidget=!0),g&&(y._hasSearchWidget=!0)}},render:function(o){var w=this,y=o.instantSearchInstance;y.status==="error"&&!y.mainHelper.hasPendingRequests()&&_&&p.setState(_);var R=this.getResults()||d?.lastRecommendResults||s&&!e?u:u.filter(function(b){return b.shouldRender});R=R.filter(function(b){return b.shouldRender?b.shouldRender({instantSearchInstance:y}):!0}),R.forEach(function(b){if(b.getRenderState){var E=b.getRenderState(y.renderState[w.getIndexId()]||{},wr(y,w,b));Vt({renderState:E,instantSearchInstance:y,parent:w})}}),R.forEach(function(b){b.render&&b.render(wr(y,w,b))})},dispose:function(){var o=this;u.forEach(function(w){w.dispose&&p&&w.dispose({helper:p,state:p.state,recommendState:p.recommendState,parent:o})}),m=null,S=null,p?.removeAllListeners(),p=null,d?.detach(),d=null},getWidgetUiState:function(o){return u.filter(he).filter(function(w){return!w._isolated}).reduce(function(w,y){return y.getWidgetUiState(w)},ne._(q._({},o),T._({},i,q._({},o[i],h))))},getWidgetState:function(o){return this.getWidgetUiState(o)},getWidgetSearchParameters:function(o,w){var y=w.uiState;return qe(u,{uiState:y,initialSearchParameters:o})},shouldRender:function(){return!0},refreshUiState:function(){h=De(u,{searchParameters:this.getHelper().state,helper:this.getHelper()},h)}
6,setIndexUiState:function(o){var w=typeof o=="function"?o(h):o;m.setUiState(function(y){return ne._(q._({},y),T._({},i,w))})}}};function Vt(t){var r=t.renderState,n=t.instantSearchInstance,e=t.parent,a=e?e.getIndexId():n.mainIndex.getIndexId();n.renderState=ne._(q._({},n.renderState),T._({},a,q._({},n.renderState[a],r)))}function Ci(t,r){for(;t;){if(t._isolated)return t.getHelper();t=t.getParent()}return r}function $i(t,r){return t.toLocaleString(r)}function Ui(t){var r=t.numberLocale;return{formatNumber:function(e,a){return $i(Number(a(e)),r)},highlight:function(e,a){try{var i=JSON.parse(e);return a(An(ne._(q._({},i),{hit:this})))}catch{throw new Error(` 7The highlight helper expects a JSON object of the format: 8{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(e,a){try{var i=JSON.parse(e);return a(On(ne._(q._({},i),{hit:this})))}catch{throw new Error(` 9 The reverseHighlight helper expects a JSON object of the format: 10 { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(e,a){try{var i=JSON.parse(e);return a(Tn(ne._(q._({},i),{hit:this})))}catch{throw new Error(` 11The snippet helper expects a JSON object of the format: 12{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(e,a){try{var i=JSON.parse(e);return a(Cn(ne._(q._({},i),{hit:this})))}catch{throw new Error(` 13 The reverseSnippet helper expects a JSON object of the format: 14 { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(e,a){try{var i=JSON.parse(e),l=i.method,s=i.payload;return a($n(l,q._({objectIDs:[this.objectID]},s)))}catch{throw new Error(` 15The insights helper expects a JSON object of the format: 16{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}function Xt(t,r){var n=t[r.getIndexId()]||{};r.getHelper().setState(r.getWidgetSearchParameters(r.getHelper().state,{uiState:n})),r.getWidgets().filter(he).forEach(function(e){return Xt(t,e)})}function Ni(t,r){var n=Object.keys(r).reduce(function(e,a){var i=r[a];return i.recommendResults?q._({},e,i.recommendResults.results):e},{});t._recommendCache=n}function Fi(t,r){if(r&&!((!("transporter"in t)||t._cacheHydrated)&&(!t._useCache||typeof t.addAlgoliaAgent!="function"))){var n=[Object.keys(r).reduce(function(l,s){var u=r[s],h=u.state,m=u.requestParams,S=u.results,p=S&&h?S.map(function(d,_){return q._({indexName:h.index||d.index},m?.[_]||d.params?{params:Jt(m?.[_]||Wi(d.params))}:{})}):[];return l.concat(p)},[])],e=Object.keys(r).reduce(function(l,s){var u=r[s].results;return u?l.concat(u):l},[]);if("transporter"in t&&!t._cacheHydrated){t._cacheHydrated=!0;var a=t.search.bind(t);t.search=function(l){for(var s=arguments.length,u=new Array(s>1?s-1:0),h=1;h<s;h++)u[h-1]=arguments[h];var m=Array.isArray(l)?l.map(function(S){return ne._(q._({},S),{params:Jt(S.params)})}):Jt(l.requestBody.params);return t.transporter.responsesCache.get({method:"search",args:[m].concat(Ae._(u))},function(){return a.apply(void 0,[l].concat(Ae._(u)))})},t.transporter.responsesCache.set({method:"search",args:n},{results:e})}if(!("transporter"in t)){var i="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:n}));t.cache=ne._(q._({},t.cache),T._({},i,JSON.stringify({results:Object.keys(r).map(function(l){return r[l].results})})))}}}function Wi(t){return t.split("&").reduce(function(r,n){var e=ge._(n.split("="),2),a=e[0],i=e[1];return r[a]=i?decodeURIComponent(i):"",r},{})}function Jt(t){var r=function(a){return Object.prototype.toString.call(a)==="[object Object]"||Object.prototype.toString.call(a)==="[object Array]"},n=function(a){for(var i=arguments.length,l=new Array(i>1?i-1:0),s=1;s<i;s++)l[s-1]=arguments[s];var u=0;return a.replace(/%s/g,function(){return encodeURIComponent(l[u++])})};return Object.keys(t).map(function(e){return n("%s=%s",e,r(t[e])?JSON.stringify(t[e]):t[e])}).join("&")}var Vn="4.92.0",me=Gn({name:"instantsearch"});function Di(){return"#"}var qi={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},Li=(function(t){aa._(r,t);function r(n){Rn._(this,r);var e;e=ia._(this,r),T._(e,"client",void 0),T._(e,"indexName",void 0),T._(e,"compositionID",void 0),T._(e,"insightsClient",void 0),T._(e,"onStateChange",null),T._(e,"future",void 0),T._(e,"helper",void 0),T._(e,"mainHelper",void 0),T._(e,"mainIndex",void 0),T._(e,"started",void 0),T._(e,"templatesConfig",void 0),T._(e,"render
16State",{}),T._(e,"_stalledSearchDelay",void 0),T._(e,"_searchStalledTimer",void 0),T._(e,"_initialUiState",void 0),T._(e,"_initialResults",void 0),T._(e,"_manuallyResetScheduleSearch",!1),T._(e,"_resetScheduleSearch",void 0),T._(e,"_createURL",void 0),T._(e,"_searchFunction",void 0),T._(e,"_mainHelperSearch",void 0),T._(e,"_hasSearchWidget",!1),T._(e,"_hasRecommendWidget",!1),T._(e,"_insights",void 0),T._(e,"middleware",[]),T._(e,"sendEventToInsights",void 0),T._(e,"status","idle"),T._(e,"error",void 0),T._(e,"scheduleSearch",$e(function(){e.started&&e.mainHelper.search()})),T._(e,"scheduleRender",$e(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,I;!((I=e.mainHelper)===null||I===void 0)&&I.hasPendingRequests()||(clearTimeout(e._searchStalledTimer),e._searchStalledTimer=null,$&&(e.status="idle",e.error=void 0)),e.mainIndex.render({instantSearchInstance:e}),e.emit("render")})),T._(e,"onInternalStateChange",$e(function(){var $=e.mainIndex.getWidgetUiState({});e.middleware.forEach(function(I){var N=I.instance;N.onStateChange({uiState:$})})})),e.setMaxListeners(100);var a=n.indexName,i=a===void 0?"":a,l=n.compositionID,s=n.numberLocale,u=n.initialUiState,h=u===void 0?{}:u,m=n.routing,S=m===void 0?null:m,p=n.insights,d=p===void 0?void 0:p,_=n.searchFunction,A=n.stalledSearchDelay,g=A===void 0?200:A,c=n.searchClient,o=c===void 0?null:c,w=n.insightsClient,y=w===void 0?null:w,R=n.onStateChange,b=R===void 0?null:R,E=n.future,x=E===void 0?q._({},qi,n.future||{}):E;if(o===null)throw new Error(me("The `searchClient` option is required."));if(typeof o.search!="function")throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof o.addAlgoliaAgent=="function"&&o.addAlgoliaAgent("instantsearch.js (".concat(Vn,")")),y&&typeof y!="function")throw new Error(me("The `insightsClient` option should be a function."));if(e.client=o,e.future=x,e.insightsClient=y,e.indexName=i,e.compositionID=l,e.helper=null,e.mainHelper=null,e.mainIndex=Ti({indexName:e.compositionID||e.indexName}),e.onStateChange=b,e.started=!1,e.templatesConfig={helpers:Ui({numberLocale:s}),compileOptions:{}},e._stalledSearchDelay=g,e._searchStalledTimer=null,e._createURL=Di,e._initialUiState=h,e._initialResults=null,e._insights=d,_&&(e._searchFunction=_),e.sendEventToInsights=Se,S){var P=typeof S=="boolean"?{}:S;P.$$internal=!0,e.use(hi(P))}if(d){var O=typeof d=="boolean"?{}:d;O.$$internal=!0,e.use(mr(O))}return Ca()&&e.use($a({$$internal:!0})),e}return wn._(r,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var e=this,a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];var s=i.map(function(u){var h=q._({$$type:"__unknown__",$$internal:!1,subscribe:Se,started:Se,unsubscribe:Se,onStateChange:Se},u({instantSearchInstance:e}));return e.middleware.push({creator:u,instance:h}),h});return this.started&&s.forEach(function(u){u.subscribe(),u.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.middleware.filter(function(l){return a.includes(l.creator)}).forEach(function(l){return l.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(l){return!a.includes(l.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return this.use.apply(this,Ae._(a))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw new Error(me("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(a){return!Array.isArray(a)&&he(a)&&!a._isolated}))throw new Error(me("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw new Error(me("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(me("The `start` method has already been called once."));var a=this.mainHelper||ce(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(a.searchForFacetValues=a.searchForCompositionFacetValues.bind(a)),a.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?a.searchWithComposition():a.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&a.recommend(),a},this._searchFunction){var i={search:function(){return new Promise(Se)}};this._mainHelperSearch=a.search.bind(a),a.search=function(){var s=e.mainIndex.getHelper(),u=ce(i,s.state.index,s.state);return u.once("search",function(h){var m=h.state;s.overrideStateWithoutTriggeringChangeEvent(m),e._mainHelperSearch()}),u.on("change",function(h){var m=h.state;s.setState(m)}),e._searchFunction(u),a}}if(a.on("error",function(s){var u=s.error;if(!Yt._(u,Error)){var h=u;u=Object.keys(h).reduce(function(m,S){return m[S]=h[S],m},new Error(h.message))}u.error=u,e.error=u,e.status="error",e.scheduleRender(!1),e.emit("error",u)}
16),this.mainHelper=a,this.middleware.forEach(function(s){var u=s.instance;u.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){Fi(this.client,this._initialResults),Ni(this.mainHelper,this._initialResults);var l=this.scheduleSearch;this.scheduleSearch=$e(Se),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=l}:$e(function(){e.scheduleSearch=l})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(s){var u=s.instance;u.started()}),typeof this._insights>"u"&&a.derivedHelpers[0].once("result",function(){var s=e.mainIndex.getScopedResults().some(function(u){var h=u.results;return h?._automaticInsights});s&&e.use(mr({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(e=this.mainHelper)===null||e===void 0||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(a){var i=a.instance;i.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(me("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var l=typeof e=="function"?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&i?this.onStateChange({uiState:l,setUiState:function(u){Xt(typeof u=="function"?u(l):u,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):(Xt(l,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(me("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(me("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r})(Ea),Me=function(r,n){return r},pe=function(r){return new Li(r)}
16;pe.version=Vn;pe.createInfiniteHitsSessionStorageCache=Me(ba);pe.highlight=Me(An);pe.reverseHighlight=Me(On);pe.snippet=Me(Tn);pe.reverseSnippet=Me(Cn);pe.insights=$n;pe.getInsightsAnonymousUserToken=Ra;Object.defineProperty(pe,"widgets",{get:function(){throw new ReferenceError(`"instantsearch.widgets" are not available from the ES build. 17 18To import the widgets: 19 20import { searchBox } from 'instantsearch.js/es/widgets/index.js'`)}});Object.defineProperty(pe,"connectors",{get:function(){throw new ReferenceError(`"instantsearch.connectors" are not available from the ES build. 21 22To import the connectors: 23 24import { connectSearchBox } from 'instantsearch.js/es/connectors/index.js'`)}});Object.defineProperty(pe,"templates",{get:function(){throw new ReferenceError(`"instantsearch.templates" are not available from the ES build. 25 26To import the templates: 27 28import { carousel } from 'instantsearch.js/es/templates/index.js'`)}});export{pe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.