react-addsearch-ui 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(ft,dt){typeof exports=="object"&&typeof module<"u"?dt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],dt):(ft=typeof globalThis<"u"?globalThis:ft||self,dt(ft["zenloop-components"]={},ft.React))})(this,function(ft,dt){"use strict";function ei(n){const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const m in n)if(m!=="default"){const g=Object.getOwnPropertyDescriptor(n,m);Object.defineProperty(h,m,g.get?g:{enumerable:!0,get:()=>n[m]})}}return h.default=n,Object.freeze(h)}const rt=ei(dt);var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fn={exports:{}},kt={};/**
1
+ (function(ut,at){typeof exports=="object"&&typeof module<"u"?at(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],at):(ut=typeof globalThis<"u"?globalThis:ut||self,at(ut["zenloop-components"]={},ut.React))})(this,function(ut,at){"use strict";var Fl=Object.defineProperty;var Ll=(ut,at,qt)=>at in ut?Fl(ut,at,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ut[at]=qt;var ze=(ut,at,qt)=>Ll(ut,typeof at!="symbol"?at+"":at,qt);function qt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const p in t)if(p!=="default"){const s=Object.getOwnPropertyDescriptor(t,p);Object.defineProperty(i,p,s.get?s:{enumerable:!0,get:()=>t[p]})}}return i.default=t,Object.freeze(i)}const wt=qt(at);var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wn={exports:{}},rn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Gn;function ti(){if(Gn)return kt;Gn=1;var n=dt,h=Symbol.for("react.element"),m=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function s(t,v,r){var e,u={},_=null,a=null;r!==void 0&&(_=""+r),v.key!==void 0&&(_=""+v.key),v.ref!==void 0&&(a=v.ref);for(e in v)g.call(v,e)&&!p.hasOwnProperty(e)&&(u[e]=v[e]);if(t&&t.defaultProps)for(e in v=t.defaultProps,v)u[e]===void 0&&(u[e]=v[e]);return{$$typeof:h,type:t,key:_,ref:a,props:u,_owner:w.current}}return kt.Fragment=m,kt.jsx=s,kt.jsxs=s,kt}var Pt={};/**
9
+ */var Vr;function co(){if(Vr)return rn;Vr=1;var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function c(n,y,r){var e,d={},C=null,l=null;r!==void 0&&(C=""+r),y.key!==void 0&&(C=""+y.key),y.ref!==void 0&&(l=y.ref);for(e in y)s.call(y,e)&&!b.hasOwnProperty(e)&&(d[e]=y[e]);if(n&&n.defaultProps)for(e in y=n.defaultProps,y)d[e]===void 0&&(d[e]=y[e]);return{$$typeof:i,type:n,key:C,ref:l,props:d,_owner:w.current}}return rn.Fragment=p,rn.jsx=c,rn.jsxs=c,rn}var on={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,48 +14,48 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Vn;function ni(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&function(){var n=dt,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),t=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),a=Symbol.for("react.offscreen"),c=Symbol.iterator,i="@@iterator";function S(I){if(I===null||typeof I!="object")return null;var ne=c&&I[c]||I[i];return typeof ne=="function"?ne:null}var f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(I){{for(var ne=arguments.length,oe=new Array(ne>1?ne-1:0),Se=1;Se<ne;Se++)oe[Se-1]=arguments[Se];l("error",I,oe)}}function l(I,ne,oe){{var Se=f.ReactDebugCurrentFrame,Ne=Se.getStackAddendum();Ne!==""&&(ne+="%s",oe=oe.concat([Ne]));var Me=oe.map(function(Fe){return String(Fe)});Me.unshift("Warning: "+ne),Function.prototype.apply.call(console[I],console,Me)}}var o=!1,b=!1,E=!1,R=!1,k=!1,P;P=Symbol.for("react.module.reference");function F(I){return!!(typeof I=="string"||typeof I=="function"||I===g||I===p||k||I===w||I===r||I===e||R||I===a||o||b||E||typeof I=="object"&&I!==null&&(I.$$typeof===_||I.$$typeof===u||I.$$typeof===s||I.$$typeof===t||I.$$typeof===v||I.$$typeof===P||I.getModuleId!==void 0))}function U(I,ne,oe){var Se=I.displayName;if(Se)return Se;var Ne=ne.displayName||ne.name||"";return Ne!==""?oe+"("+Ne+")":oe}function L(I){return I.displayName||"Context"}function B(I){if(I==null)return null;if(typeof I.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case g:return"Fragment";case m:return"Portal";case p:return"Profiler";case w:return"StrictMode";case r:return"Suspense";case e:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case t:var ne=I;return L(ne)+".Consumer";case s:var oe=I;return L(oe._context)+".Provider";case v:return U(I,I.render,"ForwardRef");case u:var Se=I.displayName||null;return Se!==null?Se:B(I.type)||"Memo";case _:{var Ne=I,Me=Ne._payload,Fe=Ne._init;try{return B(Fe(Me))}catch{return null}}}return null}var C=Object.assign,D=0,G,X,z,q,V,J,re;function fe(){}fe.__reactDisabledLog=!0;function Pe(){{if(D===0){G=console.log,X=console.info,z=console.warn,q=console.error,V=console.group,J=console.groupCollapsed,re=console.groupEnd;var I={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}D++}}function Ee(){{if(D--,D===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},I,{value:G}),info:C({},I,{value:X}),warn:C({},I,{value:z}),error:C({},I,{value:q}),group:C({},I,{value:V}),groupCollapsed:C({},I,{value:J}),groupEnd:C({},I,{value:re})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=f.ReactCurrentDispatcher,Be;function Re(I,ne,oe){{if(Be===void 0)try{throw Error()}catch(Ne){var Se=Ne.stack.trim().match(/\n( *(at )?)/);Be=Se&&Se[1]||""}return`
18
- `+Be+I}}var He=!1,Ie;{var H=typeof WeakMap=="function"?WeakMap:Map;Ie=new H}function N(I,ne){if(!I||He)return"";{var oe=Ie.get(I);if(oe!==void 0)return oe}var Se;He=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=xe.current,xe.current=null,Pe();try{if(ne){var Fe=function(){throw Error()};if(Object.defineProperty(Fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fe,[])}catch(Qe){Se=Qe}Reflect.construct(I,[],Fe)}else{try{Fe.call()}catch(Qe){Se=Qe}I.call(Fe.prototype)}}else{try{throw Error()}catch(Qe){Se=Qe}I()}}catch(Qe){if(Qe&&Se&&typeof Qe.stack=="string"){for(var Te=Qe.stack.split(`
19
- `),Je=Se.stack.split(`
20
- `),$e=Te.length-1,Ge=Je.length-1;$e>=1&&Ge>=0&&Te[$e]!==Je[Ge];)Ge--;for(;$e>=1&&Ge>=0;$e--,Ge--)if(Te[$e]!==Je[Ge]){if($e!==1||Ge!==1)do if($e--,Ge--,Ge<0||Te[$e]!==Je[Ge]){var nt=`
21
- `+Te[$e].replace(" at new "," at ");return I.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",I.displayName)),typeof I=="function"&&Ie.set(I,nt),nt}while($e>=1&&Ge>=0);break}}}finally{He=!1,xe.current=Me,Ee(),Error.prepareStackTrace=Ne}var Ot=I?I.displayName||I.name:"",yt=Ot?Re(Ot):"";return typeof I=="function"&&Ie.set(I,yt),yt}function Q(I,ne,oe){return N(I,!1)}function se(I){var ne=I.prototype;return!!(ne&&ne.isReactComponent)}function le(I,ne,oe){if(I==null)return"";if(typeof I=="function")return N(I,se(I));if(typeof I=="string")return Re(I);switch(I){case r:return Re("Suspense");case e:return Re("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case v:return Q(I.render);case u:return le(I.type,ne,oe);case _:{var Se=I,Ne=Se._payload,Me=Se._init;try{return le(Me(Ne),ne,oe)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,pe={},ce=f.ReactDebugCurrentFrame;function ue(I){if(I){var ne=I._owner,oe=le(I.type,I._source,ne?ne.type:null);ce.setExtraStackFrame(oe)}else ce.setExtraStackFrame(null)}function we(I,ne,oe,Se,Ne){{var Me=Function.call.bind(me);for(var Fe in I)if(Me(I,Fe)){var Te=void 0;try{if(typeof I[Fe]!="function"){var Je=Error((Se||"React class")+": "+oe+" type `"+Fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[Fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Je.name="Invariant Violation",Je}Te=I[Fe](ne,Fe,Se,oe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($e){Te=$e}Te&&!(Te instanceof Error)&&(ue(Ne),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Se||"React class",oe,Fe,typeof Te),ue(null)),Te instanceof Error&&!(Te.message in pe)&&(pe[Te.message]=!0,ue(Ne),y("Failed %s type: %s",oe,Te.message),ue(null))}}}var _e=Array.isArray;function je(I){return _e(I)}function K(I){{var ne=typeof Symbol=="function"&&Symbol.toStringTag,oe=ne&&I[Symbol.toStringTag]||I.constructor.name||"Object";return oe}}function Z(I){try{return te(I),!1}catch{return!0}}function te(I){return""+I}function ie(I){if(Z(I))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",K(I)),te(I)}var O=f.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0},x,A,j;j={};function $(I){if(me.call(I,"ref")){var ne=Object.getOwnPropertyDescriptor(I,"ref").get;if(ne&&ne.isReactWarning)return!1}return I.ref!==void 0}function Y(I){if(me.call(I,"key")){var ne=Object.getOwnPropertyDescriptor(I,"key").get;if(ne&&ne.isReactWarning)return!1}return I.key!==void 0}function ge(I,ne){if(typeof I.ref=="string"&&O.current&&ne&&O.current.stateNode!==ne){var oe=B(O.current.type);j[oe]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(O.current.type),I.ref),j[oe]=!0)}}function De(I,ne){{var oe=function(){x||(x=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};oe.isReactWarning=!0,Object.defineProperty(I,"key",{get:oe,configurable:!0})}}function Ce(I,ne){{var oe=function(){A||(A=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ne))};oe.isReactWarning=!0,Object.defineProperty(I,"ref",{get:oe,configurable:!0})}}var T=function(I,ne,oe,Se,Ne,Me,Fe){var Te={$$typeof:h,type:I,key:ne,ref:oe,props:Fe,_owner:Me};return Te._store={},Object.defineProperty(Te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Se}),Object.defineProperty(Te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Te.props),Object.freeze(Te)),Te};function M(I,ne,oe,Se,Ne){{var Me,Fe={},Te=null,Je=null;oe!==void 0&&(ie(oe),Te=""+oe),Y(ne)&&(ie(ne.key),Te=""+ne.key),$(ne)&&(Je=ne.ref,ge(ne,Ne));for(Me in ne)me.call(ne,Me)&&!d.hasOwnProperty(Me)&&(Fe[Me]=ne[Me]);if(I&&I.defaultProps){var $e=I.defaultProps;for(Me in $e)Fe[Me]===void 0&&(Fe[Me]=$e[Me])}if(Te||Je){var Ge=typeof I=="function"?I.displayName||I.name||"Unknown":I;Te&&De(Fe,Ge),Je&&Ce(Fe,Ge)}return T(I,Te,Je,Ne,Se,O.current,Fe)}}var ee=f.ReactCurrentOwner,ae=f.ReactDebugCurrentFrame;function de(I){if(I){var ne=I._owner,oe=le(I.type,I._source,ne?ne.type:null);ae.setExtraStackFrame(oe)}else ae.setExtraStackFrame(null)}var he;he=!1;function Ae(I){return typeof I=="object"&&I!==null&&I.$$typeof===h}function Oe(){{if(ee.current){var I=B(ee.current.type);if(I)return`
17
+ */var zr;function uo(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&function(){var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),l=Symbol.for("react.offscreen"),a=Symbol.iterator,o="@@iterator";function v(B){if(B===null||typeof B!="object")return null;var ae=a&&B[a]||B[o];return typeof ae=="function"?ae:null}var f=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(B){{for(var ae=arguments.length,he=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)he[Ee-1]=arguments[Ee];h("error",B,he)}}function h(B,ae,he){{var Ee=f.ReactDebugCurrentFrame,je=Ee.getStackAddendum();je!==""&&(ae+="%s",he=he.concat([je]));var $e=he.map(function(Ne){return String(Ne)});$e.unshift("Warning: "+ae),Function.prototype.apply.call(console[B],console,$e)}}var u=!1,_=!1,k=!1,A=!1,I=!1,P;P=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===s||B===b||I||B===w||B===r||B===e||A||B===l||u||_||k||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===d||B.$$typeof===c||B.$$typeof===n||B.$$typeof===y||B.$$typeof===P||B.getModuleId!==void 0))}function q(B,ae,he){var Ee=B.displayName;if(Ee)return Ee;var je=ae.displayName||ae.name||"";return je!==""?he+"("+je+")":he}function j(B){return B.displayName||"Context"}function D(B){if(B==null)return null;if(typeof B.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case s:return"Fragment";case p:return"Portal";case b:return"Profiler";case w:return"StrictMode";case r:return"Suspense";case e:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case n:var ae=B;return j(ae)+".Consumer";case c:var he=B;return j(he._context)+".Provider";case y:return q(B,B.render,"ForwardRef");case d:var Ee=B.displayName||null;return Ee!==null?Ee:D(B.type)||"Memo";case C:{var je=B,$e=je._payload,Ne=je._init;try{return D(Ne($e))}catch{return null}}}return null}var L=Object.assign,V=0,J,se,ne,Y,W,X,ue;function xe(){}xe.__reactDisabledLog=!0;function Re(){{if(V===0){J=console.log,se=console.info,ne=console.warn,Y=console.error,W=console.group,X=console.groupCollapsed,ue=console.groupEnd;var B={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}V++}}function Oe(){{if(V--,V===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},B,{value:J}),info:L({},B,{value:se}),warn:L({},B,{value:ne}),error:L({},B,{value:Y}),group:L({},B,{value:W}),groupCollapsed:L({},B,{value:X}),groupEnd:L({},B,{value:ue})})}V<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=f.ReactCurrentDispatcher,He;function Fe(B,ae,he){{if(He===void 0)try{throw Error()}catch(je){var Ee=je.stack.trim().match(/\n( *(at )?)/);He=Ee&&Ee[1]||""}return`
18
+ `+He+B}}var Ke=!1,Me;{var We=typeof WeakMap=="function"?WeakMap:Map;Me=new We}function z(B,ae){if(!B||Ke)return"";{var he=Me.get(B);if(he!==void 0)return he}var Ee;Ke=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Ce.current,Ce.current=null,Re();try{if(ae){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(st){Ee=st}Reflect.construct(B,[],Ne)}else{try{Ne.call()}catch(st){Ee=st}B.call(Ne.prototype)}}else{try{throw Error()}catch(st){Ee=st}B()}}catch(st){if(st&&Ee&&typeof st.stack=="string"){for(var Le=st.stack.split(`
19
+ `),tt=Ee.stack.split(`
20
+ `),Je=Le.length-1,Ye=tt.length-1;Je>=1&&Ye>=0&&Le[Je]!==tt[Ye];)Ye--;for(;Je>=1&&Ye>=0;Je--,Ye--)if(Le[Je]!==tt[Ye]){if(Je!==1||Ye!==1)do if(Je--,Ye--,Ye<0||Le[Je]!==tt[Ye]){var ct=`
21
+ `+Le[Je].replace(" at new "," at ");return B.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",B.displayName)),typeof B=="function"&&Me.set(B,ct),ct}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Ce.current=$e,Oe(),Error.prepareStackTrace=je}var Lt=B?B.displayName||B.name:"",yt=Lt?Fe(Lt):"";return typeof B=="function"&&Me.set(B,yt),yt}function H(B,ae,he){return z(B,!1)}function oe(B){var ae=B.prototype;return!!(ae&&ae.isReactComponent)}function de(B,ae,he){if(B==null)return"";if(typeof B=="function")return z(B,oe(B));if(typeof B=="string")return Fe(B);switch(B){case r:return Fe("Suspense");case e:return Fe("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case y:return H(B.render);case d:return de(B.type,ae,he);case C:{var Ee=B,je=Ee._payload,$e=Ee._init;try{return de($e(je),ae,he)}catch{}}}return""}var be=Object.prototype.hasOwnProperty,we={},Te=f.ReactDebugCurrentFrame;function me(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Te.setExtraStackFrame(he)}else Te.setExtraStackFrame(null)}function ye(B,ae,he,Ee,je){{var $e=Function.call.bind(be);for(var Ne in B)if($e(B,Ne)){var Le=void 0;try{if(typeof B[Ne]!="function"){var tt=Error((Ee||"React class")+": "+he+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}Le=B[Ne](ae,Ne,Ee,he,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Le=Je}Le&&!(Le instanceof Error)&&(me(je),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ee||"React class",he,Ne,typeof Le),me(null)),Le instanceof Error&&!(Le.message in we)&&(we[Le.message]=!0,me(je),g("Failed %s type: %s",he,Le.message),me(null))}}}var Se=Array.isArray;function Be(B){return Se(B)}function Z(B){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,he=ae&&B[Symbol.toStringTag]||B.constructor.name||"Object";return he}}function le(B){try{return ie(B),!1}catch{return!0}}function ie(B){return""+B}function fe(B){if(le(B))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Z(B)),ie(B)}var O=f.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0},S,F,U;U={};function K(B){if(be.call(B,"ref")){var ae=Object.getOwnPropertyDescriptor(B,"ref").get;if(ae&&ae.isReactWarning)return!1}return B.ref!==void 0}function ee(B){if(be.call(B,"key")){var ae=Object.getOwnPropertyDescriptor(B,"key").get;if(ae&&ae.isReactWarning)return!1}return B.key!==void 0}function Ae(B,ae){if(typeof B.ref=="string"&&O.current&&ae&&O.current.stateNode!==ae){var he=D(O.current.type);U[he]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(O.current.type),B.ref),U[he]=!0)}}function Ve(B,ae){{var he=function(){S||(S=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"key",{get:he,configurable:!0})}}function Ie(B,ae){{var he=function(){F||(F=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"ref",{get:he,configurable:!0})}}var Ge=function(B,ae,he,Ee,je,$e,Ne){var Le={$$typeof:i,type:B,key:ae,ref:he,props:Ne,_owner:$e};return Le._store={},Object.defineProperty(Le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Le.props),Object.freeze(Le)),Le};function ge(B,ae,he,Ee,je){{var $e,Ne={},Le=null,tt=null;he!==void 0&&(fe(he),Le=""+he),ee(ae)&&(fe(ae.key),Le=""+ae.key),K(ae)&&(tt=ae.ref,Ae(ae,je));for($e in ae)be.call(ae,$e)&&!m.hasOwnProperty($e)&&(Ne[$e]=ae[$e]);if(B&&B.defaultProps){var Je=B.defaultProps;for($e in Je)Ne[$e]===void 0&&(Ne[$e]=Je[$e])}if(Le||tt){var Ye=typeof B=="function"?B.displayName||B.name||"Unknown":B;Le&&Ve(Ne,Ye),tt&&Ie(Ne,Ye)}return Ge(B,Le,tt,je,Ee,O.current,Ne)}}var Zt=f.ReactCurrentOwner,Ft=f.ReactDebugCurrentFrame;function Ot(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Ft.setExtraStackFrame(he)}else Ft.setExtraStackFrame(null)}var Rt;Rt=!1;function Qt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}function Bt(){{if(Zt.current){var B=D(Zt.current.type);if(B)return`
22
22
 
23
- Check the render method of \``+I+"`."}return""}}function ye(I){return""}var ke={};function Le(I){{var ne=Oe();if(!ne){var oe=typeof I=="string"?I:I.displayName||I.name;oe&&(ne=`
23
+ Check the render method of \``+B+"`."}return""}}function Dt(B){return""}var gn={};function Un(B){{var ae=Bt();if(!ae){var he=typeof B=="string"?B:B.displayName||B.name;he&&(ae=`
24
24
 
25
- Check the top-level render call using <`+oe+">.")}return ne}}function Ue(I,ne){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var oe=Le(ne);if(ke[oe])return;ke[oe]=!0;var Se="";I&&I._owner&&I._owner!==ee.current&&(Se=" It was passed a child from "+B(I._owner.type)+"."),de(I),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,Se),de(null)}}function et(I,ne){{if(typeof I!="object")return;if(je(I))for(var oe=0;oe<I.length;oe++){var Se=I[oe];Ae(Se)&&Ue(Se,ne)}else if(Ae(I))I._store&&(I._store.validated=!0);else if(I){var Ne=S(I);if(typeof Ne=="function"&&Ne!==I.entries)for(var Me=Ne.call(I),Fe;!(Fe=Me.next()).done;)Ae(Fe.value)&&Ue(Fe.value,ne)}}}function Nt(I){{var ne=I.type;if(ne==null||typeof ne=="string")return;var oe;if(typeof ne=="function")oe=ne.propTypes;else if(typeof ne=="object"&&(ne.$$typeof===v||ne.$$typeof===u))oe=ne.propTypes;else return;if(oe){var Se=B(ne);we(oe,I.props,"prop",Se,I)}else if(ne.PropTypes!==void 0&&!he){he=!0;var Ne=B(ne);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof ne.getDefaultProps=="function"&&!ne.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(I){{for(var ne=Object.keys(I.props),oe=0;oe<ne.length;oe++){var Se=ne[oe];if(Se!=="children"&&Se!=="key"){de(I),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Se),de(null);break}}I.ref!==null&&(de(I),y("Invalid attribute `ref` supplied to `React.Fragment`."),de(null))}}var Qr={};function Zr(I,ne,oe,Se,Ne,Me){{var Fe=F(I);if(!Fe){var Te="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Je=ye();Je?Te+=Je:Te+=Oe();var $e;I===null?$e="null":je(I)?$e="array":I!==void 0&&I.$$typeof===h?($e="<"+(B(I.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):$e=typeof I,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$e,Te)}var Ge=M(I,ne,oe,Ne,Me);if(Ge==null)return Ge;if(Fe){var nt=ne.children;if(nt!==void 0)if(Se)if(je(nt)){for(var Ot=0;Ot<nt.length;Ot++)et(nt[Ot],I);Object.freeze&&Object.freeze(nt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else et(nt,I)}if(me.call(ne,"key")){var yt=B(I),Qe=Object.keys(ne).filter(function(va){return va!=="key"}),$n=Qe.length>0?"{key: someKey, "+Qe.join(": ..., ")+": ...}":"{key: someKey}";if(!Qr[yt+$n]){var ya=Qe.length>0?"{"+Qe.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+he+">.")}return ae}}function Xt(B,ae){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var he=Un(ae);if(gn[he])return;gn[he]=!0;var Ee="";B&&B._owner&&B._owner!==Zt.current&&(Ee=" It was passed a child from "+D(B._owner.type)+"."),Ot(B),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',he,Ee),Ot(null)}}function en(B,ae){{if(typeof B!="object")return;if(Be(B))for(var he=0;he<B.length;he++){var Ee=B[he];Qt(Ee)&&Xt(Ee,ae)}else if(Qt(B))B._store&&(B._store.validated=!0);else if(B){var je=v(B);if(typeof je=="function"&&je!==B.entries)for(var $e=je.call(B),Ne;!(Ne=$e.next()).done;)Qt(Ne.value)&&Xt(Ne.value,ae)}}}function Nr(B){{var ae=B.type;if(ae==null||typeof ae=="string")return;var he;if(typeof ae=="function")he=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===y||ae.$$typeof===d))he=ae.propTypes;else return;if(he){var Ee=D(ae);ye(he,B.props,"prop",Ee,B)}else if(ae.PropTypes!==void 0&&!Rt){Rt=!0;var je=D(ae);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mr(B){{for(var ae=Object.keys(B.props),he=0;he<ae.length;he++){var Ee=ae[he];if(Ee!=="children"&&Ee!=="key"){Ot(B),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),Ot(null);break}}B.ref!==null&&(Ot(B),g("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var Ht={};function tn(B,ae,he,Ee,je,$e){{var Ne=N(B);if(!Ne){var Le="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=Dt();tt?Le+=tt:Le+=Bt();var Je;B===null?Je="null":Be(B)?Je="array":B!==void 0&&B.$$typeof===i?(Je="<"+(D(B.type)||"Unknown")+" />",Le=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof B,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Le)}var Ye=ge(B,ae,he,je,$e);if(Ye==null)return Ye;if(Ne){var ct=ae.children;if(ct!==void 0)if(Ee)if(Be(ct)){for(var Lt=0;Lt<ct.length;Lt++)en(ct[Lt],B);Object.freeze&&Object.freeze(ct)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else en(ct,B)}if(be.call(ae,"key")){var yt=D(B),st=Object.keys(ae).filter(function(vn){return vn!=="key"}),nn=st.length>0?"{key: someKey, "+st.join(": ..., ")+": ...}":"{key: someKey}";if(!Ht[yt+nn]){var Vn=st.length>0?"{"+st.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,$n,yt,ya,yt),Qr[yt+$n]=!0}}return I===g?_t(Ge):Nt(Ge),Ge}}function da(I,ne,oe){return Zr(I,ne,oe,!0)}function pa(I,ne,oe){return Zr(I,ne,oe,!1)}var ma=pa,ga=da;Pt.Fragment=g,Pt.jsx=ma,Pt.jsxs=ga}()),Pt}process.env.NODE_ENV==="production"?fn.exports=ti():fn.exports=ni();var ve=fn.exports;function ri(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kn={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,nn,yt,Vn,yt),Ht[yt+nn]=!0}}return B===s?Mr(Ye):Nr(Ye),Ye}}function Br(B,ae,he){return tn(B,ae,he,!0)}function $n(B,ae,he){return tn(B,ae,he,!1)}var yn=$n,qn=Br;on.Fragment=s,on.jsx=yn,on.jsxs=qn}()),on}process.env.NODE_ENV==="production"?Wn.exports=co():Wn.exports=uo();var _e=Wn.exports,Jn={};function ho(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gr={exports:{}};/*!
31
31
  * @overview es6-promise - a tiny implementation of Promises/A+.
32
32
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
33
33
  * @license Licensed under MIT license
34
34
  * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
35
35
  * @version v4.2.8+1e68dce6
36
- */(function(n,h){(function(m,g){n.exports=g()})(vt,function(){function m(K){var Z=typeof K;return K!==null&&(Z==="object"||Z==="function")}function g(K){return typeof K=="function"}var w=void 0;Array.isArray?w=Array.isArray:w=function(K){return Object.prototype.toString.call(K)==="[object Array]"};var p=w,s=0,t=void 0,v=void 0,r=function(Z,te){E[s]=Z,E[s+1]=te,s+=2,s===2&&(v?v(R):P())};function e(K){v=K}function u(K){r=K}var _=typeof window<"u"?window:void 0,a=_||{},c=a.MutationObserver||a.WebKitMutationObserver,i=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",S=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function f(){return function(){return process.nextTick(R)}}function y(){return typeof t<"u"?function(){t(R)}:b()}function l(){var K=0,Z=new c(R),te=document.createTextNode("");return Z.observe(te,{characterData:!0}),function(){te.data=K=++K%2}}function o(){var K=new MessageChannel;return K.port1.onmessage=R,function(){return K.port2.postMessage(0)}}function b(){var K=setTimeout;return function(){return K(R,1)}}var E=new Array(1e3);function R(){for(var K=0;K<s;K+=2){var Z=E[K],te=E[K+1];Z(te),E[K]=void 0,E[K+1]=void 0}s=0}function k(){try{var K=Function("return this")().require("vertx");return t=K.runOnLoop||K.runOnContext,y()}catch{return b()}}var P=void 0;i?P=f():c?P=l():S?P=o():_===void 0&&typeof ri=="function"?P=k():P=b();function F(K,Z){var te=this,ie=new this.constructor(B);ie[L]===void 0&&Q(ie);var O=te._state;if(O){var d=arguments[O-1];r(function(){return He(O,ie,d,te._result)})}else Be(te,ie,K,Z);return ie}function U(K){var Z=this;if(K&&typeof K=="object"&&K.constructor===Z)return K;var te=new Z(B);return fe(te,K),te}var L=Math.random().toString(36).substring(2);function B(){}var C=void 0,D=1,G=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function z(){return new TypeError("A promises callback cannot return that same promise.")}function q(K,Z,te,ie){try{K.call(Z,te,ie)}catch(O){return O}}function V(K,Z,te){r(function(ie){var O=!1,d=q(te,Z,function(x){O||(O=!0,Z!==x?fe(ie,x):Ee(ie,x))},function(x){O||(O=!0,xe(ie,x))},"Settle: "+(ie._label||" unknown promise"));!O&&d&&(O=!0,xe(ie,d))},K)}function J(K,Z){Z._state===D?Ee(K,Z._result):Z._state===G?xe(K,Z._result):Be(Z,void 0,function(te){return fe(K,te)},function(te){return xe(K,te)})}function re(K,Z,te){Z.constructor===K.constructor&&te===F&&Z.constructor.resolve===U?J(K,Z):te===void 0?Ee(K,Z):g(te)?V(K,Z,te):Ee(K,Z)}function fe(K,Z){if(K===Z)xe(K,X());else if(m(Z)){var te=void 0;try{te=Z.then}catch(ie){xe(K,ie);return}re(K,Z,te)}else Ee(K,Z)}function Pe(K){K._onerror&&K._onerror(K._result),Re(K)}function Ee(K,Z){K._state===C&&(K._result=Z,K._state=D,K._subscribers.length!==0&&r(Re,K))}function xe(K,Z){K._state===C&&(K._state=G,K._result=Z,r(Pe,K))}function Be(K,Z,te,ie){var O=K._subscribers,d=O.length;K._onerror=null,O[d]=Z,O[d+D]=te,O[d+G]=ie,d===0&&K._state&&r(Re,K)}function Re(K){var Z=K._subscribers,te=K._state;if(Z.length!==0){for(var ie=void 0,O=void 0,d=K._result,x=0;x<Z.length;x+=3)ie=Z[x],O=Z[x+te],ie?He(te,ie,O,d):O(d);K._subscribers.length=0}}function He(K,Z,te,ie){var O=g(te),d=void 0,x=void 0,A=!0;if(O){try{d=te(ie)}catch(j){A=!1,x=j}if(Z===d){xe(Z,z());return}}else d=ie;Z._state!==C||(O&&A?fe(Z,d):A===!1?xe(Z,x):K===D?Ee(Z,d):K===G&&xe(Z,d))}function Ie(K,Z){try{Z(function(ie){fe(K,ie)},function(ie){xe(K,ie)})}catch(te){xe(K,te)}}var H=0;function N(){return H++}function Q(K){K[L]=H++,K._state=void 0,K._result=void 0,K._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var le=function(){function K(Z,te){this._instanceConstructor=Z,this.promise=new Z(B),this.promise[L]||Q(this.promise),p(te)?(this.length=te.length,this._remaining=te.length,this._result=new Array(this.length),this.length===0?Ee(this.promise,this._result):(this.length=this.length||0,this._enumerate(te),this._remaining===0&&Ee(this.promise,this._result))):xe(this.promise,se())}return K.prototype._enumerate=function(te){for(var ie=0;this._state===C&&ie<te.length;ie++)this._eachEntry(te[ie],ie)},K.prototype._eachEntry=function(te,ie){var O=this._instanceConstructor,d=O.resolve;if(d===U){var x=void 0,A=void 0,j=!1;try{x=te.then}catch(Y){j=!0,A=Y}if(x===F&&te._state!==C)this._settledAt(te._state,ie,te._result);else if(typeof x!="function")this._remaining--,this._result[ie]=te;else if(O===_e){var $=new O(B);j?xe($,A):re($,te,x),this._willSettleAt($,ie)}else this._willSettleAt(new O(function(Y){return Y(te)}),ie)}else this._willSettleAt(d(te),ie)},K.prototype._settledAt=function(te,ie,O){var d=this.promise;d._state===C&&(this._remaining--,te===G?xe(d,O):this._result[ie]=O),this._remaining===0&&Ee(d,this._result)},K.prototype._willSettleAt=function(te,ie){var O=this;Be(te,void 0,function(d){return O._settledAt(D,ie,d)},function(d){return O._settledAt(G,ie,d)})},K}();function me(K){return new le(this,K).promise}function pe(K){var Z=this;return p(K)?new Z(function(te,ie){for(var O=K.length,d=0;d<O;d++)Z.resolve(K[d]).then(te,ie)}):new Z(function(te,ie){return ie(new TypeError("You must pass an array to race."))})}function ce(K){var Z=this,te=new Z(B);return xe(te,K),te}function ue(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function we(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var _e=function(){function K(Z){this[L]=N(),this._result=this._state=void 0,this._subscribers=[],B!==Z&&(typeof Z!="function"&&ue(),this instanceof K?Ie(this,Z):we())}return K.prototype.catch=function(te){return this.then(null,te)},K.prototype.finally=function(te){var ie=this,O=ie.constructor;return g(te)?ie.then(function(d){return O.resolve(te()).then(function(){return d})},function(d){return O.resolve(te()).then(function(){throw d})}):ie.then(te,te)},K}();_e.prototype.then=F,_e.all=me,_e.race=pe,_e.resolve=U,_e.reject=ce,_e._setScheduler=e,_e._setAsap=u,_e._asap=r;function je(){var K=void 0;if(typeof vt<"u")K=vt;else if(typeof self<"u")K=self;else try{K=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var Z=K.Promise;if(Z){var te=null;try{te=Object.prototype.toString.call(Z.resolve())}catch{}if(te==="[object Promise]"&&!Z.cast)return}K.Promise=_e}return _e.polyfill=je,_e.Promise=_e,_e})})(Kn);var dn=Kn.exports;function Wn(n,h){return function(){return n.apply(h,arguments)}}const{toString:ii}=Object.prototype,{getPrototypeOf:pn}=Object,jt=(n=>h=>{const m=ii.call(h);return n[m]||(n[m]=m.slice(8,-1).toLowerCase())})(Object.create(null)),it=n=>(n=n.toLowerCase(),h=>jt(h)===n),Mt=n=>h=>typeof h===n,{isArray:St}=Array,Rt=Mt("undefined");function oi(n){return n!==null&&!Rt(n)&&n.constructor!==null&&!Rt(n.constructor)&&Ze(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const zn=it("ArrayBuffer");function si(n){let h;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?h=ArrayBuffer.isView(n):h=n&&n.buffer&&zn(n.buffer),h}const ai=Mt("string"),Ze=Mt("function"),Yn=Mt("number"),Dt=n=>n!==null&&typeof n=="object",li=n=>n===!0||n===!1,Ut=n=>{if(jt(n)!=="object")return!1;const h=pn(n);return(h===null||h===Object.prototype||Object.getPrototypeOf(h)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ci=it("Date"),ui=it("File"),hi=it("Blob"),fi=it("FileList"),di=n=>Dt(n)&&Ze(n.pipe),pi=n=>{let h;return n&&(typeof FormData=="function"&&n instanceof FormData||Ze(n.append)&&((h=jt(n))==="formdata"||h==="object"&&Ze(n.toString)&&n.toString()==="[object FormData]"))},mi=it("URLSearchParams"),[gi,yi,vi,Si]=["ReadableStream","Request","Response","Headers"].map(it),xi=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function At(n,h,{allOwnKeys:m=!1}={}){if(n===null||typeof n>"u")return;let g,w;if(typeof n!="object"&&(n=[n]),St(n))for(g=0,w=n.length;g<w;g++)h.call(null,n[g],g,n);else{const p=m?Object.getOwnPropertyNames(n):Object.keys(n),s=p.length;let t;for(g=0;g<s;g++)t=p[g],h.call(null,n[t],t,n)}}function Jn(n,h){h=h.toLowerCase();const m=Object.keys(n);let g=m.length,w;for(;g-- >0;)if(w=m[g],h===w.toLowerCase())return w;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:vt,Xn=n=>!Rt(n)&&n!==pt;function mn(){const{caseless:n}=Xn(this)&&this||{},h={},m=(g,w)=>{const p=n&&Jn(h,w)||w;Ut(h[p])&&Ut(g)?h[p]=mn(h[p],g):Ut(g)?h[p]=mn({},g):St(g)?h[p]=g.slice():h[p]=g};for(let g=0,w=arguments.length;g<w;g++)arguments[g]&&At(arguments[g],m);return h}const bi=(n,h,m,{allOwnKeys:g}={})=>(At(h,(w,p)=>{m&&Ze(w)?n[p]=Wn(w,m):n[p]=w},{allOwnKeys:g}),n),Ei=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),wi=(n,h,m,g)=>{n.prototype=Object.create(h.prototype,g),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:h.prototype}),m&&Object.assign(n.prototype,m)},_i=(n,h,m,g)=>{let w,p,s;const t={};if(h=h||{},n==null)return h;do{for(w=Object.getOwnPropertyNames(n),p=w.length;p-- >0;)s=w[p],(!g||g(s,n,h))&&!t[s]&&(h[s]=n[s],t[s]=!0);n=m!==!1&&pn(n)}while(n&&(!m||m(n,h))&&n!==Object.prototype);return h},Oi=(n,h,m)=>{n=String(n),(m===void 0||m>n.length)&&(m=n.length),m-=h.length;const g=n.indexOf(h,m);return g!==-1&&g===m},ki=n=>{if(!n)return null;if(St(n))return n;let h=n.length;if(!Yn(h))return null;const m=new Array(h);for(;h-- >0;)m[h]=n[h];return m},Pi=(n=>h=>n&&h instanceof n)(typeof Uint8Array<"u"&&pn(Uint8Array)),Ri=(n,h)=>{const g=(n&&n[Symbol.iterator]).call(n);let w;for(;(w=g.next())&&!w.done;){const p=w.value;h.call(n,p[0],p[1])}},Ai=(n,h)=>{let m;const g=[];for(;(m=n.exec(h))!==null;)g.push(m);return g},Ti=it("HTMLFormElement"),Ci=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(m,g,w){return g.toUpperCase()+w}),Qn=(({hasOwnProperty:n})=>(h,m)=>n.call(h,m))(Object.prototype),Fi=it("RegExp"),Zn=(n,h)=>{const m=Object.getOwnPropertyDescriptors(n),g={};At(m,(w,p)=>{let s;(s=h(w,p,n))!==!1&&(g[p]=s||w)}),Object.defineProperties(n,g)},Ii=n=>{Zn(n,(h,m)=>{if(Ze(n)&&["arguments","caller","callee"].indexOf(m)!==-1)return!1;const g=n[m];if(Ze(g)){if(h.enumerable=!1,"writable"in h){h.writable=!1;return}h.set||(h.set=()=>{throw Error("Can not rewrite read-only method '"+m+"'")})}})},Li=(n,h)=>{const m={},g=w=>{w.forEach(p=>{m[p]=!0})};return St(n)?g(n):g(String(n).split(h)),m},Bi=()=>{},Ni=(n,h)=>n!=null&&Number.isFinite(n=+n)?n:h,gn="abcdefghijklmnopqrstuvwxyz",er="0123456789",tr={DIGIT:er,ALPHA:gn,ALPHA_DIGIT:gn+gn.toUpperCase()+er},ji=(n=16,h=tr.ALPHA_DIGIT)=>{let m="";const{length:g}=h;for(;n--;)m+=h[Math.random()*g|0];return m};function Mi(n){return!!(n&&Ze(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Di=n=>{const h=new Array(10),m=(g,w)=>{if(Dt(g)){if(h.indexOf(g)>=0)return;if(!("toJSON"in g)){h[w]=g;const p=St(g)?[]:{};return At(g,(s,t)=>{const v=m(s,w+1);!Rt(v)&&(p[t]=v)}),h[w]=void 0,p}}return g};return m(n,0)},Ui=it("AsyncFunction"),Hi=n=>n&&(Dt(n)||Ze(n))&&Ze(n.then)&&Ze(n.catch),nr=((n,h)=>n?setImmediate:h?((m,g)=>(pt.addEventListener("message",({source:w,data:p})=>{w===pt&&p===m&&g.length&&g.shift()()},!1),w=>{g.push(w),pt.postMessage(m,"*")}))(`axios@${Math.random()}`,[]):m=>setTimeout(m))(typeof setImmediate=="function",Ze(pt.postMessage)),$i=typeof queueMicrotask<"u"?queueMicrotask.bind(pt):typeof process<"u"&&process.nextTick||nr;var W={isArray:St,isArrayBuffer:zn,isBuffer:oi,isFormData:pi,isArrayBufferView:si,isString:ai,isNumber:Yn,isBoolean:li,isObject:Dt,isPlainObject:Ut,isReadableStream:gi,isRequest:yi,isResponse:vi,isHeaders:Si,isUndefined:Rt,isDate:ci,isFile:ui,isBlob:hi,isRegExp:Fi,isFunction:Ze,isStream:di,isURLSearchParams:mi,isTypedArray:Pi,isFileList:fi,forEach:At,merge:mn,extend:bi,trim:xi,stripBOM:Ei,inherits:wi,toFlatObject:_i,kindOf:jt,kindOfTest:it,endsWith:Oi,toArray:ki,forEachEntry:Ri,matchAll:Ai,isHTMLForm:Ti,hasOwnProperty:Qn,hasOwnProp:Qn,reduceDescriptors:Zn,freezeMethods:Ii,toObjectSet:Li,toCamelCase:Ci,noop:Bi,toFiniteNumber:Ni,findKey:Jn,global:pt,isContextDefined:Xn,ALPHABET:tr,generateString:ji,isSpecCompliantForm:Mi,toJSONObject:Di,isAsyncFn:Ui,isThenable:Hi,setImmediate:nr,asap:$i};function be(n,h,m,g,w){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",h&&(this.code=h),m&&(this.config=m),g&&(this.request=g),w&&(this.response=w,this.status=w.status?w.status:null)}W.inherits(be,Error,{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:W.toJSONObject(this.config),code:this.code,status:this.status}}});const rr=be.prototype,ir={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{ir[n]={value:n}}),Object.defineProperties(be,ir),Object.defineProperty(rr,"isAxiosError",{value:!0}),be.from=(n,h,m,g,w,p)=>{const s=Object.create(rr);return W.toFlatObject(n,s,function(v){return v!==Error.prototype},t=>t!=="isAxiosError"),be.call(s,n.message,h,m,g,w),s.cause=n,s.name=n.name,p&&Object.assign(s,p),s};var qi=null;function yn(n){return W.isPlainObject(n)||W.isArray(n)}function or(n){return W.endsWith(n,"[]")?n.slice(0,-2):n}function sr(n,h,m){return n?n.concat(h).map(function(w,p){return w=or(w),!m&&p?"["+w+"]":w}).join(m?".":""):h}function Gi(n){return W.isArray(n)&&!n.some(yn)}const Vi=W.toFlatObject(W,{},null,function(h){return/^is[A-Z]/.test(h)});function Ht(n,h,m){if(!W.isObject(n))throw new TypeError("target must be an object");h=h||new FormData,m=W.toFlatObject(m,{metaTokens:!0,dots:!1,indexes:!1},!1,function(i,S){return!W.isUndefined(S[i])});const g=m.metaTokens,w=m.visitor||e,p=m.dots,s=m.indexes,v=(m.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(h);if(!W.isFunction(w))throw new TypeError("visitor must be a function");function r(c){if(c===null)return"";if(W.isDate(c))return c.toISOString();if(!v&&W.isBlob(c))throw new be("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(c)||W.isTypedArray(c)?v&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function e(c,i,S){let f=c;if(c&&!S&&typeof c=="object"){if(W.endsWith(i,"{}"))i=g?i:i.slice(0,-2),c=JSON.stringify(c);else if(W.isArray(c)&&Gi(c)||(W.isFileList(c)||W.endsWith(i,"[]"))&&(f=W.toArray(c)))return i=or(i),f.forEach(function(l,o){!(W.isUndefined(l)||l===null)&&h.append(s===!0?sr([i],o,p):s===null?i:i+"[]",r(l))}),!1}return yn(c)?!0:(h.append(sr(S,i,p),r(c)),!1)}const u=[],_=Object.assign(Vi,{defaultVisitor:e,convertValue:r,isVisitable:yn});function a(c,i){if(!W.isUndefined(c)){if(u.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));u.push(c),W.forEach(c,function(f,y){(!(W.isUndefined(f)||f===null)&&w.call(h,f,W.isString(y)?y.trim():y,i,_))===!0&&a(f,i?i.concat(y):[y])}),u.pop()}}if(!W.isObject(n))throw new TypeError("data must be an object");return a(n),h}function ar(n){const h={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(g){return h[g]})}function vn(n,h){this._pairs=[],n&&Ht(n,this,h)}const lr=vn.prototype;lr.append=function(h,m){this._pairs.push([h,m])},lr.toString=function(h){const m=h?function(g){return h.call(this,g,ar)}:ar;return this._pairs.map(function(w){return m(w[0])+"="+m(w[1])},"").join("&")};function Ki(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cr(n,h,m){if(!h)return n;const g=m&&m.encode||Ki,w=m&&m.serialize;let p;if(w?p=w(h,m):p=W.isURLSearchParams(h)?h.toString():new vn(h,m).toString(g),p){const s=n.indexOf("#");s!==-1&&(n=n.slice(0,s)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class Wi{constructor(){this.handlers=[]}use(h,m,g){return this.handlers.push({fulfilled:h,rejected:m,synchronous:g?g.synchronous:!1,runWhen:g?g.runWhen:null}),this.handlers.length-1}eject(h){this.handlers[h]&&(this.handlers[h]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(h){W.forEach(this.handlers,function(g){g!==null&&h(g)})}}var ur=Wi,hr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zi=typeof URLSearchParams<"u"?URLSearchParams:vn,Yi=typeof FormData<"u"?FormData:null,Ji=typeof Blob<"u"?Blob:null,Xi={isBrowser:!0,classes:{URLSearchParams:zi,FormData:Yi,Blob:Ji},protocols:["http","https","file","blob","url","data"]};const Sn=typeof window<"u"&&typeof document<"u",xn=typeof navigator=="object"&&navigator||void 0,Qi=Sn&&(!xn||["ReactNative","NativeScript","NS"].indexOf(xn.product)<0),Zi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eo=Sn&&window.location.href||"http://localhost";var to=Object.freeze({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserWebWorkerEnv:Zi,hasStandardBrowserEnv:Qi,navigator:xn,origin:eo}),Xe={...to,...Xi};function no(n,h){return Ht(n,new Xe.classes.URLSearchParams,Object.assign({visitor:function(m,g,w,p){return Xe.isNode&&W.isBuffer(m)?(this.append(g,m.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},h))}function ro(n){return W.matchAll(/\w+|\[(\w*)]/g,n).map(h=>h[0]==="[]"?"":h[1]||h[0])}function io(n){const h={},m=Object.keys(n);let g;const w=m.length;let p;for(g=0;g<w;g++)p=m[g],h[p]=n[p];return h}function fr(n){function h(m,g,w,p){let s=m[p++];if(s==="__proto__")return!0;const t=Number.isFinite(+s),v=p>=m.length;return s=!s&&W.isArray(w)?w.length:s,v?(W.hasOwnProp(w,s)?w[s]=[w[s],g]:w[s]=g,!t):((!w[s]||!W.isObject(w[s]))&&(w[s]=[]),h(m,g,w[s],p)&&W.isArray(w[s])&&(w[s]=io(w[s])),!t)}if(W.isFormData(n)&&W.isFunction(n.entries)){const m={};return W.forEachEntry(n,(g,w)=>{h(ro(g),w,m,0)}),m}return null}function oo(n,h,m){if(W.isString(n))try{return(h||JSON.parse)(n),W.trim(n)}catch(g){if(g.name!=="SyntaxError")throw g}return(0,JSON.stringify)(n)}const bn={transitional:hr,adapter:["xhr","http","fetch"],transformRequest:[function(h,m){const g=m.getContentType()||"",w=g.indexOf("application/json")>-1,p=W.isObject(h);if(p&&W.isHTMLForm(h)&&(h=new FormData(h)),W.isFormData(h))return w?JSON.stringify(fr(h)):h;if(W.isArrayBuffer(h)||W.isBuffer(h)||W.isStream(h)||W.isFile(h)||W.isBlob(h)||W.isReadableStream(h))return h;if(W.isArrayBufferView(h))return h.buffer;if(W.isURLSearchParams(h))return m.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),h.toString();let t;if(p){if(g.indexOf("application/x-www-form-urlencoded")>-1)return no(h,this.formSerializer).toString();if((t=W.isFileList(h))||g.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Ht(t?{"files[]":h}:h,v&&new v,this.formSerializer)}}return p||w?(m.setContentType("application/json",!1),oo(h)):h}],transformResponse:[function(h){const m=this.transitional||bn.transitional,g=m&&m.forcedJSONParsing,w=this.responseType==="json";if(W.isResponse(h)||W.isReadableStream(h))return h;if(h&&W.isString(h)&&(g&&!this.responseType||w)){const s=!(m&&m.silentJSONParsing)&&w;try{return JSON.parse(h)}catch(t){if(s)throw t.name==="SyntaxError"?be.from(t,be.ERR_BAD_RESPONSE,this,null,this.response):t}}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],n=>{bn.headers[n]={}});var En=bn;const so=W.toObjectSet(["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"]);var ao=n=>{const h={};let m,g,w;return n&&n.split(`
37
- `).forEach(function(s){w=s.indexOf(":"),m=s.substring(0,w).trim().toLowerCase(),g=s.substring(w+1).trim(),!(!m||h[m]&&so[m])&&(m==="set-cookie"?h[m]?h[m].push(g):h[m]=[g]:h[m]=h[m]?h[m]+", "+g:g)}),h};const dr=Symbol("internals");function Tt(n){return n&&String(n).trim().toLowerCase()}function $t(n){return n===!1||n==null?n:W.isArray(n)?n.map($t):String(n)}function lo(n){const h=Object.create(null),m=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let g;for(;g=m.exec(n);)h[g[1]]=g[2];return h}const co=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function wn(n,h,m,g,w){if(W.isFunction(g))return g.call(this,h,m);if(w&&(h=m),!!W.isString(h)){if(W.isString(g))return h.indexOf(g)!==-1;if(W.isRegExp(g))return g.test(h)}}function uo(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(h,m,g)=>m.toUpperCase()+g)}function ho(n,h){const m=W.toCamelCase(" "+h);["get","set","has"].forEach(g=>{Object.defineProperty(n,g+m,{value:function(w,p,s){return this[g].call(this,h,w,p,s)},configurable:!0})})}class qt{constructor(h){h&&this.set(h)}set(h,m,g){const w=this;function p(t,v,r){const e=Tt(v);if(!e)throw new Error("header name must be a non-empty string");const u=W.findKey(w,e);(!u||w[u]===void 0||r===!0||r===void 0&&w[u]!==!1)&&(w[u||v]=$t(t))}const s=(t,v)=>W.forEach(t,(r,e)=>p(r,e,v));if(W.isPlainObject(h)||h instanceof this.constructor)s(h,m);else if(W.isString(h)&&(h=h.trim())&&!co(h))s(ao(h),m);else if(W.isHeaders(h))for(const[t,v]of h.entries())p(v,t,g);else h!=null&&p(m,h,g);return this}get(h,m){if(h=Tt(h),h){const g=W.findKey(this,h);if(g){const w=this[g];if(!m)return w;if(m===!0)return lo(w);if(W.isFunction(m))return m.call(this,w,g);if(W.isRegExp(m))return m.exec(w);throw new TypeError("parser must be boolean|regexp|function")}}}has(h,m){if(h=Tt(h),h){const g=W.findKey(this,h);return!!(g&&this[g]!==void 0&&(!m||wn(this,this[g],g,m)))}return!1}delete(h,m){const g=this;let w=!1;function p(s){if(s=Tt(s),s){const t=W.findKey(g,s);t&&(!m||wn(g,g[t],t,m))&&(delete g[t],w=!0)}}return W.isArray(h)?h.forEach(p):p(h),w}clear(h){const m=Object.keys(this);let g=m.length,w=!1;for(;g--;){const p=m[g];(!h||wn(this,this[p],p,h,!0))&&(delete this[p],w=!0)}return w}normalize(h){const m=this,g={};return W.forEach(this,(w,p)=>{const s=W.findKey(g,p);if(s){m[s]=$t(w),delete m[p];return}const t=h?uo(p):String(p).trim();t!==p&&delete m[p],m[t]=$t(w),g[t]=!0}),this}concat(...h){return this.constructor.concat(this,...h)}toJSON(h){const m=Object.create(null);return W.forEach(this,(g,w)=>{g!=null&&g!==!1&&(m[w]=h&&W.isArray(g)?g.join(", "):g)}),m}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([h,m])=>h+": "+m).join(`
38
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(h){return h instanceof this?h:new this(h)}static concat(h,...m){const g=new this(h);return m.forEach(w=>g.set(w)),g}static accessor(h){const g=(this[dr]=this[dr]={accessors:{}}).accessors,w=this.prototype;function p(s){const t=Tt(s);g[t]||(ho(w,s),g[t]=!0)}return W.isArray(h)?h.forEach(p):p(h),this}}qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(qt.prototype,({value:n},h)=>{let m=h[0].toUpperCase()+h.slice(1);return{get:()=>n,set(g){this[m]=g}}}),W.freezeMethods(qt);var ot=qt;function _n(n,h){const m=this||En,g=h||m,w=ot.from(g.headers);let p=g.data;return W.forEach(n,function(t){p=t.call(m,p,w.normalize(),h?h.status:void 0)}),w.normalize(),p}function pr(n){return!!(n&&n.__CANCEL__)}function xt(n,h,m){be.call(this,n??"canceled",be.ERR_CANCELED,h,m),this.name="CanceledError"}W.inherits(xt,be,{__CANCEL__:!0});function mr(n,h,m){const g=m.config.validateStatus;!m.status||!g||g(m.status)?n(m):h(new be("Request failed with status code "+m.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(m.status/100)-4],m.config,m.request,m))}function fo(n){const h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return h&&h[1]||""}function po(n,h){n=n||10;const m=new Array(n),g=new Array(n);let w=0,p=0,s;return h=h!==void 0?h:1e3,function(v){const r=Date.now(),e=g[p];s||(s=r),m[w]=v,g[w]=r;let u=p,_=0;for(;u!==w;)_+=m[u++],u=u%n;if(w=(w+1)%n,w===p&&(p=(p+1)%n),r-s<h)return;const a=e&&r-e;return a?Math.round(_*1e3/a):void 0}}function mo(n,h){let m=0,g=1e3/h,w,p;const s=(r,e=Date.now())=>{m=e,w=null,p&&(clearTimeout(p),p=null),n.apply(null,r)};return[(...r)=>{const e=Date.now(),u=e-m;u>=g?s(r,e):(w=r,p||(p=setTimeout(()=>{p=null,s(w)},g-u)))},()=>w&&s(w)]}const Gt=(n,h,m=3)=>{let g=0;const w=po(50,250);return mo(p=>{const s=p.loaded,t=p.lengthComputable?p.total:void 0,v=s-g,r=w(v),e=s<=t;g=s;const u={loaded:s,total:t,progress:t?s/t:void 0,bytes:v,rate:r||void 0,estimated:r&&t&&e?(t-s)/r:void 0,event:p,lengthComputable:t!=null,[h?"download":"upload"]:!0};n(u)},m)},gr=(n,h)=>{const m=n!=null;return[g=>h[0]({lengthComputable:m,total:n,loaded:g}),h[1]]},yr=n=>(...h)=>W.asap(()=>n(...h));var go=Xe.hasStandardBrowserEnv?function(){const h=Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent),m=document.createElement("a");let g;function w(p){let s=p;return h&&(m.setAttribute("href",s),s=m.href),m.setAttribute("href",s),{href:m.href,protocol:m.protocol?m.protocol.replace(/:$/,""):"",host:m.host,search:m.search?m.search.replace(/^\?/,""):"",hash:m.hash?m.hash.replace(/^#/,""):"",hostname:m.hostname,port:m.port,pathname:m.pathname.charAt(0)==="/"?m.pathname:"/"+m.pathname}}return g=w(window.location.href),function(s){const t=W.isString(s)?w(s):s;return t.protocol===g.protocol&&t.host===g.host}}():function(){return function(){return!0}}(),yo=Xe.hasStandardBrowserEnv?{write(n,h,m,g,w,p){const s=[n+"="+encodeURIComponent(h)];W.isNumber(m)&&s.push("expires="+new Date(m).toGMTString()),W.isString(g)&&s.push("path="+g),W.isString(w)&&s.push("domain="+w),p===!0&&s.push("secure"),document.cookie=s.join("; ")},read(n){const h=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return h?decodeURIComponent(h[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vo(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function So(n,h){return h?n.replace(/\/?\/$/,"")+"/"+h.replace(/^\/+/,""):n}function vr(n,h){return n&&!vo(h)?So(n,h):h}const Sr=n=>n instanceof ot?{...n}:n;function mt(n,h){h=h||{};const m={};function g(r,e,u){return W.isPlainObject(r)&&W.isPlainObject(e)?W.merge.call({caseless:u},r,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function w(r,e,u){if(W.isUndefined(e)){if(!W.isUndefined(r))return g(void 0,r,u)}else return g(r,e,u)}function p(r,e){if(!W.isUndefined(e))return g(void 0,e)}function s(r,e){if(W.isUndefined(e)){if(!W.isUndefined(r))return g(void 0,r)}else return g(void 0,e)}function t(r,e,u){if(u in h)return g(r,e);if(u in n)return g(void 0,r)}const v={url:p,method:p,data:p,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:t,headers:(r,e)=>w(Sr(r),Sr(e),!0)};return W.forEach(Object.keys(Object.assign({},n,h)),function(e){const u=v[e]||w,_=u(n[e],h[e],e);W.isUndefined(_)&&u!==t||(m[e]=_)}),m}var xr=n=>{const h=mt({},n);let{data:m,withXSRFToken:g,xsrfHeaderName:w,xsrfCookieName:p,headers:s,auth:t}=h;h.headers=s=ot.from(s),h.url=cr(vr(h.baseURL,h.url),n.params,n.paramsSerializer),t&&s.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):"")));let v;if(W.isFormData(m)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((v=s.getContentType())!==!1){const[r,...e]=v?v.split(";").map(u=>u.trim()).filter(Boolean):[];s.setContentType([r||"multipart/form-data",...e].join("; "))}}if(Xe.hasStandardBrowserEnv&&(g&&W.isFunction(g)&&(g=g(h)),g||g!==!1&&go(h.url))){const r=w&&p&&yo.read(p);r&&s.set(w,r)}return h},xo=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(m,g){const w=xr(n);let p=w.data;const s=ot.from(w.headers).normalize();let{responseType:t,onUploadProgress:v,onDownloadProgress:r}=w,e,u,_,a,c;function i(){a&&a(),c&&c(),w.cancelToken&&w.cancelToken.unsubscribe(e),w.signal&&w.signal.removeEventListener("abort",e)}let S=new XMLHttpRequest;S.open(w.method.toUpperCase(),w.url,!0),S.timeout=w.timeout;function f(){if(!S)return;const l=ot.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),b={data:!t||t==="text"||t==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:l,config:n,request:S};mr(function(R){m(R),i()},function(R){g(R),i()},b),S=null}"onloadend"in S?S.onloadend=f:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(f)},S.onabort=function(){S&&(g(new be("Request aborted",be.ECONNABORTED,n,S)),S=null)},S.onerror=function(){g(new be("Network Error",be.ERR_NETWORK,n,S)),S=null},S.ontimeout=function(){let o=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded";const b=w.transitional||hr;w.timeoutErrorMessage&&(o=w.timeoutErrorMessage),g(new be(o,b.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,n,S)),S=null},p===void 0&&s.setContentType(null),"setRequestHeader"in S&&W.forEach(s.toJSON(),function(o,b){S.setRequestHeader(b,o)}),W.isUndefined(w.withCredentials)||(S.withCredentials=!!w.withCredentials),t&&t!=="json"&&(S.responseType=w.responseType),r&&([_,c]=Gt(r,!0),S.addEventListener("progress",_)),v&&S.upload&&([u,a]=Gt(v),S.upload.addEventListener("progress",u),S.upload.addEventListener("loadend",a)),(w.cancelToken||w.signal)&&(e=l=>{S&&(g(!l||l.type?new xt(null,n,S):l),S.abort(),S=null)},w.cancelToken&&w.cancelToken.subscribe(e),w.signal&&(w.signal.aborted?e():w.signal.addEventListener("abort",e)));const y=fo(w.url);if(y&&Xe.protocols.indexOf(y)===-1){g(new be("Unsupported protocol "+y+":",be.ERR_BAD_REQUEST,n));return}S.send(p||null)})},bo=(n,h)=>{const{length:m}=n=n?n.filter(Boolean):[];if(h||m){let g=new AbortController,w;const p=function(r){if(!w){w=!0,t();const e=r instanceof Error?r:this.reason;g.abort(e instanceof be?e:new xt(e instanceof Error?e.message:e))}};let s=h&&setTimeout(()=>{s=null,p(new be(`timeout ${h} of ms exceeded`,be.ETIMEDOUT))},h);const t=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(r=>{r.unsubscribe?r.unsubscribe(p):r.removeEventListener("abort",p)}),n=null)};n.forEach(r=>r.addEventListener("abort",p));const{signal:v}=g;return v.unsubscribe=()=>W.asap(t),v}};const Eo=function*(n,h){let m=n.byteLength;if(m<h){yield n;return}let g=0,w;for(;g<m;)w=g+h,yield n.slice(g,w),g=w},wo=async function*(n,h){for await(const m of _o(n))yield*Eo(m,h)},_o=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const h=n.getReader();try{for(;;){const{done:m,value:g}=await h.read();if(m)break;yield g}}finally{await h.cancel()}},br=(n,h,m,g)=>{const w=wo(n,h);let p=0,s,t=v=>{s||(s=!0,g&&g(v))};return new ReadableStream({async pull(v){try{const{done:r,value:e}=await w.next();if(r){t(),v.close();return}let u=e.byteLength;if(m){let _=p+=u;m(_)}v.enqueue(new Uint8Array(e))}catch(r){throw t(r),r}},cancel(v){return t(v),w.return()}},{highWaterMark:2})},Vt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Er=Vt&&typeof ReadableStream=="function",Oo=Vt&&(typeof TextEncoder=="function"?(n=>h=>n.encode(h))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),wr=(n,...h)=>{try{return!!n(...h)}catch{return!1}},ko=Er&&wr(()=>{let n=!1;const h=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!h}),_r=64*1024,On=Er&&wr(()=>W.isReadableStream(new Response("").body)),Kt={stream:On&&(n=>n.body)};Vt&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!Kt[h]&&(Kt[h]=W.isFunction(n[h])?m=>m[h]():(m,g)=>{throw new be(`Response type '${h}' is not supported`,be.ERR_NOT_SUPPORT,g)})})})(new Response);const Po=async n=>{if(n==null)return 0;if(W.isBlob(n))return n.size;if(W.isSpecCompliantForm(n))return(await new Request(Xe.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(W.isArrayBufferView(n)||W.isArrayBuffer(n))return n.byteLength;if(W.isURLSearchParams(n)&&(n=n+""),W.isString(n))return(await Oo(n)).byteLength},Ro=async(n,h)=>{const m=W.toFiniteNumber(n.getContentLength());return m??Po(h)};var Ao=Vt&&(async n=>{let{url:h,method:m,data:g,signal:w,cancelToken:p,timeout:s,onDownloadProgress:t,onUploadProgress:v,responseType:r,headers:e,withCredentials:u="same-origin",fetchOptions:_}=xr(n);r=r?(r+"").toLowerCase():"text";let a=bo([w,p&&p.toAbortSignal()],s),c;const i=a&&a.unsubscribe&&(()=>{a.unsubscribe()});let S;try{if(v&&ko&&m!=="get"&&m!=="head"&&(S=await Ro(e,g))!==0){let b=new Request(h,{method:"POST",body:g,duplex:"half"}),E;if(W.isFormData(g)&&(E=b.headers.get("content-type"))&&e.setContentType(E),b.body){const[R,k]=gr(S,Gt(yr(v)));g=br(b.body,_r,R,k)}}W.isString(u)||(u=u?"include":"omit");const f="credentials"in Request.prototype;c=new Request(h,{..._,signal:a,method:m.toUpperCase(),headers:e.normalize().toJSON(),body:g,duplex:"half",credentials:f?u:void 0});let y=await fetch(c);const l=On&&(r==="stream"||r==="response");if(On&&(t||l&&i)){const b={};["status","statusText","headers"].forEach(P=>{b[P]=y[P]});const E=W.toFiniteNumber(y.headers.get("content-length")),[R,k]=t&&gr(E,Gt(yr(t),!0))||[];y=new Response(br(y.body,_r,R,()=>{k&&k(),i&&i()}),b)}r=r||"text";let o=await Kt[W.findKey(Kt,r)||"text"](y,n);return!l&&i&&i(),await new Promise((b,E)=>{mr(b,E,{data:o,headers:ot.from(y.headers),status:y.status,statusText:y.statusText,config:n,request:c})})}catch(f){throw i&&i(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,n,c),{cause:f.cause||f}):be.from(f,f&&f.code,n,c)}});const kn={http:qi,xhr:xo,fetch:Ao};W.forEach(kn,(n,h)=>{if(n){try{Object.defineProperty(n,"name",{value:h})}catch{}Object.defineProperty(n,"adapterName",{value:h})}});const Or=n=>`- ${n}`,To=n=>W.isFunction(n)||n===null||n===!1;var kr={getAdapter:n=>{n=W.isArray(n)?n:[n];const{length:h}=n;let m,g;const w={};for(let p=0;p<h;p++){m=n[p];let s;if(g=m,!To(m)&&(g=kn[(s=String(m)).toLowerCase()],g===void 0))throw new be(`Unknown adapter '${s}'`);if(g)break;w[s||"#"+p]=g}if(!g){const p=Object.entries(w).map(([t,v])=>`adapter ${t} `+(v===!1?"is not supported by the environment":"is not available in the build"));let s=h?p.length>1?`since :
39
- `+p.map(Or).join(`
40
- `):" "+Or(p[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return g},adapters:kn};function Pn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new xt(null,n)}function Pr(n){return Pn(n),n.headers=ot.from(n.headers),n.data=_n.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),kr.getAdapter(n.adapter||En.adapter)(n).then(function(g){return Pn(n),g.data=_n.call(n,n.transformResponse,g),g.headers=ot.from(g.headers),g},function(g){return pr(g)||(Pn(n),g&&g.response&&(g.response.data=_n.call(n,n.transformResponse,g.response),g.response.headers=ot.from(g.response.headers))),Promise.reject(g)})}const Rr="1.7.7",Rn={};["object","boolean","number","function","string","symbol"].forEach((n,h)=>{Rn[n]=function(g){return typeof g===n||"a"+(h<1?"n ":" ")+n}});const Ar={};Rn.transitional=function(h,m,g){function w(p,s){return"[Axios v"+Rr+"] Transitional option '"+p+"'"+s+(g?". "+g:"")}return(p,s,t)=>{if(h===!1)throw new be(w(s," has been removed"+(m?" in "+m:"")),be.ERR_DEPRECATED);return m&&!Ar[s]&&(Ar[s]=!0,console.warn(w(s," has been deprecated since v"+m+" and will be removed in the near future"))),h?h(p,s,t):!0}};function Co(n,h,m){if(typeof n!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const g=Object.keys(n);let w=g.length;for(;w-- >0;){const p=g[w],s=h[p];if(s){const t=n[p],v=t===void 0||s(t,p,n);if(v!==!0)throw new be("option "+p+" must be "+v,be.ERR_BAD_OPTION_VALUE);continue}if(m!==!0)throw new be("Unknown option "+p,be.ERR_BAD_OPTION)}}var An={assertOptions:Co,validators:Rn};const lt=An.validators;class Wt{constructor(h){this.defaults=h,this.interceptors={request:new ur,response:new ur}}async request(h,m){try{return await this._request(h,m)}catch(g){if(g instanceof Error){let w;Error.captureStackTrace?Error.captureStackTrace(w={}):w=new Error;const p=w.stack?w.stack.replace(/^.+\n/,""):"";try{g.stack?p&&!String(g.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(g.stack+=`
41
- `+p):g.stack=p}catch{}}throw g}}_request(h,m){typeof h=="string"?(m=m||{},m.url=h):m=h||{},m=mt(this.defaults,m);const{transitional:g,paramsSerializer:w,headers:p}=m;g!==void 0&&An.assertOptions(g,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),w!=null&&(W.isFunction(w)?m.paramsSerializer={serialize:w}:An.assertOptions(w,{encode:lt.function,serialize:lt.function},!0)),m.method=(m.method||this.defaults.method||"get").toLowerCase();let s=p&&W.merge(p.common,p[m.method]);p&&W.forEach(["delete","get","head","post","put","patch","common"],c=>{delete p[c]}),m.headers=ot.concat(s,p);const t=[];let v=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(m)===!1||(v=v&&i.synchronous,t.unshift(i.fulfilled,i.rejected))});const r=[];this.interceptors.response.forEach(function(i){r.push(i.fulfilled,i.rejected)});let e,u=0,_;if(!v){const c=[Pr.bind(this),void 0];for(c.unshift.apply(c,t),c.push.apply(c,r),_=c.length,e=Promise.resolve(m);u<_;)e=e.then(c[u++],c[u++]);return e}_=t.length;let a=m;for(u=0;u<_;){const c=t[u++],i=t[u++];try{a=c(a)}catch(S){i.call(this,S);break}}try{e=Pr.call(this,a)}catch(c){return Promise.reject(c)}for(u=0,_=r.length;u<_;)e=e.then(r[u++],r[u++]);return e}getUri(h){h=mt(this.defaults,h);const m=vr(h.baseURL,h.url);return cr(m,h.params,h.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(h){Wt.prototype[h]=function(m,g){return this.request(mt(g||{},{method:h,url:m,data:(g||{}).data}))}}),W.forEach(["post","put","patch"],function(h){function m(g){return function(p,s,t){return this.request(mt(t||{},{method:h,headers:g?{"Content-Type":"multipart/form-data"}:{},url:p,data:s}))}}Wt.prototype[h]=m(),Wt.prototype[h+"Form"]=m(!0)});var zt=Wt;class Tn{constructor(h){if(typeof h!="function")throw new TypeError("executor must be a function.");let m;this.promise=new Promise(function(p){m=p});const g=this;this.promise.then(w=>{if(!g._listeners)return;let p=g._listeners.length;for(;p-- >0;)g._listeners[p](w);g._listeners=null}),this.promise.then=w=>{let p;const s=new Promise(t=>{g.subscribe(t),p=t}).then(w);return s.cancel=function(){g.unsubscribe(p)},s},h(function(p,s,t){g.reason||(g.reason=new xt(p,s,t),m(g.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(h){if(this.reason){h(this.reason);return}this._listeners?this._listeners.push(h):this._listeners=[h]}unsubscribe(h){if(!this._listeners)return;const m=this._listeners.indexOf(h);m!==-1&&this._listeners.splice(m,1)}toAbortSignal(){const h=new AbortController,m=g=>{h.abort(g)};return this.subscribe(m),h.signal.unsubscribe=()=>this.unsubscribe(m),h.signal}static source(){let h;return{token:new Tn(function(w){h=w}),cancel:h}}}var Fo=Tn;function Io(n){return function(m){return n.apply(null,m)}}function Lo(n){return W.isObject(n)&&n.isAxiosError===!0}const Cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cn).forEach(([n,h])=>{Cn[h]=n});var Bo=Cn;function Tr(n){const h=new zt(n),m=Wn(zt.prototype.request,h);return W.extend(m,zt.prototype,h,{allOwnKeys:!0}),W.extend(m,h,null,{allOwnKeys:!0}),m.create=function(w){return Tr(mt(n,w))},m}const qe=Tr(En);qe.Axios=zt,qe.CanceledError=xt,qe.CancelToken=Fo,qe.isCancel=pr,qe.VERSION=Rr,qe.toFormData=Ht,qe.AxiosError=be,qe.Cancel=qe.CanceledError,qe.all=function(h){return Promise.all(h)},qe.spread=Io,qe.isAxiosError=Lo,qe.mergeConfig=mt,qe.AxiosHeaders=ot,qe.formToJSON=n=>fr(W.isHTMLForm(n)?new FormData(n):n),qe.getAdapter=kr.getAdapter,qe.HttpStatusCode=Bo,qe.default=qe;var Cr=qe;const Fr=Cr.default,Ir=Fr.create(),Lr=Fr.create();var Fn={apiInstance:Ir,statsInstance:Lr,setRequestInterceptor:(n,h)=>{(h==="searchApi"?Ir:Lr).interceptors.request.use(g=>{const w=n({url:g.url,headers:g.headers});return g={...g,...w},g},function(g){return Promise.reject(g)})}};dn.polyfill();const No=Fn.apiInstance;var Br=function(n,h,m,g,w,p,s,t){var e=function(l,o){return l||l===!1?"&"+o+"="+l:""};if(m!=="search"&&m!=="suggest"&&m!=="autocomplete"&&m!=="recommend"){w({error:{response:400,message:"invalid query type"}});return}var u="",_="",a=null,c=null;if(m==="search"){c=m,u=g.keyword,u=g.enableLogicalOperators?u.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):u.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),u=encodeURIComponent(u);var i=g.fuzzy;if(i==="retry"&&(p!==!0?i=!1:i=!0),m==="search"){if(_=e(g.lang,"lang")+e(i,"fuzzy")+e(g.collectAnalytics,"collectAnalytics")+e(g.postfixWildcard,"postfixWildcard")+e(g.categories,"categories")+e(g.priceFromCents,"priceFromCents")+e(g.priceToCents,"priceToCents")+e(g.dateFrom,"dateFrom")+e(g.dateTo,"dateTo")+e(g.paging.page,"page")+e(g.paging.pageSize,"limit")+e(g.shuffleAndLimitTo,"shuffleAndLimitTo")+e(g.jwt,"jwt")+e(g.resultType,"resultType")+e(g.userToken,"userToken")+e(g.numFacets,"numFacets")+e(g.cacheResponseTime,"cacheResponseWithTtlSeconds")+e(g.searchOperator,"defaultOperator")+e(g.analyticsTag,"analyticsTag"),Array.isArray(g.paging.sortBy)?g.paging.sortBy.forEach(function(l,o){_=_+e(l,"sort")+e(g.paging.sortOrder[o],"order")}):_=_+e(g.paging.sortBy,"sort")+e(g.paging.sortOrder,"order"),g.customFieldFilters)for(let l=0;l<g.customFieldFilters.length;l++)_=_+"&customField="+g.customFieldFilters[l];if(g.facetFields)for(let l=0;l<g.facetFields.length;l++)_=_+"&facet="+g.facetFields[l];if(g.rangeFacets&&(_=_+"&rangeFacets="+encodeURIComponent(JSON.stringify(g.rangeFacets))),g.hierarchicalFacetSetting&&(_=_+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(g.hierarchicalFacetSetting))),g.statsFields)for(var S=0;S<g.statsFields.length;S++)_=_+"&fieldStat="+g.statsFields[S];if(g.personalizationEvents&&Array.isArray(g.personalizationEvents))for(let l=0;l<g.personalizationEvents.length;l++){var f=g.personalizationEvents[l],y=Object.keys(f);_=_+"&personalizationEvent="+encodeURIComponent(y+"="+f[y])}s?_=_+"&filter="+encodeURIComponent(JSON.stringify(s)):g.filterObject&&(_=_+"&filter="+encodeURIComponent(JSON.stringify(g.filterObject)))}a="https://"+n+"/v1/"+c+"/"+h+"?term="+u+_}else m==="suggest"?(c=m,_=e(g.suggestionsSize,"size")+e(g.lang,"language"),u=g.suggestionsPrefix,a="https://"+n+"/v1/"+c+"/"+h+"?term="+u+_):m==="autocomplete"?(c="autocomplete/document-field",_=e(g.autocomplete.field,"source")+e(g.autocomplete.size,"size"),u=g.autocomplete.prefix,a="https://"+n+"/v1/"+c+"/"+h+"?term="+u+_):m==="recommend"&&(t.type==="RELATED_ITEMS"?(_=e(t.itemId,"itemId"),c="recommendations/index/"+h+"/block/"+t.blockId+"?"+_):t.type==="FREQUENTLY_BOUGHT_TOGETHER"&&(_=e(t.itemId,"itemId"),c="recommendations/"+h+"?configurationKey="+t.configurationKey+_),a="https://"+n+"/v1/"+c);No.get(a).then(function(l){var o=l.data;if(m==="search"&&g.fuzzy==="retry"&&o.total_hits===0&&p!==!0)Br(n,h,m,g,w,!0);else{if(p===!0){var b=g.paging.pageSize;o.total_hits>=b&&(o.total_hits=b)}w(o)}}).catch(function(l){console.log(l),w({error:{response:500,message:"invalid server response"}})})},jo=Br,Nr={},Yt={};Yt.byteLength=Uo,Yt.toByteArray=$o,Yt.fromByteArray=Vo;for(var st=[],tt=[],Mo=typeof Uint8Array<"u"?Uint8Array:Array,In="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt=0,Do=In.length;bt<Do;++bt)st[bt]=In[bt],tt[In.charCodeAt(bt)]=bt;tt[45]=62,tt[95]=63;function jr(n){var h=n.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=n.indexOf("=");m===-1&&(m=h);var g=m===h?0:4-m%4;return[m,g]}function Uo(n){var h=jr(n),m=h[0],g=h[1];return(m+g)*3/4-g}function Ho(n,h,m){return(h+m)*3/4-m}function $o(n){var h,m=jr(n),g=m[0],w=m[1],p=new Mo(Ho(n,g,w)),s=0,t=w>0?g-4:g,v;for(v=0;v<t;v+=4)h=tt[n.charCodeAt(v)]<<18|tt[n.charCodeAt(v+1)]<<12|tt[n.charCodeAt(v+2)]<<6|tt[n.charCodeAt(v+3)],p[s++]=h>>16&255,p[s++]=h>>8&255,p[s++]=h&255;return w===2&&(h=tt[n.charCodeAt(v)]<<2|tt[n.charCodeAt(v+1)]>>4,p[s++]=h&255),w===1&&(h=tt[n.charCodeAt(v)]<<10|tt[n.charCodeAt(v+1)]<<4|tt[n.charCodeAt(v+2)]>>2,p[s++]=h>>8&255,p[s++]=h&255),p}function qo(n){return st[n>>18&63]+st[n>>12&63]+st[n>>6&63]+st[n&63]}function Go(n,h,m){for(var g,w=[],p=h;p<m;p+=3)g=(n[p]<<16&16711680)+(n[p+1]<<8&65280)+(n[p+2]&255),w.push(qo(g));return w.join("")}function Vo(n){for(var h,m=n.length,g=m%3,w=[],p=16383,s=0,t=m-g;s<t;s+=p)w.push(Go(n,s,s+p>t?t:s+p));return g===1?(h=n[m-1],w.push(st[h>>2]+st[h<<4&63]+"==")):g===2&&(h=(n[m-2]<<8)+n[m-1],w.push(st[h>>10]+st[h>>4&63]+st[h<<2&63]+"=")),w.join("")}var Ln={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ln.read=function(n,h,m,g,w){var p,s,t=w*8-g-1,v=(1<<t)-1,r=v>>1,e=-7,u=m?w-1:0,_=m?-1:1,a=n[h+u];for(u+=_,p=a&(1<<-e)-1,a>>=-e,e+=t;e>0;p=p*256+n[h+u],u+=_,e-=8);for(s=p&(1<<-e)-1,p>>=-e,e+=g;e>0;s=s*256+n[h+u],u+=_,e-=8);if(p===0)p=1-r;else{if(p===v)return s?NaN:(a?-1:1)*(1/0);s=s+Math.pow(2,g),p=p-r}return(a?-1:1)*s*Math.pow(2,p-g)},Ln.write=function(n,h,m,g,w,p){var s,t,v,r=p*8-w-1,e=(1<<r)-1,u=e>>1,_=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=g?0:p-1,c=g?1:-1,i=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(t=isNaN(h)?1:0,s=e):(s=Math.floor(Math.log(h)/Math.LN2),h*(v=Math.pow(2,-s))<1&&(s--,v*=2),s+u>=1?h+=_/v:h+=_*Math.pow(2,1-u),h*v>=2&&(s++,v/=2),s+u>=e?(t=0,s=e):s+u>=1?(t=(h*v-1)*Math.pow(2,w),s=s+u):(t=h*Math.pow(2,u-1)*Math.pow(2,w),s=0));w>=8;n[m+a]=t&255,a+=c,t/=256,w-=8);for(s=s<<w|t,r+=w;r>0;n[m+a]=s&255,a+=c,s/=256,r-=8);n[m+a-c]|=i*128};/*!
36
+ */(function(t,i){(function(p,s){t.exports=s()})(Qe,function(){function p(Z){var le=typeof Z;return Z!==null&&(le==="object"||le==="function")}function s(Z){return typeof Z=="function"}var w=void 0;Array.isArray?w=Array.isArray:w=function(Z){return Object.prototype.toString.call(Z)==="[object Array]"};var b=w,c=0,n=void 0,y=void 0,r=function(le,ie){k[c]=le,k[c+1]=ie,c+=2,c===2&&(y?y(A):P())};function e(Z){y=Z}function d(Z){r=Z}var C=typeof window<"u"?window:void 0,l=C||{},a=l.MutationObserver||l.WebKitMutationObserver,o=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",v=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function f(){return function(){return process.nextTick(A)}}function g(){return typeof n<"u"?function(){n(A)}:_()}function h(){var Z=0,le=new a(A),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=Z=++Z%2}}function u(){var Z=new MessageChannel;return Z.port1.onmessage=A,function(){return Z.port2.postMessage(0)}}function _(){var Z=setTimeout;return function(){return Z(A,1)}}var k=new Array(1e3);function A(){for(var Z=0;Z<c;Z+=2){var le=k[Z],ie=k[Z+1];le(ie),k[Z]=void 0,k[Z+1]=void 0}c=0}function I(){try{var Z=Function("return this")().require("vertx");return n=Z.runOnLoop||Z.runOnContext,g()}catch{return _()}}var P=void 0;o?P=f():a?P=h():v?P=u():C===void 0&&typeof ho=="function"?P=I():P=_();function N(Z,le){var ie=this,fe=new this.constructor(D);fe[j]===void 0&&H(fe);var O=ie._state;if(O){var m=arguments[O-1];r(function(){return Ke(O,fe,m,ie._result)})}else He(ie,fe,Z,le);return fe}function q(Z){var le=this;if(Z&&typeof Z=="object"&&Z.constructor===le)return Z;var ie=new le(D);return xe(ie,Z),ie}var j=Math.random().toString(36).substring(2);function D(){}var L=void 0,V=1,J=2;function se(){return new TypeError("You cannot resolve a promise with itself")}function ne(){return new TypeError("A promises callback cannot return that same promise.")}function Y(Z,le,ie,fe){try{Z.call(le,ie,fe)}catch(O){return O}}function W(Z,le,ie){r(function(fe){var O=!1,m=Y(ie,le,function(S){O||(O=!0,le!==S?xe(fe,S):Oe(fe,S))},function(S){O||(O=!0,Ce(fe,S))},"Settle: "+(fe._label||" unknown promise"));!O&&m&&(O=!0,Ce(fe,m))},Z)}function X(Z,le){le._state===V?Oe(Z,le._result):le._state===J?Ce(Z,le._result):He(le,void 0,function(ie){return xe(Z,ie)},function(ie){return Ce(Z,ie)})}function ue(Z,le,ie){le.constructor===Z.constructor&&ie===N&&le.constructor.resolve===q?X(Z,le):ie===void 0?Oe(Z,le):s(ie)?W(Z,le,ie):Oe(Z,le)}function xe(Z,le){if(Z===le)Ce(Z,se());else if(p(le)){var ie=void 0;try{ie=le.then}catch(fe){Ce(Z,fe);return}ue(Z,le,ie)}else Oe(Z,le)}function Re(Z){Z._onerror&&Z._onerror(Z._result),Fe(Z)}function Oe(Z,le){Z._state===L&&(Z._result=le,Z._state=V,Z._subscribers.length!==0&&r(Fe,Z))}function Ce(Z,le){Z._state===L&&(Z._state=J,Z._result=le,r(Re,Z))}function He(Z,le,ie,fe){var O=Z._subscribers,m=O.length;Z._onerror=null,O[m]=le,O[m+V]=ie,O[m+J]=fe,m===0&&Z._state&&r(Fe,Z)}function Fe(Z){var le=Z._subscribers,ie=Z._state;if(le.length!==0){for(var fe=void 0,O=void 0,m=Z._result,S=0;S<le.length;S+=3)fe=le[S],O=le[S+ie],fe?Ke(ie,fe,O,m):O(m);Z._subscribers.length=0}}function Ke(Z,le,ie,fe){var O=s(ie),m=void 0,S=void 0,F=!0;if(O){try{m=ie(fe)}catch(U){F=!1,S=U}if(le===m){Ce(le,ne());return}}else m=fe;le._state!==L||(O&&F?xe(le,m):F===!1?Ce(le,S):Z===V?Oe(le,m):Z===J&&Ce(le,m))}function Me(Z,le){try{le(function(fe){xe(Z,fe)},function(fe){Ce(Z,fe)})}catch(ie){Ce(Z,ie)}}var We=0;function z(){return We++}function H(Z){Z[j]=We++,Z._state=void 0,Z._result=void 0,Z._subscribers=[]}function oe(){return new Error("Array Methods must be provided an Array")}var de=function(){function Z(le,ie){this._instanceConstructor=le,this.promise=new le(D),this.promise[j]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Oe(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Oe(this.promise,this._result))):Ce(this.promise,oe())}return Z.prototype._enumerate=function(ie){for(var fe=0;this._state===L&&fe<ie.length;fe++)this._eachEntry(ie[fe],fe)},Z.prototype._eachEntry=function(ie,fe){var O=this._instanceConstructor,m=O.resolve;if(m===q){var S=void 0,F=void 0,U=!1;try{S=ie.then}catch(ee){U=!0,F=ee}if(S===N&&ie._state!==L)this._settledAt(ie._state,fe,ie._result);else if(typeof S!="function")this._remaining--,this._result[fe]=ie;else if(O===Se){var K=new O(D);U?Ce(K,F):ue(K,ie,S),this._willSettleAt(K,fe)}else this._willSettleAt(new O(function(ee){return ee(ie)}),fe)}else this._willSettleAt(m(ie),fe)},Z.prototype._settledAt=function(ie,fe,O){var m=this.promise;m._state===L&&(this._remaining--,ie===J?Ce(m,O):this._result[fe]=O),this._remaining===0&&Oe(m,this._result)},Z.prototype._willSettleAt=function(ie,fe){var O=this;He(ie,void 0,function(m){return O._settledAt(V,fe,m)},function(m){return O._settledAt(J,fe,m)})},Z}();function be(Z){return new de(this,Z).promise}function we(Z){var le=this;return b(Z)?new le(function(ie,fe){for(var O=Z.length,m=0;m<O;m++)le.resolve(Z[m]).then(ie,fe)}):new le(function(ie,fe){return fe(new TypeError("You must pass an array to race."))})}function Te(Z){var le=this,ie=new le(D);return Ce(ie,Z),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Se=function(){function Z(le){this[j]=z(),this._result=this._state=void 0,this._subscribers=[],D!==le&&(typeof le!="function"&&me(),this instanceof Z?Me(this,le):ye())}return Z.prototype.catch=function(ie){return this.then(null,ie)},Z.prototype.finally=function(ie){var fe=this,O=fe.constructor;return s(ie)?fe.then(function(m){return O.resolve(ie()).then(function(){return m})},function(m){return O.resolve(ie()).then(function(){throw m})}):fe.then(ie,ie)},Z}();Se.prototype.then=N,Se.all=be,Se.race=we,Se.resolve=q,Se.reject=Te,Se._setScheduler=e,Se._setAsap=d,Se._asap=r;function Be(){var Z=void 0;if(typeof Qe<"u")Z=Qe;else if(typeof self<"u")Z=self;else try{Z=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=Z.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}Z.Promise=Se}return Se.polyfill=Be,Se.Promise=Se,Se})})(Gr);var Kr=Gr.exports;Kr.polyfill();var Xe={};function Wr(t,i){return function(){return t.apply(i,arguments)}}const{toString:fo}=Object.prototype,{getPrototypeOf:Yn}=Object,wn=(t=>i=>{const p=fo.call(i);return t[p]||(t[p]=p.slice(8,-1).toLowerCase())})(Object.create(null)),Et=t=>(t=t.toLowerCase(),i=>wn(i)===t),En=t=>i=>typeof i===t,{isArray:Vt}=Array,sn=En("undefined");function po(t){return t!==null&&!sn(t)&&t.constructor!==null&&!sn(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Jr=Et("ArrayBuffer");function mo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Jr(t.buffer),i}const go=En("string"),ht=En("function"),Yr=En("number"),kn=t=>t!==null&&typeof t=="object",yo=t=>t===!0||t===!1,_n=t=>{if(wn(t)!=="object")return!1;const i=Yn(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},vo=Et("Date"),xo=Et("File"),So=Et("Blob"),bo=Et("FileList"),wo=t=>kn(t)&&ht(t.pipe),Eo=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=wn(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},ko=Et("URLSearchParams"),[_o,Co,Oo,Ro]=["ReadableStream","Request","Response","Headers"].map(Et),To=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(t,i,{allOwnKeys:p=!1}={}){if(t===null||typeof t>"u")return;let s,w;if(typeof t!="object"&&(t=[t]),Vt(t))for(s=0,w=t.length;s<w;s++)i.call(null,t[s],s,t);else{const b=p?Object.getOwnPropertyNames(t):Object.keys(t),c=b.length;let n;for(s=0;s<c;s++)n=b[s],i.call(null,t[n],n,t)}}function Zr(t,i){i=i.toLowerCase();const p=Object.keys(t);let s=p.length,w;for(;s-- >0;)if(w=p[s],i===w.toLowerCase())return w;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Qe,Qr=t=>!sn(t)&&t!==jt;function Zn(){const{caseless:t}=Qr(this)&&this||{},i={},p=(s,w)=>{const b=t&&Zr(i,w)||w;_n(i[b])&&_n(s)?i[b]=Zn(i[b],s):_n(s)?i[b]=Zn({},s):Vt(s)?i[b]=s.slice():i[b]=s};for(let s=0,w=arguments.length;s<w;s++)arguments[s]&&an(arguments[s],p);return i}const Po=(t,i,p,{allOwnKeys:s}={})=>(an(i,(w,b)=>{p&&ht(w)?t[b]=Wr(w,p):t[b]=w},{allOwnKeys:s}),t),Ao=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Io=(t,i,p,s)=>{t.prototype=Object.create(i.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),p&&Object.assign(t.prototype,p)},Fo=(t,i,p,s)=>{let w,b,c;const n={};if(i=i||{},t==null)return i;do{for(w=Object.getOwnPropertyNames(t),b=w.length;b-- >0;)c=w[b],(!s||s(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=p!==!1&&Yn(t)}while(t&&(!p||p(t,i))&&t!==Object.prototype);return i},Lo=(t,i,p)=>{t=String(t),(p===void 0||p>t.length)&&(p=t.length),p-=i.length;const s=t.indexOf(i,p);return s!==-1&&s===p},jo=t=>{if(!t)return null;if(Vt(t))return t;let i=t.length;if(!Yr(i))return null;const p=new Array(i);for(;i-- >0;)p[i]=t[i];return p},No=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Yn(Uint8Array)),Mo=(t,i)=>{const s=(t&&t[Symbol.iterator]).call(t);let w;for(;(w=s.next())&&!w.done;){const b=w.value;i.call(t,b[0],b[1])}},Bo=(t,i)=>{let p;const s=[];for(;(p=t.exec(i))!==null;)s.push(p);return s},Do=Et("HTMLFormElement"),Ho=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,s,w){return s.toUpperCase()+w}),Xr=(({hasOwnProperty:t})=>(i,p)=>t.call(i,p))(Object.prototype),Uo=Et("RegExp"),ei=(t,i)=>{const p=Object.getOwnPropertyDescriptors(t),s={};an(p,(w,b)=>{let c;(c=i(w,b,t))!==!1&&(s[b]=c||w)}),Object.defineProperties(t,s)},$o=t=>{ei(t,(i,p)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(p)!==-1)return!1;const s=t[p];if(ht(s)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+p+"'")})}})},qo=(t,i)=>{const p={},s=w=>{w.forEach(b=>{p[b]=!0})};return Vt(t)?s(t):s(String(t).split(i)),p},Vo=()=>{},zo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i,Qn="abcdefghijklmnopqrstuvwxyz",ti="0123456789",ni={DIGIT:ti,ALPHA:Qn,ALPHA_DIGIT:Qn+Qn.toUpperCase()+ti},Go=(t=16,i=ni.ALPHA_DIGIT)=>{let p="";const{length:s}=i;for(;t--;)p+=i[Math.random()*s|0];return p};function Ko(t){return!!(t&&ht(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Wo=t=>{const i=new Array(10),p=(s,w)=>{if(kn(s)){if(i.indexOf(s)>=0)return;if(!("toJSON"in s)){i[w]=s;const b=Vt(s)?[]:{};return an(s,(c,n)=>{const y=p(c,w+1);!sn(y)&&(b[n]=y)}),i[w]=void 0,b}}return s};return p(t,0)},Jo=Et("AsyncFunction"),Yo=t=>t&&(kn(t)||ht(t))&&ht(t.then)&&ht(t.catch),ri=((t,i)=>t?setImmediate:i?((p,s)=>(jt.addEventListener("message",({source:w,data:b})=>{w===jt&&b===p&&s.length&&s.shift()()},!1),w=>{s.push(w),jt.postMessage(p,"*")}))(`axios@${Math.random()}`,[]):p=>setTimeout(p))(typeof setImmediate=="function",ht(jt.postMessage)),Zo=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ri;var Q={isArray:Vt,isArrayBuffer:Jr,isBuffer:po,isFormData:Eo,isArrayBufferView:mo,isString:go,isNumber:Yr,isBoolean:yo,isObject:kn,isPlainObject:_n,isReadableStream:_o,isRequest:Co,isResponse:Oo,isHeaders:Ro,isUndefined:sn,isDate:vo,isFile:xo,isBlob:So,isRegExp:Uo,isFunction:ht,isStream:wo,isURLSearchParams:ko,isTypedArray:No,isFileList:bo,forEach:an,merge:Zn,extend:Po,trim:To,stripBOM:Ao,inherits:Io,toFlatObject:Fo,kindOf:wn,kindOfTest:Et,endsWith:Lo,toArray:jo,forEachEntry:Mo,matchAll:Bo,isHTMLForm:Do,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:ei,freezeMethods:$o,toObjectSet:qo,toCamelCase:Ho,noop:Vo,toFiniteNumber:zo,findKey:Zr,global:jt,isContextDefined:Qr,ALPHABET:ni,generateString:Go,isSpecCompliantForm:Ko,toJSONObject:Wo,isAsyncFn:Jo,isThenable:Yo,setImmediate:ri,asap:Zo};function Pe(t,i,p,s,w){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),p&&(this.config=p),s&&(this.request=s),w&&(this.response=w,this.status=w.status?w.status:null)}Q.inherits(Pe,Error,{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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const ii=Pe.prototype,oi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{oi[t]={value:t}}),Object.defineProperties(Pe,oi),Object.defineProperty(ii,"isAxiosError",{value:!0}),Pe.from=(t,i,p,s,w,b)=>{const c=Object.create(ii);return Q.toFlatObject(t,c,function(y){return y!==Error.prototype},n=>n!=="isAxiosError"),Pe.call(c,t.message,i,p,s,w),c.cause=t,c.name=t.name,b&&Object.assign(c,b),c};var Qo=null;function Xn(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,p){return t?t.concat(i).map(function(w,b){return w=si(w),!p&&b?"["+w+"]":w}).join(p?".":""):i}function Xo(t){return Q.isArray(t)&&!t.some(Xn)}const es=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function Cn(t,i,p){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,p=Q.toFlatObject(p,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,v){return!Q.isUndefined(v[o])});const s=p.metaTokens,w=p.visitor||e,b=p.dots,c=p.indexes,y=(p.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(w))throw new TypeError("visitor must be a function");function r(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(!y&&Q.isBlob(a))throw new Pe("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?y&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,o,v){let f=a;if(a&&!v&&typeof a=="object"){if(Q.endsWith(o,"{}"))o=s?o:o.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&Xo(a)||(Q.isFileList(a)||Q.endsWith(o,"[]"))&&(f=Q.toArray(a)))return o=si(o),f.forEach(function(h,u){!(Q.isUndefined(h)||h===null)&&i.append(c===!0?ai([o],u,b):c===null?o:o+"[]",r(h))}),!1}return Xn(a)?!0:(i.append(ai(v,o,b),r(a)),!1)}const d=[],C=Object.assign(es,{defaultVisitor:e,convertValue:r,isVisitable:Xn});function l(a,o){if(!Q.isUndefined(a)){if(d.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));d.push(a),Q.forEach(a,function(f,g){(!(Q.isUndefined(f)||f===null)&&w.call(i,f,Q.isString(g)?g.trim():g,o,C))===!0&&l(f,o?o.concat(g):[g])}),d.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return l(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return i[s]})}function er(t,i){this._pairs=[],t&&Cn(t,this,i)}const ci=er.prototype;ci.append=function(i,p){this._pairs.push([i,p])},ci.toString=function(i){const p=i?function(s){return i.call(this,s,li)}:li;return this._pairs.map(function(w){return p(w[0])+"="+p(w[1])},"").join("&")};function ts(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ui(t,i,p){if(!i)return t;const s=p&&p.encode||ts,w=p&&p.serialize;let b;if(w?b=w(i,p):b=Q.isURLSearchParams(i)?i.toString():new er(i,p).toString(s),b){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+b}return t}class ns{constructor(){this.handlers=[]}use(i,p,s){return this.handlers.push({fulfilled:i,rejected:p,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){Q.forEach(this.handlers,function(s){s!==null&&i(s)})}}var hi=ns,fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rs=typeof URLSearchParams<"u"?URLSearchParams:er,is=typeof FormData<"u"?FormData:null,os=typeof Blob<"u"?Blob:null,ss={isBrowser:!0,classes:{URLSearchParams:rs,FormData:is,Blob:os},protocols:["http","https","file","blob","url","data"]};const tr=typeof window<"u"&&typeof document<"u",nr=typeof navigator=="object"&&navigator||void 0,as=tr&&(!nr||["ReactNative","NativeScript","NS"].indexOf(nr.product)<0),ls=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cs=tr&&window.location.href||"http://localhost";var us=Object.freeze({__proto__:null,hasBrowserEnv:tr,hasStandardBrowserWebWorkerEnv:ls,hasStandardBrowserEnv:as,navigator:nr,origin:cs}),lt={...us,...ss};function hs(t,i){return Cn(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(p,s,w,b){return lt.isNode&&Q.isBuffer(p)?(this.append(s,p.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},i))}function fs(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function ds(t){const i={},p=Object.keys(t);let s;const w=p.length;let b;for(s=0;s<w;s++)b=p[s],i[b]=t[b];return i}function di(t){function i(p,s,w,b){let c=p[b++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),y=b>=p.length;return c=!c&&Q.isArray(w)?w.length:c,y?(Q.hasOwnProp(w,c)?w[c]=[w[c],s]:w[c]=s,!n):((!w[c]||!Q.isObject(w[c]))&&(w[c]=[]),i(p,s,w[c],b)&&Q.isArray(w[c])&&(w[c]=ds(w[c])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const p={};return Q.forEachEntry(t,(s,w)=>{i(fs(s),w,p,0)}),p}return null}function ps(t,i,p){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(t)}const rr={transitional:fi,adapter:["xhr","http","fetch"],transformRequest:[function(i,p){const s=p.getContentType()||"",w=s.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return w?JSON.stringify(di(i)):i;if(Q.isArrayBuffer(i)||Q.isBuffer(i)||Q.isStream(i)||Q.isFile(i)||Q.isBlob(i)||Q.isReadableStream(i))return i;if(Q.isArrayBufferView(i))return i.buffer;if(Q.isURLSearchParams(i))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(s.indexOf("application/x-www-form-urlencoded")>-1)return hs(i,this.formSerializer).toString();if((n=Q.isFileList(i))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Cn(n?{"files[]":i}:i,y&&new y,this.formSerializer)}}return b||w?(p.setContentType("application/json",!1),ps(i)):i}],transformResponse:[function(i){const p=this.transitional||rr.transitional,s=p&&p.forcedJSONParsing,w=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(s&&!this.responseType||w)){const c=!(p&&p.silentJSONParsing)&&w;try{return JSON.parse(i)}catch(n){if(c)throw n.name==="SyntaxError"?Pe.from(n,Pe.ERR_BAD_RESPONSE,this,null,this.response):n}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{rr.headers[t]={}});var ir=rr;const ms=Q.toObjectSet(["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"]);var gs=t=>{const i={};let p,s,w;return t&&t.split(`
37
+ `).forEach(function(c){w=c.indexOf(":"),p=c.substring(0,w).trim().toLowerCase(),s=c.substring(w+1).trim(),!(!p||i[p]&&ms[p])&&(p==="set-cookie"?i[p]?i[p].push(s):i[p]=[s]:i[p]=i[p]?i[p]+", "+s:s)}),i};const pi=Symbol("internals");function ln(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:Q.isArray(t)?t.map(On):String(t)}function ys(t){const i=Object.create(null),p=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=p.exec(t);)i[s[1]]=s[2];return i}const vs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function or(t,i,p,s,w){if(Q.isFunction(s))return s.call(this,i,p);if(w&&(i=p),!!Q.isString(i)){if(Q.isString(s))return i.indexOf(s)!==-1;if(Q.isRegExp(s))return s.test(i)}}function xs(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,p,s)=>p.toUpperCase()+s)}function Ss(t,i){const p=Q.toCamelCase(" "+i);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+p,{value:function(w,b,c){return this[s].call(this,i,w,b,c)},configurable:!0})})}class Rn{constructor(i){i&&this.set(i)}set(i,p,s){const w=this;function b(n,y,r){const e=ln(y);if(!e)throw new Error("header name must be a non-empty string");const d=Q.findKey(w,e);(!d||w[d]===void 0||r===!0||r===void 0&&w[d]!==!1)&&(w[d||y]=On(n))}const c=(n,y)=>Q.forEach(n,(r,e)=>b(r,e,y));if(Q.isPlainObject(i)||i instanceof this.constructor)c(i,p);else if(Q.isString(i)&&(i=i.trim())&&!vs(i))c(gs(i),p);else if(Q.isHeaders(i))for(const[n,y]of i.entries())b(y,n,s);else i!=null&&b(p,i,s);return this}get(i,p){if(i=ln(i),i){const s=Q.findKey(this,i);if(s){const w=this[s];if(!p)return w;if(p===!0)return ys(w);if(Q.isFunction(p))return p.call(this,w,s);if(Q.isRegExp(p))return p.exec(w);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,p){if(i=ln(i),i){const s=Q.findKey(this,i);return!!(s&&this[s]!==void 0&&(!p||or(this,this[s],s,p)))}return!1}delete(i,p){const s=this;let w=!1;function b(c){if(c=ln(c),c){const n=Q.findKey(s,c);n&&(!p||or(s,s[n],n,p))&&(delete s[n],w=!0)}}return Q.isArray(i)?i.forEach(b):b(i),w}clear(i){const p=Object.keys(this);let s=p.length,w=!1;for(;s--;){const b=p[s];(!i||or(this,this[b],b,i,!0))&&(delete this[b],w=!0)}return w}normalize(i){const p=this,s={};return Q.forEach(this,(w,b)=>{const c=Q.findKey(s,b);if(c){p[c]=On(w),delete p[b];return}const n=i?xs(b):String(b).trim();n!==b&&delete p[b],p[n]=On(w),s[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const p=Object.create(null);return Q.forEach(this,(s,w)=>{s!=null&&s!==!1&&(p[w]=i&&Q.isArray(s)?s.join(", "):s)}),p}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,p])=>i+": "+p).join(`
38
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...p){const s=new this(i);return p.forEach(w=>s.set(w)),s}static accessor(i){const s=(this[pi]=this[pi]={accessors:{}}).accessors,w=this.prototype;function b(c){const n=ln(c);s[n]||(Ss(w,c),s[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}Rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Rn.prototype,({value:t},i)=>{let p=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(s){this[p]=s}}}),Q.freezeMethods(Rn);var kt=Rn;function sr(t,i){const p=this||ir,s=i||p,w=kt.from(s.headers);let b=s.data;return Q.forEach(t,function(n){b=n.call(p,b,w.normalize(),i?i.status:void 0)}),w.normalize(),b}function mi(t){return!!(t&&t.__CANCEL__)}function zt(t,i,p){Pe.call(this,t??"canceled",Pe.ERR_CANCELED,i,p),this.name="CanceledError"}Q.inherits(zt,Pe,{__CANCEL__:!0});function gi(t,i,p){const s=p.config.validateStatus;!p.status||!s||s(p.status)?t(p):i(new Pe("Request failed with status code "+p.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(p.status/100)-4],p.config,p.request,p))}function bs(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function ws(t,i){t=t||10;const p=new Array(t),s=new Array(t);let w=0,b=0,c;return i=i!==void 0?i:1e3,function(y){const r=Date.now(),e=s[b];c||(c=r),p[w]=y,s[w]=r;let d=b,C=0;for(;d!==w;)C+=p[d++],d=d%t;if(w=(w+1)%t,w===b&&(b=(b+1)%t),r-c<i)return;const l=e&&r-e;return l?Math.round(C*1e3/l):void 0}}function Es(t,i){let p=0,s=1e3/i,w,b;const c=(r,e=Date.now())=>{p=e,w=null,b&&(clearTimeout(b),b=null),t.apply(null,r)};return[(...r)=>{const e=Date.now(),d=e-p;d>=s?c(r,e):(w=r,b||(b=setTimeout(()=>{b=null,c(w)},s-d)))},()=>w&&c(w)]}const Tn=(t,i,p=3)=>{let s=0;const w=ws(50,250);return Es(b=>{const c=b.loaded,n=b.lengthComputable?b.total:void 0,y=c-s,r=w(y),e=c<=n;s=c;const d={loaded:c,total:n,progress:n?c/n:void 0,bytes:y,rate:r||void 0,estimated:r&&n&&e?(n-c)/r:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(d)},p)},yi=(t,i)=>{const p=t!=null;return[s=>i[0]({lengthComputable:p,total:t,loaded:s}),i[1]]},vi=t=>(...i)=>Q.asap(()=>t(...i));var ks=lt.hasStandardBrowserEnv?function(){const i=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),p=document.createElement("a");let s;function w(b){let c=b;return i&&(p.setAttribute("href",c),c=p.href),p.setAttribute("href",c),{href:p.href,protocol:p.protocol?p.protocol.replace(/:$/,""):"",host:p.host,search:p.search?p.search.replace(/^\?/,""):"",hash:p.hash?p.hash.replace(/^#/,""):"",hostname:p.hostname,port:p.port,pathname:p.pathname.charAt(0)==="/"?p.pathname:"/"+p.pathname}}return s=w(window.location.href),function(c){const n=Q.isString(c)?w(c):c;return n.protocol===s.protocol&&n.host===s.host}}():function(){return function(){return!0}}(),_s=lt.hasStandardBrowserEnv?{write(t,i,p,s,w,b){const c=[t+"="+encodeURIComponent(i)];Q.isNumber(p)&&c.push("expires="+new Date(p).toGMTString()),Q.isString(s)&&c.push("path="+s),Q.isString(w)&&c.push("domain="+w),b===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Cs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Os(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function xi(t,i){return t&&!Cs(i)?Os(t,i):i}const Si=t=>t instanceof kt?{...t}:t;function Nt(t,i){i=i||{};const p={};function s(r,e,d){return Q.isPlainObject(r)&&Q.isPlainObject(e)?Q.merge.call({caseless:d},r,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function w(r,e,d){if(Q.isUndefined(e)){if(!Q.isUndefined(r))return s(void 0,r,d)}else return s(r,e,d)}function b(r,e){if(!Q.isUndefined(e))return s(void 0,e)}function c(r,e){if(Q.isUndefined(e)){if(!Q.isUndefined(r))return s(void 0,r)}else return s(void 0,e)}function n(r,e,d){if(d in i)return s(r,e);if(d in t)return s(void 0,r)}const y={url:b,method:b,data:b,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:n,headers:(r,e)=>w(Si(r),Si(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,i)),function(e){const d=y[e]||w,C=d(t[e],i[e],e);Q.isUndefined(C)&&d!==n||(p[e]=C)}),p}var bi=t=>{const i=Nt({},t);let{data:p,withXSRFToken:s,xsrfHeaderName:w,xsrfCookieName:b,headers:c,auth:n}=i;i.headers=c=kt.from(c),i.url=ui(xi(i.baseURL,i.url),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let y;if(Q.isFormData(p)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[r,...e]=y?y.split(";").map(d=>d.trim()).filter(Boolean):[];c.setContentType([r||"multipart/form-data",...e].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&Q.isFunction(s)&&(s=s(i)),s||s!==!1&&ks(i.url))){const r=w&&b&&_s.read(b);r&&c.set(w,r)}return i},Rs=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(p,s){const w=bi(t);let b=w.data;const c=kt.from(w.headers).normalize();let{responseType:n,onUploadProgress:y,onDownloadProgress:r}=w,e,d,C,l,a;function o(){l&&l(),a&&a(),w.cancelToken&&w.cancelToken.unsubscribe(e),w.signal&&w.signal.removeEventListener("abort",e)}let v=new XMLHttpRequest;v.open(w.method.toUpperCase(),w.url,!0),v.timeout=w.timeout;function f(){if(!v)return;const h=kt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:h,config:t,request:v};gi(function(A){p(A),o()},function(A){s(A),o()},_),v=null}"onloadend"in v?v.onloadend=f:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(f)},v.onabort=function(){v&&(s(new Pe("Request aborted",Pe.ECONNABORTED,t,v)),v=null)},v.onerror=function(){s(new Pe("Network Error",Pe.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let u=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded";const _=w.transitional||fi;w.timeoutErrorMessage&&(u=w.timeoutErrorMessage),s(new Pe(u,_.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,t,v)),v=null},b===void 0&&c.setContentType(null),"setRequestHeader"in v&&Q.forEach(c.toJSON(),function(u,_){v.setRequestHeader(_,u)}),Q.isUndefined(w.withCredentials)||(v.withCredentials=!!w.withCredentials),n&&n!=="json"&&(v.responseType=w.responseType),r&&([C,a]=Tn(r,!0),v.addEventListener("progress",C)),y&&v.upload&&([d,l]=Tn(y),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",l)),(w.cancelToken||w.signal)&&(e=h=>{v&&(s(!h||h.type?new zt(null,t,v):h),v.abort(),v=null)},w.cancelToken&&w.cancelToken.subscribe(e),w.signal&&(w.signal.aborted?e():w.signal.addEventListener("abort",e)));const g=bs(w.url);if(g&&lt.protocols.indexOf(g)===-1){s(new Pe("Unsupported protocol "+g+":",Pe.ERR_BAD_REQUEST,t));return}v.send(b||null)})},Ts=(t,i)=>{const{length:p}=t=t?t.filter(Boolean):[];if(i||p){let s=new AbortController,w;const b=function(r){if(!w){w=!0,n();const e=r instanceof Error?r:this.reason;s.abort(e instanceof Pe?e:new zt(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,b(new Pe(`timeout ${i} of ms exceeded`,Pe.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(r=>{r.unsubscribe?r.unsubscribe(b):r.removeEventListener("abort",b)}),t=null)};t.forEach(r=>r.addEventListener("abort",b));const{signal:y}=s;return y.unsubscribe=()=>Q.asap(n),y}};const Ps=function*(t,i){let p=t.byteLength;if(p<i){yield t;return}let s=0,w;for(;s<p;)w=s+i,yield t.slice(s,w),s=w},As=async function*(t,i){for await(const p of Is(t))yield*Ps(p,i)},Is=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:p,value:s}=await i.read();if(p)break;yield s}}finally{await i.cancel()}},wi=(t,i,p,s)=>{const w=As(t,i);let b=0,c,n=y=>{c||(c=!0,s&&s(y))};return new ReadableStream({async pull(y){try{const{done:r,value:e}=await w.next();if(r){n(),y.close();return}let d=e.byteLength;if(p){let C=b+=d;p(C)}y.enqueue(new Uint8Array(e))}catch(r){throw n(r),r}},cancel(y){return n(y),w.return()}},{highWaterMark:2})},Pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ei=Pn&&typeof ReadableStream=="function",Fs=Pn&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ki=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Ls=Ei&&ki(()=>{let t=!1;const i=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),_i=64*1024,ar=Ei&&ki(()=>Q.isReadableStream(new Response("").body)),An={stream:ar&&(t=>t.body)};Pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!An[i]&&(An[i]=Q.isFunction(t[i])?p=>p[i]():(p,s)=>{throw new Pe(`Response type '${i}' is not supported`,Pe.ERR_NOT_SUPPORT,s)})})})(new Response);const js=async t=>{if(t==null)return 0;if(Q.isBlob(t))return t.size;if(Q.isSpecCompliantForm(t))return(await new Request(lt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(t)||Q.isArrayBuffer(t))return t.byteLength;if(Q.isURLSearchParams(t)&&(t=t+""),Q.isString(t))return(await Fs(t)).byteLength},Ns=async(t,i)=>{const p=Q.toFiniteNumber(t.getContentLength());return p??js(i)};var Ms=Pn&&(async t=>{let{url:i,method:p,data:s,signal:w,cancelToken:b,timeout:c,onDownloadProgress:n,onUploadProgress:y,responseType:r,headers:e,withCredentials:d="same-origin",fetchOptions:C}=bi(t);r=r?(r+"").toLowerCase():"text";let l=Ts([w,b&&b.toAbortSignal()],c),a;const o=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let v;try{if(y&&Ls&&p!=="get"&&p!=="head"&&(v=await Ns(e,s))!==0){let _=new Request(i,{method:"POST",body:s,duplex:"half"}),k;if(Q.isFormData(s)&&(k=_.headers.get("content-type"))&&e.setContentType(k),_.body){const[A,I]=yi(v,Tn(vi(y)));s=wi(_.body,_i,A,I)}}Q.isString(d)||(d=d?"include":"omit");const f="credentials"in Request.prototype;a=new Request(i,{...C,signal:l,method:p.toUpperCase(),headers:e.normalize().toJSON(),body:s,duplex:"half",credentials:f?d:void 0});let g=await fetch(a);const h=ar&&(r==="stream"||r==="response");if(ar&&(n||h&&o)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=g[P]});const k=Q.toFiniteNumber(g.headers.get("content-length")),[A,I]=n&&yi(k,Tn(vi(n),!0))||[];g=new Response(wi(g.body,_i,A,()=>{I&&I(),o&&o()}),_)}r=r||"text";let u=await An[Q.findKey(An,r)||"text"](g,t);return!h&&o&&o(),await new Promise((_,k)=>{gi(_,k,{data:u,headers:kt.from(g.headers),status:g.status,statusText:g.statusText,config:t,request:a})})}catch(f){throw o&&o(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,t,a),{cause:f.cause||f}):Pe.from(f,f&&f.code,t,a)}});const lr={http:Qo,xhr:Rs,fetch:Ms};Q.forEach(lr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Ci=t=>`- ${t}`,Bs=t=>Q.isFunction(t)||t===null||t===!1;var Oi={getAdapter:t=>{t=Q.isArray(t)?t:[t];const{length:i}=t;let p,s;const w={};for(let b=0;b<i;b++){p=t[b];let c;if(s=p,!Bs(p)&&(s=lr[(c=String(p)).toLowerCase()],s===void 0))throw new Pe(`Unknown adapter '${c}'`);if(s)break;w[c||"#"+b]=s}if(!s){const b=Object.entries(w).map(([n,y])=>`adapter ${n} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=i?b.length>1?`since :
39
+ `+b.map(Ci).join(`
40
+ `):" "+Ci(b[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:lr};function cr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zt(null,t)}function Ri(t){return cr(t),t.headers=kt.from(t.headers),t.data=sr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Oi.getAdapter(t.adapter||ir.adapter)(t).then(function(s){return cr(t),s.data=sr.call(t,t.transformResponse,s),s.headers=kt.from(s.headers),s},function(s){return mi(s)||(cr(t),s&&s.response&&(s.response.data=sr.call(t,t.transformResponse,s.response),s.response.headers=kt.from(s.response.headers))),Promise.reject(s)})}const Ti="1.7.7",ur={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{ur[t]=function(s){return typeof s===t||"a"+(i<1?"n ":" ")+t}});const Pi={};ur.transitional=function(i,p,s){function w(b,c){return"[Axios v"+Ti+"] Transitional option '"+b+"'"+c+(s?". "+s:"")}return(b,c,n)=>{if(i===!1)throw new Pe(w(c," has been removed"+(p?" in "+p:"")),Pe.ERR_DEPRECATED);return p&&!Pi[c]&&(Pi[c]=!0,console.warn(w(c," has been deprecated since v"+p+" and will be removed in the near future"))),i?i(b,c,n):!0}};function Ds(t,i,p){if(typeof t!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let w=s.length;for(;w-- >0;){const b=s[w],c=i[b];if(c){const n=t[b],y=n===void 0||c(n,b,t);if(y!==!0)throw new Pe("option "+b+" must be "+y,Pe.ERR_BAD_OPTION_VALUE);continue}if(p!==!0)throw new Pe("Unknown option "+b,Pe.ERR_BAD_OPTION)}}var hr={assertOptions:Ds,validators:ur};const Pt=hr.validators;class In{constructor(i){this.defaults=i,this.interceptors={request:new hi,response:new hi}}async request(i,p){try{return await this._request(i,p)}catch(s){if(s instanceof Error){let w;Error.captureStackTrace?Error.captureStackTrace(w={}):w=new Error;const b=w.stack?w.stack.replace(/^.+\n/,""):"";try{s.stack?b&&!String(s.stack).endsWith(b.replace(/^.+\n.+\n/,""))&&(s.stack+=`
41
+ `+b):s.stack=b}catch{}}throw s}}_request(i,p){typeof i=="string"?(p=p||{},p.url=i):p=i||{},p=Nt(this.defaults,p);const{transitional:s,paramsSerializer:w,headers:b}=p;s!==void 0&&hr.assertOptions(s,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),w!=null&&(Q.isFunction(w)?p.paramsSerializer={serialize:w}:hr.assertOptions(w,{encode:Pt.function,serialize:Pt.function},!0)),p.method=(p.method||this.defaults.method||"get").toLowerCase();let c=b&&Q.merge(b.common,b[p.method]);b&&Q.forEach(["delete","get","head","post","put","patch","common"],a=>{delete b[a]}),p.headers=kt.concat(c,b);const n=[];let y=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(p)===!1||(y=y&&o.synchronous,n.unshift(o.fulfilled,o.rejected))});const r=[];this.interceptors.response.forEach(function(o){r.push(o.fulfilled,o.rejected)});let e,d=0,C;if(!y){const a=[Ri.bind(this),void 0];for(a.unshift.apply(a,n),a.push.apply(a,r),C=a.length,e=Promise.resolve(p);d<C;)e=e.then(a[d++],a[d++]);return e}C=n.length;let l=p;for(d=0;d<C;){const a=n[d++],o=n[d++];try{l=a(l)}catch(v){o.call(this,v);break}}try{e=Ri.call(this,l)}catch(a){return Promise.reject(a)}for(d=0,C=r.length;d<C;)e=e.then(r[d++],r[d++]);return e}getUri(i){i=Nt(this.defaults,i);const p=xi(i.baseURL,i.url);return ui(p,i.params,i.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(i){In.prototype[i]=function(p,s){return this.request(Nt(s||{},{method:i,url:p,data:(s||{}).data}))}}),Q.forEach(["post","put","patch"],function(i){function p(s){return function(b,c,n){return this.request(Nt(n||{},{method:i,headers:s?{"Content-Type":"multipart/form-data"}:{},url:b,data:c}))}}In.prototype[i]=p(),In.prototype[i+"Form"]=p(!0)});var Fn=In;class fr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let p;this.promise=new Promise(function(b){p=b});const s=this;this.promise.then(w=>{if(!s._listeners)return;let b=s._listeners.length;for(;b-- >0;)s._listeners[b](w);s._listeners=null}),this.promise.then=w=>{let b;const c=new Promise(n=>{s.subscribe(n),b=n}).then(w);return c.cancel=function(){s.unsubscribe(b)},c},i(function(b,c,n){s.reason||(s.reason=new zt(b,c,n),p(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const p=this._listeners.indexOf(i);p!==-1&&this._listeners.splice(p,1)}toAbortSignal(){const i=new AbortController,p=s=>{i.abort(s)};return this.subscribe(p),i.signal.unsubscribe=()=>this.unsubscribe(p),i.signal}static source(){let i;return{token:new fr(function(w){i=w}),cancel:i}}}var Hs=fr;function Us(t){return function(p){return t.apply(null,p)}}function $s(t){return Q.isObject(t)&&t.isAxiosError===!0}const dr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dr).forEach(([t,i])=>{dr[i]=t});var qs=dr;function Ai(t){const i=new Fn(t),p=Wr(Fn.prototype.request,i);return Q.extend(p,Fn.prototype,i,{allOwnKeys:!0}),Q.extend(p,i,null,{allOwnKeys:!0}),p.create=function(w){return Ai(Nt(t,w))},p}const Ze=Ai(ir);Ze.Axios=Fn,Ze.CanceledError=zt,Ze.CancelToken=Hs,Ze.isCancel=mi,Ze.VERSION=Ti,Ze.toFormData=Cn,Ze.AxiosError=Pe,Ze.Cancel=Ze.CanceledError,Ze.all=function(i){return Promise.all(i)},Ze.spread=Us,Ze.isAxiosError=$s,Ze.mergeConfig=Nt,Ze.AxiosHeaders=kt,Ze.formToJSON=t=>di(Q.isHTMLForm(t)?new FormData(t):t),Ze.getAdapter=Oi.getAdapter,Ze.HttpStatusCode=qs,Ze.default=Ze;var Ii=Ze,Vs=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.RESPONSE_SERVER_ERROR=Xe.RESPONSE_BAD_REQUEST=Xe.setRequestInterceptor=Xe.conversationalSearchInteractionsInstance=Xe.statsInstance=Xe.apiInstance=void 0;const pr=Vs(Ii),Fi=pr.default.create();Xe.apiInstance=Fi;const Li=pr.default.create();Xe.statsInstance=Li;const zs=pr.default.create();Xe.conversationalSearchInteractionsInstance=zs;const Gs=400;Xe.RESPONSE_BAD_REQUEST=Gs;const Ks=500;Xe.RESPONSE_SERVER_ERROR=Ks;const Ws=(t,i)=>{(i==="searchApi"?Fi:Li).interceptors.request.use(s=>{const w=t({url:s.url,headers:s.headers});return s=Object.assign(Object.assign({},s),w),s},s=>Promise.reject(new Error(JSON.stringify(s))))};Xe.setRequestInterceptor=Ws,Object.defineProperty(Jn,"__esModule",{value:!0});const Gt=Xe,ji=function(t,i,p,s,w,b,c,n){const y=function(l,a){return l||l===!1?"&"+a+"="+l:""};if(p!=="search"&&p!=="conversational-search"&&p!=="suggest"&&p!=="autocomplete"&&p!=="recommend"){w({error:{response:Gt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let r="",e="",d=null,C=null;if(p==="search"){C=p,r=s==null?void 0:s.keyword,r=s!=null&&s.enableLogicalOperators?r.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):r.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),r=encodeURIComponent(r);let l=s==null?void 0:s.fuzzy;if(l==="retry"&&(b!==!0?l=!1:l=!0),e=y(s==null?void 0:s.lang,"lang")+y(l,"fuzzy")+y(s==null?void 0:s.collectAnalytics,"collectAnalytics")+y(s==null?void 0:s.postfixWildcard,"postfixWildcard")+y(s==null?void 0:s.categories,"categories")+y(s==null?void 0:s.priceFromCents,"priceFromCents")+y(s==null?void 0:s.priceToCents,"priceToCents")+y(s==null?void 0:s.dateFrom,"dateFrom")+y(s==null?void 0:s.dateTo,"dateTo")+y(s==null?void 0:s.paging.page,"page")+y(s==null?void 0:s.paging.pageSize,"limit")+y(s==null?void 0:s.shuffleAndLimitTo,"shuffleAndLimitTo")+y(s==null?void 0:s.jwt,"jwt")+y(s==null?void 0:s.resultType,"resultType")+y(s==null?void 0:s.userToken,"userToken")+y(s==null?void 0:s.numFacets,"numFacets")+y(s==null?void 0:s.cacheResponseTime,"cacheResponseWithTtlSeconds")+y(s==null?void 0:s.searchOperator,"defaultOperator")+y(s==null?void 0:s.analyticsTag,"analyticsTag"),Array.isArray(s==null?void 0:s.paging.sortBy)?s==null||s.paging.sortBy.forEach(function(a,o){e=e+y(a,"sort")+y(s==null?void 0:s.paging.sortOrder[o],"order")}):e=e+y(s==null?void 0:s.paging.sortBy,"sort")+y(s==null?void 0:s.paging.sortOrder,"order"),s!=null&&s.customFieldFilters)for(let a=0;a<(s==null?void 0:s.customFieldFilters.length);a++)e=e+"&customField="+(s==null?void 0:s.customFieldFilters[a]);if(s!=null&&s.facetFields)for(let a=0;a<(s==null?void 0:s.facetFields.length);a++)e=e+"&facet="+(s==null?void 0:s.facetFields[a]);if(s!=null&&s.rangeFacets&&(e=e+"&rangeFacets="+encodeURIComponent(JSON.stringify(s==null?void 0:s.rangeFacets))),s!=null&&s.hierarchicalFacetSetting&&(e=e+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(s==null?void 0:s.hierarchicalFacetSetting))),s!=null&&s.statsFields)for(let a=0;a<(s==null?void 0:s.statsFields.length);a++)e=e+"&fieldStat="+(s==null?void 0:s.statsFields[a]);if(s!=null&&s.personalizationEvents&&Array.isArray(s==null?void 0:s.personalizationEvents))for(let a=0;a<(s==null?void 0:s.personalizationEvents.length);a++){const o=s==null?void 0:s.personalizationEvents[a],v=Object.keys(o)[0];e=e+"&personalizationEvent="+encodeURIComponent(v+"="+o[v])}c?e=e+"&filter="+encodeURIComponent(JSON.stringify(c)):s!=null&&s.filterObject&&(e=e+"&filter="+encodeURIComponent(JSON.stringify(s==null?void 0:s.filterObject))),d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e}else p==="conversational-search"?Gt.apiInstance.post(`https://api.addsearch.com/v2/indices/${i}/conversations`,{question:s==null?void 0:s.keyword}).then(function(l){l.data.response?w(l.data.response):w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"Could not get conversational search response in the expected data format"}})}).catch(function(l){console.error(l),w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):p==="suggest"?(C=p,e=y(s==null?void 0:s.suggestionsSize,"size")+y(s==null?void 0:s.lang,"language"),r=s==null?void 0:s.suggestionsPrefix,d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="autocomplete"?(C="autocomplete/document-field",e=y(s==null?void 0:s.autocomplete.field,"source")+y(s==null?void 0:s.autocomplete.size,"size"),r=(s==null?void 0:s.autocomplete.prefix)||"",d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(e=y(n.itemId,"itemId"),C="recommendations/index/"+i+"/block/"+n.blockId+"?"+e):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(e=y(n.itemId,"itemId"),C="recommendations/"+i+"?configurationKey="+n.configurationKey+e),d="https://"+t+"/v1/"+C);p!=="conversational-search"&&Gt.apiInstance.get(d).then(function(l){var a,o,v;const f=l.data;p==="search"&&(s==null?void 0:s.fuzzy)==="retry"&&f.total_hits===0&&b!==!0?ji(t,i,p,s,w,!0):(b===!0&&(f.total_hits=Math.min((a=f.total_hits)!==null&&a!==void 0?a:1/0,(v=(o=s==null?void 0:s.paging)===null||o===void 0?void 0:o.pageSize)!==null&&v!==void 0?v:1/0)),w(f))}).catch(function(l){console.error(l),w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})})};Jn.default=ji;var ft={},dt={},Ni={},Ln={};Ln.byteLength=Zs,Ln.toByteArray=Xs,Ln.fromByteArray=na;for(var _t=[],pt=[],Js=typeof Uint8Array<"u"?Uint8Array:Array,mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kt=0,Ys=mr.length;Kt<Ys;++Kt)_t[Kt]=mr[Kt],pt[mr.charCodeAt(Kt)]=Kt;pt[45]=62,pt[95]=63;function Mi(t){var i=t.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=t.indexOf("=");p===-1&&(p=i);var s=p===i?0:4-p%4;return[p,s]}function Zs(t){var i=Mi(t),p=i[0],s=i[1];return(p+s)*3/4-s}function Qs(t,i,p){return(i+p)*3/4-p}function Xs(t){var i,p=Mi(t),s=p[0],w=p[1],b=new Js(Qs(t,s,w)),c=0,n=w>0?s-4:s,y;for(y=0;y<n;y+=4)i=pt[t.charCodeAt(y)]<<18|pt[t.charCodeAt(y+1)]<<12|pt[t.charCodeAt(y+2)]<<6|pt[t.charCodeAt(y+3)],b[c++]=i>>16&255,b[c++]=i>>8&255,b[c++]=i&255;return w===2&&(i=pt[t.charCodeAt(y)]<<2|pt[t.charCodeAt(y+1)]>>4,b[c++]=i&255),w===1&&(i=pt[t.charCodeAt(y)]<<10|pt[t.charCodeAt(y+1)]<<4|pt[t.charCodeAt(y+2)]>>2,b[c++]=i>>8&255,b[c++]=i&255),b}function ea(t){return _t[t>>18&63]+_t[t>>12&63]+_t[t>>6&63]+_t[t&63]}function ta(t,i,p){for(var s,w=[],b=i;b<p;b+=3)s=(t[b]<<16&16711680)+(t[b+1]<<8&65280)+(t[b+2]&255),w.push(ea(s));return w.join("")}function na(t){for(var i,p=t.length,s=p%3,w=[],b=16383,c=0,n=p-s;c<n;c+=b)w.push(ta(t,c,c+b>n?n:c+b));return s===1?(i=t[p-1],w.push(_t[i>>2]+_t[i<<4&63]+"==")):s===2&&(i=(t[p-2]<<8)+t[p-1],w.push(_t[i>>10]+_t[i>>4&63]+_t[i<<2&63]+"=")),w.join("")}var gr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */gr.read=function(t,i,p,s,w){var b,c,n=w*8-s-1,y=(1<<n)-1,r=y>>1,e=-7,d=p?w-1:0,C=p?-1:1,l=t[i+d];for(d+=C,b=l&(1<<-e)-1,l>>=-e,e+=n;e>0;b=b*256+t[i+d],d+=C,e-=8);for(c=b&(1<<-e)-1,b>>=-e,e+=s;e>0;c=c*256+t[i+d],d+=C,e-=8);if(b===0)b=1-r;else{if(b===y)return c?NaN:(l?-1:1)*(1/0);c=c+Math.pow(2,s),b=b-r}return(l?-1:1)*c*Math.pow(2,b-s)},gr.write=function(t,i,p,s,w,b){var c,n,y,r=b*8-w-1,e=(1<<r)-1,d=e>>1,C=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=s?0:b-1,a=s?1:-1,o=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(n=isNaN(i)?1:0,c=e):(c=Math.floor(Math.log(i)/Math.LN2),i*(y=Math.pow(2,-c))<1&&(c--,y*=2),c+d>=1?i+=C/y:i+=C*Math.pow(2,1-d),i*y>=2&&(c++,y/=2),c+d>=e?(n=0,c=e):c+d>=1?(n=(i*y-1)*Math.pow(2,w),c=c+d):(n=i*Math.pow(2,d-1)*Math.pow(2,w),c=0));w>=8;t[p+l]=n&255,l+=a,n/=256,w-=8);for(c=c<<w|n,r+=w;r>0;t[p+l]=c&255,l+=a,c/=256,r-=8);t[p+l-a]|=o*128};/*!
42
42
  * The buffer module from node.js, for the browser.
43
43
  *
44
44
  * @author Feross Aboukhadijeh <https://feross.org>
45
45
  * @license MIT
46
- */(function(n){const h=Yt,m=Ln,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=t,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50;const w=2147483647;n.kMaxLength=w,t.TYPED_ARRAY_SUPPORT=p(),!t.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const O=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(O,d),O.foo()===42}catch{return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}});function s(O){if(O>w)throw new RangeError('The value "'+O+'" is invalid for option "size"');const d=new Uint8Array(O);return Object.setPrototypeOf(d,t.prototype),d}function t(O,d,x){if(typeof O=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(O)}return v(O,d,x)}t.poolSize=8192;function v(O,d,x){if(typeof O=="string")return _(O,d);if(ArrayBuffer.isView(O))return c(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(je(O,ArrayBuffer)||O&&je(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(O,SharedArrayBuffer)||O&&je(O.buffer,SharedArrayBuffer)))return i(O,d,x);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=O.valueOf&&O.valueOf();if(A!=null&&A!==O)return t.from(A,d,x);const j=S(O);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return t.from(O[Symbol.toPrimitive]("string"),d,x);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}t.from=function(O,d,x){return v(O,d,x)},Object.setPrototypeOf(t.prototype,Uint8Array.prototype),Object.setPrototypeOf(t,Uint8Array);function r(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function e(O,d,x){return r(O),O<=0?s(O):d!==void 0?typeof x=="string"?s(O).fill(d,x):s(O).fill(d):s(O)}t.alloc=function(O,d,x){return e(O,d,x)};function u(O){return r(O),s(O<0?0:f(O)|0)}t.allocUnsafe=function(O){return u(O)},t.allocUnsafeSlow=function(O){return u(O)};function _(O,d){if((typeof d!="string"||d==="")&&(d="utf8"),!t.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const x=l(O,d)|0;let A=s(x);const j=A.write(O,d);return j!==x&&(A=A.slice(0,j)),A}function a(O){const d=O.length<0?0:f(O.length)|0,x=s(d);for(let A=0;A<d;A+=1)x[A]=O[A]&255;return x}function c(O){if(je(O,Uint8Array)){const d=new Uint8Array(O);return i(d.buffer,d.byteOffset,d.byteLength)}return a(O)}function i(O,d,x){if(d<0||O.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<d+(x||0))throw new RangeError('"length" is outside of buffer bounds');let A;return d===void 0&&x===void 0?A=new Uint8Array(O):x===void 0?A=new Uint8Array(O,d):A=new Uint8Array(O,d,x),Object.setPrototypeOf(A,t.prototype),A}function S(O){if(t.isBuffer(O)){const d=f(O.length)|0,x=s(d);return x.length===0||O.copy(x,0,0,d),x}if(O.length!==void 0)return typeof O.length!="number"||K(O.length)?s(0):a(O);if(O.type==="Buffer"&&Array.isArray(O.data))return a(O.data)}function f(O){if(O>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return O|0}function y(O){return+O!=O&&(O=0),t.alloc(+O)}t.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==t.prototype},t.compare=function(d,x){if(je(d,Uint8Array)&&(d=t.from(d,d.offset,d.byteLength)),je(x,Uint8Array)&&(x=t.from(x,x.offset,x.byteLength)),!t.isBuffer(d)||!t.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===x)return 0;let A=d.length,j=x.length;for(let $=0,Y=Math.min(A,j);$<Y;++$)if(d[$]!==x[$]){A=d[$],j=x[$];break}return A<j?-1:j<A?1:0},t.isEncoding=function(d){switch(String(d).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}},t.concat=function(d,x){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return t.alloc(0);let A;if(x===void 0)for(x=0,A=0;A<d.length;++A)x+=d[A].length;const j=t.allocUnsafe(x);let $=0;for(A=0;A<d.length;++A){let Y=d[A];if(je(Y,Uint8Array))$+Y.length>j.length?(t.isBuffer(Y)||(Y=t.from(Y)),Y.copy(j,$)):Uint8Array.prototype.set.call(j,Y,$);else if(t.isBuffer(Y))Y.copy(j,$);else throw new TypeError('"list" argument must be an Array of Buffers');$+=Y.length}return j};function l(O,d){if(t.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||je(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const x=O.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&x===0)return 0;let j=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return x;case"utf8":case"utf-8":return pe(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x*2;case"hex":return x>>>1;case"base64":return we(O).length;default:if(j)return A?-1:pe(O).length;d=(""+d).toLowerCase(),j=!0}}t.byteLength=l;function o(O,d,x){let A=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((x===void 0||x>this.length)&&(x=this.length),x<=0)||(x>>>=0,d>>>=0,x<=d))return"";for(O||(O="utf8");;)switch(O){case"hex":return q(this,d,x);case"utf8":case"utf-8":return C(this,d,x);case"ascii":return X(this,d,x);case"latin1":case"binary":return z(this,d,x);case"base64":return B(this,d,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,d,x);default:if(A)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),A=!0}}t.prototype._isBuffer=!0;function b(O,d,x){const A=O[d];O[d]=O[x],O[x]=A}t.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<d;x+=2)b(this,x,x+1);return this},t.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<d;x+=4)b(this,x,x+3),b(this,x+1,x+2);return this},t.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<d;x+=8)b(this,x,x+7),b(this,x+1,x+6),b(this,x+2,x+5),b(this,x+3,x+4);return this},t.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?C(this,0,d):o.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(d){if(!t.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:t.compare(this,d)===0},t.prototype.inspect=function(){let d="";const x=n.INSPECT_MAX_BYTES;return d=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(d+=" ... "),"<Buffer "+d+">"},g&&(t.prototype[g]=t.prototype.inspect),t.prototype.compare=function(d,x,A,j,$){if(je(d,Uint8Array)&&(d=t.from(d,d.offset,d.byteLength)),!t.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(x===void 0&&(x=0),A===void 0&&(A=d?d.length:0),j===void 0&&(j=0),$===void 0&&($=this.length),x<0||A>d.length||j<0||$>this.length)throw new RangeError("out of range index");if(j>=$&&x>=A)return 0;if(j>=$)return-1;if(x>=A)return 1;if(x>>>=0,A>>>=0,j>>>=0,$>>>=0,this===d)return 0;let Y=$-j,ge=A-x;const De=Math.min(Y,ge),Ce=this.slice(j,$),T=d.slice(x,A);for(let M=0;M<De;++M)if(Ce[M]!==T[M]){Y=Ce[M],ge=T[M];break}return Y<ge?-1:ge<Y?1:0};function E(O,d,x,A,j){if(O.length===0)return-1;if(typeof x=="string"?(A=x,x=0):x>2147483647?x=2147483647:x<-2147483648&&(x=-2147483648),x=+x,K(x)&&(x=j?0:O.length-1),x<0&&(x=O.length+x),x>=O.length){if(j)return-1;x=O.length-1}else if(x<0)if(j)x=0;else return-1;if(typeof d=="string"&&(d=t.from(d,A)),t.isBuffer(d))return d.length===0?-1:R(O,d,x,A,j);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?j?Uint8Array.prototype.indexOf.call(O,d,x):Uint8Array.prototype.lastIndexOf.call(O,d,x):R(O,[d],x,A,j);throw new TypeError("val must be string, number or Buffer")}function R(O,d,x,A,j){let $=1,Y=O.length,ge=d.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(O.length<2||d.length<2)return-1;$=2,Y/=2,ge/=2,x/=2}function De(T,M){return $===1?T[M]:T.readUInt16BE(M*$)}let Ce;if(j){let T=-1;for(Ce=x;Ce<Y;Ce++)if(De(O,Ce)===De(d,T===-1?0:Ce-T)){if(T===-1&&(T=Ce),Ce-T+1===ge)return T*$}else T!==-1&&(Ce-=Ce-T),T=-1}else for(x+ge>Y&&(x=Y-ge),Ce=x;Ce>=0;Ce--){let T=!0;for(let M=0;M<ge;M++)if(De(O,Ce+M)!==De(d,M)){T=!1;break}if(T)return Ce}return-1}t.prototype.includes=function(d,x,A){return this.indexOf(d,x,A)!==-1},t.prototype.indexOf=function(d,x,A){return E(this,d,x,A,!0)},t.prototype.lastIndexOf=function(d,x,A){return E(this,d,x,A,!1)};function k(O,d,x,A){x=Number(x)||0;const j=O.length-x;A?(A=Number(A),A>j&&(A=j)):A=j;const $=d.length;A>$/2&&(A=$/2);let Y;for(Y=0;Y<A;++Y){const ge=parseInt(d.substr(Y*2,2),16);if(K(ge))return Y;O[x+Y]=ge}return Y}function P(O,d,x,A){return _e(pe(d,O.length-x),O,x,A)}function F(O,d,x,A){return _e(ce(d),O,x,A)}function U(O,d,x,A){return _e(we(d),O,x,A)}function L(O,d,x,A){return _e(ue(d,O.length-x),O,x,A)}t.prototype.write=function(d,x,A,j){if(x===void 0)j="utf8",A=this.length,x=0;else if(A===void 0&&typeof x=="string")j=x,A=this.length,x=0;else if(isFinite(x))x=x>>>0,isFinite(A)?(A=A>>>0,j===void 0&&(j="utf8")):(j=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $=this.length-x;if((A===void 0||A>$)&&(A=$),d.length>0&&(A<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let Y=!1;for(;;)switch(j){case"hex":return k(this,d,x,A);case"utf8":case"utf-8":return P(this,d,x,A);case"ascii":case"latin1":case"binary":return F(this,d,x,A);case"base64":return U(this,d,x,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,d,x,A);default:if(Y)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),Y=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(O,d,x){return d===0&&x===O.length?h.fromByteArray(O):h.fromByteArray(O.slice(d,x))}function C(O,d,x){x=Math.min(O.length,x);const A=[];let j=d;for(;j<x;){const $=O[j];let Y=null,ge=$>239?4:$>223?3:$>191?2:1;if(j+ge<=x){let De,Ce,T,M;switch(ge){case 1:$<128&&(Y=$);break;case 2:De=O[j+1],(De&192)===128&&(M=($&31)<<6|De&63,M>127&&(Y=M));break;case 3:De=O[j+1],Ce=O[j+2],(De&192)===128&&(Ce&192)===128&&(M=($&15)<<12|(De&63)<<6|Ce&63,M>2047&&(M<55296||M>57343)&&(Y=M));break;case 4:De=O[j+1],Ce=O[j+2],T=O[j+3],(De&192)===128&&(Ce&192)===128&&(T&192)===128&&(M=($&15)<<18|(De&63)<<12|(Ce&63)<<6|T&63,M>65535&&M<1114112&&(Y=M))}}Y===null?(Y=65533,ge=1):Y>65535&&(Y-=65536,A.push(Y>>>10&1023|55296),Y=56320|Y&1023),A.push(Y),j+=ge}return G(A)}const D=4096;function G(O){const d=O.length;if(d<=D)return String.fromCharCode.apply(String,O);let x="",A=0;for(;A<d;)x+=String.fromCharCode.apply(String,O.slice(A,A+=D));return x}function X(O,d,x){let A="";x=Math.min(O.length,x);for(let j=d;j<x;++j)A+=String.fromCharCode(O[j]&127);return A}function z(O,d,x){let A="";x=Math.min(O.length,x);for(let j=d;j<x;++j)A+=String.fromCharCode(O[j]);return A}function q(O,d,x){const A=O.length;(!d||d<0)&&(d=0),(!x||x<0||x>A)&&(x=A);let j="";for(let $=d;$<x;++$)j+=Z[O[$]];return j}function V(O,d,x){const A=O.slice(d,x);let j="";for(let $=0;$<A.length-1;$+=2)j+=String.fromCharCode(A[$]+A[$+1]*256);return j}t.prototype.slice=function(d,x){const A=this.length;d=~~d,x=x===void 0?A:~~x,d<0?(d+=A,d<0&&(d=0)):d>A&&(d=A),x<0?(x+=A,x<0&&(x=0)):x>A&&(x=A),x<d&&(x=d);const j=this.subarray(d,x);return Object.setPrototypeOf(j,t.prototype),j};function J(O,d,x){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+d>x)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(d,x,A){d=d>>>0,x=x>>>0,A||J(d,x,this.length);let j=this[d],$=1,Y=0;for(;++Y<x&&($*=256);)j+=this[d+Y]*$;return j},t.prototype.readUintBE=t.prototype.readUIntBE=function(d,x,A){d=d>>>0,x=x>>>0,A||J(d,x,this.length);let j=this[d+--x],$=1;for(;x>0&&($*=256);)j+=this[d+--x]*$;return j},t.prototype.readUint8=t.prototype.readUInt8=function(d,x){return d=d>>>0,x||J(d,1,this.length),this[d]},t.prototype.readUint16LE=t.prototype.readUInt16LE=function(d,x){return d=d>>>0,x||J(d,2,this.length),this[d]|this[d+1]<<8},t.prototype.readUint16BE=t.prototype.readUInt16BE=function(d,x){return d=d>>>0,x||J(d,2,this.length),this[d]<<8|this[d+1]},t.prototype.readUint32LE=t.prototype.readUInt32LE=function(d,x){return d=d>>>0,x||J(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},t.prototype.readUint32BE=t.prototype.readUInt32BE=function(d,x){return d=d>>>0,x||J(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},t.prototype.readBigUInt64LE=te(function(d){d=d>>>0,Q(d,"offset");const x=this[d],A=this[d+7];(x===void 0||A===void 0)&&se(d,this.length-8);const j=x+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,$=this[++d]+this[++d]*2**8+this[++d]*2**16+A*2**24;return BigInt(j)+(BigInt($)<<BigInt(32))}),t.prototype.readBigUInt64BE=te(function(d){d=d>>>0,Q(d,"offset");const x=this[d],A=this[d+7];(x===void 0||A===void 0)&&se(d,this.length-8);const j=x*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],$=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+A;return(BigInt(j)<<BigInt(32))+BigInt($)}),t.prototype.readIntLE=function(d,x,A){d=d>>>0,x=x>>>0,A||J(d,x,this.length);let j=this[d],$=1,Y=0;for(;++Y<x&&($*=256);)j+=this[d+Y]*$;return $*=128,j>=$&&(j-=Math.pow(2,8*x)),j},t.prototype.readIntBE=function(d,x,A){d=d>>>0,x=x>>>0,A||J(d,x,this.length);let j=x,$=1,Y=this[d+--j];for(;j>0&&($*=256);)Y+=this[d+--j]*$;return $*=128,Y>=$&&(Y-=Math.pow(2,8*x)),Y},t.prototype.readInt8=function(d,x){return d=d>>>0,x||J(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},t.prototype.readInt16LE=function(d,x){d=d>>>0,x||J(d,2,this.length);const A=this[d]|this[d+1]<<8;return A&32768?A|4294901760:A},t.prototype.readInt16BE=function(d,x){d=d>>>0,x||J(d,2,this.length);const A=this[d+1]|this[d]<<8;return A&32768?A|4294901760:A},t.prototype.readInt32LE=function(d,x){return d=d>>>0,x||J(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},t.prototype.readInt32BE=function(d,x){return d=d>>>0,x||J(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},t.prototype.readBigInt64LE=te(function(d){d=d>>>0,Q(d,"offset");const x=this[d],A=this[d+7];(x===void 0||A===void 0)&&se(d,this.length-8);const j=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(A<<24);return(BigInt(j)<<BigInt(32))+BigInt(x+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),t.prototype.readBigInt64BE=te(function(d){d=d>>>0,Q(d,"offset");const x=this[d],A=this[d+7];(x===void 0||A===void 0)&&se(d,this.length-8);const j=(x<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(j)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+A)}),t.prototype.readFloatLE=function(d,x){return d=d>>>0,x||J(d,4,this.length),m.read(this,d,!0,23,4)},t.prototype.readFloatBE=function(d,x){return d=d>>>0,x||J(d,4,this.length),m.read(this,d,!1,23,4)},t.prototype.readDoubleLE=function(d,x){return d=d>>>0,x||J(d,8,this.length),m.read(this,d,!0,52,8)},t.prototype.readDoubleBE=function(d,x){return d=d>>>0,x||J(d,8,this.length),m.read(this,d,!1,52,8)};function re(O,d,x,A,j,$){if(!t.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>j||d<$)throw new RangeError('"value" argument is out of bounds');if(x+A>O.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(d,x,A,j){if(d=+d,x=x>>>0,A=A>>>0,!j){const ge=Math.pow(2,8*A)-1;re(this,d,x,A,ge,0)}let $=1,Y=0;for(this[x]=d&255;++Y<A&&($*=256);)this[x+Y]=d/$&255;return x+A},t.prototype.writeUintBE=t.prototype.writeUIntBE=function(d,x,A,j){if(d=+d,x=x>>>0,A=A>>>0,!j){const ge=Math.pow(2,8*A)-1;re(this,d,x,A,ge,0)}let $=A-1,Y=1;for(this[x+$]=d&255;--$>=0&&(Y*=256);)this[x+$]=d/Y&255;return x+A},t.prototype.writeUint8=t.prototype.writeUInt8=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,1,255,0),this[x]=d&255,x+1},t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,2,65535,0),this[x]=d&255,this[x+1]=d>>>8,x+2},t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,2,65535,0),this[x]=d>>>8,this[x+1]=d&255,x+2},t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,4,4294967295,0),this[x+3]=d>>>24,this[x+2]=d>>>16,this[x+1]=d>>>8,this[x]=d&255,x+4},t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,4,4294967295,0),this[x]=d>>>24,this[x+1]=d>>>16,this[x+2]=d>>>8,this[x+3]=d&255,x+4};function fe(O,d,x,A,j){N(d,A,j,O,x,7);let $=Number(d&BigInt(4294967295));O[x++]=$,$=$>>8,O[x++]=$,$=$>>8,O[x++]=$,$=$>>8,O[x++]=$;let Y=Number(d>>BigInt(32)&BigInt(4294967295));return O[x++]=Y,Y=Y>>8,O[x++]=Y,Y=Y>>8,O[x++]=Y,Y=Y>>8,O[x++]=Y,x}function Pe(O,d,x,A,j){N(d,A,j,O,x,7);let $=Number(d&BigInt(4294967295));O[x+7]=$,$=$>>8,O[x+6]=$,$=$>>8,O[x+5]=$,$=$>>8,O[x+4]=$;let Y=Number(d>>BigInt(32)&BigInt(4294967295));return O[x+3]=Y,Y=Y>>8,O[x+2]=Y,Y=Y>>8,O[x+1]=Y,Y=Y>>8,O[x]=Y,x+8}t.prototype.writeBigUInt64LE=te(function(d,x=0){return fe(this,d,x,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeBigUInt64BE=te(function(d,x=0){return Pe(this,d,x,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeIntLE=function(d,x,A,j){if(d=+d,x=x>>>0,!j){const De=Math.pow(2,8*A-1);re(this,d,x,A,De-1,-De)}let $=0,Y=1,ge=0;for(this[x]=d&255;++$<A&&(Y*=256);)d<0&&ge===0&&this[x+$-1]!==0&&(ge=1),this[x+$]=(d/Y>>0)-ge&255;return x+A},t.prototype.writeIntBE=function(d,x,A,j){if(d=+d,x=x>>>0,!j){const De=Math.pow(2,8*A-1);re(this,d,x,A,De-1,-De)}let $=A-1,Y=1,ge=0;for(this[x+$]=d&255;--$>=0&&(Y*=256);)d<0&&ge===0&&this[x+$+1]!==0&&(ge=1),this[x+$]=(d/Y>>0)-ge&255;return x+A},t.prototype.writeInt8=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,1,127,-128),d<0&&(d=255+d+1),this[x]=d&255,x+1},t.prototype.writeInt16LE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,2,32767,-32768),this[x]=d&255,this[x+1]=d>>>8,x+2},t.prototype.writeInt16BE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,2,32767,-32768),this[x]=d>>>8,this[x+1]=d&255,x+2},t.prototype.writeInt32LE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,4,2147483647,-2147483648),this[x]=d&255,this[x+1]=d>>>8,this[x+2]=d>>>16,this[x+3]=d>>>24,x+4},t.prototype.writeInt32BE=function(d,x,A){return d=+d,x=x>>>0,A||re(this,d,x,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[x]=d>>>24,this[x+1]=d>>>16,this[x+2]=d>>>8,this[x+3]=d&255,x+4},t.prototype.writeBigInt64LE=te(function(d,x=0){return fe(this,d,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),t.prototype.writeBigInt64BE=te(function(d,x=0){return Pe(this,d,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ee(O,d,x,A,j,$){if(x+A>O.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("Index out of range")}function xe(O,d,x,A,j){return d=+d,x=x>>>0,j||Ee(O,d,x,4),m.write(O,d,x,A,23,4),x+4}t.prototype.writeFloatLE=function(d,x,A){return xe(this,d,x,!0,A)},t.prototype.writeFloatBE=function(d,x,A){return xe(this,d,x,!1,A)};function Be(O,d,x,A,j){return d=+d,x=x>>>0,j||Ee(O,d,x,8),m.write(O,d,x,A,52,8),x+8}t.prototype.writeDoubleLE=function(d,x,A){return Be(this,d,x,!0,A)},t.prototype.writeDoubleBE=function(d,x,A){return Be(this,d,x,!1,A)},t.prototype.copy=function(d,x,A,j){if(!t.isBuffer(d))throw new TypeError("argument should be a Buffer");if(A||(A=0),!j&&j!==0&&(j=this.length),x>=d.length&&(x=d.length),x||(x=0),j>0&&j<A&&(j=A),j===A||d.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),d.length-x<j-A&&(j=d.length-x+A);const $=j-A;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,A,j):Uint8Array.prototype.set.call(d,this.subarray(A,j),x),$},t.prototype.fill=function(d,x,A,j){if(typeof d=="string"){if(typeof x=="string"?(j=x,x=0,A=this.length):typeof A=="string"&&(j=A,A=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!t.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(d.length===1){const Y=d.charCodeAt(0);(j==="utf8"&&Y<128||j==="latin1")&&(d=Y)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(x<0||this.length<x||this.length<A)throw new RangeError("Out of range index");if(A<=x)return this;x=x>>>0,A=A===void 0?this.length:A>>>0,d||(d=0);let $;if(typeof d=="number")for($=x;$<A;++$)this[$]=d;else{const Y=t.isBuffer(d)?d:t.from(d,j),ge=Y.length;if(ge===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for($=0;$<A-x;++$)this[$+x]=Y[$%ge]}return this};const Re={};function He(O,d,x){Re[O]=class extends x{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}He("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),He("ERR_INVALID_ARG_TYPE",function(O,d){return`The "${O}" argument must be of type number. Received type ${typeof d}`},TypeError),He("ERR_OUT_OF_RANGE",function(O,d,x){let A=`The value of "${O}" is out of range.`,j=x;return Number.isInteger(x)&&Math.abs(x)>2**32?j=Ie(String(x)):typeof x=="bigint"&&(j=String(x),(x>BigInt(2)**BigInt(32)||x<-(BigInt(2)**BigInt(32)))&&(j=Ie(j)),j+="n"),A+=` It must be ${d}. Received ${j}`,A},RangeError);function Ie(O){let d="",x=O.length;const A=O[0]==="-"?1:0;for(;x>=A+4;x-=3)d=`_${O.slice(x-3,x)}${d}`;return`${O.slice(0,x)}${d}`}function H(O,d,x){Q(d,"offset"),(O[d]===void 0||O[d+x]===void 0)&&se(d,O.length-(x+1))}function N(O,d,x,A,j,$){if(O>x||O<d){const Y=typeof d=="bigint"?"n":"";let ge;throw d===0||d===BigInt(0)?ge=`>= 0${Y} and < 2${Y} ** ${($+1)*8}${Y}`:ge=`>= -(2${Y} ** ${($+1)*8-1}${Y}) and < 2 ** ${($+1)*8-1}${Y}`,new Re.ERR_OUT_OF_RANGE("value",ge,O)}H(A,j,$)}function Q(O,d){if(typeof O!="number")throw new Re.ERR_INVALID_ARG_TYPE(d,"number",O)}function se(O,d,x){throw Math.floor(O)!==O?(Q(O,x),new Re.ERR_OUT_OF_RANGE("offset","an integer",O)):d<0?new Re.ERR_BUFFER_OUT_OF_BOUNDS:new Re.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,O)}const le=/[^+/0-9A-Za-z-_]/g;function me(O){if(O=O.split("=")[0],O=O.trim().replace(le,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function pe(O,d){d=d||1/0;let x;const A=O.length;let j=null;const $=[];for(let Y=0;Y<A;++Y){if(x=O.charCodeAt(Y),x>55295&&x<57344){if(!j){if(x>56319){(d-=3)>-1&&$.push(239,191,189);continue}else if(Y+1===A){(d-=3)>-1&&$.push(239,191,189);continue}j=x;continue}if(x<56320){(d-=3)>-1&&$.push(239,191,189),j=x;continue}x=(j-55296<<10|x-56320)+65536}else j&&(d-=3)>-1&&$.push(239,191,189);if(j=null,x<128){if((d-=1)<0)break;$.push(x)}else if(x<2048){if((d-=2)<0)break;$.push(x>>6|192,x&63|128)}else if(x<65536){if((d-=3)<0)break;$.push(x>>12|224,x>>6&63|128,x&63|128)}else if(x<1114112){if((d-=4)<0)break;$.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw new Error("Invalid code point")}return $}function ce(O){const d=[];for(let x=0;x<O.length;++x)d.push(O.charCodeAt(x)&255);return d}function ue(O,d){let x,A,j;const $=[];for(let Y=0;Y<O.length&&!((d-=2)<0);++Y)x=O.charCodeAt(Y),A=x>>8,j=x%256,$.push(j),$.push(A);return $}function we(O){return h.toByteArray(me(O))}function _e(O,d,x,A){let j;for(j=0;j<A&&!(j+x>=d.length||j>=O.length);++j)d[j+x]=O[j];return j}function je(O,d){return O instanceof d||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===d.name}function K(O){return O!==O}const Z=function(){const O="0123456789abcdef",d=new Array(256);for(let x=0;x<16;++x){const A=x*16;for(let j=0;j<16;++j)d[A+j]=O[x]+O[j]}return d}();function te(O){return typeof BigInt>"u"?ie:O}function ie(){throw new Error("BigInt not supported")}})(Nr);var Mr={},Jt={},Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=Wo;let Qt;const Ko=new Uint8Array(16);function Wo(){if(!Qt&&(Qt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qt(Ko)}var ct={},gt={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=void 0;var zo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Zt.default=zo,Object.defineProperty(gt,"__esModule",{value:!0}),gt.default=void 0;var Yo=Jo(Zt);function Jo(n){return n&&n.__esModule?n:{default:n}}function Xo(n){return typeof n=="string"&&Yo.default.test(n)}var Qo=Xo;gt.default=Qo,Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=void 0,ct.unsafeStringify=Dr;var Zo=es(gt);function es(n){return n&&n.__esModule?n:{default:n}}const Ve=[];for(let n=0;n<256;++n)Ve.push((n+256).toString(16).slice(1));function Dr(n,h=0){return Ve[n[h+0]]+Ve[n[h+1]]+Ve[n[h+2]]+Ve[n[h+3]]+"-"+Ve[n[h+4]]+Ve[n[h+5]]+"-"+Ve[n[h+6]]+Ve[n[h+7]]+"-"+Ve[n[h+8]]+Ve[n[h+9]]+"-"+Ve[n[h+10]]+Ve[n[h+11]]+Ve[n[h+12]]+Ve[n[h+13]]+Ve[n[h+14]]+Ve[n[h+15]]}function ts(n,h=0){const m=Dr(n,h);if(!(0,Zo.default)(m))throw TypeError("Stringified UUID is invalid");return m}var ns=ts;ct.default=ns,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=void 0;var rs=os(Xt),is=ct;function os(n){return n&&n.__esModule?n:{default:n}}let Ur,Bn,Nn=0,jn=0;function ss(n,h,m){let g=h&&m||0;const w=h||new Array(16);n=n||{};let p=n.node||Ur,s=n.clockseq!==void 0?n.clockseq:Bn;if(p==null||s==null){const _=n.random||(n.rng||rs.default)();p==null&&(p=Ur=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),s==null&&(s=Bn=(_[6]<<8|_[7])&16383)}let t=n.msecs!==void 0?n.msecs:Date.now(),v=n.nsecs!==void 0?n.nsecs:jn+1;const r=t-Nn+(v-jn)/1e4;if(r<0&&n.clockseq===void 0&&(s=s+1&16383),(r<0||t>Nn)&&n.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nn=t,jn=v,Bn=s,t+=122192928e5;const e=((t&268435455)*1e4+v)%4294967296;w[g++]=e>>>24&255,w[g++]=e>>>16&255,w[g++]=e>>>8&255,w[g++]=e&255;const u=t/4294967296*1e4&268435455;w[g++]=u>>>8&255,w[g++]=u&255,w[g++]=u>>>24&15|16,w[g++]=u>>>16&255,w[g++]=s>>>8|128,w[g++]=s&255;for(let _=0;_<6;++_)w[g+_]=p[_];return h||(0,is.unsafeStringify)(w)}var as=ss;Jt.default=as;var en={},ut={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var ls=cs(gt);function cs(n){return n&&n.__esModule?n:{default:n}}function us(n){if(!(0,ls.default)(n))throw TypeError("Invalid UUID");let h;const m=new Uint8Array(16);return m[0]=(h=parseInt(n.slice(0,8),16))>>>24,m[1]=h>>>16&255,m[2]=h>>>8&255,m[3]=h&255,m[4]=(h=parseInt(n.slice(9,13),16))>>>8,m[5]=h&255,m[6]=(h=parseInt(n.slice(14,18),16))>>>8,m[7]=h&255,m[8]=(h=parseInt(n.slice(19,23),16))>>>8,m[9]=h&255,m[10]=(h=parseInt(n.slice(24,36),16))/1099511627776&255,m[11]=h/4294967296&255,m[12]=h>>>24&255,m[13]=h>>>16&255,m[14]=h>>>8&255,m[15]=h&255,m}var hs=us;Ct.default=hs,Object.defineProperty(ut,"__esModule",{value:!0}),ut.URL=ut.DNS=void 0,ut.default=gs;var fs=ct,ds=ps(Ct);function ps(n){return n&&n.__esModule?n:{default:n}}function ms(n){n=unescape(encodeURIComponent(n));const h=[];for(let m=0;m<n.length;++m)h.push(n.charCodeAt(m));return h}const Hr="6ba7b810-9dad-11d1-80b4-00c04fd430c8";ut.DNS=Hr;const $r="6ba7b811-9dad-11d1-80b4-00c04fd430c8";ut.URL=$r;function gs(n,h,m){function g(w,p,s,t){var v;if(typeof w=="string"&&(w=ms(w)),typeof p=="string"&&(p=(0,ds.default)(p)),((v=p)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let r=new Uint8Array(16+w.length);if(r.set(p),r.set(w,p.length),r=m(r),r[6]=r[6]&15|h,r[8]=r[8]&63|128,s){t=t||0;for(let e=0;e<16;++e)s[t+e]=r[e];return s}return(0,fs.unsafeStringify)(r)}try{g.name=n}catch{}return g.DNS=Hr,g.URL=$r,g}var tn={};Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;function ys(n){if(typeof n=="string"){const h=unescape(encodeURIComponent(n));n=new Uint8Array(h.length);for(let m=0;m<h.length;++m)n[m]=h.charCodeAt(m)}return vs(Ss(xs(n),n.length*8))}function vs(n){const h=[],m=n.length*32,g="0123456789abcdef";for(let w=0;w<m;w+=8){const p=n[w>>5]>>>w%32&255,s=parseInt(g.charAt(p>>>4&15)+g.charAt(p&15),16);h.push(s)}return h}function qr(n){return(n+64>>>9<<4)+14+1}function Ss(n,h){n[h>>5]|=128<<h%32,n[qr(h)-1]=h;let m=1732584193,g=-271733879,w=-1732584194,p=271733878;for(let s=0;s<n.length;s+=16){const t=m,v=g,r=w,e=p;m=Ke(m,g,w,p,n[s],7,-680876936),p=Ke(p,m,g,w,n[s+1],12,-389564586),w=Ke(w,p,m,g,n[s+2],17,606105819),g=Ke(g,w,p,m,n[s+3],22,-1044525330),m=Ke(m,g,w,p,n[s+4],7,-176418897),p=Ke(p,m,g,w,n[s+5],12,1200080426),w=Ke(w,p,m,g,n[s+6],17,-1473231341),g=Ke(g,w,p,m,n[s+7],22,-45705983),m=Ke(m,g,w,p,n[s+8],7,1770035416),p=Ke(p,m,g,w,n[s+9],12,-1958414417),w=Ke(w,p,m,g,n[s+10],17,-42063),g=Ke(g,w,p,m,n[s+11],22,-1990404162),m=Ke(m,g,w,p,n[s+12],7,1804603682),p=Ke(p,m,g,w,n[s+13],12,-40341101),w=Ke(w,p,m,g,n[s+14],17,-1502002290),g=Ke(g,w,p,m,n[s+15],22,1236535329),m=We(m,g,w,p,n[s+1],5,-165796510),p=We(p,m,g,w,n[s+6],9,-1069501632),w=We(w,p,m,g,n[s+11],14,643717713),g=We(g,w,p,m,n[s],20,-373897302),m=We(m,g,w,p,n[s+5],5,-701558691),p=We(p,m,g,w,n[s+10],9,38016083),w=We(w,p,m,g,n[s+15],14,-660478335),g=We(g,w,p,m,n[s+4],20,-405537848),m=We(m,g,w,p,n[s+9],5,568446438),p=We(p,m,g,w,n[s+14],9,-1019803690),w=We(w,p,m,g,n[s+3],14,-187363961),g=We(g,w,p,m,n[s+8],20,1163531501),m=We(m,g,w,p,n[s+13],5,-1444681467),p=We(p,m,g,w,n[s+2],9,-51403784),w=We(w,p,m,g,n[s+7],14,1735328473),g=We(g,w,p,m,n[s+12],20,-1926607734),m=ze(m,g,w,p,n[s+5],4,-378558),p=ze(p,m,g,w,n[s+8],11,-2022574463),w=ze(w,p,m,g,n[s+11],16,1839030562),g=ze(g,w,p,m,n[s+14],23,-35309556),m=ze(m,g,w,p,n[s+1],4,-1530992060),p=ze(p,m,g,w,n[s+4],11,1272893353),w=ze(w,p,m,g,n[s+7],16,-155497632),g=ze(g,w,p,m,n[s+10],23,-1094730640),m=ze(m,g,w,p,n[s+13],4,681279174),p=ze(p,m,g,w,n[s],11,-358537222),w=ze(w,p,m,g,n[s+3],16,-722521979),g=ze(g,w,p,m,n[s+6],23,76029189),m=ze(m,g,w,p,n[s+9],4,-640364487),p=ze(p,m,g,w,n[s+12],11,-421815835),w=ze(w,p,m,g,n[s+15],16,530742520),g=ze(g,w,p,m,n[s+2],23,-995338651),m=Ye(m,g,w,p,n[s],6,-198630844),p=Ye(p,m,g,w,n[s+7],10,1126891415),w=Ye(w,p,m,g,n[s+14],15,-1416354905),g=Ye(g,w,p,m,n[s+5],21,-57434055),m=Ye(m,g,w,p,n[s+12],6,1700485571),p=Ye(p,m,g,w,n[s+3],10,-1894986606),w=Ye(w,p,m,g,n[s+10],15,-1051523),g=Ye(g,w,p,m,n[s+1],21,-2054922799),m=Ye(m,g,w,p,n[s+8],6,1873313359),p=Ye(p,m,g,w,n[s+15],10,-30611744),w=Ye(w,p,m,g,n[s+6],15,-1560198380),g=Ye(g,w,p,m,n[s+13],21,1309151649),m=Ye(m,g,w,p,n[s+4],6,-145523070),p=Ye(p,m,g,w,n[s+11],10,-1120210379),w=Ye(w,p,m,g,n[s+2],15,718787259),g=Ye(g,w,p,m,n[s+9],21,-343485551),m=ht(m,t),g=ht(g,v),w=ht(w,r),p=ht(p,e)}return[m,g,w,p]}function xs(n){if(n.length===0)return[];const h=n.length*8,m=new Uint32Array(qr(h));for(let g=0;g<h;g+=8)m[g>>5]|=(n[g/8]&255)<<g%32;return m}function ht(n,h){const m=(n&65535)+(h&65535);return(n>>16)+(h>>16)+(m>>16)<<16|m&65535}function bs(n,h){return n<<h|n>>>32-h}function nn(n,h,m,g,w,p){return ht(bs(ht(ht(h,n),ht(g,p)),w),m)}function Ke(n,h,m,g,w,p,s){return nn(h&m|~h&g,n,h,w,p,s)}function We(n,h,m,g,w,p,s){return nn(h&g|m&~g,n,h,w,p,s)}function ze(n,h,m,g,w,p,s){return nn(h^m^g,n,h,w,p,s)}function Ye(n,h,m,g,w,p,s){return nn(m^(h|~g),n,h,w,p,s)}var Es=ys;tn.default=Es,Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var ws=Gr(ut),_s=Gr(tn);function Gr(n){return n&&n.__esModule?n:{default:n}}var Os=(0,ws.default)("v3",48,_s.default);en.default=Os;var rn={},on={};Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0;var ks={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};on.default=ks,Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=void 0;var Vr=Kr(on),Ps=Kr(Xt),Rs=ct;function Kr(n){return n&&n.__esModule?n:{default:n}}function As(n,h,m){if(Vr.default.randomUUID&&!h&&!n)return Vr.default.randomUUID();n=n||{};const g=n.random||(n.rng||Ps.default)();if(g[6]=g[6]&15|64,g[8]=g[8]&63|128,h){m=m||0;for(let w=0;w<16;++w)h[m+w]=g[w];return h}return(0,Rs.unsafeStringify)(g)}var Ts=As;rn.default=Ts;var sn={},an={};Object.defineProperty(an,"__esModule",{value:!0}),an.default=void 0;function Cs(n,h,m,g){switch(n){case 0:return h&m^~h&g;case 1:return h^m^g;case 2:return h&m^h&g^m&g;case 3:return h^m^g}}function Mn(n,h){return n<<h|n>>>32-h}function Fs(n){const h=[1518500249,1859775393,2400959708,3395469782],m=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const s=unescape(encodeURIComponent(n));n=[];for(let t=0;t<s.length;++t)n.push(s.charCodeAt(t))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const g=n.length/4+2,w=Math.ceil(g/16),p=new Array(w);for(let s=0;s<w;++s){const t=new Uint32Array(16);for(let v=0;v<16;++v)t[v]=n[s*64+v*4]<<24|n[s*64+v*4+1]<<16|n[s*64+v*4+2]<<8|n[s*64+v*4+3];p[s]=t}p[w-1][14]=(n.length-1)*8/Math.pow(2,32),p[w-1][14]=Math.floor(p[w-1][14]),p[w-1][15]=(n.length-1)*8&4294967295;for(let s=0;s<w;++s){const t=new Uint32Array(80);for(let a=0;a<16;++a)t[a]=p[s][a];for(let a=16;a<80;++a)t[a]=Mn(t[a-3]^t[a-8]^t[a-14]^t[a-16],1);let v=m[0],r=m[1],e=m[2],u=m[3],_=m[4];for(let a=0;a<80;++a){const c=Math.floor(a/20),i=Mn(v,5)+Cs(c,r,e,u)+_+h[c]+t[a]>>>0;_=u,u=e,e=Mn(r,30)>>>0,r=v,v=i}m[0]=m[0]+v>>>0,m[1]=m[1]+r>>>0,m[2]=m[2]+e>>>0,m[3]=m[3]+u>>>0,m[4]=m[4]+_>>>0}return[m[0]>>24&255,m[0]>>16&255,m[0]>>8&255,m[0]&255,m[1]>>24&255,m[1]>>16&255,m[1]>>8&255,m[1]&255,m[2]>>24&255,m[2]>>16&255,m[2]>>8&255,m[2]&255,m[3]>>24&255,m[3]>>16&255,m[3]>>8&255,m[3]&255,m[4]>>24&255,m[4]>>16&255,m[4]>>8&255,m[4]&255]}var Is=Fs;an.default=Is,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=void 0;var Ls=Wr(ut),Bs=Wr(an);function Wr(n){return n&&n.__esModule?n:{default:n}}var Ns=(0,Ls.default)("v5",80,Bs.default);sn.default=Ns;var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;var js="00000000-0000-0000-0000-000000000000";ln.default=js;var cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var Ms=Ds(gt);function Ds(n){return n&&n.__esModule?n:{default:n}}function Us(n){if(!(0,Ms.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var Hs=Us;cn.default=Hs,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return s.default}});var h=e(Jt),m=e(en),g=e(rn),w=e(sn),p=e(ln),s=e(cn),t=e(gt),v=e(ct),r=e(Ct);function e(u){return u&&u.__esModule?u:{default:u}}}(Mr);const zr=Nr.Buffer,{v4:$s}=Mr;var Dn={isFunction:function(n){return n&&{}.toString.call(n)==="[object Function]"},base64:function(n){if(vt.window={},window&&window.btoa)return window.btoa(n);if(zr)return zr.from(n).toString("base64")},validateSetPagingParams:function(n,h,m,g){if(n<1)throw"page must be 1 or bigger";if(h<1||h>300)throw"pageSize must be 1-300";if(!m||!g)throw"invalid values for sortBy or sortOrder: "+m+", "+g;if(!(typeof m=="string"&&typeof g=="string"||Array.isArray(m)&&Array.isArray(g)))throw"sortBy and sortOrder must have the same type: string or Array";if(Array.isArray(m)&&m.length!==g.length)throw"sortBy and sortOrder must have the same size";if(typeof g=="string"&&g!=="asc"&&g!=="desc")throw"sortOrder must be asc or desc";if(Array.isArray(g)&&g.filter(function(w){return w!=="desc"&&w!=="asc"}).length>0)throw"all values of sortOrder array must be asc or desc"},generateUUID:function(){return $s().replace(/-/g,"")}};const qs=Dn,Ft=dn.Promise,It=Cr.default,Lt=function(n,h){return{Authorization:"Basic "+qs.base64(n+":"+h),"Content-Type":"application/json"}};var Gs=function(n,h,m,g){return new Ft((p,s)=>{It.get("https://"+n+"/v2/indices/"+h+"/documents/"+g,{headers:Lt(h,m)}).then(t=>{t.status==200?p(t.data):s({status:t.status,text:t.statusText})}).catch(t=>{s({status:400,text:t})})})},Vs=function(n,h,m,g){const w=g.id||g.url;return new Ft((s,t)=>{It({url:"https://"+n+"/v2/indices/"+h+"/documents/",method:w?"put":"post",headers:Lt(h,m),data:g}).then(v=>{v.status==202?s({status:v.status,text:v.statusText}):t({status:v.status,text:v.statusText})}).catch(v=>{t({status:400,text:v})})})},Ks=function(n,h,m,g){return new Ft((p,s)=>{It({method:"put",url:"https://"+n+"/v2/indices/"+h+"/documents:batch",headers:Lt(h,m),data:g}).then(t=>{t.status==202?p({status:t.status,text:t.statusText}):s({status:t.status,text:t.statusText})}).catch(t=>{s({status:400,text:t})})})},Ws=function(n,h,m,g){return new Ft((p,s)=>{It.delete("https://"+n+"/v2/indices/"+h+"/documents/"+g,{headers:Lt(h,m)}).then(t=>{t.status==202?p({status:t.status,text:t.statusText}):s({status:t.status,text:t.statusText})}).catch(t=>{s({status:400,text:t})})})},zs=function(n,h,m,g){return new Ft((p,s)=>{It.delete("https://"+n+"/v2/indices/"+h+"/documents:batch",{headers:Lt(h,m),data:g}).then(t=>{t.status==202?p({status:t.status,text:t.statusText}):s({status:t.status,text:t.statusText})}).catch(t=>{s({status:400,text:t})})})},Ys={getDocument:Gs,saveDocument:Vs,saveDocumentsBatch:Ks,deleteDocument:Ws,deleteDocumentsBatch:zs};dn.polyfill();const Js=Fn.statsInstance;var Xs=function(n,h,m,g){typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!g?navigator.sendBeacon("https://"+n+"/v1/stats/"+h+"/",JSON.stringify(m)):Js.post("https://"+n+"/v1/stats/"+h+"/",m,{headers:{"Content-Type":"text/plain"}})},Qs=Xs,Zs=Dn,ea=function(){this.settings={keyword:"*",callback:null,throttleTimeMs:200,fuzzy:"auto",paging:{page:1,pageSize:10,sortBy:"relevance",sortOrder:"desc"},customFieldFilters:[],userToken:null,suggestionsSize:10,facetFields:[],autocomplete:{size:10},searchOperator:null,enableLogicalOperators:!1,cacheResponseTime:null,statsRequestIntercepted:!1},this.getSettings=function(){return this.settings},this.setKeyword=function(n){this.settings.keyword=n||"*"},this.setCallback=function(n){this.settings.callback=n},this.setThrottleTime=function(n){this.settings.throttleTimeMs=n},this.setSuggestionsPrefix=function(n){this.settings.suggestionsPrefix=n},this.setSuggestionsSize=function(n){this.settings.suggestionsSize=n},this.setAutocompleteSize=function(n){this.settings.autocomplete.size=n},this.setAutocompleteParams=function(n,h){this.settings.autocomplete.field=n,this.settings.autocomplete.prefix=h},this.setLanguage=function(n){var h;if(Intl&&Intl.Locale)try{h=new Intl.Locale(n).language}catch{throw'use accepted language code provided by ECMAScript Internationalization API (e.g. "en", "en-GB")'}else h=n;if(h&&h.length!==2)throw'use 2-char/4-char language code (e.g. "en", "en-GB")';this.settings.lang=h},this.setFuzzyMatch=function(n){if(n!==!0&&n!==!1&&n!=="auto"&&n!=="retry")throw"fuzzy matching can be true, false, 'auto', or 'retry'";this.settings.fuzzy=n},this.enableLogicalOperators=function(n){this.settings.enableLogicalOperators=n},this.setCacheResponseTime=function(n){this.settings.cacheResponseTime=n},this.setPostfixWildcard=function(n){this.settings.postfixWildcard=n},this.setCollectAnalytics=function(n){this.settings.collectAnalytics=n},this.setAnalyticsTag=function(n){this.settings.analyticsTag=n},this.setCategoryFilters=function(n){this.settings.categories=n},this.setFilterObject=function(n){this.settings.filterObject=n},this.setPriceRangeFilter=function(n,h){this.settings.priceFromCents=n,this.settings.priceToCents=h},this.addCustomFieldFilter=function(n,h){var m=encodeURIComponent(n+"="+h);this.settings.customFieldFilters.indexOf(m)===-1&&this.settings.customFieldFilters.push(m)},this.removeCustomFieldFilter=function(n,h){var m=!1,g=encodeURIComponent(n+"="+h);h||(m=!0,g=encodeURIComponent(n+"="));for(var w=this.settings.customFieldFilters.length;w>0;w--){var p=this.settings.customFieldFilters[w-1];m&&p.indexOf(g)===0?this.settings.customFieldFilters.splice(w-1,1):p===g&&this.settings.customFieldFilters.splice(w-1,1)}},this.setDateFilter=function(n,h){this.settings.dateFrom=n,this.settings.dateTo=h},this.setKeyword=function(n){this.settings.keyword=n||"*"},this.setJWT=function(n){this.settings.jwt=n},this.setUserToken=function(n){this.settings.userToken=n},this.setPersonalizationEvents=function(n){this.settings.personalizationEvents=n},this.setResultType=function(n){this.settings.resultType=n},this.addFacetField=function(n){this.settings.facetFields.indexOf(n)===-1&&this.settings.facetFields.push(n)},this.addHierarchicalFacetSetting=function(n){this.settings.hierarchicalFacetSetting=n},this.addRangeFacet=function(n,h){this.settings.rangeFacets||(this.settings.rangeFacets=[]),this.settings.rangeFacets.push({field:n,ranges:h})},this.addStatsField=function(n){this.settings.statsFields||(this.settings.statsFields=[]),this.settings.statsFields.indexOf(n)===-1&&this.settings.statsFields.push(n)},this.setNumberOfFacets=function(n){this.settings.numFacets=n},this.setPaging=function(n,h,m,g){Zs.validateSetPagingParams(n,h,m,g),this.settings.paging.page=n,this.settings.paging.pageSize=h,this.settings.paging.sortBy=m,this.settings.paging.sortOrder=g},this.setShuffleAndLimitTo=function(n){this.settings.shuffleAndLimitTo=n},this.nextPage=function(){this.settings.paging.page=this.settings.paging.page+1},this.previousPage=function(){this.settings.paging.page>0&&(this.settings.paging.page=this.settings.paging.page-1)},this.setSearchOperator=function(n){if(n!=="and"&&n!=="or")throw"operator must be 'and' || 'or'";this.settings.searchOperator=n},this.setStatsRequestIntercepted=function(n){this.settings.statsRequestIntercepted=n}},ta=ea,na=function(n,h){var m=0,g;function w(){g&&clearTimeout(g)}function p(){var s=this,t=Date.now()-m,v=arguments;function r(){m=Date.now(),h.apply(s,v)}w(),t>n?r():g=setTimeout(r,n-t)}return p},ra=na,ia={setCookie:function(n,h,m){if(typeof document>"u")return;const g=new Date;g.setTime(g.getTime()+m*24*60*60*1e3);let w="expires="+g.toUTCString();document.cookie=n+"="+h+";"+w+";path=/"},getCookie:function(n){if(typeof document>"u")return;let h=n+"=",g=decodeURIComponent(document.cookie).split(";");for(let w=0;w<g.length;w++){let p=g[w];for(;p.charAt(0)===" ";)p=p.substring(1);if(p.indexOf(h)===0)return p.substring(h.length,p.length)}},deleteCookie:function(n){typeof document>"u"||(document.cookie=n+"=; Path=/; Expires=Thu, 01 Jan 2000 00:00:01 GMT;")}},Et=jo,Bt=Ys,Yr=Qs,oa=ta,wt=Dn,un=ra,Un=ia,hn=Fn.setRequestInterceptor,Jr="api.addsearch.com",Hn="addsearchUserToken",sa=function(n,h){this.sitekey=n,this.privatekey=h,this.apiHostname=Jr,this.statsApiHostname=Jr,this.settings=new oa,this.sessionId=("a-"+Math.random()*1e8).substring(0,10),this.userTokenInPersonalization=Un.getCookie(Hn)||wt.generateUUID(),this.search=function(p,s){var t=null,v=null;if(p&&wt.isFunction(s))t=p,v=s;else if(!s&&wt.isFunction(p))t=this.settings.getSettings().keyword,v=p;else if(this.settings.getSettings().callback)t=this.settings.getSettings().keyword,v=this.settings.getSettings().callback;else throw"Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)";this.settings.setCallback(v),this.settings.setKeyword(t),this.throttledSearchFetch||(this.throttledSearchFetch=un(this.settings.getSettings().throttleTimeMs,Et)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),v)},this.suggestions=function(p,s){if(!p||!s||!wt.isFunction(s))throw"Illegal suggestions parameters. Should be (prefix, callbackFunction)";this.settings.setSuggestionsPrefix(p),this.throttledSuggestionsFetch||(this.throttledSuggestionsFetch=un(this.settings.getSettings().throttleTimeMs,Et)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),s)},this.autocomplete=function(p,s,t){if(!p||!s||!t||!wt.isFunction(t))throw"Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)";this.settings.setAutocompleteParams(p,s),this.throttledAutocompleteFetch||(this.throttledAutocompleteFetch=un(this.settings.getSettings().throttleTimeMs,Et)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),t)},this.fetchCustomApi=function(p,s,t){var v=Object.assign({},this.settings.getSettings());v.facetFields=v.facetFields.filter(r=>p===r),Et(this.apiHostname,this.sitekey,"search",v,t,null,s)},this.fetchRangeFacets=function(p,s,t){var v=Object.assign({},this.settings.getSettings());v.rangeFacets||(v.rangeFacets=[]),v.rangeFacets.push({field:p.field,ranges:p.ranges}),Et(this.apiHostname,this.sitekey,"search",v,t,null,s)},this.recommendations=function(p,s){if(!p||!s||!wt.isFunction(s))throw"Illegal recommendations parameters. Should be (options, callbackFunction)";this.throttledSuggestionsFetch||(this.throttledSuggestionsFetch=un(this.settings.getSettings().throttleTimeMs,Et)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"recommend",null,s,!1,null,p)},this.getDocument=function(p){return Bt.getDocument(this.apiHostname,this.sitekey,this.privatekey,p)},this.saveDocument=function(p){return Bt.saveDocument(this.apiHostname,this.sitekey,this.privatekey,p)},this.saveDocumentsBatch=function(p){if(!p||!p.documents||!Array.isArray(p.documents))throw"Please provide an array of documents: {documents: []}";return Bt.saveDocumentsBatch(this.apiHostname,this.sitekey,this.privatekey,p)},this.deleteDocument=function(p){return Bt.deleteDocument(this.apiHostname,this.sitekey,this.privatekey,p)},this.deleteDocumentsBatch=function(p){if(!p||!p.documents||!Array.isArray(p.documents))throw"Please provide an array of document ids: {documents: []}";return Bt.deleteDocumentsBatch(this.apiHostname,this.sitekey,this.privatekey,p)},this.setApiHostname=function(p,s){(!s||!s.statsApiRequestOnly)&&(this.apiHostname=p),(!s||!s.searchApiRequestOnly)&&(this.statsApiHostname=p)},this.getSettings=function(){return this.settings.getSettings()},this.setLanguage=function(p){this.settings.setLanguage(p)},this.setCategoryFilters=function(p){this.settings.setCategoryFilters(p)},this.addCustomFieldFilter=function(p,s){this.settings.addCustomFieldFilter(p,s)},this.removeCustomFieldFilter=function(p,s){this.settings.removeCustomFieldFilter(p,s)},this.setPriceRangeFilter=function(p,s){this.settings.setPriceRangeFilter(p,s)},this.setDateFilter=function(p,s){this.settings.setDateFilter(p,s)},this.setJWT=function(p){this.settings.setJWT(p)},this.setUserToken=function(p){this.settings.setUserToken(p)},this.setPaging=function(p,s,t,v){this.settings.setPaging(p,s,t,v)},this.nextPage=function(){this.settings.nextPage()},this.previousPage=function(){this.settings.previousPage()},this.setSuggestionsSize=function(p){this.settings.setSuggestionsSize(p)},this.setAutocompleteSize=function(p){this.settings.setAutocompleteSize(p)},this.addFacetField=function(p){this.settings.addFacetField(p)},this.addHierarchicalFacetSetting=function(p){this.settings.addHierarchicalFacetSetting(p)},this.addRangeFacet=function(p,s){this.settings.addRangeFacet(p,s)},this.addStatsField=function(p){this.settings.addStatsField(p)},this.setNumberOfFacets=function(p){this.settings.setNumberOfFacets(p)},this.setResultType=function(p){this.settings.setResultType(p)},this.setPersonalizationEvents=function(p){this.settings.setPersonalizationEvents(p)},this.setFilterObject=function(p){this.settings.setFilterObject(p)},this.setShuffleAndLimitTo=function(p){this.settings.setShuffleAndLimitTo(p)},this.setFuzzyMatch=function(p){this.settings.setFuzzyMatch(p)},this.setPostfixWildcard=function(p){this.settings.setPostfixWildcard(p)},this.setCacheResponseTime=function(p){this.settings.setCacheResponseTime(p)},this.setCollectAnalytics=function(p){this.settings.setCollectAnalytics(p)},this.setAnalyticsTag=function(p){this.settings.setAnalyticsTag(p)},this.setThrottleTime=function(p){this.settings.setThrottleTime(p)},this.setStatsSessionId=function(p){this.sessionId=p,this.userTokenInPersonalization=p,this.useStatsSessionId=!0},this.getStatsSessionId=function(){return this.sessionId},this.enableLogicalOperators=function(p){this.settings.enableLogicalOperators(p)},this.setSearchOperator=function(p){this.settings.setSearchOperator(p)},this.sendStatsEvent=function(p,s,t){var v=!this.useStatsSessionId&&m&&g;if(v&&!Un.getCookie(Hn)&&Un.setCookie(Hn,this.userTokenInPersonalization,w),p==="search"){let r={action:"search",session:v?this.userTokenInPersonalization:this.sessionId,keyword:s,numberOfResults:t.numberOfResults,tag:this.getSettings().analyticsTag};Yr(this.statsApiHostname,this.sitekey,r,this.settings.getSettings().statsRequestIntercepted)}else if(p==="click"){let r={action:"click",session:v?this.userTokenInPersonalization:this.sessionId,keyword:s,docid:t.documentId,position:t.position,tag:this.getSettings().analyticsTag};Yr(this.statsApiHostname,this.sitekey,r,this.settings.getSettings().statsRequestIntercepted)}else throw"Illegal sendStatsEvent type parameters. Should be search or click)"};var m=!1,g=!1,w=180;this.getUserTokenInPersonalization=function(){return this.userTokenInPersonalization},this.enablePersonalizationTracking=function(p,s){m=!!p,s&&(w=s)},this.consentAddSearchCookie=function(p){g=!!p},this.setApiRequestInterceptor=function(p,s={}){if(typeof p!="function"){window.console.error("API interceptor must be a function");return}const{searchApiRequestOnly:t=!1,statsApiRequestOnly:v=!1}=s;!t&&!v?(hn(p,"searchApi"),hn(p,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(t&&hn(p,"searchApi"),v&&(hn(p,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))},this.searchResultClicked=function(p,s){this.sendStatsEvent("click",this.settings.getSettings().keyword,{documentId:p,position:s})}},aa=sa,la=aa;const ca=qn(la);var Xr={exports:{}};/*! addsearch-search-ui 0.8.15 */(function(n,h){(function(m,g){n.exports=g()})(vt,function(){return function(){var m={2987:function(p,s,t){p.exports=t(479).default,p.exports.AUTOCOMPLETE_TYPE=t(6510).AUTOCOMPLETE_TYPE,p.exports.FILTER_TYPE=t(9369).FILTER_TYPE,p.exports.SORTBY_TYPE=t(8909).SORTBY_TYPE,p.exports.LOAD_MORE_TYPE=t(3816).LOAD_MORE_TYPE,p.exports.RECOMMENDATION_TYPE=t(4128).RECOMMENDATION_TYPE,p.exports.RANGE_FACETS_TYPE=t(1990).RANGE_FACETS_TYPE,p.exports.Handlebars_runtime=t(261)},6148:function(p,s,t){t.d(s,{Ah:function(){return z},B5:function(){return f},C0:function(){return G},F2:function(){return U},FJ:function(){return y},GA:function(){return B},GB:function(){return S},Jd:function(){return b},KR:function(){return r},Km:function(){return c},MO:function(){return P},Pf:function(){return R},VW:function(){return v},XD:function(){return X},Xr:function(){return k},d5:function(){return E},dC:function(){return D},h$:function(){return i},hR:function(){return F},hx:function(){return l},il:function(){return o},kw:function(){return e},nl:function(){return C},nn:function(){return _},p3:function(){return a},vT:function(){return u}});const v="AUTOCOMPLETE_FETCH_START",r="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",u="AUTOCOMPLETE_SUGGESTIONS_CLEAR",_="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",a="AUTOCOMPLETE_SEARCH_RESULTS",c="AUTOCOMPLETE_SEARCH_CLEAR",i="AUTOCOMPLETE_SHOW",S="AUTOCOMPLETE_HIDE",f="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",y="HIDE_AUTOMATICALLY",l="KEYBOARD_EVENT",o="ARROW_UP",b="ARROW_DOWN",E="SET_ACTIVE_SUGGESTION",R="suggestions",k="custom_fields";function P(q,V){return V&&V!==""?J=>{J(L(R)),q.suggestions(V,re=>J(function(fe,Pe){return{type:r,keyword:fe,results:Pe}}(V,re)))}:{type:u}}function F(q,V,J){return V&&V!==""?re=>{re(L(k)),q.autocomplete(J,V,fe=>re({type:e,results:fe}))}:{type:_}}function U(q,V,J,re){return J&&J!==""?fe=>{fe(L(V)),q.search(J,Pe=>fe(function(Ee,xe,Be,Re){return{type:a,keyword:Ee,results:xe,jsonKey:Be,appendResults:Re}}(J,Pe,V,re)))}:{type:c}}function L(q){return{type:v,jsonKey:q}}function B(){return{type:i}}function C(){return{type:S}}function D(){return{type:f}}function G(q){return{type:l,direction:q}}function X(q,V){return{type:E,index:q,setSuggestionToSearchField:V}}function z(q){return{type:y,hideAutomatically:q}}},6843:function(p,s,t){t.d(s,{IJ:function(){return v},Ow:function(){return e},nb:function(){return r},np:function(){return u}});const v="SET_FIELD_STATS",r="CLEAR_FIELD_STATS";function e(_,a){return{type:v,fieldStats:_,callBy:a}}function u(){return{type:r}}},549:function(p,s,t){t.d(s,{CY:function(){return v},Gc:function(){return L},II:function(){return P},IS:function(){return S},JS:function(){return a},Ni:function(){return F},QW:function(){return i},Tv:function(){return y},Uj:function(){return r},VH:function(){return o},VN:function(){return _},XI:function(){return e},Xh:function(){return R},cl:function(){return c},eu:function(){return E},hx:function(){return B},jU:function(){return U},ks:function(){return k},u3:function(){return b},uR:function(){return u},ul:function(){return l},vj:function(){return f}});const v="TOGGLE_FILTER",r="SET_RANGE_FILTER",e="REGISTER_FILTER",u="SET_ACTIVE_FILTERS",_="SET_ACTIVE_FACETS",a="SET_ACTIVE_RANGE_FACETS",c="TOGGLE_FACET_FILTER",i="TOGGLE_HIERARCHICAL_FACET_FILTER",S="TOGGLE_RANGE_FACET_FILTER",f="CLEAR_SELECTED_FILTERS_AND_FACETS",y="CLEAR_SELECTED_RANGE_FACETS";function l(C){return{type:e,filterObj:C}}function o(C,D,G){return{type:v,filterName:C,value:D,refreshSearch:G}}function b(C,D,G){return{type:r,field:C,from:D,to:G}}function E(C){return{type:u,json:C}}function R(C){return{type:_,json:C}}function k(C,D,G){return{type:a,json:C,refreshSearch:D,field:G}}function P(C,D,G){return{type:c,field:C,value:D,refreshSearch:G}}function F(C,D,G,X,z){return{type:i,field:C,container:D,confFields:G,value:X,refreshSearch:z}}function U(C,D,G,X,z){return{type:S,field:C,values:D,key:G,refreshSearch:X,byActiveFilterComponent:z}}function L(C,D){return{type:y,refreshSearch:C,setHistory:D}}function B(C,D){return{type:f,refreshSearch:C,byActiveFilterComponent:D}}},6993:function(p,s,t){t.d(s,{A:function(){return r},Q:function(){return v}});const v="KEYWORD";function r(e,u,_,a){return{type:v,value:e,skipAutocomplete:u,searchFieldContainerId:_||null,setSearchFieldValue:a||!1}}},5756:function(p,s,t){t.d(s,{I:function(){return e},N:function(){return r}});var v=t(4903);const r="SET_PAGE";function e(u,_,a,c){a===!1||u.getSettings().paging.page===_&&_!==1||(0,v.Dh)(v.sh.PAGE,_+"",null,c);const i=u.getSettings().paging;return u.setPaging(_,i.pageSize,i.sortBy,i.sortOrder),{type:r,page:_}}},878:function(p,s,t){t.d(s,{KE:function(){return u},OU:function(){return e},T7:function(){return a},iM:function(){return r},vh:function(){return _}}),t(479),t(4903);var v=t(3007);const r="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",u="CLEAR_RECOMMENDATION";function _(c,i){return S=>{switch(i.type){case v.Qc:c.recommendations(i,f=>{var y;S((y=i.container,{type:r,container:y,recommendType:"frequently-bought-together",results:f}))});break;case v.uH:c.recommendations(i,f=>{var y;S((y=i.container,{type:e,container:y,recommendType:"related-items",results:f}))})}}}function a(){return{type:u}}},1944:function(p,s,t){t.d(s,{$P:function(){return f},AX:function(){return y},d3:function(){return u},j2:function(){return _},lq:function(){return l},mY:function(){return c},ni:function(){return S},xE:function(){return a},y$:function(){return i}});var v=t(479),r=t(4903),e=t(6351);const u="START",_="SET_SEARCH_RESULTS_PAGE_URL",a="SEARCH_FETCH_START",c="SEARCH_RESULTS",i="CLEAR_SEARCH_RESULTS";function S(){return{type:u}}function f(o,b,E,R,k,P,F,U,L){return(0,r.Dh)(r.sh.SEARCH,b,k,P),b&&b!==""?B=>{B({type:a}),o.search(b,C=>{if((L||F)&&C&&C.hits&&C.hits.length){var D=(L||F).replace("custom_fields.",""),G=function(X,z,q){return z.find(V=>{if(!V.custom_fields||!V.custom_fields[q])return!1;if(typeof V.custom_fields[q]=="string")return X.toLowerCase()===V.custom_fields[q].toLowerCase();if(typeof V.custom_fields[q]=="object"&&V.custom_fields[q].length){const J=V.custom_fields[q].map(fe=>fe.toLowerCase()),re=X.toLowerCase();return J.indexOf(re)>-1}return!1})}(b,C.hits,D);if(G&&!k)return void window.location.replace(G.url)}B(function(X,z,q,V,J,re){if(/top-delay-\d*$/.test(V)){var fe=parseInt(V.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},fe)}else V==="top"&&window.scrollTo(0,0);if(z&&z.indexOf(v.H)===-1){const Pe=q?q.total_hits:0,Ee=q?q.processing_time_ms:0;(0,e.mh)(X,z,Pe,Ee)}return{type:c,keyword:z,results:q,appendResults:J,requestBy:re}}(o,b,C,E,R,U))})}:{type:i}}function y(o){return o==="top"&&window.scrollTo(0,0),{type:i}}function l(o){return{type:_,url:o}}},4826:function(p,s,t){t.d(s,{JK:function(){return r},VD:function(){return e},l$:function(){return u},lD:function(){return v}});const v="SEGMENTED_SEARCH_START",r="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function u(_,a,c){return c&&c!==""?i=>{i(function(S){return{type:v,jsonKey:S}}(a)),_.search(c,S=>i(function(f,y,l){return{type:r,jsonKey:f,keyword:y,results:l}}(a,c,S)))}:{type:e}}},6353:function(p,s,t){t.d(s,{ER:function(){return e},O0:function(){return r},Ul:function(){return u}});var v=t(4903);const r="SORTBY",e="desc";function u(_,a,c,i){i&&(0,v.Dh)(v.sh.SORTBY,JSON.stringify({field:a,order:c}),null,i);const S=_.getSettings().paging;return _.setPaging(S.page,S.pageSize,a,c),{type:r,field:a,order:c}}},6510:function(p,s,t){t.d(s,{AUTOCOMPLETE_TYPE:function(){return b},A:function(){return o}});var v=t(2334),r=t.n(v),e=t(6148),u=t(1944),_=t(6993),a=t(4922),c=t(4379),i=t(6351),S=t(4903),f=t(3923),y=t(209),l=t.n(y);class o{constructor(R,k,P){this.client=R,this.reduxStore=k,this.conf=P,this.lastOnmouseOver=null,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const F=this.conf.categorySelectionFunction||f.GK;(0,f.g3)("selectSearchResultCategory",U=>F(U,this.conf.categoryAliases)),(0,c.A)(P.containerId)&&((0,a.G)(this.reduxStore,"autocomplete",U=>this.autocompleteResultsChanged(U)),(0,a.G)(this.reduxStore,"keyword",U=>this.keywordChanged(U))),P.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),P.sources&&P.sources.length&&P.sources.forEach(U=>{U.client&&U.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(R){R.pendingRequests.length===0&&(R.keyword&&R.keyword!==""&&this.sendSearchAnalytics(R),this.render(R))}sendSearchAnalytics(R){let k=[];this.conf.sources.forEach(P=>{if(P.type===b.SEARCH&&P.collectSearchAnalytics){const F=P.client||this.client,U=R.searchResultsStats[P.jsonKey]?R.searchResultsStats[P.jsonKey].total_hits:0;k.push({client:F,numberOfResults:U})}}),(0,i.ME)(R.keyword,k)}keywordChanged(R){const k=R.skipAutocomplete===!1?R.value:null;k===""&&this.reduxStore.dispatch((0,e.dC)()),this.conf.sources.forEach(P=>{const F=P.client||this.client;if(P.type===b.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(F,k));else if(P.type===b.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(F,k,P.field));else if(P.type===b.SEARCH){const U=F.getSettings().paging;F.setPaging(1,U.pageSize,U.sortBy,U.sortOrder),this.reduxStore.dispatch((0,e.F2)(F,P.jsonKey,k))}})}loadMore(R){this.conf.sources.forEach(k=>{const P=k.client;P&&k.type===b.SEARCH&&(P.nextPage(),this.reduxStore.dispatch((0,e.F2)(P,k.jsonKey,R,!0)))})}render(R){if(R.dropRendering&&this.renderedHtml)return document.getElementById(this.conf.containerId).innerHTML="",void(this.renderedHtml="");if(R.pendingRequests.length!==0||R.dropRendering)return;if(R.visible===!1)return document.getElementById(this.conf.containerId).innerHTML="",void(this.renderedHtml="");const{suggestions:k,customFields:P,searchResults:F,activeSuggestionIndex:U}=R,L={activeSuggestionIndex:U,suggestions:k,customFields:P,searchResults:F};let B;if(B=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):l()(L),this.renderedHtml===B)return;const C=document.getElementById(this.conf.containerId);C.innerHTML=B,this.renderedHtml=B,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const D=C.querySelector(".suggestions")?C.querySelectorAll(".suggestions > li"):[],G=C.querySelectorAll(".suggestions");for(let X=0;X<D.length;X++)D[X].onmousedown=z=>this.suggestionMouseDown(z),G.length<=1&&(D[X].onmouseenter=z=>this.suggestionMouseEnter(z));if(F[Object.keys(F)[0]]){const X=C.querySelectorAll("[data-analytics-click]");let z=null;this.conf.sources.forEach(q=>{q.type===b.SEARCH&&(z||(z=q.client))}),z||(z=this.client),(0,i.$P)(z,X,{hits:F[Object.keys(F)[0]]})}this.conf.infiniteScrollElement&&!R.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(C)}suggestionMouseDown(R){const k=R.target.getAttribute("data-keyword"),P=this.reduxStore;P.dispatch((0,_.A)(k,!0,null,!0));const F=P.getState().search.searchResultsPageUrl;F?(0,S.lG)(F,k):P.dispatch((0,u.$P)(this.client,k,null,null,null,P))}suggestionMouseEnter(R){const k=parseInt(R.target.getAttribute("data-index"),10);k!==null&&k!==this.lastOnmouseOver&&(this.lastOnmouseOver=k,this.reduxStore.dispatch((0,e.XD)(k,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const R=this.conf.infiniteScrollElement;if(R.scrollHeight>0&&Math.ceil(R.offsetHeight+R.scrollTop)>=R.scrollHeight){const k=this.reduxStore.getState().keyword.value;this.loadMore(k)}}}}const b={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(p,s,t){t.d(s,{A:function(){return c},a:function(){return a}});var v=t(1944),r=t(5756),e=t(4922),u=t(4903),_=t(4826);function a(i,S,f){let y={and:[]};S&&y.and.push(S);let l={};i.allAvailableFilters.forEach(o=>{let b={or:[]};for(let E in o)i.activeFilters[E]&&!l[E]&&(b.or.push(o[E].filter),l[E]=!0);b.or.length>0&&y.and.push(b)});for(let o in i.activeRangeFilters)y.and.push({range:{[o]:Object.assign({},i.activeRangeFilters[o])}});for(let o in i.activeFacets){let b={or:[]};for(let E in i.activeFacets[o])if(o!==f){const R={};R[o]=E,b.or.push(R)}b.or.length>0&&y.and.push(b)}for(let o in i.activeHierarchicalFacets){let b={or:[]};for(let E in i.activeHierarchicalFacets[o])for(let R in i.activeHierarchicalFacets[o][E])if(!f||f.indexOf(E)===-1){const k={};k[E]=R,b.or.push(k)}b.or.length>0&&y.and.push(b)}for(let o in i.activeRangeFacets){let b={or:[]};for(let E in i.activeRangeFacets[o])if(o!==f){const R={range:{[o]:i.activeRangeFacets[o][E]}};b.or.push(R)}b.or.length>0&&y.and.push(b)}return y.and.length>0?y:{}}class c{constructor(S,f,y,l,o,b,E){this.client=S,this.reduxStore=f,this.createFilterObjectFunction=y,this.onFilterChange=l,this.onFilteredSearchRefresh=E,this.segmentedSearchClients=b,(0,e.G)(this.reduxStore,"filters",R=>this.onFilterStateChange(R,o))}onFilterStateChange(S,f){if(S.refreshSearch){(0,u.Dh)(u.sh.FILTERS,(0,u.IR)(S.activeFilters),null,this.reduxStore),(0,u.Dh)(u.sh.FACETS,(0,u.IR)(S.activeFacets),null,this.reduxStore),(0,u.Dh)(u.sh.RANGE_FACETS,(0,u.IR)(S.activeRangeFacets),null,this.reduxStore);const y=this.createFilterObjectFunction(S,f);this.client.setFilterObject(y);const l=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,r.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,v.$P)(this.client,l,null,null,null,this.reduxStore,null,S.targetFacetGroup));for(let o in this.segmentedSearchClients){const b=this.createFilterObjectFunction(S,this.segmentedSearchClients[o].originalFilters);this.segmentedSearchClients[o].client.setFilterObject(b),this.reduxStore.dispatch((0,_.l$)(this.segmentedSearchClients[o].client,o,l))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(S.setHistory){const y=this.createFilterObjectFunction(S,f);this.client.setFilterObject(y),(0,u.Dh)(u.sh.RANGE_FACETS,(0,u.IR)(S.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(S.activeFilters)}}},9369:function(p,s,t){t.d(s,{FILTER_TYPE:function(){return L},A:function(){return U}});var v=t(2334),r=t.n(v),e=t(4922),u=t(549),_=t(6353),a=t(4379),c=t(3668),i=t.n(c),S=t(8810),f=t.n(S),y=t(5509),l=t.n(y),o=t(1572),b=t.n(o),E=t(948),R=t.n(E),k=t(3329),P=t.n(k);const F="nofilter";class U{constructor(C,D,G){this.client=C,this.reduxStore=D,this.conf=G,this.activeFilter=null,(0,a.A)(G.containerId)&&(this.reduxStore.dispatch((0,u.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",X=>this.render(X)),this.conf.type===L.RANGE&&(0,e.G)(this.reduxStore,"search",X=>this.searchResultsChanged(X)))}searchResultsChanged(C){!C.loading&&C.results.fieldStats&&C.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(C){let D=Object.assign({},this.conf);this.activeFilter=null;let G=!1;for(let V in D.options)C.activeFilters[V]?(D.options[V].active=!0,this.activeFilter=V,G=!0):D.options[V].active=!1;!G&&D.options&&D.options[F]&&(D.options[F].active=!0);let X,z=null;if(this.conf.type===L.TABS)z=b();else if(this.conf.type===L.TAGS)z=l();else if(this.conf.type===L.CHECKBOX_GROUP)z=i();else if(this.conf.type===L.RADIO_GROUP)z=f();else if(this.conf.type===L.RANGE){C.activeRangeFilters[this.conf.field]&&(D.from=C.activeRangeFilters[this.conf.field].gte,D.to=C.activeRangeFilters[this.conf.field].lte);const V=this.reduxStore.getState().search.results;if(V&&V.fieldStats&&V.fieldStats[this.conf.field]){const{min:J,max:re}=V.fieldStats[this.conf.field];D.fromPlaceholder=J==="Infinity"?"":J,D.toPlaceholder=re==="-Infinity"?"":re}z=P()}else z=R();if(X=this.conf.precompiledTemplate?this.conf.precompiledTemplate(D):this.conf.template?r().compile(this.conf.template)(D):z(D),this.renderedHtml===X)return;const q=document.getElementById(this.conf.containerId);if(q.innerHTML=X,this.renderedHtml=X,this.conf.type===L.SELECT_LIST)q.querySelector("select").addEventListener("change",V=>this.singleActiveChangeEvent(V.target.value));else if(this.conf.type===L.TABS){const V=q.querySelectorAll("[data-filter]");for(let J=0;J<V.length;J++)V[J].addEventListener("click",re=>this.singleActiveChangeEvent(re.target.getAttribute("data-filter")))}else if(this.conf.type===L.RADIO_GROUP){const V=q.querySelectorAll("input");for(let J=0;J<V.length;J++)V[J].addEventListener("click",re=>this.singleActiveChangeEvent(re.target.value))}else this.conf.type===L.RANGE?this.attachRangeFilterEvents(q):(0,a.h)(q,"data-filter","click",V=>{this.reduxStore.dispatch((0,u.VH)(V,1))})}singleActiveChangeEvent(C){const D=C===F,G=this.reduxStore;C!==this.activeFilter&&(this.conf.setSorting&&G.dispatch((0,_.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?G.dispatch((0,u.hx)(D)):this.activeFilter&&G.dispatch((0,u.VH)(this.activeFilter,1,D)),D?this.activeFilter=null:(this.activeFilter=C,G.dispatch((0,u.VH)(C,1,!0))))}attachRangeFilterEvents(C){const D=C.querySelectorAll("input");for(let X=0;X<D.length;X++)D[X].addEventListener("change",z=>{this.conf.validator&&!new RegExp(this.conf.validator).test(z.target.value)?z.target.setAttribute("data-valid","false"):(z.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,C.querySelector('input[name="from"]').value,C.querySelector('input[name="to"]').value))});const G=C.querySelector("button");G&&G.addEventListener("click",X=>this.reduxStore.dispatch((0,u.u3)(this.conf.field,null,null)))}rangeChangeEvent(C,D,G){const X=D!==""?D:null,z=G!==""?G:null;this.reduxStore.dispatch((0,u.u3)(C,X,z))}}const L={CHECKBOX_GROUP:"CHECKBOX_GROUP",RADIO_GROUP:"RADIO_GROUP",SELECT_LIST:"SELECT_LIST",RANGE:"RANGE",TABS:"TABS",TAGS:"TAGS"}},3816:function(p,s,t){t.d(s,{LOAD_MORE_TYPE:function(){return f},A:function(){return S}});var v=t(2334),r=t.n(v),e=t(5756),u=t(1944),_=t(4922),a=t(4379),c=t(8905),i=t.n(c);class S{constructor(l,o,b){this.client=l,this.reduxStore=o,this.conf=b,(0,a.A)(b.containerId)&&(0,_.G)(this.reduxStore,"search",E=>this.render(E)),b.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(l){const o=l.results.page||1,b=this.client.getSettings().paging.pageSize,E=l.results.total_hits||0,R=Math.ceil(E/b),k={type:this.conf.type,hasMorePages:o<R,isLoading:l.loading,totalHits:E};let P;if(P=this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?r().compile(this.conf.template)(k):i()(k),this.renderedHtml===P)return;const F=document.getElementById(this.conf.containerId);if(F.innerHTML=P,this.renderedHtml=P,this.conf.type===f.BUTTON){const U=F.querySelector("button");U&&(U.onclick=L=>this.loadMore())}else this.conf.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&l.results.page===1&&!l.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const l=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,l,!1,this.reduxStore));const o=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,u.$P)(this.client,o,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const l=this.reduxStore.getState().search.loading,o=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!l&&o)if(this.conf.infiniteScrollElement.tagName){const b=this.conf.infiniteScrollElement;Math.ceil(b.offsetHeight+b.scrollTop)>=b.scrollHeight&&this.loadMore()}else{const b=window.innerHeight,E=o.getBoundingClientRect().top;E>0&&E<b&&this.loadMore()}}}const f={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(p,s,t){t.d(s,{RANGE_FACETS_TYPE:function(){return P},A:function(){return k}});var v=t(2334),r=t.n(v),e=t(549),u=t(4922),_=t(4379),a=t(8526),c=t(6843);function i(F){var U=Math.ceil(Math.log10(F+1));if(U===1)return 0;var L=Math.pow(10,U-1);return Math.floor(F/L)*L}function S(F){var U=Math.ceil(Math.log10(F+1)),L=Math.pow(10,U-1);return Math.ceil(F/L)*L}var f=t(7435),y=t(6427),l=t.n(y),o=t(1204),b=t.n(o);function E(){let F,U;function L(X,z){X&&(X.textContent=z)}function B(X,z){const[q,V]=C(X,z);typeof F=="function"&&F({activeRange:[q,V]})}function C(X,z){return[parseFloat(X.value),parseFloat(z.value)]}function D(X,z,q,V,J){const re=z.max-z.min,fe=X.value-z.min,Pe=z.value-z.min;J.style.background=`linear-gradient(
46
+ */(function(t){const i=Ln,p=gr,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50;const w=2147483647;t.kMaxLength=w,n.TYPED_ARRAY_SUPPORT=b(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const O=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(O,m),O.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function c(O){if(O>w)throw new RangeError('The value "'+O+'" is invalid for option "size"');const m=new Uint8Array(O);return Object.setPrototypeOf(m,n.prototype),m}function n(O,m,S){if(typeof O=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(O)}return y(O,m,S)}n.poolSize=8192;function y(O,m,S){if(typeof O=="string")return C(O,m);if(ArrayBuffer.isView(O))return a(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(Be(O,ArrayBuffer)||O&&Be(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Be(O,SharedArrayBuffer)||O&&Be(O.buffer,SharedArrayBuffer)))return o(O,m,S);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=O.valueOf&&O.valueOf();if(F!=null&&F!==O)return n.from(F,m,S);const U=v(O);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),m,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}n.from=function(O,m,S){return y(O,m,S)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function r(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function e(O,m,S){return r(O),O<=0?c(O):m!==void 0?typeof S=="string"?c(O).fill(m,S):c(O).fill(m):c(O)}n.alloc=function(O,m,S){return e(O,m,S)};function d(O){return r(O),c(O<0?0:f(O)|0)}n.allocUnsafe=function(O){return d(O)},n.allocUnsafeSlow=function(O){return d(O)};function C(O,m){if((typeof m!="string"||m==="")&&(m="utf8"),!n.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const S=h(O,m)|0;let F=c(S);const U=F.write(O,m);return U!==S&&(F=F.slice(0,U)),F}function l(O){const m=O.length<0?0:f(O.length)|0,S=c(m);for(let F=0;F<m;F+=1)S[F]=O[F]&255;return S}function a(O){if(Be(O,Uint8Array)){const m=new Uint8Array(O);return o(m.buffer,m.byteOffset,m.byteLength)}return l(O)}function o(O,m,S){if(m<0||O.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<m+(S||0))throw new RangeError('"length" is outside of buffer bounds');let F;return m===void 0&&S===void 0?F=new Uint8Array(O):S===void 0?F=new Uint8Array(O,m):F=new Uint8Array(O,m,S),Object.setPrototypeOf(F,n.prototype),F}function v(O){if(n.isBuffer(O)){const m=f(O.length)|0,S=c(m);return S.length===0||O.copy(S,0,0,m),S}if(O.length!==void 0)return typeof O.length!="number"||Z(O.length)?c(0):l(O);if(O.type==="Buffer"&&Array.isArray(O.data))return l(O.data)}function f(O){if(O>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return O|0}function g(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==n.prototype},n.compare=function(m,S){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),Be(S,Uint8Array)&&(S=n.from(S,S.offset,S.byteLength)),!n.isBuffer(m)||!n.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===S)return 0;let F=m.length,U=S.length;for(let K=0,ee=Math.min(F,U);K<ee;++K)if(m[K]!==S[K]){F=m[K],U=S[K];break}return F<U?-1:U<F?1:0},n.isEncoding=function(m){switch(String(m).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}},n.concat=function(m,S){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return n.alloc(0);let F;if(S===void 0)for(S=0,F=0;F<m.length;++F)S+=m[F].length;const U=n.allocUnsafe(S);let K=0;for(F=0;F<m.length;++F){let ee=m[F];if(Be(ee,Uint8Array))K+ee.length>U.length?(n.isBuffer(ee)||(ee=n.from(ee)),ee.copy(U,K)):Uint8Array.prototype.set.call(U,ee,K);else if(n.isBuffer(ee))ee.copy(U,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return U};function h(O,m){if(n.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Be(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const S=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&S===0)return 0;let U=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return we(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return ye(O).length;default:if(U)return F?-1:we(O).length;m=(""+m).toLowerCase(),U=!0}}n.byteLength=h;function u(O,m,S){let F=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,m>>>=0,S<=m))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,m,S);case"utf8":case"utf-8":return L(this,m,S);case"ascii":return se(this,m,S);case"latin1":case"binary":return ne(this,m,S);case"base64":return D(this,m,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,m,S);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,m,S){const F=O[m];O[m]=O[S],O[S]=F}n.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<m;S+=2)_(this,S,S+1);return this},n.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<m;S+=4)_(this,S,S+3),_(this,S+1,S+2);return this},n.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<m;S+=8)_(this,S,S+7),_(this,S+1,S+6),_(this,S+2,S+5),_(this,S+3,S+4);return this},n.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?L(this,0,m):u.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(m){if(!n.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:n.compare(this,m)===0},n.prototype.inspect=function(){let m="";const S=t.INSPECT_MAX_BYTES;return m=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(m+=" ... "),"<Buffer "+m+">"},s&&(n.prototype[s]=n.prototype.inspect),n.prototype.compare=function(m,S,F,U,K){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),!n.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(S===void 0&&(S=0),F===void 0&&(F=m?m.length:0),U===void 0&&(U=0),K===void 0&&(K=this.length),S<0||F>m.length||U<0||K>this.length)throw new RangeError("out of range index");if(U>=K&&S>=F)return 0;if(U>=K)return-1;if(S>=F)return 1;if(S>>>=0,F>>>=0,U>>>=0,K>>>=0,this===m)return 0;let ee=K-U,Ae=F-S;const Ve=Math.min(ee,Ae),Ie=this.slice(U,K),Ge=m.slice(S,F);for(let ge=0;ge<Ve;++ge)if(Ie[ge]!==Ge[ge]){ee=Ie[ge],Ae=Ge[ge];break}return ee<Ae?-1:Ae<ee?1:0};function k(O,m,S,F,U){if(O.length===0)return-1;if(typeof S=="string"?(F=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Z(S)&&(S=U?0:O.length-1),S<0&&(S=O.length+S),S>=O.length){if(U)return-1;S=O.length-1}else if(S<0)if(U)S=0;else return-1;if(typeof m=="string"&&(m=n.from(m,F)),n.isBuffer(m))return m.length===0?-1:A(O,m,S,F,U);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(O,m,S):Uint8Array.prototype.lastIndexOf.call(O,m,S):A(O,[m],S,F,U);throw new TypeError("val must be string, number or Buffer")}function A(O,m,S,F,U){let K=1,ee=O.length,Ae=m.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||m.length<2)return-1;K=2,ee/=2,Ae/=2,S/=2}function Ve(Ge,ge){return K===1?Ge[ge]:Ge.readUInt16BE(ge*K)}let Ie;if(U){let Ge=-1;for(Ie=S;Ie<ee;Ie++)if(Ve(O,Ie)===Ve(m,Ge===-1?0:Ie-Ge)){if(Ge===-1&&(Ge=Ie),Ie-Ge+1===Ae)return Ge*K}else Ge!==-1&&(Ie-=Ie-Ge),Ge=-1}else for(S+Ae>ee&&(S=ee-Ae),Ie=S;Ie>=0;Ie--){let Ge=!0;for(let ge=0;ge<Ae;ge++)if(Ve(O,Ie+ge)!==Ve(m,ge)){Ge=!1;break}if(Ge)return Ie}return-1}n.prototype.includes=function(m,S,F){return this.indexOf(m,S,F)!==-1},n.prototype.indexOf=function(m,S,F){return k(this,m,S,F,!0)},n.prototype.lastIndexOf=function(m,S,F){return k(this,m,S,F,!1)};function I(O,m,S,F){S=Number(S)||0;const U=O.length-S;F?(F=Number(F),F>U&&(F=U)):F=U;const K=m.length;F>K/2&&(F=K/2);let ee;for(ee=0;ee<F;++ee){const Ae=parseInt(m.substr(ee*2,2),16);if(Z(Ae))return ee;O[S+ee]=Ae}return ee}function P(O,m,S,F){return Se(we(m,O.length-S),O,S,F)}function N(O,m,S,F){return Se(Te(m),O,S,F)}function q(O,m,S,F){return Se(ye(m),O,S,F)}function j(O,m,S,F){return Se(me(m,O.length-S),O,S,F)}n.prototype.write=function(m,S,F,U){if(S===void 0)U="utf8",F=this.length,S=0;else if(F===void 0&&typeof S=="string")U=S,F=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(F)?(F=F>>>0,U===void 0&&(U="utf8")):(U=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-S;if((F===void 0||F>K)&&(F=K),m.length>0&&(F<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");let ee=!1;for(;;)switch(U){case"hex":return I(this,m,S,F);case"utf8":case"utf-8":return P(this,m,S,F);case"ascii":case"latin1":case"binary":return N(this,m,S,F);case"base64":return q(this,m,S,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,m,S,F);default:if(ee)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),ee=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(O,m,S){return m===0&&S===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(m,S))}function L(O,m,S){S=Math.min(O.length,S);const F=[];let U=m;for(;U<S;){const K=O[U];let ee=null,Ae=K>239?4:K>223?3:K>191?2:1;if(U+Ae<=S){let Ve,Ie,Ge,ge;switch(Ae){case 1:K<128&&(ee=K);break;case 2:Ve=O[U+1],(Ve&192)===128&&(ge=(K&31)<<6|Ve&63,ge>127&&(ee=ge));break;case 3:Ve=O[U+1],Ie=O[U+2],(Ve&192)===128&&(Ie&192)===128&&(ge=(K&15)<<12|(Ve&63)<<6|Ie&63,ge>2047&&(ge<55296||ge>57343)&&(ee=ge));break;case 4:Ve=O[U+1],Ie=O[U+2],Ge=O[U+3],(Ve&192)===128&&(Ie&192)===128&&(Ge&192)===128&&(ge=(K&15)<<18|(Ve&63)<<12|(Ie&63)<<6|Ge&63,ge>65535&&ge<1114112&&(ee=ge))}}ee===null?(ee=65533,Ae=1):ee>65535&&(ee-=65536,F.push(ee>>>10&1023|55296),ee=56320|ee&1023),F.push(ee),U+=Ae}return J(F)}const V=4096;function J(O){const m=O.length;if(m<=V)return String.fromCharCode.apply(String,O);let S="",F=0;for(;F<m;)S+=String.fromCharCode.apply(String,O.slice(F,F+=V));return S}function se(O,m,S){let F="";S=Math.min(O.length,S);for(let U=m;U<S;++U)F+=String.fromCharCode(O[U]&127);return F}function ne(O,m,S){let F="";S=Math.min(O.length,S);for(let U=m;U<S;++U)F+=String.fromCharCode(O[U]);return F}function Y(O,m,S){const F=O.length;(!m||m<0)&&(m=0),(!S||S<0||S>F)&&(S=F);let U="";for(let K=m;K<S;++K)U+=le[O[K]];return U}function W(O,m,S){const F=O.slice(m,S);let U="";for(let K=0;K<F.length-1;K+=2)U+=String.fromCharCode(F[K]+F[K+1]*256);return U}n.prototype.slice=function(m,S){const F=this.length;m=~~m,S=S===void 0?F:~~S,m<0?(m+=F,m<0&&(m=0)):m>F&&(m=F),S<0?(S+=F,S<0&&(S=0)):S>F&&(S=F),S<m&&(S=m);const U=this.subarray(m,S);return Object.setPrototypeOf(U,n.prototype),U};function X(O,m,S){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+m>S)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m],K=1,ee=0;for(;++ee<S&&(K*=256);)U+=this[m+ee]*K;return U},n.prototype.readUintBE=n.prototype.readUIntBE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m+--S],K=1;for(;S>0&&(K*=256);)U+=this[m+--S]*K;return U},n.prototype.readUint8=n.prototype.readUInt8=function(m,S){return m=m>>>0,S||X(m,1,this.length),this[m]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(m,S){return m=m>>>0,S||X(m,2,this.length),this[m]|this[m+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(m,S){return m=m>>>0,S||X(m,2,this.length),this[m]<<8|this[m+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(m,S){return m=m>>>0,S||X(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},n.prototype.readBigUInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=S+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,K=this[++m]+this[++m]*2**8+this[++m]*2**16+F*2**24;return BigInt(U)+(BigInt(K)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=S*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],K=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F;return(BigInt(U)<<BigInt(32))+BigInt(K)}),n.prototype.readIntLE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m],K=1,ee=0;for(;++ee<S&&(K*=256);)U+=this[m+ee]*K;return K*=128,U>=K&&(U-=Math.pow(2,8*S)),U},n.prototype.readIntBE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=S,K=1,ee=this[m+--U];for(;U>0&&(K*=256);)ee+=this[m+--U]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*S)),ee},n.prototype.readInt8=function(m,S){return m=m>>>0,S||X(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},n.prototype.readInt16LE=function(m,S){m=m>>>0,S||X(m,2,this.length);const F=this[m]|this[m+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(m,S){m=m>>>0,S||X(m,2,this.length);const F=this[m+1]|this[m]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},n.prototype.readInt32BE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},n.prototype.readBigInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(F<<24);return(BigInt(U)<<BigInt(32))+BigInt(S+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),n.prototype.readBigInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=(S<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(U)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F)}),n.prototype.readFloatLE=function(m,S){return m=m>>>0,S||X(m,4,this.length),p.read(this,m,!0,23,4)},n.prototype.readFloatBE=function(m,S){return m=m>>>0,S||X(m,4,this.length),p.read(this,m,!1,23,4)},n.prototype.readDoubleLE=function(m,S){return m=m>>>0,S||X(m,8,this.length),p.read(this,m,!0,52,8)},n.prototype.readDoubleBE=function(m,S){return m=m>>>0,S||X(m,8,this.length),p.read(this,m,!1,52,8)};function ue(O,m,S,F,U,K){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>U||m<K)throw new RangeError('"value" argument is out of bounds');if(S+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(m,S,F,U){if(m=+m,S=S>>>0,F=F>>>0,!U){const Ae=Math.pow(2,8*F)-1;ue(this,m,S,F,Ae,0)}let K=1,ee=0;for(this[S]=m&255;++ee<F&&(K*=256);)this[S+ee]=m/K&255;return S+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(m,S,F,U){if(m=+m,S=S>>>0,F=F>>>0,!U){const Ae=Math.pow(2,8*F)-1;ue(this,m,S,F,Ae,0)}let K=F-1,ee=1;for(this[S+K]=m&255;--K>=0&&(ee*=256);)this[S+K]=m/ee&255;return S+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,1,255,0),this[S]=m&255,S+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,65535,0),this[S]=m&255,this[S+1]=m>>>8,S+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,65535,0),this[S]=m>>>8,this[S+1]=m&255,S+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,4294967295,0),this[S+3]=m>>>24,this[S+2]=m>>>16,this[S+1]=m>>>8,this[S]=m&255,S+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,4294967295,0),this[S]=m>>>24,this[S+1]=m>>>16,this[S+2]=m>>>8,this[S+3]=m&255,S+4};function xe(O,m,S,F,U){z(m,F,U,O,S,7);let K=Number(m&BigInt(4294967295));O[S++]=K,K=K>>8,O[S++]=K,K=K>>8,O[S++]=K,K=K>>8,O[S++]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[S++]=ee,ee=ee>>8,O[S++]=ee,ee=ee>>8,O[S++]=ee,ee=ee>>8,O[S++]=ee,S}function Re(O,m,S,F,U){z(m,F,U,O,S,7);let K=Number(m&BigInt(4294967295));O[S+7]=K,K=K>>8,O[S+6]=K,K=K>>8,O[S+5]=K,K=K>>8,O[S+4]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[S+3]=ee,ee=ee>>8,O[S+2]=ee,ee=ee>>8,O[S+1]=ee,ee=ee>>8,O[S]=ee,S+8}n.prototype.writeBigUInt64LE=ie(function(m,S=0){return xe(this,m,S,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(m,S=0){return Re(this,m,S,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(m,S,F,U){if(m=+m,S=S>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,S,F,Ve-1,-Ve)}let K=0,ee=1,Ae=0;for(this[S]=m&255;++K<F&&(ee*=256);)m<0&&Ae===0&&this[S+K-1]!==0&&(Ae=1),this[S+K]=(m/ee>>0)-Ae&255;return S+F},n.prototype.writeIntBE=function(m,S,F,U){if(m=+m,S=S>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,S,F,Ve-1,-Ve)}let K=F-1,ee=1,Ae=0;for(this[S+K]=m&255;--K>=0&&(ee*=256);)m<0&&Ae===0&&this[S+K+1]!==0&&(Ae=1),this[S+K]=(m/ee>>0)-Ae&255;return S+F},n.prototype.writeInt8=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,1,127,-128),m<0&&(m=255+m+1),this[S]=m&255,S+1},n.prototype.writeInt16LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,32767,-32768),this[S]=m&255,this[S+1]=m>>>8,S+2},n.prototype.writeInt16BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,32767,-32768),this[S]=m>>>8,this[S+1]=m&255,S+2},n.prototype.writeInt32LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,2147483647,-2147483648),this[S]=m&255,this[S+1]=m>>>8,this[S+2]=m>>>16,this[S+3]=m>>>24,S+4},n.prototype.writeInt32BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[S]=m>>>24,this[S+1]=m>>>16,this[S+2]=m>>>8,this[S+3]=m&255,S+4},n.prototype.writeBigInt64LE=ie(function(m,S=0){return xe(this,m,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(m,S=0){return Re(this,m,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Oe(O,m,S,F,U,K){if(S+F>O.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Ce(O,m,S,F,U){return m=+m,S=S>>>0,U||Oe(O,m,S,4),p.write(O,m,S,F,23,4),S+4}n.prototype.writeFloatLE=function(m,S,F){return Ce(this,m,S,!0,F)},n.prototype.writeFloatBE=function(m,S,F){return Ce(this,m,S,!1,F)};function He(O,m,S,F,U){return m=+m,S=S>>>0,U||Oe(O,m,S,8),p.write(O,m,S,F,52,8),S+8}n.prototype.writeDoubleLE=function(m,S,F){return He(this,m,S,!0,F)},n.prototype.writeDoubleBE=function(m,S,F){return He(this,m,S,!1,F)},n.prototype.copy=function(m,S,F,U){if(!n.isBuffer(m))throw new TypeError("argument should be a Buffer");if(F||(F=0),!U&&U!==0&&(U=this.length),S>=m.length&&(S=m.length),S||(S=0),U>0&&U<F&&(U=F),U===F||m.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),m.length-S<U-F&&(U=m.length-S+F);const K=U-F;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,F,U):Uint8Array.prototype.set.call(m,this.subarray(F,U),S),K},n.prototype.fill=function(m,S,F,U){if(typeof m=="string"){if(typeof S=="string"?(U=S,S=0,F=this.length):typeof F=="string"&&(U=F,F=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!n.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(m.length===1){const ee=m.charCodeAt(0);(U==="utf8"&&ee<128||U==="latin1")&&(m=ee)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(S<0||this.length<S||this.length<F)throw new RangeError("Out of range index");if(F<=S)return this;S=S>>>0,F=F===void 0?this.length:F>>>0,m||(m=0);let K;if(typeof m=="number")for(K=S;K<F;++K)this[K]=m;else{const ee=n.isBuffer(m)?m:n.from(m,U),Ae=ee.length;if(Ae===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(K=0;K<F-S;++K)this[K+S]=ee[K%Ae]}return this};const Fe={};function Ke(O,m,S){Fe[O]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Ke("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ke("ERR_INVALID_ARG_TYPE",function(O,m){return`The "${O}" argument must be of type number. Received type ${typeof m}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,m,S){let F=`The value of "${O}" is out of range.`,U=S;return Number.isInteger(S)&&Math.abs(S)>2**32?U=Me(String(S)):typeof S=="bigint"&&(U=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(U=Me(U)),U+="n"),F+=` It must be ${m}. Received ${U}`,F},RangeError);function Me(O){let m="",S=O.length;const F=O[0]==="-"?1:0;for(;S>=F+4;S-=3)m=`_${O.slice(S-3,S)}${m}`;return`${O.slice(0,S)}${m}`}function We(O,m,S){H(m,"offset"),(O[m]===void 0||O[m+S]===void 0)&&oe(m,O.length-(S+1))}function z(O,m,S,F,U,K){if(O>S||O<m){const ee=typeof m=="bigint"?"n":"";let Ae;throw m===0||m===BigInt(0)?Ae=`>= 0${ee} and < 2${ee} ** ${(K+1)*8}${ee}`:Ae=`>= -(2${ee} ** ${(K+1)*8-1}${ee}) and < 2 ** ${(K+1)*8-1}${ee}`,new Fe.ERR_OUT_OF_RANGE("value",Ae,O)}We(F,U,K)}function H(O,m){if(typeof O!="number")throw new Fe.ERR_INVALID_ARG_TYPE(m,"number",O)}function oe(O,m,S){throw Math.floor(O)!==O?(H(O,S),new Fe.ERR_OUT_OF_RANGE("offset","an integer",O)):m<0?new Fe.ERR_BUFFER_OUT_OF_BOUNDS:new Fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,O)}const de=/[^+/0-9A-Za-z-_]/g;function be(O){if(O=O.split("=")[0],O=O.trim().replace(de,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function we(O,m){m=m||1/0;let S;const F=O.length;let U=null;const K=[];for(let ee=0;ee<F;++ee){if(S=O.charCodeAt(ee),S>55295&&S<57344){if(!U){if(S>56319){(m-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===F){(m-=3)>-1&&K.push(239,191,189);continue}U=S;continue}if(S<56320){(m-=3)>-1&&K.push(239,191,189),U=S;continue}S=(U-55296<<10|S-56320)+65536}else U&&(m-=3)>-1&&K.push(239,191,189);if(U=null,S<128){if((m-=1)<0)break;K.push(S)}else if(S<2048){if((m-=2)<0)break;K.push(S>>6|192,S&63|128)}else if(S<65536){if((m-=3)<0)break;K.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((m-=4)<0)break;K.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return K}function Te(O){const m=[];for(let S=0;S<O.length;++S)m.push(O.charCodeAt(S)&255);return m}function me(O,m){let S,F,U;const K=[];for(let ee=0;ee<O.length&&!((m-=2)<0);++ee)S=O.charCodeAt(ee),F=S>>8,U=S%256,K.push(U),K.push(F);return K}function ye(O){return i.toByteArray(be(O))}function Se(O,m,S,F){let U;for(U=0;U<F&&!(U+S>=m.length||U>=O.length);++U)m[U+S]=O[U];return U}function Be(O,m){return O instanceof m||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===m.name}function Z(O){return O!==O}const le=function(){const O="0123456789abcdef",m=new Array(256);for(let S=0;S<16;++S){const F=S*16;for(let U=0;U<16;++U)m[F+U]=O[S]+O[U]}return m}();function ie(O){return typeof BigInt>"u"?fe:O}function fe(){throw new Error("BigInt not supported")}})(Ni);var Bi={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.default="00000000-0000-0000-0000-000000000000";var Wt={},Jt={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,Object.defineProperty(Jt,"__esModule",{value:!0});const ra=xr;function ia(t){return typeof t=="string"&&ra.default.test(t)}Jt.default=ia,Object.defineProperty(Wt,"__esModule",{value:!0});const oa=Jt;function sa(t){if(!(0,oa.default)(t))throw TypeError("Invalid UUID");let i;return Uint8Array.of((i=parseInt(t.slice(0,8),16))>>>24,i>>>16&255,i>>>8&255,i&255,(i=parseInt(t.slice(9,13),16))>>>8,i&255,(i=parseInt(t.slice(14,18),16))>>>8,i&255,(i=parseInt(t.slice(19,23),16))>>>8,i&255,(i=parseInt(t.slice(24,36),16))/1099511627776&255,i/4294967296&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255)}Wt.default=sa;var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.unsafeStringify=void 0;const aa=Jt,et=[];for(let t=0;t<256;++t)et.push((t+256).toString(16).slice(1));function Di(t,i=0){return(et[t[i+0]]+et[t[i+1]]+et[t[i+2]]+et[t[i+3]]+"-"+et[t[i+4]]+et[t[i+5]]+"-"+et[t[i+6]]+et[t[i+7]]+"-"+et[t[i+8]]+et[t[i+9]]+"-"+et[t[i+10]]+et[t[i+11]]+et[t[i+12]]+et[t[i+13]]+et[t[i+14]]+et[t[i+15]]).toLowerCase()}mt.unsafeStringify=Di;function la(t,i=0){const p=Di(t,i);if(!(0,aa.default)(p))throw TypeError("Stringified UUID is invalid");return p}mt.default=la;var Yt={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});let Sr;const ca=new Uint8Array(16);function ua(){if(!Sr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Sr=crypto.getRandomValues.bind(crypto)}return Sr(ca)}cn.default=ua,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.updateV1State=void 0;const Hi=cn,ha=mt,un={};function fa(t,i,p){var b;let s;const w=(t==null?void 0:t._v6)??!1;if(t){const c=Object.keys(t);c.length===1&&c[0]==="_v6"&&(t=void 0)}if(t)s=$i(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,p);else{const c=Date.now(),n=(0,Hi.default)();Ui(un,c,n),s=$i(n,un.msecs,un.nsecs,w?void 0:un.clockseq,w?void 0:un.node,i,p)}return i?s:(0,ha.unsafeStringify)(s)}function Ui(t,i,p){return t.msecs??(t.msecs=-1/0),t.nsecs??(t.nsecs=0),i===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):i>t.msecs?t.nsecs=0:i<t.msecs&&(t.node=void 0),t.node||(t.node=p.slice(10,16),t.node[0]|=1,t.clockseq=(p[8]<<8|p[9])&16383),t.msecs=i,t}Yt.updateV1State=Ui;function $i(t,i,p,s,w,b,c=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!b)b=new Uint8Array(16),c=0;else if(c<0||c+16>b.length)throw new RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);i??(i=Date.now()),p??(p=0),s??(s=(t[8]<<8|t[9])&16383),w??(w=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+p)%4294967296;b[c++]=n>>>24&255,b[c++]=n>>>16&255,b[c++]=n>>>8&255,b[c++]=n&255;const y=i/4294967296*1e4&268435455;b[c++]=y>>>8&255,b[c++]=y&255,b[c++]=y>>>24&15|16,b[c++]=y>>>16&255,b[c++]=s>>>8|128,b[c++]=s&255;for(let r=0;r<6;++r)b[c++]=w[r];return b}Yt.default=fa;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});const da=Wt,pa=mt;function ma(t){const i=typeof t=="string"?(0,da.default)(t):t,p=ga(i);return typeof t=="string"?(0,pa.unsafeStringify)(p):p}jn.default=ma;function ga(t){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var qi={},br={};Object.defineProperty(br,"__esModule",{value:!0});function ya(t){const i=Sa(t),p=xa(i,t.length*8);return va(p)}function va(t){const i=new Uint8Array(t.length*4);for(let p=0;p<t.length*4;p++)i[p]=t[p>>2]>>>p%4*8&255;return i}function Vi(t){return(t+64>>>9<<4)+14+1}function xa(t,i){const p=new Uint32Array(Vi(i)).fill(0);p.set(t),p[i>>5]|=128<<i%32,p[p.length-1]=i,t=p;let s=1732584193,w=-271733879,b=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const y=s,r=w,e=b,d=c;s=nt(s,w,b,c,t[n],7,-680876936),c=nt(c,s,w,b,t[n+1],12,-389564586),b=nt(b,c,s,w,t[n+2],17,606105819),w=nt(w,b,c,s,t[n+3],22,-1044525330),s=nt(s,w,b,c,t[n+4],7,-176418897),c=nt(c,s,w,b,t[n+5],12,1200080426),b=nt(b,c,s,w,t[n+6],17,-1473231341),w=nt(w,b,c,s,t[n+7],22,-45705983),s=nt(s,w,b,c,t[n+8],7,1770035416),c=nt(c,s,w,b,t[n+9],12,-1958414417),b=nt(b,c,s,w,t[n+10],17,-42063),w=nt(w,b,c,s,t[n+11],22,-1990404162),s=nt(s,w,b,c,t[n+12],7,1804603682),c=nt(c,s,w,b,t[n+13],12,-40341101),b=nt(b,c,s,w,t[n+14],17,-1502002290),w=nt(w,b,c,s,t[n+15],22,1236535329),s=rt(s,w,b,c,t[n+1],5,-165796510),c=rt(c,s,w,b,t[n+6],9,-1069501632),b=rt(b,c,s,w,t[n+11],14,643717713),w=rt(w,b,c,s,t[n],20,-373897302),s=rt(s,w,b,c,t[n+5],5,-701558691),c=rt(c,s,w,b,t[n+10],9,38016083),b=rt(b,c,s,w,t[n+15],14,-660478335),w=rt(w,b,c,s,t[n+4],20,-405537848),s=rt(s,w,b,c,t[n+9],5,568446438),c=rt(c,s,w,b,t[n+14],9,-1019803690),b=rt(b,c,s,w,t[n+3],14,-187363961),w=rt(w,b,c,s,t[n+8],20,1163531501),s=rt(s,w,b,c,t[n+13],5,-1444681467),c=rt(c,s,w,b,t[n+2],9,-51403784),b=rt(b,c,s,w,t[n+7],14,1735328473),w=rt(w,b,c,s,t[n+12],20,-1926607734),s=it(s,w,b,c,t[n+5],4,-378558),c=it(c,s,w,b,t[n+8],11,-2022574463),b=it(b,c,s,w,t[n+11],16,1839030562),w=it(w,b,c,s,t[n+14],23,-35309556),s=it(s,w,b,c,t[n+1],4,-1530992060),c=it(c,s,w,b,t[n+4],11,1272893353),b=it(b,c,s,w,t[n+7],16,-155497632),w=it(w,b,c,s,t[n+10],23,-1094730640),s=it(s,w,b,c,t[n+13],4,681279174),c=it(c,s,w,b,t[n],11,-358537222),b=it(b,c,s,w,t[n+3],16,-722521979),w=it(w,b,c,s,t[n+6],23,76029189),s=it(s,w,b,c,t[n+9],4,-640364487),c=it(c,s,w,b,t[n+12],11,-421815835),b=it(b,c,s,w,t[n+15],16,530742520),w=it(w,b,c,s,t[n+2],23,-995338651),s=ot(s,w,b,c,t[n],6,-198630844),c=ot(c,s,w,b,t[n+7],10,1126891415),b=ot(b,c,s,w,t[n+14],15,-1416354905),w=ot(w,b,c,s,t[n+5],21,-57434055),s=ot(s,w,b,c,t[n+12],6,1700485571),c=ot(c,s,w,b,t[n+3],10,-1894986606),b=ot(b,c,s,w,t[n+10],15,-1051523),w=ot(w,b,c,s,t[n+1],21,-2054922799),s=ot(s,w,b,c,t[n+8],6,1873313359),c=ot(c,s,w,b,t[n+15],10,-30611744),b=ot(b,c,s,w,t[n+6],15,-1560198380),w=ot(w,b,c,s,t[n+13],21,1309151649),s=ot(s,w,b,c,t[n+4],6,-145523070),c=ot(c,s,w,b,t[n+11],10,-1120210379),b=ot(b,c,s,w,t[n+2],15,718787259),w=ot(w,b,c,s,t[n+9],21,-343485551),s=At(s,y),w=At(w,r),b=At(b,e),c=At(c,d)}return Uint32Array.of(s,w,b,c)}function Sa(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(Vi(t.length*8)).fill(0);for(let p=0;p<t.length;p++)i[p>>2]|=(t[p]&255)<<p%4*8;return i}function At(t,i){const p=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(p>>16)<<16|p&65535}function ba(t,i){return t<<i|t>>>32-i}function Nn(t,i,p,s,w,b){return At(ba(At(At(i,t),At(s,b)),w),p)}function nt(t,i,p,s,w,b,c){return Nn(i&p|~i&s,t,i,w,b,c)}function rt(t,i,p,s,w,b,c){return Nn(i&s|p&~s,t,i,w,b,c)}function it(t,i,p,s,w,b,c){return Nn(i^p^s,t,i,w,b,c)}function ot(t,i,p,s,w,b,c){return Nn(p^(i|~s),t,i,w,b,c)}br.default=ya;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.URL=gt.DNS=gt.stringToBytes=void 0;const zi=Wt,wa=mt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let p=0;p<t.length;++p)i[p]=t.charCodeAt(p);return i}gt.stringToBytes=Gi,gt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ea(t,i,p,s,w,b){const c=typeof p=="string"?Gi(p):p,n=typeof s=="string"?(0,zi.default)(s):s;if(typeof s=="string"&&(s=(0,zi.default)(s)),(s==null?void 0:s.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+c.length);if(y.set(n),y.set(c,n.length),y=i(y),y[6]=y[6]&15|t,y[8]=y[8]&63|128,w){b=b||0;for(let r=0;r<16;++r)w[b+r]=y[r];return w}return(0,wa.unsafeStringify)(y)}gt.default=Ea,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=br,p=gt;var s=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}});function w(b,c,n,y){return(0,p.default)(48,i.default,b,c,n,y)}w.DNS=p.DNS,w.URL=p.URL,t.default=w}(qi);var wr={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});const ka=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Er.default={randomUUID:ka},Object.defineProperty(wr,"__esModule",{value:!0});const Ki=Er,_a=cn,Ca=mt;function Oa(t,i,p){var w;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const s=t.random??((w=t.rng)==null?void 0:w.call(t))??(0,_a.default)();if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw new RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[p+b]=s[b];return i}return(0,Ca.unsafeStringify)(s)}wr.default=Oa;var Wi={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function Ra(t,i,p,s){switch(t){case 0:return i&p^~i&s;case 1:return i^p^s;case 2:return i&p^i&s^p&s;case 3:return i^p^s}}function _r(t,i){return t<<i|t>>>32-i}function Ta(t){const i=[1518500249,1859775393,2400959708,3395469782],p=[1732584193,4023233417,2562383102,271733878,3285377520],s=new Uint8Array(t.length+1);s.set(t),s[t.length]=128,t=s;const w=t.length/4+2,b=Math.ceil(w/16),c=new Array(b);for(let n=0;n<b;++n){const y=new Uint32Array(16);for(let r=0;r<16;++r)y[r]=t[n*64+r*4]<<24|t[n*64+r*4+1]<<16|t[n*64+r*4+2]<<8|t[n*64+r*4+3];c[n]=y}c[b-1][14]=(t.length-1)*8/Math.pow(2,32),c[b-1][14]=Math.floor(c[b-1][14]),c[b-1][15]=(t.length-1)*8&4294967295;for(let n=0;n<b;++n){const y=new Uint32Array(80);for(let a=0;a<16;++a)y[a]=c[n][a];for(let a=16;a<80;++a)y[a]=_r(y[a-3]^y[a-8]^y[a-14]^y[a-16],1);let r=p[0],e=p[1],d=p[2],C=p[3],l=p[4];for(let a=0;a<80;++a){const o=Math.floor(a/20),v=_r(r,5)+Ra(o,e,d,C)+l+i[o]+y[a]>>>0;l=C,C=d,d=_r(e,30)>>>0,e=r,r=v}p[0]=p[0]+r>>>0,p[1]=p[1]+e>>>0,p[2]=p[2]+d>>>0,p[3]=p[3]+C>>>0,p[4]=p[4]+l>>>0}return Uint8Array.of(p[0]>>24,p[0]>>16,p[0]>>8,p[0],p[1]>>24,p[1]>>16,p[1]>>8,p[1],p[2]>>24,p[2]>>16,p[2]>>8,p[2],p[3]>>24,p[3]>>16,p[3]>>8,p[3],p[4]>>24,p[4]>>16,p[4]>>8,p[4])}kr.default=Ta,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,p=gt;var s=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}});function w(b,c,n,y){return(0,p.default)(80,i.default,b,c,n,y)}w.DNS=p.DNS,w.URL=p.URL,t.default=w}(Wi);var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Pa=mt,Aa=Yt,Ia=jn;function Fa(t,i,p){t??(t={}),p??(p=0);let s=(0,Aa.default)({...t,_v6:!0},new Uint8Array(16));if(s=(0,Ia.default)(s),i){for(let w=0;w<16;w++)i[p+w]=s[w];return i}return(0,Pa.unsafeStringify)(s)}Cr.default=Fa;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const La=Wt,ja=mt;function Na(t){const i=typeof t=="string"?(0,La.default)(t):t,p=Ma(i);return typeof t=="string"?(0,ja.unsafeStringify)(p):p}Or.default=Na;function Ma(t){return Uint8Array.of((t[3]&15)<<4|t[4]>>4&15,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|t[6]&15,t[7],(t[1]&15)<<4|(t[2]&240)>>4,(t[2]&15)<<4|(t[3]&240)>>4,16|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.updateV7State=void 0;const Ji=cn,Ba=mt,Rr={};function Da(t,i,p){var w;let s;if(t)s=Zi(t.random??((w=t.rng)==null?void 0:w.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,p);else{const b=Date.now(),c=(0,Ji.default)();Yi(Rr,b,c),s=Zi(c,Rr.msecs,Rr.seq,i,p)}return i?s:(0,Ba.unsafeStringify)(s)}function Yi(t,i,p){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=p[6]<<23|p[7]<<16|p[8]<<8|p[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}hn.updateV7State=Yi;function Zi(t,i,p,s,w=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),w=0;else if(w<0||w+16>s.length)throw new RangeError(`UUID byte range ${w}:${w+15} is out of buffer bounds`);return i??(i=Date.now()),p??(p=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),s[w++]=i/1099511627776&255,s[w++]=i/4294967296&255,s[w++]=i/16777216&255,s[w++]=i/65536&255,s[w++]=i/256&255,s[w++]=i&255,s[w++]=112|p>>>28&15,s[w++]=p>>>20&255,s[w++]=128|p>>>14&63,s[w++]=p>>>6&255,s[w++]=p<<2&255|t[10]&3,s[w++]=t[11],s[w++]=t[12],s[w++]=t[13],s[w++]=t[14],s[w++]=t[15],s}hn.default=Da;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ha=Jt;function Ua(t){if(!(0,Ha.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Tr.default=Ua,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.validate=t.v7=t.v6ToV1=t.v6=t.v5=t.v4=t.v3=t.v1ToV6=t.v1=t.stringify=t.parse=t.NIL=t.MAX=void 0;var i=yr;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var p=vr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return p.default}});var s=Wt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.default}});var w=mt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return w.default}});var b=Yt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var c=jn;Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return c.default}});var n=qi;Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}});var y=wr;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return y.default}});var r=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return r.default}});var e=Cr;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var d=Or;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var C=hn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var l=Jt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.default}});var a=Tr;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(dt,"__esModule",{value:!0}),dt.generateUUID=dt.validateSetPagingParams=dt.base64=dt.isFunction=void 0;const Qi=Ni,$a=Bi,qa=t=>typeof t=="function";dt.isFunction=qa;const Va=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Qi.Buffer)return Qi.Buffer.from(t).toString("base64")};dt.base64=Va;const za=(t,i,p,s)=>{if(t<1)throw new Error("Page must be 1 or bigger");if(i<1||i>300)throw new Error("PageSize must be between 1 and 300");if(!p||!s)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof p=="string"&&typeof s=="string"||Array.isArray(p)&&Array.isArray(s)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(p)&&p.length!==s.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof s=="string"&&s!=="asc"&&s!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(s)&&s.some(w=>w!=="desc"&&w!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};dt.validateSetPagingParams=za;const Ga=()=>(0,$a.v4)().replace(/-/g,"");dt.generateUUID=Ga;var Ka=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.deleteDocumentsBatch=ft.deleteDocument=ft.saveDocumentsBatch=ft.saveDocument=ft.getDocument=void 0;const fn=Ka(Ii),Wa=dt,dn=(t,i)=>({Authorization:"Basic "+(0,Wa.base64)(t+":"+i),"Content-Type":"application/json"}),Ja=(t,i,p,s)=>new Promise((w,b)=>{fn.default.get(`https://${t}/v2/indices/${i}/documents/${s}`,{headers:dn(i,p)}).then(c=>{c.status===200?w(c.data):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.getDocument=Ja;const Ya=(t,i,p,s)=>{const w=!!(s.id||s.url);return new Promise((b,c)=>{(0,fn.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:w?"put":"post",headers:dn(i,p),data:s}).then(n=>{n.status===202?b({status:n.status,text:n.statusText}):c(new Error(JSON.stringify({status:n.status,text:n.statusText})))}).catch(n=>{c(new Error(JSON.stringify({status:400,text:n})))})})};ft.saveDocument=Ya;const Za=(t,i,p,s)=>new Promise((w,b)=>{(0,fn.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:dn(i,p),data:s}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.saveDocumentsBatch=Za;const Qa=(t,i,p,s)=>new Promise((w,b)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents/${s}`,{headers:dn(i,p)}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocument=Qa;const Xa=(t,i,p,s)=>new Promise((w,b)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:dn(i,p),data:s}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocumentsBatch=Xa;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});const el=Kr,tl=Xe;(0,el.polyfill)();const nl=(t,i,p,s)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!s?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(p)):tl.statsInstance.post(`https://${t}/v1/stats/${i}/`,p,{headers:{"Content-Type":"text/plain"}}).then().catch(w=>{console.error(w)})};Pr.default=nl;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.putSentimentClick=void 0;const Ar=Xe,rl=(t,i,p,s)=>new Promise((w,b)=>{Ar.conversationalSearchInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${p}/rating`,{value:s==="positive"?1:s==="negative"?-1:0}).then(c=>{c.status===200?w(!0):b(new Error(JSON.stringify({type:Ar.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),b(new Error(JSON.stringify({type:Ar.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Mn.putSentimentClick=rl;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const il=dt;class ol{constructor(){this.settings={keyword:"*",callback:null,throttleTimeMs:200,fuzzy:"auto",paging:{page:1,pageSize:10,sortBy:"relevance",sortOrder:"desc"},customFieldFilters:[],userToken:null,suggestionsSize:10,facetFields:[],autocomplete:{size:10},searchOperator:null,enableLogicalOperators:!1,cacheResponseTime:null,statsRequestIntercepted:!1}}getSettings(){return this.settings}setKeyword(i){this.settings.keyword=i||"*"}setCallback(i){this.settings.callback=i}setThrottleTime(i){this.settings.throttleTimeMs=i}setSuggestionsPrefix(i){this.settings.suggestionsPrefix=i}setSuggestionsSize(i){this.settings.suggestionsSize=i}setAutocompleteSize(i){this.settings.autocomplete.size=i}setAutocompleteParams(i,p){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=p}setLanguage(i){let p;if(Intl&&Intl.Locale)try{p=new Intl.Locale(i).language}catch(s){throw console.debug(s),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else p=i;if(p&&p.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=p}setFuzzyMatch(i){if(i!==!0&&i!==!1&&i!=="auto"&&i!=="retry")throw new Error("Fuzzy matching can be true, false, 'auto', or 'retry'");this.settings.fuzzy=i}enableLogicalOperators(i){this.settings.enableLogicalOperators=i}setCacheResponseTime(i){this.settings.cacheResponseTime=i}setPostfixWildcard(i){this.settings.postfixWildcard=i}setCollectAnalytics(i){this.settings.collectAnalytics=i}setAnalyticsTag(i){this.settings.analyticsTag=i}setCategoryFilters(i){this.settings.categories=i}setFilterObject(i){this.settings.filterObject=i}setPriceRangeFilter(i,p){this.settings.priceFromCents=i,this.settings.priceToCents=p}addCustomFieldFilter(i,p){const s=encodeURIComponent(`${i}=${p}`);this.settings.customFieldFilters.includes(s)||this.settings.customFieldFilters.push(s)}removeCustomFieldFilter(i,p){const s=!p,w=encodeURIComponent(`${i}=${p||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>s?!b.startsWith(w):b!==w)}setDateFilter(i,p){this.settings.dateFrom=i,this.settings.dateTo=p}setJWT(i){this.settings.jwt=i}setUserToken(i){this.settings.userToken=i}setPersonalizationEvents(i){Array.isArray(i)&&(this.settings.personalizationEvents=i)}setResultType(i){this.settings.resultType=i}addFacetField(i){this.settings.facetFields.includes(i)||this.settings.facetFields.push(i)}addHierarchicalFacetSetting(i){this.settings.hierarchicalFacetSetting=i}addRangeFacet(i,p){this.settings.rangeFacets||(this.settings.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:p})}addStatsField(i){this.settings.statsFields||(this.settings.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,p,s,w){(0,il.validateSetPagingParams)(i,p,s,w),this.settings.paging={page:i,pageSize:p,sortBy:s,sortOrder:w}}setShuffleAndLimitTo(i){this.settings.shuffleAndLimitTo=i}nextPage(){this.settings.paging.page++}previousPage(){this.settings.paging.page>0&&this.settings.paging.page--}setSearchOperator(i){if(i!=="and"&&i!=="or")throw new Error("Operator must be 'and' or 'or'");this.settings.searchOperator=i}setStatsRequestIntercepted(i){this.settings.statsRequestIntercepted=i}}Ir.default=ol;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const sl=(t,i)=>{let p=0,s=null;function w(){s!==null&&(clearTimeout(s),s=null)}function b(...c){const n=Date.now()-p,y=()=>{p=Date.now(),i(...c)};w(),n>t?y():s=setTimeout(y,t-n)}return b};Fr.default=sl;var It={};Object.defineProperty(It,"__esModule",{value:!0}),It.deleteCookie=It.getCookie=It.setCookie=void 0;const al=(t,i,p)=>{if(typeof document>"u")return;const s=new Date;s.setTime(s.getTime()+p*24*60*60*1e3);const w="expires="+s.toUTCString();document.cookie=`${t}=${i};${w};path=/`};It.setCookie=al;const ll=t=>{if(typeof document>"u")return;const i=`${t}=`,s=decodeURIComponent(document.cookie).split(";");for(let w=0;w<s.length;w++){let b=s[w];for(;b.charAt(0)===" ";)b=b.substring(1);if(b.indexOf(i)===0)return b.substring(i.length,b.length)}};It.getCookie=ll;const cl=t=>{typeof document>"u"||(document.cookie=`${t}=; Path=/; Expires=Thu, 01 Jan 2000 00:00:01 GMT;`)};It.deleteCookie=cl;var ul=Qe&&Qe.__createBinding||(Object.create?function(t,i,p,s){s===void 0&&(s=p);var w=Object.getOwnPropertyDescriptor(i,p);(!w||("get"in w?!i.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return i[p]}}),Object.defineProperty(t,s,w)}:function(t,i,p,s){s===void 0&&(s=p),t[s]=i[p]}),hl=Qe&&Qe.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),Xi=Qe&&Qe.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(p){var s=[];for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(s[s.length]=w);return s},t(i)};return function(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var s=t(i),w=0;w<s.length;w++)s[w]!=="default"&&ul(p,i,s[w]);return hl(p,i),p}}(),Bn=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Mt=Bn(Jn),pn=ft,eo=Bn(Pr),fl=Mn,dl=Bn(Ir),Dn=Xi(dt),mn=Bn(Fr),Lr=Xi(It),Hn=Xe,to="api.addsearch.com",jr="addsearchUserToken";class pl{constructor(i,p){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=p||"",this.apiHostname=to,this.statsApiHostname=to,this.settings=new dl.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=Lr.getCookie(jr)||Dn.generateUUID()}search(i,p){let s=null,w=null;if(typeof i=="string"&&typeof p=="function")s=i,w=p;else if(typeof i=="function"&&!p)s=this.settings.getSettings().keyword||null,w=i;else if(this.settings.getSettings().callback)s=this.settings.getSettings().keyword||null,w=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>w),this.settings.setKeyword(s),this.throttledSearchFetch||(this.throttledSearchFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),w)}conversationalSearch(i,p){this.settings.setCallback(()=>p),this.settings.setKeyword(i),this.throttledConversationalSearchFetch||(this.throttledConversationalSearchFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledConversationalSearchFetch(this.apiHostname,this.sitekey,"conversational-search",this.settings.getSettings(),p)}putSentimentClick(i,p){return(0,fl.putSentimentClick)(this.apiHostname,this.sitekey,i,p)}suggestions(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),this.throttledSuggestionsFetch||(this.throttledSuggestionsFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),p)}autocomplete(i,p,s){if(!i||!p||!s||!Dn.isFunction(s))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,p),this.throttledAutocompleteFetch||(this.throttledAutocompleteFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),s)}fetchCustomApi(i,p,s){var w;const b=Object.assign({},this.settings.getSettings());b.facetFields=(w=b.facetFields)===null||w===void 0?void 0:w.filter(c=>i===c),(0,Mt.default)(this.apiHostname,this.sitekey,"search",b,s,null,p)}fetchRangeFacets(i,p,s){const w=Object.assign({},this.settings.getSettings());w.rangeFacets||(w.rangeFacets=[]),w.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Mt.default)(this.apiHostname,this.sitekey,"search",w,s,null,p)}recommendations(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");this.throttledRecommendationFetch||(this.throttledRecommendationFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",null,p,!1,null,i)}getDocument(i){return(0,pn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,pn.saveDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of documents: {documents: []}");return(0,pn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,pn.deleteDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of document ids: {documents: []}");return(0,pn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,p){(!p||!p.statsApiRequestOnly)&&(this.apiHostname=i),(!p||!p.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,p){this.settings.addCustomFieldFilter(i,p)}removeCustomFieldFilter(i,p){this.settings.removeCustomFieldFilter(i,p)}setPriceRangeFilter(i,p){this.settings.setPriceRangeFilter(i,p)}setDateFilter(i,p){this.settings.setDateFilter(i,p)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,p,s,w){this.settings.setPaging(i,p,s,w)}nextPage(){this.settings.nextPage()}previousPage(){this.settings.previousPage()}setSuggestionsSize(i){this.settings.setSuggestionsSize(i)}setAutocompleteSize(i){this.settings.setAutocompleteSize(i)}addFacetField(i){this.settings.addFacetField(i)}addHierarchicalFacetSetting(i){this.settings.addHierarchicalFacetSetting(i)}addRangeFacet(i,p){this.settings.addRangeFacet(i,p)}addStatsField(i){this.settings.addStatsField(i)}setNumberOfFacets(i){this.settings.setNumberOfFacets(i)}setResultType(i){this.settings.setResultType(i)}setPersonalizationEvents(i){this.settings.setPersonalizationEvents(i)}setFilterObject(i){this.settings.setFilterObject(i)}setShuffleAndLimitTo(i){this.settings.setShuffleAndLimitTo(i)}setFuzzyMatch(i){this.settings.setFuzzyMatch(i)}setPostfixWildcard(i){this.settings.setPostfixWildcard(i)}setCacheResponseTime(i){this.settings.setCacheResponseTime(i)}setCollectAnalytics(i){this.settings.setCollectAnalytics(i)}setAnalyticsTag(i){this.settings.setAnalyticsTag(i)}setThrottleTime(i){this.settings.setThrottleTime(i)}setStatsSessionId(i){this.sessionId=i,this.userTokenInPersonalization=i,this.useStatsSessionId=!0}getStatsSessionId(){return this.sessionId}enableLogicalOperators(i){this.settings.enableLogicalOperators(i)}setSearchOperator(i){this.settings.setSearchOperator(i)}sendStatsEvent(i,p,s){const w=!this.useStatsSessionId&&no&&ro;if(w&&!Lr.getCookie(jr)&&Lr.setCookie(jr,this.userTokenInPersonalization,io),i==="search"){const b={action:"search",session:w?this.userTokenInPersonalization:this.sessionId,keyword:p,numberOfResults:s.numberOfResults,tag:this.getSettings().analyticsTag};(0,eo.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:w?this.userTokenInPersonalization:this.sessionId,keyword:p,docid:s.documentId,position:s.position,tag:this.getSettings().analyticsTag};(0,eo.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else throw new Error("Illegal sendStatsEvent type parameters. Should be search or click)")}getUserTokenInPersonalization(){return this.userTokenInPersonalization}enablePersonalizationTracking(i,p){no=i,p&&(io=p)}consentAddSearchCookie(i){ro=i}setApiRequestInterceptor(i,p={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:s=!1,statsApiRequestOnly:w=!1}=p;!s&&!w?((0,Hn.setRequestInterceptor)(i,"searchApi"),(0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(s&&(0,Hn.setRequestInterceptor)(i,"searchApi"),w&&((0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}searchResultClicked(i,p){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:p})}}let no=!1,ro=!1,io=180;var ml=pl;const gl=qr(ml);var oo={exports:{}};/*! addsearch-search-ui 0.9.1 */(function(t,i){(function(p,s){t.exports=s()})(Qe,function(){return function(){var p={2987:function(b,c,n){b.exports=n(4933).default,b.exports.AUTOCOMPLETE_TYPE=n(6510).AUTOCOMPLETE_TYPE,b.exports.FILTER_TYPE=n(9369).FILTER_TYPE,b.exports.SORTBY_TYPE=n(8909).SORTBY_TYPE,b.exports.LOAD_MORE_TYPE=n(3816).LOAD_MORE_TYPE,b.exports.RECOMMENDATION_TYPE=n(4128).RECOMMENDATION_TYPE,b.exports.RANGE_FACETS_TYPE=n(1990).RANGE_FACETS_TYPE,b.exports.Handlebars_runtime=n(261)},6148:function(b,c,n){n.d(c,{Ah:function(){return ne},B5:function(){return f},C0:function(){return J},FJ:function(){return g},GA:function(){return D},GB:function(){return v},Jd:function(){return _},KR:function(){return r},Km:function(){return a},MO:function(){return P},OA:function(){return q},Pf:function(){return A},VW:function(){return y},XD:function(){return se},Xr:function(){return I},d5:function(){return k},dC:function(){return V},h$:function(){return o},hR:function(){return N},hx:function(){return h},il:function(){return u},kw:function(){return e},nl:function(){return L},nn:function(){return C},p3:function(){return l},vT:function(){return d}});const y="AUTOCOMPLETE_FETCH_START",r="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",d="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",l="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",o="AUTOCOMPLETE_SHOW",v="AUTOCOMPLETE_HIDE",f="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",g="HIDE_AUTOMATICALLY",h="KEYBOARD_EVENT",u="ARROW_UP",_="ARROW_DOWN",k="SET_ACTIVE_SUGGESTION",A="suggestions",I="custom_fields";function P(Y,W){return W&&W!==""?(X,ue)=>{const xe=ue().keyword.minLengthRequiredToFetch;W.length<xe||(X(j(A)),Y.suggestions(W,Re=>{ue().keyword.value!==""&&X(function(Oe,Ce){return{type:r,keyword:Oe,results:Ce}}(W,Re))}))}:{type:d}}function N(Y,W,X){return W&&W!==""?(ue,xe)=>{const Re=xe().keyword.minLengthRequiredToFetch;W.length<Re||(ue(j(I)),Y.autocomplete(X,W,Oe=>{xe().keyword.value!==""&&ue({type:e,results:Oe})}))}:{type:C}}function q(Y,W,X,ue){return X&&X!==""?(xe,Re)=>{const Oe=Re().keyword.minLengthRequiredToFetch;X.length<Oe||(xe(j(W)),Y.search(X,Ce=>{Re().keyword.value!==""&&xe(function(He,Fe,Ke,Me){return{type:l,keyword:He,results:Fe,jsonKey:Ke,appendResults:Me}}(X,Ce,W,ue))}))}:{type:a}}function j(Y){return{type:y,jsonKey:Y}}function D(){return{type:o}}function L(){return{type:v}}function V(){return{type:f}}function J(Y){return{type:h,direction:Y}}function se(Y,W){return{type:k,index:Y,setSuggestionToSearchField:W}}function ne(Y){return{type:g,hideAutomatically:Y}}},1271:function(b,c,n){n.d(c,{e:function(){return r},BA:function(){return e},eH:function(){return y},K3:function(){return C},IT:function(){return l},JK:function(){return d},Vk:function(){return a},bz:function(){return o}});const y="IS_LOADING_CONVERSATIONAL_SEARCH",r="CONVERSATIONAL_SEARCH_RESULT",e="CONVERSATIONAL_SEARCH_RESULT_ERROR",d="SET_CONVERSATIONAL_SEARCH_SENTIMENT",C="SET_CONVERSATIONAL_SEARCH_ANSWER_EXPANDED",l="SET_CONVERSATIONAL_SEARCH_HIDDEN";function a(v,f){return g=>{g({type:e,payload:!1}),g({type:y,payload:!0}),v.conversationalSearch(f,h=>{if(h.error)g({type:e,payload:!0});else{const k={id:(u=h).conversation_id,answerText:u.answer||"",sources:((_=u.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(A=>({url:A.url,title:A.title})))||[]};g({type:d,payload:"neutral"}),g({type:r,payload:k})}var u,_;g({type:y,payload:!1})})}}function o(v,f,g){return h=>{h({type:d,payload:g}),v.putSentimentClick(f,g).then().catch(u=>{console.error(u)})}}},6843:function(b,c,n){n.d(c,{IJ:function(){return y},Ow:function(){return e},nb:function(){return r},np:function(){return d}});const y="SET_FIELD_STATS",r="CLEAR_FIELD_STATS";function e(C,l){return{type:y,fieldStats:C,callBy:l}}function d(){return{type:r}}},549:function(b,c,n){n.d(c,{CY:function(){return y},Gc:function(){return j},II:function(){return P},IS:function(){return v},JS:function(){return l},Ni:function(){return N},QW:function(){return o},Tv:function(){return g},Uj:function(){return r},VH:function(){return u},VN:function(){return C},XI:function(){return e},Xh:function(){return A},cl:function(){return a},eu:function(){return k},hx:function(){return D},jU:function(){return q},ks:function(){return I},u3:function(){return _},uR:function(){return d},ul:function(){return h},vj:function(){return f}});const y="TOGGLE_FILTER",r="SET_RANGE_FILTER",e="REGISTER_FILTER",d="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",l="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",o="TOGGLE_HIERARCHICAL_FACET_FILTER",v="TOGGLE_RANGE_FACET_FILTER",f="CLEAR_SELECTED_FILTERS_AND_FACETS",g="CLEAR_SELECTED_RANGE_FACETS";function h(L){return{type:e,filterObj:L}}function u(L,V,J){return{type:y,filterName:L,value:V,refreshSearch:J}}function _(L,V,J){return{type:r,field:L,from:V,to:J}}function k(L){return{type:d,json:L}}function A(L){return{type:C,json:L}}function I(L,V,J){return{type:l,json:L,refreshSearch:V,field:J}}function P(L,V,J){return{type:a,field:L,value:V,refreshSearch:J}}function N(L,V,J,se,ne){return{type:o,field:L,container:V,confFields:J,value:se,refreshSearch:ne}}function q(L,V,J,se,ne){return{type:v,field:L,values:V,key:J,refreshSearch:se,byActiveFilterComponent:ne}}function j(L,V){return{type:g,refreshSearch:L,setHistory:V}}function D(L,V){return{type:f,refreshSearch:L,byActiveFilterComponent:V}}},6993:function(b,c,n){n.d(c,{Ai:function(){return e},Le:function(){return r},QR:function(){return y},_T:function(){return d}});const y="KEYWORD",r="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,l,a,o){return{type:y,value:C,skipAutocomplete:l,searchFieldContainerId:a||null,setSearchFieldValue:o||!1}}function d(C){return{type:r,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,c,n){n.d(c,{I:function(){return e},N:function(){return r}});var y=n(4903);const r="SET_PAGE";function e(d,C,l,a){l===!1||d.getSettings().paging.page===C&&C!==1||(0,y.Dh)(y.sh.PAGE,C+"",null,a);const o=d.getSettings().paging;return d.setPaging(C,o.pageSize,o.sortBy,o.sortOrder),{type:r,page:C}}},878:function(b,c,n){n.d(c,{KE:function(){return d},OU:function(){return e},T7:function(){return l},iM:function(){return r},vh:function(){return C}}),n(4933),n(4903);var y=n(3007);const r="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",d="CLEAR_RECOMMENDATION";function C(a,o){return v=>{switch(o.type){case y.Qc:a.recommendations(o,f=>{var g;v((g=o.container,{type:r,container:g,recommendType:"frequently-bought-together",results:f}))});break;case y.uH:a.recommendations(o,f=>{var g;v((g=o.container,{type:e,container:g,recommendType:"related-items",results:f}))})}}}function l(){return{type:d}}},1944:function(b,c,n){n.d(c,{AX:function(){return f},EF:function(){return v},d3:function(){return d},j2:function(){return C},lq:function(){return g},mY:function(){return a},xE:function(){return l},y$:function(){return o}});var y=n(4933),r=n(4903),e=n(6351);const d="START",C="SET_SEARCH_RESULTS_PAGE_URL",l="SEARCH_FETCH_START",a="SEARCH_RESULTS",o="CLEAR_SEARCH_RESULTS";function v(h,u,_,k,A,I,P,N,q){return(0,r.Dh)(r.sh.SEARCH,u,A,I),u&&u!==""?(j,D)=>{const L=D().keyword.minLengthRequiredToFetch;A&&u.length<L||(j({type:l}),h.search(u,V=>{if((q||P)&&V&&V.hits&&V.hits.length){var J=(q||P).replace("custom_fields.",""),se=function(ne,Y,W){return Y.find(X=>{if(!X.custom_fields||!X.custom_fields[W])return!1;if(typeof X.custom_fields[W]=="string")return ne.toLowerCase()===X.custom_fields[W].toLowerCase();if(typeof X.custom_fields[W]=="object"&&X.custom_fields[W].length){const ue=X.custom_fields[W].map(Re=>Re.toLowerCase()),xe=ne.toLowerCase();return ue.indexOf(xe)>-1}return!1})}(u,V.hits,J);if(se&&!A)return void window.location.replace(se.url)}j(function(ne,Y,W,X,ue,xe){if(/top-delay-\d*$/.test(X)){var Re=parseInt(X.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},Re)}else X==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(y.H)===-1){const Oe=W?W.total_hits:0,Ce=W?W.processing_time_ms:0;(0,e.mh)(ne,Y,Oe,Ce)}return{type:a,keyword:Y,results:W,appendResults:ue,requestBy:xe}}(h,u,V,_,k,N))}))}:{type:o}}function f(h){return h==="top"&&window.scrollTo(0,0),{type:o}}function g(h){return{type:C,url:h}}},4826:function(b,c,n){n.d(c,{JK:function(){return r},VD:function(){return e},l$:function(){return d},lD:function(){return y}});const y="SEGMENTED_SEARCH_START",r="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function d(C,l,a){return a&&a!==""?o=>{o(function(v){return{type:y,jsonKey:v}}(l)),C.search(a,v=>o(function(f,g,h){return{type:r,jsonKey:f,keyword:g,results:h}}(l,a,v)))}:{type:e}}},6353:function(b,c,n){n.d(c,{ER:function(){return e},O0:function(){return r},Ul:function(){return d}});var y=n(4903);const r="SORTBY",e="desc";function d(C,l,a,o){o&&(0,y.Dh)(y.sh.SORTBY,JSON.stringify({field:l,order:a}),null,o);const v=C.getSettings().paging;return C.setPaging(v.page,v.pageSize,l,a),{type:r,field:l,order:a}}},6510:function(b,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return A},A:function(){return k}});var y=n(2334),r=n.n(y),e=n(6148),d=n(1944),C=n(6993),l=n(4922),a=n(4379),o=n(6351),v=n(4903),f=n(3923),g=n(209),h=n.n(g),u=n(1271);function _(I,P,N){var q;return(P=typeof(q=function(j,D){if(typeof j!="object"||!j)return j;var L=j[Symbol.toPrimitive];if(L!==void 0){var V=L.call(j,D||"default");if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(j)}(P,"string"))=="symbol"?q:String(q))in I?Object.defineProperty(I,P,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[P]=N,I}class k{constructor(P,N,q,j){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=P,this.reduxStore=N,this.hasConversationalSearch=q,this.conf=j,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const D=this.conf.categorySelectionFunction||f.GK;(0,f.g3)("selectSearchResultCategory",L=>D(L,this.conf.categoryAliases)),(0,a.A)(j.containerId)&&((0,l.G)(this.reduxStore,"autocomplete",L=>this.autocompleteResultsChanged(L)),(0,l.G)(this.reduxStore,"keyword",L=>this.keywordChanged(L))),j.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),j.sources&&j.sources.length&&j.sources.forEach(L=>{L.client&&L.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(P){if(P.dropRendering)return void this.clearRenderedHtml();const N=this.reduxStore.getState().keyword.value;P.pendingRequests.length>0||N.length<this.minLengthRequired||(P.keyword&&P.keyword!==""&&this.sendSearchAnalytics(P),this.render(P))}sendSearchAnalytics(P){let N=[];this.conf.sources.forEach(q=>{if(q.type===A.SEARCH&&q.collectSearchAnalytics){const j=q.client||this.client,D=P.searchResultsStats[q.jsonKey]?P.searchResultsStats[q.jsonKey].total_hits:0;N.push({client:j,numberOfResults:D})}}),(0,o.ME)(P.keyword,N)}keywordChanged(P){if(P.skipAutocomplete)return;const N=P.value;this.conf.sources.forEach(q=>{const j=q.client||this.client;if(q.type===A.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(j,N));else if(q.type===A.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(j,N,q.field));else if(q.type===A.SEARCH){const D=j.getSettings().paging;j.setPaging(1,D.pageSize,D.sortBy,D.sortOrder),this.reduxStore.dispatch((0,e.OA)(j,q.jsonKey,N,this.hasConversationalSearch))}})}loadMore(P){this.conf.sources.forEach(N=>{const q=N.client;q&&N.type===A.SEARCH&&(q.nextPage(),this.reduxStore.dispatch((0,e.OA)(q,N.jsonKey,P,this.hasConversationalSearch,!0)))})}render(P){if(P.visible===!1)return void this.clearRenderedHtml();const{suggestions:N,customFields:q,searchResults:j,activeSuggestionIndex:D}=P,L={activeSuggestionIndex:D,suggestions:N,customFields:q,searchResults:j};let V;if(V=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):h()(L),this.renderedHtml===V)return;const J=document.getElementById(this.conf.containerId);J.innerHTML=V,this.renderedHtml=V,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const se=J.querySelector(".suggestions")?J.querySelectorAll(".suggestions > li"):[],ne=J.querySelectorAll(".suggestions");for(let Y=0;Y<se.length;Y++)se[Y].onmousedown=W=>this.suggestionMouseDown(W),ne.length<=1&&(se[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(j[Object.keys(j)[0]]){const Y=J.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(X=>{X.type===A.SEARCH&&(W||(W=X.client))}),W||(W=this.client),(0,o.$P)(W,Y,{hits:j[Object.keys(j)[0]]})}this.conf.infiniteScrollElement&&!P.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(J)}suggestionMouseDown(P){const N=P.target.getAttribute("data-keyword"),q=this.reduxStore;q.dispatch((0,e.dC)()),q.dispatch((0,C.Ai)(N,!0,null,!0));const j=q.getState().search.searchResultsPageUrl;j?(0,v.lG)(j,N):(q.dispatch((0,d.EF)(this.client,N,null,null,null,q)),this.hasConversationalSearch&&q.dispatch((0,u.Vk)(this.client,N)))}suggestionMouseEnter(P){const N=parseInt(P.target.getAttribute("data-index"),10);N!==null&&N!==this.lastOnmouseOver&&(this.lastOnmouseOver=N,this.reduxStore.dispatch((0,e.XD)(N,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const P=this.conf.infiniteScrollElement;if(P.scrollHeight>0&&Math.ceil(P.offsetHeight+P.scrollTop)>=P.scrollHeight){const N=this.reduxStore.getState().keyword.value;this.loadMore(N)}}}}const A={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,c,n){n.d(c,{A:function(){return a},a:function(){return l}});var y=n(1944),r=n(5756),e=n(4922),d=n(4903),C=n(4826);function l(o,v,f){let g={and:[]};v&&g.and.push(v);let h={};o.allAvailableFilters.forEach(u=>{let _={or:[]};for(let k in u)o.activeFilters[k]&&!h[k]&&(_.or.push(u[k].filter),h[k]=!0);_.or.length>0&&g.and.push(_)});for(let u in o.activeRangeFilters)g.and.push({range:{[u]:Object.assign({},o.activeRangeFilters[u])}});for(let u in o.activeFacets){let _={or:[]};for(let k in o.activeFacets[u])if(u!==f){const A={};A[u]=k,_.or.push(A)}_.or.length>0&&g.and.push(_)}for(let u in o.activeHierarchicalFacets){let _={or:[]};for(let k in o.activeHierarchicalFacets[u])for(let A in o.activeHierarchicalFacets[u][k])if(!f||f.indexOf(k)===-1){const I={};I[k]=A,_.or.push(I)}_.or.length>0&&g.and.push(_)}for(let u in o.activeRangeFacets){let _={or:[]};for(let k in o.activeRangeFacets[u])if(u!==f){const A={range:{[u]:o.activeRangeFacets[u][k]}};_.or.push(A)}_.or.length>0&&g.and.push(_)}return g.and.length>0?g:{}}class a{constructor(v,f,g,h,u,_,k){this.client=v,this.reduxStore=f,this.createFilterObjectFunction=g,this.onFilterChange=h,this.onFilteredSearchRefresh=k,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",A=>this.onFilterStateChange(A,u))}onFilterStateChange(v,f){if(v.refreshSearch){(0,d.Dh)(d.sh.FILTERS,(0,d.IR)(v.activeFilters),null,this.reduxStore),(0,d.Dh)(d.sh.FACETS,(0,d.IR)(v.activeFacets),null,this.reduxStore),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore);const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g);const h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,r.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,y.EF)(this.client,h,null,null,null,this.reduxStore,null,v.targetFacetGroup));for(let u in this.segmentedSearchClients){const _=this.createFilterObjectFunction(v,this.segmentedSearchClients[u].originalFilters);this.segmentedSearchClients[u].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[u].client,u,h))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(v.setHistory){const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(v.activeFilters)}}},9369:function(b,c,n){n.d(c,{FILTER_TYPE:function(){return j},A:function(){return q}});var y=n(2334),r=n.n(y),e=n(4922),d=n(549),C=n(6353),l=n(4379),a=n(3668),o=n.n(a),v=n(8810),f=n.n(v),g=n(5509),h=n.n(g),u=n(1572),_=n.n(u),k=n(948),A=n.n(k),I=n(3329),P=n.n(I);const N="nofilter";class q{constructor(L,V,J){this.client=L,this.reduxStore=V,this.conf=J,this.activeFilter=null,(0,l.A)(J.containerId)&&(this.reduxStore.dispatch((0,d.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",se=>this.render(se)),this.conf.type===j.RANGE&&(0,e.G)(this.reduxStore,"search",se=>this.searchResultsChanged(se)))}searchResultsChanged(L){!L.loading&&L.results.fieldStats&&L.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(L){let V=Object.assign({},this.conf);this.activeFilter=null;let J=!1;for(let W in V.options)L.activeFilters[W]?(V.options[W].active=!0,this.activeFilter=W,J=!0):V.options[W].active=!1;!J&&V.options&&V.options[N]&&(V.options[N].active=!0);let se,ne=null;if(this.conf.type===j.TABS)ne=_();else if(this.conf.type===j.TAGS)ne=h();else if(this.conf.type===j.CHECKBOX_GROUP)ne=o();else if(this.conf.type===j.RADIO_GROUP)ne=f();else if(this.conf.type===j.RANGE){L.activeRangeFilters[this.conf.field]&&(V.from=L.activeRangeFilters[this.conf.field].gte,V.to=L.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:X,max:ue}=W.fieldStats[this.conf.field];V.fromPlaceholder=X==="Infinity"?"":X,V.toPlaceholder=ue==="-Infinity"?"":ue}ne=P()}else ne=A();if(se=this.conf.precompiledTemplate?this.conf.precompiledTemplate(V):this.conf.template?r().compile(this.conf.template)(V):ne(V),this.renderedHtml===se)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=se,this.renderedHtml=se,this.conf.type===j.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===j.TABS){const W=Y.querySelectorAll("[data-filter]");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.getAttribute("data-filter")))}else if(this.conf.type===j.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.value))}else this.conf.type===j.RANGE?this.attachRangeFilterEvents(Y):(0,l.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,d.VH)(W,1))})}singleActiveChangeEvent(L){const V=L===N,J=this.reduxStore;L!==this.activeFilter&&(this.conf.setSorting&&J.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?J.dispatch((0,d.hx)(V)):this.activeFilter&&J.dispatch((0,d.VH)(this.activeFilter,1,V)),V?this.activeFilter=null:(this.activeFilter=L,J.dispatch((0,d.VH)(L,1,!0))))}attachRangeFilterEvents(L){const V=L.querySelectorAll("input");for(let se=0;se<V.length;se++)V[se].addEventListener("change",ne=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ne.target.value)?ne.target.setAttribute("data-valid","false"):(ne.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,L.querySelector('input[name="from"]').value,L.querySelector('input[name="to"]').value))});const J=L.querySelector("button");J&&J.addEventListener("click",se=>this.reduxStore.dispatch((0,d.u3)(this.conf.field,null,null)))}rangeChangeEvent(L,V,J){const se=V!==""?V:null,ne=J!==""?J:null;this.reduxStore.dispatch((0,d.u3)(L,se,ne))}}const j={CHECKBOX_GROUP:"CHECKBOX_GROUP",RADIO_GROUP:"RADIO_GROUP",SELECT_LIST:"SELECT_LIST",RANGE:"RANGE",TABS:"TABS",TAGS:"TAGS"}},3816:function(b,c,n){n.d(c,{LOAD_MORE_TYPE:function(){return f},A:function(){return v}});var y=n(2334),r=n.n(y),e=n(5756),d=n(1944),C=n(4922),l=n(4379),a=n(8905),o=n.n(a);class v{constructor(h,u,_){this.client=h,this.reduxStore=u,this.conf=_,(0,l.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",k=>this.render(k)),_.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(h){const u=h.results.page||1,_=this.client.getSettings().paging.pageSize,k=h.results.total_hits||0,A=Math.ceil(k/_),I={type:this.conf.type,hasMorePages:u<A,isLoading:h.loading,totalHits:k};let P;if(P=this.conf.precompiledTemplate?this.conf.precompiledTemplate(I):this.conf.template?r().compile(this.conf.template)(I):o()(I),this.renderedHtml===P)return;const N=document.getElementById(this.conf.containerId);if(N.innerHTML=P,this.renderedHtml=P,this.conf.type===f.BUTTON){const q=N.querySelector("button");q&&(q.onclick=j=>this.loadMore())}else this.conf.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&h.results.page===1&&!h.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const h=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,h,!1,this.reduxStore));const u=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,u,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const h=this.reduxStore.getState().search.loading,u=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!h&&u)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,k=u.getBoundingClientRect().top;k>0&&k<_&&this.loadMore()}}}const f={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return P},A:function(){return I}});var y=n(2334),r=n.n(y),e=n(549),d=n(4922),C=n(4379),l=n(8526),a=n(6843);function o(N){var q=Math.ceil(Math.log10(N+1));if(q===1)return 0;var j=Math.pow(10,q-1);return Math.floor(N/j)*j}function v(N){var q=Math.ceil(Math.log10(N+1)),j=Math.pow(10,q-1);return Math.ceil(N/j)*j}var f=n(7435),g=n(6427),h=n.n(g),u=n(1204),_=n.n(u);function k(){let N,q;function j(se,ne){se&&(se.textContent=ne)}function D(se,ne){const[Y,W]=L(se,ne);typeof N=="function"&&N({activeRange:[Y,W]})}function L(se,ne){return[parseFloat(se.value),parseFloat(ne.value)]}function V(se,ne,Y,W,X){const ue=ne.max-ne.min,xe=se.value-ne.min,Re=ne.value-ne.min;X.style.background=`linear-gradient(
47
47
  to right,
48
- `.concat(q,` 0%,
49
- `).concat(q," ").concat(fe/re*100,`%,
50
- `).concat(V," ").concat(fe/re*100,`%,
51
- `).concat(V," ").concat(Pe/re*100,`%,
52
- `).concat(q," ").concat(Pe/re*100,`%,
53
- `).concat(q," 100%)")}function G(X){const z=document.querySelector("#"+U+" [data-id=adds-slider-control-from]"),q=document.querySelector("#"+U+" [data-id=adds-slider-control-to]");Number(X.value)<=z.value?q.style.zIndex="2":q.style.zIndex="0"}this.initialize=function(X,z,q){F=z,U=X;const[V,J,re,fe]=function(){const Ie=document.querySelector("#"+U+" .adds-range-slider-container");return[Ie.getAttribute("data-slider-min"),Ie.getAttribute("data-slider-max"),Ie.getAttribute("data-slider-start"),Ie.getAttribute("data-slider-end")]}(),Pe=Math.ceil(parseFloat(J));(function(Ie,H){const N=document.querySelector("#"+U+" .adds-range-slider-container"),[Q,se,le,me]=Ie,pe=`
48
+ `.concat(Y,` 0%,
49
+ `).concat(Y," ").concat(xe/ue*100,`%,
50
+ `).concat(W," ").concat(xe/ue*100,`%,
51
+ `).concat(W," ").concat(Re/ue*100,`%,
52
+ `).concat(Y," ").concat(Re/ue*100,`%,
53
+ `).concat(Y," 100%)")}function J(se){const ne=document.querySelector("#"+q+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+q+" [data-id=adds-slider-control-to]");Number(se.value)<=ne.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(se,ne,Y){N=ne,q=se;const[W,X,ue,xe]=function(){const Me=document.querySelector("#"+q+" .adds-range-slider-container");return[Me.getAttribute("data-slider-min"),Me.getAttribute("data-slider-max"),Me.getAttribute("data-slider-start"),Me.getAttribute("data-slider-end")]}(),Re=Math.ceil(parseFloat(X));(function(Me,We){const z=document.querySelector("#"+q+" .adds-range-slider-container"),[H,oe,de,be]=Me,we=`
54
54
  <div class="adds-range-slider-control">
55
- <input data-id="adds-slider-control-from" type="range" value="`.concat(le||Q,'" min="').concat(Q,'" max="').concat(se,'" step="').concat(H,`" />
56
- <input data-id="adds-slider-control-to" type="range" value="`).concat(me||se,'" min="').concat(Q,'" max="').concat(se,'" step="').concat(H,`" />
55
+ <input data-id="adds-slider-control-from" type="range" value="`.concat(de||H,'" min="').concat(H,'" max="').concat(oe,'" step="').concat(We,`" />
56
+ <input data-id="adds-slider-control-to" type="range" value="`).concat(be||oe,'" min="').concat(H,'" max="').concat(oe,'" step="').concat(We,`" />
57
57
  </div>
58
- `);N.innerHTML=pe})([Math.floor(parseFloat(V)),Pe,re,fe],q.step);const Ee=q.styles,xe=document.querySelector("#"+X+" [data-id=adds-slider-control-from]"),Be=document.querySelector("#"+X+" [data-id=adds-slider-control-to]"),Re=document.querySelector("#"+X+" [data-id=adds-slider-display-start]"),He=document.querySelector("#"+X+" [data-id=adds-slider-display-end]");D(xe,Be,Ee.trackColor,Ee.progressColor,Be),G(Be),L(Re,re||V),L(He,fe||J),xe.oninput=()=>function(Ie,H,N,Q){const[se,le]=C(Ie,H);D(Ie,H,Q.trackColor,Q.progressColor,H),se>le?(Ie.value=le,L(N,le)):L(N,se)}(xe,Be,Re,Ee),Be.oninput=()=>function(Ie,H,N,Q){const[se,le]=C(Ie,H);D(Ie,H,Q.trackColor,Q.progressColor,H),G(H),se<=le?(H.value=le,L(N,le)):(H.value=se,L(N,se))}(xe,Be,He,Ee),xe.onchange=()=>B(xe,Be),Be.onchange=()=>B(xe,Be)}}E.init=function(F,U,L){new E().initialize(F,U,L)};var R=E;class k{constructor(U,L,B){this.client=U,this.reduxStore=L,this.conf=B,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var C=["component.loadMore","component.pagination","component.sortby"];function D(){var G=L.getState().filters.activeRangeFacets[B.field];return!!G&&!(0,f.I)(G)}this.conf.type===P.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=P.CHECKBOX,(0,_.A)(B.containerId)&&((0,u.G)(this.reduxStore,"search",G=>{const X=D();if(!(!G.started||G.loading||G.callBy===this.conf.field&&X||C.indexOf(G.callBy)>-1))if(G.results.hits&&G.results.hits.length){if(X&&this.conf.type===P.SLIDER){var z=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,c.Ow)({[this.conf.field]:{min:z.gte,max:z.lte}},this.conf.field))}else if(X&&this.conf.type===P.CHECKBOX){const q=(0,a.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchCustomApi(this.conf.field,q,V=>{this.reduxStore.dispatch((0,c.Ow)(V.fieldStats,this.conf.field))})}else G.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,c.np)()),this.reduxStore.dispatch((0,c.Ow)(G.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,c.Ow)(G.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,u.G)(this.reduxStore,"fieldstats",G=>{var X=G.fieldStats[this.conf.field];if(G.callBy!==this.conf.field||X===void 0)return;if(X===null)return void this.renderRangeSlider();if(D()?this.ranges=function(V){const J=[];for(const re in V)J.push({from:V[re].gte,to:V[re].lt});return J}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(V,J,re){const fe=V>=0?i(V):-1*S(-1*V),Pe=J>=0?S(J):-1*i(-1*J),Ee=[];let xe=fe;const Be=S((Pe-fe)/re);for(var Re=0;Re<re;Re++)Ee.push({from:xe,to:xe+Be}),xe+=Be;return Ee}(X.min,X.max,this.maxNumberOfRangeBuckets),this.conf.type===P.SLIDER)return void this.renderRangeSlider(G);var z={field:this.conf.field,ranges:this.ranges};const q=(0,a.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(z,q,V=>{this.render(V)})}))}setRangeFilter(U,L,B){const C={min:L,max:B};this.reduxStore.dispatch((0,e.jU)(this.conf.field,C,U,!0))}setRangeSlider(U){this.reduxStore.dispatch((0,e.ks)(function(L,B,C){const D="".concat(B,"-").concat(C);return{[L]:{[D]:{gte:B,lte:C}}}}(this.conf.field,U[0],U[1]),!0,this.conf.field))}render(U){const L=document.getElementById(this.conf.containerId);if(U){const B={conf:this.conf,rangeFacets:U.rangeFacets[this.conf.field]};let C;C=this.conf.precompiledTemplate?this.conf.precompiledTemplate(B):this.conf.template?r().compile(this.conf.template)(B):l()(B),L.innerHTML=C}else L.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,c.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(U){const L=this,B=document.getElementById(this.conf.containerId),C={conf:this.conf};if(!U)return void(B.innerHTML="");const D=this.getActiveRangeFacets(this.conf.field);let G;C.sliderConfig=Object.assign({},function(X,z){return!X.fieldStats&&!X.fieldStats[z]?{min:null,max:null}:{min:X.fieldStats[z].min,max:X.fieldStats[z].max}}(U,this.conf.field),function(X){let z,q;return X.forEach(V=>{const J=V.gte,re=V.lte;(z===void 0||J<z)&&(z=J),(q===void 0||re>q)&&(q=re)}),{start:z,end:q}}(D)),G=this.conf.precompiledTemplate?this.conf.precompiledTemplate(C):this.conf.template?r().compile(this.conf.template)(C):b()(C),B.innerHTML=G,R.init(this.conf.containerId,function(X){X.activeRange.length&&L.setRangeSlider(X.activeRange)},{styles:{trackColor:this.conf.styles.trackColor,progressColor:this.conf.styles.progressColor},step:this.conf.step||1})}handleCheckboxStates(U){const L=document.getElementById(this.conf.containerId),B=this.getActiveRangeFacets(this.conf.field),C=L.getElementsByTagName("input");for(let D=0;D<C.length;D++){let G=C[D];G.checked=!!B.find(X=>X.key===G.value),U&&(G.onchange=X=>{this.setRangeFilter(X.target.value,X.target.getAttribute("data-value-min"),X.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(U){let L=[];const B=this.reduxStore.getState().filters.activeRangeFacets;if(B[U])for(let C in B[U])L.push(B[U][C]);return L}}const P={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(p,s,t){t.d(s,{A:function(){return v.Ay},RECOMMENDATION_TYPE:function(){return r}});var v=t(3007);const r={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(p,s,t){t.d(s,{Qc:function(){return i},uH:function(){return S},Ay:function(){return f}});const v=`
58
+ `);z.innerHTML=we})([Math.floor(parseFloat(W)),Re,ue,xe],Y.step);const Oe=Y.styles,Ce=document.querySelector("#"+se+" [data-id=adds-slider-control-from]"),He=document.querySelector("#"+se+" [data-id=adds-slider-control-to]"),Fe=document.querySelector("#"+se+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+se+" [data-id=adds-slider-display-end]");V(Ce,He,Oe.trackColor,Oe.progressColor,He),J(He),j(Fe,ue||W),j(Ke,xe||X),Ce.oninput=()=>function(Me,We,z,H){const[oe,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),oe>de?(Me.value=de,j(z,de)):j(z,oe)}(Ce,He,Fe,Oe),He.oninput=()=>function(Me,We,z,H){const[oe,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),J(We),oe<=de?(We.value=de,j(z,de)):(We.value=oe,j(z,oe))}(Ce,He,Ke,Oe),Ce.onchange=()=>D(Ce,He),He.onchange=()=>D(Ce,He)}}k.init=function(N,q,j){new k().initialize(N,q,j)};var A=k;class I{constructor(q,j,D){this.client=q,this.reduxStore=j,this.conf=D,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var L=["component.loadMore","component.pagination","component.sortby"];function V(){var J=j.getState().filters.activeRangeFacets[D.field];return!!J&&!(0,f.I)(J)}this.conf.type===P.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=P.CHECKBOX,(0,C.A)(D.containerId)&&((0,d.G)(this.reduxStore,"search",J=>{const se=V();if(!(!J.started||J.loading||J.callBy===this.conf.field&&se||L.indexOf(J.callBy)>-1))if(J.results.hits&&J.results.hits.length){if(se&&this.conf.type===P.SLIDER){var ne=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ne.gte,max:ne.lte}},this.conf.field))}else if(se&&this.conf.type===P.CHECKBOX){const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchCustomApi(this.conf.field,Y,W=>{this.reduxStore.dispatch((0,a.Ow)(W.fieldStats,this.conf.field))})}else J.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,d.G)(this.reduxStore,"fieldstats",J=>{var se=J.fieldStats[this.conf.field];if(J.callBy!==this.conf.field||se===void 0)return;if(se===null)return void this.renderRangeSlider();if(V()?this.ranges=function(W){const X=[];for(const ue in W)X.push({from:W[ue].gte,to:W[ue].lt});return X}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,X,ue){const xe=W>=0?o(W):-1*v(-1*W),Re=X>=0?v(X):-1*o(-1*X),Oe=[];let Ce=xe;const He=v((Re-xe)/ue);for(var Fe=0;Fe<ue;Fe++)Oe.push({from:Ce,to:Ce+He}),Ce+=He;return Oe}(se.min,se.max,this.maxNumberOfRangeBuckets),this.conf.type===P.SLIDER)return void this.renderRangeSlider(J);var ne={field:this.conf.field,ranges:this.ranges};const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ne,Y,W=>{this.render(W)})}))}setRangeFilter(q,j,D){const L={min:j,max:D};this.reduxStore.dispatch((0,e.jU)(this.conf.field,L,q,!0))}setRangeSlider(q){this.reduxStore.dispatch((0,e.ks)(function(j,D,L){const V="".concat(D,"-").concat(L);return{[j]:{[V]:{gte:D,lte:L}}}}(this.conf.field,q[0],q[1]),!0,this.conf.field))}render(q){const j=document.getElementById(this.conf.containerId);if(q){const D={conf:this.conf,rangeFacets:q.rangeFacets[this.conf.field]};let L;L=this.conf.precompiledTemplate?this.conf.precompiledTemplate(D):this.conf.template?r().compile(this.conf.template)(D):h()(D),j.innerHTML=L}else j.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(q){const j=this,D=document.getElementById(this.conf.containerId),L={conf:this.conf};if(!q)return void(D.innerHTML="");const V=this.getActiveRangeFacets(this.conf.field);let J;L.sliderConfig=Object.assign({},function(se,ne){return!se.fieldStats&&!se.fieldStats[ne]?{min:null,max:null}:{min:se.fieldStats[ne].min,max:se.fieldStats[ne].max}}(q,this.conf.field),function(se){let ne,Y;return se.forEach(W=>{const X=W.gte,ue=W.lte;(ne===void 0||X<ne)&&(ne=X),(Y===void 0||ue>Y)&&(Y=ue)}),{start:ne,end:Y}}(V)),J=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):_()(L),D.innerHTML=J,A.init(this.conf.containerId,function(se){se.activeRange.length&&j.setRangeSlider(se.activeRange)},{styles:{trackColor:this.conf.styles.trackColor,progressColor:this.conf.styles.progressColor},step:this.conf.step||1})}handleCheckboxStates(q){const j=document.getElementById(this.conf.containerId),D=this.getActiveRangeFacets(this.conf.field),L=j.getElementsByTagName("input");for(let V=0;V<L.length;V++){let J=L[V];J.checked=!!D.find(se=>se.key===J.value),q&&(J.onchange=se=>{this.setRangeFilter(se.target.value,se.target.getAttribute("data-value-min"),se.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(q){let j=[];const D=this.reduxStore.getState().filters.activeRangeFacets;if(D[q])for(let L in D[q])j.push(D[q][L]);return j}}const P={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(b,c,n){n.d(c,{A:function(){return y.Ay},RECOMMENDATION_TYPE:function(){return r}});var y=n(3007);const r={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(b,c,n){n.d(c,{Qc:function(){return o},uH:function(){return v},Ay:function(){return f}});const y=`
59
59
  <div class="addsearch-recommendations">
60
60
  {{#each hits}}
61
61
  <div class="hit">
@@ -78,97 +78,304 @@ React keys must be passed directly to JSX without using spread:
78
78
  </div>
79
79
  {{/each}}
80
80
  </div>
81
- `;var r=t(2334),e=t.n(r),u=t(4922),_=t(4379),a=t(878),c=t(4128);const i=c.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,S=c.RECOMMENDATION_TYPE.RELATED_ITEMS;class f{constructor(l,o,b,E){this.client=l,this.conf=b,this.reduxStore=o,E.push(b),(0,_.A)(b.containerId)&&(0,u.G)(this.reduxStore,"recommendation",R=>{R.container===b.containerId&&this.render(R)})}render(l){const o=l.results||{};o.blockId=this.conf.blockId;let b,E=this.conf.template||v;this.conf.precompiledTemplate?b=this.conf.precompiledTemplate(o):(E=this.conf.template||v,b=e().compile(E)(o)),this.renderedHtml!==b&&(document.getElementById(this.conf.containerId).innerHTML=b,this.renderedHtml=b,this.reduxStore.dispatch((0,a.T7)()))}}},8909:function(p,s,t){t.d(s,{SORTBY_TYPE:function(){return o},A:function(){return l}});var v=t(2334),r=t.n(v),e=t(6353),u=t(1944),_=t(5756),a=t(4922),c=t(4379),i=t(6868),S=t.n(i),f=t(9462),y=t.n(f);class l{constructor(E,R,k){this.client=E,this.conf=k,this.reduxStore=R,this.conf.options.forEach(P=>{P.sortBy=typeof P.sortBy=="string"?P.sortBy.split(","):P.sortBy,P.order=typeof P.order=="string"?P.order.split(","):P.order}),(0,c.A)(k.containerId)&&(0,a.G)(this.reduxStore,"sortby",P=>this.render(P))}onChangeSelect(E){const R=E.options[E.selectedIndex],k=R.getAttribute("data-field"),P=R.getAttribute("data-order");this.dispatchAndRefresh(k,P)}onChangeRadio(E){const R=E.target.getAttribute("data-field"),k=E.target.getAttribute("data-order");this.dispatchAndRefresh(R,k)}dispatchAndRefresh(E,R){const k=E.split(","),P=R.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,k,P,this.reduxStore)),this.reduxStore.dispatch((0,_.I)(this.client,1,null,this.reduxStore));const F=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,u.$P)(this.client,F,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(E,R){return E.length===R.length&&E.every((k,P)=>k===R[P])}render(E){const{field:R,order:k}=E;let P=null;P=this.conf.type===o.RADIO_GROUP?S():y();let F,U=Object.assign({},this.conf);if(U.options.forEach(B=>{this.arraysMatch(B.sortBy,R)&&this.arraysMatch(B.order,k)?B.active=!0:B.active=!1}),F=this.conf.precompiledTemplate?this.conf.precompiledTemplate(U):this.conf.template?r().compile(this.conf.template)(U):P(U),this.renderedHtml===F)return;const L=document.getElementById(this.conf.containerId);if(L.innerHTML=F,this.renderedHtml=F,this.conf.type===o.RADIO_GROUP){const B=L.querySelectorAll("input");for(let C=0;C<B.length;C++)B[C].onclick=D=>this.onChangeRadio(D)}else if(L.querySelector("select").onchange=B=>this.onChangeSelect(B.target),E){const B=L.getElementsByTagName("option");for(let C=0;C<B.length;C++)if(B[C].getAttribute("data-field")===R&&B[C].getAttribute("data-order")===k){L.querySelector("select").value=B[C].text;break}}}}const o={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},479:function(p,s,t){t.d(s,{Z:function(){return ge},H:function(){return Y},default:function(){return De}});var v=t(9491),r=t.n(v),e=t(2334),u=t.n(e),_=t(549),a=t(4379),c=t(4922),i=t(3787),S=t.n(i);const f="FILTER",y="RANGE_FILTER",l="FACET",o="RANGE_FACET",b="HIERARCHICAL_FACET";class E{constructor(T,M,ee){this.client=T,this.conf=ee,this.reduxStore=M,(0,a.A)(ee.containerId)&&(0,c.G)(this.reduxStore,"filters",ae=>this.render(ae))}getFilterLabel(T,M){for(let ee=0;ee<M.length;ee++)if(M[ee][T])return M[ee][T].label}emptyIfNull(T){return T??""}render(T){let M=[];for(let ye in T.activeFilters)M.push({type:f,name:ye,value:T.activeFilters[ye],label:this.getFilterLabel(ye,T.allAvailableFilters)});for(let ye in T.activeRangeFilters){const ke=T.activeRangeFilters[ye];M.push({type:y,name:ye,label:this.getFilterLabel(ye,T.allAvailableFilters)+": "+this.emptyIfNull(ke.gte)+"-"+this.emptyIfNull(ke.lte)})}for(let ye in T.activeFacets)if(ye==="category"||ye.indexOf("custom_fields.")===0)for(var ee in T.activeFacets[ye])M.push({name:ye,type:l,value:ee,label:ee.replace(/^[0-9]+[x]{1}/,"")});for(let ye in T.activeHierarchicalFacets)for(let ke in T.activeHierarchicalFacets[ye])for(let Le in T.activeHierarchicalFacets[ye][ke])M.push({name:ke,type:b,container:ye,value:Le,label:Le});for(let ye in T.activeRangeFacets)if(T.activeRangeFacets.hasOwnProperty(ye))for(let ke in T.activeRangeFacets[ye])T.activeRangeFacets[ye].hasOwnProperty(ke)&&M.push({name:ye,type:o,value:ke,label:ke,rangeMin:T.activeRangeFacets[ye][ke].gte,rangeMax:T.activeRangeFacets[ye][ke].lte});const ae={active:M,clearAll:this.conf.clearAll!==!1};let de;if(de=this.conf.precompiledTemplate?this.conf.precompiledTemplate(ae):this.conf.template?u().compile(this.conf.template)(ae):S()(ae),this.renderedHtml===de)return;const he=document.getElementById(this.conf.containerId);he.innerHTML=de,this.renderedHtml=de;const Ae=he.querySelectorAll("[data-type]");for(let ye=0;ye<Ae.length;ye++)Ae[ye].addEventListener("click",ke=>this.handleFilterClick(ke));const Oe=he.querySelector("[data-clearall]");Oe&&Oe.addEventListener("click",ye=>this.reduxStore.dispatch((0,_.hx)(!0,!0)))}handleFilterClick(T){const M=T.target.getAttribute("data-type"),ee=T.target.getAttribute("data-name"),ae=T.target.getAttribute("data-value"),de=T.target.getAttribute("data-container"),he=T.target.getAttribute("data-conf-fields")?T.target.getAttribute("data-conf-fields").split(","):[],Ae=T.target.getAttribute("data-range-min"),Oe=T.target.getAttribute("data-range-max");if(M===f)this.reduxStore.dispatch((0,_.VH)(ee,ae,!0));else if(M===y)this.reduxStore.dispatch((0,_.u3)(ee,null,null));else if(M===l)this.reduxStore.dispatch((0,_.II)(ee,ae));else if(M===b)this.reduxStore.dispatch((0,_.Ni)(ee,de,he,ae,!0));else if(M===o){const ye={min:Ae,max:Oe};this.reduxStore.dispatch((0,_.jU)(ee,ye,ae,!0,!0))}}}var R=t(6510),k=t(8526),P=t(1353),F=t.n(P);class U{constructor(T,M,ee,ae){this.client=T,this.reduxStore=M,this.conf=ee;var de=["component.loadMore","component.pagination","component.sortby"];(0,a.A)(ee.containerId)&&(0,c.G)(this.reduxStore,"search",he=>{var Ae,Oe=this.reduxStore.getState().filters.activeFacets;if(!(he.loading||de.indexOf(he.callBy)>-1))if((Ae=Oe[this.conf.field])&&Object.keys(Ae).length!==0&&this.conf.advancedSticky){var ye=(0,k.a)(this.reduxStore.getState().filters,ae,this.conf.field);if(he.callBy!==this.conf.field)T.fetchCustomApi(this.conf.field,ye,ke=>{this.render(ke,!0)});else{const ke=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ke)}}else this.render(he)})}setFilter(T){this.reduxStore.dispatch((0,_.II)(this.conf.field,T,!0))}render(T,M){if(T.loading)return;const ee=this.conf.field,ae=M?T:T.results;let de=[];ae&&ae.facets&&ae.facets[ee]&&(de=ae.facets[ee]);const he=this.getActiveFacets(ee);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===T.keyword&&this.stickyFacets&&he.length!==0?de=this.stickyFacets:(this.keyword=T.keyword,this.stickyFacets=de)),this.conf.facetsFilter&&(de=this.conf.facetsFilter(de));const Ae={conf:this.conf,facets:de};let Oe;if(Oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(Ae):this.conf.template?u().compile(this.conf.template)(Ae):F()(Ae),this.renderedHtml===Oe&&he===this.renderedActiveFacets)return;this.renderedActiveFacets=he;const ye=document.getElementById(this.conf.containerId);ye.innerHTML=Oe,this.renderedHtml=Oe;const ke=ye.getElementsByTagName("input");for(let Le=0;Le<ke.length;Le++){let Ue=ke[Le];Ue.checked=he.indexOf(Ue.value)!==-1,Ue.onchange=et=>{this.setFilter(et.target.value,et.target.checked)}}}getActiveFacets(T){let M=[];const ee=this.reduxStore.getState().filters.activeFacets;if(ee[T])for(let ae in ee[T])M.push(ae);return M}updateCheckboxStates(T){const M=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let ee=0;ee<M.length;ee++){let ae=M[ee];ae.checked=T.indexOf(ae.value)!==-1}}}var L=t(4278),B=t.n(L),C=t(3923),D=t(2009),G=t.n(D);class X{constructor(T,M,ee,ae){function de(Oe,ye){let ke=!0;return Oe&&ye.forEach(Le=>{var Ue;(Ue=Oe[Le])&&Object.keys(Ue).length!==0&&(ke=!1)}),ke}this.client=T,this.reduxStore=M,this.conf=ee;var he=["component.loadMore","component.pagination","component.sortby"];const Ae=this.conf.template_subHierarchicalFacetsTemplate||G();(0,C.bp)("subHierarchicalFacetsTemplate",Ae),(0,C.g3)("validateOpenState",function(Oe){return M.getState().filters.openedHierarchicalFacetGroups.indexOf(Oe)===-1}),(0,a.A)(ee.containerId)&&(0,c.G)(this.reduxStore,"search",Oe=>{var ye=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(Oe.loading||he.indexOf(Oe.callBy)>-1))if(de(ye,this.conf.fields)||!Oe.results.hits.length)this.render(Oe);else{var ke=(0,k.a)(this.reduxStore.getState().filters,ae,this.conf.fields);if(this.conf.fields.indexOf(Oe.callBy)===-1)T.fetchCustomApi(this.conf.field,ke,Ue=>{this.render(Ue,!0)});else{var Le=document.getElementById(this.conf.containerId);this._updateCheckBoxes(Le,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(T,M){this.reduxStore.dispatch((0,_.Ni)(M,this.conf.containerId,this.conf.fields,T,!0))}render(T,M){if(T.loading)return;const ee=this.conf.fields,ae=M?T:T.results;let de=[];ae&&ae.hierarchicalFacets&&ae.hierarchicalFacets[ee[0]]&&(de=ae.hierarchicalFacets[ee[0]],de=de.map(Le=>(Le.field=Le.field.replace("hierarchical_facet.",""),Le)));const he=this.getActiveFacets(ee,this.conf.containerId);this.conf.facetsFilter&&(de=this.conf.facetsFilter(de));const Ae={conf:this.conf,facets:de};let Oe;if(Oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(Ae):this.conf.template?u().compile(this.conf.template)(Ae):B()(Ae),this.renderedHtml===Oe&&he===this.renderedActiveFacets)return;this.renderedActiveFacets=he;const ye=document.getElementById(this.conf.containerId);ye.innerHTML=Oe,this.renderedHtml=Oe,this._updateCheckBoxes(ye,he,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ke=ye.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let Le=0;Le<ke.length;Le++)ke[Le].addEventListener("click",()=>{ke[Le].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ke[Le].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(T,M){let ee=[];const ae=this.reduxStore.getState().filters.activeHierarchicalFacets;return T.forEach(function(de){if(ae[M]&&ae[M][de])for(let he in ae[M][de])ee.push(he)}),ee}_toggleFacetGroupOpenState(T){const M=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,ee=M.indexOf(T);ee===-1?M.push(T):M.splice(ee,1)}_updateCheckBoxes(T,M,ee,ae){const de=T.getElementsByTagName("input");for(let he=0;he<de.length;he++){let Ae=de[he];Ae.checked=M.indexOf(Ae.value)!==-1,Ae.indeterminate=ae.indexOf(Ae.value)>-1,ee&&(Ae.onchange=Oe=>{this.setFilter(Oe.target.value,Oe.target.getAttribute("data-field"))})}}}var z=t(1990),q=t(9369),V=t(3816),J=t(5756),re=t(1944),fe=t(4245),Pe=t.n(fe);class Ee{constructor(T,M,ee){this.client=T,this.conf=ee,this.reduxStore=M,(0,a.A)(ee.containerId)&&(0,c.G)(this.reduxStore,"search",()=>this.render())}render(){const T=this.reduxStore.getState(),M=T.search.results.page||1,ee=this.client.getSettings().paging.pageSize,ae=T.search.results.total_hits||0,de=Math.ceil(ae/ee),he=function(Le,Ue){if(!Ue||Ue<2||!Le||Le>Ue)return null;for(var et=[],Nt=0;Nt<Ue;Nt++)et.push(Nt+1);if(Ue<=9)return et;if(Ue>9&&Le<7)return et.slice(0,9);if(Ue>9&&Le>=Ue-3)return et.slice(Ue-9);var _t=et.indexOf(Le);return _t-4>=0&&_t+5<=et.length?et.slice(_t-4,_t+5):null}(M,de),Ae={currentPage:M,lastPage:he?he[he.length-1]:0,totalPages:de,pages:he};let Oe;if(Oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(Ae):this.conf.template?u().compile(this.conf.template)(Ae):Pe()(Ae),this.renderedHtml===Oe)return;const ye=document.getElementById(this.conf.containerId);ye.innerHTML=Oe,this.renderedHtml=Oe;const ke=ye.getElementsByTagName("button");for(let Le=0;Le<ke.length;Le++)ke[Le].onclick=Ue=>this.handleOnclick(Ue)}handleOnclick(T){const M=T.target;let ee=null;M.getAttribute("data-page")==="previous"?ee=this.reduxStore.getState().pagination.page-1:M.getAttribute("data-page")==="next"?ee=(this.reduxStore.getState().pagination.page||1)+1:ee=parseInt(M.getAttribute("data-page"),10),this.reduxStore.dispatch((0,J.I)(this.client,ee,null,this.reduxStore));const ae=this.reduxStore.getState().keyword.value,de=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,re.$P)(this.client,ae,de,null,null,this.reduxStore,null,"component.pagination"))}}var xe=t(8505),Be=t.n(xe),Re=t(6148),He=t(6993),Ie=t(4903);const H=40,N=38,Q=13,se=8,le=46;class me{constructor(T,M,ee,ae,de){this.client=T,this.reduxStore=M,this.conf=ee,this.matchAllQuery=ae,this.minLengthToShowResults=ee.minLengthToShowResults||1,this.firstRenderDone=!1,this.firstSelectorBindDone=!1,this.onSearch=de,ee.selectorToBind?(this.bindContainer(),(0,c.G)(this.reduxStore,"keyword",he=>{he.setSearchFieldValue&&this.updateValueOnAllBoundFields(he.value)}),(0,c.G)(this.reduxStore,"autocomplete",he=>this.onAutocompleteUpdateBoundField(he))):(0,a.A)(ee.containerId)&&((0,c.G)(this.reduxStore,"keyword",he=>{he.searchFieldContainerId!==this.conf.containerId&&he.searchFieldContainerId!==null||this.render(he.value)}),(0,c.G)(this.reduxStore,"autocomplete",he=>this.onAutocompleteUpdate(he)))}updateValueOnAllBoundFields(T){for(var M=0;M<this.boundFields.length;M++)this.boundFields[M].value=T}onAutocompleteUpdate(T){if((T.suggestions.length>0||T.customFields.length>0)&&T.setSuggestionToSearchField)if(T.activeSuggestionIndex!==null&&T.setSuggestionToSearchField){const M=(T.suggestions[T.activeSuggestionIndex]||T.customFields[T.activeSuggestionIndex]).value;this.render(M)}else T.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(T){if(T.setSuggestionToSearchField)if(T.activeSuggestionIndex!==null){const M=T.suggestions[T.activeSuggestionIndex]||T.customFields[T.activeSuggestionIndex];if(!M)return;const ee=M.value;this.updateValueOnAllBoundFields(ee)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(T,M,ee){ee||this.reduxStore.dispatch((0,Re.dC)());let ae=M;ae===""&&this.matchAllQuery&&(ae=ge),ae.indexOf(Y)!==0&&this.reduxStore.dispatch((0,J.I)(T,1,null,this.reduxStore)),this.reduxStore.dispatch((0,_.Gc)(!1,!0)),this.onSearch(ae,!1,ee,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(T){const M=this.reduxStore.getState().search.searchResultsPageUrl;M&&this.conf.ignoreSearchResultsPageUrl!==!0&&T&&T.length>0?(0,Ie.lG)(M,T):this.executeSearch(this.client,T,!1)}addEventListenersToField(T){T.oninput=M=>this.oninput(M),T.onkeypress=M=>this.onkeypress(M),T.onkeyup=M=>this.onkeyup(M),T.onfocus=M=>this.onfocus(M),T.onblur=M=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(T){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(T.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(T){const M=this.reduxStore;T===""&&this.matchAllQuery&&(T=ge),M.dispatch((0,He.A)(T,!0,null,!1)),M.dispatch((0,Re.nl)()),this.redirectOrSearch(T)}render(T){const M=document.getElementById(this.conf.containerId);M.querySelector("input")?T!==null&&T!==ge&&M.querySelector("input").value!==T&&(M.querySelector("input").value=T):(this.conf.precompiledTemplate?M.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?M.innerHTML=u().compile(this.conf.template)(this.conf):M.innerHTML=Be()(this.conf),this.field=M.querySelector("input"),T!==ge&&(this.field.value=T),this.addEventListenersToField(this.field),M.querySelector("button")&&(M.querySelector("button").onclick=()=>{let ee=this.field.value;this.handleSubmitKeyword(ee)}),M.querySelector("form")&&(M.querySelector("form").onsubmit=ee=>ee.preventDefault()),this.handleAutoFocus(this.field))}bindContainer(){this.boundFields=document.querySelectorAll(this.conf.selectorToBind);for(var T=0;T<this.boundFields.length;T++)this.addEventListenersToField(this.boundFields[T]),this.boundFields[T].form&&(this.boundFields[T].form.onsubmit=M=>{M.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const M=document.querySelector(this.conf.buttonSelector);M.type==="submit"&&(M.type="button"),M.onclick=()=>{let ee=this.boundFields[0].value;this.handleSubmitKeyword(ee)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(T){const M=this.reduxStore;let ee=T.target.value;ee===""&&this.matchAllQuery&&(ee=ge),T.keyCode!==se&&T.keyCode!==le||M.dispatch((0,Re.XD)(null,!1));const ae=this.conf.ignoreAutocomplete===!0;ee.length<this.minLengthToShowResults||(M.dispatch((0,He.A)(ee,ae,this.conf.containerId)),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,ee,!0))}onkeyup(T){const M=this.reduxStore;T.keyCode===H?M.dispatch((0,Re.C0)(Re.Jd)):T.keyCode===N&&M.dispatch((0,Re.C0)(Re.il))}onkeypress(T){if(T.keyCode===Q){const M=T.target.value;this.handleSubmitKeyword(M)}}onfocus(T){T.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,He.A)(ge,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Y+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Re.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Re.nl)())}}var pe=t(6351),ce=t(6873),ue=t.n(ce),we=t(303),_e=t.n(we),je=t(2123),K=t.n(je),Z=t(4111),te=t.n(Z);class ie{constructor(T,M,ee){this.client=T,this.conf=ee,this.reduxStore=M;const ae=this.conf.template_resultcount||K(),de=this.conf.template_image||te();(0,C.bp)("numberOfResultsTemplate",ae),(0,C.bp)("searchResultImageTemplate",de),(0,C.g3)("removeTrailingQueriesFromUrl",Ae=>{if(Ae)return Ae.replace(/\?.*$/,"")});const he=this.conf.categorySelectionFunction||C.GK;(0,C.g3)("selectCategory",Ae=>he(Ae,this.conf.categoryAliases)),(0,a.A)(ee.containerId)&&(0,c.G)(this.reduxStore,"search",()=>this.render())}render(){const T=this.reduxStore.getState().search,M=T.results||{};let ee;if(M.resultcount=M.hits&&this.conf.showNumberOfResults!==!1,M.keyword=T.keyword,ee=M.hits&&M.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(M):this.conf.template_noresults?u().compile(this.conf.template_noresults)(M):_e()(M):this.conf.precompiledTemplate?this.conf.precompiledTemplate(M):this.conf.template?u().compile(this.conf.template)(M):ue()(M),this.renderedHtml===ee)return;const ae=document.getElementById(this.conf.containerId);ae.innerHTML=ee,this.renderedHtml=ee,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const de=ae.querySelectorAll("[data-analytics-click]");(0,pe.$P)(this.client,de,M)}}class O{constructor(T,M,ee){this.client=T,this.reduxStore=M,this.conf=ee,(0,a.A)(ee.containerId)&&(ee.template||ee.precompiledTemplate)&&(0,c.G)(this.reduxStore,"segmentedsearch",ae=>this.render(ae)),this.client.setCollectAnalytics(!1)}render(T){if(T.pendingSegments.length!==0)return;let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):u().compile(this.conf.template)(T),this.renderedHtml===M)return;const ee=document.getElementById(this.conf.containerId);ee.innerHTML=M,this.renderedHtml=M;const ae=ee.querySelectorAll("[data-analytics-click]");(0,pe.$P)(this.client,ae,T)}}var d=t(8909),x=t(4826),A=t(6353),j=t(4128),$=t(878);const Y="_addsearch_",ge="*";r().polyfill(),(0,C.ud)();class De{constructor(T,M){this.client=T,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=M||{},Ie.sh.SEARCH=this.settings.searchParameter||Ie.sh.SEARCH,Ie.sh.FACETS=this.settings.facetsParameter||Ie.sh.FACETS,this.hasSearchResultsComponent=!1,this.reduxStore=(0,c.N)(this.settings)}start(){this.initFromClientSettings(),this.client.setCollectAnalytics(!1),(0,pe.b8)(this.settings.analyticsCallback),(0,pe.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,re.lq)(this.settings.searchResultsPageUrl));const T=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:k.a;this.hasSearchResultsComponent&&(0,Ie.I5)(this.client,this.reduxStore,T,(ee,ae)=>this.executeSearch(ee,ae,!1,null,this.settings.fieldForInstantRedirect),this.settings.matchAllQuery,this.settings.baseFilters),new k.A(this.client,this.reduxStore,T,this.settings.onFilterChange,this.settings.baseFilters,this.segmentedSearchClients,this.settings.onFilteredSearchRefresh),this.settings.matchAllQuery===!0&&this.matchAllQuery();for(var M=0;M<this.recommendationsSettings.length;M++)this.recommendationsSettings[M].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[M].containerId);this.reduxStore.dispatch((0,re.ni)())}executeSearch(T,M,ee,ae,de){this.reduxStore.dispatch((0,re.$P)(this.client,T,M,!1,ee,this.reduxStore,ae,"executeSearch",de));for(let he in this.segmentedSearchClients)this.reduxStore.dispatch((0,x.l$)(this.segmentedSearchClients[he].client,he,T))}fetchRecommendation(T){const M=this.recommendationsSettings.filter(ee=>ee.containerId===T)[0];M&&this.reduxStore.dispatch((0,$.vh)(this.client,{container:M.containerId,type:M.type,blockId:M.blockId,configurationKey:M.configurationKey,itemId:M.getProductIdFunction?M.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const T=this.client.getSettings().paging;this.reduxStore.dispatch((0,A.Ul)(this.client,T.sortBy,T.sortOrder))}matchAllQuery(T){const M=this.reduxStore;M.getState().keyword.value===""&&(M.dispatch((0,He.A)(ge,!0)),this.executeSearch(ge,T,!1))}log(T){this.settings.debug&&console.log(T)}searchField(T){T.fieldForInstantRedirect&&console.log('WARNING: searchField setting "fieldForInstantRedirect" is deprecated. Use it in Search UI configuration object instead.'),new me(this.client,this.reduxStore,T,this.settings.matchAllQuery===!0,(M,ee,ae,de,he)=>this.executeSearch(M,ee,ae,de,he))}autocomplete(T){new R.A(this.client,this.reduxStore,T)}searchResults(T){this.hasSearchResultsComponent=!0,new ie(this.client,this.reduxStore,T)}segmentedSearchResults(T){T.client?(this.hasSearchResultsComponent=!0,this.segmentedSearchClients[T.containerId]={},this.segmentedSearchClients[T.containerId].client=T.client,this.segmentedSearchClients[T.containerId].originalFilters=Object.assign({},T.client.getSettings().filterObject),new O(T.client,this.reduxStore,T)):console.log("WARNING: segmentedResults component must have a client instance")}facets(T){new U(this.client,this.reduxStore,T,this.settings.baseFilters)}hierarchicalFacets(T){new X(this.client,this.reduxStore,T,this.settings.baseFilters)}rangeFacets(T){new z.A(this.client,this.reduxStore,T,this.settings.baseFilters)}filters(T){new q.A(this.client,this.reduxStore,T)}sortBy(T){new d.A(this.client,this.reduxStore,T)}pagination(T){new Ee(this.client,this.reduxStore,T)}loadMore(T){new V.A(this.client,this.reduxStore,T)}activeFilters(T){new E(this.client,this.reduxStore,T)}recommendations(T){new j.A(this.client,this.reduxStore,T,this.recommendationsSettings)}search(T){this.reduxStore.dispatch((0,He.A)(T,!0)),this.executeSearch(T,null,!1)}hideAutocomplete(){this.reduxStore.dispatch((0,Re.nl)())}clear(){const T=this.reduxStore;T.dispatch((0,He.A)("",!0)),T.dispatch((0,_.hx)(!0)),this.settings.matchAllQuery===!0?this.matchAllQuery("top"):T.dispatch((0,re.AX)("top"))}registerHandlebarsHelper(T,M){(0,C.g3)(T,M)}registerHandlebarsPartial(T,M){(0,C.bp)(T,M)}}},4922:function(p,s,t){function v(H,N,Q){return N in H?Object.defineProperty(H,N,{value:Q,enumerable:!0,configurable:!0,writable:!0}):H[N]=Q,H}function r(H,N){var Q=Object.keys(H);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(H);N&&(se=se.filter(function(le){return Object.getOwnPropertyDescriptor(H,le).enumerable})),Q.push.apply(Q,se)}return Q}function e(H){for(var N=1;N<arguments.length;N++){var Q=arguments[N]!=null?arguments[N]:{};N%2?r(Object(Q),!0).forEach(function(se){v(H,se,Q[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Q)):r(Object(Q)).forEach(function(se){Object.defineProperty(H,se,Object.getOwnPropertyDescriptor(Q,se))})}return H}function u(H){return"Minified Redux error #"+H+"; visit https://redux.js.org/Errors?code="+H+" for the full message or use the non-minified dev environment for full errors. "}t.d(s,{N:function(){return He},G:function(){return Ie}});var _=typeof Symbol=="function"&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function i(H){if(typeof H!="object"||H===null)return!1;for(var N=H;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);return Object.getPrototypeOf(H)===N}function S(H,N,Q){var se;if(typeof N=="function"&&typeof Q=="function"||typeof Q=="function"&&typeof arguments[3]=="function")throw new Error(u(0));if(typeof N=="function"&&Q===void 0&&(Q=N,N=void 0),Q!==void 0){if(typeof Q!="function")throw new Error(u(1));return Q(S)(H,N)}if(typeof H!="function")throw new Error(u(2));var le=H,me=N,pe=[],ce=pe,ue=!1;function we(){ce===pe&&(ce=pe.slice())}function _e(){if(ue)throw new Error(u(3));return me}function je(Z){if(typeof Z!="function")throw new Error(u(4));if(ue)throw new Error(u(5));var te=!0;return we(),ce.push(Z),function(){if(te){if(ue)throw new Error(u(6));te=!1,we();var ie=ce.indexOf(Z);ce.splice(ie,1),pe=null}}}function K(Z){if(!i(Z))throw new Error(u(7));if(Z.type===void 0)throw new Error(u(8));if(ue)throw new Error(u(9));try{ue=!0,me=le(me,Z)}finally{ue=!1}for(var te=pe=ce,ie=0;ie<te.length;ie++)(0,te[ie])();return Z}return K({type:c.INIT}),(se={dispatch:K,subscribe:je,getState:_e,replaceReducer:function(Z){if(typeof Z!="function")throw new Error(u(10));le=Z,K({type:c.REPLACE})}})[_]=function(){var Z,te=je;return(Z={subscribe:function(ie){if(typeof ie!="object"||ie===null)throw new Error(u(11));function O(){ie.next&&ie.next(_e())}return O(),{unsubscribe:te(O)}}})[_]=function(){return this},Z},se}function f(){for(var H=arguments.length,N=new Array(H),Q=0;Q<H;Q++)N[Q]=arguments[Q];return N.length===0?function(se){return se}:N.length===1?N[0]:N.reduce(function(se,le){return function(){return se(le.apply(void 0,arguments))}})}var y=t(6148);const l={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var o=t(549),b=t(9369);const E={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},R=function(H,N,Q){if(H[Q.container]||(H[Q.container]={}),H[Q.container][Q.field]||(H[Q.container][Q.field]={}),H[Q.container][Q.field][Q.value]){const pe=Q.value.lastIndexOf(">"),ce=pe>-1?Q.value.slice(0,pe-1):null;if(delete H[Q.container][Q.field][Q.value],ce&&(se=H[Q.container][Q.field],le=ce,!(Object.keys(se).filter(function(ue){return ue.indexOf(le+" >")>-1}).length>0))){const ue=N.indexOf(ce);ue>-1&&N.splice(ue,1)}}else{H[Q.container][Q.field][Q.value]="true";for(let ce in H[Q.container])for(let ue in H[Q.container][ce])ue.indexOf(Q.value+" >")===0&&delete H[Q.container][ce][ue];N=N.filter(ce=>ce.indexOf(Q.value+" > ")!==0);const pe=Q.value.split(" > ").reduce((ce,ue)=>{const we=ce[ce.length-1],_e=we?we+" > "+ue:ue;return _e!==Q.value&&ce.push(_e),ce},[]);for(let ce in H[Q.container])for(let ue in H[Q.container][ce])pe.indexOf(ue)!==-1&&delete H[Q.container][ce][ue];N=N.filter(ce=>pe.indexOf(ce)===-1).concat(pe)}var se,le;const me=N.indexOf(Q.value);return me>-1&&N.splice(me,1),{activeHierarchicalFacetState:H,indeterminateHierarchicalFacets:N}};var k=t(6993);const P={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null};var F=t(5756);const U={page:1};var L=t(479),B=t(1944);const C={started:!1,keyword:null,results:{},loading:!1,searchResultsPageUrl:null};var D=t(4826);const G={pendingSegments:[]};var X=t(6353);const z={field:["relevance"],order:[X.ER]},q={};var V=t(6843);const J={fieldStats:{}};var re=t(878);const fe={container:null,recommendType:null,results:null};var Ee=function(H){for(var N=Object.keys(H),Q={},se=0;se<N.length;se++){var le=N[se];typeof H[le]=="function"&&(Q[le]=H[le])}var me,pe=Object.keys(Q);try{(function(ce){Object.keys(ce).forEach(function(ue){var we=ce[ue];if(we(void 0,{type:c.INIT})===void 0)throw new Error(u(12));if(we(void 0,{type:c.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(u(13))})})(Q)}catch(ce){me=ce}return function(ce,ue){if(ce===void 0&&(ce={}),me)throw me;for(var we=!1,_e={},je=0;je<pe.length;je++){var K=pe[je],Z=Q[K],te=ce[K],ie=Z(te,ue);if(ie===void 0)throw ue&&ue.type,new Error(u(14));_e[K]=ie,we=we||ie!==te}return(we=we||pe.length!==Object.keys(ce).length)?_e:ce}}({autocomplete:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case y.VW:let Q=[...H.pendingRequests];return Q.indexOf(N.jsonKey)===-1&&Q.push(N.jsonKey),Object.assign({},H,{pendingRequests:Q,dropRendering:!1});case y.vT:return Object.assign({},H,{suggestions:[],activeSuggestionIndex:null});case y.nn:return Object.assign({},H,{customFields:[],activeSuggestionIndex:null});case y.KR:let se=[...H.pendingRequests];return se.indexOf(y.Pf)!==-1&&se.splice(se.indexOf(y.Pf),1),Object.assign({},H,{keyword:N.keyword,pendingRequests:se,suggestions:N.results.suggestions,activeSuggestionIndex:null,visible:!0});case y.kw:let le=[...H.pendingRequests];return le.indexOf(y.Xr)!==-1&&le.splice(le.indexOf(y.Xr),1),Object.assign({},H,{pendingRequests:le,customFields:N.results.autocomplete,activeSuggestionIndex:null,visible:!0});case y.Km:return Object.assign({},H,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case y.p3:const me=Object.assign({},H.searchResults);me[N.jsonKey]=N.results.hits;const pe=Object.assign({},H.searchResultsStats);N.appendResults===!0&&H.searchResults[N.jsonKey]?me[N.jsonKey]=[...H.searchResults[N.jsonKey],...N.results.hits]:(pe[N.jsonKey]||(pe[N.jsonKey]={}),pe[N.jsonKey].total_hits=N.results.total_hits,pe[N.jsonKey].processing_time_ms=N.results.processing_time_ms);let ce=[...H.pendingRequests];return ce.indexOf(N.jsonKey)!==-1&&ce.splice(ce.indexOf(N.jsonKey),1),Object.assign({},H,{keyword:N.keyword,pendingRequests:ce,searchResults:me,searchResultsStats:pe,visible:!0,appendResults:N.appendResults===!0});case y.GB:return Object.assign({},H,{visible:!1,activeSuggestionIndex:null});case y.B5:return Object.assign({},H,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case y.h$:return Object.assign({},H,{visible:!0});case y.FJ:return Object.assign({},H,{hideAutomatically:N.hideAutomatically});case y.d5:return Object.assign({},H,{activeSuggestionIndex:N.index,setSuggestionToSearchField:N.setSuggestionToSearchField});case y.hx:let ue=H.activeSuggestionIndex;if(H.suggestions.length&&H.customFields.length)ue=null;else{const we=H.suggestions.length?"suggestions":"customFields";N.direction===y.Jd?ue===null&&H[we].length>0?ue=0:ue===H[we].length-1?ue=null:ue+=1:N.direction===y.il&&(ue===null&&H[we].length>0?ue=H[we].length-1:ue===0?ue=null:ue-=1)}return Object.assign({},H,{visible:!0,activeSuggestionIndex:ue,setSuggestionToSearchField:!0});default:return H}},filters:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case o.XI:let Q=H.allAvailableFilters.slice();if(N.filterObj.type===b.FILTER_TYPE.RANGE){let _e={};_e[N.filterObj.field]={label:N.filterObj.labelShort?N.filterObj.labelShort:N.filterObj.label},Q.push(_e)}else if(N.filterObj.options){const _e=Object.assign({},N.filterObj.options);Q.push(_e)}return Object.assign({},H,{allAvailableFilters:Q});case o.CY:let se=Object.assign({},H.activeFilters);return se[N.filterName]?delete se[N.filterName]:se[N.filterName]=N.value,Object.assign({},H,{activeFilters:se,refreshSearch:N.refreshSearch!==!1,targetFacetGroup:null});case o.Uj:let le=Object.assign({},H.activeRangeFilters);return le[N.field]={},N.from!==null&&(le[N.field].gte=N.from),N.to!==null&&(le[N.field].lte=N.to),N.from===null&&N.to===null&&delete le[N.field],Object.assign({},H,{activeRangeFilters:le,refreshSearch:!0});case o.vj:return Object.assign({},H,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:N.refreshSearch!==!1,targetFacetGroup:N.byActiveFilterComponent?"component.activeFilters":null});case o.Tv:return Object.assign({},H,{activeRangeFacets:{},refreshSearch:N.refreshSearch!==!1,setHistory:N.setHistory});case o.uR:return Object.assign({},H,{activeFilters:N.json||{},refreshSearch:!1});case o.VN:return Object.assign({},H,{activeFacets:N.json||{},refreshSearch:!1});case o.JS:return Object.assign({},H,{activeRangeFacets:Object.assign({},H.activeRangeFacets,N.json),refreshSearch:!!N.refreshSearch,targetFacetGroup:N.field});case o.cl:let me=Object.assign({},H.activeFacets);return me[N.field]||(me[N.field]={}),me[N.field][N.value]?delete me[N.field][N.value]:me[N.field][N.value]="true",me.v=me.v?me.v+1:1,Object.assign({},H,{activeFacets:me,refreshSearch:N.refreshSearch!==!1,targetFacetGroup:N.field});case o.QW:let pe=Object.assign({},H.activeHierarchicalFacets),ce=H.indeterminateHierarchicalFacets.slice();const ue=R(pe,ce,N);return pe=ue.activeHierarchicalFacetState,ce=ue.indeterminateHierarchicalFacets,pe.v=pe.v?pe.v+1:1,Object.assign({},H,{activeHierarchicalFacets:pe,indeterminateHierarchicalFacets:ce,refreshSearch:N.refreshSearch!==!1,targetFacetGroup:N.field});case o.IS:let we=Object.assign({},H.activeRangeFacets);return we[N.field]||(we[N.field]={}),we[N.field][N.key]?delete we[N.field][N.key]:we[N.field][N.key]={gte:N.values.min,lt:N.values.max,key:N.key},we.v=we.v?we.v+1:1,Object.assign({},H,{activeRangeFacets:we,refreshSearch:N.refreshSearch!==!1,targetFacetGroup:N.byActiveFilterComponent?"component.activeFilters":N.field});default:return H}},keyword:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,N=arguments.length>1?arguments[1]:void 0;return N.type===k.Q?Object.assign({},H,{value:N.value,skipAutocomplete:N.skipAutocomplete===!0,searchFieldContainerId:N.searchFieldContainerId,setSearchFieldValue:N.setSearchFieldValue}):H},pagination:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,N=arguments.length>1?arguments[1]:void 0;return N.type===F.N?Object.assign({},H,{page:N.page}):H},search:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case B.d3:return Object.assign({},H,{started:!0});case B.y$:return Object.assign({},H,{keyword:null,results:{},loading:!1,dropReturningResults:!0});case B.xE:return Object.assign({},H,{loading:!0,dropReturningResults:!1});case B.mY:if(H.started||console.log("WARNING: AddSearch UI not started with the start() function"),H.dropReturningResults===!0)return H;if(N.keyword.indexOf(L.H)===0)return Object.assign({},H,{loading:!1});let Q=N.results;if(N.appendResults===!0&&H.results.hits){const se=[...H.results.hits,...N.results.hits];Q.hits=se}return Object.assign({},H,{keyword:N.keyword,results:Q,loading:!1,callBy:N.requestBy});case B.j2:return Object.assign({},H,{searchResultsPageUrl:N.url});default:return H}},segmentedsearch:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case D.lD:let Q=[...H.pendingSegments];return Q.indexOf(N.jsonKey)===-1&&Q.push(N.jsonKey),Object.assign({},H,{pendingSegments:Q,dropReturningResults:!1});case D.JK:if(N.keyword.indexOf(L.H)===0||H.dropReturningResults===!0)return H;const se={};se[N.jsonKey]=N.results;let le=[...H.pendingSegments];return le.indexOf(N.jsonKey)!==-1&&le.splice(le.indexOf(N.jsonKey),1),Object.assign({},H,se,{pendingSegments:le});case D.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return H}},sortby:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,N=arguments.length>1?arguments[1]:void 0;return N.type===X.O0?Object.assign({},H,{field:typeof N.field=="string"?N.field.split(","):N.field,order:typeof N.order=="string"?N.order.split(","):N.order}):H},fieldstats:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case V.IJ:return Object.assign({},H,{fieldStats:N.fieldStats,callBy:N.callBy});case V.nb:return Object.assign({},H,{fieldStats:{}});default:return H}},recommendation:function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fe,N=arguments.length>1?arguments[1]:void 0;switch(N.type){case re.iM:case re.OU:return Object.assign({},H,{container:N.container,recommendType:N.recommendType,results:N.results});case re.KE:return Object.assign({},fe);default:return H}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:q}});function xe(H){return function(N){var Q=N.dispatch,se=N.getState;return function(le){return function(me){return typeof me=="function"?me(Q,se,H):le(me)}}}}var Be=xe();Be.withExtraArgument=xe;var Re=Be;function He(H){const N={configuration:H};let Q=f;return H.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(Q=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),S(Ee,N,Q(function(){for(var se=arguments.length,le=new Array(se),me=0;me<se;me++)le[me]=arguments[me];return function(pe){return function(){var ce=pe.apply(void 0,arguments),ue=function(){throw new Error(u(15))},we={getState:ce.getState,dispatch:function(){return ue.apply(void 0,arguments)}},_e=le.map(function(je){return je(we)});return ue=f.apply(void 0,_e)(ce.dispatch),e(e({},ce),{},{dispatch:ue})}}}(Re)))}function Ie(H,N,Q){let se={};function le(){const pe=H.getState()[N];JSON.stringify(pe)!==JSON.stringify(se[N])&&(se[N]=pe,Q(se[N]))}let me=H.subscribe(le);return le(),me}},6351:function(p,s,t){t.d(s,{$P:function(){return b},ME:function(){return o},b8:function(){return e},d_:function(){return a},mh:function(){return f}});const v=2500;let r=null;function e(k){r=k}function u(k){r&&r(k)}let _=!0;function a(k){_=k}let c=null,i=null,S=!1;function f(k,P,F,U){if(_===!1)return;const L="search";c&&clearTimeout(c),c=setTimeout(()=>{P!==i&&(k.sendStatsEvent(L,P,{numberOfResults:F}),u({action:L,keyword:P,numberOfResults:F,processingTimeMs:U}),i=P,S=!0)},v)}let y=null,l=null;function o(k,P){_===!1||!P||P.length<1||(y&&clearTimeout(y),y=setTimeout(()=>{k!==l&&(P.forEach(F=>F.client.sendStatsEvent("search",k,{numberOfResults:F.numberOfResults})),l=k,S=!0)},v))}function b(k,P,F){if(P&&P.length>0)for(let U=0;U<P.length;U++)P[U].addEventListener("keyup",L=>{L.keyCode===13&&R(L,k,F)}),P[U].addEventListener("pointerdown",L=>{L.button&&L.buttons&&L.button===L.buttons||R(L,k,F)})}function E(k){const P=k.getAttribute("data-analytics-click");return k.nodeName==="BODY"||k.nodeName==="body"?null:P||E(k.parentNode)}function R(k,P,F){if(_===!1)return;const U=E(k.target),L=function(C,D,G){if(D&&D.hits){const X=((D.page||1)-1)*C;for(let z=0;z<D.hits.length;z++)if(D.hits[z].id===G)return X+(z+1)}return 0}(P.getSettings().paging.pageSize,F,U),B=P.getSettings().keyword;if(P.sendStatsEvent("click",B,{documentId:U,position:L}),u({action:"click",keyword:B,documentId:U,position:L}),S===!1){const C=F?F.total_hits:0,D=F?F.processing_time_ms:0;P.sendStatsEvent("search",B,{numberOfResults:C}),u({action:"search",keyword:B,numberOfResults:C,processingTimeMs:D})}}},4379:function(p,s,t){function v(e,u,_,a){const c=e.querySelectorAll("["+u+"]");for(let i=0;i<c.length;i++)c[i].addEventListener(_,S=>{a(S.target.getAttribute(u))})}function r(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}t.d(s,{A:function(){return r},h:function(){return v}})},3923:function(p,s,t){t.d(s,{GK:function(){return a},bp:function(){return f},g3:function(){return S},ud:function(){return i}});var v=t(2334),r=t.n(v),e=t(261),u=t.n(e),_=t(7435);function a(y,l){const o=y.categories||[];let b="",E=1;l=(0,_.y)(l);do b=o.length>E?o[E]:"",b=b.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),E++;while(b.length<3&&o.length>E);return l&&l[b]?l[b]:b.replace(/[-_]+/g," ")}let c=null;function i(){S("equals",(y,l,o)=>y+""==l+""?o.fn(this):o.inverse(this)),S("not",(y,l,o)=>y+""!=l+""?o.fn(this):o.inverse(this)),S("gt",(y,l,o)=>y>l?o.fn(this):o.inverse(this)),S("lt",(y,l,o)=>y<l?o.fn(this):o.inverse(this)),S("or",(y,l,o)=>y||l?o.fn(this):o.inverse(this)),S("formatPrice",(y,l,o)=>{if(y===void 0||typeof y!="number"||!l||!o)return"";try{if(window.Intl&&!c&&(c=new Intl.NumberFormat(l,{style:"currency",currency:o,minimumFractionDigits:2})),c)return c.format(y)}catch{}return y/100+" "+o})}function S(y,l){r().registerHelper(y,l),u().registerHelper(y,l)}function f(y,l){r().registerPartial(y,l),u().registerPartial(y,l)}},4903:function(p,s,t){t.d(s,{Dh:function(){return S},I5:function(){return y},IR:function(){return E},lG:function(){return R},sh:function(){return a}});var v=t(479),r=(t(1944),t(6993)),e=t(5756),u=t(549),_=t(6353);const a={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},c=1500;let i=null;function S(k,P,F,U){const L=U.getState();L&&L.configuration&&L.configuration.updateBrowserHistory===!1||(F?(i&&clearTimeout(i),i=setTimeout(()=>{f(k,P)},c)):f(k,P))}function f(k,P){if(k===a.SEARCH&&P&&P.indexOf(v.H)===0)return;let F=window.location.href;F.indexOf("#")!==-1&&(F=F.substring(0,F.indexOf("#")));const U=window.location.hash||"",L=o(F);k===a.PAGE&&P==1||k===a.SEARCH&&P==v.Z?delete L[k]:k&&P!==null&&P!==""?L[k]=P:k&&delete L[k];let B=F;F.indexOf("?")!==-1&&(B=F.substring(0,F.indexOf("?"))),JSON.stringify(L)!==JSON.stringify({})&&(B=B+"?"+function(C){let D="";for(let G in C)if(C.hasOwnProperty(G)){D!==""&&(D+="&");let X="";if(G==="addsearchUnrelatedParams"){D+=C[G].split("&").join("&");continue}C[G]!==null&&C[G]!==void 0&&G!=="addsearchUnrelatedParams"&&(X="="+encodeURIComponent(C[G])),D=D+G+X}return D}(L)),B+=U,history.state===null?history.replaceState(L,"",B):JSON.stringify(history.state)!==JSON.stringify(L)&&history.pushState(L,"",B)}function y(k,P,F,U,L,B){const C=o(window.location.href);l(k,P,C,F,U,!1,B),window.onpopstate=D=>{const G=o(window.location.href);l(k,P,G,F,U,L,B)}}function l(k,P,F,U,L,B,C){let D=!1;if(F[a.FILTERS]){const G=b(F[a.FILTERS]);P.dispatch((0,u.eu)(G)),D=!0}if(F[a.FACETS]){const G=b(F[a.FACETS]);P.dispatch((0,u.Xh)(G)),D=!0}if(F[a.RANGE_FACETS]){const G=b(F[a.RANGE_FACETS]);P.dispatch((0,u.ks)(G)),D=!0}if(D){const G=U(P.getState().filters,C);k.setFilterObject(G)}else P.dispatch((0,u.eu)(null)),P.dispatch((0,u.Xh)(null)),k.setFilterObject(C||null);if(F[a.SORTBY]){const G=b(F[a.SORTBY]);P.dispatch((0,_.Ul)(k,G.field,G.order))}if(F[a.PAGE])P.dispatch((0,e.I)(k,parseInt(F[a.PAGE],10),null,P));else{const G=k.getSettings().paging;P.dispatch((0,e.I)(k,G.page,null,P))}if(F[a.SEARCH]){const G=decodeURIComponent(F[a.SEARCH]);P.dispatch((0,r.A)(G,!0,null,!0)),L(G)}else B===!0&&(P.dispatch((0,r.A)(v.Z,!0,null,!0)),L(v.Z))}function o(k){if(k.indexOf("?")===-1)return{};let P=k.substring(k.indexOf("?")+1);if(P==="")return{};P.indexOf("#")!==-1&&(P=P.substring(0,P.indexOf("#")));let F={};const U=P.split("&"),L=U.filter(C=>C.indexOf(a.SEARCH)===-1&&C.indexOf(a.PAGE)===-1&&C.indexOf(a.SORTBY)===-1&&C.indexOf(a.FILTERS)===-1&&C.indexOf(a.FACETS)===-1&&C.indexOf(a.RANGE_FACETS)===-1),B=U.filter(C=>!L.includes(C));return L.length&&(F.addsearchUnrelatedParams=L.join("&")),B.forEach(C=>{const D=C.split("=");if(D[0]&&D[0].length>0){let G=null;D.length>1&&(G=D[1]||"",G=G.replace(/\+/g,"%20"),G=decodeURIComponent(G)),F[D[0]]=G}}),F}function b(k){try{return JSON.parse(k)}catch{}return null}function E(k){return Object.keys(k).length>0?(delete k.v,JSON.stringify(k)):null}function R(k,P){k.indexOf("?")===-1?window.location.href=k+"?"+a.SEARCH+"="+encodeURIComponent(P):window.location.href=k+"&"+a.SEARCH+"="+encodeURIComponent(P)}},7435:function(p,s,t){function v(e){return!e||Object.keys(e).length===0}function r(e){if(e)return Object.keys(e).reduce((u,_)=>(u[_.toLowerCase()]=e[_],u),{})}t.d(s,{I:function(){return v},y:function(){return r}})},9491:function(p){function s(t,v){if(t==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),e=1;e<arguments.length;e++){var u=arguments[e];if(u!=null)for(var _=Object.keys(Object(u)),a=0,c=_.length;a<c;a++){var i=_[a],S=Object.getOwnPropertyDescriptor(u,i);S!==void 0&&S.enumerable&&(r[i]=u[i])}}return r}p.exports={assign:s,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:s})}}},3787:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return` <div class="item">
82
- <span>`+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):i)+`</span>
83
- <button data-type="`+l(typeof(i=(i=o(u,"type")||(e!=null?o(e,"type"):e))!=null?i:f)===y?i.call(S,{name:"type",hash:{},data:a,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):i)+'" data-name="'+l(typeof(i=(i=o(u,"name")||(e!=null?o(e,"name"):e))!=null?i:f)===y?i.call(S,{name:"name",hash:{},data:a,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):i)+'" data-value="'+l(typeof(i=(i=o(u,"value")||(e!=null?o(e,"value"):e))!=null?i:f)===y?i.call(S,{name:"value",hash:{},data:a,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):i)+`"
84
- `+((c=o(u,"if").call(S,e!=null?o(e,"rangeMin"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:6,column:14},end:{line:6,column:66}}}))!=null?c:"")+`
85
- `+((c=o(u,"if").call(S,e!=null?o(e,"rangeMax"):e,{name:"if",hash:{},fn:r.program(4,a,0),inverse:r.noop,data:a,loc:{start:{line:7,column:8},end:{line:7,column:60}}}))!=null?c:"")+`
86
- `+((c=o(u,"if").call(S,e!=null?o(e,"container"):e,{name:"if",hash:{},fn:r.program(6,a,0),inverse:r.noop,data:a,loc:{start:{line:8,column:8},end:{line:8,column:62}}}))!=null?c:"")+`
87
- `+((c=o(u,"if").call(S,e!=null?o(e,"confFields"):e,{name:"if",hash:{},fn:r.program(8,a,0),inverse:r.noop,data:a,loc:{start:{line:9,column:8},end:{line:9,column:66}}}))!=null?c:"")+` >&#215;</button>
81
+ `;var r=n(2334),e=n.n(r),d=n(4922),C=n(4379),l=n(878),a=n(4128);const o=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,v=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class f{constructor(h,u,_,k){this.client=h,this.conf=_,this.reduxStore=u,k.push(_),(0,C.A)(_.containerId)&&(0,d.G)(this.reduxStore,"recommendation",A=>{A.container===_.containerId&&this.render(A)})}render(h){const u=h.results||{};u.blockId=this.conf.blockId;let _,k=this.conf.template||y;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(u):(k=this.conf.template||y,_=e().compile(k)(u)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,l.T7)()))}}},8909:function(b,c,n){n.d(c,{SORTBY_TYPE:function(){return u},A:function(){return h}});var y=n(2334),r=n.n(y),e=n(6353),d=n(1944),C=n(5756),l=n(4922),a=n(4379),o=n(6868),v=n.n(o),f=n(9462),g=n.n(f);class h{constructor(k,A,I){this.client=k,this.conf=I,this.reduxStore=A,this.conf.options.forEach(P=>{P.sortBy=typeof P.sortBy=="string"?P.sortBy.split(","):P.sortBy,P.order=typeof P.order=="string"?P.order.split(","):P.order}),(0,a.A)(I.containerId)&&(0,l.G)(this.reduxStore,"sortby",P=>this.render(P))}onChangeSelect(k){const A=k.options[k.selectedIndex],I=A.getAttribute("data-field"),P=A.getAttribute("data-order");this.dispatchAndRefresh(I,P)}onChangeRadio(k){const A=k.target.getAttribute("data-field"),I=k.target.getAttribute("data-order");this.dispatchAndRefresh(A,I)}dispatchAndRefresh(k,A){const I=k.split(","),P=A.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,I,P,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const N=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,N,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(k,A){return k.length===A.length&&k.every((I,P)=>I===A[P])}render(k){const{field:A,order:I}=k;let P=null;P=this.conf.type===u.RADIO_GROUP?v():g();let N,q=Object.assign({},this.conf);if(q.options.forEach(D=>{this.arraysMatch(D.sortBy,A)&&this.arraysMatch(D.order,I)?D.active=!0:D.active=!1}),N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(q):this.conf.template?r().compile(this.conf.template)(q):P(q),this.renderedHtml===N)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=N,this.renderedHtml=N,this.conf.type===u.RADIO_GROUP){const D=j.querySelectorAll("input");for(let L=0;L<D.length;L++)D[L].onclick=V=>this.onChangeRadio(V)}else if(j.querySelector("select").onchange=D=>this.onChangeSelect(D.target),k){const D=j.getElementsByTagName("option");for(let L=0;L<D.length;L++)if(D[L].getAttribute("data-field")===A&&D[L].getAttribute("data-order")===I){j.querySelector("select").value=D[L].text;break}}}}const u={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},4933:function(b,c,n){n.d(c,{Z:function(){return Tt},H:function(){return Kn},default:function(){return Al}});var y=n(9491),r=n.n(y),e=n(2334),d=n.n(e),C=n(549),l=n(4379),a=n(4922),o=n(3787),v=n.n(o);const f="FILTER",g="RANGE_FILTER",h="FACET",u="RANGE_FACET",_="HIERARCHICAL_FACET";class k{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"filters",R=>this.render(R))}getFilterLabel(x,E){for(let T=0;T<E.length;T++)if(E[T][x])return E[T][x].label}emptyIfNull(x){return x??""}render(x){let E=[];for(let re in x.activeFilters)E.push({type:f,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ce=x.activeRangeFilters[re];E.push({type:g,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ce.gte)+"-"+this.emptyIfNull(ce.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var T in x.activeFacets[re])E.push({name:re,type:h,value:T,label:T.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ce in x.activeHierarchicalFacets[re])for(let ve in x.activeHierarchicalFacets[re][ce])E.push({name:ce,type:_,container:re,value:ve,label:ve});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ce in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ce)&&E.push({name:re,type:u,value:ce,label:ce,rangeMin:x.activeRangeFacets[re][ce].gte,rangeMax:x.activeRangeFacets[re][ce].lte});const R={active:E,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(R):this.conf.template?d().compile(this.conf.template)(R):v()(R),this.renderedHtml===M)return;const $=document.getElementById(this.conf.containerId);$.innerHTML=M,this.renderedHtml=M;const G=$.querySelectorAll("[data-type]");for(let re=0;re<G.length;re++)G[re].addEventListener("click",ce=>this.handleFilterClick(ce));const te=$.querySelector("[data-clearall]");te&&te.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const E=x.target.getAttribute("data-type"),T=x.target.getAttribute("data-name"),R=x.target.getAttribute("data-value"),M=x.target.getAttribute("data-container"),$=x.target.getAttribute("data-conf-fields")?x.target.getAttribute("data-conf-fields").split(","):[],G=x.target.getAttribute("data-range-min"),te=x.target.getAttribute("data-range-max");if(E===f)this.reduxStore.dispatch((0,C.VH)(T,R,!0));else if(E===g)this.reduxStore.dispatch((0,C.u3)(T,null,null));else if(E===h)this.reduxStore.dispatch((0,C.II)(T,R));else if(E===_)this.reduxStore.dispatch((0,C.Ni)(T,M,$,R,!0));else if(E===u){const re={min:G,max:te};this.reduxStore.dispatch((0,C.jU)(T,re,R,!0,!0))}}}var A=n(6510),I=n(8526),P=n(1353),N=n.n(P);class q{constructor(x,E,T,R){this.client=x,this.reduxStore=E,this.conf=T;var M=["component.loadMore","component.pagination","component.sortby"];(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",$=>{var G,te=this.reduxStore.getState().filters.activeFacets;if(!($.loading||M.indexOf($.callBy)>-1))if((G=te[this.conf.field])&&Object.keys(G).length!==0&&this.conf.advancedSticky){var re=(0,I.a)(this.reduxStore.getState().filters,R,this.conf.field);if($.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ce=>{this.render(ce,!0)});else{const ce=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ce)}}else this.render($)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,E){if(x.loading)return;const T=this.conf.field,R=E?x:x.results;let M=[];R&&R.facets&&R.facets[T]&&(M=R.facets[T]);const $=this.getActiveFacets(T);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===x.keyword&&this.stickyFacets&&$.length!==0?M=this.stickyFacets:(this.keyword=x.keyword,this.stickyFacets=M)),this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):N()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("input");for(let ve=0;ve<ce.length;ve++){let ke=ce[ve];ke.checked=$.indexOf(ke.value)!==-1,ke.onchange=De=>{this.setFilter(De.target.value,De.target.checked)}}}getActiveFacets(x){let E=[];const T=this.reduxStore.getState().filters.activeFacets;if(T[x])for(let R in T[x])E.push(R);return E}updateCheckboxStates(x){const E=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let T=0;T<E.length;T++){let R=E[T];R.checked=x.indexOf(R.value)!==-1}}}var j=n(4278),D=n.n(j),L=n(3923),V=n(2009),J=n.n(V);class se{constructor(x,E,T,R){function M(te,re){let ce=!0;return te&&re.forEach(ve=>{var ke;(ke=te[ve])&&Object.keys(ke).length!==0&&(ce=!1)}),ce}this.client=x,this.reduxStore=E,this.conf=T;var $=["component.loadMore","component.pagination","component.sortby"];const G=this.conf.template_subHierarchicalFacetsTemplate||J();(0,L.bp)("subHierarchicalFacetsTemplate",G),(0,L.g3)("validateOpenState",function(te){return E.getState().filters.openedHierarchicalFacetGroups.indexOf(te)===-1}),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",te=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(te.loading||$.indexOf(te.callBy)>-1))if(M(re,this.conf.fields)||!te.results.hits.length)this.render(te);else{var ce=(0,I.a)(this.reduxStore.getState().filters,R,this.conf.fields);if(this.conf.fields.indexOf(te.callBy)===-1)x.fetchCustomApi(this.conf.field,ce,ke=>{this.render(ke,!0)});else{var ve=document.getElementById(this.conf.containerId);this._updateCheckBoxes(ve,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(x,E){this.reduxStore.dispatch((0,C.Ni)(E,this.conf.containerId,this.conf.fields,x,!0))}render(x,E){if(x.loading)return;const T=this.conf.fields,R=E?x:x.results;let M=[];R&&R.hierarchicalFacets&&R.hierarchicalFacets[T[0]]&&(M=R.hierarchicalFacets[T[0]],M=M.map(ve=>(ve.field=ve.field.replace("hierarchical_facet.",""),ve)));const $=this.getActiveFacets(T,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):D()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te,this._updateCheckBoxes(re,$,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ce=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let ve=0;ve<ce.length;ve++)ce[ve].addEventListener("click",()=>{ce[ve].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ce[ve].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,E){let T=[];const R=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(R[E]&&R[E][M])for(let $ in R[E][M])T.push($)}),T}_toggleFacetGroupOpenState(x){const E=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,T=E.indexOf(x);T===-1?E.push(x):E.splice(T,1)}_updateCheckBoxes(x,E,T,R){const M=x.getElementsByTagName("input");for(let $=0;$<M.length;$++){let G=M[$];G.checked=E.indexOf(G.value)!==-1,G.indeterminate=R.indexOf(G.value)>-1,T&&(G.onchange=te=>{this.setFilter(te.target.value,te.target.getAttribute("data-field"))})}}}var ne=n(1990),Y=n(9369),W=n(3816),X=n(5756),ue=n(1944),xe=n(4245),Re=n.n(xe);class Oe{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),E=x.search.results.page||1,T=this.client.getSettings().paging.pageSize,R=x.search.results.total_hits||0,M=Math.ceil(R/T),$=function(ve,ke){if(!ke||ke<2||!ve||ve>ke)return null;for(var De=[],Ue=0;Ue<ke;Ue++)De.push(Ue+1);if(ke<=9)return De;if(ke>9&&ve<7)return De.slice(0,9);if(ke>9&&ve>=ke-3)return De.slice(ke-9);var St=De.indexOf(ve);return St-4>=0&&St+5<=De.length?De.slice(St-4,St+5):null}(E,M),G={currentPage:E,lastPage:$?$[$.length-1]:0,totalPages:M,pages:$};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):Re()(G),this.renderedHtml===te)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("button");for(let ve=0;ve<ce.length;ve++)ce[ve].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const E=x.target;let T=null;E.getAttribute("data-page")==="previous"?T=this.reduxStore.getState().pagination.page-1:E.getAttribute("data-page")==="next"?T=(this.reduxStore.getState().pagination.page||1)+1:T=parseInt(E.getAttribute("data-page"),10),this.reduxStore.dispatch((0,X.I)(this.client,T,null,this.reduxStore));const R=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ue.EF)(this.client,R,M,null,null,this.reduxStore,null,"component.pagination"))}}var Ce=n(8505),He=n.n(Ce),Fe=n(6148),Ke=n(6993),Me=n(4903);const We=40,z=38,H=13,oe=8,de=46;class be{constructor(x,E,T,R,M){this.client=x,this.reduxStore=E,this.conf=T,this.matchAllQuery=R,this.minLengthToShowResults=T.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const $=T.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:$})),T.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",G=>{G.setSearchFieldValue&&this.updateValueOnAllBoundFields(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdateBoundField(G))):(0,l.A)(T.containerId)&&((0,a.G)(this.reduxStore,"keyword",G=>{G.searchFieldContainerId!==this.conf.containerId&&G.searchFieldContainerId!==null||this.render(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdate(G)))}updateValueOnAllBoundFields(x){for(var E=0;E<this.boundFields.length;E++)this.boundFields[E].value=x}onAutocompleteUpdate(x){if((x.suggestions.length>0||x.customFields.length>0)&&x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null&&x.setSuggestionToSearchField){const E=(x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex]).value;this.render(E)}else x.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(x){if(x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null){const E=x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex];if(!E)return;const T=E.value;this.updateValueOnAllBoundFields(T)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,E,T){T||this.reduxStore.dispatch((0,Fe.dC)());let R=E;R===""&&this.matchAllQuery&&(R=Tt),R.indexOf(Kn)!==0&&this.reduxStore.dispatch((0,X.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(R,!1,T,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(x){const E=this.reduxStore.getState().search.searchResultsPageUrl;E&&this.conf.ignoreSearchResultsPageUrl!==!0&&x&&x.length>0?(0,Me.lG)(E,x):this.executeSearch(this.client,x,!1)}addEventListenersToField(x){x.oninput=E=>this.oninput(E),x.onkeypress=E=>this.onkeypress(E),x.onkeyup=E=>this.onkeyup(E),x.onfocus=E=>this.onfocus(E),x.onblur=E=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(x){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(x.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(x){const E=this.reduxStore;x===""&&this.matchAllQuery&&(x=Tt),E.dispatch((0,Fe.dC)()),E.dispatch((0,Ke.Ai)(x,!0,null,!1)),this.redirectOrSearch(x)}render(x){const E=document.getElementById(this.conf.containerId);E.querySelector("input")?x!==null&&x!==Tt&&E.querySelector("input").value!==x&&(E.querySelector("input").value=x):(this.conf.precompiledTemplate?E.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?E.innerHTML=d().compile(this.conf.template)(this.conf):E.innerHTML=He()(this.conf),this.field=E.querySelector("input"),x!==Tt&&(this.field.value=x),this.addEventListenersToField(this.field),E.querySelector("button")&&(E.querySelector("button").onclick=()=>{let T=this.field.value;this.handleSubmitKeyword(T)}),E.querySelector("form")&&(E.querySelector("form").onsubmit=T=>T.preventDefault()),this.handleAutoFocus(this.field))}bindContainer(){this.boundFields=document.querySelectorAll(this.conf.selectorToBind);for(var x=0;x<this.boundFields.length;x++)this.addEventListenersToField(this.boundFields[x]),this.boundFields[x].form&&(this.boundFields[x].form.onsubmit=E=>{E.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const E=document.querySelector(this.conf.buttonSelector);E.type==="submit"&&(E.type="button"),E.onclick=()=>{let T=this.boundFields[0].value;this.handleSubmitKeyword(T)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const E=this.reduxStore;let T=x.target.value;T===""&&this.matchAllQuery&&(T=Tt),x.keyCode!==oe&&x.keyCode!==de||E.dispatch((0,Fe.XD)(null,!1));const R=this.conf.ignoreAutocomplete===!0;E.dispatch((0,Ke.Ai)(T,R,this.conf.containerId)),E.dispatch((0,Fe.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,T,!0)}onkeyup(x){const E=this.reduxStore;x.keyCode===We?E.dispatch((0,Fe.C0)(Fe.Jd)):x.keyCode===z&&E.dispatch((0,Fe.C0)(Fe.il))}onkeypress(x){if(x.keyCode===H){const E=x.target.value;this.handleSubmitKeyword(E)}}onfocus(x){x.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,Ke.Ai)(Tt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Kn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Fe.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Fe.dC)())}}var we=n(6351),Te=n(6873),me=n.n(Te),ye=n(303),Se=n.n(ye),Be=n(2123),Z=n.n(Be),le=n(4111),ie=n.n(le);class fe{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E;const R=this.conf.template_resultcount||Z(),M=this.conf.template_image||ie();(0,L.bp)("numberOfResultsTemplate",R),(0,L.bp)("searchResultImageTemplate",M),(0,L.g3)("removeTrailingQueriesFromUrl",G=>{if(G)return G.replace(/\?.*$/,"")});const $=this.conf.categorySelectionFunction||L.GK;(0,L.g3)("selectCategory",G=>$(G,this.conf.categoryAliases)),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,E=x.results||{};let T;if(E.resultcount=E.hits&&this.conf.showNumberOfResults!==!1,E.keyword=x.keyword,T=E.hits&&E.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(E):this.conf.template_noresults?d().compile(this.conf.template_noresults)(E):Se()(E):this.conf.precompiledTemplate?this.conf.precompiledTemplate(E):this.conf.template?d().compile(this.conf.template)(E):me()(E),this.renderedHtml===T)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=T,this.renderedHtml=T,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=R.querySelectorAll("[data-analytics-click]");(0,we.$P)(this.client,M,E)}}function O(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let m={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function S(pe){m=pe}const F=/[&<>"']/,U=new RegExp(F.source,"g"),K=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ee=new RegExp(K.source,"g"),Ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ve=pe=>Ae[pe];function Ie(pe,x){if(x){if(F.test(pe))return pe.replace(U,Ve)}else if(K.test(pe))return pe.replace(ee,Ve);return pe}const Ge=/(^|[^\[])\^/g;function ge(pe,x){let E=typeof pe=="string"?pe:pe.source;x=x||"";const T={replace:(R,M)=>{let $=typeof M=="string"?M:M.source;return $=$.replace(Ge,"$1"),E=E.replace(R,$),T},getRegex:()=>new RegExp(E,x)};return T}function Zt(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const Ft={exec:()=>null};function Ot(pe,x){const E=pe.replace(/\|/g,(R,M,$)=>{let G=!1,te=M;for(;--te>=0&&$[te]==="\\";)G=!G;return G?"|":" |"}).split(/ \|/);let T=0;if(E[0].trim()||E.shift(),E.length>0&&!E[E.length-1].trim()&&E.pop(),x)if(E.length>x)E.splice(x);else for(;E.length<x;)E.push("");for(;T<E.length;T++)E[T]=E[T].trim().replace(/\\\|/g,"|");return E}function Rt(pe,x,E){const T=pe.length;if(T===0)return"";let R=0;for(;R<T;){const M=pe.charAt(T-R-1);if(M!==x||E){if(M===x||!E)break;R++}else R++}return pe.slice(0,T-R)}function Qt(pe,x,E,T){const R=x.href,M=x.title?Ie(x.title):null,$=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){T.state.inLink=!0;const G={type:"link",raw:E,href:R,title:M,text:$,tokens:T.inlineTokens($)};return T.state.inLink=!1,G}return{type:"image",raw:E,href:R,title:M,text:Ie($)}}class Bt{constructor(x){ze(this,"options");ze(this,"rules");ze(this,"lexer");this.options=x||m}space(x){const E=this.rules.block.newline.exec(x);if(E&&E[0].length>0)return{type:"space",raw:E[0]}}code(x){const E=this.rules.block.code.exec(x);if(E){const T=E[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:E[0],codeBlockStyle:"indented",text:this.options.pedantic?T:Rt(T,`
82
+ `)}}}fences(x){const E=this.rules.block.fences.exec(x);if(E){const T=E[0],R=function(M,$){const G=M.match(/^(\s+)(?:```)/);if(G===null)return $;const te=G[1];return $.split(`
83
+ `).map(re=>{const ce=re.match(/^\s+/);if(ce===null)return re;const[ve]=ce;return ve.length>=te.length?re.slice(te.length):re}).join(`
84
+ `)}(T,E[3]||"");return{type:"code",raw:T,lang:E[2]?E[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):E[2],text:R}}}heading(x){const E=this.rules.block.heading.exec(x);if(E){let T=E[2].trim();if(/#$/.test(T)){const R=Rt(T,"#");this.options.pedantic?T=R.trim():R&&!/ $/.test(R)||(T=R.trim())}return{type:"heading",raw:E[0],depth:E[1].length,text:T,tokens:this.lexer.inline(T)}}}hr(x){const E=this.rules.block.hr.exec(x);if(E)return{type:"hr",raw:Rt(E[0],`
85
+ `)}}blockquote(x){const E=this.rules.block.blockquote.exec(x);if(E){let T=Rt(E[0],`
86
+ `).split(`
87
+ `),R="",M="";const $=[];for(;T.length>0;){let G=!1;const te=[];let re;for(re=0;re<T.length;re++)if(/^ {0,3}>/.test(T[re]))te.push(T[re]),G=!0;else{if(G)break;te.push(T[re])}T=T.slice(re);const ce=te.join(`
88
+ `),ve=ce.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
89
+ $1`).replace(/^ {0,3}>[ \t]?/gm,"");R=R?`${R}
90
+ ${ce}`:ce,M=M?`${M}
91
+ ${ve}`:ve;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(ve,$,!0),this.lexer.state.top=ke,T.length===0)break;const De=$[$.length-1];if((De==null?void 0:De.type)==="code")break;if((De==null?void 0:De.type)==="blockquote"){const Ue=De,St=Ue.raw+`
92
+ `+T.join(`
93
+ `),bt=this.blockquote(St);$[$.length-1]=bt,R=R.substring(0,R.length-Ue.raw.length)+bt.raw,M=M.substring(0,M.length-Ue.text.length)+bt.text;break}if((De==null?void 0:De.type)==="list"){const Ue=De,St=Ue.raw+`
94
+ `+T.join(`
95
+ `),bt=this.list(St);$[$.length-1]=bt,R=R.substring(0,R.length-De.raw.length)+bt.raw,M=M.substring(0,M.length-Ue.raw.length)+bt.raw,T=St.substring($[$.length-1].raw.length).split(`
96
+ `)}}return{type:"blockquote",raw:R,tokens:$,text:M}}}list(x){let E=this.rules.block.list.exec(x);if(E){let T=E[1].trim();const R=T.length>1,M={type:"list",raw:"",ordered:R,start:R?+T.slice(0,-1):"",loose:!1,items:[]};T=R?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=R?T:"[*+-]");const $=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);let G=!1;for(;x;){let te=!1,re="",ce="";if(!(E=$.exec(x))||this.rules.block.hr.test(x))break;re=E[0],x=x.substring(re.length);let ve=E[2].split(`
97
+ `,1)[0].replace(/^\t+/,Ur=>" ".repeat(3*Ur.length)),ke=x.split(`
98
+ `,1)[0],De=!ve.trim(),Ue=0;if(this.options.pedantic?(Ue=2,ce=ve.trimStart()):De?Ue=E[1].length+1:(Ue=E[2].search(/[^ ]/),Ue=Ue>4?1:Ue,ce=ve.slice(Ue),Ue+=E[1].length),De&&/^[ \t]*$/.test(ke)&&(re+=ke+`
99
+ `,x=x.substring(ke.length+1),te=!0),!te){const Ur=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),so=new RegExp(`^ {0,${Math.min(3,Ue-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ao=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:\`\`\`|~~~)`),lo=new RegExp(`^ {0,${Math.min(3,Ue-1)}}#`),Il=new RegExp(`^ {0,${Math.min(3,Ue-1)}}<[a-z].*>`,"i");for(;x;){const $r=x.split(`
100
+ `,1)[0];let bn;if(ke=$r,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),bn=ke):bn=ke.replace(/\t/g," "),ao.test(ke)||lo.test(ke)||Il.test(ke)||Ur.test(ke)||so.test(ke))break;if(bn.search(/[^ ]/)>=Ue||!ke.trim())ce+=`
101
+ `+bn.slice(Ue);else{if(De||ve.replace(/\t/g," ").search(/[^ ]/)>=4||ao.test(ve)||lo.test(ve)||so.test(ve))break;ce+=`
102
+ `+ke}De||ke.trim()||(De=!0),re+=$r+`
103
+ `,x=x.substring($r.length+1),ve=bn.slice(Ue)}}M.loose||(G?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(G=!0));let St,bt=null;this.options.gfm&&(bt=/^\[[ xX]\] /.exec(ce),bt&&(St=bt[0]!=="[ ] ",ce=ce.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!bt,checked:St,loose:!1,text:ce,tokens:[]}),M.raw+=re}M.items[M.items.length-1].raw=M.items[M.items.length-1].raw.trimEnd(),M.items[M.items.length-1].text=M.items[M.items.length-1].text.trimEnd(),M.raw=M.raw.trimEnd();for(let te=0;te<M.items.length;te++)if(this.lexer.state.top=!1,M.items[te].tokens=this.lexer.blockTokens(M.items[te].text,[]),!M.loose){const re=M.items[te].tokens.filter(ve=>ve.type==="space"),ce=re.length>0&&re.some(ve=>/\n.*\n/.test(ve.raw));M.loose=ce}if(M.loose)for(let te=0;te<M.items.length;te++)M.items[te].loose=!0;return M}}html(x){const E=this.rules.block.html.exec(x);if(E)return{type:"html",block:!0,raw:E[0],pre:E[1]==="pre"||E[1]==="script"||E[1]==="style",text:E[0]}}def(x){const E=this.rules.block.def.exec(x);if(E){const T=E[1].toLowerCase().replace(/\s+/g," "),R=E[2]?E[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",M=E[3]?E[3].substring(1,E[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):E[3];return{type:"def",tag:T,raw:E[0],href:R,title:M}}}table(x){const E=this.rules.block.table.exec(x);if(!E||!/[:|]/.test(E[2]))return;const T=Ot(E[1]),R=E[2].replace(/^\||\| *$/g,"").split("|"),M=E[3]&&E[3].trim()?E[3].replace(/\n[ \t]*$/,"").split(`
104
+ `):[],$={type:"table",raw:E[0],header:[],align:[],rows:[]};if(T.length===R.length){for(const G of R)/^ *-+: *$/.test(G)?$.align.push("right"):/^ *:-+: *$/.test(G)?$.align.push("center"):/^ *:-+ *$/.test(G)?$.align.push("left"):$.align.push(null);for(let G=0;G<T.length;G++)$.header.push({text:T[G],tokens:this.lexer.inline(T[G]),header:!0,align:$.align[G]});for(const G of M)$.rows.push(Ot(G,$.header.length).map((te,re)=>({text:te,tokens:this.lexer.inline(te),header:!1,align:$.align[re]})));return $}}lheading(x){const E=this.rules.block.lheading.exec(x);if(E)return{type:"heading",raw:E[0],depth:E[2].charAt(0)==="="?1:2,text:E[1],tokens:this.lexer.inline(E[1])}}paragraph(x){const E=this.rules.block.paragraph.exec(x);if(E){const T=E[1].charAt(E[1].length-1)===`
105
+ `?E[1].slice(0,-1):E[1];return{type:"paragraph",raw:E[0],text:T,tokens:this.lexer.inline(T)}}}text(x){const E=this.rules.block.text.exec(x);if(E)return{type:"text",raw:E[0],text:E[0],tokens:this.lexer.inline(E[0])}}escape(x){const E=this.rules.inline.escape.exec(x);if(E)return{type:"escape",raw:E[0],text:Ie(E[1])}}tag(x){const E=this.rules.inline.tag.exec(x);if(E)return!this.lexer.state.inLink&&/^<a /i.test(E[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(E[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(E[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(E[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:E[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:E[0]}}link(x){const E=this.rules.inline.link.exec(x);if(E){const T=E[2].trim();if(!this.options.pedantic&&/^</.test(T)){if(!/>$/.test(T))return;const $=Rt(T.slice(0,-1),"\\");if((T.length-$.length)%2==0)return}else{const $=function(G,te){if(G.indexOf(te[1])===-1)return-1;let re=0;for(let ce=0;ce<G.length;ce++)if(G[ce]==="\\")ce++;else if(G[ce]===te[0])re++;else if(G[ce]===te[1]&&(re--,re<0))return ce;return-1}(E[2],"()");if($>-1){const G=(E[0].indexOf("!")===0?5:4)+E[1].length+$;E[2]=E[2].substring(0,$),E[0]=E[0].substring(0,G).trim(),E[3]=""}}let R=E[2],M="";if(this.options.pedantic){const $=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(R);$&&(R=$[1],M=$[3])}else M=E[3]?E[3].slice(1,-1):"";return R=R.trim(),/^</.test(R)&&(R=this.options.pedantic&&!/>$/.test(T)?R.slice(1):R.slice(1,-1)),Qt(E,{href:R&&R.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},E[0],this.lexer)}}reflink(x,E){let T;if((T=this.rules.inline.reflink.exec(x))||(T=this.rules.inline.nolink.exec(x))){const R=E[(T[2]||T[1]).replace(/\s+/g," ").toLowerCase()];if(!R){const M=T[0].charAt(0);return{type:"text",raw:M,text:M}}return Qt(T,R,T[0],this.lexer)}}emStrong(x,E,T=""){let R=this.rules.inline.emStrongLDelim.exec(x);if(R&&!(R[3]&&T.match(/[\p{L}\p{N}]/u))&&(!(R[1]||R[2])||!T||this.rules.inline.punctuation.exec(T))){const M=[...R[0]].length-1;let $,G,te=M,re=0;const ce=R[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ce.lastIndex=0,E=E.slice(-1*x.length+M);(R=ce.exec(E))!=null;){if($=R[1]||R[2]||R[3]||R[4]||R[5]||R[6],!$)continue;if(G=[...$].length,R[3]||R[4]){te+=G;continue}if((R[5]||R[6])&&M%3&&!((M+G)%3)){re+=G;continue}if(te-=G,te>0)continue;G=Math.min(G,G+te+re);const ve=[...R[0]][0].length,ke=x.slice(0,M+R.index+ve+G);if(Math.min(M,G)%2){const Ue=ke.slice(1,-1);return{type:"em",raw:ke,text:Ue,tokens:this.lexer.inlineTokens(Ue)}}const De=ke.slice(2,-2);return{type:"strong",raw:ke,text:De,tokens:this.lexer.inlineTokens(De)}}}}codespan(x){const E=this.rules.inline.code.exec(x);if(E){let T=E[2].replace(/\n/g," ");const R=/[^ ]/.test(T),M=/^ /.test(T)&&/ $/.test(T);return R&&M&&(T=T.substring(1,T.length-1)),T=Ie(T,!0),{type:"codespan",raw:E[0],text:T}}}br(x){const E=this.rules.inline.br.exec(x);if(E)return{type:"br",raw:E[0]}}del(x){const E=this.rules.inline.del.exec(x);if(E)return{type:"del",raw:E[0],text:E[2],tokens:this.lexer.inlineTokens(E[2])}}autolink(x){const E=this.rules.inline.autolink.exec(x);if(E){let T,R;return E[2]==="@"?(T=Ie(E[1]),R="mailto:"+T):(T=Ie(E[1]),R=T),{type:"link",raw:E[0],text:T,href:R,tokens:[{type:"text",raw:T,text:T}]}}}url(x){var T;let E;if(E=this.rules.inline.url.exec(x)){let R,M;if(E[2]==="@")R=Ie(E[0]),M="mailto:"+R;else{let $;do $=E[0],E[0]=((T=this.rules.inline._backpedal.exec(E[0]))==null?void 0:T[0])??"";while($!==E[0]);R=Ie(E[0]),M=E[1]==="www."?"http://"+E[0]:E[0]}return{type:"link",raw:E[0],text:R,href:M,tokens:[{type:"text",raw:R,text:R}]}}}inlineText(x){const E=this.rules.inline.text.exec(x);if(E){let T;return T=this.lexer.state.inRawBlock?E[0]:Ie(E[0]),{type:"text",raw:E[0],text:T}}}}const Dt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gn=/(?:[*+-]|\d{1,9}[.)])/,Un=ge(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,en=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Nr=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",en).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Mr=ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gn).getRegex(),Ht="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Br=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",tn).replace("tag",Ht).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$n=ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),yn={blockquote:ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$n).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Nr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Dt,html:Br,lheading:Un,list:Mr,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$n,table:Ft,text:/^[^\n]+/},qn=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),B={...yn,table:qn,paragraph:ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex()},ae={...yn,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ft,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(Xt).replace("hr",Dt).replace("heading",` *#{1,6} *[^
106
+ ]`).replace("lheading",Un).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},he=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ee=/^( {2,}|\\)\n(?!\s*$)/,je="\\p{P}\\p{S}",$e=ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,je).getRegex(),Ne=ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,je).getRegex(),Le=ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,je).getRegex(),tt=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,je).getRegex(),Je=ge(/\\([punct])/,"gu").replace(/punct/g,je).getRegex(),Ye=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ct=ge(tn).replace("(?:-->|$)","-->").getRegex(),Lt=ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,st=ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nn=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",yt).replace("ref",en).getRegex(),Vn=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",en).getRegex(),vn={_backpedal:Ft,anyPunctuation:Je,autolink:Ye,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Ee,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ft,emStrongLDelim:Ne,emStrongRDelimAst:Le,emStrongRDelimUnd:tt,escape:he,link:st,nolink:Vn,punctuation:$e,reflink:nn,reflinkSearch:ge("reflink|nolink(?!\\()","g").replace("reflink",nn).replace("nolink",Vn).getRegex(),tag:Lt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ft},Sl={...vn,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",yt).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt).getRegex()},Dr={...vn,escape:ge(he).replace("])","~|])").getRegex(),url:ge(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bl={...Dr,br:ge(Ee).replace("{2,}","*").getRegex(),text:ge(Dr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zn={normal:yn,gfm:B,pedantic:ae},xn={normal:vn,gfm:Dr,breaks:bl,pedantic:Sl};class vt{constructor(x){ze(this,"tokens");ze(this,"options");ze(this,"state");ze(this,"tokenizer");ze(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||m,this.options.tokenizer=this.options.tokenizer||new Bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const E={block:zn.normal,inline:xn.normal};this.options.pedantic?(E.block=zn.pedantic,E.inline=xn.pedantic):this.options.gfm&&(E.block=zn.gfm,this.options.breaks?E.inline=xn.breaks:E.inline=xn.gfm),this.tokenizer.rules=E}static get rules(){return{block:zn,inline:xn}}static lex(x,E){return new vt(E).lex(x)}static lexInline(x,E){return new vt(E).inlineTokens(x)}lex(x){x=x.replace(/\r\n|\r/g,`
107
+ `),this.blockTokens(x,this.tokens);for(let E=0;E<this.inlineQueue.length;E++){const T=this.inlineQueue[E];this.inlineTokens(T.src,T.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,E=[],T=!1){let R,M,$;for(this.options.pedantic&&(x=x.replace(/\t/g," ").replace(/^ +$/gm,""));x;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(G=>!!(R=G.call({lexer:this},x,E))&&(x=x.substring(R.raw.length),E.push(R),!0))))if(R=this.tokenizer.space(x))x=x.substring(R.raw.length),R.raw.length===1&&E.length>0?E[E.length-1].raw+=`
108
+ `:E.push(R);else if(R=this.tokenizer.code(x))x=x.substring(R.raw.length),M=E[E.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?E.push(R):(M.raw+=`
109
+ `+R.raw,M.text+=`
110
+ `+R.text,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(R=this.tokenizer.fences(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.heading(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.hr(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.blockquote(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.list(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.html(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.def(x))x=x.substring(R.raw.length),M=E[E.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?this.tokens.links[R.tag]||(this.tokens.links[R.tag]={href:R.href,title:R.title}):(M.raw+=`
111
+ `+R.raw,M.text+=`
112
+ `+R.raw,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(R=this.tokenizer.table(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.lheading(x))x=x.substring(R.raw.length),E.push(R);else{if($=x,this.options.extensions&&this.options.extensions.startBlock){let G=1/0;const te=x.slice(1);let re;this.options.extensions.startBlock.forEach(ce=>{re=ce.call({lexer:this},te),typeof re=="number"&&re>=0&&(G=Math.min(G,re))}),G<1/0&&G>=0&&($=x.substring(0,G+1))}if(this.state.top&&(R=this.tokenizer.paragraph($)))M=E[E.length-1],T&&(M==null?void 0:M.type)==="paragraph"?(M.raw+=`
113
+ `+R.raw,M.text+=`
114
+ `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):E.push(R),T=$.length!==x.length,x=x.substring(R.raw.length);else if(R=this.tokenizer.text(x))x=x.substring(R.raw.length),M=E[E.length-1],M&&M.type==="text"?(M.raw+=`
115
+ `+R.raw,M.text+=`
116
+ `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):E.push(R);else if(x){const G="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(G);break}throw new Error(G)}}return this.state.top=!0,E}inline(x,E=[]){return this.inlineQueue.push({src:x,tokens:E}),E}inlineTokens(x,E=[]){let T,R,M,$,G,te,re=x;if(this.tokens.links){const ce=Object.keys(this.tokens.links);if(ce.length>0)for(;($=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ce.includes($[0].slice($[0].lastIndexOf("[")+1,-1))&&(re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($=this.tokenizer.rules.inline.blockSkip.exec(re))!=null;)re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;($=this.tokenizer.rules.inline.anyPunctuation.exec(re))!=null;)re=re.slice(0,$.index)+"++"+re.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;x;)if(G||(te=""),G=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ce=>!!(T=ce.call({lexer:this},x,E))&&(x=x.substring(T.raw.length),E.push(T),!0))))if(T=this.tokenizer.escape(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.tag(x))x=x.substring(T.raw.length),R=E[E.length-1],R&&T.type==="text"&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(T=this.tokenizer.link(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(T.raw.length),R=E[E.length-1],R&&T.type==="text"&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(T=this.tokenizer.emStrong(x,re,te))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.codespan(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.br(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.del(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.autolink(x))x=x.substring(T.raw.length),E.push(T);else if(this.state.inLink||!(T=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ce=1/0;const ve=x.slice(1);let ke;this.options.extensions.startInline.forEach(De=>{ke=De.call({lexer:this},ve),typeof ke=="number"&&ke>=0&&(ce=Math.min(ce,ke))}),ce<1/0&&ce>=0&&(M=x.substring(0,ce+1))}if(T=this.tokenizer.inlineText(M))x=x.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(te=T.raw.slice(-1)),G=!0,R=E[E.length-1],R&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(x){const ce="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ce);break}throw new Error(ce)}}else x=x.substring(T.raw.length),E.push(T);return E}}class Gn{constructor(x){ze(this,"options");ze(this,"parser");this.options=x||m}space(x){return""}code({text:x,lang:E,escaped:T}){var $;const R=($=(E||"").match(/^\S*/))==null?void 0:$[0],M=x.replace(/\n$/,"")+`
117
+ `;return R?'<pre><code class="language-'+Ie(R)+'">'+(T?M:Ie(M,!0))+`</code></pre>
118
+ `:"<pre><code>"+(T?M:Ie(M,!0))+`</code></pre>
119
+ `}blockquote({tokens:x}){return`<blockquote>
120
+ ${this.parser.parse(x)}</blockquote>
121
+ `}html({text:x}){return x}heading({tokens:x,depth:E}){return`<h${E}>${this.parser.parseInline(x)}</h${E}>
122
+ `}hr(x){return`<hr>
123
+ `}list(x){const E=x.ordered,T=x.start;let R="";for(let $=0;$<x.items.length;$++){const G=x.items[$];R+=this.listitem(G)}const M=E?"ol":"ul";return"<"+M+(E&&T!==1?' start="'+T+'"':"")+`>
124
+ `+R+"</"+M+`>
125
+ `}listitem(x){let E="";if(x.task){const T=this.checkbox({checked:!!x.checked});x.loose?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=T+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&x.tokens[0].tokens[0].type==="text"&&(x.tokens[0].tokens[0].text=T+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",raw:T+" ",text:T+" "}):E+=T+" "}return E+=this.parser.parse(x.tokens,!!x.loose),`<li>${E}</li>
126
+ `}checkbox({checked:x}){return"<input "+(x?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:x}){return`<p>${this.parser.parseInline(x)}</p>
127
+ `}table(x){let E="",T="";for(let M=0;M<x.header.length;M++)T+=this.tablecell(x.header[M]);E+=this.tablerow({text:T});let R="";for(let M=0;M<x.rows.length;M++){const $=x.rows[M];T="";for(let G=0;G<$.length;G++)T+=this.tablecell($[G]);R+=this.tablerow({text:T})}return R&&(R=`<tbody>${R}</tbody>`),`<table>
128
+ <thead>
129
+ `+E+`</thead>
130
+ `+R+`</table>
131
+ `}tablerow({text:x}){return`<tr>
132
+ ${x}</tr>
133
+ `}tablecell(x){const E=this.parser.parseInline(x.tokens),T=x.header?"th":"td";return(x.align?`<${T} align="${x.align}">`:`<${T}>`)+E+`</${T}>
134
+ `}strong({tokens:x}){return`<strong>${this.parser.parseInline(x)}</strong>`}em({tokens:x}){return`<em>${this.parser.parseInline(x)}</em>`}codespan({text:x}){return`<code>${x}</code>`}br(x){return"<br>"}del({tokens:x}){return`<del>${this.parser.parseInline(x)}</del>`}link({href:x,title:E,tokens:T}){const R=this.parser.parseInline(T),M=Zt(x);if(M===null)return R;let $='<a href="'+(x=M)+'"';return E&&($+=' title="'+E+'"'),$+=">"+R+"</a>",$}image({href:x,title:E,text:T}){const R=Zt(x);if(R===null)return T;let M=`<img src="${x=R}" alt="${T}"`;return E&&(M+=` title="${E}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class Hr{strong({text:x}){return x}em({text:x}){return x}codespan({text:x}){return x}del({text:x}){return x}html({text:x}){return x}text({text:x}){return x}link({text:x}){return""+x}image({text:x}){return""+x}br(){return""}}class xt{constructor(x){ze(this,"options");ze(this,"renderer");ze(this,"textRenderer");this.options=x||m,this.options.renderer=this.options.renderer||new Gn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hr}static parse(x,E){return new xt(E).parse(x)}static parseInline(x,E){return new xt(E).parseInline(x)}parse(x,E=!0){let T="";for(let R=0;R<x.length;R++){const M=x[R];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=M,te=this.options.extensions.renderers[G.type].call({parser:this},G);if(te!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(G.type)){T+=te||"";continue}}const $=M;switch($.type){case"space":T+=this.renderer.space($);continue;case"hr":T+=this.renderer.hr($);continue;case"heading":T+=this.renderer.heading($);continue;case"code":T+=this.renderer.code($);continue;case"table":T+=this.renderer.table($);continue;case"blockquote":T+=this.renderer.blockquote($);continue;case"list":T+=this.renderer.list($);continue;case"html":T+=this.renderer.html($);continue;case"paragraph":T+=this.renderer.paragraph($);continue;case"text":{let G=$,te=this.renderer.text(G);for(;R+1<x.length&&x[R+1].type==="text";)G=x[++R],te+=`
135
+ `+this.renderer.text(G);T+=E?this.renderer.paragraph({type:"paragraph",raw:te,text:te,tokens:[{type:"text",raw:te,text:te}]}):te;continue}default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return T}parseInline(x,E){E=E||this.renderer;let T="";for(let R=0;R<x.length;R++){const M=x[R];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=this.options.extensions.renderers[M.type].call({parser:this},M);if(G!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){T+=G||"";continue}}const $=M;switch($.type){case"escape":case"text":T+=E.text($);break;case"html":T+=E.html($);break;case"link":T+=E.link($);break;case"image":T+=E.image($);break;case"strong":T+=E.strong($);break;case"em":T+=E.em($);break;case"codespan":T+=E.codespan($);break;case"br":T+=E.br($);break;case"del":T+=E.del($);break;default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return T}}class Sn{constructor(x){ze(this,"options");ze(this,"block");this.options=x||m}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?vt.lex:vt.lexInline}provideParser(){return this.block?xt.parse:xt.parseInline}}ze(Sn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const Ut=new class{constructor(...pe){ze(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});ze(this,"options",this.setOptions);ze(this,"parse",this.parseMarkdown(!0));ze(this,"parseInline",this.parseMarkdown(!1));ze(this,"Parser",xt);ze(this,"Renderer",Gn);ze(this,"TextRenderer",Hr);ze(this,"Lexer",vt);ze(this,"Tokenizer",Bt);ze(this,"Hooks",Sn);this.use(...pe)}walkTokens(pe,x){var T,R;let E=[];for(const M of pe)switch(E=E.concat(x.call(this,M)),M.type){case"table":{const $=M;for(const G of $.header)E=E.concat(this.walkTokens(G.tokens,x));for(const G of $.rows)for(const te of G)E=E.concat(this.walkTokens(te.tokens,x));break}case"list":{const $=M;E=E.concat(this.walkTokens($.items,x));break}default:{const $=M;(R=(T=this.defaults.extensions)==null?void 0:T.childTokens)!=null&&R[$.type]?this.defaults.extensions.childTokens[$.type].forEach(G=>{const te=$[G].flat(1/0);E=E.concat(this.walkTokens(te,x))}):$.tokens&&(E=E.concat(this.walkTokens($.tokens,x)))}}return E}use(...pe){const x=this.defaults.extensions||{renderers:{},childTokens:{}};return pe.forEach(E=>{const T={...E};if(T.async=this.defaults.async||T.async||!1,E.extensions&&(E.extensions.forEach(R=>{if(!R.name)throw new Error("extension name required");if("renderer"in R){const M=x.renderers[R.name];x.renderers[R.name]=M?function(...$){let G=R.renderer.apply(this,$);return G===!1&&(G=M.apply(this,$)),G}:R.renderer}if("tokenizer"in R){if(!R.level||R.level!=="block"&&R.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const M=x[R.level];M?M.unshift(R.tokenizer):x[R.level]=[R.tokenizer],R.start&&(R.level==="block"?x.startBlock?x.startBlock.push(R.start):x.startBlock=[R.start]:R.level==="inline"&&(x.startInline?x.startInline.push(R.start):x.startInline=[R.start]))}"childTokens"in R&&R.childTokens&&(x.childTokens[R.name]=R.childTokens)}),T.extensions=x),E.renderer){const R=this.defaults.renderer||new Gn(this.defaults);for(const M in E.renderer){if(!(M in R))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const $=M,G=E.renderer[$],te=R[$];R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce||""}}T.renderer=R}if(E.tokenizer){const R=this.defaults.tokenizer||new Bt(this.defaults);for(const M in E.tokenizer){if(!(M in R))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const $=M,G=E.tokenizer[$],te=R[$];R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce}}T.tokenizer=R}if(E.hooks){const R=this.defaults.hooks||new Sn;for(const M in E.hooks){if(!(M in R))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const $=M,G=E.hooks[$],te=R[$];Sn.passThroughHooks.has(M)?R[$]=re=>{if(this.defaults.async)return Promise.resolve(G.call(R,re)).then(ve=>te.call(R,ve));const ce=G.call(R,re);return te.call(R,ce)}:R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce}}T.hooks=R}if(E.walkTokens){const R=this.defaults.walkTokens,M=E.walkTokens;T.walkTokens=function($){let G=[];return G.push(M.call(this,$)),R&&(G=G.concat(R.call(this,$))),G}}this.defaults={...this.defaults,...T}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return vt.lex(pe,x??this.defaults)}parser(pe,x){return xt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,E)=>{const T={...E},R={...this.defaults,...T},M=this.onError(!!R.silent,!!R.async);if(this.defaults.async===!0&&T.async===!1)return M(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(x==null)return M(new Error("marked(): input parameter is undefined or null"));if(typeof x!="string")return M(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(x)+", string expected"));R.hooks&&(R.hooks.options=R,R.hooks.block=pe);const $=R.hooks?R.hooks.provideLexer():pe?vt.lex:vt.lexInline,G=R.hooks?R.hooks.provideParser():pe?xt.parse:xt.parseInline;if(R.async)return Promise.resolve(R.hooks?R.hooks.preprocess(x):x).then(te=>$(te,R)).then(te=>R.hooks?R.hooks.processAllTokens(te):te).then(te=>R.walkTokens?Promise.all(this.walkTokens(te,R.walkTokens)).then(()=>te):te).then(te=>G(te,R)).then(te=>R.hooks?R.hooks.postprocess(te):te).catch(M);try{R.hooks&&(x=R.hooks.preprocess(x));let te=$(x,R);R.hooks&&(te=R.hooks.processAllTokens(te)),R.walkTokens&&this.walkTokens(te,R.walkTokens);let re=G(te,R);return R.hooks&&(re=R.hooks.postprocess(re)),re}catch(te){return M(te)}}}onError(pe,x){return E=>{if(E.message+=`
136
+ Please report this to https://github.com/markedjs/marked.`,pe){const T="<p>An error occurred:</p><pre>"+Ie(E.message+"",!0)+"</pre>";return x?Promise.resolve(T):T}if(x)return Promise.reject(E);throw E}}};function qe(pe,x){return Ut.parse(pe,x)}qe.options=qe.setOptions=function(pe){return Ut.setOptions(pe),qe.defaults=Ut.defaults,S(qe.defaults),qe},qe.getDefaults=O,qe.defaults=m,qe.use=function(...pe){return Ut.use(...pe),qe.defaults=Ut.defaults,S(qe.defaults),qe},qe.walkTokens=function(pe,x){return Ut.walkTokens(pe,x)},qe.parseInline=Ut.parseInline,qe.Parser=xt,qe.parser=xt.parse,qe.Renderer=Gn,qe.TextRenderer=Hr,qe.Lexer=vt,qe.lexer=vt.lex,qe.Tokenizer=Bt,qe.Hooks=Sn,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,xt.parse,vt.lex;var wl=n(881),El=n.n(wl),$t=n(1271);class kl{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,this.answerMaxHeight=T.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,L.g3)("markdown",function(M){return typeof M!="string"?"":new(d()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const R=localStorage.getItem("addSearch-isConversationalSearchHidden");if(R!==null){const M=JSON.parse(R);this.reduxStore.dispatch({type:$t.IT,payload:M})}}observeResultLoadingState(){this.reduxStore.subscribe(()=>{const x=this.reduxStore.getState().search.loadingConversationalSearchResult;this.isSearchResultLoading!==x&&(this.isSearchResultLoading=x,this.render())})}setupHideConversationalSearchToggle(){const x=document.querySelector(".addsearch-conversational-search-result"),E=document.querySelector(".toggle-switch input");x&&E&&E.addEventListener("change",()=>{const T=this.reduxStore.getState().search.isConversationalSearchHidden;console.log("Toggle hide / show - setting it to: ",!T),this.reduxStore.dispatch({type:$t.IT,payload:!T}),localStorage.setItem("addSearch-isConversationalSearchHidden",JSON.stringify(!T))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),E=x&&x.querySelector(".fade-out-overlay"),T=document.querySelector(".show-more-btn"),R=T&&T.querySelector(".button-text"),M=T&&T.querySelector(".chevron");x&&E&&T&&R&&M&&(this.reduxStore.getState().search.isConversationalSearchAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),T.style.display="flex",R.textContent="Show less",E.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(T.style.display="flex",E.style.display="block"):(T.style.display="none",E.style.display="none")),T.addEventListener("click",()=>{this.reduxStore.getState().search.isConversationalSearchAnswerExpanded?(this.reduxStore.dispatch({type:$t.K3,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),R.textContent="Show more",E.style.display="block",M.style.transform=""):(this.reduxStore.dispatch({type:$t.K3,payload:!0}),x.style.maxHeight="".concat(x.scrollHeight,"px"),R.textContent="Show less",E.style.display="none",M.style.transform="rotate(180deg)")}))}setupActionButtons(){const x=document.querySelector(".addsearch-conversational-search-result"),E=x&&x.querySelector(".copy-btn"),T=x.querySelector(".copy-confirm-message"),R=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&E&&T&&R&&M&&(E.addEventListener("click",()=>{const $=document.querySelector(".answer-text").textContent;console.log("Copy clicked, TODO connect to BE!"),navigator.clipboard.writeText($).then(()=>{T.textContent="Answer copied!",console.log("Answer successfull copied, TODO connect to BE!")}).catch(G=>{console.error("Failed to copy answer text with following error: ",G)})}),R.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.conversationalSearchResult.id,$.conversationalSearchSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.conversationalSearchResult.id,$.conversationalSearchSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,E=x.conversationalSearchResult,T=x.loadingConversationalSearchResult,R=x.keyword,M=x.conversationalSearchResultError,$={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:R,answerText:E.answerText,sourcesHeadlineText:this.conf.sourcesHeadlineText||"Sources:",sources:E.sources,aiExplanationText:this.conf.aiExplanationText||"Generated by AI, may contain errors.",isResultLoading:this.isSearchResultLoading,hadError:M,sentimentState:x.conversationalSearchSentiment,showHideToggle:this.conf.hasHideToggle===void 0||this.conf.hasHideToggle,isHidden:x.isConversationalSearchHidden};let G;(E.answerText||R&&T)&&(G=this.conf.precompiledTemplate?this.conf.precompiledTemplate($):this.conf.template?d().compile(this.conf.template)($):El()($)),!(!G||this.renderedHtml===G)&&(document.getElementById(this.conf.containerId).innerHTML=G,this.renderedHtml=G,this.setupHideConversationalSearchToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class _l{constructor(x,E,T){this.client=x,this.reduxStore=E,this.conf=T,(0,l.A)(T.containerId)&&(T.template||T.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",R=>this.render(R)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let E;if(E=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):d().compile(this.conf.template)(x),this.renderedHtml===E)return;const T=document.getElementById(this.conf.containerId);T.innerHTML=E,this.renderedHtml=E;const R=T.querySelectorAll("[data-analytics-click]");(0,we.$P)(this.client,R,x)}}var Cl=n(8909),Ol=n(4826),Rl=n(6353),Tl=n(4128),Pl=n(878);const Kn="_addsearch_",Tt="*";r().polyfill(),(0,L.ud)();class Al{constructor(x,E){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=E||{},Me.sh.SEARCH=this.settings.searchParameter||Me.sh.SEARCH,Me.sh.FACETS=this.settings.facetsParameter||Me.sh.FACETS,this.shouldInitializeFromBrowserHistory=!1,this.reduxStore=(0,a.N)(this.settings)}start(){this.initFromClientSettings(),this.client.setCollectAnalytics(!1),(0,we.b8)(this.settings.analyticsCallback),(0,we.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,ue.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:I.a;this.shouldInitializeFromBrowserHistory&&(0,Me.I5)(this.client,this.reduxStore,x,(T,R)=>{this.executeSearch(T,R,!1,null,this.settings.fieldForInstantRedirect),T&&this.settings.hasConversationalSearch&&this.executeConversationalSearch(T,!1)},this.settings.matchAllQuery,this.settings.baseFilters),new I.A(this.client,this.reduxStore,x,this.settings.onFilterChange,this.settings.baseFilters,this.segmentedSearchClients,this.settings.onFilteredSearchRefresh),this.settings.matchAllQuery===!0&&this.matchAllQuery();for(var E=0;E<this.recommendationsSettings.length;E++)this.recommendationsSettings[E].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[E].containerId);this.reduxStore.dispatch({type:ue.d3})}executeSearch(x,E,T,R,M){this.reduxStore.dispatch((0,ue.EF)(this.client,x,E,!1,T,this.reduxStore,R,"executeSearch",M));for(let $ in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ol.l$)(this.segmentedSearchClients[$].client,$,x))}executeConversationalSearch(x){this.reduxStore.dispatch((0,$t.Vk)(this.client,x))}fetchRecommendation(x){const E=this.recommendationsSettings.filter(T=>T.containerId===x)[0];E&&this.reduxStore.dispatch((0,Pl.vh)(this.client,{container:E.containerId,type:E.type,blockId:E.blockId,configurationKey:E.configurationKey,itemId:E.getProductIdFunction?E.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const x=this.client.getSettings().paging;this.reduxStore.dispatch((0,Rl.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const E=this.reduxStore;E.getState().keyword.value===""&&(E.dispatch((0,Ke.Ai)(Tt,!0)),this.executeSearch(Tt,x,!1))}log(x){this.settings.debug&&console.log(x)}searchField(x){x.fieldForInstantRedirect&&console.log('WARNING: searchField setting "fieldForInstantRedirect" is deprecated. Use it in Search UI configuration object instead.'),new be(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(E,T,R,M,$)=>{this.executeSearch(E,T,R,M,$),!E.startsWith(Kn)&&this.settings.hasConversationalSearch&&!R&&this.executeConversationalSearch(E,R)})}autocomplete(x){new A.A(this.client,this.reduxStore,this.settings.hasConversationalSearch,x)}conversationalSearchResult(x){this.shouldInitializeFromBrowserHistory=!0,new kl(this.client,this.reduxStore,x)}searchResults(x){this.shouldInitializeFromBrowserHistory=!0,new fe(this.client,this.reduxStore,x)}segmentedSearchResults(x){x.client?(this.shouldInitializeFromBrowserHistory=!0,this.segmentedSearchClients[x.containerId]={},this.segmentedSearchClients[x.containerId].client=x.client,this.segmentedSearchClients[x.containerId].originalFilters=Object.assign({},x.client.getSettings().filterObject),new _l(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new q(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new se(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ne.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Cl.A(this.client,this.reduxStore,x)}pagination(x){new Oe(this.client,this.reduxStore,x)}loadMore(x){new W.A(this.client,this.reduxStore,x)}activeFilters(x){new k(this.client,this.reduxStore,x)}recommendations(x){new Tl.A(this.client,this.reduxStore,x,this.recommendationsSettings)}search(x){this.reduxStore.dispatch((0,Ke.Ai)(x,!0)),this.executeSearch(x,null,!1),this.settings.hasConversationalSearch&&this.executeConversationalSearch(x)}hideAutocomplete(){this.reduxStore.dispatch((0,Fe.nl)())}clear(){const x=this.reduxStore;x.dispatch((0,Ke.Ai)("",!0)),x.dispatch((0,C.hx)(!0)),this.settings.matchAllQuery===!0?this.matchAllQuery("top"):x.dispatch((0,ue.AX)("top"))}registerHandlebarsHelper(x,E){(0,L.g3)(x,E)}registerHandlebarsPartial(x,E){(0,L.bp)(x,E)}}},4922:function(b,c,n){function y(z,H,oe){return H in z?Object.defineProperty(z,H,{value:oe,enumerable:!0,configurable:!0,writable:!0}):z[H]=oe,z}function r(z,H){var oe=Object.keys(z);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(z);H&&(de=de.filter(function(be){return Object.getOwnPropertyDescriptor(z,be).enumerable})),oe.push.apply(oe,de)}return oe}function e(z){for(var H=1;H<arguments.length;H++){var oe=arguments[H]!=null?arguments[H]:{};H%2?r(Object(oe),!0).forEach(function(de){y(z,de,oe[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(oe)):r(Object(oe)).forEach(function(de){Object.defineProperty(z,de,Object.getOwnPropertyDescriptor(oe,de))})}return z}function d(z){return"Minified Redux error #"+z+"; visit https://redux.js.org/Errors?code="+z+" for the full message or use the non-minified dev environment for full errors. "}n.d(c,{N:function(){return Me},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function o(z){if(typeof z!="object"||z===null)return!1;for(var H=z;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(z)===H}function v(z,H,oe){var de;if(typeof H=="function"&&typeof oe=="function"||typeof oe=="function"&&typeof arguments[3]=="function")throw new Error(d(0));if(typeof H=="function"&&oe===void 0&&(oe=H,H=void 0),oe!==void 0){if(typeof oe!="function")throw new Error(d(1));return oe(v)(z,H)}if(typeof z!="function")throw new Error(d(2));var be=z,we=H,Te=[],me=Te,ye=!1;function Se(){me===Te&&(me=Te.slice())}function Be(){if(ye)throw new Error(d(3));return we}function Z(ie){if(typeof ie!="function")throw new Error(d(4));if(ye)throw new Error(d(5));var fe=!0;return Se(),me.push(ie),function(){if(fe){if(ye)throw new Error(d(6));fe=!1,Se();var O=me.indexOf(ie);me.splice(O,1),Te=null}}}function le(ie){if(!o(ie))throw new Error(d(7));if(ie.type===void 0)throw new Error(d(8));if(ye)throw new Error(d(9));try{ye=!0,we=be(we,ie)}finally{ye=!1}for(var fe=Te=me,O=0;O<fe.length;O++)(0,fe[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:Z,getState:Be,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(d(10));be=ie,le({type:a.REPLACE})}})[C]=function(){var ie,fe=Z;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(d(11));function m(){O.next&&O.next(Be())}return m(),{unsubscribe:fe(m)}}})[C]=function(){return this},ie},de}function f(){for(var z=arguments.length,H=new Array(z),oe=0;oe<z;oe++)H[oe]=arguments[oe];return H.length===0?function(de){return de}:H.length===1?H[0]:H.reduce(function(de,be){return function(){return de(be.apply(void 0,arguments))}})}var g=n(6148);const h={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var u=n(549),_=n(9369);const k={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},A=function(z,H,oe){if(z[oe.container]||(z[oe.container]={}),z[oe.container][oe.field]||(z[oe.container][oe.field]={}),z[oe.container][oe.field][oe.value]){const Te=oe.value.lastIndexOf(">"),me=Te>-1?oe.value.slice(0,Te-1):null;if(delete z[oe.container][oe.field][oe.value],me&&(de=z[oe.container][oe.field],be=me,!(Object.keys(de).filter(function(ye){return ye.indexOf(be+" >")>-1}).length>0))){const ye=H.indexOf(me);ye>-1&&H.splice(ye,1)}}else{z[oe.container][oe.field][oe.value]="true";for(let me in z[oe.container])for(let ye in z[oe.container][me])ye.indexOf(oe.value+" >")===0&&delete z[oe.container][me][ye];H=H.filter(me=>me.indexOf(oe.value+" > ")!==0);const Te=oe.value.split(" > ").reduce((me,ye)=>{const Se=me[me.length-1],Be=Se?Se+" > "+ye:ye;return Be!==oe.value&&me.push(Be),me},[]);for(let me in z[oe.container])for(let ye in z[oe.container][me])Te.indexOf(ye)!==-1&&delete z[oe.container][me][ye];H=H.filter(me=>Te.indexOf(me)===-1).concat(Te)}var de,be;const we=H.indexOf(oe.value);return we>-1&&H.splice(we,1),{activeHierarchicalFacetState:z,indeterminateHierarchicalFacets:H}};var I=n(6993);const P={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var N=n(5756);const q={page:1};var j=n(4933),D=n(1944),L=n(1271);const V={started:!1,keyword:null,results:{},loading:!1,conversationalSearchResult:{},loadingConversationalSearchResult:!1,conversationalSearchResultError:!1,conversationalSearchSentiment:"neutral",isConversationalSearchAnswerExpanded:!1,isConversationalSearchHidden:!1,searchResultsPageUrl:null};var J=n(4826);const se={pendingSegments:[]};var ne=n(6353);const Y={field:["relevance"],order:[ne.ER]},W={};var X=n(6843);const ue={fieldStats:{}};var xe=n(878);const Re={container:null,recommendType:null,results:null};var Ce=function(z){for(var H=Object.keys(z),oe={},de=0;de<H.length;de++){var be=H[de];typeof z[be]=="function"&&(oe[be]=z[be])}var we,Te=Object.keys(oe);try{(function(me){Object.keys(me).forEach(function(ye){var Se=me[ye];if(Se(void 0,{type:a.INIT})===void 0)throw new Error(d(12));if(Se(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(d(13))})})(oe)}catch(me){we=me}return function(me,ye){if(me===void 0&&(me={}),we)throw we;for(var Se=!1,Be={},Z=0;Z<Te.length;Z++){var le=Te[Z],ie=oe[le],fe=me[le],O=ie(fe,ye);if(O===void 0)throw ye&&ye.type,new Error(d(14));Be[le]=O,Se=Se||O!==fe}return(Se=Se||Te.length!==Object.keys(me).length)?Be:me}}({autocomplete:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case g.VW:let oe=[...z.pendingRequests];return oe.indexOf(H.jsonKey)===-1&&oe.push(H.jsonKey),Object.assign({},z,{pendingRequests:oe});case g.vT:return Object.assign({},z,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case g.nn:return Object.assign({},z,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case g.KR:let de=[...z.pendingRequests];return de.indexOf(g.Pf)!==-1&&de.splice(de.indexOf(g.Pf),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case g.kw:let be=[...z.pendingRequests];return be.indexOf(g.Xr)!==-1&&be.splice(be.indexOf(g.Xr),1),Object.assign({},z,{pendingRequests:be,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case g.Km:return Object.assign({},z,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case g.p3:const we=Object.assign({},z.searchResults);we[H.jsonKey]=H.results.hits;const Te=Object.assign({},z.searchResultsStats);H.appendResults===!0&&z.searchResults[H.jsonKey]?we[H.jsonKey]=[...z.searchResults[H.jsonKey],...H.results.hits]:(Te[H.jsonKey]||(Te[H.jsonKey]={}),Te[H.jsonKey].total_hits=H.results.total_hits,Te[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...z.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:me,searchResults:we,searchResultsStats:Te,visible:!0,appendResults:H.appendResults===!0});case g.GB:return Object.assign({},z,{visible:!1,activeSuggestionIndex:null});case g.B5:return Object.assign({},z,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case g.h$:return Object.assign({},z,{visible:!0,dropRendering:!1});case g.FJ:return Object.assign({},z,{hideAutomatically:H.hideAutomatically});case g.d5:return Object.assign({},z,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case g.hx:let ye=z.activeSuggestionIndex;if(z.suggestions.length&&z.customFields.length)ye=null;else{const Se=z.suggestions.length?"suggestions":"customFields";H.direction===g.Jd?ye===null&&z[Se].length>0?ye=0:ye===z[Se].length-1?ye=null:ye+=1:H.direction===g.il&&(ye===null&&z[Se].length>0?ye=z[Se].length-1:ye===0?ye=null:ye-=1)}return Object.assign({},z,{visible:!0,activeSuggestionIndex:ye,setSuggestionToSearchField:!0});default:return z}},filters:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case u.XI:let oe=z.allAvailableFilters.slice();if(H.filterObj.type===_.FILTER_TYPE.RANGE){let Be={};Be[H.filterObj.field]={label:H.filterObj.labelShort?H.filterObj.labelShort:H.filterObj.label},oe.push(Be)}else if(H.filterObj.options){const Be=Object.assign({},H.filterObj.options);oe.push(Be)}return Object.assign({},z,{allAvailableFilters:oe});case u.CY:let de=Object.assign({},z.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},z,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case u.Uj:let be=Object.assign({},z.activeRangeFilters);return be[H.field]={},H.from!==null&&(be[H.field].gte=H.from),H.to!==null&&(be[H.field].lte=H.to),H.from===null&&H.to===null&&delete be[H.field],Object.assign({},z,{activeRangeFilters:be,refreshSearch:!0});case u.vj:return Object.assign({},z,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case u.Tv:return Object.assign({},z,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case u.uR:return Object.assign({},z,{activeFilters:H.json||{},refreshSearch:!1});case u.VN:return Object.assign({},z,{activeFacets:H.json||{},refreshSearch:!1});case u.JS:return Object.assign({},z,{activeRangeFacets:Object.assign({},z.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case u.cl:let we=Object.assign({},z.activeFacets);return we[H.field]||(we[H.field]={}),we[H.field][H.value]?delete we[H.field][H.value]:we[H.field][H.value]="true",we.v=we.v?we.v+1:1,Object.assign({},z,{activeFacets:we,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.QW:let Te=Object.assign({},z.activeHierarchicalFacets),me=z.indeterminateHierarchicalFacets.slice();const ye=A(Te,me,H);return Te=ye.activeHierarchicalFacetState,me=ye.indeterminateHierarchicalFacets,Te.v=Te.v?Te.v+1:1,Object.assign({},z,{activeHierarchicalFacets:Te,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.IS:let Se=Object.assign({},z.activeRangeFacets);return Se[H.field]||(Se[H.field]={}),Se[H.field][H.key]?delete Se[H.field][H.key]:Se[H.field][H.key]={gte:H.values.min,lt:H.values.max,key:H.key},Se.v=Se.v?Se.v+1:1,Object.assign({},z,{activeRangeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return z}},keyword:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case I.QR:return Object.assign({},z,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case I.Le:return Object.assign({},z,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return z}},pagination:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q,H=arguments.length>1?arguments[1]:void 0;return H.type===N.N?Object.assign({},z,{page:H.page}):z},search:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case D.d3:return Object.assign({},z,{started:!0});case D.y$:return Object.assign({},z,{keyword:null,results:{},loading:!1,conversationalSearchResult:{},conversationalSearchResultError:!1,loadingConversationalSearchResult:!1,conversationalSearchSentiment:"neutral",dropReturningResults:!0});case D.xE:return Object.assign({},z,{loading:!0,dropReturningResults:!1});case D.mY:if(z.started||console.log("WARNING: AddSearch UI not started with the start() function"),z.dropReturningResults===!0)return z;if(H.keyword.indexOf(j.H)===0)return Object.assign({},z,{loading:!1});let oe=H.results;if(H.appendResults===!0&&z.results.hits){const de=[...z.results.hits,...H.results.hits];oe.hits=de}return Object.assign({},z,{keyword:H.keyword,results:oe,loading:!1,callBy:H.requestBy});case L.eH:return Object.assign({},z,{loadingConversationalSearchResult:H.payload});case L.e:return Object.assign({},z,{conversationalSearchResult:H.payload});case L.BA:return Object.assign({},z,{conversationalSearchResultError:H.payload});case L.JK:return Object.assign({},z,{conversationalSearchSentiment:H.payload});case L.K3:return Object.assign({},z,{isConversationalSearchAnswerExpanded:H.payload});case L.IT:return Object.assign({},z,{isConversationalSearchHidden:H.payload});case D.j2:return Object.assign({},z,{searchResultsPageUrl:H.url});default:return z}},segmentedsearch:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case J.lD:let oe=[...z.pendingSegments];return oe.indexOf(H.jsonKey)===-1&&oe.push(H.jsonKey),Object.assign({},z,{pendingSegments:oe,dropReturningResults:!1});case J.JK:if(H.keyword.indexOf(j.H)===0||z.dropReturningResults===!0)return z;const de={};de[H.jsonKey]=H.results;let be=[...z.pendingSegments];return be.indexOf(H.jsonKey)!==-1&&be.splice(be.indexOf(H.jsonKey),1),Object.assign({},z,de,{pendingSegments:be});case J.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return z}},sortby:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ne.O0?Object.assign({},z,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):z},fieldstats:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ue,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case X.IJ:return Object.assign({},z,{fieldStats:H.fieldStats,callBy:H.callBy});case X.nb:return Object.assign({},z,{fieldStats:{}});default:return z}},recommendation:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case xe.iM:case xe.OU:return Object.assign({},z,{container:H.container,recommendType:H.recommendType,results:H.results});case xe.KE:return Object.assign({},Re);default:return z}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function He(z){return function(H){var oe=H.dispatch,de=H.getState;return function(be){return function(we){return typeof we=="function"?we(oe,de,z):be(we)}}}}var Fe=He();Fe.withExtraArgument=He;var Ke=Fe;function Me(z){const H={configuration:z};let oe=f;return z.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(oe=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),v(Ce,H,oe(function(){for(var de=arguments.length,be=new Array(de),we=0;we<de;we++)be[we]=arguments[we];return function(Te){return function(){var me=Te.apply(void 0,arguments),ye=function(){throw new Error(d(15))},Se={getState:me.getState,dispatch:function(){return ye.apply(void 0,arguments)}},Be=be.map(function(Z){return Z(Se)});return ye=f.apply(void 0,Be)(me.dispatch),e(e({},me),{},{dispatch:ye})}}}(Ke)))}function We(z,H,oe){let de={};function be(){const Te=z.getState()[H];JSON.stringify(Te)!==JSON.stringify(de[H])&&(de[H]=Te,oe(de[H]))}let we=z.subscribe(be);return be(),we}},6351:function(b,c,n){n.d(c,{$P:function(){return _},ME:function(){return u},b8:function(){return e},d_:function(){return l},mh:function(){return f}});const y=2500;let r=null;function e(I){r=I}function d(I){r&&r(I)}let C=!0;function l(I){C=I}let a=null,o=null,v=!1;function f(I,P,N,q){if(C===!1)return;const j="search";a&&clearTimeout(a),a=setTimeout(()=>{P!==o&&(I.sendStatsEvent(j,P,{numberOfResults:N}),d({action:j,keyword:P,numberOfResults:N,processingTimeMs:q}),o=P,v=!0)},y)}let g=null,h=null;function u(I,P){C===!1||!P||P.length<1||(g&&clearTimeout(g),g=setTimeout(()=>{I!==h&&(P.forEach(N=>N.client.sendStatsEvent("search",I,{numberOfResults:N.numberOfResults})),h=I,v=!0)},y))}function _(I,P,N){if(P&&P.length>0)for(let q=0;q<P.length;q++)P[q].addEventListener("keyup",j=>{j.keyCode===13&&A(j,I,N)}),P[q].addEventListener("pointerdown",j=>{j.button&&j.buttons&&j.button===j.buttons||A(j,I,N)})}function k(I){const P=I.getAttribute("data-analytics-click");return I.nodeName==="BODY"||I.nodeName==="body"?null:P||k(I.parentNode)}function A(I,P,N){if(C===!1)return;const q=k(I.target),j=function(L,V,J){if(V&&V.hits){const se=((V.page||1)-1)*L;for(let ne=0;ne<V.hits.length;ne++)if(V.hits[ne].id===J)return se+(ne+1)}return 0}(P.getSettings().paging.pageSize,N,q),D=P.getSettings().keyword;if(P.sendStatsEvent("click",D,{documentId:q,position:j}),d({action:"click",keyword:D,documentId:q,position:j}),v===!1){const L=N?N.total_hits:0,V=N?N.processing_time_ms:0;P.sendStatsEvent("search",D,{numberOfResults:L}),d({action:"search",keyword:D,numberOfResults:L,processingTimeMs:V})}}},4379:function(b,c,n){function y(e,d,C,l){const a=e.querySelectorAll("["+d+"]");for(let o=0;o<a.length;o++)a[o].addEventListener(C,v=>{l(v.target.getAttribute(d))})}function r(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return r},h:function(){return y}})},3923:function(b,c,n){n.d(c,{GK:function(){return l},bp:function(){return f},g3:function(){return v},ud:function(){return o}});var y=n(2334),r=n.n(y),e=n(261),d=n.n(e),C=n(7435);function l(g,h){const u=g.categories||[];let _="",k=1;h=(0,C.y)(h);do _=u.length>k?u[k]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),k++;while(_.length<3&&u.length>k);return h&&h[_]?h[_]:_.replace(/[-_]+/g," ")}let a=null;function o(){v("equals",(g,h,u)=>g+""==h+""?u.fn(this):u.inverse(this)),v("not",(g,h,u)=>g+""!=h+""?u.fn(this):u.inverse(this)),v("gt",(g,h,u)=>g>h?u.fn(this):u.inverse(this)),v("lt",(g,h,u)=>g<h?u.fn(this):u.inverse(this)),v("or",(g,h,u)=>g||h?u.fn(this):u.inverse(this)),v("formatPrice",(g,h,u)=>{if(g===void 0||typeof g!="number"||!h||!u)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(h,{style:"currency",currency:u,minimumFractionDigits:2})),a)return a.format(g)}catch{}return g/100+" "+u})}function v(g,h){r().registerHelper(g,h),d().registerHelper(g,h)}function f(g,h){r().registerPartial(g,h),d().registerPartial(g,h)}},4903:function(b,c,n){n.d(c,{Dh:function(){return v},I5:function(){return g},IR:function(){return k},lG:function(){return A},sh:function(){return l}});var y=n(4933),r=n(6993),e=n(5756),d=n(549),C=n(6353);const l={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let o=null;function v(I,P,N,q){const j=q.getState();j&&j.configuration&&j.configuration.updateBrowserHistory===!1||(N?(o&&clearTimeout(o),o=setTimeout(()=>{f(I,P)},a)):f(I,P))}function f(I,P){if(I===l.SEARCH&&P&&P.indexOf(y.H)===0)return;let N=window.location.href;N.indexOf("#")!==-1&&(N=N.substring(0,N.indexOf("#")));const q=window.location.hash||"",j=u(N);I===l.PAGE&&P==1||I===l.SEARCH&&P==y.Z?delete j[I]:I&&P!==null&&P!==""?j[I]=P:I&&delete j[I];let D=N;N.indexOf("?")!==-1&&(D=N.substring(0,N.indexOf("?"))),JSON.stringify(j)!==JSON.stringify({})&&(D=D+"?"+function(L){let V="";for(let J in L)if(L.hasOwnProperty(J)){V!==""&&(V+="&");let se="";if(J==="addsearchUnrelatedParams"){V+=L[J].split("&").join("&");continue}L[J]!==null&&L[J]!==void 0&&J!=="addsearchUnrelatedParams"&&(se="="+encodeURIComponent(L[J])),V=V+J+se}return V}(j)),D+=q,history.state===null?history.replaceState(j,"",D):JSON.stringify(history.state)!==JSON.stringify(j)&&history.pushState(j,"",D)}function g(I,P,N,q,j,D){const L=u(window.location.href);h(I,P,L,N,q,!1,D),window.onpopstate=V=>{const J=u(window.location.href);h(I,P,J,N,q,j,D)}}function h(I,P,N,q,j,D,L){let V=!1;if(N[l.FILTERS]){const J=_(N[l.FILTERS]);P.dispatch((0,d.eu)(J)),V=!0}if(N[l.FACETS]){const J=_(N[l.FACETS]);P.dispatch((0,d.Xh)(J)),V=!0}if(N[l.RANGE_FACETS]){const J=_(N[l.RANGE_FACETS]);P.dispatch((0,d.ks)(J)),V=!0}if(V){const J=q(P.getState().filters,L);I.setFilterObject(J)}else P.dispatch((0,d.eu)(null)),P.dispatch((0,d.Xh)(null)),I.setFilterObject(L||null);if(N[l.SORTBY]){const J=_(N[l.SORTBY]);P.dispatch((0,C.Ul)(I,J.field,J.order))}if(N[l.PAGE])P.dispatch((0,e.I)(I,parseInt(N[l.PAGE],10),null,P));else{const J=I.getSettings().paging;P.dispatch((0,e.I)(I,J.page,null,P))}if(N[l.SEARCH]){const J=decodeURIComponent(N[l.SEARCH]);P.dispatch((0,r.Ai)(J,!0,null,!0)),j(J)}else D===!0&&(P.dispatch((0,r.Ai)(y.Z,!0,null,!0)),j(y.Z))}function u(I){if(I.indexOf("?")===-1)return{};let P=I.substring(I.indexOf("?")+1);if(P==="")return{};P.indexOf("#")!==-1&&(P=P.substring(0,P.indexOf("#")));let N={};const q=P.split("&"),j=q.filter(L=>L.indexOf(l.SEARCH)===-1&&L.indexOf(l.PAGE)===-1&&L.indexOf(l.SORTBY)===-1&&L.indexOf(l.FILTERS)===-1&&L.indexOf(l.FACETS)===-1&&L.indexOf(l.RANGE_FACETS)===-1),D=q.filter(L=>!j.includes(L));return j.length&&(N.addsearchUnrelatedParams=j.join("&")),D.forEach(L=>{const V=L.split("=");if(V[0]&&V[0].length>0){let J=null;V.length>1&&(J=V[1]||"",J=J.replace(/\+/g,"%20"),J=decodeURIComponent(J)),N[V[0]]=J}}),N}function _(I){try{return JSON.parse(I)}catch{}return null}function k(I){return Object.keys(I).length>0?(delete I.v,JSON.stringify(I)):null}function A(I,P){I.indexOf("?")===-1?window.location.href=I+"?"+l.SEARCH+"="+encodeURIComponent(P):window.location.href=I+"&"+l.SEARCH+"="+encodeURIComponent(P)}},7435:function(b,c,n){function y(e){return!e||Object.keys(e).length===0}function r(e){if(e)return Object.keys(e).reduce((d,C)=>(d[C.toLowerCase()]=e[C],d),{})}n.d(c,{I:function(){return y},y:function(){return r}})},9491:function(b){function c(n,y){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),e=1;e<arguments.length;e++){var d=arguments[e];if(d!=null)for(var C=Object.keys(Object(d)),l=0,a=C.length;l<a;l++){var o=C[l],v=Object.getOwnPropertyDescriptor(d,o);v!==void 0&&v.enumerable&&(r[o]=d[o])}}return r}b.exports={assign:c,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:c})}}},3787:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return` <div class="item">
137
+ <span>`+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):o)+`</span>
138
+ <button data-type="`+h(typeof(o=(o=u(d,"type")||(e!=null?u(e,"type"):e))!=null?o:f)===g?o.call(v,{name:"type",hash:{},data:l,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):o)+'" data-name="'+h(typeof(o=(o=u(d,"name")||(e!=null?u(e,"name"):e))!=null?o:f)===g?o.call(v,{name:"name",hash:{},data:l,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):o)+'" data-value="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):o)+`"
139
+ `+((a=u(d,"if").call(v,e!=null?u(e,"rangeMin"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:14},end:{line:6,column:66}}}))!=null?a:"")+`
140
+ `+((a=u(d,"if").call(v,e!=null?u(e,"rangeMax"):e,{name:"if",hash:{},fn:r.program(4,l,0),inverse:r.noop,data:l,loc:{start:{line:7,column:8},end:{line:7,column:60}}}))!=null?a:"")+`
141
+ `+((a=u(d,"if").call(v,e!=null?u(e,"container"):e,{name:"if",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:8,column:8},end:{line:8,column:62}}}))!=null?a:"")+`
142
+ `+((a=u(d,"if").call(v,e!=null?u(e,"confFields"):e,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:9,column:8},end:{line:9,column:66}}}))!=null?a:"")+` >&#215;</button>
88
143
  </div>
89
- `},2:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return'data-range-min="'+r.escapeExpression(typeof(c=(c=i(u,"rangeMin")||(e!=null?i(e,"rangeMin"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"rangeMin",hash:{},data:a,loc:{start:{line:6,column:46},end:{line:6,column:58}}}):c)+'"'},4:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return'data-range-max="'+r.escapeExpression(typeof(c=(c=i(u,"rangeMax")||(e!=null?i(e,"rangeMax"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"rangeMax",hash:{},data:a,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):c)+'"'},6:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return'data-container="'+r.escapeExpression(typeof(c=(c=i(u,"container")||(e!=null?i(e,"container"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"container",hash:{},data:a,loc:{start:{line:8,column:41},end:{line:8,column:54}}}):c)+'"'},8:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return'data-conf-fields="'+r.escapeExpression(typeof(c=(c=i(u,"confFields")||(e!=null?i(e,"confFields"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"confFields",hash:{},data:a,loc:{start:{line:9,column:44},end:{line:9,column:58}}}):c)+'"'},10:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return(c=(i(u,"gt")||e&&i(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),(c=e!=null?i(e,"active"):e)!=null?i(c,"length"):c,1,{name:"gt",hash:{},fn:r.program(11,a,0),inverse:r.noop,data:a,loc:{start:{line:13,column:4},end:{line:15,column:11}}}))!=null?c:""},11:function(r,e,u,_,a){return` <div class="item"><button data-clearall="true">Clear all</button></div>
90
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=e??(r.nullContext||{}),S=r.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`<div class="addsearch-active-filters">
91
- `+((c=S(u,"each").call(i,e!=null?S(e,"active"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?c:"")+((c=S(u,"if").call(i,e!=null?S(e,"clearAll"):e,{name:"if",hash:{},fn:r.program(10,a,0),inverse:r.noop,data:a,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?c:"")+"</div>"},useData:!0})},209:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a,c,i){var S,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return` <ul class="suggestions">
92
- `+((S=f(u,"each").call(e??(r.nullContext||{}),i[1]!=null?f(i[1],"suggestions"):i[1],{name:"each",hash:{},fn:r.program(2,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))!=null?S:"")+` </ul>
93
- `},2:function(r,e,u,_,a,c,i){var S,f,y=e??(r.nullContext||{}),l=r.hooks.helperMissing,o="function",b=r.escapeExpression,E=r.lookupProperty||function(R,k){if(Object.prototype.hasOwnProperty.call(R,k))return R[k]};return' <li data-keyword="'+b(typeof(f=(f=E(u,"value")||(e!=null?E(e,"value"):e))!=null?f:l)===o?f.call(y,{name:"value",hash:{},data:a,loc:{start:{line:5,column:26},end:{line:5,column:35}}}):f)+'" data-index="'+b(typeof(f=(f=E(u,"index")||a&&E(a,"index"))!=null?f:l)===o?f.call(y,{name:"index",hash:{},data:a,loc:{start:{line:5,column:49},end:{line:5,column:59}}}):f)+'" '+((S=(E(u,"equals")||e&&E(e,"equals")||l).call(y,i[2]!=null?E(i[2],"activeSuggestionIndex"):i[2],a&&E(a,"index"),{name:"equals",hash:{},fn:r.program(3,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:5,column:61},end:{line:5,column:132}}}))!=null?S:"")+`>
94
- `+b(typeof(f=(f=E(u,"value")||(e!=null?E(e,"value"):e))!=null?f:l)===o?f.call(y,{name:"value",hash:{},data:a,loc:{start:{line:6,column:10},end:{line:6,column:19}}}):f)+`
144
+ `},2:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-min="'+r.escapeExpression(typeof(a=(a=o(d,"rangeMin")||(e!=null?o(e,"rangeMin"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMin",hash:{},data:l,loc:{start:{line:6,column:46},end:{line:6,column:58}}}):a)+'"'},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-max="'+r.escapeExpression(typeof(a=(a=o(d,"rangeMax")||(e!=null?o(e,"rangeMax"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMax",hash:{},data:l,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):a)+'"'},6:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-container="'+r.escapeExpression(typeof(a=(a=o(d,"container")||(e!=null?o(e,"container"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"container",hash:{},data:l,loc:{start:{line:8,column:41},end:{line:8,column:54}}}):a)+'"'},8:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-conf-fields="'+r.escapeExpression(typeof(a=(a=o(d,"confFields")||(e!=null?o(e,"confFields"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"confFields",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:58}}}):a)+'"'},10:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(o(d,"gt")||e&&o(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),(a=e!=null?o(e,"active"):e)!=null?o(a,"length"):a,1,{name:"gt",hash:{},fn:r.program(11,l,0),inverse:r.noop,data:l,loc:{start:{line:13,column:4},end:{line:15,column:11}}}))!=null?a:""},11:function(r,e,d,C,l){return` <div class="item"><button data-clearall="true">Clear all</button></div>
145
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return`<div class="addsearch-active-filters">
146
+ `+((a=v(d,"each").call(o,e!=null?v(e,"active"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?a:"")+((a=v(d,"if").call(o,e!=null?v(e,"clearAll"):e,{name:"if",hash:{},fn:r.program(10,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},209:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
147
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),o[1]!=null?f(o[1],"suggestions"):o[1],{name:"each",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))!=null?v:"")+` </ul>
148
+ `},2:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return' <li data-keyword="'+_(typeof(f=(f=k(d,"value")||(e!=null?k(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:5,column:26},end:{line:5,column:35}}}):f)+'" data-index="'+_(typeof(f=(f=k(d,"index")||l&&k(l,"index"))!=null?f:h)===u?f.call(g,{name:"index",hash:{},data:l,loc:{start:{line:5,column:49},end:{line:5,column:59}}}):f)+'" '+((v=(k(d,"equals")||e&&k(e,"equals")||h).call(g,o[2]!=null?k(o[2],"activeSuggestionIndex"):o[2],l&&k(l,"index"),{name:"equals",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:5,column:61},end:{line:5,column:132}}}))!=null?v:"")+`>
149
+ `+_(typeof(f=(f=k(d,"value")||(e!=null?k(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:6,column:10},end:{line:6,column:19}}}):f)+`
95
150
  </li>
96
- `},3:function(r,e,u,_,a){return'class="active"'},5:function(r,e,u,_,a,c,i){var S,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return` <ul class="suggestions">
97
- `+((S=f(u,"each").call(e??(r.nullContext||{}),i[1]!=null?f(i[1],"customFields"):i[1],{name:"each",hash:{},fn:r.program(2,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))!=null?S:"")+` </ul>
98
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f=e??(r.nullContext||{}),y=r.hooks.helperMissing,l=r.lookupProperty||function(o,b){if(Object.prototype.hasOwnProperty.call(o,b))return o[b]};return`<div class="addsearch-autocomplete">
99
- `+((S=(l(u,"gt")||e&&l(e,"gt")||y).call(f,(S=e!=null?l(e,"suggestions"):e)!=null?l(S,"length"):S,0,{name:"gt",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:10,column:9}}}))!=null?S:"")+((S=(l(u,"gt")||e&&l(e,"gt")||y).call(f,(S=e!=null?l(e,"customFields"):e)!=null?l(S,"length"):S,0,{name:"gt",hash:{},fn:r.program(5,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:11,column:2},end:{line:19,column:9}}}))!=null?S:"")+"</div>"},useData:!0,useDepths:!0})},1353:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i=e??(r.nullContext||{}),S=r.hooks.helperMissing,f="function",y=r.escapeExpression,l=r.lookupProperty||function(o,b){if(Object.prototype.hasOwnProperty.call(o,b))return o[b]};return' <li data-facet="'+y(typeof(c=(c=l(u,"value")||(e!=null?l(e,"value"):e))!=null?c:S)===f?c.call(i,{name:"value",hash:{},data:a,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):c)+`">
151
+ `},3:function(r,e,d,C,l){return'class="active"'},5:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
152
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),o[1]!=null?f(o[1],"customFields"):o[1],{name:"each",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))!=null?v:"")+` </ul>
153
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-autocomplete">
154
+ `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"suggestions"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:10,column:9}}}))!=null?v:"")+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"customFields"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(5,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:11,column:2},end:{line:19,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},881:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <label class="toggle-switch">
155
+ <input type="checkbox" `+((a=o(d,"unless").call(e??(r.nullContext||{}),e!=null?o(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:30,column:33},end:{line:30,column:71}}}))!=null?a:"")+`>
156
+ <span class="slider round"></span>
157
+ </label>
158
+ `},2:function(r,e,d,C,l){return"checked"},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"hadError"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.program(7,l,0),data:l,loc:{start:{line:37,column:4},end:{line:171,column:11}}}))!=null?a:""},5:function(r,e,d,C,l){return` <div class='error-message'>
159
+ <h2 class='error-message-headline'>Unable to generate AI Answer at this time.</h2>
160
+ <p class='error-message-text'></p>We apologize for the inconvenience. Please try again later.</p>
161
+ </div>
162
+ `},7:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return((a=h(d,"if").call(v,e!=null?h(e,"isResultLoading"):e,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:44,column:6},end:{line:62,column:13}}}))!=null?a:"")+` <h4 class='sub-headline'>Question: "`+g(typeof(o=(o=h(d,"subHeadlineText")||(e!=null?h(e,"subHeadlineText"):e))!=null?o:f)=="function"?o.call(v,{name:"subHeadlineText",hash:{},data:l,loc:{start:{line:63,column:42},end:{line:63,column:61}}}):o)+`"</h4>
163
+ <div>
164
+ <div class='answer-container'>
165
+ <div class='fade-out-overlay'></div>
166
+ <div class='answer-text'>
167
+ <p>`+g((h(d,"markdown")||e&&h(e,"markdown")||f).call(v,e!=null?h(e,"answerText"):e,{name:"markdown",hash:{},data:l,loc:{start:{line:68,column:15},end:{line:68,column:38}}}))+`</p>
168
+ </div>
169
+ <div class='action-buttons-group'>
170
+ <span class='copy-confirm-message'></span>
171
+ <button class='copy-btn'><svg
172
+ width='24'
173
+ height='24'
174
+ viewBox='0 0 24 24'
175
+ fill='none'
176
+ xmlns='http://www.w3.org/2000/svg'
177
+ >
178
+ <path
179
+ d='M16.001 1.00018H4.00098C2.90098 1.00018 2.00098 1.90018 2.00098 3.00018V17.0002H4.00098V3.00018H16.001V1.00018ZM19.001 5.00018H8.00098C6.90098 5.00018 6.00098 5.90018 6.00098 7.00018V21.0002C6.00098 22.1002 6.90098 23.0002 8.00098 23.0002H19.001C20.101 23.0002 21.001 22.1002 21.001 21.0002V7.00018C21.001 5.90018 20.101 5.00018 19.001 5.00018ZM19.001 21.0002H8.00098V7.00018H19.001V21.0002Z'
180
+ fill='#177FFF'
181
+ />
182
+ </svg>
183
+ </button>
184
+ <button class='thumbs-up-btn'>
185
+ `+((a=(h(d,"equals")||e&&h(e,"equals")||f).call(v,e!=null?h(e,"sentimentState"):e,"positive",{name:"equals",hash:{},fn:r.program(10,l,0),inverse:r.program(12,l,0),data:l,loc:{start:{line:86,column:14},end:{line:109,column:25}}}))!=null?a:"")+` </button>
186
+ <button class='thumbs-down-btn'>
187
+ `+((a=(h(d,"equals")||e&&h(e,"equals")||f).call(v,e!=null?h(e,"sentimentState"):e,"negative",{name:"equals",hash:{},fn:r.program(14,l,0),inverse:r.program(16,l,0),data:l,loc:{start:{line:112,column:14},end:{line:135,column:25}}}))!=null?a:"")+` </button>
188
+ </div>
189
+ `+((a=h(d,"if").call(v,e!=null?h(e,"answerText"):e,{name:"if",hash:{},fn:r.program(18,l,0),inverse:r.noop,data:l,loc:{start:{line:138,column:10},end:{line:149,column:17}}}))!=null?a:"")+` </div>
190
+ <button class='show-more-btn'>
191
+ <span class='button-text'>Show more</span>
192
+ <svg
193
+ class='chevron'
194
+ width='24'
195
+ height='24'
196
+ viewBox='0 0 24 24'
197
+ fill='none'
198
+ xmlns='http://www.w3.org/2000/svg'
199
+ >
200
+ <path
201
+ d='M6 9L12 15L18 9'
202
+ stroke='#177FFF'
203
+ stroke-width='2'
204
+ stroke-linecap='round'
205
+ stroke-linejoin='round'
206
+ />
207
+ </svg>
208
+ </button>
209
+ </div>
210
+ `},8:function(r,e,d,C,l){return` <div class='loading-overlay'>
211
+ <svg
212
+ class='loading-spinner'
213
+ viewBox='0 0 100 101'
214
+ fill='none'
215
+ xmlns='http://www.w3.org/2000/svg'
216
+ >
217
+ <path
218
+ d='M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z'
219
+ fill='#f4f9ff'
220
+ />
221
+ <path
222
+ d='M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z'
223
+ fill='#177FFF'
224
+ />
225
+ </svg>
226
+ </div>
227
+ `},10:function(r,e,d,C,l){return` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
228
+ <g clip-path="url(#clip0_184_2273)">
229
+ <path d="M12.5205 0.946481C12.634 0.745524 12.8066 0.58434 13.0148 0.484789C13.223 0.385239 13.4568 0.35214 13.6845 0.389981L14.0415 0.449981C14.7187 0.56282 15.3645 0.817439 15.9365 1.19716C16.5085 1.57689 16.9939 2.07316 17.3608 2.65347C17.7277 3.23378 17.9679 3.88505 18.0656 4.56464C18.1634 5.24422 18.1165 5.93678 17.928 6.59698L17.241 8.99998H18.2385C18.9963 8.99997 19.7436 9.1766 20.4211 9.51585C21.0987 9.85509 21.6879 10.3476 22.1418 10.9543C22.5958 11.561 22.9021 12.2652 23.0364 13.011C23.1707 13.7567 23.1293 14.5235 22.9155 15.2505L21.213 21.039C20.9615 21.8939 20.44 22.6444 19.7264 23.1781C19.0129 23.7119 18.1456 24.0002 17.2545 24H9.879C8.70381 23.9998 7.55819 23.6316 6.603 22.947C6.3585 23.274 6.0411 23.5394 5.67603 23.7222C5.31096 23.905 4.90828 24.0001 4.5 24H2.625C1.92881 24 1.26113 23.7234 0.768845 23.2311C0.276562 22.7389 0 22.0712 0 21.375L0 11.625C0 10.176 1.176 8.99998 2.625 8.99998H7.7505C7.81675 8.99981 7.88177 8.98209 7.93894 8.94863C7.99612 8.91517 8.04341 8.86716 8.076 8.80948L12.5205 0.946481Z" fill="#A0CBFF"/>
230
+ <path d="M12.5205 0.946481C12.634 0.745524 12.8066 0.58434 13.0148 0.484789C13.223 0.385239 13.4568 0.35214 13.6845 0.389981L14.0415 0.449981C14.7187 0.56282 15.3645 0.817439 15.9365 1.19716C16.5085 1.57689 16.9939 2.07316 17.3608 2.65347C17.7277 3.23378 17.9679 3.88505 18.0656 4.56464C18.1634 5.24422 18.1165 5.93678 17.928 6.59698L17.241 8.99998H18.2385C18.9963 8.99997 19.7436 9.1766 20.4211 9.51585C21.0987 9.85509 21.6879 10.3476 22.1418 10.9543C22.5958 11.561 22.9021 12.2652 23.0364 13.011C23.1707 13.7567 23.1293 14.5235 22.9155 15.2505L21.213 21.039C20.9615 21.8939 20.44 22.6444 19.7264 23.1781C19.0129 23.7119 18.1456 24.0002 17.2545 24H9.879C8.70381 23.9998 7.55819 23.6316 6.603 22.947C6.3585 23.274 6.0411 23.5394 5.67603 23.7222C5.31096 23.905 4.90828 24.0001 4.5 24H2.625C1.92881 24 1.26113 23.7234 0.768845 23.2311C0.276562 22.7389 0 22.0712 0 21.375L0 11.625C0 10.176 1.176 8.99998 2.625 8.99998H7.7505C7.81675 8.99981 7.88177 8.98209 7.93894 8.94863C7.99612 8.91517 8.04341 8.86716 8.076 8.80948L12.5205 0.946481ZM7.125 20.4735L7.719 20.9685C8.325 21.474 9.09 21.75 9.879 21.75H17.2545C17.6596 21.7503 18.0539 21.6193 18.3784 21.3768C18.7029 21.1342 18.9401 20.7931 19.0545 20.4045L20.757 14.616C20.8722 14.2245 20.8945 13.8116 20.8222 13.41C20.75 13.0083 20.585 12.6291 20.3406 12.3024C20.0961 11.9756 19.7788 11.7104 19.4139 11.5277C19.049 11.345 18.6466 11.2499 18.2385 11.25H15.75C15.5759 11.2499 15.4042 11.2095 15.2484 11.1318C15.0925 11.0542 14.9569 10.9414 14.852 10.8024C14.7472 10.6634 14.6761 10.5019 14.6442 10.3308C14.6124 10.1596 14.6207 9.98339 14.6685 9.81598L15.765 5.97898C15.9506 5.32919 15.8784 4.63287 15.5635 4.03495C15.2486 3.43702 14.7153 2.98357 14.0745 2.76898L10.035 9.91648C9.80634 10.3211 9.47437 10.6577 9.073 10.892C8.67163 11.1263 8.21525 11.2498 7.7505 11.25H7.125V20.4735ZM4.875 11.25H2.625C2.52554 11.25 2.43016 11.2895 2.35984 11.3598C2.28951 11.4301 2.25 11.5255 2.25 11.625V21.375C2.25 21.582 2.418 21.75 2.625 21.75H4.5C4.59946 21.75 4.69484 21.7105 4.76517 21.6401C4.83549 21.5698 4.875 21.4744 4.875 21.375V11.25Z" fill="#1969CC"/>
231
+ </g>
232
+ <defs>
233
+ <clipPath id="clip0_184_2273">
234
+ <rect width="24" height="24" fill="white"/>
235
+ </clipPath>
236
+ </defs>
237
+ </svg>
238
+ `},12:function(r,e,d,C,l){return` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
239
+ <g clip-path="url(#clip0_2_6294)">
240
+ <path d="M12.5215 0.946664C12.635 0.745707 12.8076 0.584523 13.0158 0.484973C13.224 0.385422 13.4578 0.352323 13.6855 0.390164L14.0425 0.450164C14.7197 0.563003 15.3655 0.817622 15.9375 1.19735C16.5095 1.57707 16.9949 2.07334 17.3618 2.65365C17.7287 3.23397 17.9689 3.88524 18.0666 4.56482C18.1644 5.2444 18.1175 5.93697 17.929 6.59716L17.242 9.00016H18.2395C18.9972 9.00015 19.7445 9.17678 20.4221 9.51603C21.0997 9.85528 21.6888 10.3478 22.1428 10.9545C22.5968 11.5612 22.9031 12.2654 23.0374 13.0112C23.1717 13.7569 23.1303 14.5237 22.9165 15.2507L21.214 21.0392C20.9625 21.8941 20.441 22.6446 19.7274 23.1783C19.0138 23.7121 18.1466 24.0004 17.2555 24.0002H9.87998C8.70479 24 7.55917 23.6318 6.60398 22.9472C6.35948 23.2741 6.04208 23.5396 5.677 23.7224C5.31193 23.9052 4.90926 24.0003 4.50098 24.0002H2.62598C1.92978 24.0002 1.2621 23.7236 0.769821 23.2313C0.277538 22.739 0.000976563 22.0714 0.000976563 21.3752L0.000976562 11.6252C0.000976562 10.1762 1.17698 9.00016 2.62598 9.00016H7.75148C7.81772 8.99999 7.88274 8.98227 7.93992 8.94881C7.99709 8.91535 8.04438 8.86734 8.07698 8.80966L12.5215 0.946664ZM7.12598 20.4737L7.71998 20.9687C8.32598 21.4742 9.09098 21.7502 9.87998 21.7502H17.2555C17.6606 21.7504 18.0549 21.6195 18.3794 21.377C18.7039 21.1344 18.9411 20.7933 19.0555 20.4047L20.758 14.6162C20.8732 14.2247 20.8955 13.8118 20.8232 13.4101C20.7509 13.0085 20.586 12.6293 20.3415 12.3026C20.0971 11.9758 19.7798 11.7106 19.4149 11.5279C19.05 11.3452 18.6475 11.2501 18.2395 11.2502H15.751C15.5769 11.2501 15.4052 11.2097 15.2493 11.132C15.0935 11.0543 14.9578 10.9416 14.853 10.8026C14.7482 10.6636 14.677 10.5021 14.6452 10.331C14.6133 10.1598 14.6217 9.98357 14.6695 9.81616L15.766 5.97916C15.9516 5.32938 15.8794 4.63305 15.5645 4.03513C15.2496 3.43721 14.7163 2.98376 14.0755 2.76916L10.036 9.91666C9.80732 10.3213 9.47535 10.6579 9.07397 10.8922C8.6726 11.1265 8.21622 11.25 7.75148 11.2502H7.12598V20.4737ZM4.87598 11.2502H2.62598C2.52652 11.2502 2.43114 11.2897 2.36081 11.36C2.29049 11.4303 2.25098 11.5257 2.25098 11.6252V21.3752C2.25098 21.5822 2.41898 21.7502 2.62598 21.7502H4.50098C4.60043 21.7502 4.69582 21.7107 4.76614 21.6403C4.83647 21.57 4.87598 21.4746 4.87598 21.3752V11.2502Z" fill="#177FFF"/>
241
+ </g>
242
+ <defs>
243
+ <clipPath id="clip0_2_6294">
244
+ <rect width="24" height="24" fill="white" transform="translate(0.000976562 0.000183105)"/>
245
+ </clipPath>
246
+ </defs>
247
+ </svg>
248
+ `},14:function(r,e,d,C,l){return` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
249
+ <g clip-path="url(#clip0_184_2278)">
250
+ <path d="M11.4795 23.0535C11.366 23.2545 11.1934 23.4157 10.9852 23.5152C10.777 23.6148 10.5432 23.6479 10.3155 23.61L9.9585 23.55C9.28126 23.4372 8.63549 23.1826 8.06348 22.8028C7.49147 22.4231 7.00612 21.9268 6.63922 21.3465C6.27231 20.7662 6.03211 20.1149 5.93436 19.4354C5.83662 18.7558 5.88352 18.0632 6.072 17.403L6.759 15L5.7615 15C5.00375 15 4.25643 14.8234 3.57886 14.4842C2.90129 14.1449 2.31214 13.6524 1.85816 13.0457C1.40419 12.439 1.0979 11.7348 0.963597 10.989C0.829299 10.2433 0.870694 9.47648 1.0845 8.74952L2.787 2.96102C3.03845 2.10612 3.55999 1.35563 4.27357 0.821871C4.98714 0.288109 5.85438 -0.000225388 6.74549 2.05819e-05L14.121 1.99371e-05C15.2962 0.000187681 16.4418 0.368422 17.397 1.05302C17.6415 0.726046 17.9589 0.460616 18.324 0.277819C18.689 0.0950227 19.0917 -9.68457e-05 19.5 1.94669e-05L21.375 1.9303e-05C22.0712 1.92421e-05 22.7389 0.276581 23.2312 0.768864C23.7234 1.26115 24 1.92883 24 2.62502L24 12.375C24 13.824 22.824 15 21.375 15L16.2495 15C16.1833 15.0002 16.1182 15.0179 16.0611 15.0514C16.0039 15.0848 15.9566 15.1328 15.924 15.1905L11.4795 23.0535Z" fill="#A0CBFF"/>
251
+ <path d="M11.4795 23.0535C11.366 23.2545 11.1934 23.4157 10.9852 23.5152C10.777 23.6148 10.5432 23.6479 10.3155 23.61L9.9585 23.55C9.28126 23.4372 8.63549 23.1826 8.06348 22.8028C7.49147 22.4231 7.00612 21.9268 6.63922 21.3465C6.27231 20.7662 6.03211 20.1149 5.93436 19.4354C5.83662 18.7558 5.88352 18.0632 6.072 17.403L6.759 15L5.7615 15C5.00375 15 4.25643 14.8234 3.57886 14.4842C2.90129 14.1449 2.31214 13.6524 1.85816 13.0457C1.40419 12.439 1.0979 11.7348 0.963597 10.989C0.829299 10.2433 0.870694 9.47648 1.0845 8.74952L2.787 2.96102C3.03845 2.10612 3.55999 1.35563 4.27357 0.821871C4.98714 0.288109 5.85438 -0.000225388 6.74549 2.05819e-05L14.121 1.99371e-05C15.2962 0.000187681 16.4418 0.368422 17.397 1.05302C17.6415 0.726046 17.9589 0.460616 18.324 0.277819C18.689 0.0950227 19.0917 -9.68457e-05 19.5 1.94669e-05L21.375 1.9303e-05C22.0712 1.92421e-05 22.7389 0.276581 23.2312 0.768864C23.7234 1.26115 24 1.92883 24 2.62502L24 12.375C24 13.824 22.824 15 21.375 15L16.2495 15C16.1833 15.0002 16.1182 15.0179 16.0611 15.0514C16.0039 15.0848 15.9566 15.1328 15.924 15.1905L11.4795 23.0535ZM16.875 3.52652L16.281 3.03152C15.675 2.52602 14.91 2.25002 14.121 2.25002L6.74549 2.25002C6.34038 2.24974 5.94606 2.38067 5.62158 2.62322C5.2971 2.86577 5.0599 3.20689 4.9455 3.59552L3.243 9.38402C3.1278 9.77549 3.10547 10.1884 3.17776 10.59C3.25005 10.9917 3.41498 11.3709 3.65944 11.6976C3.90391 12.0244 4.22118 12.2896 4.58608 12.4723C4.95097 12.655 5.35343 12.7501 5.7615 12.75L8.25 12.75C8.4241 12.7501 8.59582 12.7905 8.75164 12.8682C8.90746 12.9458 9.04312 13.0586 9.14796 13.1976C9.25279 13.3366 9.32393 13.4981 9.35578 13.6692C9.38763 13.8404 9.37932 14.0166 9.3315 14.184L8.235 18.021C8.04942 18.6708 8.12158 19.3671 8.43647 19.9651C8.75136 20.563 9.28471 21.0164 9.9255 21.231L13.965 14.0835C14.1937 13.6789 14.5256 13.3423 14.927 13.108C15.3284 12.8737 15.7848 12.7502 16.2495 12.75L16.875 12.75L16.875 3.52652ZM19.125 12.75L21.375 12.75C21.4745 12.75 21.5698 12.7105 21.6402 12.6402C21.7105 12.5699 21.75 12.4745 21.75 12.375L21.75 2.62502C21.75 2.41802 21.582 2.25002 21.375 2.25002L19.5 2.25002C19.4005 2.25002 19.3052 2.28953 19.2348 2.35985C19.1645 2.43018 19.125 2.52556 19.125 2.62502L19.125 12.75Z" fill="#1969CC"/>
252
+ </g>
253
+ <defs>
254
+ <clipPath id="clip0_184_2278">
255
+ <rect width="24" height="24" fill="white" transform="translate(24 24) rotate(180)"/>
256
+ </clipPath>
257
+ </defs>
258
+ </svg>
259
+ `},16:function(r,e,d,C,l){return` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
260
+ <g clip-path="url(#clip0_2_6296)">
261
+ <path d="M11.4808 23.0537C11.3673 23.2546 11.1947 23.4158 10.9865 23.5154C10.7782 23.6149 10.5444 23.648 10.3168 23.6102L9.95977 23.5502C9.28236 23.4374 8.63643 23.1827 8.0643 22.8029C7.49216 22.4231 7.00672 21.9267 6.63979 21.3462C6.27286 20.7657 6.03271 20.1142 5.93508 19.4345C5.83746 18.7547 5.88455 18.062 6.07327 17.4017L6.76027 15.0002H5.76277C5.00502 15.0002 4.2577 14.8236 3.58013 14.4843C2.90257 14.1451 2.31341 13.6525 1.85944 13.0458C1.40546 12.4391 1.09917 11.7349 0.964872 10.9892C0.830574 10.2434 0.871969 9.47665 1.08577 8.74968L2.78827 2.96118C3.03863 2.10996 3.55679 1.36215 4.26583 0.828749C4.97487 0.295346 5.83701 0.00478193 6.72427 0.000183105H14.1463C15.3163 0.00468311 16.4533 0.375183 17.3983 1.05318C17.6411 0.728434 17.9559 0.464356 18.3179 0.281661C18.6799 0.0989658 19.0793 0.00262104 19.4848 0.000183105L21.3928 0.000183105C22.0861 0.00454127 22.7495 0.283026 23.2383 0.774837C23.727 1.26665 24.0013 1.93184 24.0013 2.62518V12.3752C24.0013 13.0714 23.7247 13.7391 23.2324 14.2313C22.7401 14.7236 22.0725 15.0002 21.3763 15.0002H16.2508C16.1845 15.0004 16.1195 15.0181 16.0623 15.0515C16.0052 15.085 15.9579 15.133 15.9253 15.1907L11.4808 23.0537ZM16.8763 3.52668L16.2823 3.03168C15.6758 2.52664 14.9115 2.25012 14.1223 2.25018H6.74527C6.34041 2.25022 5.94644 2.3813 5.62226 2.62383C5.29808 2.86636 5.0611 3.2073 4.94677 3.59568L3.24427 9.38418C3.12908 9.77566 3.10674 10.1886 3.17903 10.5902C3.25132 10.9918 3.41625 11.3711 3.66072 11.6978C3.90518 12.0245 4.22246 12.2898 4.58735 12.4724C4.95224 12.6551 5.3547 12.7502 5.76277 12.7502H8.25127C8.42537 12.7502 8.59709 12.7907 8.75291 12.8683C8.90873 12.946 9.0444 13.0588 9.14923 13.1978C9.25407 13.3368 9.32521 13.4982 9.35706 13.6694C9.3889 13.8406 9.38059 14.0168 9.33277 14.1842L8.23627 18.0212C8.05069 18.671 8.12286 19.3673 8.43775 19.9652C8.75263 20.5631 9.28598 21.0166 9.92677 21.2312L13.9663 14.0837C14.1949 13.6791 14.5269 13.3424 14.9283 13.1081C15.3296 12.8739 15.786 12.7503 16.2508 12.7502H16.8763V3.52668ZM19.1263 12.7502H21.3763C21.4757 12.7502 21.5711 12.7107 21.6414 12.6403C21.7118 12.57 21.7513 12.4746 21.7513 12.3752V2.62518C21.7513 2.52573 21.7118 2.43034 21.6414 2.36002C21.5711 2.28969 21.4757 2.25018 21.3763 2.25018H19.5013C19.4018 2.25018 19.3064 2.28969 19.2361 2.36002C19.1658 2.43034 19.1263 2.52573 19.1263 2.62518V12.7502Z" fill="#177FFF"/>
262
+ </g>
263
+ <defs>
264
+ <clipPath id="clip0_2_6296">
265
+ <rect width="24" height="24" fill="white" transform="translate(0.000976562 0.000183105)"/>
266
+ </clipPath>
267
+ </defs>
268
+ </svg>
269
+ `},18:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <div class='sources'>
270
+ <h4 class='sources-headline'>`+r.escapeExpression(typeof(o=(o=f(d,"sourcesHeadlineText")||(e!=null?f(e,"sourcesHeadlineText"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(v,{name:"sourcesHeadlineText",hash:{},data:l,loc:{start:{line:140,column:43},end:{line:140,column:66}}}):o)+`</h4>
271
+ <div class='sources-list'>
272
+ `+((a=f(d,"each").call(v,e!=null?f(e,"sources"):e,{name:"each",hash:{},fn:r.program(19,l,0),inverse:r.noop,data:l,loc:{start:{line:142,column:16},end:{line:146,column:25}}}))!=null?a:"")+` </div>
273
+ </div>
274
+ `},19:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return" <a href='"+g(typeof(a=(a=h(d,"url")||(e!=null?h(e,"url"):e))!=null?a:v)===f?a.call(o,{name:"url",hash:{},data:l,loc:{start:{line:143,column:27},end:{line:143,column:34}}}):a)+`' class='source'>
275
+ `+g(typeof(a=(a=h(d,"title")||(e!=null?h(e,"title"):e))!=null?a:v)===f?a.call(o,{name:"title",hash:{},data:l,loc:{start:{line:144,column:20},end:{line:144,column:29}}}):a)+`
276
+ </a>
277
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class='addsearch-conversational-search-result'>
278
+ <div class='header'>
279
+ <div>
280
+ <div class='main-headline'>
281
+ <svg
282
+ width='24'
283
+ height='25'
284
+ viewBox='0 0 24 25'
285
+ fill='none'
286
+ xmlns='http://www.w3.org/2000/svg'
287
+ >
288
+ <path
289
+ d='M8.62341 16.5296C8.79246 16.649 8.98594 16.7293 9.18984 16.7646C9.39374 16.8 9.60295 16.7896 9.80232 16.7341C10.0017 16.6787 10.1862 16.5795 10.3426 16.444C10.4989 16.3084 10.6232 16.1397 10.7063 15.9502L11.3663 13.9445C11.527 13.462 11.7977 13.0236 12.1572 12.6639C12.5166 12.3041 12.9548 12.033 13.4371 11.8719L15.3554 11.2488C15.6278 11.1534 15.8634 10.975 16.0291 10.7388C16.1568 10.5593 16.2399 10.3521 16.2717 10.1342C16.3034 9.91634 16.2829 9.69402 16.2118 9.48561C16.1407 9.27721 16.0211 9.0887 15.8628 8.93564C15.7045 8.78258 15.5121 8.66937 15.3014 8.60533L13.4028 7.98819C12.9202 7.82807 12.4814 7.55772 12.1214 7.19857C11.7613 6.83942 11.4899 6.40133 11.3286 5.91905L10.7054 4.00162C10.6095 3.73 10.4316 3.49489 10.1963 3.32876C9.95947 3.16547 9.67862 3.07803 9.39098 3.07803C9.10334 3.07803 8.8225 3.16547 8.5857 3.32876C8.34653 3.49768 8.1666 3.73758 8.07141 4.01448L7.44055 5.9559C7.27979 6.42576 7.01418 6.85286 6.66385 7.20482C6.31351 7.55679 5.88766 7.82439 5.41855 7.98733L3.49855 8.60962C3.22535 8.70619 2.98903 8.88553 2.8225 9.12266C2.65596 9.3598 2.56748 9.64295 2.56937 9.93272C2.57125 10.2225 2.66341 10.5045 2.83302 10.7394C3.00263 10.9744 3.24125 11.1506 3.5157 11.2436L5.41512 11.8608C6.03103 12.0672 6.57243 12.4506 6.9717 12.963C7.1997 13.257 7.37541 13.587 7.49112 13.9402L8.11512 15.855C8.21112 16.1276 8.38941 16.3633 8.62512 16.5296M16.9771 21.741C17.1516 21.8643 17.3601 21.9302 17.5737 21.9296C17.7859 21.9303 17.993 21.8653 18.1668 21.7436C18.3454 21.6168 18.4792 21.4368 18.5491 21.2293L18.868 20.2496C18.9354 20.0462 19.0492 19.8612 19.2005 19.7095C19.3519 19.5577 19.5365 19.4433 19.7397 19.3753L20.7391 19.0513C20.9405 18.9794 21.1148 18.8472 21.2382 18.6726C21.3617 18.4981 21.4284 18.2897 21.4291 18.0759C21.4291 17.8564 21.3589 17.6427 21.2288 17.4659C21.0986 17.2892 20.9153 17.1587 20.7057 17.0936L19.7251 16.7765C19.5216 16.709 19.3366 16.595 19.1848 16.4435C19.0331 16.2921 18.9187 16.1073 18.8508 15.9039L18.5251 14.907C18.4549 14.7036 18.3226 14.5273 18.1469 14.403C17.9711 14.2787 17.7609 14.2127 17.5456 14.2142C17.3304 14.2157 17.1211 14.2847 16.9471 14.4114C16.7732 14.5382 16.6434 14.7163 16.576 14.9208L16.2554 15.903C16.1897 16.1038 16.0788 16.2868 15.9312 16.4379C15.7837 16.589 15.6034 16.7043 15.4043 16.7748L14.4048 17.0988C14.203 17.1704 14.0283 17.3027 13.9045 17.4774C13.7807 17.6522 13.7138 17.8609 13.7131 18.075C13.7133 18.2911 13.7816 18.5016 13.9082 18.6767C14.0349 18.8518 14.2134 18.9826 14.4186 19.0505L15.3991 19.3693C15.6032 19.437 15.7886 19.5516 15.9404 19.7039C16.0922 19.8562 16.2063 20.0419 16.2734 20.2462L16.5983 21.243C16.6692 21.4444 16.801 21.6188 16.9754 21.7419'
290
+ fill='#177FFF'
291
+ />
292
+ </svg>
293
+
294
+ <h3 class='main-headline-text'>`+h(typeof(o=(o=u(d,"mainHeadlineText")||(e!=null?u(e,"mainHeadlineText"):e))!=null?o:f)===g?o.call(v,{name:"mainHeadlineText",hash:{},data:l,loc:{start:{line:18,column:39},end:{line:18,column:59}}}):o)+`</h3>
295
+ </div>
296
+ <p class='ai-explanation-text-mobile'>
297
+ `+h(typeof(o=(o=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?o:f)===g?o.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:21,column:8},end:{line:21,column:29}}}):o)+`
298
+ </p>
299
+ </div>
300
+ <div class="header-right-hand-side-container" >
301
+ <p class='ai-explanation-text'>
302
+ `+h(typeof(o=(o=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?o:f)===g?o.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:26,column:8},end:{line:26,column:29}}}):o)+`
303
+ </p>
304
+ `+((a=u(d,"if").call(v,e!=null?u(e,"showHideToggle"):e,{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:28,column:6},end:{line:33,column:13}}}))!=null?a:"")+` </div>
305
+ </div>
306
+ `+((a=u(d,"unless").call(v,e!=null?u(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(4,l,0),inverse:r.noop,data:l,loc:{start:{line:36,column:2},end:{line:172,column:13}}}))!=null?a:"")+"</div>"},useData:!0})},1353:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <li data-facet="'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):a)+`">
100
307
  <label>
101
- <input type="checkbox" value="`+y(typeof(c=(c=l(u,"value")||(e!=null?l(e,"value"):e))!=null?c:S)===f?c.call(i,{name:"value",hash:{},data:a,loc:{start:{line:6,column:40},end:{line:6,column:49}}}):c)+'" /><span>'+y(typeof(c=(c=l(u,"value")||(e!=null?l(e,"value"):e))!=null?c:S)===f?c.call(i,{name:"value",hash:{},data:a,loc:{start:{line:6,column:59},end:{line:6,column:68}}}):c)+"</span> <em>("+y(typeof(c=(c=l(u,"count")||(e!=null?l(e,"count"):e))!=null?c:S)===f?c.call(i,{name:"count",hash:{},data:a,loc:{start:{line:6,column:81},end:{line:6,column:90}}}):c)+`)</em>
308
+ <input type="checkbox" value="`+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:49}}}):a)+'" /><span>'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:6,column:59},end:{line:6,column:68}}}):a)+"</span> <em>("+g(typeof(a=(a=h(d,"count")||(e!=null?h(e,"count"):e))!=null?a:v)===f?a.call(o,{name:"count",hash:{},data:l,loc:{start:{line:6,column:81},end:{line:6,column:90}}}):a)+`)</em>
102
309
  </label>
103
310
  </li>
104
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-facets">
311
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
105
312
  <ul>
106
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))!=null?c:"")+` </ul>
107
- </div>`},useData:!0})},3668:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return` <label>
108
- <input type="checkbox" data-filter="`+l(typeof(i=(i=o(u,"key")||a&&o(a,"key"))!=null?i:f)===y?i.call(S,{name:"key",hash:{},data:a,loc:{start:{line:4,column:42},end:{line:4,column:50}}}):i)+'" '+((c=o(u,"if").call(S,e!=null?o(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:52},end:{line:4,column:80}}}))!=null?c:"")+">"+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:4,column:81},end:{line:4,column:90}}}):i)+`
313
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))!=null?a:"")+` </ul>
314
+ </div>`},useData:!0})},3668:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return` <label>
315
+ <input type="checkbox" data-filter="`+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:42},end:{line:4,column:50}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:52},end:{line:4,column:80}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:81},end:{line:4,column:90}}}):o)+`
109
316
  </label>
110
- `},2:function(r,e,u,_,a){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-filters-checkboxgroup">
111
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?c:"")+"</div>"},useData:!0})},8810:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a,c,i){var S,f,y=r.escapeExpression,l=e??(r.nullContext||{}),o=r.hooks.helperMissing,b="function",E=r.lookupProperty||function(R,k){if(Object.prototype.hasOwnProperty.call(R,k))return R[k]};return` <label>
112
- <input type="radio" name=`+y(r.lambda(i[1]!=null?E(i[1],"containerId"):i[1],e))+' value="'+y(typeof(f=(f=E(u,"key")||a&&E(a,"key"))!=null?f:o)===b?f.call(l,{name:"key",hash:{},data:a,loc:{start:{line:4,column:57},end:{line:4,column:65}}}):f)+'" '+((S=E(u,"if").call(l,e!=null?E(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:4,column:67},end:{line:4,column:95}}}))!=null?S:"")+">"+y(typeof(f=(f=E(u,"label")||(e!=null?E(e,"label"):e))!=null?f:o)===b?f.call(l,{name:"label",hash:{},data:a,loc:{start:{line:4,column:96},end:{line:4,column:105}}}):f)+`
317
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-checkboxgroup">
318
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},8810:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return` <label>
319
+ <input type="radio" name=`+g(r.lambda(o[1]!=null?k(o[1],"containerId"):o[1],e))+' value="'+g(typeof(f=(f=k(d,"key")||l&&k(l,"key"))!=null?f:u)===_?f.call(h,{name:"key",hash:{},data:l,loc:{start:{line:4,column:57},end:{line:4,column:65}}}):f)+'" '+((v=k(d,"if").call(h,e!=null?k(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:67},end:{line:4,column:95}}}))!=null?v:"")+">"+g(typeof(f=(f=k(d,"label")||(e!=null?k(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:96},end:{line:4,column:105}}}):f)+`
113
320
  </label>
114
- `},2:function(r,e,u,_,a){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return`<div class="addsearch-filters-radiogroup">
115
- `+((S=f(u,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?S:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){return"<button>&#215;</button>"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return`<div class="addsearch-filters-range">
116
- <label>`+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:2,column:9},end:{line:2,column:18}}}):i)+`</label>
117
- <input type="text" name="from" value="`+l(typeof(i=(i=o(u,"from")||(e!=null?o(e,"from"):e))!=null?i:f)===y?i.call(S,{name:"from",hash:{},data:a,loc:{start:{line:3,column:40},end:{line:3,column:48}}}):i)+'" placeholder="'+l(typeof(i=(i=o(u,"fromPlaceholder")||(e!=null?o(e,"fromPlaceholder"):e))!=null?i:f)===y?i.call(S,{name:"fromPlaceholder",hash:{},data:a,loc:{start:{line:3,column:63},end:{line:3,column:82}}}):i)+'"> - <input type="text" name="to" value="'+l(typeof(i=(i=o(u,"to")||(e!=null?o(e,"to"):e))!=null?i:f)===y?i.call(S,{name:"to",hash:{},data:a,loc:{start:{line:3,column:123},end:{line:3,column:129}}}):i)+'" placeholder="'+l(typeof(i=(i=o(u,"toPlaceholder")||(e!=null?o(e,"toPlaceholder"):e))!=null?i:f)===y?i.call(S,{name:"toPlaceholder",hash:{},data:a,loc:{start:{line:3,column:144},end:{line:3,column:161}}}):i)+`">
118
- `+((c=(o(u,"or")||e&&o(e,"or")||f).call(S,e!=null?o(e,"from"):e,e!=null?o(e,"to"):e,{name:"or",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:2},end:{line:4,column:47}}}))!=null?c:"")+`
119
- </div>`},useData:!0})},948:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return' <option value="'+l(typeof(i=(i=o(u,"key")||a&&o(a,"key"))!=null?i:f)===y?i.call(S,{name:"key",hash:{},data:a,loc:{start:{line:4,column:21},end:{line:4,column:29}}}):i)+'" '+((c=o(u,"if").call(S,e!=null?o(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:31},end:{line:4,column:60}}}))!=null?c:"")+">"+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:4,column:61},end:{line:4,column:70}}}):i)+`</option>
120
- `},2:function(r,e,u,_,a){return"selected"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-filters-selectlist">
321
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-filters-radiogroup">
322
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"<button>&#215;</button>"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class="addsearch-filters-range">
323
+ <label>`+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:2,column:9},end:{line:2,column:18}}}):o)+`</label>
324
+ <input type="text" name="from" value="`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:3,column:40},end:{line:3,column:48}}}):o)+'" placeholder="'+h(typeof(o=(o=u(d,"fromPlaceholder")||(e!=null?u(e,"fromPlaceholder"):e))!=null?o:f)===g?o.call(v,{name:"fromPlaceholder",hash:{},data:l,loc:{start:{line:3,column:63},end:{line:3,column:82}}}):o)+'"> - <input type="text" name="to" value="'+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:3,column:123},end:{line:3,column:129}}}):o)+'" placeholder="'+h(typeof(o=(o=u(d,"toPlaceholder")||(e!=null?u(e,"toPlaceholder"):e))!=null?o:f)===g?o.call(v,{name:"toPlaceholder",hash:{},data:l,loc:{start:{line:3,column:144},end:{line:3,column:161}}}):o)+`">
325
+ `+((a=(u(d,"or")||e&&u(e,"or")||f).call(v,e!=null?u(e,"from"):e,e!=null?u(e,"to"):e,{name:"or",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:2},end:{line:4,column:47}}}))!=null?a:"")+`
326
+ </div>`},useData:!0})},948:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <option value="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:21},end:{line:4,column:29}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:31},end:{line:4,column:60}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:70}}}):o)+`</option>
327
+ `},2:function(r,e,d,C,l){return"selected"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-selectlist">
121
328
  <select>
122
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?c:"")+` </select>
123
- </div>`},useData:!0})},1572:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return' <button data-filter="'+l(typeof(i=(i=o(u,"key")||a&&o(a,"key"))!=null?i:f)===y?i.call(S,{name:"key",hash:{},data:a,loc:{start:{line:4,column:27},end:{line:4,column:35}}}):i)+'" '+((c=o(u,"if").call(S,e!=null?o(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:37},end:{line:4,column:72}}}))!=null?c:"")+">"+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:4,column:73},end:{line:4,column:82}}}):i)+`</button>
124
- `},2:function(r,e,u,_,a){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-filters-tabs">
329
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
330
+ </div>`},useData:!0})},1572:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <button data-filter="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:27},end:{line:4,column:35}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:37},end:{line:4,column:72}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:73},end:{line:4,column:82}}}):o)+`</button>
331
+ `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tabs">
125
332
  <div class="tabs">
126
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?c:"")+` </div>
127
- </div>`},useData:!0})},5509:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return' <button data-filter="'+l(typeof(i=(i=o(u,"key")||a&&o(a,"key"))!=null?i:f)===y?i.call(S,{name:"key",hash:{},data:a,loc:{start:{line:3,column:25},end:{line:3,column:33}}}):i)+'" '+((c=o(u,"if").call(S,e!=null?o(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:35},end:{line:3,column:70}}}))!=null?c:"")+">"+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:3,column:71},end:{line:3,column:80}}}):i)+`</button>
128
- `},2:function(r,e,u,_,a){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-filters-tags">
129
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?c:"")+"</div>"},useData:!0})},4278:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c;return(c=r.invokePartial(t(2009),e,{name:"subHierarchicalFacetsTemplate",data:a,indent:" ",helpers:u,partials:_,decorators:r.decorators}))!=null?c:""},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<ul class="addsearch-hierarchical-facets">
130
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?c:"")+`</ul>
131
- `},usePartial:!0,useData:!0})},2009:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){return"shrink"},3:function(r,e,u,_,a){return"adds-visibility-hidden"},5:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return` <ul class="addsearch-facet-child-container">
132
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"children"):e,{name:"each",hash:{},fn:r.program(6,a,0),inverse:r.noop,data:a,loc:{start:{line:12,column:8},end:{line:14,column:17}}}))!=null?c:"")+` </ul>
133
- `},6:function(r,e,u,_,a){var c;return(c=r.invokePartial(t(2009),e,{name:"subHierarchicalFacetsTemplate",data:a,indent:" ",helpers:u,partials:_,decorators:r.decorators}))!=null?c:""},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return`<li>
134
- <div class="adds-facet-wrap `+((c=o(u,"if").call(S,(o(u,"validateOpenState")||e&&o(e,"validateOpenState")||f).call(S,e!=null?o(e,"value"):e,{name:"validateOpenState",hash:{},data:a,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?c:"")+'" data-facet="'+l(typeof(i=(i=o(u,"value")||(e!=null?o(e,"value"):e))!=null?i:f)===y?i.call(S,{name:"value",hash:{},data:a,loc:{start:{line:2,column:90},end:{line:2,column:99}}}):i)+`">
333
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </div>
334
+ </div>`},useData:!0})},5509:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <button data-filter="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:3,column:25},end:{line:3,column:33}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:35},end:{line:3,column:70}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:3,column:71},end:{line:3,column:80}}}):o)+`</button>
335
+ `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tags">
336
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},4278:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<ul class="addsearch-hierarchical-facets">
337
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+`</ul>
338
+ `},usePartial:!0,useData:!0})},2009:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"shrink"},3:function(r,e,d,C,l){return"adds-visibility-hidden"},5:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <ul class="addsearch-facet-child-container">
339
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"children"):e,{name:"each",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:8},end:{line:14,column:17}}}))!=null?a:"")+` </ul>
340
+ `},6:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<li>
341
+ <div class="adds-facet-wrap `+((a=u(d,"if").call(v,(u(d,"validateOpenState")||e&&u(e,"validateOpenState")||f).call(v,e!=null?u(e,"value"):e,{name:"validateOpenState",hash:{},data:l,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?a:"")+'" data-facet="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:2,column:90},end:{line:2,column:99}}}):o)+`">
135
342
  <div class="adds-facet-container">
136
- <span class="addsearch-facet-group-expansion-arrow `+((c=o(u,"unless").call(S,e!=null?o(e,"children"):e,{name:"unless",hash:{},fn:r.program(3,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:57},end:{line:4,column:110}}}))!=null?c:"")+`"></span>
137
- <label title="`+l(typeof(i=(i=o(u,"displayValue")||(e!=null?o(e,"displayValue"):e))!=null?i:f)===y?i.call(S,{name:"displayValue",hash:{},data:a,loc:{start:{line:5,column:20},end:{line:5,column:36}}}):i)+"("+l(typeof(i=(i=o(u,"count")||(e!=null?o(e,"count"):e))!=null?i:f)===y?i.call(S,{name:"count",hash:{},data:a,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):i)+`)">
138
- <input type="checkbox" value="`+l(typeof(i=(i=o(u,"value")||(e!=null?o(e,"value"):e))!=null?i:f)===y?i.call(S,{name:"value",hash:{},data:a,loc:{start:{line:6,column:38},end:{line:6,column:47}}}):i)+'" data-field="'+l(typeof(i=(i=o(u,"field")||(e!=null?o(e,"field"):e))!=null?i:f)===y?i.call(S,{name:"field",hash:{},data:a,loc:{start:{line:6,column:61},end:{line:6,column:70}}}):i)+`" />
139
- <span>`+l(typeof(i=(i=o(u,"displayValue")||(e!=null?o(e,"displayValue"):e))!=null?i:f)===y?i.call(S,{name:"displayValue",hash:{},data:a,loc:{start:{line:7,column:14},end:{line:7,column:30}}}):i)+"</span> <em>("+l(typeof(i=(i=o(u,"count")||(e!=null?o(e,"count"):e))!=null?i:f)===y?i.call(S,{name:"count",hash:{},data:a,loc:{start:{line:7,column:43},end:{line:7,column:52}}}):i)+`)</em>
343
+ <span class="addsearch-facet-group-expansion-arrow `+((a=u(d,"unless").call(v,e!=null?u(e,"children"):e,{name:"unless",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:57},end:{line:4,column:110}}}))!=null?a:"")+`"></span>
344
+ <label title="`+h(typeof(o=(o=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?o:f)===g?o.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:5,column:20},end:{line:5,column:36}}}):o)+"("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):o)+`)">
345
+ <input type="checkbox" value="`+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:6,column:38},end:{line:6,column:47}}}):o)+'" data-field="'+h(typeof(o=(o=u(d,"field")||(e!=null?u(e,"field"):e))!=null?o:f)===g?o.call(v,{name:"field",hash:{},data:l,loc:{start:{line:6,column:61},end:{line:6,column:70}}}):o)+`" />
346
+ <span>`+h(typeof(o=(o=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?o:f)===g?o.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:7,column:14},end:{line:7,column:30}}}):o)+"</span> <em>("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:7,column:43},end:{line:7,column:52}}}):o)+`)</em>
140
347
  </label>
141
348
  </div>
142
- `+((c=o(u,"if").call(S,e!=null?o(e,"children"):e,{name:"if",hash:{},fn:r.program(5,a,0),inverse:r.noop,data:a,loc:{start:{line:10,column:4},end:{line:16,column:11}}}))!=null?c:"")+` </div>
349
+ `+((a=u(d,"if").call(v,e!=null?u(e,"children"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.noop,data:l,loc:{start:{line:10,column:4},end:{line:16,column:11}}}))!=null?a:"")+` </div>
143
350
  </li>
144
- `},usePartial:!0,useData:!0})},8905:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return(c=(i(u,"gt")||e&&i(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?i(e,"totalHits"):e,0,{name:"gt",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))!=null?c:""},2:function(r,e,u,_,a){return` <span>Loading more..</span>
145
- `},4:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return(c=i(u,"if").call(e??(r.nullContext||{}),e!=null?i(e,"hasMorePages"):e,{name:"if",hash:{},fn:r.program(5,a,0),inverse:r.noop,data:a,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?c:""},5:function(r,e,u,_,a){var c,i=e??(r.nullContext||{}),S=r.hooks.helperMissing,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return((c=(f(u,"equals")||e&&f(e,"equals")||S).call(i,e!=null?f(e,"type"):e,"BUTTON",{name:"equals",hash:{},fn:r.program(6,a,0),inverse:r.noop,data:a,loc:{start:{line:7,column:4},end:{line:9,column:15}}}))!=null?c:"")+((c=(f(u,"equals")||e&&f(e,"equals")||S).call(i,e!=null?f(e,"type"):e,"INFINITE_SCROLL",{name:"equals",hash:{},fn:r.program(8,a,0),inverse:r.noop,data:a,loc:{start:{line:10,column:4},end:{line:12,column:15}}}))!=null?c:"")+" "},6:function(r,e,u,_,a){return` <button>Load more</button>
146
- `},8:function(r,e,u,_,a){return` <span class="loadmore-infinite-scroll"></span>
147
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-loadmore">
148
- `+((c=i(u,"if").call(e??(r.nullContext||{}),e!=null?i(e,"isLoading"):e,{name:"if",hash:{},fn:r.program(1,a,0),inverse:r.program(4,a,0),data:a,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?c:"")+"</div>"},useData:!0})},4245:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){return` <button data-page="previous" aria-label="Previous page">❮</button>
149
- `},3:function(r,e,u,_,a,c,i){var S,f=r.lambda,y=r.escapeExpression,l=r.lookupProperty||function(o,b){if(Object.prototype.hasOwnProperty.call(o,b))return o[b]};return' <button data-page="'+y(f(e,e))+'" aria-label="Go to results page '+y(f(e,e))+'" '+((S=(l(u,"equals")||e&&l(e,"equals")||r.hooks.helperMissing).call(e??(r.nullContext||{}),i[1]!=null?l(i[1],"currentPage"):i[1],e,{name:"equals",hash:{},fn:r.program(4,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:6,column:74},end:{line:6,column:154}}}))!=null?S:"")+`>
150
- `+y(f(e,e))+`
351
+ `},usePartial:!0,useData:!0})},8905:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(o(d,"gt")||e&&o(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?o(e,"totalHits"):e,0,{name:"gt",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))!=null?a:""},2:function(r,e,d,C,l){return` <span>Loading more..</span>
352
+ `},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"hasMorePages"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?a:""},5:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return((a=(f(d,"equals")||e&&f(e,"equals")||v).call(o,e!=null?f(e,"type"):e,"BUTTON",{name:"equals",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:7,column:4},end:{line:9,column:15}}}))!=null?a:"")+((a=(f(d,"equals")||e&&f(e,"equals")||v).call(o,e!=null?f(e,"type"):e,"INFINITE_SCROLL",{name:"equals",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:10,column:4},end:{line:12,column:15}}}))!=null?a:"")+" "},6:function(r,e,d,C,l){return` <button>Load more</button>
353
+ `},8:function(r,e,d,C,l){return` <span class="loadmore-infinite-scroll"></span>
354
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-loadmore">
355
+ `+((a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"isLoading"):e,{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.program(4,l,0),data:l,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},4245:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return` <button data-page="previous" aria-label="Previous page">❮</button>
356
+ `},3:function(r,e,d,C,l,a,o){var v,f=r.lambda,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <button data-page="'+g(f(e,e))+'" aria-label="Go to results page '+g(f(e,e))+'" '+((v=(h(d,"equals")||e&&h(e,"equals")||r.hooks.helperMissing).call(e??(r.nullContext||{}),o[1]!=null?h(o[1],"currentPage"):o[1],e,{name:"equals",hash:{},fn:r.program(4,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:6,column:74},end:{line:6,column:154}}}))!=null?v:"")+`>
357
+ `+g(f(e,e))+`
151
358
  </button>
152
- `},4:function(r,e,u,_,a){return'data-active="true" aria-current="true"'},6:function(r,e,u,_,a){return` <button data-page="next" aria-label="Next page">❯</button>
153
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f=e??(r.nullContext||{}),y=r.hooks.helperMissing,l=r.lookupProperty||function(o,b){if(Object.prototype.hasOwnProperty.call(o,b))return o[b]};return`<div class="addsearch-pagination">
154
- `+((S=(l(u,"gt")||e&&l(e,"gt")||y).call(f,e!=null?l(e,"currentPage"):e,1,{name:"gt",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:4,column:9}}}))!=null?S:"")+((S=l(u,"each").call(f,e!=null?l(e,"pages"):e,{name:"each",hash:{},fn:r.program(3,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:5,column:2},end:{line:9,column:11}}}))!=null?S:"")+((S=(l(u,"lt")||e&&l(e,"lt")||y).call(f,e!=null?l(e,"currentPage"):e,e!=null?l(e,"lastPage"):e,{name:"lt",hash:{},fn:r.program(6,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:10,column:2},end:{line:12,column:9}}}))!=null?S:"")+"</div>"},useData:!0,useDepths:!0})},6427:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return' <li data-facet="'+l(typeof(i=(i=o(u,"value")||(e!=null?o(e,"value"):e))!=null?i:f)===y?i.call(S,{name:"value",hash:{},data:a,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):i)+'" '+((c=o(u,"unless").call(S,e!=null?o(e,"count"):e,{name:"unless",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:33},end:{line:4,column:82}}}))!=null?c:"")+`>
359
+ `},4:function(r,e,d,C,l){return'data-active="true" aria-current="true"'},6:function(r,e,d,C,l){return` <button data-page="next" aria-label="Next page">❯</button>
360
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-pagination">
361
+ `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,e!=null?h(e,"currentPage"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:9}}}))!=null?v:"")+((v=h(d,"each").call(f,e!=null?h(e,"pages"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:5,column:2},end:{line:9,column:11}}}))!=null?v:"")+((v=(h(d,"lt")||e&&h(e,"lt")||g).call(f,e!=null?h(e,"currentPage"):e,e!=null?h(e,"lastPage"):e,{name:"lt",hash:{},fn:r.program(6,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:10,column:2},end:{line:12,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},6427:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <li data-facet="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):o)+'" '+((a=u(d,"unless").call(v,e!=null?u(e,"count"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:33},end:{line:4,column:82}}}))!=null?a:"")+`>
155
362
  <label>
156
- <input type="checkbox" value="`+l(typeof(i=(i=o(u,"key")||(e!=null?o(e,"key"):e))!=null?i:f)===y?i.call(S,{name:"key",hash:{},data:a,loc:{start:{line:6,column:40},end:{line:6,column:47}}}):i)+`"
157
- data-value-min="`+l(typeof(i=(i=o(u,"from")||(e!=null?o(e,"from"):e))!=null?i:f)===y?i.call(S,{name:"from",hash:{},data:a,loc:{start:{line:7,column:33},end:{line:7,column:41}}}):i)+`"
158
- data-value-max="`+l(typeof(i=(i=o(u,"to")||(e!=null?o(e,"to"):e))!=null?i:f)===y?i.call(S,{name:"to",hash:{},data:a,loc:{start:{line:8,column:33},end:{line:8,column:39}}}):i)+`" />
159
- <span>`+l(typeof(i=(i=o(u,"from")||(e!=null?o(e,"from"):e))!=null?i:f)===y?i.call(S,{name:"from",hash:{},data:a,loc:{start:{line:9,column:16},end:{line:9,column:24}}}):i)+"-"+l(typeof(i=(i=o(u,"to")||(e!=null?o(e,"to"):e))!=null?i:f)===y?i.call(S,{name:"to",hash:{},data:a,loc:{start:{line:9,column:25},end:{line:9,column:31}}}):i)+"</span> <em>("+l(typeof(i=(i=o(u,"count")||(e!=null?o(e,"count"):e))!=null?i:f)===y?i.call(S,{name:"count",hash:{},data:a,loc:{start:{line:9,column:44},end:{line:9,column:53}}}):i)+`)</em>
363
+ <input type="checkbox" value="`+h(typeof(o=(o=u(d,"key")||(e!=null?u(e,"key"):e))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:47}}}):o)+`"
364
+ data-value-min="`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:7,column:33},end:{line:7,column:41}}}):o)+`"
365
+ data-value-max="`+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:8,column:33},end:{line:8,column:39}}}):o)+`" />
366
+ <span>`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:9,column:16},end:{line:9,column:24}}}):o)+"-"+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:9,column:25},end:{line:9,column:31}}}):o)+"</span> <em>("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:53}}}):o)+`)</em>
160
367
  </label>
161
368
  </li>
162
- `},2:function(r,e,u,_,a){return'style="display: none"'},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-facets">
369
+ `},2:function(r,e,d,C,l){return'style="display: none"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
163
370
  <ul>
164
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"rangeFacets"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:12,column:13}}}))!=null?c:"")+` </ul>
371
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"rangeFacets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:12,column:13}}}))!=null?a:"")+` </ul>
165
372
  </div>
166
- `},useData:!0})},1204:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lambda,S=r.escapeExpression,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return`<div class="addsearch-range-slider">
373
+ `},useData:!0})},1204:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lambda,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-range-slider">
167
374
  <div class="adds-range-slider-container"
168
- data-slider-min="`+S(i((c=e!=null?f(e,"sliderConfig"):e)!=null?f(c,"min"):c,e))+`"
169
- data-slider-max="`+S(i((c=e!=null?f(e,"sliderConfig"):e)!=null?f(c,"max"):c,e))+`"
170
- data-slider-start="`+S(i((c=e!=null?f(e,"sliderConfig"):e)!=null?f(c,"start"):c,e))+`"
171
- data-slider-end="`+S(i((c=e!=null?f(e,"sliderConfig"):e)!=null?f(c,"end"):c,e))+`">
375
+ data-slider-min="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"min"):a,e))+`"
376
+ data-slider-max="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"max"):a,e))+`"
377
+ data-slider-start="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"start"):a,e))+`"
378
+ data-slider-end="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"end"):a,e))+`">
172
379
  </div>
173
380
  <div class="adds-range-slider-display">
174
381
  <span>
@@ -179,62 +386,62 @@ React keys must be passed directly to JSX without using spread:
179
386
  </span>
180
387
  </div>
181
388
  </div>
182
- `},useData:!0})},8505:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){return"icon"},3:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return' <button type="button" aria-label="Search button" >'+r.escapeExpression(typeof(c=(c=i(u,"button")||(e!=null?i(e,"button"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"button",hash:{},data:a,loc:{start:{line:7,column:56},end:{line:7,column:66}}}):c)+`</button>
183
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y=r.lookupProperty||function(l,o){if(Object.prototype.hasOwnProperty.call(l,o))return l[o]};return`<div class="addsearch-searchfield-container">
389
+ `},useData:!0})},8505:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"icon"},3:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' <button type="button" aria-label="Search button" >'+r.escapeExpression(typeof(a=(a=o(d,"button")||(e!=null?o(e,"button"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"button",hash:{},data:l,loc:{start:{line:7,column:56},end:{line:7,column:66}}}):a)+`</button>
390
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchfield-container">
184
391
  <form class="addsearch-searchfield" autocomplete="off" action="?" role="search">
185
392
  <div class="search-field-wrapper">
186
- <input type="search" placeholder="`+r.escapeExpression(typeof(i=(i=y(u,"placeholder")||(e!=null?y(e,"placeholder"):e))!=null?i:f)=="function"?i.call(S,{name:"placeholder",hash:{},data:a,loc:{start:{line:4,column:40},end:{line:4,column:55}}}):i)+'" aria-label="Search field" class="'+((c=(y(u,"not")||e&&y(e,"not")||f).call(S,e!=null?y(e,"icon"):e,!1,{name:"not",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:90},end:{line:4,column:121}}}))!=null?c:"")+`" />
393
+ <input type="search" placeholder="`+r.escapeExpression(typeof(o=(o=g(d,"placeholder")||(e!=null?g(e,"placeholder"):e))!=null?o:f)=="function"?o.call(v,{name:"placeholder",hash:{},data:l,loc:{start:{line:4,column:40},end:{line:4,column:55}}}):o)+'" aria-label="Search field" class="'+((a=(g(d,"not")||e&&g(e,"not")||f).call(v,e!=null?g(e,"icon"):e,!1,{name:"not",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:90},end:{line:4,column:121}}}))!=null?a:"")+`" />
187
394
  </div>
188
- `+((c=y(u,"if").call(S,e!=null?y(e,"button"):e,{name:"if",hash:{},fn:r.program(3,a,0),inverse:r.noop,data:a,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))!=null?c:"")+` </form>
189
- </div>`},useData:!0})},303:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-searchresults addsearch-searchresults-no-results">
190
- <h2>No search results with keyword <em>`+r.escapeExpression(typeof(c=(c=i(u,"keyword")||(e!=null?i(e,"keyword"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"keyword",hash:{},data:a,loc:{start:{line:2,column:41},end:{line:2,column:52}}}):c)+`</em></h2>
191
- </div>`},useData:!0})},2123:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a,c,i){var S=r.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return"Page "+r.escapeExpression(r.lambda(i[1]!=null?S(i[1],"page"):i[1],e))+" of "},3:function(r,e,u,_,a){return"+"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f,y=e??(r.nullContext||{}),l=r.hooks.helperMissing,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return`<div class="number-of-results">
192
- `+((S=(o(u,"gt")||e&&o(e,"gt")||l).call(y,e!=null?o(e,"page"):e,1,{name:"gt",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:2,column:43}}}))!=null?S:"")+`
193
- `+r.escapeExpression(typeof(f=(f=o(u,"total_hits")||(e!=null?o(e,"total_hits"):e))!=null?f:l)=="function"?f.call(y,{name:"total_hits",hash:{},data:a,loc:{start:{line:3,column:2},end:{line:3,column:16}}}):f)+((S=(o(u,"equals")||e&&o(e,"equals")||l).call(y,e!=null?o(e,"total_hits"):e,1e4,{name:"equals",hash:{},fn:r.program(3,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:3,column:16},end:{line:3,column:56}}}))!=null?S:"")+` results
395
+ `+((a=g(d,"if").call(v,e!=null?g(e,"button"):e,{name:"if",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))!=null?a:"")+` </form>
396
+ </div>`},useData:!0})},303:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-searchresults addsearch-searchresults-no-results">
397
+ <h2>No search results with keyword <em>`+r.escapeExpression(typeof(a=(a=o(d,"keyword")||(e!=null?o(e,"keyword"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"keyword",hash:{},data:l,loc:{start:{line:2,column:41},end:{line:2,column:52}}}):a)+`</em></h2>
398
+ </div>`},useData:!0})},2123:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return"Page "+r.escapeExpression(r.lambda(o[1]!=null?v(o[1],"page"):o[1],e))+" of "},3:function(r,e,d,C,l){return"+"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class="number-of-results">
399
+ `+((v=(u(d,"gt")||e&&u(e,"gt")||h).call(g,e!=null?u(e,"page"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:2,column:43}}}))!=null?v:"")+`
400
+ `+r.escapeExpression(typeof(f=(f=u(d,"total_hits")||(e!=null?u(e,"total_hits"):e))!=null?f:h)=="function"?f.call(g,{name:"total_hits",hash:{},data:l,loc:{start:{line:3,column:2},end:{line:3,column:16}}}):f)+((v=(u(d,"equals")||e&&u(e,"equals")||h).call(g,e!=null?u(e,"total_hits"):e,1e4,{name:"equals",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:3,column:16},end:{line:3,column:56}}}))!=null?v:"")+` results
194
401
  </div>
195
- `},useData:!0,useDepths:!0})},4111:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){return"noimage"},3:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return' style="background-image: url(data:image/jpeg;base64,'+r.escapeExpression(r.lambda((c=e!=null?i(e,"images"):e)!=null?i(c,"main_b64"):c,e))+')"'},5:function(r,e,u,_,a){var c,i,S=r.escapeExpression,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return'<img src="'+S(r.lambda((c=e!=null?f(e,"images"):e)!=null?f(c,"main"):c,e))+'" alt="'+S(typeof(i=(i=f(u,"title")||(e!=null?f(e,"title"):e))!=null?i:r.hooks.helperMissing)=="function"?i.call(e??(r.nullContext||{}),{name:"title",hash:{},data:a,loc:{start:{line:2,column:53},end:{line:2,column:62}}}):i)+`" />
196
- `},7:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return(c=i(u,"if").call(e??(r.nullContext||{}),(c=e!=null?i(e,"style"):e)!=null?i(c,"image_url"):c,{name:"if",hash:{},fn:r.program(8,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?c:""},8:function(r,e,u,_,a){var c,i,S=r.escapeExpression,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return'<img src="'+S(r.lambda((c=e!=null?f(e,"style"):e)!=null?f(c,"image_url"):c,e))+'" alt="'+S(typeof(i=(i=f(u,"title")||(e!=null?f(e,"title"):e))!=null?i:r.hooks.helperMissing)=="function"?i.call(e??(r.nullContext||{}),{name:"title",hash:{},data:a,loc:{start:{line:3,column:65},end:{line:3,column:74}}}):i)+'" />'},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return'<span class="main-image '+r.escapeExpression(typeof(i=(i=f(u,"document_type")||(e!=null?f(e,"document_type"):e))!=null?i:r.hooks.helperMissing)=="function"?i.call(S,{name:"document_type",hash:{},data:a,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):i)+" "+((c=f(u,"unless").call(S,(c=e!=null?f(e,"images"):e)!=null?f(c,"main"):c,{name:"unless",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:1,column:42},end:{line:1,column:83}}}))!=null?c:"")+'"'+((c=f(u,"if").call(S,(c=e!=null?f(e,"images"):e)!=null?f(c,"main"):c,{name:"if",hash:{},fn:r.program(3,a,0),inverse:r.noop,data:a,loc:{start:{line:1,column:84},end:{line:1,column:184}}}))!=null?c:"")+`>
197
- `+((c=f(u,"if").call(S,(c=e!=null?f(e,"images"):e)!=null?f(c,"main"):c,{name:"if",hash:{},fn:r.program(5,a,0),inverse:r.program(7,a,0),data:a,loc:{start:{line:2,column:2},end:{line:3,column:85}}}))!=null?c:"")+`
402
+ `},useData:!0,useDepths:!0})},4111:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"noimage"},3:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' style="background-image: url(data:image/jpeg;base64,'+r.escapeExpression(r.lambda((a=e!=null?o(e,"images"):e)!=null?o(a,"main_b64"):a,e))+')"'},5:function(r,e,d,C,l){var a,o,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,e))+'" alt="'+v(typeof(o=(o=f(d,"title")||(e!=null?f(e,"title"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:2,column:53},end:{line:2,column:62}}}):o)+`" />
403
+ `},7:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),(a=e!=null?o(e,"style"):e)!=null?o(a,"image_url"):a,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?a:""},8:function(r,e,d,C,l){var a,o,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"style"):e)!=null?f(a,"image_url"):a,e))+'" alt="'+v(typeof(o=(o=f(d,"title")||(e!=null?f(e,"title"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:3,column:65},end:{line:3,column:74}}}):o)+'" />'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<span class="main-image '+r.escapeExpression(typeof(o=(o=f(d,"document_type")||(e!=null?f(e,"document_type"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(v,{name:"document_type",hash:{},data:l,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):o)+" "+((a=f(d,"unless").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"unless",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:42},end:{line:1,column:83}}}))!=null?a:"")+'"'+((a=f(d,"if").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"if",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:84},end:{line:1,column:184}}}))!=null?a:"")+`>
404
+ `+((a=f(d,"if").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.program(7,l,0),data:l,loc:{start:{line:2,column:2},end:{line:3,column:85}}}))!=null?a:"")+`
198
405
  </span>
199
- `},useData:!0})},6873:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c;return(c=r.invokePartial(t(2123),e,{name:"numberOfResultsTemplate",data:a,indent:" ",helpers:u,partials:_,decorators:r.decorators}))!=null?c:""},3:function(r,e,u,_,a,c,i){var S,f,y=e??(r.nullContext||{}),l=r.hooks.helperMissing,o="function",b=r.escapeExpression,E=r.lookupProperty||function(R,k){if(Object.prototype.hasOwnProperty.call(R,k))return R[k]};return' <div class="hit'+((S=(E(u,"equals")||e&&E(e,"equals")||l).call(y,e!=null?E(e,"type"):e,"PROMOTED",{name:"equals",hash:{},fn:r.program(4,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:9,column:19},end:{line:9,column:66}}}))!=null?S:"")+`">
406
+ `},useData:!0})},6873:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2123),e,{name:"numberOfResultsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},3:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return' <div class="hit'+((v=(k(d,"equals")||e&&k(e,"equals")||h).call(g,e!=null?k(e,"type"):e,"PROMOTED",{name:"equals",hash:{},fn:r.program(4,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:9,column:19},end:{line:9,column:66}}}))!=null?v:"")+`">
200
407
  <h3>
201
- <a href="`+b(typeof(f=(f=E(u,"url")||(e!=null?E(e,"url"):e))!=null?f:l)===o?f.call(y,{name:"url",hash:{},data:a,loc:{start:{line:11,column:17},end:{line:11,column:24}}}):f)+'" data-analytics-click="'+b(typeof(f=(f=E(u,"id")||(e!=null?E(e,"id"):e))!=null?f:l)===o?f.call(y,{name:"id",hash:{},data:a,loc:{start:{line:11,column:48},end:{line:11,column:54}}}):f)+'">'+((S=E(u,"if").call(y,e!=null?E(e,"title"):e,{name:"if",hash:{},fn:r.program(6,a,0,c,i),inverse:r.program(8,a,0,c,i),data:a,loc:{start:{line:11,column:56},end:{line:11,column:133}}}))!=null?S:"")+`</a>
408
+ <a href="`+_(typeof(f=(f=k(d,"url")||(e!=null?k(e,"url"):e))!=null?f:h)===u?f.call(g,{name:"url",hash:{},data:l,loc:{start:{line:11,column:17},end:{line:11,column:24}}}):f)+'" data-analytics-click="'+_(typeof(f=(f=k(d,"id")||(e!=null?k(e,"id"):e))!=null?f:h)===u?f.call(g,{name:"id",hash:{},data:l,loc:{start:{line:11,column:48},end:{line:11,column:54}}}):f)+'">'+((v=k(d,"if").call(g,e!=null?k(e,"title"):e,{name:"if",hash:{},fn:r.program(6,l,0,a,o),inverse:r.program(8,l,0,a,o),data:l,loc:{start:{line:11,column:56},end:{line:11,column:133}}}))!=null?v:"")+`</a>
202
409
  </h3>
203
410
  <div class="highlight">
204
- `+((S=r.invokePartial(t(4111),e,{name:"searchResultImageTemplate",data:a,indent:" ",helpers:u,partials:_,decorators:r.decorators}))!=null?S:"")+" "+((S=typeof(f=(f=E(u,"highlight")||(e!=null?E(e,"highlight"):e))!=null?f:l)===o?f.call(y,{name:"highlight",hash:{},data:a,loc:{start:{line:15,column:8},end:{line:15,column:23}}}):f)!=null?S:"")+((S=(E(u,"not")||e&&E(e,"not")||l).call(y,e!=null?E(e,"type"):e,"PROMOTED",{name:"not",hash:{},fn:r.program(10,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:15,column:23},end:{line:15,column:62}}}))!=null?S:"")+`
411
+ `+((v=r.invokePartial(n(4111),e,{name:"searchResultImageTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?v:"")+" "+((v=typeof(f=(f=k(d,"highlight")||(e!=null?k(e,"highlight"):e))!=null?f:h)===u?f.call(g,{name:"highlight",hash:{},data:l,loc:{start:{line:15,column:8},end:{line:15,column:23}}}):f)!=null?v:"")+((v=(k(d,"not")||e&&k(e,"not")||h).call(g,e!=null?k(e,"type"):e,"PROMOTED",{name:"not",hash:{},fn:r.program(10,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:15,column:23},end:{line:15,column:62}}}))!=null?v:"")+`
205
412
  </div>
206
- `+((S=(E(u,"gt")||e&&E(e,"gt")||l).call(y,(S=e!=null?E(e,"categories"):e)!=null?E(S,"length"):S,1,{name:"gt",hash:{},fn:r.program(12,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:17,column:6},end:{line:21,column:13}}}))!=null?S:"")+` </div>
207
- `},4:function(r,e,u,_,a){return" promoted"},6:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return" "+r.escapeExpression(typeof(c=(c=i(u,"title")||(e!=null?i(e,"title"):e))!=null?c:r.hooks.helperMissing)=="function"?c.call(e??(r.nullContext||{}),{name:"title",hash:{},data:a,loc:{start:{line:11,column:70},end:{line:11,column:79}}}):c)+" "},8:function(r,e,u,_,a){var c=r.lookupProperty||function(i,S){if(Object.prototype.hasOwnProperty.call(i,S))return i[S]};return" "+r.escapeExpression((c(u,"removeTrailingQueriesFromUrl")||e&&c(e,"removeTrailingQueriesFromUrl")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?c(e,"url"):e,{name:"removeTrailingQueriesFromUrl",hash:{},data:a,loc:{start:{line:11,column:89},end:{line:11,column:125}}}))+" "},10:function(r,e,u,_,a){return"&#8230;"},12:function(r,e,u,_,a,c,i){var S=r.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return` <div class="category">
208
- `+r.escapeExpression((S(u,"selectCategory")||e&&S(e,"selectCategory")||r.hooks.helperMissing).call(e??(r.nullContext||{}),i[1],{name:"selectCategory",hash:{},data:a,loc:{start:{line:19,column:10},end:{line:19,column:31}}}))+`
413
+ `+((v=(k(d,"gt")||e&&k(e,"gt")||h).call(g,(v=e!=null?k(e,"categories"):e)!=null?k(v,"length"):v,1,{name:"gt",hash:{},fn:r.program(12,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:17,column:6},end:{line:21,column:13}}}))!=null?v:"")+` </div>
414
+ `},4:function(r,e,d,C,l){return" promoted"},6:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return" "+r.escapeExpression(typeof(a=(a=o(d,"title")||(e!=null?o(e,"title"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:11,column:70},end:{line:11,column:79}}}):a)+" "},8:function(r,e,d,C,l){var a=r.lookupProperty||function(o,v){if(Object.prototype.hasOwnProperty.call(o,v))return o[v]};return" "+r.escapeExpression((a(d,"removeTrailingQueriesFromUrl")||e&&a(e,"removeTrailingQueriesFromUrl")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?a(e,"url"):e,{name:"removeTrailingQueriesFromUrl",hash:{},data:l,loc:{start:{line:11,column:89},end:{line:11,column:125}}}))+" "},10:function(r,e,d,C,l){return"&#8230;"},12:function(r,e,d,C,l,a,o){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return` <div class="category">
415
+ `+r.escapeExpression((v(d,"selectCategory")||e&&v(e,"selectCategory")||r.hooks.helperMissing).call(e??(r.nullContext||{}),o[1],{name:"selectCategory",hash:{},data:l,loc:{start:{line:19,column:10},end:{line:19,column:31}}}))+`
209
416
  </div>
210
- `},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f=e??(r.nullContext||{}),y=r.lookupProperty||function(l,o){if(Object.prototype.hasOwnProperty.call(l,o))return l[o]};return`<div class="addsearch-searchresults">
211
- `+((S=y(u,"if").call(f,e!=null?y(e,"resultcount"):e,{name:"if",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:4,column:2},end:{line:6,column:9}}}))!=null?S:"")+`
212
- `+((S=y(u,"each").call(f,e!=null?y(e,"hits"):e,{name:"each",hash:{},fn:r.program(3,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:8,column:2},end:{line:23,column:11}}}))!=null?S:"")+`</div>
213
- `},usePartial:!0,useData:!0,useDepths:!0})},6868:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a,c,i){var S,f,y=r.escapeExpression,l=e??(r.nullContext||{}),o=r.hooks.helperMissing,b="function",E=r.lookupProperty||function(R,k){if(Object.prototype.hasOwnProperty.call(R,k))return R[k]};return` <label>
214
- <input type="radio" name=`+y(r.lambda(i[1]!=null?E(i[1],"containerId"):i[1],e))+" data-field="+y(typeof(f=(f=E(u,"sortBy")||(e!=null?E(e,"sortBy"):e))!=null?f:o)===b?f.call(l,{name:"sortBy",hash:{},data:a,loc:{start:{line:4,column:61},end:{line:4,column:71}}}):f)+" data-order="+y(typeof(f=(f=E(u,"order")||(e!=null?E(e,"order"):e))!=null?f:o)===b?f.call(l,{name:"order",hash:{},data:a,loc:{start:{line:4,column:83},end:{line:4,column:92}}}):f)+' value="" '+((S=E(u,"if").call(l,e!=null?E(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:4,column:102},end:{line:4,column:130}}}))!=null?S:"")+">"+y(typeof(f=(f=E(u,"label")||(e!=null?E(e,"label"):e))!=null?f:o)===b?f.call(l,{name:"label",hash:{},data:a,loc:{start:{line:4,column:131},end:{line:4,column:140}}}):f)+`
417
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchresults">
418
+ `+((v=g(d,"if").call(f,e!=null?g(e,"resultcount"):e,{name:"if",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:2},end:{line:6,column:9}}}))!=null?v:"")+`
419
+ `+((v=g(d,"each").call(f,e!=null?g(e,"hits"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:8,column:2},end:{line:23,column:11}}}))!=null?v:"")+`</div>
420
+ `},usePartial:!0,useData:!0,useDepths:!0})},6868:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return` <label>
421
+ <input type="radio" name=`+g(r.lambda(o[1]!=null?k(o[1],"containerId"):o[1],e))+" data-field="+g(typeof(f=(f=k(d,"sortBy")||(e!=null?k(e,"sortBy"):e))!=null?f:u)===_?f.call(h,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:71}}}):f)+" data-order="+g(typeof(f=(f=k(d,"order")||(e!=null?k(e,"order"):e))!=null?f:u)===_?f.call(h,{name:"order",hash:{},data:l,loc:{start:{line:4,column:83},end:{line:4,column:92}}}):f)+' value="" '+((v=k(d,"if").call(h,e!=null?k(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:102},end:{line:4,column:130}}}))!=null?v:"")+">"+g(typeof(f=(f=k(d,"label")||(e!=null?k(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:131},end:{line:4,column:140}}}):f)+`
215
422
  </label>
216
- `},2:function(r,e,u,_,a){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a,c,i){var S,f=r.lookupProperty||function(y,l){if(Object.prototype.hasOwnProperty.call(y,l))return y[l]};return`<div class="addsearch-sortby-radiogroup">
217
- `+((S=f(u,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0,c,i),inverse:r.noop,data:a,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?S:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(p,s,t){var v=t(3633);p.exports=(v.default||v).template({1:function(r,e,u,_,a){var c,i,S=e??(r.nullContext||{}),f=r.hooks.helperMissing,y="function",l=r.escapeExpression,o=r.lookupProperty||function(b,E){if(Object.prototype.hasOwnProperty.call(b,E))return b[E]};return" <option data-field="+l(typeof(i=(i=o(u,"sortBy")||(e!=null?o(e,"sortBy"):e))!=null?i:f)===y?i.call(S,{name:"sortBy",hash:{},data:a,loc:{start:{line:4,column:25},end:{line:4,column:35}}}):i)+" data-order="+l(typeof(i=(i=o(u,"order")||(e!=null?o(e,"order"):e))!=null?i:f)===y?i.call(S,{name:"order",hash:{},data:a,loc:{start:{line:4,column:47},end:{line:4,column:56}}}):i)+" "+((c=o(u,"if").call(S,e!=null?o(e,"active"):e,{name:"if",hash:{},fn:r.program(2,a,0),inverse:r.noop,data:a,loc:{start:{line:4,column:57},end:{line:4,column:97}}}))!=null?c:"")+">"+l(typeof(i=(i=o(u,"label")||(e!=null?o(e,"label"):e))!=null?i:f)===y?i.call(S,{name:"label",hash:{},data:a,loc:{start:{line:4,column:98},end:{line:4,column:107}}}):i)+`</option>
218
- `},2:function(r,e,u,_,a){return'selected="selected"'},compiler:[8,">= 4.3.0"],main:function(r,e,u,_,a){var c,i=r.lookupProperty||function(S,f){if(Object.prototype.hasOwnProperty.call(S,f))return S[f]};return`<div class="addsearch-sortby">
423
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-sortby-radiogroup">
424
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return" <option data-field="+h(typeof(o=(o=u(d,"sortBy")||(e!=null?u(e,"sortBy"):e))!=null?o:f)===g?o.call(v,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:25},end:{line:4,column:35}}}):o)+" data-order="+h(typeof(o=(o=u(d,"order")||(e!=null?u(e,"order"):e))!=null?o:f)===g?o.call(v,{name:"order",hash:{},data:l,loc:{start:{line:4,column:47},end:{line:4,column:56}}}):o)+" "+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:57},end:{line:4,column:97}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:98},end:{line:4,column:107}}}):o)+`</option>
425
+ `},2:function(r,e,d,C,l){return'selected="selected"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-sortby">
219
426
  <select>
220
- `+((c=i(u,"each").call(e??(r.nullContext||{}),e!=null?i(e,"options"):e,{name:"each",hash:{},fn:r.program(1,a,0),inverse:r.noop,data:a,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?c:"")+` </select>
221
- </div>`},useData:!0})},261:function(p,s,t){function v(y){return y&&y.__esModule?y:{default:y}}function r(y){if(y&&y.__esModule)return y;var l={};if(y!=null)for(var o in y)Object.prototype.hasOwnProperty.call(y,o)&&(l[o]=y[o]);return l.default=y,l}s.__esModule=!0;var e=r(t(2871)),u=v(t(9613)),_=v(t(3769)),a=r(t(2849)),c=r(t(7624)),i=v(t(1148));function S(){var y=new e.HandlebarsEnvironment;return a.extend(y,e),y.SafeString=u.default,y.Exception=_.default,y.Utils=a,y.escapeExpression=a.escapeExpression,y.VM=c,y.template=function(l){return c.template(l,y)},y}var f=S();f.create=S,i.default(f),f.default=f,s.default=f,p.exports=s.default},2871:function(p,s,t){function v(y){return y&&y.__esModule?y:{default:y}}s.__esModule=!0,s.HandlebarsEnvironment=S;var r=t(2849),e=v(t(3769)),u=t(2277),_=t(5940),a=v(t(566)),c=t(3865);s.VERSION="4.7.7",s.COMPILER_REVISION=8,s.LAST_COMPATIBLE_COMPILER_REVISION=7,s.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var i="[object Object]";function S(y,l,o){this.helpers=y||{},this.partials=l||{},this.decorators=o||{},u.registerDefaultHelpers(this),_.registerDefaultDecorators(this)}S.prototype={constructor:S,logger:a.default,log:a.default.log,registerHelper:function(y,l){if(r.toString.call(y)===i){if(l)throw new e.default("Arg not supported with multiple helpers");r.extend(this.helpers,y)}else this.helpers[y]=l},unregisterHelper:function(y){delete this.helpers[y]},registerPartial:function(y,l){if(r.toString.call(y)===i)r.extend(this.partials,y);else{if(l===void 0)throw new e.default('Attempting to register a partial called "'+y+'" as undefined');this.partials[y]=l}},unregisterPartial:function(y){delete this.partials[y]},registerDecorator:function(y,l){if(r.toString.call(y)===i){if(l)throw new e.default("Arg not supported with multiple decorators");r.extend(this.decorators,y)}else this.decorators[y]=l},unregisterDecorator:function(y){delete this.decorators[y]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var f=a.default.log;s.log=f,s.createFrame=r.createFrame,s.logger=a.default},5940:function(p,s,t){s.__esModule=!0,s.registerDefaultDecorators=function(u){e.default(u)};var v,r=t(7430),e=(v=r)&&v.__esModule?v:{default:v}},7430:function(p,s,t){s.__esModule=!0;var v=t(2849);s.default=function(r){r.registerDecorator("inline",function(e,u,_,a){var c=e;return u.partials||(u.partials={},c=function(i,S){var f=_.partials;_.partials=v.extend({},f,u.partials);var y=e(i,S);return _.partials=f,y}),u.partials[a.args[0]]=a.fn,c})},p.exports=s.default},3769:function(p,s){s.__esModule=!0;var t=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function v(r,e){var u=e&&e.loc,_=void 0,a=void 0,c=void 0,i=void 0;u&&(_=u.start.line,a=u.end.line,c=u.start.column,i=u.end.column,r+=" - "+_+":"+c);for(var S=Error.prototype.constructor.call(this,r),f=0;f<t.length;f++)this[t[f]]=S[t[f]];Error.captureStackTrace&&Error.captureStackTrace(this,v);try{u&&(this.lineNumber=_,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:i,enumerable:!0})):(this.column=c,this.endColumn=i))}catch{}}v.prototype=new Error,s.default=v,p.exports=s.default},2277:function(p,s,t){function v(S){return S&&S.__esModule?S:{default:S}}s.__esModule=!0,s.registerDefaultHelpers=function(S){r.default(S),e.default(S),u.default(S),_.default(S),a.default(S),c.default(S),i.default(S)},s.moveHelperToHooks=function(S,f,y){S.helpers[f]&&(S.hooks[f]=S.helpers[f],y||delete S.helpers[f])};var r=v(t(6097)),e=v(t(6785)),u=v(t(4353)),_=v(t(2355)),a=v(t(5300)),c=v(t(7466)),i=v(t(908))},6097:function(p,s,t){s.__esModule=!0;var v=t(2849);s.default=function(r){r.registerHelper("blockHelperMissing",function(e,u){var _=u.inverse,a=u.fn;if(e===!0)return a(this);if(e===!1||e==null)return _(this);if(v.isArray(e))return e.length>0?(u.ids&&(u.ids=[u.name]),r.helpers.each(e,u)):_(this);if(u.data&&u.ids){var c=v.createFrame(u.data);c.contextPath=v.appendContextPath(u.data.contextPath,u.name),u={data:c}}return a(e,u)})},p.exports=s.default},6785:function(p,s,t){s.__esModule=!0;var v,r=t(2849),e=t(3769),u=(v=e)&&v.__esModule?v:{default:v};s.default=function(_){_.registerHelper("each",function(a,c){if(!c)throw new u.default("Must pass iterator to #each");var i,S=c.fn,f=c.inverse,y=0,l="",o=void 0,b=void 0;function E(U,L,B){o&&(o.key=U,o.index=L,o.first=L===0,o.last=!!B,b&&(o.contextPath=b+U)),l+=S(a[U],{data:o,blockParams:r.blockParams([a[U],U],[b+U,null])})}if(c.data&&c.ids&&(b=r.appendContextPath(c.data.contextPath,c.ids[0])+"."),r.isFunction(a)&&(a=a.call(this)),c.data&&(o=r.createFrame(c.data)),a&&typeof a=="object")if(r.isArray(a))for(var R=a.length;y<R;y++)y in a&&E(y,y,y===a.length-1);else if(t.g.Symbol&&a[t.g.Symbol.iterator]){for(var k=[],P=a[t.g.Symbol.iterator](),F=P.next();!F.done;F=P.next())k.push(F.value);for(R=(a=k).length;y<R;y++)E(y,y,y===a.length-1)}else i=void 0,Object.keys(a).forEach(function(U){i!==void 0&&E(i,y-1),i=U,y++}),i!==void 0&&E(i,y-1,!0);return y===0&&(l=f(this)),l})},p.exports=s.default},4353:function(p,s,t){s.__esModule=!0;var v,r=t(3769),e=(v=r)&&v.__esModule?v:{default:v};s.default=function(u){u.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},p.exports=s.default},2355:function(p,s,t){s.__esModule=!0;var v,r=t(2849),e=t(3769),u=(v=e)&&v.__esModule?v:{default:v};s.default=function(_){_.registerHelper("if",function(a,c){if(arguments.length!=2)throw new u.default("#if requires exactly one argument");return r.isFunction(a)&&(a=a.call(this)),!c.hash.includeZero&&!a||r.isEmpty(a)?c.inverse(this):c.fn(this)}),_.registerHelper("unless",function(a,c){if(arguments.length!=2)throw new u.default("#unless requires exactly one argument");return _.helpers.if.call(this,a,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},p.exports=s.default},5300:function(p,s){s.__esModule=!0,s.default=function(t){t.registerHelper("log",function(){for(var v=[void 0],r=arguments[arguments.length-1],e=0;e<arguments.length-1;e++)v.push(arguments[e]);var u=1;r.hash.level!=null?u=r.hash.level:r.data&&r.data.level!=null&&(u=r.data.level),v[0]=u,t.log.apply(t,v)})},p.exports=s.default},7466:function(p,s){s.__esModule=!0,s.default=function(t){t.registerHelper("lookup",function(v,r,e){return v&&e.lookupProperty(v,r)})},p.exports=s.default},908:function(p,s,t){s.__esModule=!0;var v,r=t(2849),e=t(3769),u=(v=e)&&v.__esModule?v:{default:v};s.default=function(_){_.registerHelper("with",function(a,c){if(arguments.length!=2)throw new u.default("#with requires exactly one argument");r.isFunction(a)&&(a=a.call(this));var i=c.fn;if(r.isEmpty(a))return c.inverse(this);var S=c.data;return c.data&&c.ids&&((S=r.createFrame(c.data)).contextPath=r.appendContextPath(c.data.contextPath,c.ids[0])),i(a,{data:S,blockParams:r.blockParams([a],[S&&S.contextPath])})})},p.exports=s.default},9726:function(p,s,t){s.__esModule=!0,s.createNewLookupObject=function(){for(var r=arguments.length,e=Array(r),u=0;u<r;u++)e[u]=arguments[u];return v.extend.apply(void 0,[Object.create(null)].concat(e))};var v=t(2849)},3865:function(p,s,t){s.__esModule=!0,s.createProtoAccessControl=function(_){var a=Object.create(null);a.constructor=!1,a.__defineGetter__=!1,a.__defineSetter__=!1,a.__lookupGetter__=!1;var c=Object.create(null);return c.__proto__=!1,{properties:{whitelist:v.createNewLookupObject(c,_.allowedProtoProperties),defaultValue:_.allowProtoPropertiesByDefault},methods:{whitelist:v.createNewLookupObject(a,_.allowedProtoMethods),defaultValue:_.allowProtoMethodsByDefault}}},s.resultIsAllowed=function(_,a,c){return u(typeof _=="function"?a.methods:a.properties,c)},s.resetLoggedProperties=function(){Object.keys(e).forEach(function(_){delete e[_]})};var v=t(9726),r=function(_){if(_&&_.__esModule)return _;var a={};if(_!=null)for(var c in _)Object.prototype.hasOwnProperty.call(_,c)&&(a[c]=_[c]);return a.default=_,a}(t(566)),e=Object.create(null);function u(_,a){return _.whitelist[a]!==void 0?_.whitelist[a]===!0:_.defaultValue!==void 0?_.defaultValue:(function(c){e[c]!==!0&&(e[c]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+c+`" because it is not an "own property" of its parent.
427
+ `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
428
+ </div>`},useData:!0})},261:function(b,c,n){function y(g){return g&&g.__esModule?g:{default:g}}function r(g){if(g&&g.__esModule)return g;var h={};if(g!=null)for(var u in g)Object.prototype.hasOwnProperty.call(g,u)&&(h[u]=g[u]);return h.default=g,h}c.__esModule=!0;var e=r(n(2871)),d=y(n(9613)),C=y(n(3769)),l=r(n(2849)),a=r(n(7624)),o=y(n(1148));function v(){var g=new e.HandlebarsEnvironment;return l.extend(g,e),g.SafeString=d.default,g.Exception=C.default,g.Utils=l,g.escapeExpression=l.escapeExpression,g.VM=a,g.template=function(h){return a.template(h,g)},g}var f=v();f.create=v,o.default(f),f.default=f,c.default=f,b.exports=c.default},2871:function(b,c,n){function y(g){return g&&g.__esModule?g:{default:g}}c.__esModule=!0,c.HandlebarsEnvironment=v;var r=n(2849),e=y(n(3769)),d=n(2277),C=n(5940),l=y(n(566)),a=n(3865);c.VERSION="4.7.7",c.COMPILER_REVISION=8,c.LAST_COMPATIBLE_COMPILER_REVISION=7,c.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var o="[object Object]";function v(g,h,u){this.helpers=g||{},this.partials=h||{},this.decorators=u||{},d.registerDefaultHelpers(this),C.registerDefaultDecorators(this)}v.prototype={constructor:v,logger:l.default,log:l.default.log,registerHelper:function(g,h){if(r.toString.call(g)===o){if(h)throw new e.default("Arg not supported with multiple helpers");r.extend(this.helpers,g)}else this.helpers[g]=h},unregisterHelper:function(g){delete this.helpers[g]},registerPartial:function(g,h){if(r.toString.call(g)===o)r.extend(this.partials,g);else{if(h===void 0)throw new e.default('Attempting to register a partial called "'+g+'" as undefined');this.partials[g]=h}},unregisterPartial:function(g){delete this.partials[g]},registerDecorator:function(g,h){if(r.toString.call(g)===o){if(h)throw new e.default("Arg not supported with multiple decorators");r.extend(this.decorators,g)}else this.decorators[g]=h},unregisterDecorator:function(g){delete this.decorators[g]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var f=l.default.log;c.log=f,c.createFrame=r.createFrame,c.logger=l.default},5940:function(b,c,n){c.__esModule=!0,c.registerDefaultDecorators=function(d){e.default(d)};var y,r=n(7430),e=(y=r)&&y.__esModule?y:{default:y}},7430:function(b,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerDecorator("inline",function(e,d,C,l){var a=e;return d.partials||(d.partials={},a=function(o,v){var f=C.partials;C.partials=y.extend({},f,d.partials);var g=e(o,v);return C.partials=f,g}),d.partials[l.args[0]]=l.fn,a})},b.exports=c.default},3769:function(b,c){c.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function y(r,e){var d=e&&e.loc,C=void 0,l=void 0,a=void 0,o=void 0;d&&(C=d.start.line,l=d.end.line,a=d.start.column,o=d.end.column,r+=" - "+C+":"+a);for(var v=Error.prototype.constructor.call(this,r),f=0;f<n.length;f++)this[n[f]]=v[n[f]];Error.captureStackTrace&&Error.captureStackTrace(this,y);try{d&&(this.lineNumber=C,this.endLineNumber=l,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:o,enumerable:!0})):(this.column=a,this.endColumn=o))}catch{}}y.prototype=new Error,c.default=y,b.exports=c.default},2277:function(b,c,n){function y(v){return v&&v.__esModule?v:{default:v}}c.__esModule=!0,c.registerDefaultHelpers=function(v){r.default(v),e.default(v),d.default(v),C.default(v),l.default(v),a.default(v),o.default(v)},c.moveHelperToHooks=function(v,f,g){v.helpers[f]&&(v.hooks[f]=v.helpers[f],g||delete v.helpers[f])};var r=y(n(6097)),e=y(n(6785)),d=y(n(4353)),C=y(n(2355)),l=y(n(5300)),a=y(n(7466)),o=y(n(908))},6097:function(b,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerHelper("blockHelperMissing",function(e,d){var C=d.inverse,l=d.fn;if(e===!0)return l(this);if(e===!1||e==null)return C(this);if(y.isArray(e))return e.length>0?(d.ids&&(d.ids=[d.name]),r.helpers.each(e,d)):C(this);if(d.data&&d.ids){var a=y.createFrame(d.data);a.contextPath=y.appendContextPath(d.data.contextPath,d.name),d={data:a}}return l(e,d)})},b.exports=c.default},6785:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("each",function(l,a){if(!a)throw new d.default("Must pass iterator to #each");var o,v=a.fn,f=a.inverse,g=0,h="",u=void 0,_=void 0;function k(q,j,D){u&&(u.key=q,u.index=j,u.first=j===0,u.last=!!D,_&&(u.contextPath=_+q)),h+=v(l[q],{data:u,blockParams:r.blockParams([l[q],q],[_+q,null])})}if(a.data&&a.ids&&(_=r.appendContextPath(a.data.contextPath,a.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),a.data&&(u=r.createFrame(a.data)),l&&typeof l=="object")if(r.isArray(l))for(var A=l.length;g<A;g++)g in l&&k(g,g,g===l.length-1);else if(n.g.Symbol&&l[n.g.Symbol.iterator]){for(var I=[],P=l[n.g.Symbol.iterator](),N=P.next();!N.done;N=P.next())I.push(N.value);for(A=(l=I).length;g<A;g++)k(g,g,g===l.length-1)}else o=void 0,Object.keys(l).forEach(function(q){o!==void 0&&k(o,g-1),o=q,g++}),o!==void 0&&k(o,g-1,!0);return g===0&&(h=f(this)),h})},b.exports=c.default},4353:function(b,c,n){c.__esModule=!0;var y,r=n(3769),e=(y=r)&&y.__esModule?y:{default:y};c.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},b.exports=c.default},2355:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||r.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},b.exports=c.default},5300:function(b,c){c.__esModule=!0,c.default=function(n){n.registerHelper("log",function(){for(var y=[void 0],r=arguments[arguments.length-1],e=0;e<arguments.length-1;e++)y.push(arguments[e]);var d=1;r.hash.level!=null?d=r.hash.level:r.data&&r.data.level!=null&&(d=r.data.level),y[0]=d,n.log.apply(n,y)})},b.exports=c.default},7466:function(b,c){c.__esModule=!0,c.default=function(n){n.registerHelper("lookup",function(y,r,e){return y&&e.lookupProperty(y,r)})},b.exports=c.default},908:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var o=a.fn;if(r.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=r.createFrame(a.data)).contextPath=r.appendContextPath(a.data.contextPath,a.ids[0])),o(l,{data:v,blockParams:r.blockParams([l],[v&&v.contextPath])})})},b.exports=c.default},9726:function(b,c,n){c.__esModule=!0,c.createNewLookupObject=function(){for(var r=arguments.length,e=Array(r),d=0;d<r;d++)e[d]=arguments[d];return y.extend.apply(void 0,[Object.create(null)].concat(e))};var y=n(2849)},3865:function(b,c,n){c.__esModule=!0,c.createProtoAccessControl=function(C){var l=Object.create(null);l.constructor=!1,l.__defineGetter__=!1,l.__defineSetter__=!1,l.__lookupGetter__=!1;var a=Object.create(null);return a.__proto__=!1,{properties:{whitelist:y.createNewLookupObject(a,C.allowedProtoProperties),defaultValue:C.allowProtoPropertiesByDefault},methods:{whitelist:y.createNewLookupObject(l,C.allowedProtoMethods),defaultValue:C.allowProtoMethodsByDefault}}},c.resultIsAllowed=function(C,l,a){return d(typeof C=="function"?l.methods:l.properties,a)},c.resetLoggedProperties=function(){Object.keys(e).forEach(function(C){delete e[C]})};var y=n(9726),r=function(C){if(C&&C.__esModule)return C;var l={};if(C!=null)for(var a in C)Object.prototype.hasOwnProperty.call(C,a)&&(l[a]=C[a]);return l.default=C,l}(n(566)),e=Object.create(null);function d(C,l){return C.whitelist[l]!==void 0?C.whitelist[l]===!0:C.defaultValue!==void 0?C.defaultValue:(function(a){e[a]!==!0&&(e[a]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+a+`" because it is not an "own property" of its parent.
222
429
  You can add a runtime option to disable the check or this warning:
223
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(a),!1)}},2614:function(p,s){s.__esModule=!0,s.wrapHelper=function(t,v){return typeof t!="function"?t:function(){return arguments[arguments.length-1]=v(arguments[arguments.length-1]),t.apply(this,arguments)}}},566:function(p,s,t){s.__esModule=!0;var v=t(2849),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var u=v.indexOf(r.methodMap,e.toLowerCase());e=u>=0?u:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),typeof console<"u"&&r.lookupLevel(r.level)<=e){var u=r.methodMap[e];console[u]||(u="log");for(var _=arguments.length,a=Array(_>1?_-1:0),c=1;c<_;c++)a[c-1]=arguments[c];console[u].apply(console,a)}}};s.default=r,p.exports=s.default},1148:function(p,s,t){s.__esModule=!0,s.default=function(v){var r=t.g!==void 0?t.g:window,e=r.Handlebars;v.noConflict=function(){return r.Handlebars===v&&(r.Handlebars=e),v}},p.exports=s.default},7624:function(p,s,t){s.__esModule=!0,s.checkRevision=function(l){var o=l&&l[0]||1,b=_.COMPILER_REVISION;if(!(o>=_.LAST_COMPATIBLE_COMPILER_REVISION&&o<=_.COMPILER_REVISION)){if(o<_.LAST_COMPATIBLE_COMPILER_REVISION){var E=_.REVISION_CHANGES[b],R=_.REVISION_CHANGES[o];throw new u.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+E+") or downgrade your runtime to an older version ("+R+").")}throw new u.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+l[1]+").")}},s.template=function(l,o){if(!o)throw new u.default("No environment passed to template");if(!l||!l.main)throw new u.default("Unknown template object: "+typeof l);l.main.decorator=l.main_d,o.VM.checkRevision(l.compiler);var b=l.compiler&&l.compiler[0]===7,E={strict:function(k,P,F){if(!k||!(P in k))throw new u.default('"'+P+'" not defined in '+k,{loc:F});return E.lookupProperty(k,P)},lookupProperty:function(k,P){var F=k[P];return F==null||Object.prototype.hasOwnProperty.call(k,P)||i.resultIsAllowed(F,E.protoAccessControl,P)?F:void 0},lookup:function(k,P){for(var F=k.length,U=0;U<F;U++)if((k[U]&&E.lookupProperty(k[U],P))!=null)return k[U][P]},lambda:function(k,P){return typeof k=="function"?k.call(P):k},escapeExpression:r.escapeExpression,invokePartial:function(k,P,F){F.hash&&(P=r.extend({},P,F.hash),F.ids&&(F.ids[0]=!0)),k=o.VM.resolvePartial.call(this,k,P,F);var U=r.extend({},F,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),L=o.VM.invokePartial.call(this,k,P,U);if(L==null&&o.compile&&(F.partials[F.name]=o.compile(k,l.compilerOptions,o),L=F.partials[F.name](P,U)),L!=null){if(F.indent){for(var B=L.split(`
224
- `),C=0,D=B.length;C<D&&(B[C]||C+1!==D);C++)B[C]=F.indent+B[C];L=B.join(`
225
- `)}return L}throw new u.default("The partial "+F.name+" could not be compiled when running in runtime-only mode")},fn:function(k){var P=l[k];return P.decorator=l[k+"_d"],P},programs:[],program:function(k,P,F,U,L){var B=this.programs[k],C=this.fn(k);return P||L||U||F?B=S(this,k,C,P,F,U,L):B||(B=this.programs[k]=S(this,k,C)),B},data:function(k,P){for(;k&&P--;)k=k._parent;return k},mergeIfNeeded:function(k,P){var F=k||P;return k&&P&&k!==P&&(F=r.extend({},P,k)),F},nullContext:Object.seal({}),noop:o.VM.noop,compilerInfo:l.compiler};function R(k){var P=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],F=P.data;R._setup(P),!P.partial&&l.useData&&(F=function(C,D){return D&&"root"in D||((D=D?_.createFrame(D):{}).root=C),D}(k,F));var U=void 0,L=l.useBlockParams?[]:void 0;function B(C){return""+l.main(E,C,E.helpers,E.partials,F,L,U)}return l.useDepths&&(U=P.depths?k!=P.depths[0]?[k].concat(P.depths):P.depths:[k]),(B=y(l.main,B,E,P.depths||[],F,L))(k,P)}return R.isTop=!0,R._setup=function(k){if(k.partial)E.protoAccessControl=k.protoAccessControl,E.helpers=k.helpers,E.partials=k.partials,E.decorators=k.decorators,E.hooks=k.hooks;else{var P=r.extend({},o.helpers,k.helpers);(function(U,L){Object.keys(U).forEach(function(B){var C=U[B];U[B]=function(D,G){var X=G.lookupProperty;return c.wrapHelper(D,function(z){return r.extend({lookupProperty:X},z)})}(C,L)})})(P,E),E.helpers=P,l.usePartial&&(E.partials=E.mergeIfNeeded(k.partials,o.partials)),(l.usePartial||l.useDecorators)&&(E.decorators=r.extend({},o.decorators,k.decorators)),E.hooks={},E.protoAccessControl=i.createProtoAccessControl(k);var F=k.allowCallsToHelperMissing||b;a.moveHelperToHooks(E,"helperMissing",F),a.moveHelperToHooks(E,"blockHelperMissing",F)}},R._child=function(k,P,F,U){if(l.useBlockParams&&!F)throw new u.default("must pass block params");if(l.useDepths&&!U)throw new u.default("must pass parent depths");return S(E,k,l[k],P,0,F,U)},R},s.wrapProgram=S,s.resolvePartial=function(l,o,b){return l?l.call||b.name||(b.name=l,l=b.partials[l]):l=b.name==="@partial-block"?b.data["partial-block"]:b.partials[b.name],l},s.invokePartial=function(l,o,b){var E=b.data&&b.data["partial-block"];b.partial=!0,b.ids&&(b.data.contextPath=b.ids[0]||b.data.contextPath);var R=void 0;if(b.fn&&b.fn!==f&&function(){b.data=_.createFrame(b.data);var k=b.fn;R=b.data["partial-block"]=function(P){var F=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return F.data=_.createFrame(F.data),F.data["partial-block"]=E,k(P,F)},k.partials&&(b.partials=r.extend({},b.partials,k.partials))}(),l===void 0&&R&&(l=R),l===void 0)throw new u.default("The partial "+b.name+" could not be found");if(l instanceof Function)return l(o,b)},s.noop=f;var v,r=function(l){if(l&&l.__esModule)return l;var o={};if(l!=null)for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&(o[b]=l[b]);return o.default=l,o}(t(2849)),e=t(3769),u=(v=e)&&v.__esModule?v:{default:v},_=t(2871),a=t(2277),c=t(2614),i=t(3865);function S(l,o,b,E,R,k,P){function F(U){var L=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],B=P;return!P||U==P[0]||U===l.nullContext&&P[0]===null||(B=[U].concat(P)),b(l,U,l.helpers,l.partials,L.data||E,k&&[L.blockParams].concat(k),B)}return(F=y(b,F,l,P,E,k)).program=o,F.depth=P?P.length:0,F.blockParams=R||0,F}function f(){return""}function y(l,o,b,E,R,k){if(l.decorator){var P={};o=l.decorator(o,P,b,E&&E[0],R,k,E),r.extend(o,P)}return o}},9613:function(p,s){function t(v){this.string=v}s.__esModule=!0,t.prototype.toString=t.prototype.toHTML=function(){return""+this.string},s.default=t,p.exports=s.default},2849:function(p,s){s.__esModule=!0,s.extend=u,s.indexOf=function(i,S){for(var f=0,y=i.length;f<y;f++)if(i[f]===S)return f;return-1},s.escapeExpression=function(i){if(typeof i!="string"){if(i&&i.toHTML)return i.toHTML();if(i==null)return"";if(!i)return i+"";i=""+i}return r.test(i)?i.replace(v,e):i},s.isEmpty=function(i){return!i&&i!==0||!(!c(i)||i.length!==0)},s.createFrame=function(i){var S=u({},i);return S._parent=i,S},s.blockParams=function(i,S){return i.path=S,i},s.appendContextPath=function(i,S){return(i?i+".":"")+S};var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},v=/[&<>"'`=]/g,r=/[&<>"'`=]/;function e(i){return t[i]}function u(i){for(var S=1;S<arguments.length;S++)for(var f in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],f)&&(i[f]=arguments[S][f]);return i}var _=Object.prototype.toString;s.toString=_;var a=function(i){return typeof i=="function"};a(/x/)&&(s.isFunction=a=function(i){return typeof i=="function"&&_.call(i)==="[object Function]"}),s.isFunction=a;var c=Array.isArray||function(i){return!(!i||typeof i!="object")&&_.call(i)==="[object Array]"};s.isArray=c},2334:function(p){p.exports=function(s){function t(r){if(v[r])return v[r].exports;var e=v[r]={exports:{},id:r,loaded:!1};return s[r].call(e.exports,e,e.exports,t),e.loaded=!0,e.exports}var v={};return t.m=s,t.c=v,t.p="",t(0)}([function(s,t,v){function r(){var o=y();return o.compile=function(b,E){return c.compile(b,E,o)},o.precompile=function(b,E){return c.precompile(b,E,o)},o.AST=_.default,o.Compiler=c.Compiler,o.JavaScriptCompiler=i.default,o.Parser=a.parser,o.parse=a.parse,o.parseWithoutProcessing=a.parseWithoutProcessing,o}var e=v(1).default;t.__esModule=!0;var u=e(v(2)),_=e(v(45)),a=v(46),c=v(51),i=e(v(52)),S=e(v(49)),f=e(v(44)),y=u.default.create,l=r();l.create=r,f.default(l),l.Visitor=S.default,l.default=l,t.default=l,s.exports=t.default},function(s,t){t.default=function(v){return v&&v.__esModule?v:{default:v}},t.__esModule=!0},function(s,t,v){function r(){var l=new _.HandlebarsEnvironment;return i.extend(l,_),l.SafeString=a.default,l.Exception=c.default,l.Utils=i,l.escapeExpression=i.escapeExpression,l.VM=S,l.template=function(o){return S.template(o,l)},l}var e=v(3).default,u=v(1).default;t.__esModule=!0;var _=e(v(4)),a=u(v(37)),c=u(v(6)),i=e(v(5)),S=e(v(38)),f=u(v(44)),y=r();y.create=r,f.default(y),y.default=y,t.default=y,s.exports=t.default},function(s,t){t.default=function(v){if(v&&v.__esModule)return v;var r={};if(v!=null)for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(r[e]=v[e]);return r.default=v,r},t.__esModule=!0},function(s,t,v){function r(R,k,P){this.helpers=R||{},this.partials=k||{},this.decorators=P||{},a.registerDefaultHelpers(this),c.registerDefaultDecorators(this)}var e=v(1).default;t.__esModule=!0,t.HandlebarsEnvironment=r;var u=v(5),_=e(v(6)),a=v(10),c=v(30),i=e(v(32)),S=v(33),f="4.7.7";t.VERSION=f;var y=8;t.COMPILER_REVISION=y;var l=7;t.LAST_COMPATIBLE_COMPILER_REVISION=l;var o={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};t.REVISION_CHANGES=o;var b="[object Object]";r.prototype={constructor:r,logger:i.default,log:i.default.log,registerHelper:function(R,k){if(u.toString.call(R)===b){if(k)throw new _.default("Arg not supported with multiple helpers");u.extend(this.helpers,R)}else this.helpers[R]=k},unregisterHelper:function(R){delete this.helpers[R]},registerPartial:function(R,k){if(u.toString.call(R)===b)u.extend(this.partials,R);else{if(k===void 0)throw new _.default('Attempting to register a partial called "'+R+'" as undefined');this.partials[R]=k}},unregisterPartial:function(R){delete this.partials[R]},registerDecorator:function(R,k){if(u.toString.call(R)===b){if(k)throw new _.default("Arg not supported with multiple decorators");u.extend(this.decorators,R)}else this.decorators[R]=k},unregisterDecorator:function(R){delete this.decorators[R]},resetLoggedPropertyAccesses:function(){S.resetLoggedProperties()}};var E=i.default.log;t.log=E,t.createFrame=u.createFrame,t.logger=i.default},function(s,t){function v(E){return S[E]}function r(E){for(var R=1;R<arguments.length;R++)for(var k in arguments[R])Object.prototype.hasOwnProperty.call(arguments[R],k)&&(E[k]=arguments[R][k]);return E}function e(E,R){for(var k=0,P=E.length;k<P;k++)if(E[k]===R)return k;return-1}function u(E){if(typeof E!="string"){if(E&&E.toHTML)return E.toHTML();if(E==null)return"";if(!E)return E+"";E=""+E}return y.test(E)?E.replace(f,v):E}function _(E){return!E&&E!==0||!(!b(E)||E.length!==0)}function a(E){var R=r({},E);return R._parent=E,R}function c(E,R){return E.path=R,E}function i(E,R){return(E?E+".":"")+R}t.__esModule=!0,t.extend=r,t.indexOf=e,t.escapeExpression=u,t.isEmpty=_,t.createFrame=a,t.blockParams=c,t.appendContextPath=i;var S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},f=/[&<>"'`=]/g,y=/[&<>"'`=]/,l=Object.prototype.toString;t.toString=l;var o=function(E){return typeof E=="function"};o(/x/)&&(t.isFunction=o=function(E){return typeof E=="function"&&l.call(E)==="[object Function]"}),t.isFunction=o;var b=Array.isArray||function(E){return!(!E||typeof E!="object")&&l.call(E)==="[object Array]"};t.isArray=b},function(s,t,v){function r(_,a){var c=a&&a.loc,i=void 0,S=void 0,f=void 0,y=void 0;c&&(i=c.start.line,S=c.end.line,f=c.start.column,y=c.end.column,_+=" - "+i+":"+f);for(var l=Error.prototype.constructor.call(this,_),o=0;o<u.length;o++)this[u[o]]=l[u[o]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{c&&(this.lineNumber=i,this.endLineNumber=S,e?(Object.defineProperty(this,"column",{value:f,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:y,enumerable:!0})):(this.column=f,this.endColumn=y))}catch{}}var e=v(7).default;t.__esModule=!0;var u=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];r.prototype=new Error,t.default=r,s.exports=t.default},function(s,t,v){s.exports={default:v(8),__esModule:!0}},function(s,t,v){var r=v(9);s.exports=function(e,u,_){return r.setDesc(e,u,_)}},function(s,t){var v=Object;s.exports={create:v.create,getProto:v.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:v.getOwnPropertyDescriptor,setDesc:v.defineProperty,setDescs:v.defineProperties,getKeys:v.keys,getNames:v.getOwnPropertyNames,getSymbols:v.getOwnPropertySymbols,each:[].forEach}},function(s,t,v){function r(l){_.default(l),a.default(l),c.default(l),i.default(l),S.default(l),f.default(l),y.default(l)}function e(l,o,b){l.helpers[o]&&(l.hooks[o]=l.helpers[o],b||delete l.helpers[o])}var u=v(1).default;t.__esModule=!0,t.registerDefaultHelpers=r,t.moveHelperToHooks=e;var _=u(v(11)),a=u(v(12)),c=u(v(25)),i=u(v(26)),S=u(v(27)),f=u(v(28)),y=u(v(29))},function(s,t,v){t.__esModule=!0;var r=v(5);t.default=function(e){e.registerHelper("blockHelperMissing",function(u,_){var a=_.inverse,c=_.fn;if(u===!0)return c(this);if(u===!1||u==null)return a(this);if(r.isArray(u))return u.length>0?(_.ids&&(_.ids=[_.name]),e.helpers.each(u,_)):a(this);if(_.data&&_.ids){var i=r.createFrame(_.data);i.contextPath=r.appendContextPath(_.data.contextPath,_.name),_={data:i}}return c(u,_)})},s.exports=t.default},function(s,t,v){(function(r){var e=v(13).default,u=v(1).default;t.__esModule=!0;var _=v(5),a=u(v(6));t.default=function(c){c.registerHelper("each",function(i,S){function f(L,B,C){E&&(E.key=L,E.index=B,E.first=B===0,E.last=!!C,R&&(E.contextPath=R+L)),b+=y(i[L],{data:E,blockParams:_.blockParams([i[L],L],[R+L,null])})}if(!S)throw new a.default("Must pass iterator to #each");var y=S.fn,l=S.inverse,o=0,b="",E=void 0,R=void 0;if(S.data&&S.ids&&(R=_.appendContextPath(S.data.contextPath,S.ids[0])+"."),_.isFunction(i)&&(i=i.call(this)),S.data&&(E=_.createFrame(S.data)),i&&typeof i=="object")if(_.isArray(i))for(var k=i.length;o<k;o++)o in i&&f(o,o,o===i.length-1);else if(r.Symbol&&i[r.Symbol.iterator]){for(var P=[],F=i[r.Symbol.iterator](),U=F.next();!U.done;U=F.next())P.push(U.value);for(k=(i=P).length;o<k;o++)f(o,o,o===i.length-1)}else(function(){var L=void 0;e(i).forEach(function(B){L!==void 0&&f(L,o-1),L=B,o++}),L!==void 0&&f(L,o-1,!0)})();return o===0&&(b=l(this)),b})},s.exports=t.default}).call(t,function(){return this}())},function(s,t,v){s.exports={default:v(14),__esModule:!0}},function(s,t,v){v(15),s.exports=v(21).Object.keys},function(s,t,v){var r=v(16);v(18)("keys",function(e){return function(u){return e(r(u))}})},function(s,t,v){var r=v(17);s.exports=function(e){return Object(r(e))}},function(s,t){s.exports=function(v){if(v==null)throw TypeError("Can't call method on "+v);return v}},function(s,t,v){var r=v(19),e=v(21),u=v(24);s.exports=function(_,a){var c=(e.Object||{})[_]||Object[_],i={};i[_]=a(c),r(r.S+r.F*u(function(){c(1)}),"Object",i)}},function(s,t,v){var r=v(20),e=v(21),u=v(22),_="prototype",a=function(c,i,S){var f,y,l,o=c&a.F,b=c&a.G,E=c&a.S,R=c&a.P,k=c&a.B,P=c&a.W,F=b?e:e[i]||(e[i]={}),U=b?r:E?r[i]:(r[i]||{})[_];for(f in b&&(S=i),S)(y=!o&&U&&f in U)&&f in F||(l=y?U[f]:S[f],F[f]=b&&typeof U[f]!="function"?S[f]:k&&y?u(l,r):P&&U[f]==l?function(L){var B=function(C){return this instanceof L?new L(C):L(C)};return B[_]=L[_],B}(l):R&&typeof l=="function"?u(Function.call,l):l,R&&((F[_]||(F[_]={}))[f]=l))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,s.exports=a},function(s,t){var v=s.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=v)},function(s,t){var v=s.exports={version:"1.2.6"};typeof __e=="number"&&(__e=v)},function(s,t,v){var r=v(23);s.exports=function(e,u,_){if(r(e),u===void 0)return e;switch(_){case 1:return function(a){return e.call(u,a)};case 2:return function(a,c){return e.call(u,a,c)};case 3:return function(a,c,i){return e.call(u,a,c,i)}}return function(){return e.apply(u,arguments)}}},function(s,t){s.exports=function(v){if(typeof v!="function")throw TypeError(v+" is not a function!");return v}},function(s,t){s.exports=function(v){try{return!!v()}catch{return!0}}},function(s,t,v){var r=v(1).default;t.__esModule=!0;var e=r(v(6));t.default=function(u){u.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},s.exports=t.default},function(s,t,v){var r=v(1).default;t.__esModule=!0;var e=v(5),u=r(v(6));t.default=function(_){_.registerHelper("if",function(a,c){if(arguments.length!=2)throw new u.default("#if requires exactly one argument");return e.isFunction(a)&&(a=a.call(this)),!c.hash.includeZero&&!a||e.isEmpty(a)?c.inverse(this):c.fn(this)}),_.registerHelper("unless",function(a,c){if(arguments.length!=2)throw new u.default("#unless requires exactly one argument");return _.helpers.if.call(this,a,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},s.exports=t.default},function(s,t){t.__esModule=!0,t.default=function(v){v.registerHelper("log",function(){for(var r=[void 0],e=arguments[arguments.length-1],u=0;u<arguments.length-1;u++)r.push(arguments[u]);var _=1;e.hash.level!=null?_=e.hash.level:e.data&&e.data.level!=null&&(_=e.data.level),r[0]=_,v.log.apply(v,r)})},s.exports=t.default},function(s,t){t.__esModule=!0,t.default=function(v){v.registerHelper("lookup",function(r,e,u){return r&&u.lookupProperty(r,e)})},s.exports=t.default},function(s,t,v){var r=v(1).default;t.__esModule=!0;var e=v(5),u=r(v(6));t.default=function(_){_.registerHelper("with",function(a,c){if(arguments.length!=2)throw new u.default("#with requires exactly one argument");e.isFunction(a)&&(a=a.call(this));var i=c.fn;if(e.isEmpty(a))return c.inverse(this);var S=c.data;return c.data&&c.ids&&((S=e.createFrame(c.data)).contextPath=e.appendContextPath(c.data.contextPath,c.ids[0])),i(a,{data:S,blockParams:e.blockParams([a],[S&&S.contextPath])})})},s.exports=t.default},function(s,t,v){function r(_){u.default(_)}var e=v(1).default;t.__esModule=!0,t.registerDefaultDecorators=r;var u=e(v(31))},function(s,t,v){t.__esModule=!0;var r=v(5);t.default=function(e){e.registerDecorator("inline",function(u,_,a,c){var i=u;return _.partials||(_.partials={},i=function(S,f){var y=a.partials;a.partials=r.extend({},y,_.partials);var l=u(S,f);return a.partials=y,l}),_.partials[c.args[0]]=c.fn,i})},s.exports=t.default},function(s,t,v){t.__esModule=!0;var r=v(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(u){if(typeof u=="string"){var _=r.indexOf(e.methodMap,u.toLowerCase());u=_>=0?_:parseInt(u,10)}return u},log:function(u){if(u=e.lookupLevel(u),typeof console<"u"&&e.lookupLevel(e.level)<=u){var _=e.methodMap[u];console[_]||(_="log");for(var a=arguments.length,c=Array(a>1?a-1:0),i=1;i<a;i++)c[i-1]=arguments[i];console[_].apply(console,c)}}};t.default=e,s.exports=t.default},function(s,t,v){function r(o){var b=c(null);b.constructor=!1,b.__defineGetter__=!1,b.__defineSetter__=!1,b.__lookupGetter__=!1;var E=c(null);return E.__proto__=!1,{properties:{whitelist:f.createNewLookupObject(E,o.allowedProtoProperties),defaultValue:o.allowProtoPropertiesByDefault},methods:{whitelist:f.createNewLookupObject(b,o.allowedProtoMethods),defaultValue:o.allowProtoMethodsByDefault}}}function e(o,b,E){return u(typeof o=="function"?b.methods:b.properties,E)}function u(o,b){return o.whitelist[b]!==void 0?o.whitelist[b]===!0:o.defaultValue!==void 0?o.defaultValue:(_(b),!1)}function _(o){l[o]!==!0&&(l[o]=!0,y.log("error",'Handlebars: Access has been denied to resolve the property "'+o+`" because it is not an "own property" of its parent.
430
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(l),!1)}},2614:function(b,c){c.__esModule=!0,c.wrapHelper=function(n,y){return typeof n!="function"?n:function(){return arguments[arguments.length-1]=y(arguments[arguments.length-1]),n.apply(this,arguments)}}},566:function(b,c,n){c.__esModule=!0;var y=n(2849),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var d=y.indexOf(r.methodMap,e.toLowerCase());e=d>=0?d:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),typeof console<"u"&&r.lookupLevel(r.level)<=e){var d=r.methodMap[e];console[d]||(d="log");for(var C=arguments.length,l=Array(C>1?C-1:0),a=1;a<C;a++)l[a-1]=arguments[a];console[d].apply(console,l)}}};c.default=r,b.exports=c.default},1148:function(b,c,n){c.__esModule=!0,c.default=function(y){var r=n.g!==void 0?n.g:window,e=r.Handlebars;y.noConflict=function(){return r.Handlebars===y&&(r.Handlebars=e),y}},b.exports=c.default},7624:function(b,c,n){c.__esModule=!0,c.checkRevision=function(h){var u=h&&h[0]||1,_=C.COMPILER_REVISION;if(!(u>=C.LAST_COMPATIBLE_COMPILER_REVISION&&u<=C.COMPILER_REVISION)){if(u<C.LAST_COMPATIBLE_COMPILER_REVISION){var k=C.REVISION_CHANGES[_],A=C.REVISION_CHANGES[u];throw new d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+k+") or downgrade your runtime to an older version ("+A+").")}throw new d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+h[1]+").")}},c.template=function(h,u){if(!u)throw new d.default("No environment passed to template");if(!h||!h.main)throw new d.default("Unknown template object: "+typeof h);h.main.decorator=h.main_d,u.VM.checkRevision(h.compiler);var _=h.compiler&&h.compiler[0]===7,k={strict:function(I,P,N){if(!I||!(P in I))throw new d.default('"'+P+'" not defined in '+I,{loc:N});return k.lookupProperty(I,P)},lookupProperty:function(I,P){var N=I[P];return N==null||Object.prototype.hasOwnProperty.call(I,P)||o.resultIsAllowed(N,k.protoAccessControl,P)?N:void 0},lookup:function(I,P){for(var N=I.length,q=0;q<N;q++)if((I[q]&&k.lookupProperty(I[q],P))!=null)return I[q][P]},lambda:function(I,P){return typeof I=="function"?I.call(P):I},escapeExpression:r.escapeExpression,invokePartial:function(I,P,N){N.hash&&(P=r.extend({},P,N.hash),N.ids&&(N.ids[0]=!0)),I=u.VM.resolvePartial.call(this,I,P,N);var q=r.extend({},N,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),j=u.VM.invokePartial.call(this,I,P,q);if(j==null&&u.compile&&(N.partials[N.name]=u.compile(I,h.compilerOptions,u),j=N.partials[N.name](P,q)),j!=null){if(N.indent){for(var D=j.split(`
431
+ `),L=0,V=D.length;L<V&&(D[L]||L+1!==V);L++)D[L]=N.indent+D[L];j=D.join(`
432
+ `)}return j}throw new d.default("The partial "+N.name+" could not be compiled when running in runtime-only mode")},fn:function(I){var P=h[I];return P.decorator=h[I+"_d"],P},programs:[],program:function(I,P,N,q,j){var D=this.programs[I],L=this.fn(I);return P||j||q||N?D=v(this,I,L,P,N,q,j):D||(D=this.programs[I]=v(this,I,L)),D},data:function(I,P){for(;I&&P--;)I=I._parent;return I},mergeIfNeeded:function(I,P){var N=I||P;return I&&P&&I!==P&&(N=r.extend({},P,I)),N},nullContext:Object.seal({}),noop:u.VM.noop,compilerInfo:h.compiler};function A(I){var P=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],N=P.data;A._setup(P),!P.partial&&h.useData&&(N=function(L,V){return V&&"root"in V||((V=V?C.createFrame(V):{}).root=L),V}(I,N));var q=void 0,j=h.useBlockParams?[]:void 0;function D(L){return""+h.main(k,L,k.helpers,k.partials,N,j,q)}return h.useDepths&&(q=P.depths?I!=P.depths[0]?[I].concat(P.depths):P.depths:[I]),(D=g(h.main,D,k,P.depths||[],N,j))(I,P)}return A.isTop=!0,A._setup=function(I){if(I.partial)k.protoAccessControl=I.protoAccessControl,k.helpers=I.helpers,k.partials=I.partials,k.decorators=I.decorators,k.hooks=I.hooks;else{var P=r.extend({},u.helpers,I.helpers);(function(q,j){Object.keys(q).forEach(function(D){var L=q[D];q[D]=function(V,J){var se=J.lookupProperty;return a.wrapHelper(V,function(ne){return r.extend({lookupProperty:se},ne)})}(L,j)})})(P,k),k.helpers=P,h.usePartial&&(k.partials=k.mergeIfNeeded(I.partials,u.partials)),(h.usePartial||h.useDecorators)&&(k.decorators=r.extend({},u.decorators,I.decorators)),k.hooks={},k.protoAccessControl=o.createProtoAccessControl(I);var N=I.allowCallsToHelperMissing||_;l.moveHelperToHooks(k,"helperMissing",N),l.moveHelperToHooks(k,"blockHelperMissing",N)}},A._child=function(I,P,N,q){if(h.useBlockParams&&!N)throw new d.default("must pass block params");if(h.useDepths&&!q)throw new d.default("must pass parent depths");return v(k,I,h[I],P,0,N,q)},A},c.wrapProgram=v,c.resolvePartial=function(h,u,_){return h?h.call||_.name||(_.name=h,h=_.partials[h]):h=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],h},c.invokePartial=function(h,u,_){var k=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var A=void 0;if(_.fn&&_.fn!==f&&function(){_.data=C.createFrame(_.data);var I=_.fn;A=_.data["partial-block"]=function(P){var N=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return N.data=C.createFrame(N.data),N.data["partial-block"]=k,I(P,N)},I.partials&&(_.partials=r.extend({},_.partials,I.partials))}(),h===void 0&&A&&(h=A),h===void 0)throw new d.default("The partial "+_.name+" could not be found");if(h instanceof Function)return h(u,_)},c.noop=f;var y,r=function(h){if(h&&h.__esModule)return h;var u={};if(h!=null)for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(u[_]=h[_]);return u.default=h,u}(n(2849)),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y},C=n(2871),l=n(2277),a=n(2614),o=n(3865);function v(h,u,_,k,A,I,P){function N(q){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=P;return!P||q==P[0]||q===h.nullContext&&P[0]===null||(D=[q].concat(P)),_(h,q,h.helpers,h.partials,j.data||k,I&&[j.blockParams].concat(I),D)}return(N=g(_,N,h,P,k,I)).program=u,N.depth=P?P.length:0,N.blockParams=A||0,N}function f(){return""}function g(h,u,_,k,A,I){if(h.decorator){var P={};u=h.decorator(u,P,_,k&&k[0],A,I,k),r.extend(u,P)}return u}},9613:function(b,c){function n(y){this.string=y}c.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},c.default=n,b.exports=c.default},2849:function(b,c){c.__esModule=!0,c.extend=d,c.indexOf=function(o,v){for(var f=0,g=o.length;f<g;f++)if(o[f]===v)return f;return-1},c.escapeExpression=function(o){if(typeof o!="string"){if(o&&o.toHTML)return o.toHTML();if(o==null)return"";if(!o)return o+"";o=""+o}return r.test(o)?o.replace(y,e):o},c.isEmpty=function(o){return!o&&o!==0||!(!a(o)||o.length!==0)},c.createFrame=function(o){var v=d({},o);return v._parent=o,v},c.blockParams=function(o,v){return o.path=v,o},c.appendContextPath=function(o,v){return(o?o+".":"")+v};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},y=/[&<>"'`=]/g,r=/[&<>"'`=]/;function e(o){return n[o]}function d(o){for(var v=1;v<arguments.length;v++)for(var f in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],f)&&(o[f]=arguments[v][f]);return o}var C=Object.prototype.toString;c.toString=C;var l=function(o){return typeof o=="function"};l(/x/)&&(c.isFunction=l=function(o){return typeof o=="function"&&C.call(o)==="[object Function]"}),c.isFunction=l;var a=Array.isArray||function(o){return!(!o||typeof o!="object")&&C.call(o)==="[object Array]"};c.isArray=a},2334:function(b){b.exports=function(c){function n(r){if(y[r])return y[r].exports;var e=y[r]={exports:{},id:r,loaded:!1};return c[r].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var y={};return n.m=c,n.c=y,n.p="",n(0)}([function(c,n,y){function r(){var u=g();return u.compile=function(_,k){return a.compile(_,k,u)},u.precompile=function(_,k){return a.precompile(_,k,u)},u.AST=C.default,u.Compiler=a.Compiler,u.JavaScriptCompiler=o.default,u.Parser=l.parser,u.parse=l.parse,u.parseWithoutProcessing=l.parseWithoutProcessing,u}var e=y(1).default;n.__esModule=!0;var d=e(y(2)),C=e(y(45)),l=y(46),a=y(51),o=e(y(52)),v=e(y(49)),f=e(y(44)),g=d.default.create,h=r();h.create=r,f.default(h),h.Visitor=v.default,h.default=h,n.default=h,c.exports=n.default},function(c,n){n.default=function(y){return y&&y.__esModule?y:{default:y}},n.__esModule=!0},function(c,n,y){function r(){var h=new C.HandlebarsEnvironment;return o.extend(h,C),h.SafeString=l.default,h.Exception=a.default,h.Utils=o,h.escapeExpression=o.escapeExpression,h.VM=v,h.template=function(u){return v.template(u,h)},h}var e=y(3).default,d=y(1).default;n.__esModule=!0;var C=e(y(4)),l=d(y(37)),a=d(y(6)),o=e(y(5)),v=e(y(38)),f=d(y(44)),g=r();g.create=r,f.default(g),g.default=g,n.default=g,c.exports=n.default},function(c,n){n.default=function(y){if(y&&y.__esModule)return y;var r={};if(y!=null)for(var e in y)Object.prototype.hasOwnProperty.call(y,e)&&(r[e]=y[e]);return r.default=y,r},n.__esModule=!0},function(c,n,y){function r(A,I,P){this.helpers=A||{},this.partials=I||{},this.decorators=P||{},l.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=y(1).default;n.__esModule=!0,n.HandlebarsEnvironment=r;var d=y(5),C=e(y(6)),l=y(10),a=y(30),o=e(y(32)),v=y(33),f="4.7.7";n.VERSION=f;var g=8;n.COMPILER_REVISION=g;var h=7;n.LAST_COMPATIBLE_COMPILER_REVISION=h;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};n.REVISION_CHANGES=u;var _="[object Object]";r.prototype={constructor:r,logger:o.default,log:o.default.log,registerHelper:function(A,I){if(d.toString.call(A)===_){if(I)throw new C.default("Arg not supported with multiple helpers");d.extend(this.helpers,A)}else this.helpers[A]=I},unregisterHelper:function(A){delete this.helpers[A]},registerPartial:function(A,I){if(d.toString.call(A)===_)d.extend(this.partials,A);else{if(I===void 0)throw new C.default('Attempting to register a partial called "'+A+'" as undefined');this.partials[A]=I}},unregisterPartial:function(A){delete this.partials[A]},registerDecorator:function(A,I){if(d.toString.call(A)===_){if(I)throw new C.default("Arg not supported with multiple decorators");d.extend(this.decorators,A)}else this.decorators[A]=I},unregisterDecorator:function(A){delete this.decorators[A]},resetLoggedPropertyAccesses:function(){v.resetLoggedProperties()}};var k=o.default.log;n.log=k,n.createFrame=d.createFrame,n.logger=o.default},function(c,n){function y(k){return v[k]}function r(k){for(var A=1;A<arguments.length;A++)for(var I in arguments[A])Object.prototype.hasOwnProperty.call(arguments[A],I)&&(k[I]=arguments[A][I]);return k}function e(k,A){for(var I=0,P=k.length;I<P;I++)if(k[I]===A)return I;return-1}function d(k){if(typeof k!="string"){if(k&&k.toHTML)return k.toHTML();if(k==null)return"";if(!k)return k+"";k=""+k}return g.test(k)?k.replace(f,y):k}function C(k){return!k&&k!==0||!(!_(k)||k.length!==0)}function l(k){var A=r({},k);return A._parent=k,A}function a(k,A){return k.path=A,k}function o(k,A){return(k?k+".":"")+A}n.__esModule=!0,n.extend=r,n.indexOf=e,n.escapeExpression=d,n.isEmpty=C,n.createFrame=l,n.blockParams=a,n.appendContextPath=o;var v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},f=/[&<>"'`=]/g,g=/[&<>"'`=]/,h=Object.prototype.toString;n.toString=h;var u=function(k){return typeof k=="function"};u(/x/)&&(n.isFunction=u=function(k){return typeof k=="function"&&h.call(k)==="[object Function]"}),n.isFunction=u;var _=Array.isArray||function(k){return!(!k||typeof k!="object")&&h.call(k)==="[object Array]"};n.isArray=_},function(c,n,y){function r(C,l){var a=l&&l.loc,o=void 0,v=void 0,f=void 0,g=void 0;a&&(o=a.start.line,v=a.end.line,f=a.start.column,g=a.end.column,C+=" - "+o+":"+f);for(var h=Error.prototype.constructor.call(this,C),u=0;u<d.length;u++)this[d[u]]=h[d[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=o,this.endLineNumber=v,e?(Object.defineProperty(this,"column",{value:f,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:g,enumerable:!0})):(this.column=f,this.endColumn=g))}catch{}}var e=y(7).default;n.__esModule=!0;var d=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];r.prototype=new Error,n.default=r,c.exports=n.default},function(c,n,y){c.exports={default:y(8),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d,C){return r.setDesc(e,d,C)}},function(c,n){var y=Object;c.exports={create:y.create,getProto:y.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:y.getOwnPropertyDescriptor,setDesc:y.defineProperty,setDescs:y.defineProperties,getKeys:y.keys,getNames:y.getOwnPropertyNames,getSymbols:y.getOwnPropertySymbols,each:[].forEach}},function(c,n,y){function r(h){C.default(h),l.default(h),a.default(h),o.default(h),v.default(h),f.default(h),g.default(h)}function e(h,u,_){h.helpers[u]&&(h.hooks[u]=h.helpers[u],_||delete h.helpers[u])}var d=y(1).default;n.__esModule=!0,n.registerDefaultHelpers=r,n.moveHelperToHooks=e;var C=d(y(11)),l=d(y(12)),a=d(y(25)),o=d(y(26)),v=d(y(27)),f=d(y(28)),g=d(y(29))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(d,C){var l=C.inverse,a=C.fn;if(d===!0)return a(this);if(d===!1||d==null)return l(this);if(r.isArray(d))return d.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(d,C)):l(this);if(C.data&&C.ids){var o=r.createFrame(C.data);o.contextPath=r.appendContextPath(C.data.contextPath,C.name),C={data:o}}return a(d,C)})},c.exports=n.default},function(c,n,y){(function(r){var e=y(13).default,d=y(1).default;n.__esModule=!0;var C=y(5),l=d(y(6));n.default=function(a){a.registerHelper("each",function(o,v){function f(j,D,L){k&&(k.key=j,k.index=D,k.first=D===0,k.last=!!L,A&&(k.contextPath=A+j)),_+=g(o[j],{data:k,blockParams:C.blockParams([o[j],j],[A+j,null])})}if(!v)throw new l.default("Must pass iterator to #each");var g=v.fn,h=v.inverse,u=0,_="",k=void 0,A=void 0;if(v.data&&v.ids&&(A=C.appendContextPath(v.data.contextPath,v.ids[0])+"."),C.isFunction(o)&&(o=o.call(this)),v.data&&(k=C.createFrame(v.data)),o&&typeof o=="object")if(C.isArray(o))for(var I=o.length;u<I;u++)u in o&&f(u,u,u===o.length-1);else if(r.Symbol&&o[r.Symbol.iterator]){for(var P=[],N=o[r.Symbol.iterator](),q=N.next();!q.done;q=N.next())P.push(q.value);for(I=(o=P).length;u<I;u++)f(u,u,u===o.length-1)}else(function(){var j=void 0;e(o).forEach(function(D){j!==void 0&&f(j,u-1),j=D,u++}),j!==void 0&&f(j,u-1,!0)})();return u===0&&(_=h(this)),_})},c.exports=n.default}).call(n,function(){return this}())},function(c,n,y){c.exports={default:y(14),__esModule:!0}},function(c,n,y){y(15),c.exports=y(21).Object.keys},function(c,n,y){var r=y(16);y(18)("keys",function(e){return function(d){return e(r(d))}})},function(c,n,y){var r=y(17);c.exports=function(e){return Object(r(e))}},function(c,n){c.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},function(c,n,y){var r=y(19),e=y(21),d=y(24);c.exports=function(C,l){var a=(e.Object||{})[C]||Object[C],o={};o[C]=l(a),r(r.S+r.F*d(function(){a(1)}),"Object",o)}},function(c,n,y){var r=y(20),e=y(21),d=y(22),C="prototype",l=function(a,o,v){var f,g,h,u=a&l.F,_=a&l.G,k=a&l.S,A=a&l.P,I=a&l.B,P=a&l.W,N=_?e:e[o]||(e[o]={}),q=_?r:k?r[o]:(r[o]||{})[C];for(f in _&&(v=o),v)(g=!u&&q&&f in q)&&f in N||(h=g?q[f]:v[f],N[f]=_&&typeof q[f]!="function"?v[f]:I&&g?d(h,r):P&&q[f]==h?function(j){var D=function(L){return this instanceof j?new j(L):j(L)};return D[C]=j[C],D}(h):A&&typeof h=="function"?d(Function.call,h):h,A&&((N[C]||(N[C]={}))[f]=h))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,c.exports=l},function(c,n){var y=c.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},function(c,n){var y=c.exports={version:"1.2.6"};typeof __e=="number"&&(__e=y)},function(c,n,y){var r=y(23);c.exports=function(e,d,C){if(r(e),d===void 0)return e;switch(C){case 1:return function(l){return e.call(d,l)};case 2:return function(l,a){return e.call(d,l,a)};case 3:return function(l,a,o){return e.call(d,l,a,o)}}return function(){return e.apply(d,arguments)}}},function(c,n){c.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},function(c,n){c.exports=function(y){try{return!!y()}catch{return!0}}},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=r(y(6));n.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return e.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||e.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("log",function(){for(var r=[void 0],e=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)r.push(arguments[d]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),r[0]=C,y.log.apply(y,r)})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("lookup",function(r,e,d){return r&&d.lookupProperty(r,e)})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");e.isFunction(l)&&(l=l.call(this));var o=a.fn;if(e.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),o(l,{data:v,blockParams:e.blockParams([l],[v&&v.contextPath])})})},c.exports=n.default},function(c,n,y){function r(C){d.default(C)}var e=y(1).default;n.__esModule=!0,n.registerDefaultDecorators=r;var d=e(y(31))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerDecorator("inline",function(d,C,l,a){var o=d;return C.partials||(C.partials={},o=function(v,f){var g=l.partials;l.partials=r.extend({},g,C.partials);var h=d(v,f);return l.partials=g,h}),C.partials[a.args[0]]=a.fn,o})},c.exports=n.default},function(c,n,y){n.__esModule=!0;var r=y(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(d){if(typeof d=="string"){var C=r.indexOf(e.methodMap,d.toLowerCase());d=C>=0?C:parseInt(d,10)}return d},log:function(d){if(d=e.lookupLevel(d),typeof console<"u"&&e.lookupLevel(e.level)<=d){var C=e.methodMap[d];console[C]||(C="log");for(var l=arguments.length,a=Array(l>1?l-1:0),o=1;o<l;o++)a[o-1]=arguments[o];console[C].apply(console,a)}}};n.default=e,c.exports=n.default},function(c,n,y){function r(u){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var k=a(null);return k.__proto__=!1,{properties:{whitelist:f.createNewLookupObject(k,u.allowedProtoProperties),defaultValue:u.allowProtoPropertiesByDefault},methods:{whitelist:f.createNewLookupObject(_,u.allowedProtoMethods),defaultValue:u.allowProtoMethodsByDefault}}}function e(u,_,k){return d(typeof u=="function"?_.methods:_.properties,k)}function d(u,_){return u.whitelist[_]!==void 0?u.whitelist[_]===!0:u.defaultValue!==void 0?u.defaultValue:(C(_),!1)}function C(u){h[u]!==!0&&(h[u]=!0,g.log("error",'Handlebars: Access has been denied to resolve the property "'+u+`" because it is not an "own property" of its parent.
226
433
  You can add a runtime option to disable the check or this warning:
227
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function a(){i(l).forEach(function(o){delete l[o]})}var c=v(34).default,i=v(13).default,S=v(3).default;t.__esModule=!0,t.createProtoAccessControl=r,t.resultIsAllowed=e,t.resetLoggedProperties=a;var f=v(36),y=S(v(32)),l=c(null)},function(s,t,v){s.exports={default:v(35),__esModule:!0}},function(s,t,v){var r=v(9);s.exports=function(e,u){return r.create(e,u)}},function(s,t,v){function r(){for(var _=arguments.length,a=Array(_),c=0;c<_;c++)a[c]=arguments[c];return u.extend.apply(void 0,[e(null)].concat(a))}var e=v(34).default;t.__esModule=!0,t.createNewLookupObject=r;var u=v(5)},function(s,t){function v(r){this.string=r}t.__esModule=!0,v.prototype.toString=v.prototype.toHTML=function(){return""+this.string},t.default=v,s.exports=t.default},function(s,t,v){function r(B){var C=B&&B[0]||1,D=P.COMPILER_REVISION;if(!(C>=P.LAST_COMPATIBLE_COMPILER_REVISION&&C<=P.COMPILER_REVISION)){if(C<P.LAST_COMPATIBLE_COMPILER_REVISION){var G=P.REVISION_CHANGES[D],X=P.REVISION_CHANGES[C];throw new k.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+G+") or downgrade your runtime to an older version ("+X+").")}throw new k.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+B[1]+").")}}function e(B,C){function D(q,V,J){J.hash&&(V=R.extend({},V,J.hash),J.ids&&(J.ids[0]=!0)),q=C.VM.resolvePartial.call(this,q,V,J);var re=R.extend({},J,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),fe=C.VM.invokePartial.call(this,q,V,re);if(fe==null&&C.compile&&(J.partials[J.name]=C.compile(q,B.compilerOptions,C),fe=J.partials[J.name](V,re)),fe!=null){if(J.indent){for(var Pe=fe.split(`
228
- `),Ee=0,xe=Pe.length;Ee<xe&&(Pe[Ee]||Ee+1!==xe);Ee++)Pe[Ee]=J.indent+Pe[Ee];fe=Pe.join(`
229
- `)}return fe}throw new k.default("The partial "+J.name+" could not be compiled when running in runtime-only mode")}function G(q){function V(Ee){return""+B.main(z,Ee,z.helpers,z.partials,re,Pe,fe)}var J=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],re=J.data;G._setup(J),!J.partial&&B.useData&&(re=i(q,re));var fe=void 0,Pe=B.useBlockParams?[]:void 0;return B.useDepths&&(fe=J.depths?q!=J.depths[0]?[q].concat(J.depths):J.depths:[q]),(V=S(B.main,V,z,J.depths||[],re,Pe))(q,J)}if(!C)throw new k.default("No environment passed to template");if(!B||!B.main)throw new k.default("Unknown template object: "+typeof B);B.main.decorator=B.main_d,C.VM.checkRevision(B.compiler);var X=B.compiler&&B.compiler[0]===7,z={strict:function(q,V,J){if(!q||!(V in q))throw new k.default('"'+V+'" not defined in '+q,{loc:J});return z.lookupProperty(q,V)},lookupProperty:function(q,V){var J=q[V];return J==null||Object.prototype.hasOwnProperty.call(q,V)||L.resultIsAllowed(J,z.protoAccessControl,V)?J:void 0},lookup:function(q,V){for(var J=q.length,re=0;re<J;re++)if((q[re]&&z.lookupProperty(q[re],V))!=null)return q[re][V]},lambda:function(q,V){return typeof q=="function"?q.call(V):q},escapeExpression:R.escapeExpression,invokePartial:D,fn:function(q){var V=B[q];return V.decorator=B[q+"_d"],V},programs:[],program:function(q,V,J,re,fe){var Pe=this.programs[q],Ee=this.fn(q);return V||fe||re||J?Pe=u(this,q,Ee,V,J,re,fe):Pe||(Pe=this.programs[q]=u(this,q,Ee)),Pe},data:function(q,V){for(;q&&V--;)q=q._parent;return q},mergeIfNeeded:function(q,V){var J=q||V;return q&&V&&q!==V&&(J=R.extend({},V,q)),J},nullContext:l({}),noop:C.VM.noop,compilerInfo:B.compiler};return G.isTop=!0,G._setup=function(q){if(q.partial)z.protoAccessControl=q.protoAccessControl,z.helpers=q.helpers,z.partials=q.partials,z.decorators=q.decorators,z.hooks=q.hooks;else{var V=R.extend({},C.helpers,q.helpers);f(V,z),z.helpers=V,B.usePartial&&(z.partials=z.mergeIfNeeded(q.partials,C.partials)),(B.usePartial||B.useDecorators)&&(z.decorators=R.extend({},C.decorators,q.decorators)),z.hooks={},z.protoAccessControl=L.createProtoAccessControl(q);var J=q.allowCallsToHelperMissing||X;F.moveHelperToHooks(z,"helperMissing",J),F.moveHelperToHooks(z,"blockHelperMissing",J)}},G._child=function(q,V,J,re){if(B.useBlockParams&&!J)throw new k.default("must pass block params");if(B.useDepths&&!re)throw new k.default("must pass parent depths");return u(z,q,B[q],V,0,J,re)},G}function u(B,C,D,G,X,z,q){function V(J){var re=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],fe=q;return!q||J==q[0]||J===B.nullContext&&q[0]===null||(fe=[J].concat(q)),D(B,J,B.helpers,B.partials,re.data||G,z&&[re.blockParams].concat(z),fe)}return(V=S(D,V,B,q,G,z)).program=C,V.depth=q?q.length:0,V.blockParams=X||0,V}function _(B,C,D){return B?B.call||D.name||(D.name=B,B=D.partials[B]):B=D.name==="@partial-block"?D.data["partial-block"]:D.partials[D.name],B}function a(B,C,D){var G=D.data&&D.data["partial-block"];D.partial=!0,D.ids&&(D.data.contextPath=D.ids[0]||D.data.contextPath);var X=void 0;if(D.fn&&D.fn!==c&&function(){D.data=P.createFrame(D.data);var z=D.fn;X=D.data["partial-block"]=function(q){var V=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return V.data=P.createFrame(V.data),V.data["partial-block"]=G,z(q,V)},z.partials&&(D.partials=R.extend({},D.partials,z.partials))}(),B===void 0&&X&&(B=X),B===void 0)throw new k.default("The partial "+D.name+" could not be found");if(B instanceof Function)return B(C,D)}function c(){return""}function i(B,C){return C&&"root"in C||((C=C?P.createFrame(C):{}).root=B),C}function S(B,C,D,G,X,z){if(B.decorator){var q={};C=B.decorator(C,q,D,G&&G[0],X,z,G),R.extend(C,q)}return C}function f(B,C){o(B).forEach(function(D){var G=B[D];B[D]=y(G,C)})}function y(B,C){var D=C.lookupProperty;return U.wrapHelper(B,function(G){return R.extend({lookupProperty:D},G)})}var l=v(39).default,o=v(13).default,b=v(3).default,E=v(1).default;t.__esModule=!0,t.checkRevision=r,t.template=e,t.wrapProgram=u,t.resolvePartial=_,t.invokePartial=a,t.noop=c;var R=b(v(5)),k=E(v(6)),P=v(4),F=v(10),U=v(43),L=v(33)},function(s,t,v){s.exports={default:v(40),__esModule:!0}},function(s,t,v){v(41),s.exports=v(21).Object.seal},function(s,t,v){var r=v(42);v(18)("seal",function(e){return function(u){return e&&r(u)?e(u):u}})},function(s,t){s.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},function(s,t){function v(r,e){if(typeof r!="function")return r;var u=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),r.apply(this,arguments)};return u}t.__esModule=!0,t.wrapHelper=v},function(s,t){(function(v){t.__esModule=!0,t.default=function(r){var e=v!==void 0?v:window,u=e.Handlebars;r.noConflict=function(){return e.Handlebars===r&&(e.Handlebars=u),r}},s.exports=t.default}).call(t,function(){return this}())},function(s,t){t.__esModule=!0;var v={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!v.helpers.scopedId(r)&&!r.depth}}};t.default=v,s.exports=t.default},function(s,t,v){function r(y,l){return y.type==="Program"?y:(a.default.yy=f,f.locInfo=function(o){return new f.SourceLocation(l&&l.srcName,o)},a.default.parse(y))}function e(y,l){var o=r(y,l);return new c.default(l).accept(o)}var u=v(1).default,_=v(3).default;t.__esModule=!0,t.parseWithoutProcessing=r,t.parse=e;var a=u(v(47)),c=u(v(48)),i=_(v(50)),S=v(5);t.parser=a.default;var f={};S.extend(f,i)},function(s,t){t.__esModule=!0;var v=function(){function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(_,a,c,i,S,f,y){var l=f.length-1;switch(S){case 1:return f[l-1];case 2:this.$=i.prepareProgram(f[l]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[l];break;case 9:this.$={type:"CommentStatement",value:i.stripComment(f[l]),strip:i.stripFlags(f[l],f[l]),loc:i.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[l],value:f[l],loc:i.locInfo(this._$)};break;case 11:this.$=i.prepareRawBlock(f[l-2],f[l-1],f[l],this._$);break;case 12:this.$={path:f[l-3],params:f[l-2],hash:f[l-1]};break;case 13:this.$=i.prepareBlock(f[l-3],f[l-2],f[l-1],f[l],!1,this._$);break;case 14:this.$=i.prepareBlock(f[l-3],f[l-2],f[l-1],f[l],!0,this._$);break;case 15:this.$={open:f[l-5],path:f[l-4],params:f[l-3],hash:f[l-2],blockParams:f[l-1],strip:i.stripFlags(f[l-5],f[l])};break;case 16:case 17:this.$={path:f[l-4],params:f[l-3],hash:f[l-2],blockParams:f[l-1],strip:i.stripFlags(f[l-5],f[l])};break;case 18:this.$={strip:i.stripFlags(f[l-1],f[l-1]),program:f[l]};break;case 19:var o=i.prepareBlock(f[l-2],f[l-1],f[l],f[l],!1,this._$),b=i.prepareProgram([o],f[l-1].loc);b.chained=!0,this.$={strip:f[l-2].strip,program:b,chain:!0};break;case 21:this.$={path:f[l-1],strip:i.stripFlags(f[l-2],f[l])};break;case 22:case 23:this.$=i.prepareMustache(f[l-3],f[l-2],f[l-1],f[l-4],i.stripFlags(f[l-4],f[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[l-3],params:f[l-2],hash:f[l-1],indent:"",strip:i.stripFlags(f[l-4],f[l]),loc:i.locInfo(this._$)};break;case 25:this.$=i.preparePartialBlock(f[l-2],f[l-1],f[l],this._$);break;case 26:this.$={path:f[l-3],params:f[l-2],hash:f[l-1],strip:i.stripFlags(f[l-4],f[l])};break;case 29:this.$={type:"SubExpression",path:f[l-3],params:f[l-2],hash:f[l-1],loc:i.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[l],loc:i.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:i.id(f[l-2]),value:f[l],loc:i.locInfo(this._$)};break;case 32:this.$=i.id(f[l-1]);break;case 35:this.$={type:"StringLiteral",value:f[l],original:f[l],loc:i.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[l]),original:Number(f[l]),loc:i.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:f[l]==="true",original:f[l]==="true",loc:i.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:i.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:i.locInfo(this._$)};break;case 42:this.$=i.preparePath(!0,f[l],this._$);break;case 43:this.$=i.preparePath(!1,f[l],this._$);break;case 44:f[l-2].push({part:i.id(f[l]),original:f[l],separator:f[l-1]}),this.$=f[l-2];break;case 45:this.$=[{part:i.id(f[l]),original:f[l]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[l-1].push(f[l]);break;case 98:case 100:this.$=[f[l]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(_,a){throw new Error(_)},parse:function(_){function a(){var V;return typeof(V=c.lexer.lex()||1)!="number"&&(V=c.symbols_[V]||V),V}var c=this,i=[0],S=[null],f=[],y=this.table,l="",o=0,b=0,E=0;this.lexer.setInput(_),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,this.lexer.yylloc===void 0&&(this.lexer.yylloc={});var R=this.lexer.yylloc;f.push(R);var k=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var P,F,U,L,B,C,D,G,X,z={};;){if(U=i[i.length-1],this.defaultActions[U]?L=this.defaultActions[U]:(P!=null||(P=a()),L=y[U]&&y[U][P]),L===void 0||!L.length||!L[0]){var q="";{for(C in X=[],y[U])this.terminals_[C]&&C>2&&X.push("'"+this.terminals_[C]+"'");q=this.lexer.showPosition?"Parse error on line "+(o+1)+`:
434
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function l(){o(h).forEach(function(u){delete h[u]})}var a=y(34).default,o=y(13).default,v=y(3).default;n.__esModule=!0,n.createProtoAccessControl=r,n.resultIsAllowed=e,n.resetLoggedProperties=l;var f=y(36),g=v(y(32)),h=a(null)},function(c,n,y){c.exports={default:y(35),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d){return r.create(e,d)}},function(c,n,y){function r(){for(var C=arguments.length,l=Array(C),a=0;a<C;a++)l[a]=arguments[a];return d.extend.apply(void 0,[e(null)].concat(l))}var e=y(34).default;n.__esModule=!0,n.createNewLookupObject=r;var d=y(5)},function(c,n){function y(r){this.string=r}n.__esModule=!0,y.prototype.toString=y.prototype.toHTML=function(){return""+this.string},n.default=y,c.exports=n.default},function(c,n,y){function r(D){var L=D&&D[0]||1,V=P.COMPILER_REVISION;if(!(L>=P.LAST_COMPATIBLE_COMPILER_REVISION&&L<=P.COMPILER_REVISION)){if(L<P.LAST_COMPATIBLE_COMPILER_REVISION){var J=P.REVISION_CHANGES[V],se=P.REVISION_CHANGES[L];throw new I.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+J+") or downgrade your runtime to an older version ("+se+").")}throw new I.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+D[1]+").")}}function e(D,L){function V(Y,W,X){X.hash&&(W=A.extend({},W,X.hash),X.ids&&(X.ids[0]=!0)),Y=L.VM.resolvePartial.call(this,Y,W,X);var ue=A.extend({},X,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),xe=L.VM.invokePartial.call(this,Y,W,ue);if(xe==null&&L.compile&&(X.partials[X.name]=L.compile(Y,D.compilerOptions,L),xe=X.partials[X.name](W,ue)),xe!=null){if(X.indent){for(var Re=xe.split(`
435
+ `),Oe=0,Ce=Re.length;Oe<Ce&&(Re[Oe]||Oe+1!==Ce);Oe++)Re[Oe]=X.indent+Re[Oe];xe=Re.join(`
436
+ `)}return xe}throw new I.default("The partial "+X.name+" could not be compiled when running in runtime-only mode")}function J(Y){function W(Oe){return""+D.main(ne,Oe,ne.helpers,ne.partials,ue,Re,xe)}var X=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ue=X.data;J._setup(X),!X.partial&&D.useData&&(ue=o(Y,ue));var xe=void 0,Re=D.useBlockParams?[]:void 0;return D.useDepths&&(xe=X.depths?Y!=X.depths[0]?[Y].concat(X.depths):X.depths:[Y]),(W=v(D.main,W,ne,X.depths||[],ue,Re))(Y,X)}if(!L)throw new I.default("No environment passed to template");if(!D||!D.main)throw new I.default("Unknown template object: "+typeof D);D.main.decorator=D.main_d,L.VM.checkRevision(D.compiler);var se=D.compiler&&D.compiler[0]===7,ne={strict:function(Y,W,X){if(!Y||!(W in Y))throw new I.default('"'+W+'" not defined in '+Y,{loc:X});return ne.lookupProperty(Y,W)},lookupProperty:function(Y,W){var X=Y[W];return X==null||Object.prototype.hasOwnProperty.call(Y,W)||j.resultIsAllowed(X,ne.protoAccessControl,W)?X:void 0},lookup:function(Y,W){for(var X=Y.length,ue=0;ue<X;ue++)if((Y[ue]&&ne.lookupProperty(Y[ue],W))!=null)return Y[ue][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:A.escapeExpression,invokePartial:V,fn:function(Y){var W=D[Y];return W.decorator=D[Y+"_d"],W},programs:[],program:function(Y,W,X,ue,xe){var Re=this.programs[Y],Oe=this.fn(Y);return W||xe||ue||X?Re=d(this,Y,Oe,W,X,ue,xe):Re||(Re=this.programs[Y]=d(this,Y,Oe)),Re},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var X=Y||W;return Y&&W&&Y!==W&&(X=A.extend({},W,Y)),X},nullContext:h({}),noop:L.VM.noop,compilerInfo:D.compiler};return J.isTop=!0,J._setup=function(Y){if(Y.partial)ne.protoAccessControl=Y.protoAccessControl,ne.helpers=Y.helpers,ne.partials=Y.partials,ne.decorators=Y.decorators,ne.hooks=Y.hooks;else{var W=A.extend({},L.helpers,Y.helpers);f(W,ne),ne.helpers=W,D.usePartial&&(ne.partials=ne.mergeIfNeeded(Y.partials,L.partials)),(D.usePartial||D.useDecorators)&&(ne.decorators=A.extend({},L.decorators,Y.decorators)),ne.hooks={},ne.protoAccessControl=j.createProtoAccessControl(Y);var X=Y.allowCallsToHelperMissing||se;N.moveHelperToHooks(ne,"helperMissing",X),N.moveHelperToHooks(ne,"blockHelperMissing",X)}},J._child=function(Y,W,X,ue){if(D.useBlockParams&&!X)throw new I.default("must pass block params");if(D.useDepths&&!ue)throw new I.default("must pass parent depths");return d(ne,Y,D[Y],W,0,X,ue)},J}function d(D,L,V,J,se,ne,Y){function W(X){var ue=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],xe=Y;return!Y||X==Y[0]||X===D.nullContext&&Y[0]===null||(xe=[X].concat(Y)),V(D,X,D.helpers,D.partials,ue.data||J,ne&&[ue.blockParams].concat(ne),xe)}return(W=v(V,W,D,Y,J,ne)).program=L,W.depth=Y?Y.length:0,W.blockParams=se||0,W}function C(D,L,V){return D?D.call||V.name||(V.name=D,D=V.partials[D]):D=V.name==="@partial-block"?V.data["partial-block"]:V.partials[V.name],D}function l(D,L,V){var J=V.data&&V.data["partial-block"];V.partial=!0,V.ids&&(V.data.contextPath=V.ids[0]||V.data.contextPath);var se=void 0;if(V.fn&&V.fn!==a&&function(){V.data=P.createFrame(V.data);var ne=V.fn;se=V.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=P.createFrame(W.data),W.data["partial-block"]=J,ne(Y,W)},ne.partials&&(V.partials=A.extend({},V.partials,ne.partials))}(),D===void 0&&se&&(D=se),D===void 0)throw new I.default("The partial "+V.name+" could not be found");if(D instanceof Function)return D(L,V)}function a(){return""}function o(D,L){return L&&"root"in L||((L=L?P.createFrame(L):{}).root=D),L}function v(D,L,V,J,se,ne){if(D.decorator){var Y={};L=D.decorator(L,Y,V,J&&J[0],se,ne,J),A.extend(L,Y)}return L}function f(D,L){u(D).forEach(function(V){var J=D[V];D[V]=g(J,L)})}function g(D,L){var V=L.lookupProperty;return q.wrapHelper(D,function(J){return A.extend({lookupProperty:V},J)})}var h=y(39).default,u=y(13).default,_=y(3).default,k=y(1).default;n.__esModule=!0,n.checkRevision=r,n.template=e,n.wrapProgram=d,n.resolvePartial=C,n.invokePartial=l,n.noop=a;var A=_(y(5)),I=k(y(6)),P=y(4),N=y(10),q=y(43),j=y(33)},function(c,n,y){c.exports={default:y(40),__esModule:!0}},function(c,n,y){y(41),c.exports=y(21).Object.seal},function(c,n,y){var r=y(42);y(18)("seal",function(e){return function(d){return e&&r(d)?e(d):d}})},function(c,n){c.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},function(c,n){function y(r,e){if(typeof r!="function")return r;var d=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),r.apply(this,arguments)};return d}n.__esModule=!0,n.wrapHelper=y},function(c,n){(function(y){n.__esModule=!0,n.default=function(r){var e=y!==void 0?y:window,d=e.Handlebars;r.noConflict=function(){return e.Handlebars===r&&(e.Handlebars=d),r}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var y={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!y.helpers.scopedId(r)&&!r.depth}}};n.default=y,c.exports=n.default},function(c,n,y){function r(g,h){return g.type==="Program"?g:(l.default.yy=f,f.locInfo=function(u){return new f.SourceLocation(h&&h.srcName,u)},l.default.parse(g))}function e(g,h){var u=r(g,h);return new a.default(h).accept(u)}var d=y(1).default,C=y(3).default;n.__esModule=!0,n.parseWithoutProcessing=r,n.parse=e;var l=d(y(47)),a=d(y(48)),o=C(y(50)),v=y(5);n.parser=l.default;var f={};v.extend(f,o)},function(c,n){n.__esModule=!0;var y=function(){function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(C,l,a,o,v,f,g){var h=f.length-1;switch(v){case 1:return f[h-1];case 2:this.$=o.prepareProgram(f[h]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:o.stripComment(f[h]),strip:o.stripFlags(f[h],f[h]),loc:o.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:o.locInfo(this._$)};break;case 11:this.$=o.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=o.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=o.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:o.stripFlags(f[h-5],f[h])};break;case 16:case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:o.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:o.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var u=o.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),_=o.prepareProgram([u],f[h-1].loc);_.chained=!0,this.$={strip:f[h-2].strip,program:_,chain:!0};break;case 21:this.$={path:f[h-1],strip:o.stripFlags(f[h-2],f[h])};break;case 22:case 23:this.$=o.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],o.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:o.stripFlags(f[h-4],f[h]),loc:o.locInfo(this._$)};break;case 25:this.$=o.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:o.stripFlags(f[h-4],f[h])};break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:o.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:o.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:o.id(f[h-2]),value:f[h],loc:o.locInfo(this._$)};break;case 32:this.$=o.id(f[h-1]);break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:o.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:o.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:f[h]==="true",original:f[h]==="true",loc:o.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:o.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:o.locInfo(this._$)};break;case 42:this.$=o.preparePath(!0,f[h],this._$);break;case 43:this.$=o.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:o.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:o.id(f[h]),original:f[h]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[h-1].push(f[h]);break;case 98:case 100:this.$=[f[h]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(C,l){throw new Error(C)},parse:function(C){function l(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,o=[0],v=[null],f=[],g=this.table,h="",u=0,_=0,k=0;this.lexer.setInput(C),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,this.lexer.yylloc===void 0&&(this.lexer.yylloc={});var A=this.lexer.yylloc;f.push(A);var I=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var P,N,q,j,D,L,V,J,se,ne={};;){if(q=o[o.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(P!=null||(P=l()),j=g[q]&&g[q][P]),j===void 0||!j.length||!j[0]){var Y="";{for(L in se=[],g[q])this.terminals_[L]&&L>2&&se.push("'"+this.terminals_[L]+"'");Y=this.lexer.showPosition?"Parse error on line "+(u+1)+`:
230
437
  `+this.lexer.showPosition()+`
231
- Expecting `+X.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on line "+(o+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(q,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:R,expected:X})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+P);switch(L[0]){case 1:i.push(P),S.push(this.lexer.yytext),f.push(this.lexer.yylloc),i.push(L[1]),P=null,F?(P=F,F=null):(b=this.lexer.yyleng,l=this.lexer.yytext,o=this.lexer.yylineno,R=this.lexer.yylloc,E>0);break;case 2:if(D=this.productions_[L[1]][1],z.$=S[S.length-D],z._$={first_line:f[f.length-(D||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(D||1)].first_column,last_column:f[f.length-1].last_column},k&&(z._$.range=[f[f.length-(D||1)].range[0],f[f.length-1].range[1]]),(B=this.performAction.call(z,l,b,o,this.yy,L[1],S,f))!==void 0)return B;D&&(i=i.slice(0,-1*D*2),S=S.slice(0,-1*D),f=f.slice(0,-1*D)),i.push(this.productions_[L[1]][0]),S.push(z.$),f.push(z._$),G=y[i[i.length-2]][i[i.length-1]],i.push(G);break;case 3:return!0}}return!0}},u=function(){var _={EOF:1,parseError:function(a,c){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,c)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var c=a.length,i=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===S.length?this.yylloc.first_column:0)+S[S.length-i.length].length-i[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
232
- `+c+"^"},next:function(){if(this.done)return this.EOF;var a,c,i,S,f;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),l=0;l<y.length&&(!(i=this._input.match(this.rules[y[l]]))||c&&!(i[0].length>c[0].length)||(c=i,S=l,this.options.flex));l++);return c?((f=c[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],a=this.performAction.call(this,this.yy,this,y[S],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
233
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a!==void 0?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)},options:{},performAction:function(a,c,i,S){function f(y,l){return c.yytext=c.yytext.substring(y,c.yyleng-l+y)}switch(i){case 0:if(c.yytext.slice(-2)==="\\\\"?(f(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(f(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(f(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=f(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=f(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return _}();return e.lexer=u,r.prototype=e,e.Parser=r,new r}();t.default=v,s.exports=t.default},function(s,t,v){function r(){var S=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=S}function e(S,f,y){f===void 0&&(f=S.length);var l=S[f-1],o=S[f-2];return l?l.type==="ContentStatement"?(o||!y?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(l.original):void 0:y}function u(S,f,y){f===void 0&&(f=-1);var l=S[f+1],o=S[f+2];return l?l.type==="ContentStatement"?(o||!y?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(l.original):void 0:y}function _(S,f,y){var l=S[f==null?0:f+1];if(l&&l.type==="ContentStatement"&&(y||!l.rightStripped)){var o=l.value;l.value=l.value.replace(y?/^\s+/:/^[ \t]*\r?\n?/,""),l.rightStripped=l.value!==o}}function a(S,f,y){var l=S[f==null?S.length-1:f-1];if(l&&l.type==="ContentStatement"&&(y||!l.leftStripped)){var o=l.value;return l.value=l.value.replace(y?/\s+$/:/[ \t]+$/,""),l.leftStripped=l.value!==o,l.leftStripped}}var c=v(1).default;t.__esModule=!0;var i=c(v(49));r.prototype=new i.default,r.prototype.Program=function(S){var f=!this.options.ignoreStandalone,y=!this.isRootSeen;this.isRootSeen=!0;for(var l=S.body,o=0,b=l.length;o<b;o++){var E=l[o],R=this.accept(E);if(R){var k=e(l,o,y),P=u(l,o,y),F=R.openStandalone&&k,U=R.closeStandalone&&P,L=R.inlineStandalone&&k&&P;R.close&&_(l,o,!0),R.open&&a(l,o,!0),f&&L&&(_(l,o),a(l,o)&&E.type==="PartialStatement"&&(E.indent=/([ \t]+$)/.exec(l[o-1].original)[1])),f&&F&&(_((E.program||E.inverse).body),a(l,o)),f&&U&&(_(l,o),a((E.inverse||E.program).body))}}return S},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(S){this.accept(S.program),this.accept(S.inverse);var f=S.program||S.inverse,y=S.program&&S.inverse,l=y,o=y;if(y&&y.chained)for(l=y.body[0].program;o.chained;)o=o.body[o.body.length-1].program;var b={open:S.openStrip.open,close:S.closeStrip.close,openStandalone:u(f.body),closeStandalone:e((l||f).body)};if(S.openStrip.close&&_(f.body,null,!0),y){var E=S.inverseStrip;E.open&&a(f.body,null,!0),E.close&&_(l.body,null,!0),S.closeStrip.open&&a(o.body,null,!0),!this.options.ignoreStandalone&&e(f.body)&&u(l.body)&&(a(f.body),_(l.body))}else S.closeStrip.open&&a(f.body,null,!0);return b},r.prototype.Decorator=r.prototype.MustacheStatement=function(S){return S.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(S){var f=S.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}},t.default=r,s.exports=t.default},function(s,t,v){function r(){this.parents=[]}function e(i){this.acceptRequired(i,"path"),this.acceptArray(i.params),this.acceptKey(i,"hash")}function u(i){e.call(this,i),this.acceptKey(i,"program"),this.acceptKey(i,"inverse")}function _(i){this.acceptRequired(i,"name"),this.acceptArray(i.params),this.acceptKey(i,"hash")}var a=v(1).default;t.__esModule=!0;var c=a(v(6));r.prototype={constructor:r,mutating:!1,acceptKey:function(i,S){var f=this.accept(i[S]);if(this.mutating){if(f&&!r.prototype[f.type])throw new c.default('Unexpected node type "'+f.type+'" found when accepting '+S+" on "+i.type);i[S]=f}},acceptRequired:function(i,S){if(this.acceptKey(i,S),!i[S])throw new c.default(i.type+" requires "+S)},acceptArray:function(i){for(var S=0,f=i.length;S<f;S++)this.acceptKey(i,S),i[S]||(i.splice(S,1),S--,f--)},accept:function(i){if(i){if(!this[i.type])throw new c.default("Unknown type: "+i.type,i);this.current&&this.parents.unshift(this.current),this.current=i;var S=this[i.type](i);return this.current=this.parents.shift(),!this.mutating||S?S:S!==!1?i:void 0}},Program:function(i){this.acceptArray(i.body)},MustacheStatement:e,Decorator:e,BlockStatement:u,DecoratorBlock:u,PartialStatement:_,PartialBlockStatement:function(i){_.call(this,i),this.acceptKey(i,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(i){this.acceptArray(i.pairs)},HashPair:function(i){this.acceptRequired(i,"value")}},t.default=r,s.exports=t.default},function(s,t,v){function r(E,R){if(R=R.path?R.path.original:R,E.path.original!==R){var k={loc:E.path.loc};throw new b.default(E.path.original+" doesn't match "+R,k)}}function e(E,R){this.source=E,this.start={line:R.first_line,column:R.first_column},this.end={line:R.last_line,column:R.last_column}}function u(E){return/^\[.*\]$/.test(E)?E.substring(1,E.length-1):E}function _(E,R){return{open:E.charAt(2)==="~",close:R.charAt(R.length-3)==="~"}}function a(E){return E.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function c(E,R,k){k=this.locInfo(k);for(var P=E?"@":"",F=[],U=0,L=0,B=R.length;L<B;L++){var C=R[L].part,D=R[L].original!==C;if(P+=(R[L].separator||"")+C,D||C!==".."&&C!=="."&&C!=="this")F.push(C);else{if(F.length>0)throw new b.default("Invalid path: "+P,{loc:k});C===".."&&U++}}return{type:"PathExpression",data:E,depth:U,parts:F,original:P,loc:k}}function i(E,R,k,P,F,U){var L=P.charAt(3)||P.charAt(2),B=L!=="{"&&L!=="&";return{type:/\*/.test(P)?"Decorator":"MustacheStatement",path:E,params:R,hash:k,escaped:B,strip:F,loc:this.locInfo(U)}}function S(E,R,k,P){r(E,k);var F={type:"Program",body:R,strip:{},loc:P=this.locInfo(P)};return{type:"BlockStatement",path:E.path,params:E.params,hash:E.hash,program:F,openStrip:{},inverseStrip:{},closeStrip:{},loc:P}}function f(E,R,k,P,F,U){P&&P.path&&r(E,P);var L=/\*/.test(E.open);R.blockParams=E.blockParams;var B=void 0,C=void 0;if(k){if(L)throw new b.default("Unexpected inverse block on decorator",k);k.chain&&(k.program.body[0].closeStrip=P.strip),C=k.strip,B=k.program}return F&&(F=B,B=R,R=F),{type:L?"DecoratorBlock":"BlockStatement",path:E.path,params:E.params,hash:E.hash,program:R,inverse:B,openStrip:E.strip,inverseStrip:C,closeStrip:P&&P.strip,loc:this.locInfo(U)}}function y(E,R){if(!R&&E.length){var k=E[0].loc,P=E[E.length-1].loc;k&&P&&(R={source:k.source,start:{line:k.start.line,column:k.start.column},end:{line:P.end.line,column:P.end.column}})}return{type:"Program",body:E,strip:{},loc:R}}function l(E,R,k,P){return r(E,k),{type:"PartialBlockStatement",name:E.path,params:E.params,hash:E.hash,program:R,openStrip:E.strip,closeStrip:k&&k.strip,loc:this.locInfo(P)}}var o=v(1).default;t.__esModule=!0,t.SourceLocation=e,t.id=u,t.stripFlags=_,t.stripComment=a,t.preparePath=c,t.prepareMustache=i,t.prepareRawBlock=S,t.prepareBlock=f,t.prepareProgram=y,t.preparePartialBlock=l;var b=o(v(6))},function(s,t,v){function r(){}function e(o,b,E){if(o==null||typeof o!="string"&&o.type!=="Program")throw new S.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+o);"data"in(b=b||{})||(b.data=!0),b.compat&&(b.useDepths=!0);var R=E.parse(o,b),k=new E.Compiler().compile(R,b);return new E.JavaScriptCompiler().compile(k,b)}function u(o,b,E){function R(){var F=E.parse(o,b),U=new E.Compiler().compile(F,b),L=new E.JavaScriptCompiler().compile(U,b,void 0,!0);return E.template(L)}function k(F,U){return P||(P=R()),P.call(this,F,U)}if(b===void 0&&(b={}),o==null||typeof o!="string"&&o.type!=="Program")throw new S.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+o);"data"in(b=f.extend({},b))||(b.data=!0),b.compat&&(b.useDepths=!0);var P=void 0;return k._setup=function(F){return P||(P=R()),P._setup(F)},k._child=function(F,U,L,B){return P||(P=R()),P._child(F,U,L,B)},k}function _(o,b){if(o===b)return!0;if(f.isArray(o)&&f.isArray(b)&&o.length===b.length){for(var E=0;E<o.length;E++)if(!_(o[E],b[E]))return!1;return!0}}function a(o){if(!o.path.parts){var b=o.path;o.path={type:"PathExpression",data:!1,depth:0,parts:[b.original+""],original:b.original+"",loc:b.loc}}}var c=v(34).default,i=v(1).default;t.__esModule=!0,t.Compiler=r,t.precompile=e,t.compile=u;var S=i(v(6)),f=v(5),y=i(v(45)),l=[].slice;r.prototype={compiler:r,equals:function(o){var b=this.opcodes.length;if(o.opcodes.length!==b)return!1;for(var E=0;E<b;E++){var R=this.opcodes[E],k=o.opcodes[E];if(R.opcode!==k.opcode||!_(R.args,k.args))return!1}for(b=this.children.length,E=0;E<b;E++)if(!this.children[E].equals(o.children[E]))return!1;return!0},guid:0,compile:function(o,b){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds,b.blockParams=b.blockParams||[],b.knownHelpers=f.extend(c(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},b.knownHelpers),this.accept(o)},compileProgram:function(o){var b=new this.compiler().compile(o,this.options),E=this.guid++;return this.usePartial=this.usePartial||b.usePartial,this.children[E]=b,this.useDepths=this.useDepths||b.useDepths,E},accept:function(o){if(!this[o.type])throw new S.default("Unknown type: "+o.type,o);this.sourceNode.unshift(o);var b=this[o.type](o);return this.sourceNode.shift(),b},Program:function(o){this.options.blockParams.unshift(o.blockParams);for(var b=o.body,E=b.length,R=0;R<E;R++)this.accept(b[R]);return this.options.blockParams.shift(),this.isSimple=E===1,this.blockParams=o.blockParams?o.blockParams.length:0,this},BlockStatement:function(o){a(o);var b=o.program,E=o.inverse;b=b&&this.compileProgram(b),E=E&&this.compileProgram(E);var R=this.classifySexpr(o);R==="helper"?this.helperSexpr(o,b,E):R==="simple"?(this.simpleSexpr(o),this.opcode("pushProgram",b),this.opcode("pushProgram",E),this.opcode("emptyHash"),this.opcode("blockValue",o.path.original)):(this.ambiguousSexpr(o,b,E),this.opcode("pushProgram",b),this.opcode("pushProgram",E),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(o){var b=o.program&&this.compileProgram(o.program),E=this.setupFullMustacheParams(o,b,void 0),R=o.path;this.useDecorators=!0,this.opcode("registerDecorator",E.length,R.original)},PartialStatement:function(o){this.usePartial=!0;var b=o.program;b&&(b=this.compileProgram(o.program));var E=o.params;if(E.length>1)throw new S.default("Unsupported number of partial arguments: "+E.length,o);E.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):E.push({type:"PathExpression",parts:[],depth:0}));var R=o.name.original,k=o.name.type==="SubExpression";k&&this.accept(o.name),this.setupFullMustacheParams(o,b,void 0,!0);var P=o.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",k,R,P),this.opcode("append")},PartialBlockStatement:function(o){this.PartialStatement(o)},MustacheStatement:function(o){this.SubExpression(o),o.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(o){this.DecoratorBlock(o)},ContentStatement:function(o){o.value&&this.opcode("appendContent",o.value)},CommentStatement:function(){},SubExpression:function(o){a(o);var b=this.classifySexpr(o);b==="simple"?this.simpleSexpr(o):b==="helper"?this.helperSexpr(o):this.ambiguousSexpr(o)},ambiguousSexpr:function(o,b,E){var R=o.path,k=R.parts[0],P=b!=null||E!=null;this.opcode("getContext",R.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",E),R.strict=!0,this.accept(R),this.opcode("invokeAmbiguous",k,P)},simpleSexpr:function(o){var b=o.path;b.strict=!0,this.accept(b),this.opcode("resolvePossibleLambda")},helperSexpr:function(o,b,E){var R=this.setupFullMustacheParams(o,b,E),k=o.path,P=k.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",R.length,P);else{if(this.options.knownHelpersOnly)throw new S.default("You specified knownHelpersOnly, but used the unknown helper "+P,o);k.strict=!0,k.falsy=!0,this.accept(k),this.opcode("invokeHelper",R.length,k.original,y.default.helpers.simpleId(k))}},PathExpression:function(o){this.addDepth(o.depth),this.opcode("getContext",o.depth);var b=o.parts[0],E=y.default.helpers.scopedId(o),R=!o.depth&&!E&&this.blockParamIndex(b);R?this.opcode("lookupBlockParam",R,o.parts):b?o.data?(this.options.data=!0,this.opcode("lookupData",o.depth,o.parts,o.strict)):this.opcode("lookupOnContext",o.parts,o.falsy,o.strict,E):this.opcode("pushContext")},StringLiteral:function(o){this.opcode("pushString",o.value)},NumberLiteral:function(o){this.opcode("pushLiteral",o.value)},BooleanLiteral:function(o){this.opcode("pushLiteral",o.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(o){var b=o.pairs,E=0,R=b.length;for(this.opcode("pushHash");E<R;E++)this.pushParam(b[E].value);for(;E--;)this.opcode("assignToHash",b[E].key);this.opcode("popHash")},opcode:function(o){this.opcodes.push({opcode:o,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(o){o&&(this.useDepths=!0)},classifySexpr:function(o){var b=y.default.helpers.simpleId(o.path),E=b&&!!this.blockParamIndex(o.path.parts[0]),R=!E&&y.default.helpers.helperExpression(o),k=!E&&(R||b);if(k&&!R){var P=o.path.parts[0],F=this.options;F.knownHelpers[P]?R=!0:F.knownHelpersOnly&&(k=!1)}return R?"helper":k?"ambiguous":"simple"},pushParams:function(o){for(var b=0,E=o.length;b<E;b++)this.pushParam(o[b])},pushParam:function(o){var b=o.value!=null?o.value:o.original||"";if(this.stringParams)b.replace&&(b=b.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),o.depth&&this.addDepth(o.depth),this.opcode("getContext",o.depth||0),this.opcode("pushStringParam",b,o.type),o.type==="SubExpression"&&this.accept(o);else{if(this.trackIds){var E=void 0;if(!o.parts||y.default.helpers.scopedId(o)||o.depth||(E=this.blockParamIndex(o.parts[0])),E){var R=o.parts.slice(1).join(".");this.opcode("pushId","BlockParam",E,R)}else(b=o.original||b).replace&&(b=b.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",o.type,b)}this.accept(o)}},setupFullMustacheParams:function(o,b,E,R){var k=o.params;return this.pushParams(k),this.opcode("pushProgram",b),this.opcode("pushProgram",E),o.hash?this.accept(o.hash):this.opcode("emptyHash",R),k},blockParamIndex:function(o){for(var b=0,E=this.options.blockParams.length;b<E;b++){var R=this.options.blockParams[b],k=R&&f.indexOf(R,o);if(R&&k>=0)return[b,k]}}}},function(s,t,v){function r(y){this.value=y}function e(){}function u(y,l,o,b){var E=l.popStack(),R=0,k=o.length;for(y&&k--;R<k;R++)E=l.nameLookup(E,o[R],b);return y?[l.aliasable("container.strict"),"(",E,", ",l.quotedString(o[R]),", ",JSON.stringify(l.source.currentLocation)," )"]:E}var _=v(13).default,a=v(1).default;t.__esModule=!0;var c=v(4),i=a(v(6)),S=v(5),f=a(v(53));e.prototype={nameLookup:function(y,l){return this.internalNameLookup(y,l)},depthedLookup:function(y){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(y),")"]},compilerInfo:function(){var y=c.COMPILER_REVISION;return[y,c.REVISION_CHANGES[y]]},appendToBuffer:function(y,l,o){return S.isArray(y)||(y=[y]),y=this.source.wrap(y,l),this.environment.isSimple?["return ",y,";"]:o?["buffer += ",y,";"]:(y.appendToBuffer=!0,y)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(y,l){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",y,",",JSON.stringify(l),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(y,l,o,b){this.environment=y,this.options=l,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!b,this.name=this.environment.name,this.isChild=!!o,this.context=o||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(y,l),this.useDepths=this.useDepths||y.useDepths||y.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||y.useBlockParams;var E=y.opcodes,R=void 0,k=void 0,P=void 0,F=void 0;for(P=0,F=E.length;P<F;P++)R=E[P],this.source.currentLocation=R.loc,k=k||R.loc,this[R.opcode].apply(this,R.args);if(this.source.currentLocation=k,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
234
- `]),this.decorators.push("return fn;"),b?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
438
+ Expecting `+se.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on line "+(u+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:A,expected:se})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(j[0]){case 1:o.push(P),v.push(this.lexer.yytext),f.push(this.lexer.yylloc),o.push(j[1]),P=null,N?(P=N,N=null):(_=this.lexer.yyleng,h=this.lexer.yytext,u=this.lexer.yylineno,A=this.lexer.yylloc,k>0);break;case 2:if(V=this.productions_[j[1]][1],ne.$=v[v.length-V],ne._$={first_line:f[f.length-(V||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(V||1)].first_column,last_column:f[f.length-1].last_column},I&&(ne._$.range=[f[f.length-(V||1)].range[0],f[f.length-1].range[1]]),(D=this.performAction.call(ne,h,_,u,this.yy,j[1],v,f))!==void 0)return D;V&&(o=o.slice(0,-1*V*2),v=v.slice(0,-1*V),f=f.slice(0,-1*V)),o.push(this.productions_[j[1]][0]),v.push(ne.$),f.push(ne._$),J=g[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},d=function(){var C={EOF:1,parseError:function(l,a){if(!this.yy.parser)throw new Error(l);this.yy.parser.parseError(l,a)},setInput:function(l){return this._input=l,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];return this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l,l.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var a=l.length,o=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===v.length?this.yylloc.first_column:0)+v[v.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),a=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
439
+ `+a+"^"},next:function(){if(this.done)return this.EOF;var l,a,o,v,f;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),h=0;h<g.length&&(!(o=this._input.match(this.rules[g[h]]))||a&&!(o[0].length>a[0].length)||(a=o,v=h,this.options.flex));h++);return a?((f=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,g[v],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
440
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l!==void 0?l:this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(l){this.begin(l)},options:{},performAction:function(l,a,o,v){function f(g,h){return a.yytext=a.yytext.substring(g,a.yyleng-h+g)}switch(o){case 0:if(a.yytext.slice(-2)==="\\\\"?(f(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(f(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(f(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return a.yytext=f(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=f(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return C}();return e.lexer=d,r.prototype=e,e.Parser=r,new r}();n.default=y,c.exports=n.default},function(c,n,y){function r(){var v=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=v}function e(v,f,g){f===void 0&&(f=v.length);var h=v[f-1],u=v[f-2];return h?h.type==="ContentStatement"?(u||!g?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original):void 0:g}function d(v,f,g){f===void 0&&(f=-1);var h=v[f+1],u=v[f+2];return h?h.type==="ContentStatement"?(u||!g?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original):void 0:g}function C(v,f,g){var h=v[f==null?0:f+1];if(h&&h.type==="ContentStatement"&&(g||!h.rightStripped)){var u=h.value;h.value=h.value.replace(g?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==u}}function l(v,f,g){var h=v[f==null?v.length-1:f-1];if(h&&h.type==="ContentStatement"&&(g||!h.leftStripped)){var u=h.value;return h.value=h.value.replace(g?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==u,h.leftStripped}}var a=y(1).default;n.__esModule=!0;var o=a(y(49));r.prototype=new o.default,r.prototype.Program=function(v){var f=!this.options.ignoreStandalone,g=!this.isRootSeen;this.isRootSeen=!0;for(var h=v.body,u=0,_=h.length;u<_;u++){var k=h[u],A=this.accept(k);if(A){var I=e(h,u,g),P=d(h,u,g),N=A.openStandalone&&I,q=A.closeStandalone&&P,j=A.inlineStandalone&&I&&P;A.close&&C(h,u,!0),A.open&&l(h,u,!0),f&&j&&(C(h,u),l(h,u)&&k.type==="PartialStatement"&&(k.indent=/([ \t]+$)/.exec(h[u-1].original)[1])),f&&N&&(C((k.program||k.inverse).body),l(h,u)),f&&q&&(C(h,u),l((k.inverse||k.program).body))}}return v},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(v){this.accept(v.program),this.accept(v.inverse);var f=v.program||v.inverse,g=v.program&&v.inverse,h=g,u=g;if(g&&g.chained)for(h=g.body[0].program;u.chained;)u=u.body[u.body.length-1].program;var _={open:v.openStrip.open,close:v.closeStrip.close,openStandalone:d(f.body),closeStandalone:e((h||f).body)};if(v.openStrip.close&&C(f.body,null,!0),g){var k=v.inverseStrip;k.open&&l(f.body,null,!0),k.close&&C(h.body,null,!0),v.closeStrip.open&&l(u.body,null,!0),!this.options.ignoreStandalone&&e(f.body)&&d(h.body)&&(l(f.body),C(h.body))}else v.closeStrip.open&&l(f.body,null,!0);return _},r.prototype.Decorator=r.prototype.MustacheStatement=function(v){return v.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(v){var f=v.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}},n.default=r,c.exports=n.default},function(c,n,y){function r(){this.parents=[]}function e(o){this.acceptRequired(o,"path"),this.acceptArray(o.params),this.acceptKey(o,"hash")}function d(o){e.call(this,o),this.acceptKey(o,"program"),this.acceptKey(o,"inverse")}function C(o){this.acceptRequired(o,"name"),this.acceptArray(o.params),this.acceptKey(o,"hash")}var l=y(1).default;n.__esModule=!0;var a=l(y(6));r.prototype={constructor:r,mutating:!1,acceptKey:function(o,v){var f=this.accept(o[v]);if(this.mutating){if(f&&!r.prototype[f.type])throw new a.default('Unexpected node type "'+f.type+'" found when accepting '+v+" on "+o.type);o[v]=f}},acceptRequired:function(o,v){if(this.acceptKey(o,v),!o[v])throw new a.default(o.type+" requires "+v)},acceptArray:function(o){for(var v=0,f=o.length;v<f;v++)this.acceptKey(o,v),o[v]||(o.splice(v,1),v--,f--)},accept:function(o){if(o){if(!this[o.type])throw new a.default("Unknown type: "+o.type,o);this.current&&this.parents.unshift(this.current),this.current=o;var v=this[o.type](o);return this.current=this.parents.shift(),!this.mutating||v?v:v!==!1?o:void 0}},Program:function(o){this.acceptArray(o.body)},MustacheStatement:e,Decorator:e,BlockStatement:d,DecoratorBlock:d,PartialStatement:C,PartialBlockStatement:function(o){C.call(this,o),this.acceptKey(o,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(o){this.acceptArray(o.pairs)},HashPair:function(o){this.acceptRequired(o,"value")}},n.default=r,c.exports=n.default},function(c,n,y){function r(k,A){if(A=A.path?A.path.original:A,k.path.original!==A){var I={loc:k.path.loc};throw new _.default(k.path.original+" doesn't match "+A,I)}}function e(k,A){this.source=k,this.start={line:A.first_line,column:A.first_column},this.end={line:A.last_line,column:A.last_column}}function d(k){return/^\[.*\]$/.test(k)?k.substring(1,k.length-1):k}function C(k,A){return{open:k.charAt(2)==="~",close:A.charAt(A.length-3)==="~"}}function l(k){return k.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function a(k,A,I){I=this.locInfo(I);for(var P=k?"@":"",N=[],q=0,j=0,D=A.length;j<D;j++){var L=A[j].part,V=A[j].original!==L;if(P+=(A[j].separator||"")+L,V||L!==".."&&L!=="."&&L!=="this")N.push(L);else{if(N.length>0)throw new _.default("Invalid path: "+P,{loc:I});L===".."&&q++}}return{type:"PathExpression",data:k,depth:q,parts:N,original:P,loc:I}}function o(k,A,I,P,N,q){var j=P.charAt(3)||P.charAt(2),D=j!=="{"&&j!=="&";return{type:/\*/.test(P)?"Decorator":"MustacheStatement",path:k,params:A,hash:I,escaped:D,strip:N,loc:this.locInfo(q)}}function v(k,A,I,P){r(k,I);var N={type:"Program",body:A,strip:{},loc:P=this.locInfo(P)};return{type:"BlockStatement",path:k.path,params:k.params,hash:k.hash,program:N,openStrip:{},inverseStrip:{},closeStrip:{},loc:P}}function f(k,A,I,P,N,q){P&&P.path&&r(k,P);var j=/\*/.test(k.open);A.blockParams=k.blockParams;var D=void 0,L=void 0;if(I){if(j)throw new _.default("Unexpected inverse block on decorator",I);I.chain&&(I.program.body[0].closeStrip=P.strip),L=I.strip,D=I.program}return N&&(N=D,D=A,A=N),{type:j?"DecoratorBlock":"BlockStatement",path:k.path,params:k.params,hash:k.hash,program:A,inverse:D,openStrip:k.strip,inverseStrip:L,closeStrip:P&&P.strip,loc:this.locInfo(q)}}function g(k,A){if(!A&&k.length){var I=k[0].loc,P=k[k.length-1].loc;I&&P&&(A={source:I.source,start:{line:I.start.line,column:I.start.column},end:{line:P.end.line,column:P.end.column}})}return{type:"Program",body:k,strip:{},loc:A}}function h(k,A,I,P){return r(k,I),{type:"PartialBlockStatement",name:k.path,params:k.params,hash:k.hash,program:A,openStrip:k.strip,closeStrip:I&&I.strip,loc:this.locInfo(P)}}var u=y(1).default;n.__esModule=!0,n.SourceLocation=e,n.id=d,n.stripFlags=C,n.stripComment=l,n.preparePath=a,n.prepareMustache=o,n.prepareRawBlock=v,n.prepareBlock=f,n.prepareProgram=g,n.preparePartialBlock=h;var _=u(y(6))},function(c,n,y){function r(){}function e(u,_,k){if(u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+u);"data"in(_=_||{})||(_.data=!0),_.compat&&(_.useDepths=!0);var A=k.parse(u,_),I=new k.Compiler().compile(A,_);return new k.JavaScriptCompiler().compile(I,_)}function d(u,_,k){function A(){var N=k.parse(u,_),q=new k.Compiler().compile(N,_),j=new k.JavaScriptCompiler().compile(q,_,void 0,!0);return k.template(j)}function I(N,q){return P||(P=A()),P.call(this,N,q)}if(_===void 0&&(_={}),u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+u);"data"in(_=f.extend({},_))||(_.data=!0),_.compat&&(_.useDepths=!0);var P=void 0;return I._setup=function(N){return P||(P=A()),P._setup(N)},I._child=function(N,q,j,D){return P||(P=A()),P._child(N,q,j,D)},I}function C(u,_){if(u===_)return!0;if(f.isArray(u)&&f.isArray(_)&&u.length===_.length){for(var k=0;k<u.length;k++)if(!C(u[k],_[k]))return!1;return!0}}function l(u){if(!u.path.parts){var _=u.path;u.path={type:"PathExpression",data:!1,depth:0,parts:[_.original+""],original:_.original+"",loc:_.loc}}}var a=y(34).default,o=y(1).default;n.__esModule=!0,n.Compiler=r,n.precompile=e,n.compile=d;var v=o(y(6)),f=y(5),g=o(y(45)),h=[].slice;r.prototype={compiler:r,equals:function(u){var _=this.opcodes.length;if(u.opcodes.length!==_)return!1;for(var k=0;k<_;k++){var A=this.opcodes[k],I=u.opcodes[k];if(A.opcode!==I.opcode||!C(A.args,I.args))return!1}for(_=this.children.length,k=0;k<_;k++)if(!this.children[k].equals(u.children[k]))return!1;return!0},guid:0,compile:function(u,_){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=_,this.stringParams=_.stringParams,this.trackIds=_.trackIds,_.blockParams=_.blockParams||[],_.knownHelpers=f.extend(a(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},_.knownHelpers),this.accept(u)},compileProgram:function(u){var _=new this.compiler().compile(u,this.options),k=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[k]=_,this.useDepths=this.useDepths||_.useDepths,k},accept:function(u){if(!this[u.type])throw new v.default("Unknown type: "+u.type,u);this.sourceNode.unshift(u);var _=this[u.type](u);return this.sourceNode.shift(),_},Program:function(u){this.options.blockParams.unshift(u.blockParams);for(var _=u.body,k=_.length,A=0;A<k;A++)this.accept(_[A]);return this.options.blockParams.shift(),this.isSimple=k===1,this.blockParams=u.blockParams?u.blockParams.length:0,this},BlockStatement:function(u){l(u);var _=u.program,k=u.inverse;_=_&&this.compileProgram(_),k=k&&this.compileProgram(k);var A=this.classifySexpr(u);A==="helper"?this.helperSexpr(u,_,k):A==="simple"?(this.simpleSexpr(u),this.opcode("pushProgram",_),this.opcode("pushProgram",k),this.opcode("emptyHash"),this.opcode("blockValue",u.path.original)):(this.ambiguousSexpr(u,_,k),this.opcode("pushProgram",_),this.opcode("pushProgram",k),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(u){var _=u.program&&this.compileProgram(u.program),k=this.setupFullMustacheParams(u,_,void 0),A=u.path;this.useDecorators=!0,this.opcode("registerDecorator",k.length,A.original)},PartialStatement:function(u){this.usePartial=!0;var _=u.program;_&&(_=this.compileProgram(u.program));var k=u.params;if(k.length>1)throw new v.default("Unsupported number of partial arguments: "+k.length,u);k.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):k.push({type:"PathExpression",parts:[],depth:0}));var A=u.name.original,I=u.name.type==="SubExpression";I&&this.accept(u.name),this.setupFullMustacheParams(u,_,void 0,!0);var P=u.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",I,A,P),this.opcode("append")},PartialBlockStatement:function(u){this.PartialStatement(u)},MustacheStatement:function(u){this.SubExpression(u),u.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(u){this.DecoratorBlock(u)},ContentStatement:function(u){u.value&&this.opcode("appendContent",u.value)},CommentStatement:function(){},SubExpression:function(u){l(u);var _=this.classifySexpr(u);_==="simple"?this.simpleSexpr(u):_==="helper"?this.helperSexpr(u):this.ambiguousSexpr(u)},ambiguousSexpr:function(u,_,k){var A=u.path,I=A.parts[0],P=_!=null||k!=null;this.opcode("getContext",A.depth),this.opcode("pushProgram",_),this.opcode("pushProgram",k),A.strict=!0,this.accept(A),this.opcode("invokeAmbiguous",I,P)},simpleSexpr:function(u){var _=u.path;_.strict=!0,this.accept(_),this.opcode("resolvePossibleLambda")},helperSexpr:function(u,_,k){var A=this.setupFullMustacheParams(u,_,k),I=u.path,P=I.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",A.length,P);else{if(this.options.knownHelpersOnly)throw new v.default("You specified knownHelpersOnly, but used the unknown helper "+P,u);I.strict=!0,I.falsy=!0,this.accept(I),this.opcode("invokeHelper",A.length,I.original,g.default.helpers.simpleId(I))}},PathExpression:function(u){this.addDepth(u.depth),this.opcode("getContext",u.depth);var _=u.parts[0],k=g.default.helpers.scopedId(u),A=!u.depth&&!k&&this.blockParamIndex(_);A?this.opcode("lookupBlockParam",A,u.parts):_?u.data?(this.options.data=!0,this.opcode("lookupData",u.depth,u.parts,u.strict)):this.opcode("lookupOnContext",u.parts,u.falsy,u.strict,k):this.opcode("pushContext")},StringLiteral:function(u){this.opcode("pushString",u.value)},NumberLiteral:function(u){this.opcode("pushLiteral",u.value)},BooleanLiteral:function(u){this.opcode("pushLiteral",u.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(u){var _=u.pairs,k=0,A=_.length;for(this.opcode("pushHash");k<A;k++)this.pushParam(_[k].value);for(;k--;)this.opcode("assignToHash",_[k].key);this.opcode("popHash")},opcode:function(u){this.opcodes.push({opcode:u,args:h.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(u){u&&(this.useDepths=!0)},classifySexpr:function(u){var _=g.default.helpers.simpleId(u.path),k=_&&!!this.blockParamIndex(u.path.parts[0]),A=!k&&g.default.helpers.helperExpression(u),I=!k&&(A||_);if(I&&!A){var P=u.path.parts[0],N=this.options;N.knownHelpers[P]?A=!0:N.knownHelpersOnly&&(I=!1)}return A?"helper":I?"ambiguous":"simple"},pushParams:function(u){for(var _=0,k=u.length;_<k;_++)this.pushParam(u[_])},pushParam:function(u){var _=u.value!=null?u.value:u.original||"";if(this.stringParams)_.replace&&(_=_.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),u.depth&&this.addDepth(u.depth),this.opcode("getContext",u.depth||0),this.opcode("pushStringParam",_,u.type),u.type==="SubExpression"&&this.accept(u);else{if(this.trackIds){var k=void 0;if(!u.parts||g.default.helpers.scopedId(u)||u.depth||(k=this.blockParamIndex(u.parts[0])),k){var A=u.parts.slice(1).join(".");this.opcode("pushId","BlockParam",k,A)}else(_=u.original||_).replace&&(_=_.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",u.type,_)}this.accept(u)}},setupFullMustacheParams:function(u,_,k,A){var I=u.params;return this.pushParams(I),this.opcode("pushProgram",_),this.opcode("pushProgram",k),u.hash?this.accept(u.hash):this.opcode("emptyHash",A),I},blockParamIndex:function(u){for(var _=0,k=this.options.blockParams.length;_<k;_++){var A=this.options.blockParams[_],I=A&&f.indexOf(A,u);if(A&&I>=0)return[_,I]}}}},function(c,n,y){function r(g){this.value=g}function e(){}function d(g,h,u,_){var k=h.popStack(),A=0,I=u.length;for(g&&I--;A<I;A++)k=h.nameLookup(k,u[A],_);return g?[h.aliasable("container.strict"),"(",k,", ",h.quotedString(u[A]),", ",JSON.stringify(h.source.currentLocation)," )"]:k}var C=y(13).default,l=y(1).default;n.__esModule=!0;var a=y(4),o=l(y(6)),v=y(5),f=l(y(53));e.prototype={nameLookup:function(g,h){return this.internalNameLookup(g,h)},depthedLookup:function(g){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(g),")"]},compilerInfo:function(){var g=a.COMPILER_REVISION;return[g,a.REVISION_CHANGES[g]]},appendToBuffer:function(g,h,u){return v.isArray(g)||(g=[g]),g=this.source.wrap(g,h),this.environment.isSimple?["return ",g,";"]:u?["buffer += ",g,";"]:(g.appendToBuffer=!0,g)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(g,h){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",g,",",JSON.stringify(h),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(g,h,u,_){this.environment=g,this.options=h,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!u,this.context=u||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(g,h),this.useDepths=this.useDepths||g.useDepths||g.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||g.useBlockParams;var k=g.opcodes,A=void 0,I=void 0,P=void 0,N=void 0;for(P=0,N=k.length;P<N;P++)A=k[P],this.source.currentLocation=A.loc,I=I||A.loc,this[A.opcode].apply(this,A.args);if(this.source.currentLocation=I,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
441
+ `]),this.decorators.push("return fn;"),_?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
235
442
  `),this.decorators.push(`}
236
- `),this.decorators=this.decorators.merge()));var U=this.createFunctionContext(b);if(this.isChild)return U;var L={compiler:this.compilerInfo(),main:U};this.decorators&&(L.main_d=this.decorators,L.useDecorators=!0);var B=this.context,C=B.programs,D=B.decorators;for(P=0,F=C.length;P<F;P++)C[P]&&(L[P]=C[P],D[P]&&(L[P+"_d"]=D[P],L.useDecorators=!0));return this.environment.usePartial&&(L.usePartial=!0),this.options.data&&(L.useData=!0),this.useDepths&&(L.useDepths=!0),this.useBlockParams&&(L.useBlockParams=!0),this.options.compat&&(L.compat=!0),b?L.compilerOptions=this.options:(L.compiler=JSON.stringify(L.compiler),this.source.currentLocation={start:{line:1,column:0}},L=this.objectLiteral(L),l.srcName?(L=L.toStringWithSourceMap({file:l.destName})).map=L.map&&L.map.toString():L=L.toString()),L},preamble:function(){this.lastContext=0,this.source=new f.default(this.options.srcName),this.decorators=new f.default(this.options.srcName)},createFunctionContext:function(y){var l=this,o="",b=this.stackVars.concat(this.registers.list);b.length>0&&(o+=", "+b.join(", "));var E=0;_(this.aliases).forEach(function(P){var F=l.aliases[P];F.children&&F.referenceCount>1&&(o+=", alias"+ ++E+"="+P,F.children[0]="alias"+E)}),this.lookupPropertyFunctionIsUsed&&(o+=", "+this.lookupPropertyFunctionVarDeclaration());var R=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&R.push("blockParams"),this.useDepths&&R.push("depths");var k=this.mergeSource(o);return y?(R.push(k),Function.apply(this,R)):this.source.wrap(["function(",R.join(","),`) {
237
- `,k,"}"])},mergeSource:function(y){var l=this.environment.isSimple,o=!this.forceBuffer,b=void 0,E=void 0,R=void 0,k=void 0;return this.source.each(function(P){P.appendToBuffer?(R?P.prepend(" + "):R=P,k=P):(R&&(E?R.prepend("buffer += "):b=!0,k.add(";"),R=k=void 0),E=!0,l||(o=!1))}),o?R?(R.prepend("return "),k.add(";")):E||this.source.push('return "";'):(y+=", buffer = "+(b?"":this.initializeBuffer()),R?(R.prepend("return buffer + "),k.add(";")):this.source.push("return buffer;")),y&&this.source.prepend("var "+y.substring(2)+(b?"":`;
443
+ `),this.decorators=this.decorators.merge()));var q=this.createFunctionContext(_);if(this.isChild)return q;var j={compiler:this.compilerInfo(),main:q};this.decorators&&(j.main_d=this.decorators,j.useDecorators=!0);var D=this.context,L=D.programs,V=D.decorators;for(P=0,N=L.length;P<N;P++)L[P]&&(j[P]=L[P],V[P]&&(j[P+"_d"]=V[P],j.useDecorators=!0));return this.environment.usePartial&&(j.usePartial=!0),this.options.data&&(j.useData=!0),this.useDepths&&(j.useDepths=!0),this.useBlockParams&&(j.useBlockParams=!0),this.options.compat&&(j.compat=!0),_?j.compilerOptions=this.options:(j.compiler=JSON.stringify(j.compiler),this.source.currentLocation={start:{line:1,column:0}},j=this.objectLiteral(j),h.srcName?(j=j.toStringWithSourceMap({file:h.destName})).map=j.map&&j.map.toString():j=j.toString()),j},preamble:function(){this.lastContext=0,this.source=new f.default(this.options.srcName),this.decorators=new f.default(this.options.srcName)},createFunctionContext:function(g){var h=this,u="",_=this.stackVars.concat(this.registers.list);_.length>0&&(u+=", "+_.join(", "));var k=0;C(this.aliases).forEach(function(P){var N=h.aliases[P];N.children&&N.referenceCount>1&&(u+=", alias"+ ++k+"="+P,N.children[0]="alias"+k)}),this.lookupPropertyFunctionIsUsed&&(u+=", "+this.lookupPropertyFunctionVarDeclaration());var A=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&A.push("blockParams"),this.useDepths&&A.push("depths");var I=this.mergeSource(u);return g?(A.push(I),Function.apply(this,A)):this.source.wrap(["function(",A.join(","),`) {
444
+ `,I,"}"])},mergeSource:function(g){var h=this.environment.isSimple,u=!this.forceBuffer,_=void 0,k=void 0,A=void 0,I=void 0;return this.source.each(function(P){P.appendToBuffer?(A?P.prepend(" + "):A=P,I=P):(A&&(k?A.prepend("buffer += "):_=!0,I.add(";"),A=I=void 0),k=!0,h||(u=!1))}),u?A?(A.prepend("return "),I.add(";")):k||this.source.push('return "";'):(g+=", buffer = "+(_?"":this.initializeBuffer()),A?(A.prepend("return buffer + "),I.add(";")):this.source.push("return buffer;")),g&&this.source.prepend("var "+g.substring(2)+(_?"":`;
238
445
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
239
446
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
240
447
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -242,6 +449,6 @@ Expecting `+X.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on l
242
449
  }
243
450
  return undefined
244
451
  }
245
- `.trim()},blockValue:function(y){var l=this.aliasable("container.hooks.blockHelperMissing"),o=[this.contextName(0)];this.setupHelperArgs(y,0,o);var b=this.popStack();o.splice(1,0,b),this.push(this.source.functionCall(l,"call",o))},ambiguousBlockValue:function(){var y=this.aliasable("container.hooks.blockHelperMissing"),l=[this.contextName(0)];this.setupHelperArgs("",0,l,!0),this.flushInline();var o=this.topStack();l.splice(1,0,o),this.pushSource(["if (!",this.lastHelper,") { ",o," = ",this.source.functionCall(y,"call",l),"}"])},appendContent:function(y){this.pendingContent?y=this.pendingContent+y:this.pendingLocation=this.source.currentLocation,this.pendingContent=y},append:function(){if(this.isInline())this.replaceStack(function(l){return[" != null ? ",l,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var y=this.popStack();this.pushSource(["if (",y," != null) { ",this.appendToBuffer(y,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(y){this.lastContext=y},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(y,l,o,b){var E=0;b||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(y[E++])),this.resolvePath("context",y,E,l,o)},lookupBlockParam:function(y,l){this.useBlockParams=!0,this.push(["blockParams[",y[0],"][",y[1],"]"]),this.resolvePath("context",l,1)},lookupData:function(y,l,o){y?this.pushStackLiteral("container.data(data, "+y+")"):this.pushStackLiteral("data"),this.resolvePath("data",l,0,!0,o)},resolvePath:function(y,l,o,b,E){var R=this;if(this.options.strict||this.options.assumeObjects)this.push(u(this.options.strict&&E,this,l,y));else for(var k=l.length;o<k;o++)this.replaceStack(function(P){var F=R.nameLookup(P,l[o],y);return b?[" && ",F]:[" != null ? ",F," : ",P]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(y,l){this.pushContext(),this.pushString(l),l!=="SubExpression"&&(typeof y=="string"?this.pushString(y):this.pushStackLiteral(y))},emptyHash:function(y){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(y?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var y=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(y.ids)),this.stringParams&&(this.push(this.objectLiteral(y.contexts)),this.push(this.objectLiteral(y.types))),this.push(this.objectLiteral(y.values))},pushString:function(y){this.pushStackLiteral(this.quotedString(y))},pushLiteral:function(y){this.pushStackLiteral(y)},pushProgram:function(y){y!=null?this.pushStackLiteral(this.programExpression(y)):this.pushStackLiteral(null)},registerDecorator:function(y,l){var o=this.nameLookup("decorators",l,"decorator"),b=this.setupHelperArgs(l,y);this.decorators.push(["fn = ",this.decorators.functionCall(o,"",["fn","props","container",b])," || fn;"])},invokeHelper:function(y,l,o){var b=this.popStack(),E=this.setupHelper(y,l),R=[];o&&R.push(E.name),R.push(b),this.options.strict||R.push(this.aliasable("container.hooks.helperMissing"));var k=["(",this.itemsSeparatedBy(R,"||"),")"],P=this.source.functionCall(k,"call",E.callParams);this.push(P)},itemsSeparatedBy:function(y,l){var o=[];o.push(y[0]);for(var b=1;b<y.length;b++)o.push(l,y[b]);return o},invokeKnownHelper:function(y,l){var o=this.setupHelper(y,l);this.push(this.source.functionCall(o.name,"call",o.callParams))},invokeAmbiguous:function(y,l){this.useRegister("helper");var o=this.popStack();this.emptyHash();var b=this.setupHelper(0,y,l),E=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",y,"helper")," || ",o,")"];this.options.strict||(E[0]="(helper = ",E.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",E,b.paramsInit?["),(",b.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",b.callParams)," : helper))"])},invokePartial:function(y,l,o){var b=[],E=this.setupParams(l,1,b);y&&(l=this.popStack(),delete E.name),o&&(E.indent=JSON.stringify(o)),E.helpers="helpers",E.partials="partials",E.decorators="container.decorators",y?b.unshift(l):b.unshift(this.nameLookup("partials",l,"partial")),this.options.compat&&(E.depths="depths"),E=this.objectLiteral(E),b.push(E),this.push(this.source.functionCall("container.invokePartial","",b))},assignToHash:function(y){var l=this.popStack(),o=void 0,b=void 0,E=void 0;this.trackIds&&(E=this.popStack()),this.stringParams&&(b=this.popStack(),o=this.popStack());var R=this.hash;o&&(R.contexts[y]=o),b&&(R.types[y]=b),E&&(R.ids[y]=E),R.values[y]=l},pushId:function(y,l,o){y==="BlockParam"?this.pushStackLiteral("blockParams["+l[0]+"].path["+l[1]+"]"+(o?" + "+JSON.stringify("."+o):"")):y==="PathExpression"?this.pushString(l):y==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(y,l){for(var o=y.children,b=void 0,E=void 0,R=0,k=o.length;R<k;R++){b=o[R],E=new this.compiler;var P=this.matchExistingProgram(b);if(P==null){this.context.programs.push("");var F=this.context.programs.length;b.index=F,b.name="program"+F,this.context.programs[F]=E.compile(b,l,this.context,!this.precompile),this.context.decorators[F]=E.decorators,this.context.environments[F]=b,this.useDepths=this.useDepths||E.useDepths,this.useBlockParams=this.useBlockParams||E.useBlockParams,b.useDepths=this.useDepths,b.useBlockParams=this.useBlockParams}else b.index=P.index,b.name="program"+P.index,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams}},matchExistingProgram:function(y){for(var l=0,o=this.context.environments.length;l<o;l++){var b=this.context.environments[l];if(b&&b.equals(y))return b}},programExpression:function(y){var l=this.environment.children[y],o=[l.index,"data",l.blockParams];return(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths"),"container.program("+o.join(", ")+")"},useRegister:function(y){this.registers[y]||(this.registers[y]=!0,this.registers.list.push(y))},push:function(y){return y instanceof r||(y=this.source.wrap(y)),this.inlineStack.push(y),y},pushStackLiteral:function(y){this.push(new r(y))},pushSource:function(y){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),y&&this.source.push(y)},replaceStack:function(y){var l=["("],o=void 0,b=void 0,E=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var R=this.popStack(!0);if(R instanceof r)l=["(",o=[R.value]],E=!0;else{b=!0;var k=this.incrStack();l=["((",this.push(k)," = ",R,")"],o=this.topStack()}var P=y.call(this,o);E||this.popStack(),b&&this.stackSlot--,this.push(l.concat(P,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var y=this.inlineStack;this.inlineStack=[];for(var l=0,o=y.length;l<o;l++){var b=y[l];if(b instanceof r)this.compileStack.push(b);else{var E=this.incrStack();this.pushSource([E," = ",b,";"]),this.compileStack.push(E)}}},isInline:function(){return this.inlineStack.length},popStack:function(y){var l=this.isInline(),o=(l?this.inlineStack:this.compileStack).pop();if(!y&&o instanceof r)return o.value;if(!l){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return o},topStack:function(){var y=this.isInline()?this.inlineStack:this.compileStack,l=y[y.length-1];return l instanceof r?l.value:l},contextName:function(y){return this.useDepths&&y?"depths["+y+"]":"depth"+y},quotedString:function(y){return this.source.quotedString(y)},objectLiteral:function(y){return this.source.objectLiteral(y)},aliasable:function(y){var l=this.aliases[y];return l?(l.referenceCount++,l):((l=this.aliases[y]=this.source.wrap(y)).aliasable=!0,l.referenceCount=1,l)},setupHelper:function(y,l,o){var b=[];return{params:b,paramsInit:this.setupHelperArgs(l,y,b,o),name:this.nameLookup("helpers",l,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(b)}},setupParams:function(y,l,o){var b={},E=[],R=[],k=[],P=!o,F=void 0;P&&(o=[]),b.name=this.quotedString(y),b.hash=this.popStack(),this.trackIds&&(b.hashIds=this.popStack()),this.stringParams&&(b.hashTypes=this.popStack(),b.hashContexts=this.popStack());var U=this.popStack(),L=this.popStack();(L||U)&&(b.fn=L||"container.noop",b.inverse=U||"container.noop");for(var B=l;B--;)F=this.popStack(),o[B]=F,this.trackIds&&(k[B]=this.popStack()),this.stringParams&&(R[B]=this.popStack(),E[B]=this.popStack());return P&&(b.args=this.source.generateArray(o)),this.trackIds&&(b.ids=this.source.generateArray(k)),this.stringParams&&(b.types=this.source.generateArray(R),b.contexts=this.source.generateArray(E)),this.options.data&&(b.data="data"),this.useBlockParams&&(b.blockParams="blockParams"),b},setupHelperArgs:function(y,l,o,b){var E=this.setupParams(y,l,o);return E.loc=JSON.stringify(this.source.currentLocation),E=this.objectLiteral(E),b?(this.useRegister("options"),o.push("options"),["options=",E]):o?(o.push(E),""):E}},function(){for(var y="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),l=e.RESERVED_WORDS={},o=0,b=y.length;o<b;o++)l[y[o]]=!0}(),e.isValidJavaScriptVariableName=function(y){return!e.RESERVED_WORDS[y]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(y)},t.default=e,s.exports=t.default},function(s,t,v){function r(c,i,S){if(_.isArray(c)){for(var f=[],y=0,l=c.length;y<l;y++)f.push(i.wrap(c[y],S));return f}return typeof c=="boolean"||typeof c=="number"?c+"":c}function e(c){this.srcFile=c,this.source=[]}var u=v(13).default;t.__esModule=!0;var _=v(5),a=void 0;a||(a=function(c,i,S,f){this.src="",f&&this.add(f)},a.prototype={add:function(c){_.isArray(c)&&(c=c.join("")),this.src+=c},prepend:function(c){_.isArray(c)&&(c=c.join("")),this.src=c+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),e.prototype={isEmpty:function(){return!this.source.length},prepend:function(c,i){this.source.unshift(this.wrap(c,i))},push:function(c,i){this.source.push(this.wrap(c,i))},merge:function(){var c=this.empty();return this.each(function(i){c.add([" ",i,`
246
- `])}),c},each:function(c){for(var i=0,S=this.source.length;i<S;i++)c(this.source[i])},empty:function(){var c=this.currentLocation||{start:{}};return new a(c.start.line,c.start.column,this.srcFile)},wrap:function(c){var i=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return c instanceof a?c:(c=r(c,this,i),new a(i.start.line,i.start.column,this.srcFile,c))},functionCall:function(c,i,S){return S=this.generateList(S),this.wrap([c,i?"."+i+"(":"(",S,")"])},quotedString:function(c){return'"'+(c+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(c){var i=this,S=[];u(c).forEach(function(y){var l=r(c[y],i);l!=="undefined"&&S.push([i.quotedString(y),":",l])});var f=this.generateList(S);return f.prepend("{"),f.add("}"),f},generateList:function(c){for(var i=this.empty(),S=0,f=c.length;S<f;S++)S&&i.add(","),i.add(r(c[S],this));return i},generateArray:function(c){var i=this.generateList(c);return i.prepend("["),i.add("]"),i}},t.default=e,s.exports=t.default}])},3633:function(p,s,t){p.exports=t(261).default}},g={};function w(p){var s=g[p];if(s!==void 0)return s.exports;var t=g[p]={exports:{}};return m[p].call(t.exports,t,t.exports,w),t.exports}return w.n=function(p){var s=p&&p.__esModule?function(){return p.default}:function(){return p};return w.d(s,{a:s}),s},w.d=function(p,s){for(var t in s)w.o(s,t)&&!w.o(p,t)&&Object.defineProperty(p,t,{enumerable:!0,get:s[t]})},w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.o=function(p,s){return Object.prototype.hasOwnProperty.call(p,s)},w(2987)}()})})(Xr);var ua=Xr.exports;const at=qn(ua),ha=({addSearchUi:n,searchFieldHeaderText:h,searchInputPlaceholderText:m,searchButtonText:g,hasSearchInputAutofocus:w,hasSearchAsYouType:p,minLengthToShowSearchAsYouTypeResults:s,hasSearchInputFieldIcon:t,hasAutocomplete:v,loadMoreResults:r,sortByOptions:e,filters:u,hasActiveFilters:_})=>{const[a,c]=rt.useState(!1),i=rt.useRef(null),S=rt.useMemo(()=>u.filter(o=>o.type==="checkbox-group"||o.type==="radio-group"||o.type==="tags"),[u]),f=rt.useMemo(()=>S.length>0,[S]),y=rt.useMemo(()=>u&&u.find(o=>o.type==="tabs"),[]),l=rt.useMemo(()=>u&&u.find(o=>o.type==="select-list"),[]);return rt.useEffect(()=>{n.searchField({containerId:"search-field-container",placeholder:m,button:g,icon:t,autofocus:w,searchAsYouType:p,minLengthToShowResults:s}),n.searchResults({containerId:"search-results-container"}),v&&n.autocomplete({containerId:"autocomplete-container",sources:[{type:at.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),r==="button"?n.loadMore({containerId:"loadmore-container",type:at.LOAD_MORE_TYPE.BUTTON}):r==="pagination"?n.pagination({containerId:"pagination-container"}):r==="scroll"&&n.loadMore({containerId:i.current,type:at.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:i.current}),e!=null&&e.length&&(e==null?void 0:e.length)>0&&n.sortBy({containerId:"sortby-container",options:e}),u&&u.length>0&&(u.forEach((o,b)=>{o.type==="checkbox-group"?n.filters({containerId:`filters-container-${b}`,type:at.FILTER_TYPE.CHECKBOX_GROUP,options:o.options}):o.type==="radio-group"?n.filters({containerId:`filters-container-${b}`,type:at.FILTER_TYPE.RADIO_GROUP,options:o.options}):o.type==="tags"?n.filters({containerId:`filters-container-${b}`,type:at.FILTER_TYPE.TAGS,options:o.options}):o.type==="tabs"?n.filters({containerId:"tab-filters-container",type:at.FILTER_TYPE.TABS,options:o.options}):o.type==="select-list"&&(n.filters({containerId:"select-list-filters-container",type:at.FILTER_TYPE.SELECT_LIST,options:o.options}),n.filters({containerId:"select-list-filters-container-mobile",type:at.FILTER_TYPE.SELECT_LIST,options:o.options}))}),_&&n.activeFilters({containerId:"active-filters-container"})),n.start()},[a,i.current,u,e,_,r,_,v,p,w,t,g,m,h]),ve.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[ve.jsxs("div",{className:"flex items-center gap-4",children:[h&&ve.jsx("h2",{className:"text-xl font-semibold",children:h}),ve.jsx("div",{id:"search-field-container"})]}),ve.jsx("div",{id:"autocomplete-container"}),y&&ve.jsx("div",{className:"mt-10 flex justify-center",children:ve.jsx("div",{id:"tab-filters-container"})}),f&&ve.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${a?"bg-gray-50":""}`,children:[ve.jsxs("button",{onClick:()=>c(!a),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[ve.jsxs("div",{className:"flex items-center gap-2",children:[ve.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ve.jsx("path",{d:"M20 5.6C20 5.04 20 4.76 19.89 4.546C19.7944 4.358 19.6418 4.20504 19.454 4.109C19.24 4 18.96 4 18.4 4H5.6C5.04 4 4.76 4 4.546 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.546C4 4.76 4 5.04 4 5.6V6.337C4 6.582 4 6.704 4.028 6.819C4.05249 6.92138 4.09299 7.01925 4.148 7.109C4.209 7.209 4.296 7.296 4.468 7.469L9.531 12.531C9.704 12.704 9.791 12.791 9.852 12.891C9.90733 12.9817 9.94733 13.0783 9.972 13.181C10 13.295 10 13.416 10 13.655V18.411C10 19.268 10 19.697 10.18 19.955C10.2581 20.0666 10.3582 20.161 10.4741 20.2326C10.59 20.3041 10.7192 20.3512 10.854 20.371C11.165 20.417 11.549 20.226 12.315 19.842L13.115 19.442C13.437 19.282 13.597 19.202 13.714 19.082C13.8178 18.976 13.8967 18.8483 13.945 18.708C14 18.55 14 18.37 14 18.011V13.663C14 13.418 14 13.296 14.028 13.181C14.0525 13.0786 14.093 12.9807 14.148 12.891C14.208 12.791 14.295 12.705 14.465 12.535L14.469 12.531L19.532 7.469C19.704 7.296 19.79 7.209 19.852 7.109C19.9073 7.01833 19.9473 6.92167 19.972 6.819C20 6.706 20 6.584 20 6.345V5.6Z",stroke:"#8D8D8D","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),"Filter by"]}),ve.jsx("svg",{className:`${a?"transform rotate-180":""}`,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ve.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.64604 4.64601C1.69249 4.59945 1.74766 4.5625 1.80841 4.5373C1.86915 4.51209 1.93427 4.49911 2.00004 4.49911C2.06581 4.49911 2.13093 4.51209 2.19167 4.5373C2.25242 4.5625 2.30759 4.59945 2.35404 4.64601L8.00004 10.293L13.646 4.64601C13.6925 4.59952 13.7477 4.56264 13.8085 4.53749C13.8692 4.51233 13.9343 4.49938 14 4.49938C14.0658 4.49938 14.1309 4.51233 14.1916 4.53749C14.2524 4.56264 14.3076 4.59952 14.354 4.64601C14.4005 4.6925 14.4374 4.74769 14.4626 4.80842C14.4877 4.86916 14.5007 4.93426 14.5007 5.00001C14.5007 5.06575 14.4877 5.13085 14.4626 5.19159C14.4374 5.25233 14.4005 5.30752 14.354 5.35401L8.35404 11.354C8.30759 11.4006 8.25242 11.4375 8.19167 11.4627C8.13093 11.4879 8.06581 11.5009 8.00004 11.5009C7.93427 11.5009 7.86915 11.4879 7.80841 11.4627C7.74766 11.4375 7.69248 11.4006 7.64604 11.354L1.64604 5.35401C1.59948 5.30756 1.56253 5.25239 1.53733 5.19164C1.51212 5.1309 1.49915 5.06578 1.49915 5.00001C1.49915 4.93424 1.51212 4.86912 1.53733 4.80837C1.56253 4.74763 1.59948 4.69245 1.64604 4.64601Z",fill:"#3A3A3A"})})]}),a&&ve.jsx("div",{className:"p-4 flex flex-col gap-6",children:S.map((o,b)=>ve.jsxs("div",{children:[o.labelText&&ve.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:o.labelText}),ve.jsx("div",{id:`filters-container-${b}`})]}))})]}),l&&ve.jsx("div",{className:"mt-10 w-full flex justify-end",children:ve.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),ve.jsxs("div",{className:"mt-2 md:mt-8 flex flex-col items-end md:flex-row md:items-center md:justify-between gap-2",children:[_&&ve.jsx("div",{children:ve.jsx("div",{id:"active-filters-container"})}),(l||(e==null?void 0:e.length)&&e.length>0)&&ve.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[l&&ve.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(e==null?void 0:e.length)&&e.length>0&&ve.jsx("div",{id:"sortby-container"})]})]}),ve.jsx("div",{className:"mt-4",children:f?ve.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[ve.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:S.map((o,b)=>ve.jsxs("div",{children:[o.labelText&&ve.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:o.labelText}),ve.jsx("div",{id:`filters-container-${b}`})]}))}),ve.jsxs("div",{className:"w-full h-full",children:[ve.jsx("div",{className:"h-[500px]",children:ve.jsx("div",{ref:i,id:"search-results-container"})}),ve.jsx("div",{className:"flex justify-center",children:ve.jsx("div",{id:"loadmore-container"})}),ve.jsx("div",{id:"pagination-container"})]})]}):ve.jsx("div",{className:"flex",children:ve.jsxs("div",{className:"w-full h-full",children:[ve.jsx("div",{className:"h-[500px]",children:ve.jsx("div",{ref:i,id:"search-results-container"})}),ve.jsx("div",{className:"flex justify-center",children:ve.jsx("div",{id:"loadmore-container"})}),ve.jsx("div",{id:"pagination-container"})]})})})]})},fa=({publicSiteKey:n,primaryColor:h,customFont:m,searchFieldHeaderText:g,searchButtonText:w,searchInputPlaceholderText:p="Keyword...",hasSearchInputAutofocus:s=!0,hasSearchAsYouType:t=!1,minLengthToShowSearchAsYouTypeResults:v=3,hasSearchInputFieldIcon:r=!0,hasAutocomplete:e=!0,loadMoreResults:u="pagination",sortByOptions:_=[],filters:a=[],hasActiveFilters:c=!0})=>{const[i,S]=rt.useState(null);return rt.useEffect(()=>{const f=new ca(n),y=new at(f);S(y)},[]),rt.useEffect(()=>{h&&document.documentElement.style.setProperty("--addsearch-primary-color",h)},[h]),rt.useEffect(()=>{m&&document.documentElement.style.setProperty("--addsearch-font-family",`'${m}', sans-serif`)},[m]),i&&ve.jsx(ha,{addSearchUi:i,searchFieldHeaderText:g,searchButtonText:w,searchInputPlaceholderText:p,hasSearchInputAutofocus:s,hasSearchAsYouType:t,minLengthToShowSearchAsYouTypeResults:v,hasSearchInputFieldIcon:r,hasAutocomplete:e,loadMoreResults:u,sortByOptions:_,filters:a,hasActiveFilters:c})};ft.AddSearchUiIntegration=fa,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
452
+ `.trim()},blockValue:function(g){var h=this.aliasable("container.hooks.blockHelperMissing"),u=[this.contextName(0)];this.setupHelperArgs(g,0,u);var _=this.popStack();u.splice(1,0,_),this.push(this.source.functionCall(h,"call",u))},ambiguousBlockValue:function(){var g=this.aliasable("container.hooks.blockHelperMissing"),h=[this.contextName(0)];this.setupHelperArgs("",0,h,!0),this.flushInline();var u=this.topStack();h.splice(1,0,u),this.pushSource(["if (!",this.lastHelper,") { ",u," = ",this.source.functionCall(g,"call",h),"}"])},appendContent:function(g){this.pendingContent?g=this.pendingContent+g:this.pendingLocation=this.source.currentLocation,this.pendingContent=g},append:function(){if(this.isInline())this.replaceStack(function(h){return[" != null ? ",h,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var g=this.popStack();this.pushSource(["if (",g," != null) { ",this.appendToBuffer(g,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(g){this.lastContext=g},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(g,h,u,_){var k=0;_||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(g[k++])),this.resolvePath("context",g,k,h,u)},lookupBlockParam:function(g,h){this.useBlockParams=!0,this.push(["blockParams[",g[0],"][",g[1],"]"]),this.resolvePath("context",h,1)},lookupData:function(g,h,u){g?this.pushStackLiteral("container.data(data, "+g+")"):this.pushStackLiteral("data"),this.resolvePath("data",h,0,!0,u)},resolvePath:function(g,h,u,_,k){var A=this;if(this.options.strict||this.options.assumeObjects)this.push(d(this.options.strict&&k,this,h,g));else for(var I=h.length;u<I;u++)this.replaceStack(function(P){var N=A.nameLookup(P,h[u],g);return _?[" && ",N]:[" != null ? ",N," : ",P]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(g,h){this.pushContext(),this.pushString(h),h!=="SubExpression"&&(typeof g=="string"?this.pushString(g):this.pushStackLiteral(g))},emptyHash:function(g){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(g?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var g=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(g.ids)),this.stringParams&&(this.push(this.objectLiteral(g.contexts)),this.push(this.objectLiteral(g.types))),this.push(this.objectLiteral(g.values))},pushString:function(g){this.pushStackLiteral(this.quotedString(g))},pushLiteral:function(g){this.pushStackLiteral(g)},pushProgram:function(g){g!=null?this.pushStackLiteral(this.programExpression(g)):this.pushStackLiteral(null)},registerDecorator:function(g,h){var u=this.nameLookup("decorators",h,"decorator"),_=this.setupHelperArgs(h,g);this.decorators.push(["fn = ",this.decorators.functionCall(u,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(g,h,u){var _=this.popStack(),k=this.setupHelper(g,h),A=[];u&&A.push(k.name),A.push(_),this.options.strict||A.push(this.aliasable("container.hooks.helperMissing"));var I=["(",this.itemsSeparatedBy(A,"||"),")"],P=this.source.functionCall(I,"call",k.callParams);this.push(P)},itemsSeparatedBy:function(g,h){var u=[];u.push(g[0]);for(var _=1;_<g.length;_++)u.push(h,g[_]);return u},invokeKnownHelper:function(g,h){var u=this.setupHelper(g,h);this.push(this.source.functionCall(u.name,"call",u.callParams))},invokeAmbiguous:function(g,h){this.useRegister("helper");var u=this.popStack();this.emptyHash();var _=this.setupHelper(0,g,h),k=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",g,"helper")," || ",u,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,_.paramsInit?["),(",_.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",_.callParams)," : helper))"])},invokePartial:function(g,h,u){var _=[],k=this.setupParams(h,1,_);g&&(h=this.popStack(),delete k.name),u&&(k.indent=JSON.stringify(u)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",g?_.unshift(h):_.unshift(this.nameLookup("partials",h,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),_.push(k),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(g){var h=this.popStack(),u=void 0,_=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(_=this.popStack(),u=this.popStack());var A=this.hash;u&&(A.contexts[g]=u),_&&(A.types[g]=_),k&&(A.ids[g]=k),A.values[g]=h},pushId:function(g,h,u){g==="BlockParam"?this.pushStackLiteral("blockParams["+h[0]+"].path["+h[1]+"]"+(u?" + "+JSON.stringify("."+u):"")):g==="PathExpression"?this.pushString(h):g==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(g,h){for(var u=g.children,_=void 0,k=void 0,A=0,I=u.length;A<I;A++){_=u[A],k=new this.compiler;var P=this.matchExistingProgram(_);if(P==null){this.context.programs.push("");var N=this.context.programs.length;_.index=N,_.name="program"+N,this.context.programs[N]=k.compile(_,h,this.context,!this.precompile),this.context.decorators[N]=k.decorators,this.context.environments[N]=_,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=P.index,_.name="program"+P.index,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams}},matchExistingProgram:function(g){for(var h=0,u=this.context.environments.length;h<u;h++){var _=this.context.environments[h];if(_&&_.equals(g))return _}},programExpression:function(g){var h=this.environment.children[g],u=[h.index,"data",h.blockParams];return(this.useBlockParams||this.useDepths)&&u.push("blockParams"),this.useDepths&&u.push("depths"),"container.program("+u.join(", ")+")"},useRegister:function(g){this.registers[g]||(this.registers[g]=!0,this.registers.list.push(g))},push:function(g){return g instanceof r||(g=this.source.wrap(g)),this.inlineStack.push(g),g},pushStackLiteral:function(g){this.push(new r(g))},pushSource:function(g){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),g&&this.source.push(g)},replaceStack:function(g){var h=["("],u=void 0,_=void 0,k=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var A=this.popStack(!0);if(A instanceof r)h=["(",u=[A.value]],k=!0;else{_=!0;var I=this.incrStack();h=["((",this.push(I)," = ",A,")"],u=this.topStack()}var P=g.call(this,u);k||this.popStack(),_&&this.stackSlot--,this.push(h.concat(P,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var g=this.inlineStack;this.inlineStack=[];for(var h=0,u=g.length;h<u;h++){var _=g[h];if(_ instanceof r)this.compileStack.push(_);else{var k=this.incrStack();this.pushSource([k," = ",_,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(g){var h=this.isInline(),u=(h?this.inlineStack:this.compileStack).pop();if(!g&&u instanceof r)return u.value;if(!h){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return u},topStack:function(){var g=this.isInline()?this.inlineStack:this.compileStack,h=g[g.length-1];return h instanceof r?h.value:h},contextName:function(g){return this.useDepths&&g?"depths["+g+"]":"depth"+g},quotedString:function(g){return this.source.quotedString(g)},objectLiteral:function(g){return this.source.objectLiteral(g)},aliasable:function(g){var h=this.aliases[g];return h?(h.referenceCount++,h):((h=this.aliases[g]=this.source.wrap(g)).aliasable=!0,h.referenceCount=1,h)},setupHelper:function(g,h,u){var _=[];return{params:_,paramsInit:this.setupHelperArgs(h,g,_,u),name:this.nameLookup("helpers",h,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(_)}},setupParams:function(g,h,u){var _={},k=[],A=[],I=[],P=!u,N=void 0;P&&(u=[]),_.name=this.quotedString(g),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var q=this.popStack(),j=this.popStack();(j||q)&&(_.fn=j||"container.noop",_.inverse=q||"container.noop");for(var D=h;D--;)N=this.popStack(),u[D]=N,this.trackIds&&(I[D]=this.popStack()),this.stringParams&&(A[D]=this.popStack(),k[D]=this.popStack());return P&&(_.args=this.source.generateArray(u)),this.trackIds&&(_.ids=this.source.generateArray(I)),this.stringParams&&(_.types=this.source.generateArray(A),_.contexts=this.source.generateArray(k)),this.options.data&&(_.data="data"),this.useBlockParams&&(_.blockParams="blockParams"),_},setupHelperArgs:function(g,h,u,_){var k=this.setupParams(g,h,u);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),_?(this.useRegister("options"),u.push("options"),["options=",k]):u?(u.push(k),""):k}},function(){for(var g="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=e.RESERVED_WORDS={},u=0,_=g.length;u<_;u++)h[g[u]]=!0}(),e.isValidJavaScriptVariableName=function(g){return!e.RESERVED_WORDS[g]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(g)},n.default=e,c.exports=n.default},function(c,n,y){function r(a,o,v){if(C.isArray(a)){for(var f=[],g=0,h=a.length;g<h;g++)f.push(o.wrap(a[g],v));return f}return typeof a=="boolean"||typeof a=="number"?a+"":a}function e(a){this.srcFile=a,this.source=[]}var d=y(13).default;n.__esModule=!0;var C=y(5),l=void 0;l||(l=function(a,o,v,f){this.src="",f&&this.add(f)},l.prototype={add:function(a){C.isArray(a)&&(a=a.join("")),this.src+=a},prepend:function(a){C.isArray(a)&&(a=a.join("")),this.src=a+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),e.prototype={isEmpty:function(){return!this.source.length},prepend:function(a,o){this.source.unshift(this.wrap(a,o))},push:function(a,o){this.source.push(this.wrap(a,o))},merge:function(){var a=this.empty();return this.each(function(o){a.add([" ",o,`
453
+ `])}),a},each:function(a){for(var o=0,v=this.source.length;o<v;o++)a(this.source[o])},empty:function(){var a=this.currentLocation||{start:{}};return new l(a.start.line,a.start.column,this.srcFile)},wrap:function(a){var o=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return a instanceof l?a:(a=r(a,this,o),new l(o.start.line,o.start.column,this.srcFile,a))},functionCall:function(a,o,v){return v=this.generateList(v),this.wrap([a,o?"."+o+"(":"(",v,")"])},quotedString:function(a){return'"'+(a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var o=this,v=[];d(a).forEach(function(g){var h=r(a[g],o);h!=="undefined"&&v.push([o.quotedString(g),":",h])});var f=this.generateList(v);return f.prepend("{"),f.add("}"),f},generateList:function(a){for(var o=this.empty(),v=0,f=a.length;v<f;v++)v&&o.add(","),o.add(r(a[v],this));return o},generateArray:function(a){var o=this.generateList(a);return o.prepend("["),o.add("]"),o}},n.default=e,c.exports=n.default}])},3633:function(b,c,n){b.exports=n(261).default}},s={};function w(b){var c=s[b];if(c!==void 0)return c.exports;var n=s[b]={exports:{}};return p[b].call(n.exports,n,n.exports,w),n.exports}return w.n=function(b){var c=b&&b.__esModule?function(){return b.default}:function(){return b};return w.d(c,{a:c}),c},w.d=function(b,c){for(var n in c)w.o(c,n)&&!w.o(b,n)&&Object.defineProperty(b,n,{enumerable:!0,get:c[n]})},w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.o=function(b,c){return Object.prototype.hasOwnProperty.call(b,c)},w(2987)}()})})(oo);var yl=oo.exports;const Ct=qr(yl),vl=({addSearchUi:t,searchFieldMaxWidthInPixels:i,searchFieldHeaderText:p,searchInputPlaceholderText:s,searchButtonText:w,hasSearchInputAutofocus:b,hasSearchAsYouType:c,minLengthToShowSearchAsYouTypeResults:n,hasSearchInputFieldIcon:y,hasAutocomplete:r,hasConversationalSearch:e,hasConversationalSearchHideToggle:d,loadMoreResults:C,sortByOptions:l,filters:a,hasActiveFilters:o})=>{const[v,f]=wt.useState(!1),g=wt.useRef(null),h=wt.useMemo(()=>a.filter(A=>A.type==="checkbox-group"||A.type==="radio-group"||A.type==="tags"),[a]),u=wt.useMemo(()=>h.length>0,[h]),_=wt.useMemo(()=>a&&a.find(A=>A.type==="tabs"),[]),k=wt.useMemo(()=>a&&a.find(A=>A.type==="select-list"),[]);return wt.useEffect(()=>{t.searchField({containerId:"search-field-container",placeholder:s,button:w,icon:y,autofocus:b,searchAsYouType:c,minLengthToShowResults:n}),e&&t.conversationalSearchResult({containerId:"conversational-search-result-container",mainHeadlineText:"AI-generated answer",answerMaxHeight:150,sourcesHeadlineText:"Based on the following sources:",hasHideToggle:d}),t.searchResults({containerId:"search-results-container"}),r&&t.autocomplete({containerId:"autocomplete-container",sources:[{type:Ct.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),C==="button"?t.loadMore({containerId:"loadmore-container",type:Ct.LOAD_MORE_TYPE.BUTTON}):C==="pagination"?t.pagination({containerId:"pagination-container"}):C==="scroll"&&t.loadMore({containerId:g.current,type:Ct.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:g.current}),l!=null&&l.length&&(l==null?void 0:l.length)>0&&t.sortBy({containerId:"sortby-container",options:l}),a&&a.length>0&&(a.forEach((A,I)=>{A.type==="checkbox-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.CHECKBOX_GROUP,options:A.options}):A.type==="radio-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.RADIO_GROUP,options:A.options}):A.type==="tags"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.TAGS,options:A.options}):A.type==="tabs"?t.filters({containerId:"tab-filters-container",type:Ct.FILTER_TYPE.TABS,options:A.options}):A.type==="select-list"&&(t.filters({containerId:"select-list-filters-container",type:Ct.FILTER_TYPE.SELECT_LIST,options:A.options}),t.filters({containerId:"select-list-filters-container-mobile",type:Ct.FILTER_TYPE.SELECT_LIST,options:A.options}))}),o&&t.activeFilters({containerId:"active-filters-container"})),t.start()},[v,g.current,a,l,o,C,o,r,c,b,y,w,s,p]),_e.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[_e.jsxs("div",{className:"flex items-center gap-4",children:[p&&_e.jsx("h2",{className:"text-xl font-semibold",children:p}),_e.jsx("div",{style:{maxWidth:`${i}px`},id:"search-field-container"})]}),_e.jsx("div",{id:"autocomplete-container"}),_e.jsx("div",{id:"conversational-search-result-container"}),_&&_e.jsx("div",{className:"mt-10 flex justify-center",children:_e.jsx("div",{id:"tab-filters-container"})}),u&&_e.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${v?"bg-gray-50":""}`,children:[_e.jsxs("button",{onClick:()=>f(!v),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[_e.jsxs("div",{className:"flex items-center gap-2",children:[_e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{d:"M20 5.6C20 5.04 20 4.76 19.89 4.546C19.7944 4.358 19.6418 4.20504 19.454 4.109C19.24 4 18.96 4 18.4 4H5.6C5.04 4 4.76 4 4.546 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.546C4 4.76 4 5.04 4 5.6V6.337C4 6.582 4 6.704 4.028 6.819C4.05249 6.92138 4.09299 7.01925 4.148 7.109C4.209 7.209 4.296 7.296 4.468 7.469L9.531 12.531C9.704 12.704 9.791 12.791 9.852 12.891C9.90733 12.9817 9.94733 13.0783 9.972 13.181C10 13.295 10 13.416 10 13.655V18.411C10 19.268 10 19.697 10.18 19.955C10.2581 20.0666 10.3582 20.161 10.4741 20.2326C10.59 20.3041 10.7192 20.3512 10.854 20.371C11.165 20.417 11.549 20.226 12.315 19.842L13.115 19.442C13.437 19.282 13.597 19.202 13.714 19.082C13.8178 18.976 13.8967 18.8483 13.945 18.708C14 18.55 14 18.37 14 18.011V13.663C14 13.418 14 13.296 14.028 13.181C14.0525 13.0786 14.093 12.9807 14.148 12.891C14.208 12.791 14.295 12.705 14.465 12.535L14.469 12.531L19.532 7.469C19.704 7.296 19.79 7.209 19.852 7.109C19.9073 7.01833 19.9473 6.92167 19.972 6.819C20 6.706 20 6.584 20 6.345V5.6Z",stroke:"#8D8D8D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Filter by"]}),_e.jsx("svg",{className:`${v?"transform rotate-180":""}`,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.64604 4.64601C1.69249 4.59945 1.74766 4.5625 1.80841 4.5373C1.86915 4.51209 1.93427 4.49911 2.00004 4.49911C2.06581 4.49911 2.13093 4.51209 2.19167 4.5373C2.25242 4.5625 2.30759 4.59945 2.35404 4.64601L8.00004 10.293L13.646 4.64601C13.6925 4.59952 13.7477 4.56264 13.8085 4.53749C13.8692 4.51233 13.9343 4.49938 14 4.49938C14.0658 4.49938 14.1309 4.51233 14.1916 4.53749C14.2524 4.56264 14.3076 4.59952 14.354 4.64601C14.4005 4.6925 14.4374 4.74769 14.4626 4.80842C14.4877 4.86916 14.5007 4.93426 14.5007 5.00001C14.5007 5.06575 14.4877 5.13085 14.4626 5.19159C14.4374 5.25233 14.4005 5.30752 14.354 5.35401L8.35404 11.354C8.30759 11.4006 8.25242 11.4375 8.19167 11.4627C8.13093 11.4879 8.06581 11.5009 8.00004 11.5009C7.93427 11.5009 7.86915 11.4879 7.80841 11.4627C7.74766 11.4375 7.69248 11.4006 7.64604 11.354L1.64604 5.35401C1.59948 5.30756 1.56253 5.25239 1.53733 5.19164C1.51212 5.1309 1.49915 5.06578 1.49915 5.00001C1.49915 4.93424 1.51212 4.86912 1.53733 4.80837C1.56253 4.74763 1.59948 4.69245 1.64604 4.64601Z",fill:"#3A3A3A"})})]}),v&&_e.jsx("div",{className:"p-4 flex flex-col gap-6",children:h.map((A,I)=>_e.jsxs("div",{children:[A.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:A.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},A.type))})]}),k&&_e.jsx("div",{className:"mt-10 w-full flex justify-end",children:_e.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),_e.jsxs("div",{className:"mt-2 md:mt-8 flex flex-col items-end md:flex-row md:items-center md:justify-between gap-2",children:[o&&_e.jsx("div",{children:_e.jsx("div",{id:"active-filters-container"})}),(k||(l==null?void 0:l.length)&&l.length>0)&&_e.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[k&&_e.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(l==null?void 0:l.length)&&l.length>0&&_e.jsx("div",{id:"sortby-container"})]})]}),_e.jsx("div",{className:"mt-4",children:u?_e.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[_e.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:h.map((A,I)=>_e.jsxs("div",{children:[A.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:A.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},A.type))}),_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:g,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})]}):_e.jsx("div",{className:"flex",children:_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:g,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})})})]})},xl=({publicSiteKey:t,primaryColor:i,customFont:p,searchFieldMaxWidthInPixels:s=600,searchFieldHeaderText:w,searchButtonText:b,searchInputPlaceholderText:c="Keyword...",hasSearchInputAutofocus:n=!0,hasSearchAsYouType:y=!1,minLengthToShowSearchAsYouTypeResults:r=3,hasSearchInputFieldIcon:e=!0,hasAutocomplete:d=!0,hasConversationalSearch:C=!1,hasConversationalSearchHideToggle:l,loadMoreResults:a="pagination",sortByOptions:o=[],filters:v=[],hasActiveFilters:f=!0})=>{const[g,h]=wt.useState(null);return wt.useEffect(()=>{const u=new gl(t),_=new Ct(u,{hasConversationalSearch:!0});h(_)},[]),wt.useEffect(()=>{i&&document.documentElement.style.setProperty("--addsearch-primary-color",i)},[i]),wt.useEffect(()=>{p&&document.documentElement.style.setProperty("--addsearch-font-family",`'${p}', sans-serif`)},[p]),g&&_e.jsx(vl,{addSearchUi:g,searchFieldMaxWidthInPixels:s,searchFieldHeaderText:w,searchButtonText:b,searchInputPlaceholderText:c,hasSearchInputAutofocus:n,hasSearchAsYouType:y,minLengthToShowSearchAsYouTypeResults:r,hasSearchInputFieldIcon:e,hasAutocomplete:d,hasConversationalSearch:C,hasConversationalSearchHideToggle:l,loadMoreResults:a,sortByOptions:o,filters:v,hasActiveFilters:f})};ut.AddSearchUiIntegration=xl,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})});
247
454
  //# sourceMappingURL=index.umd.js.map