react-addsearch-ui 0.2.12 → 0.2.13

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(dt,lt){typeof exports=="object"&&typeof module<"u"?lt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],lt):(dt=typeof globalThis<"u"?globalThis:dt||self,lt(dt["zenloop-components"]={},dt.React))})(this,function(dt,lt){"use strict";var Kl=Object.defineProperty;var Wl=(dt,lt,Vt)=>lt in dt?Kl(dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):dt[lt]=Vt;var Ve=(dt,lt,Vt)=>Wl(dt,typeof lt!="symbol"?lt+"":lt,Vt);function Vt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const f in t)if(f!=="default"){const r=Object.getOwnPropertyDescriptor(t,f);Object.defineProperty(i,f,r.get?r:{enumerable:!0,get:()=>t[f]})}}return i.default=t,Object.freeze(i)}const kt=Vt(lt);var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var er={exports:{}},on={};/**
1
+ (function(dt,lt){typeof exports=="object"&&typeof module<"u"?lt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],lt):(dt=typeof globalThis<"u"?globalThis:dt||self,lt(dt["zenloop-components"]={},dt.React))})(this,function(dt,lt){"use strict";var Kl=Object.defineProperty;var Wl=(dt,lt,qt)=>lt in dt?Kl(dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):dt[lt]=qt;var Ve=(dt,lt,qt)=>Wl(dt,typeof lt!="symbol"?lt+"":lt,qt);function qt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const f in t)if(f!=="default"){const r=Object.getOwnPropertyDescriptor(t,f);Object.defineProperty(i,f,r.get?r:{enumerable:!0,get:()=>t[f]})}}return i.default=t,Object.freeze(i)}const kt=qt(lt);var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var er={exports:{}},Xt={};/**
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 Kr;function po(){if(Kr)return on;Kr=1;var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function c(n,v,o){var e,p={},C=null,u=null;o!==void 0&&(C=""+o),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(u=v.ref);for(e in v)r.call(v,e)&&!b.hasOwnProperty(e)&&(p[e]=v[e]);if(n&&n.defaultProps)for(e in v=n.defaultProps,v)p[e]===void 0&&(p[e]=v[e]);return{$$typeof:i,type:n,key:C,ref:u,props:p,_owner:E.current}}return on.Fragment=f,on.jsx=c,on.jsxs=c,on}var sn={};/**
9
+ */var Kr;function po(){if(Kr)return Xt;Kr=1;var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function c(n,v,o){var e,p={},C=null,u=null;o!==void 0&&(C=""+o),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(u=v.ref);for(e in v)r.call(v,e)&&!b.hasOwnProperty(e)&&(p[e]=v[e]);if(n&&n.defaultProps)for(e in v=n.defaultProps,v)p[e]===void 0&&(p[e]=v[e]);return{$$typeof:i,type:n,key:C,ref:u,props:p,_owner:E.current}}return Xt.Fragment=f,Xt.jsx=c,Xt.jsxs=c,Xt}var en={};/**
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 Wr;function mo(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),a=Symbol.iterator,s="@@iterator";function g(D){if(D===null||typeof D!="object")return null;var ae=a&&D[a]||D[s];return typeof ae=="function"?ae:null}var d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(D){{for(var ae=arguments.length,he=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)he[Ee-1]=arguments[Ee];l("error",D,he)}}function l(D,ae,he){{var Ee=d.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[D],console,$e)}}var h=!1,_=!1,S=!1,I=!1,T=!1,A;A=Symbol.for("react.module.reference");function j(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===b||T||D===E||D===o||D===e||I||D===u||h||_||S||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===p||D.$$typeof===c||D.$$typeof===n||D.$$typeof===v||D.$$typeof===A||D.getModuleId!==void 0))}function U(D,ae,he){var Ee=D.displayName;if(Ee)return Ee;var je=ae.displayName||ae.name||"";return je!==""?he+"("+je+")":he}function L(D){return D.displayName||"Context"}function B(D){if(D==null)return null;if(typeof D.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case r:return"Fragment";case f:return"Portal";case b:return"Profiler";case E:return"StrictMode";case o:return"Suspense";case e:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case n:var ae=D;return L(ae)+".Consumer";case c:var he=D;return L(he._context)+".Provider";case v:return U(D,D.render,"ForwardRef");case p:var Ee=D.displayName||null;return Ee!==null?Ee:B(D.type)||"Memo";case C:{var je=D,$e=je._payload,Ne=je._init;try{return B(Ne($e))}catch{return null}}}return null}var N=Object.assign,z=0,G,oe,ee,Y,W,Z,ce;function ge(){}ge.__reactDisabledLog=!0;function _e(){{if(z===0){G=console.log,oe=console.info,ee=console.warn,Y=console.error,W=console.group,Z=console.groupCollapsed,ce=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}z++}}function Ce(){{if(z--,z===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},D,{value:G}),info:N({},D,{value:oe}),warn:N({},D,{value:ee}),error:N({},D,{value:Y}),group:N({},D,{value:W}),groupCollapsed:N({},D,{value:Z}),groupEnd:N({},D,{value:ce})})}z<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=d.ReactCurrentDispatcher,He;function Ie(D,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+D}}var Ke=!1,Me;{var We=typeof WeakMap=="function"?WeakMap:Map;Me=new We}function V(D,ae){if(!D||Ke)return"";{var he=Me.get(D);if(he!==void 0)return he}var Ee;Ke=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Re.current,Re.current=null,_e();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(at){Ee=at}Reflect.construct(D,[],Ne)}else{try{Ne.call()}catch(at){Ee=at}D.call(Ne.prototype)}}else{try{throw Error()}catch(at){Ee=at}D()}}catch(at){if(at&&Ee&&typeof at.stack=="string"){for(var Fe=at.stack.split(`
19
- `),tt=Ee.stack.split(`
20
- `),Je=Fe.length-1,Ye=tt.length-1;Je>=1&&Ye>=0&&Fe[Je]!==tt[Ye];)Ye--;for(;Je>=1&&Ye>=0;Je--,Ye--)if(Fe[Je]!==tt[Ye]){if(Je!==1||Ye!==1)do if(Je--,Ye--,Ye<0||Fe[Je]!==tt[Ye]){var ft=`
21
- `+Fe[Je].replace(" at new "," at ");return D.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",D.displayName)),typeof D=="function"&&Me.set(D,ft),ft}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Re.current=$e,Ce(),Error.prepareStackTrace=je}var jt=D?D.displayName||D.name:"",xt=jt?Ie(jt):"";return typeof D=="function"&&Me.set(D,xt),xt}function H(D,ae,he){return V(D,!1)}function se(D){var ae=D.prototype;return!!(ae&&ae.isReactComponent)}function de(D,ae,he){if(D==null)return"";if(typeof D=="function")return V(D,se(D));if(typeof D=="string")return Ie(D);switch(D){case o:return Ie("Suspense");case e:return Ie("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case v:return H(D.render);case p:return de(D.type,ae,he);case C:{var Ee=D,je=Ee._payload,$e=Ee._init;try{return de($e(je),ae,he)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Se={},Ae=d.ReactDebugCurrentFrame;function me(D){if(D){var ae=D._owner,he=de(D.type,D._source,ae?ae.type:null);Ae.setExtraStackFrame(he)}else Ae.setExtraStackFrame(null)}function ve(D,ae,he,Ee,je){{var $e=Function.call.bind(we);for(var Ne in D)if($e(D,Ne)){var Fe=void 0;try{if(typeof D[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 D[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}Fe=D[Ne](ae,Ne,Ee,he,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Fe=Je}Fe&&!(Fe instanceof Error)&&(me(je),m("%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 Fe),me(null)),Fe instanceof Error&&!(Fe.message in Se)&&(Se[Fe.message]=!0,me(je),m("Failed %s type: %s",he,Fe.message),me(null))}}}var be=Array.isArray;function Be(D){return be(D)}function X(D){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,he=ae&&D[Symbol.toStringTag]||D.constructor.name||"Object";return he}}function le(D){try{return ie(D),!1}catch{return!0}}function ie(D){return""+D}function fe(D){if(le(D))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",X(D)),ie(D)}var O=d.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0},w,F,$;$={};function J(D){if(we.call(D,"ref")){var ae=Object.getOwnPropertyDescriptor(D,"ref").get;if(ae&&ae.isReactWarning)return!1}return D.ref!==void 0}function te(D){if(we.call(D,"key")){var ae=Object.getOwnPropertyDescriptor(D,"key").get;if(ae&&ae.isReactWarning)return!1}return D.key!==void 0}function Te(D,ae){if(typeof D.ref=="string"&&O.current&&ae&&O.current.stateNode!==ae){var he=B(O.current.type);$[he]||(m('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),D.ref),$[he]=!0)}}function ze(D,ae){{var he=function(){w||(w=!0,m("%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(D,"key",{get:he,configurable:!0})}}function Pe(D,ae){{var he=function(){F||(F=!0,m("%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(D,"ref",{get:he,configurable:!0})}}var Ge=function(D,ae,he,Ee,je,$e,Ne){var Fe={$$typeof:i,type:D,key:ae,ref:he,props:Ne,_owner:$e};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function ye(D,ae,he,Ee,je){{var $e,Ne={},Fe=null,tt=null;he!==void 0&&(fe(he),Fe=""+he),te(ae)&&(fe(ae.key),Fe=""+ae.key),J(ae)&&(tt=ae.ref,Te(ae,je));for($e in ae)we.call(ae,$e)&&!y.hasOwnProperty($e)&&(Ne[$e]=ae[$e]);if(D&&D.defaultProps){var Je=D.defaultProps;for($e in Je)Ne[$e]===void 0&&(Ne[$e]=Je[$e])}if(Fe||tt){var Ye=typeof D=="function"?D.displayName||D.name||"Unknown":D;Fe&&ze(Ne,Ye),tt&&Pe(Ne,Ye)}return Ge(D,Fe,tt,je,Ee,O.current,Ne)}}var Zt=d.ReactCurrentOwner,Lt=d.ReactDebugCurrentFrame;function At(D){if(D){var ae=D._owner,he=de(D.type,D._source,ae?ae.type:null);Lt.setExtraStackFrame(he)}else Lt.setExtraStackFrame(null)}var Tt;Tt=!1;function Xt(D){return typeof D=="object"&&D!==null&&D.$$typeof===i}function Ht(){{if(Zt.current){var D=B(Zt.current.type);if(D)return`
17
+ */var Wr;function mo(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),a=Symbol.iterator,s="@@iterator";function g(D){if(D===null||typeof D!="object")return null;var ae=a&&D[a]||D[s];return typeof ae=="function"?ae:null}var d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(D){{for(var ae=arguments.length,fe=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)fe[Ee-1]=arguments[Ee];l("error",D,fe)}}function l(D,ae,fe){{var Ee=d.ReactDebugCurrentFrame,De=Ee.getStackAddendum();De!==""&&(ae+="%s",fe=fe.concat([De]));var He=fe.map(function(je){return String(je)});He.unshift("Warning: "+ae),Function.prototype.apply.call(console[D],console,He)}}var h=!1,_=!1,S=!1,I=!1,T=!1,A;A=Symbol.for("react.module.reference");function j(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===b||T||D===E||D===o||D===e||I||D===u||h||_||S||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===p||D.$$typeof===c||D.$$typeof===n||D.$$typeof===v||D.$$typeof===A||D.getModuleId!==void 0))}function U(D,ae,fe){var Ee=D.displayName;if(Ee)return Ee;var De=ae.displayName||ae.name||"";return De!==""?fe+"("+De+")":fe}function L(D){return D.displayName||"Context"}function B(D){if(D==null)return null;if(typeof D.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case r:return"Fragment";case f:return"Portal";case b:return"Profiler";case E:return"StrictMode";case o:return"Suspense";case e:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case n:var ae=D;return L(ae)+".Consumer";case c:var fe=D;return L(fe._context)+".Provider";case v:return U(D,D.render,"ForwardRef");case p:var Ee=D.displayName||null;return Ee!==null?Ee:B(D.type)||"Memo";case C:{var De=D,He=De._payload,je=De._init;try{return B(je(He))}catch{return null}}}return null}var N=Object.assign,z=0,G,oe,ee,Y,W,Z,ce;function ye(){}ye.__reactDisabledLog=!0;function _e(){{if(z===0){G=console.log,oe=console.info,ee=console.warn,Y=console.error,W=console.group,Z=console.groupCollapsed,ce=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}z++}}function Ce(){{if(z--,z===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},D,{value:G}),info:N({},D,{value:oe}),warn:N({},D,{value:ee}),error:N({},D,{value:Y}),group:N({},D,{value:W}),groupCollapsed:N({},D,{value:Z}),groupEnd:N({},D,{value:ce})})}z<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=d.ReactCurrentDispatcher,Ue;function Ie(D,ae,fe){{if(Ue===void 0)try{throw Error()}catch(De){var Ee=De.stack.trim().match(/\n( *(at )?)/);Ue=Ee&&Ee[1]||""}return`
18
+ `+Ue+D}}var Ke=!1,Ne;{var We=typeof WeakMap=="function"?WeakMap:Map;Ne=new We}function V(D,ae){if(!D||Ke)return"";{var fe=Ne.get(D);if(fe!==void 0)return fe}var Ee;Ke=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var He;He=Re.current,Re.current=null,_e();try{if(ae){var je=function(){throw Error()};if(Object.defineProperty(je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(je,[])}catch(Ze){Ee=Ze}Reflect.construct(D,[],je)}else{try{je.call()}catch(Ze){Ee=Ze}D.call(je.prototype)}}else{try{throw Error()}catch(Ze){Ee=Ze}D()}}catch(Ze){if(Ze&&Ee&&typeof Ze.stack=="string"){for(var Fe=Ze.stack.split(`
19
+ `),nt=Ee.stack.split(`
20
+ `),Je=Fe.length-1,Ye=nt.length-1;Je>=1&&Ye>=0&&Fe[Je]!==nt[Ye];)Ye--;for(;Je>=1&&Ye>=0;Je--,Ye--)if(Fe[Je]!==nt[Ye]){if(Je!==1||Ye!==1)do if(Je--,Ye--,Ye<0||Fe[Je]!==nt[Ye]){var ft=`
21
+ `+Fe[Je].replace(" at new "," at ");return D.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",D.displayName)),typeof D=="function"&&Ne.set(D,ft),ft}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Re.current=He,Ce(),Error.prepareStackTrace=De}var jt=D?D.displayName||D.name:"",Tt=jt?Ie(jt):"";return typeof D=="function"&&Ne.set(D,Tt),Tt}function H(D,ae,fe){return V(D,!1)}function se(D){var ae=D.prototype;return!!(ae&&ae.isReactComponent)}function de(D,ae,fe){if(D==null)return"";if(typeof D=="function")return V(D,se(D));if(typeof D=="string")return Ie(D);switch(D){case o:return Ie("Suspense");case e:return Ie("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case v:return H(D.render);case p:return de(D.type,ae,fe);case C:{var Ee=D,De=Ee._payload,He=Ee._init;try{return de(He(De),ae,fe)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Se={},Ae=d.ReactDebugCurrentFrame;function me(D){if(D){var ae=D._owner,fe=de(D.type,D._source,ae?ae.type:null);Ae.setExtraStackFrame(fe)}else Ae.setExtraStackFrame(null)}function ve(D,ae,fe,Ee,De){{var He=Function.call.bind(we);for(var je in D)if(He(D,je)){var Fe=void 0;try{if(typeof D[je]!="function"){var nt=Error((Ee||"React class")+": "+fe+" type `"+je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[je]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}Fe=D[je](ae,je,Ee,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Fe=Je}Fe&&!(Fe instanceof Error)&&(me(De),m("%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",fe,je,typeof Fe),me(null)),Fe instanceof Error&&!(Fe.message in Se)&&(Se[Fe.message]=!0,me(De),m("Failed %s type: %s",fe,Fe.message),me(null))}}}var be=Array.isArray;function Me(D){return be(D)}function X(D){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,fe=ae&&D[Symbol.toStringTag]||D.constructor.name||"Object";return fe}}function le(D){try{return ie(D),!1}catch{return!0}}function ie(D){return""+D}function he(D){if(le(D))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",X(D)),ie(D)}var O=d.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0},w,F;function q(D){if(we.call(D,"ref")){var ae=Object.getOwnPropertyDescriptor(D,"ref").get;if(ae&&ae.isReactWarning)return!1}return D.ref!==void 0}function J(D){if(we.call(D,"key")){var ae=Object.getOwnPropertyDescriptor(D,"key").get;if(ae&&ae.isReactWarning)return!1}return D.key!==void 0}function te(D,ae){typeof D.ref=="string"&&O.current}function Te(D,ae){{var fe=function(){w||(w=!0,m("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"key",{get:fe,configurable:!0})}}function ze(D,ae){{var fe=function(){F||(F=!0,m("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:fe,configurable:!0})}}var Pe=function(D,ae,fe,Ee,De,He,je){var Fe={$$typeof:i,type:D,key:ae,ref:fe,props:je,_owner:He};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function Ge(D,ae,fe,Ee,De){{var He,je={},Fe=null,nt=null;fe!==void 0&&(he(fe),Fe=""+fe),J(ae)&&(he(ae.key),Fe=""+ae.key),q(ae)&&(nt=ae.ref,te(ae,De));for(He in ae)we.call(ae,He)&&!y.hasOwnProperty(He)&&(je[He]=ae[He]);if(D&&D.defaultProps){var Je=D.defaultProps;for(He in Je)je[He]===void 0&&(je[He]=Je[He])}if(Fe||nt){var Ye=typeof D=="function"?D.displayName||D.name||"Unknown":D;Fe&&Te(je,Ye),nt&&ze(je,Ye)}return Pe(D,Fe,nt,De,Ee,O.current,je)}}var ge=d.ReactCurrentOwner,mn=d.ReactDebugCurrentFrame;function xt(D){if(D){var ae=D._owner,fe=de(D.type,D._source,ae?ae.type:null);mn.setExtraStackFrame(fe)}else mn.setExtraStackFrame(null)}var Yt;Yt=!1;function At(D){return typeof D=="object"&&D!==null&&D.$$typeof===i}function gn(){{if(ge.current){var D=B(ge.current.type);if(D)return`
22
22
 
23
- Check the render method of \``+D+"`."}return""}}function Ut(D){return""}var bn={};function Kn(D){{var ae=Ht();if(!ae){var he=typeof D=="string"?D:D.displayName||D.name;he&&(ae=`
23
+ Check the render method of \``+D+"`."}return""}}function Qt(D){return""}var Lt={};function Gn(D){{var ae=gn();if(!ae){var fe=typeof D=="string"?D:D.displayName||D.name;fe&&(ae=`
24
24
 
25
- Check the top-level render call using <`+he+">.")}return ae}}function en(D,ae){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var he=Kn(ae);if(bn[he])return;bn[he]=!0;var Ee="";D&&D._owner&&D._owner!==Zt.current&&(Ee=" It was passed a child from "+B(D._owner.type)+"."),At(D),m('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),At(null)}}function tn(D,ae){{if(typeof D!="object")return;if(Be(D))for(var he=0;he<D.length;he++){var Ee=D[he];Xt(Ee)&&en(Ee,ae)}else if(Xt(D))D._store&&(D._store.validated=!0);else if(D){var je=g(D);if(typeof je=="function"&&je!==D.entries)for(var $e=je.call(D),Ne;!(Ne=$e.next()).done;)Xt(Ne.value)&&en(Ne.value,ae)}}}function Dr(D){{var ae=D.type;if(ae==null||typeof ae=="string")return;var he;if(typeof ae=="function")he=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===v||ae.$$typeof===p))he=ae.propTypes;else return;if(he){var Ee=B(ae);ve(he,D.props,"prop",Ee,D)}else if(ae.PropTypes!==void 0&&!Tt){Tt=!0;var je=B(ae);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Hr(D){{for(var ae=Object.keys(D.props),he=0;he<ae.length;he++){var Ee=ae[he];if(Ee!=="children"&&Ee!=="key"){At(D),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),At(null);break}}D.ref!==null&&(At(D),m("Invalid attribute `ref` supplied to `React.Fragment`."),At(null))}}var $t={};function nn(D,ae,he,Ee,je,$e){{var Ne=j(D);if(!Ne){var Fe="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Fe+=" 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=Ut();tt?Fe+=tt:Fe+=Ht();var Je;D===null?Je="null":Be(D)?Je="array":D!==void 0&&D.$$typeof===i?(Je="<"+(B(D.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Fe)}var Ye=ye(D,ae,he,je,$e);if(Ye==null)return Ye;if(Ne){var ft=ae.children;if(ft!==void 0)if(Ee)if(Be(ft)){for(var jt=0;jt<ft.length;jt++)tn(ft[jt],D);Object.freeze&&Object.freeze(ft)}else m("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 tn(ft,D)}if(we.call(ae,"key")){var xt=B(D),at=Object.keys(ae).filter(function(Sn){return Sn!=="key"}),rn=at.length>0?"{key: someKey, "+at.join(": ..., ")+": ...}":"{key: someKey}";if(!$t[xt+rn]){var Yn=at.length>0?"{"+at.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+fe+">.")}return ae}}function yn(D,ae){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var fe=Gn(ae);if(Lt[fe])return;Lt[fe]=!0;var Ee="";D&&D._owner&&D._owner!==ge.current&&(Ee=" It was passed a child from "+B(D._owner.type)+"."),xt(D),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,Ee),xt(null)}}function Zt(D,ae){{if(typeof D!="object")return;if(Me(D))for(var fe=0;fe<D.length;fe++){var Ee=D[fe];At(Ee)&&yn(Ee,ae)}else if(At(D))D._store&&(D._store.validated=!0);else if(D){var De=g(D);if(typeof De=="function"&&De!==D.entries)for(var He=De.call(D),je;!(je=He.next()).done;)At(je.value)&&yn(je.value,ae)}}}function vn(D){{var ae=D.type;if(ae==null||typeof ae=="string")return;var fe;if(typeof ae=="function")fe=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===v||ae.$$typeof===p))fe=ae.propTypes;else return;if(fe){var Ee=B(ae);ve(fe,D.props,"prop",Ee,D)}else if(ae.PropTypes!==void 0&&!Yt){Yt=!0;var De=B(ae);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dr(D){{for(var ae=Object.keys(D.props),fe=0;fe<ae.length;fe++){var Ee=ae[fe];if(Ee!=="children"&&Ee!=="key"){xt(D),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),xt(null);break}}D.ref!==null&&(xt(D),m("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var Kn={};function Ht(D,ae,fe,Ee,De,He){{var je=j(D);if(!je){var Fe="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Fe+=" 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 nt=Qt();nt?Fe+=nt:Fe+=gn();var Je;D===null?Je="null":Me(D)?Je="array":D!==void 0&&D.$$typeof===i?(Je="<"+(B(D.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Fe)}var Ye=Ge(D,ae,fe,De,He);if(Ye==null)return Ye;if(je){var ft=ae.children;if(ft!==void 0)if(Ee)if(Me(ft)){for(var jt=0;jt<ft.length;jt++)Zt(ft[jt],D);Object.freeze&&Object.freeze(ft)}else m("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 Zt(ft,D)}if(we.call(ae,"key")){var Tt=B(D),Ze=Object.keys(ae).filter(function(Yn){return Yn!=="key"}),wn=Ze.length>0?"{key: someKey, "+Ze.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[Tt+wn]){var Jn=Ze.length>0?"{"+Ze.join(": ..., ")+": ...}":"{}";m(`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} />`,rn,xt,Yn,xt),$t[xt+rn]=!0}}return D===r?Hr(Ye):Dr(Ye),Ye}}function Ur(D,ae,he){return nn(D,ae,he,!0)}function Wn(D,ae,he){return nn(D,ae,he,!1)}var wn=Wn,Jn=Ur;sn.Fragment=r,sn.jsx=wn,sn.jsxs=Jn}()),sn}process.env.NODE_ENV==="production"?er.exports=po():er.exports=mo();var Oe=er.exports,tr={};function go(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 Jr={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,wn,Tt,Jn,Tt),Kn[Tt+wn]=!0}}return D===r?Dr(Ye):vn(Ye),Ye}}function xn(D,ae,fe){return Ht(D,ae,fe,!0)}function Hr(D,ae,fe){return Ht(D,ae,fe,!1)}var Wn=Hr,bn=xn;en.Fragment=r,en.jsx=Wn,en.jsxs=bn}()),en}process.env.NODE_ENV==="production"?er.exports=po():er.exports=mo();var Oe=er.exports,tr={};function go(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 Jr={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(t,i){(function(f,r){t.exports=r()})(Ze,function(){function f(X){var le=typeof X;return X!==null&&(le==="object"||le==="function")}function r(X){return typeof X=="function"}var E=void 0;Array.isArray?E=Array.isArray:E=function(X){return Object.prototype.toString.call(X)==="[object Array]"};var b=E,c=0,n=void 0,v=void 0,o=function(le,ie){S[c]=le,S[c+1]=ie,c+=2,c===2&&(v?v(I):A())};function e(X){v=X}function p(X){o=X}var C=typeof window<"u"?window:void 0,u=C||{},a=u.MutationObserver||u.WebKitMutationObserver,s=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",g=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function d(){return function(){return process.nextTick(I)}}function m(){return typeof n<"u"?function(){n(I)}:_()}function l(){var X=0,le=new a(I),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=X=++X%2}}function h(){var X=new MessageChannel;return X.port1.onmessage=I,function(){return X.port2.postMessage(0)}}function _(){var X=setTimeout;return function(){return X(I,1)}}var S=new Array(1e3);function I(){for(var X=0;X<c;X+=2){var le=S[X],ie=S[X+1];le(ie),S[X]=void 0,S[X+1]=void 0}c=0}function T(){try{var X=Function("return this")().require("vertx");return n=X.runOnLoop||X.runOnContext,m()}catch{return _()}}var A=void 0;s?A=d():a?A=l():g?A=h():C===void 0&&typeof go=="function"?A=T():A=_();function j(X,le){var ie=this,fe=new this.constructor(B);fe[L]===void 0&&H(fe);var O=ie._state;if(O){var y=arguments[O-1];o(function(){return Ke(O,fe,y,ie._result)})}else He(ie,fe,X,le);return fe}function U(X){var le=this;if(X&&typeof X=="object"&&X.constructor===le)return X;var ie=new le(B);return ge(ie,X),ie}var L=Math.random().toString(36).substring(2);function B(){}var N=void 0,z=1,G=2;function oe(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function Y(X,le,ie,fe){try{X.call(le,ie,fe)}catch(O){return O}}function W(X,le,ie){o(function(fe){var O=!1,y=Y(ie,le,function(w){O||(O=!0,le!==w?ge(fe,w):Ce(fe,w))},function(w){O||(O=!0,Re(fe,w))},"Settle: "+(fe._label||" unknown promise"));!O&&y&&(O=!0,Re(fe,y))},X)}function Z(X,le){le._state===z?Ce(X,le._result):le._state===G?Re(X,le._result):He(le,void 0,function(ie){return ge(X,ie)},function(ie){return Re(X,ie)})}function ce(X,le,ie){le.constructor===X.constructor&&ie===j&&le.constructor.resolve===U?Z(X,le):ie===void 0?Ce(X,le):r(ie)?W(X,le,ie):Ce(X,le)}function ge(X,le){if(X===le)Re(X,oe());else if(f(le)){var ie=void 0;try{ie=le.then}catch(fe){Re(X,fe);return}ce(X,le,ie)}else Ce(X,le)}function _e(X){X._onerror&&X._onerror(X._result),Ie(X)}function Ce(X,le){X._state===N&&(X._result=le,X._state=z,X._subscribers.length!==0&&o(Ie,X))}function Re(X,le){X._state===N&&(X._state=G,X._result=le,o(_e,X))}function He(X,le,ie,fe){var O=X._subscribers,y=O.length;X._onerror=null,O[y]=le,O[y+z]=ie,O[y+G]=fe,y===0&&X._state&&o(Ie,X)}function Ie(X){var le=X._subscribers,ie=X._state;if(le.length!==0){for(var fe=void 0,O=void 0,y=X._result,w=0;w<le.length;w+=3)fe=le[w],O=le[w+ie],fe?Ke(ie,fe,O,y):O(y);X._subscribers.length=0}}function Ke(X,le,ie,fe){var O=r(ie),y=void 0,w=void 0,F=!0;if(O){try{y=ie(fe)}catch($){F=!1,w=$}if(le===y){Re(le,ee());return}}else y=fe;le._state!==N||(O&&F?ge(le,y):F===!1?Re(le,w):X===z?Ce(le,y):X===G&&Re(le,y))}function Me(X,le){try{le(function(fe){ge(X,fe)},function(fe){Re(X,fe)})}catch(ie){Re(X,ie)}}var We=0;function V(){return We++}function H(X){X[L]=We++,X._state=void 0,X._result=void 0,X._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var de=function(){function X(le,ie){this._instanceConstructor=le,this.promise=new le(B),this.promise[L]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Ce(this.promise,this._result))):Re(this.promise,se())}return X.prototype._enumerate=function(ie){for(var fe=0;this._state===N&&fe<ie.length;fe++)this._eachEntry(ie[fe],fe)},X.prototype._eachEntry=function(ie,fe){var O=this._instanceConstructor,y=O.resolve;if(y===U){var w=void 0,F=void 0,$=!1;try{w=ie.then}catch(te){$=!0,F=te}if(w===j&&ie._state!==N)this._settledAt(ie._state,fe,ie._result);else if(typeof w!="function")this._remaining--,this._result[fe]=ie;else if(O===be){var J=new O(B);$?Re(J,F):ce(J,ie,w),this._willSettleAt(J,fe)}else this._willSettleAt(new O(function(te){return te(ie)}),fe)}else this._willSettleAt(y(ie),fe)},X.prototype._settledAt=function(ie,fe,O){var y=this.promise;y._state===N&&(this._remaining--,ie===G?Re(y,O):this._result[fe]=O),this._remaining===0&&Ce(y,this._result)},X.prototype._willSettleAt=function(ie,fe){var O=this;He(ie,void 0,function(y){return O._settledAt(z,fe,y)},function(y){return O._settledAt(G,fe,y)})},X}();function we(X){return new de(this,X).promise}function Se(X){var le=this;return b(X)?new le(function(ie,fe){for(var O=X.length,y=0;y<O;y++)le.resolve(X[y]).then(ie,fe)}):new le(function(ie,fe){return fe(new TypeError("You must pass an array to race."))})}function Ae(X){var le=this,ie=new le(B);return Re(ie,X),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ve(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var be=function(){function X(le){this[L]=V(),this._result=this._state=void 0,this._subscribers=[],B!==le&&(typeof le!="function"&&me(),this instanceof X?Me(this,le):ve())}return X.prototype.catch=function(ie){return this.then(null,ie)},X.prototype.finally=function(ie){var fe=this,O=fe.constructor;return r(ie)?fe.then(function(y){return O.resolve(ie()).then(function(){return y})},function(y){return O.resolve(ie()).then(function(){throw y})}):fe.then(ie,ie)},X}();be.prototype.then=j,be.all=we,be.race=Se,be.resolve=U,be.reject=Ae,be._setScheduler=e,be._setAsap=p,be._asap=o;function Be(){var X=void 0;if(typeof Ze<"u")X=Ze;else if(typeof self<"u")X=self;else try{X=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=X.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}X.Promise=be}return be.polyfill=Be,be.Promise=be,be})})(Jr);var Yr=Jr.exports;Yr.polyfill();var Xe={};/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */function Qr(t,i){return function(){return t.apply(i,arguments)}}const{toString:yo}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:Cn,toStringTag:Zr}=Symbol,On=(t=>i=>{const f=yo.call(i);return t[f]||(t[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),_t=t=>(t=t.toLowerCase(),i=>On(i)===t),Rn=t=>i=>typeof i===t,{isArray:Gt}=Array,Kt=Rn("undefined");function an(t){return t!==null&&!Kt(t)&&t.constructor!==null&&!Kt(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xr=_t("ArrayBuffer");function vo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Xr(t.buffer),i}const xo=Rn("string"),ht=Rn("function"),ei=Rn("number"),ln=t=>t!==null&&typeof t=="object",bo=t=>t===!0||t===!1,An=t=>{if(On(t)!=="object")return!1;const i=nr(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Zr in t)&&!(Cn in t)},wo=t=>{if(!ln(t)||an(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},So=_t("Date"),Eo=_t("File"),ko=_t("Blob"),_o=_t("FileList"),Co=t=>ln(t)&&ht(t.pipe),Oo=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=On(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},Ro=_t("URLSearchParams"),[Ao,To,Po,Io]=["ReadableStream","Request","Response","Headers"].map(_t),Fo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(t,i,{allOwnKeys:f=!1}={}){if(t===null||typeof t>"u")return;let r,E;if(typeof t!="object"&&(t=[t]),Gt(t))for(r=0,E=t.length;r<E;r++)i.call(null,t[r],r,t);else{if(an(t))return;const b=f?Object.getOwnPropertyNames(t):Object.keys(t),c=b.length;let n;for(r=0;r<c;r++)n=b[r],i.call(null,t[n],n,t)}}function ti(t,i){if(an(t))return null;i=i.toLowerCase();const f=Object.keys(t);let r=f.length,E;for(;r-- >0;)if(E=f[r],i===E.toLowerCase())return E;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ze,ni=t=>!Kt(t)&&t!==Nt;function rr(){const{caseless:t,skipUndefined:i}=ni(this)&&this||{},f={},r=(E,b)=>{if(b==="__proto__"||b==="constructor"||b==="prototype")return;const c=t&&ti(f,b)||b;An(f[c])&&An(E)?f[c]=rr(f[c],E):An(E)?f[c]=rr({},E):Gt(E)?f[c]=E.slice():(!i||!Kt(E))&&(f[c]=E)};for(let E=0,b=arguments.length;E<b;E++)arguments[E]&&cn(arguments[E],r);return f}const Lo=(t,i,f,{allOwnKeys:r}={})=>(cn(i,(E,b)=>{f&&ht(E)?Object.defineProperty(t,b,{value:Qr(E,f),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,b,{value:E,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),jo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),No=(t,i,f,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:i.prototype}),f&&Object.assign(t.prototype,f)},Mo=(t,i,f,r)=>{let E,b,c;const n={};if(i=i||{},t==null)return i;do{for(E=Object.getOwnPropertyNames(t),b=E.length;b-- >0;)c=E[b],(!r||r(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=f!==!1&&nr(t)}while(t&&(!f||f(t,i))&&t!==Object.prototype);return i},Bo=(t,i,f)=>{t=String(t),(f===void 0||f>t.length)&&(f=t.length),f-=i.length;const r=t.indexOf(i,f);return r!==-1&&r===f},Do=t=>{if(!t)return null;if(Gt(t))return t;let i=t.length;if(!ei(i))return null;const f=new Array(i);for(;i-- >0;)f[i]=t[i];return f},Ho=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&nr(Uint8Array)),Uo=(t,i)=>{const r=(t&&t[Cn]).call(t);let E;for(;(E=r.next())&&!E.done;){const b=E.value;i.call(t,b[0],b[1])}},$o=(t,i)=>{let f;const r=[];for(;(f=t.exec(i))!==null;)r.push(f);return r},qo=_t("HTMLFormElement"),zo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,r,E){return r.toUpperCase()+E}),ri=(({hasOwnProperty:t})=>(i,f)=>t.call(i,f))(Object.prototype),Vo=_t("RegExp"),ii=(t,i)=>{const f=Object.getOwnPropertyDescriptors(t),r={};cn(f,(E,b)=>{let c;(c=i(E,b,t))!==!1&&(r[b]=c||E)}),Object.defineProperties(t,r)},Go=t=>{ii(t,(i,f)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const r=t[f];if(ht(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},Ko=(t,i)=>{const f={},r=E=>{E.forEach(b=>{f[b]=!0})};return Gt(t)?r(t):r(String(t).split(i)),f},Wo=()=>{},Jo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Yo(t){return!!(t&&ht(t.append)&&t[Zr]==="FormData"&&t[Cn])}const Qo=t=>{const i=new Array(10),f=(r,E)=>{if(ln(r)){if(i.indexOf(r)>=0)return;if(an(r))return r;if(!("toJSON"in r)){i[E]=r;const b=Gt(r)?[]:{};return cn(r,(c,n)=>{const v=f(c,E+1);!Kt(v)&&(b[n]=v)}),i[E]=void 0,b}}return r};return f(t,0)},Zo=_t("AsyncFunction"),Xo=t=>t&&(ln(t)||ht(t))&&ht(t.then)&&ht(t.catch),oi=((t,i)=>t?setImmediate:i?((f,r)=>(Nt.addEventListener("message",({source:E,data:b})=>{E===Nt&&b===f&&r.length&&r.shift()()},!1),E=>{r.push(E),Nt.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",ht(Nt.postMessage)),es=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||oi;var Q={isArray:Gt,isArrayBuffer:Xr,isBuffer:an,isFormData:Oo,isArrayBufferView:vo,isString:xo,isNumber:ei,isBoolean:bo,isObject:ln,isPlainObject:An,isEmptyObject:wo,isReadableStream:Ao,isRequest:To,isResponse:Po,isHeaders:Io,isUndefined:Kt,isDate:So,isFile:Eo,isBlob:ko,isRegExp:Vo,isFunction:ht,isStream:Co,isURLSearchParams:Ro,isTypedArray:Ho,isFileList:_o,forEach:cn,merge:rr,extend:Lo,trim:Fo,stripBOM:jo,inherits:No,toFlatObject:Mo,kindOf:On,kindOfTest:_t,endsWith:Bo,toArray:Do,forEachEntry:Uo,matchAll:$o,isHTMLForm:qo,hasOwnProperty:ri,hasOwnProp:ri,reduceDescriptors:ii,freezeMethods:Go,toObjectSet:Ko,toCamelCase:zo,noop:Wo,toFiniteNumber:Jo,findKey:ti,global:Nt,isContextDefined:ni,isSpecCompliantForm:Yo,toJSONObject:Qo,isAsyncFn:Zo,isThenable:Xo,setImmediate:oi,asap:es,isIterable:t=>t!=null&&ht(t[Cn])};class ct extends Error{static from(i,f,r,E,b,c){const n=new ct(i.message,f||i.code,r,E,b);return n.cause=i,n.name=i.name,c&&Object.assign(n,c),n}constructor(i,f,r,E,b){super(i),this.name="AxiosError",this.isAxiosError=!0,f&&(this.code=f),r&&(this.config=r),E&&(this.request=E),b&&(this.response=b,this.status=b.status)}toJSON(){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}}}ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ct.ERR_BAD_OPTION="ERR_BAD_OPTION",ct.ECONNABORTED="ECONNABORTED",ct.ETIMEDOUT="ETIMEDOUT",ct.ERR_NETWORK="ERR_NETWORK",ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ct.ERR_DEPRECATED="ERR_DEPRECATED",ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ct.ERR_CANCELED="ERR_CANCELED",ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ct.ERR_INVALID_URL="ERR_INVALID_URL";var Le=ct,ts=null;function ir(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,f){return t?t.concat(i).map(function(E,b){return E=si(E),!f&&b?"["+E+"]":E}).join(f?".":""):i}function ns(t){return Q.isArray(t)&&!t.some(ir)}const rs=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function Tn(t,i,f){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,f=Q.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,g){return!Q.isUndefined(g[s])});const r=f.metaTokens,E=f.visitor||e,b=f.dots,c=f.indexes,v=(f.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(E))throw new TypeError("visitor must be a function");function o(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(Q.isBoolean(a))return a.toString();if(!v&&Q.isBlob(a))throw new Le("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?v&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,s,g){let d=a;if(a&&!g&&typeof a=="object"){if(Q.endsWith(s,"{}"))s=r?s:s.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&ns(a)||(Q.isFileList(a)||Q.endsWith(s,"[]"))&&(d=Q.toArray(a)))return s=si(s),d.forEach(function(l,h){!(Q.isUndefined(l)||l===null)&&i.append(c===!0?ai([s],h,b):c===null?s:s+"[]",o(l))}),!1}return ir(a)?!0:(i.append(ai(g,s,b),o(a)),!1)}const p=[],C=Object.assign(rs,{defaultVisitor:e,convertValue:o,isVisitable:ir});function u(a,s){if(!Q.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+s.join("."));p.push(a),Q.forEach(a,function(d,m){(!(Q.isUndefined(d)||d===null)&&E.call(i,d,Q.isString(m)?m.trim():m,s,C))===!0&&u(d,s?s.concat(m):[m])}),p.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return u(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function or(t,i){this._pairs=[],t&&Tn(t,this,i)}const ci=or.prototype;ci.append=function(i,f){this._pairs.push([i,f])},ci.toString=function(i){const f=i?function(r){return i.call(this,r,li)}:li;return this._pairs.map(function(E){return f(E[0])+"="+f(E[1])},"").join("&")};function is(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ui(t,i,f){if(!i)return t;const r=f&&f.encode||is,E=Q.isFunction(f)?{serialize:f}:f,b=E&&E.serialize;let c;if(b?c=b(i,E):c=Q.isURLSearchParams(i)?i.toString():new or(i,E).toString(r),c){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class os{constructor(){this.handlers=[]}use(i,f,r){return this.handlers.push({fulfilled:i,rejected:f,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&i(r)})}}var hi=os,sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ss=typeof URLSearchParams<"u"?URLSearchParams:or,as=typeof FormData<"u"?FormData:null,ls=typeof Blob<"u"?Blob:null,cs={isBrowser:!0,classes:{URLSearchParams:ss,FormData:as,Blob:ls},protocols:["http","https","file","blob","url","data"]};const ar=typeof window<"u"&&typeof document<"u",lr=typeof navigator=="object"&&navigator||void 0,us=ar&&(!lr||["ReactNative","NativeScript","NS"].indexOf(lr.product)<0),hs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fs=ar&&window.location.href||"http://localhost";var ds=Object.freeze({__proto__:null,hasBrowserEnv:ar,hasStandardBrowserWebWorkerEnv:hs,hasStandardBrowserEnv:us,navigator:lr,origin:fs}),nt={...ds,...cs};function ps(t,i){return Tn(t,new nt.classes.URLSearchParams,{visitor:function(f,r,E,b){return nt.isNode&&Q.isBuffer(f)?(this.append(r,f.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)},...i})}function ms(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function gs(t){const i={},f=Object.keys(t);let r;const E=f.length;let b;for(r=0;r<E;r++)b=f[r],i[b]=t[b];return i}function fi(t){function i(f,r,E,b){let c=f[b++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),v=b>=f.length;return c=!c&&Q.isArray(E)?E.length:c,v?(Q.hasOwnProp(E,c)?E[c]=[E[c],r]:E[c]=r,!n):((!E[c]||!Q.isObject(E[c]))&&(E[c]=[]),i(f,r,E[c],b)&&Q.isArray(E[c])&&(E[c]=gs(E[c])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const f={};return Q.forEachEntry(t,(r,E)=>{i(ms(r),E,f,0)}),f}return null}function ys(t,i,f){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const cr={transitional:sr,adapter:["xhr","http","fetch"],transformRequest:[function(i,f){const r=f.getContentType()||"",E=r.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return E?JSON.stringify(fi(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 f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ps(i,this.formSerializer).toString();if((n=Q.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Tn(n?{"files[]":i}:i,v&&new v,this.formSerializer)}}return b||E?(f.setContentType("application/json",!1),ys(i)):i}],transformResponse:[function(i){const f=this.transitional||cr.transitional,r=f&&f.forcedJSONParsing,E=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(r&&!this.responseType||E)){const c=!(f&&f.silentJSONParsing)&&E;try{return JSON.parse(i,this.parseReviver)}catch(n){if(c)throw n.name==="SyntaxError"?Le.from(n,Le.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:nt.classes.FormData,Blob:nt.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=>{cr.headers[t]={}});var ur=cr;const vs=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 xs=t=>{const i={};let f,r,E;return t&&t.split(`
37
- `).forEach(function(c){E=c.indexOf(":"),f=c.substring(0,E).trim().toLowerCase(),r=c.substring(E+1).trim(),!(!f||i[f]&&vs[f])&&(f==="set-cookie"?i[f]?i[f].push(r):i[f]=[r]:i[f]=i[f]?i[f]+", "+r:r)}),i};const di=Symbol("internals");function un(t){return t&&String(t).trim().toLowerCase()}function Pn(t){return t===!1||t==null?t:Q.isArray(t)?t.map(Pn):String(t)}function bs(t){const i=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=f.exec(t);)i[r[1]]=r[2];return i}const ws=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hr(t,i,f,r,E){if(Q.isFunction(r))return r.call(this,i,f);if(E&&(i=f),!!Q.isString(i)){if(Q.isString(r))return i.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(i)}}function Ss(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,f,r)=>f.toUpperCase()+r)}function Es(t,i){const f=Q.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+f,{value:function(E,b,c){return this[r].call(this,i,E,b,c)},configurable:!0})})}class In{constructor(i){i&&this.set(i)}set(i,f,r){const E=this;function b(n,v,o){const e=un(v);if(!e)throw new Error("header name must be a non-empty string");const p=Q.findKey(E,e);(!p||E[p]===void 0||o===!0||o===void 0&&E[p]!==!1)&&(E[p||v]=Pn(n))}const c=(n,v)=>Q.forEach(n,(o,e)=>b(o,e,v));if(Q.isPlainObject(i)||i instanceof this.constructor)c(i,f);else if(Q.isString(i)&&(i=i.trim())&&!ws(i))c(xs(i),f);else if(Q.isObject(i)&&Q.isIterable(i)){let n={},v,o;for(const e of i){if(!Q.isArray(e))throw TypeError("Object iterator must return a key-value pair");n[o=e[0]]=(v=n[o])?Q.isArray(v)?[...v,e[1]]:[v,e[1]]:e[1]}c(n,f)}else i!=null&&b(f,i,r);return this}get(i,f){if(i=un(i),i){const r=Q.findKey(this,i);if(r){const E=this[r];if(!f)return E;if(f===!0)return bs(E);if(Q.isFunction(f))return f.call(this,E,r);if(Q.isRegExp(f))return f.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,f){if(i=un(i),i){const r=Q.findKey(this,i);return!!(r&&this[r]!==void 0&&(!f||hr(this,this[r],r,f)))}return!1}delete(i,f){const r=this;let E=!1;function b(c){if(c=un(c),c){const n=Q.findKey(r,c);n&&(!f||hr(r,r[n],n,f))&&(delete r[n],E=!0)}}return Q.isArray(i)?i.forEach(b):b(i),E}clear(i){const f=Object.keys(this);let r=f.length,E=!1;for(;r--;){const b=f[r];(!i||hr(this,this[b],b,i,!0))&&(delete this[b],E=!0)}return E}normalize(i){const f=this,r={};return Q.forEach(this,(E,b)=>{const c=Q.findKey(r,b);if(c){f[c]=Pn(E),delete f[b];return}const n=i?Ss(b):String(b).trim();n!==b&&delete f[b],f[n]=Pn(E),r[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const f=Object.create(null);return Q.forEach(this,(r,E)=>{r!=null&&r!==!1&&(f[E]=i&&Q.isArray(r)?r.join(", "):r)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,f])=>i+": "+f).join(`
38
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...f){const r=new this(i);return f.forEach(E=>r.set(E)),r}static accessor(i){const r=(this[di]=this[di]={accessors:{}}).accessors,E=this.prototype;function b(c){const n=un(c);r[n]||(Es(E,c),r[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}In.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(In.prototype,({value:t},i)=>{let f=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(r){this[f]=r}}}),Q.freezeMethods(In);var Ct=In;function fr(t,i){const f=this||ur,r=i||f,E=Ct.from(r.headers);let b=r.data;return Q.forEach(t,function(n){b=n.call(f,b,E.normalize(),i?i.status:void 0)}),E.normalize(),b}function pi(t){return!!(t&&t.__CANCEL__)}class ks extends Le{constructor(i,f,r){super(i??"canceled",Le.ERR_CANCELED,f,r),this.name="CanceledError",this.__CANCEL__=!0}}var hn=ks;function mi(t,i,f){const r=f.config.validateStatus;!f.status||!r||r(f.status)?t(f):i(new Le("Request failed with status code "+f.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function _s(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Cs(t,i){t=t||10;const f=new Array(t),r=new Array(t);let E=0,b=0,c;return i=i!==void 0?i:1e3,function(v){const o=Date.now(),e=r[b];c||(c=o),f[E]=v,r[E]=o;let p=b,C=0;for(;p!==E;)C+=f[p++],p=p%t;if(E=(E+1)%t,E===b&&(b=(b+1)%t),o-c<i)return;const u=e&&o-e;return u?Math.round(C*1e3/u):void 0}}function Os(t,i){let f=0,r=1e3/i,E,b;const c=(o,e=Date.now())=>{f=e,E=null,b&&(clearTimeout(b),b=null),t(...o)};return[(...o)=>{const e=Date.now(),p=e-f;p>=r?c(o,e):(E=o,b||(b=setTimeout(()=>{b=null,c(E)},r-p)))},()=>E&&c(E)]}const Fn=(t,i,f=3)=>{let r=0;const E=Cs(50,250);return Os(b=>{const c=b.loaded,n=b.lengthComputable?b.total:void 0,v=c-r,o=E(v),e=c<=n;r=c;const p={loaded:c,total:n,progress:n?c/n:void 0,bytes:v,rate:o||void 0,estimated:o&&n&&e?(n-c)/o:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},f)},gi=(t,i)=>{const f=t!=null;return[r=>i[0]({lengthComputable:f,total:t,loaded:r}),i[1]]},yi=t=>(...i)=>Q.asap(()=>t(...i));var Rs=nt.hasStandardBrowserEnv?((t,i)=>f=>(f=new URL(f,nt.origin),t.protocol===f.protocol&&t.host===f.host&&(i||t.port===f.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,As=nt.hasStandardBrowserEnv?{write(t,i,f,r,E,b,c){if(typeof document>"u")return;const n=[`${t}=${encodeURIComponent(i)}`];Q.isNumber(f)&&n.push(`expires=${new Date(f).toUTCString()}`),Q.isString(r)&&n.push(`path=${r}`),Q.isString(E)&&n.push(`domain=${E}`),b===!0&&n.push("secure"),Q.isString(c)&&n.push(`SameSite=${c}`),document.cookie=n.join("; ")},read(t){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ts(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ps(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function vi(t,i,f){let r=!Ts(i);return t&&(r||f==!1)?Ps(t,i):i}const xi=t=>t instanceof Ct?{...t}:t;function Mt(t,i){i=i||{};const f={};function r(o,e,p,C){return Q.isPlainObject(o)&&Q.isPlainObject(e)?Q.merge.call({caseless:C},o,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function E(o,e,p,C){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o,p,C)}else return r(o,e,p,C)}function b(o,e){if(!Q.isUndefined(e))return r(void 0,e)}function c(o,e){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o)}else return r(void 0,e)}function n(o,e,p){if(p in i)return r(o,e);if(p in t)return r(void 0,o)}const v={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:(o,e,p)=>E(xi(o),xi(e),p,!0)};return Q.forEach(Object.keys({...t,...i}),function(e){if(e==="__proto__"||e==="constructor"||e==="prototype")return;const p=Q.hasOwnProp(v,e)?v[e]:E,C=p(t[e],i[e],e);Q.isUndefined(C)&&p!==n||(f[e]=C)}),f}var bi=t=>{const i=Mt({},t);let{data:f,withXSRFToken:r,xsrfHeaderName:E,xsrfCookieName:b,headers:c,auth:n}=i;if(i.headers=c=Ct.from(c),i.url=ui(vi(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),Q.isFormData(f)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(Q.isFunction(f.getHeaders)){const v=f.getHeaders(),o=["content-type","content-length"];Object.entries(v).forEach(([e,p])=>{o.includes(e.toLowerCase())&&c.set(e,p)})}}if(nt.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(i)),r||r!==!1&&Rs(i.url))){const v=E&&b&&As.read(b);v&&c.set(E,v)}return i},Is=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(f,r){const E=bi(t);let b=E.data;const c=Ct.from(E.headers).normalize();let{responseType:n,onUploadProgress:v,onDownloadProgress:o}=E,e,p,C,u,a;function s(){u&&u(),a&&a(),E.cancelToken&&E.cancelToken.unsubscribe(e),E.signal&&E.signal.removeEventListener("abort",e)}let g=new XMLHttpRequest;g.open(E.method.toUpperCase(),E.url,!0),g.timeout=E.timeout;function d(){if(!g)return;const l=Ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:l,config:t,request:g};mi(function(I){f(I),s()},function(I){r(I),s()},_),g=null}"onloadend"in g?g.onloadend=d:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(d)},g.onabort=function(){g&&(r(new Le("Request aborted",Le.ECONNABORTED,t,g)),g=null)},g.onerror=function(h){const _=h&&h.message?h.message:"Network Error",S=new Le(_,Le.ERR_NETWORK,t,g);S.event=h||null,r(S),g=null},g.ontimeout=function(){let h=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const _=E.transitional||sr;E.timeoutErrorMessage&&(h=E.timeoutErrorMessage),r(new Le(h,_.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,t,g)),g=null},b===void 0&&c.setContentType(null),"setRequestHeader"in g&&Q.forEach(c.toJSON(),function(h,_){g.setRequestHeader(_,h)}),Q.isUndefined(E.withCredentials)||(g.withCredentials=!!E.withCredentials),n&&n!=="json"&&(g.responseType=E.responseType),o&&([C,a]=Fn(o,!0),g.addEventListener("progress",C)),v&&g.upload&&([p,u]=Fn(v),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",u)),(E.cancelToken||E.signal)&&(e=l=>{g&&(r(!l||l.type?new hn(null,t,g):l),g.abort(),g=null)},E.cancelToken&&E.cancelToken.subscribe(e),E.signal&&(E.signal.aborted?e():E.signal.addEventListener("abort",e)));const m=_s(E.url);if(m&&nt.protocols.indexOf(m)===-1){r(new Le("Unsupported protocol "+m+":",Le.ERR_BAD_REQUEST,t));return}g.send(b||null)})},Fs=(t,i)=>{const{length:f}=t=t?t.filter(Boolean):[];if(i||f){let r=new AbortController,E;const b=function(o){if(!E){E=!0,n();const e=o instanceof Error?o:this.reason;r.abort(e instanceof Le?e:new hn(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,b(new Le(`timeout of ${i}ms exceeded`,Le.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(o=>{o.unsubscribe?o.unsubscribe(b):o.removeEventListener("abort",b)}),t=null)};t.forEach(o=>o.addEventListener("abort",b));const{signal:v}=r;return v.unsubscribe=()=>Q.asap(n),v}};const Ls=function*(t,i){let f=t.byteLength;if(f<i){yield t;return}let r=0,E;for(;r<f;)E=r+i,yield t.slice(r,E),r=E},js=async function*(t,i){for await(const f of Ns(t))yield*Ls(f,i)},Ns=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:f,value:r}=await i.read();if(f)break;yield r}}finally{await i.cancel()}},wi=(t,i,f,r)=>{const E=js(t,i);let b=0,c,n=v=>{c||(c=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:o,value:e}=await E.next();if(o){n(),v.close();return}let p=e.byteLength;if(f){let C=b+=p;f(C)}v.enqueue(new Uint8Array(e))}catch(o){throw n(o),o}},cancel(v){return n(v),E.return()}},{highWaterMark:2})},Si=64*1024,{isFunction:Ln}=Q,Ms=(({Request:t,Response:i})=>({Request:t,Response:i}))(Q.global),{ReadableStream:Ei,TextEncoder:ki}=Q.global,_i=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Bs=t=>{t=Q.merge.call({skipUndefined:!0},Ms,t);const{fetch:i,Request:f,Response:r}=t,E=i?Ln(i):typeof fetch=="function",b=Ln(f),c=Ln(r);if(!E)return!1;const n=E&&Ln(Ei),v=E&&(typeof ki=="function"?(a=>s=>a.encode(s))(new ki):async a=>new Uint8Array(await new f(a).arrayBuffer())),o=b&&n&&_i(()=>{let a=!1;const s=new f(nt.origin,{body:new Ei,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!s}),e=c&&n&&_i(()=>Q.isReadableStream(new r("").body)),p={stream:e&&(a=>a.body)};E&&["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!p[a]&&(p[a]=(s,g)=>{let d=s&&s[a];if(d)return d.call(s);throw new Le(`Response type '${a}' is not supported`,Le.ERR_NOT_SUPPORT,g)})});const C=async a=>{if(a==null)return 0;if(Q.isBlob(a))return a.size;if(Q.isSpecCompliantForm(a))return(await new f(nt.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(a)||Q.isArrayBuffer(a))return a.byteLength;if(Q.isURLSearchParams(a)&&(a=a+""),Q.isString(a))return(await v(a)).byteLength},u=async(a,s)=>{const g=Q.toFiniteNumber(a.getContentLength());return g??C(s)};return async a=>{let{url:s,method:g,data:d,signal:m,cancelToken:l,timeout:h,onDownloadProgress:_,onUploadProgress:S,responseType:I,headers:T,withCredentials:A="same-origin",fetchOptions:j}=bi(a),U=i||fetch;I=I?(I+"").toLowerCase():"text";let L=Fs([m,l&&l.toAbortSignal()],h),B=null;const N=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let z;try{if(S&&o&&g!=="get"&&g!=="head"&&(z=await u(T,d))!==0){let Z=new f(s,{method:"POST",body:d,duplex:"half"}),ce;if(Q.isFormData(d)&&(ce=Z.headers.get("content-type"))&&T.setContentType(ce),Z.body){const[ge,_e]=gi(z,Fn(yi(S)));d=wi(Z.body,Si,ge,_e)}}Q.isString(A)||(A=A?"include":"omit");const G=b&&"credentials"in f.prototype,oe={...j,signal:L,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:d,duplex:"half",credentials:G?A:void 0};B=b&&new f(s,oe);let ee=await(b?U(B,j):U(s,oe));const Y=e&&(I==="stream"||I==="response");if(e&&(_||Y&&N)){const Z={};["status","statusText","headers"].forEach(Ce=>{Z[Ce]=ee[Ce]});const ce=Q.toFiniteNumber(ee.headers.get("content-length")),[ge,_e]=_&&gi(ce,Fn(yi(_),!0))||[];ee=new r(wi(ee.body,Si,ge,()=>{_e&&_e(),N&&N()}),Z)}I=I||"text";let W=await p[Q.findKey(p,I)||"text"](ee,a);return!Y&&N&&N(),await new Promise((Z,ce)=>{mi(Z,ce,{data:W,headers:Ct.from(ee.headers),status:ee.status,statusText:ee.statusText,config:a,request:B})})}catch(G){throw N&&N(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,a,B,G&&G.response),{cause:G.cause||G}):Le.from(G,G&&G.code,a,B,G&&G.response)}}},Ds=new Map,Ci=t=>{let i=t&&t.env||{};const{fetch:f,Request:r,Response:E}=i,b=[r,E,f];let c=b.length,n=c,v,o,e=Ds;for(;n--;)v=b[n],o=e.get(v),o===void 0&&e.set(v,o=n?new Map:Bs(i)),e=o;return o};Ci();const dr={http:ts,xhr:Is,fetch:{get:Ci}};Q.forEach(dr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Oi=t=>`- ${t}`,Hs=t=>Q.isFunction(t)||t===null||t===!1;function Us(t,i){t=Q.isArray(t)?t:[t];const{length:f}=t;let r,E;const b={};for(let c=0;c<f;c++){r=t[c];let n;if(E=r,!Hs(r)&&(E=dr[(n=String(r)).toLowerCase()],E===void 0))throw new Le(`Unknown adapter '${n}'`);if(E&&(Q.isFunction(E)||(E=E.get(i))))break;b[n||"#"+c]=E}if(!E){const c=Object.entries(b).map(([v,o])=>`adapter ${v} `+(o===!1?"is not supported by the environment":"is not available in the build"));let n=f?c.length>1?`since :
36
+ */(function(t,i){(function(f,r){t.exports=r()})(Xe,function(){function f(X){var le=typeof X;return X!==null&&(le==="object"||le==="function")}function r(X){return typeof X=="function"}var E=void 0;Array.isArray?E=Array.isArray:E=function(X){return Object.prototype.toString.call(X)==="[object Array]"};var b=E,c=0,n=void 0,v=void 0,o=function(le,ie){S[c]=le,S[c+1]=ie,c+=2,c===2&&(v?v(I):A())};function e(X){v=X}function p(X){o=X}var C=typeof window<"u"?window:void 0,u=C||{},a=u.MutationObserver||u.WebKitMutationObserver,s=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",g=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function d(){return function(){return process.nextTick(I)}}function m(){return typeof n<"u"?function(){n(I)}:_()}function l(){var X=0,le=new a(I),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=X=++X%2}}function h(){var X=new MessageChannel;return X.port1.onmessage=I,function(){return X.port2.postMessage(0)}}function _(){var X=setTimeout;return function(){return X(I,1)}}var S=new Array(1e3);function I(){for(var X=0;X<c;X+=2){var le=S[X],ie=S[X+1];le(ie),S[X]=void 0,S[X+1]=void 0}c=0}function T(){try{var X=Function("return this")().require("vertx");return n=X.runOnLoop||X.runOnContext,m()}catch{return _()}}var A=void 0;s?A=d():a?A=l():g?A=h():C===void 0&&typeof go=="function"?A=T():A=_();function j(X,le){var ie=this,he=new this.constructor(B);he[L]===void 0&&H(he);var O=ie._state;if(O){var y=arguments[O-1];o(function(){return Ke(O,he,y,ie._result)})}else Ue(ie,he,X,le);return he}function U(X){var le=this;if(X&&typeof X=="object"&&X.constructor===le)return X;var ie=new le(B);return ye(ie,X),ie}var L=Math.random().toString(36).substring(2);function B(){}var N=void 0,z=1,G=2;function oe(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function Y(X,le,ie,he){try{X.call(le,ie,he)}catch(O){return O}}function W(X,le,ie){o(function(he){var O=!1,y=Y(ie,le,function(w){O||(O=!0,le!==w?ye(he,w):Ce(he,w))},function(w){O||(O=!0,Re(he,w))},"Settle: "+(he._label||" unknown promise"));!O&&y&&(O=!0,Re(he,y))},X)}function Z(X,le){le._state===z?Ce(X,le._result):le._state===G?Re(X,le._result):Ue(le,void 0,function(ie){return ye(X,ie)},function(ie){return Re(X,ie)})}function ce(X,le,ie){le.constructor===X.constructor&&ie===j&&le.constructor.resolve===U?Z(X,le):ie===void 0?Ce(X,le):r(ie)?W(X,le,ie):Ce(X,le)}function ye(X,le){if(X===le)Re(X,oe());else if(f(le)){var ie=void 0;try{ie=le.then}catch(he){Re(X,he);return}ce(X,le,ie)}else Ce(X,le)}function _e(X){X._onerror&&X._onerror(X._result),Ie(X)}function Ce(X,le){X._state===N&&(X._result=le,X._state=z,X._subscribers.length!==0&&o(Ie,X))}function Re(X,le){X._state===N&&(X._state=G,X._result=le,o(_e,X))}function Ue(X,le,ie,he){var O=X._subscribers,y=O.length;X._onerror=null,O[y]=le,O[y+z]=ie,O[y+G]=he,y===0&&X._state&&o(Ie,X)}function Ie(X){var le=X._subscribers,ie=X._state;if(le.length!==0){for(var he=void 0,O=void 0,y=X._result,w=0;w<le.length;w+=3)he=le[w],O=le[w+ie],he?Ke(ie,he,O,y):O(y);X._subscribers.length=0}}function Ke(X,le,ie,he){var O=r(ie),y=void 0,w=void 0,F=!0;if(O){try{y=ie(he)}catch(q){F=!1,w=q}if(le===y){Re(le,ee());return}}else y=he;le._state!==N||(O&&F?ye(le,y):F===!1?Re(le,w):X===z?Ce(le,y):X===G&&Re(le,y))}function Ne(X,le){try{le(function(he){ye(X,he)},function(he){Re(X,he)})}catch(ie){Re(X,ie)}}var We=0;function V(){return We++}function H(X){X[L]=We++,X._state=void 0,X._result=void 0,X._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var de=function(){function X(le,ie){this._instanceConstructor=le,this.promise=new le(B),this.promise[L]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Ce(this.promise,this._result))):Re(this.promise,se())}return X.prototype._enumerate=function(ie){for(var he=0;this._state===N&&he<ie.length;he++)this._eachEntry(ie[he],he)},X.prototype._eachEntry=function(ie,he){var O=this._instanceConstructor,y=O.resolve;if(y===U){var w=void 0,F=void 0,q=!1;try{w=ie.then}catch(te){q=!0,F=te}if(w===j&&ie._state!==N)this._settledAt(ie._state,he,ie._result);else if(typeof w!="function")this._remaining--,this._result[he]=ie;else if(O===be){var J=new O(B);q?Re(J,F):ce(J,ie,w),this._willSettleAt(J,he)}else this._willSettleAt(new O(function(te){return te(ie)}),he)}else this._willSettleAt(y(ie),he)},X.prototype._settledAt=function(ie,he,O){var y=this.promise;y._state===N&&(this._remaining--,ie===G?Re(y,O):this._result[he]=O),this._remaining===0&&Ce(y,this._result)},X.prototype._willSettleAt=function(ie,he){var O=this;Ue(ie,void 0,function(y){return O._settledAt(z,he,y)},function(y){return O._settledAt(G,he,y)})},X}();function we(X){return new de(this,X).promise}function Se(X){var le=this;return b(X)?new le(function(ie,he){for(var O=X.length,y=0;y<O;y++)le.resolve(X[y]).then(ie,he)}):new le(function(ie,he){return he(new TypeError("You must pass an array to race."))})}function Ae(X){var le=this,ie=new le(B);return Re(ie,X),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ve(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var be=function(){function X(le){this[L]=V(),this._result=this._state=void 0,this._subscribers=[],B!==le&&(typeof le!="function"&&me(),this instanceof X?Ne(this,le):ve())}return X.prototype.catch=function(ie){return this.then(null,ie)},X.prototype.finally=function(ie){var he=this,O=he.constructor;return r(ie)?he.then(function(y){return O.resolve(ie()).then(function(){return y})},function(y){return O.resolve(ie()).then(function(){throw y})}):he.then(ie,ie)},X}();be.prototype.then=j,be.all=we,be.race=Se,be.resolve=U,be.reject=Ae,be._setScheduler=e,be._setAsap=p,be._asap=o;function Me(){var X=void 0;if(typeof Xe<"u")X=Xe;else if(typeof self<"u")X=self;else try{X=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=X.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}X.Promise=be}return be.polyfill=Me,be.Promise=be,be})})(Jr);var Yr=Jr.exports;Yr.polyfill();var et={};/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */function Qr(t,i){return function(){return t.apply(i,arguments)}}const{toString:yo}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:_n,toStringTag:Zr}=Symbol,Cn=(t=>i=>{const f=yo.call(i);return t[f]||(t[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),_t=t=>(t=t.toLowerCase(),i=>Cn(i)===t),On=t=>i=>typeof i===t,{isArray:zt}=Array,Vt=On("undefined");function tn(t){return t!==null&&!Vt(t)&&t.constructor!==null&&!Vt(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xr=_t("ArrayBuffer");function vo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Xr(t.buffer),i}const xo=On("string"),ht=On("function"),ei=On("number"),nn=t=>t!==null&&typeof t=="object",bo=t=>t===!0||t===!1,Rn=t=>{if(Cn(t)!=="object")return!1;const i=nr(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Zr in t)&&!(_n in t)},wo=t=>{if(!nn(t)||tn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},So=_t("Date"),Eo=_t("File"),ko=_t("Blob"),_o=_t("FileList"),Co=t=>nn(t)&&ht(t.pipe),Oo=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=Cn(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},Ro=_t("URLSearchParams"),[Ao,To,Po,Io]=["ReadableStream","Request","Response","Headers"].map(_t),Fo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rn(t,i,{allOwnKeys:f=!1}={}){if(t===null||typeof t>"u")return;let r,E;if(typeof t!="object"&&(t=[t]),zt(t))for(r=0,E=t.length;r<E;r++)i.call(null,t[r],r,t);else{if(tn(t))return;const b=f?Object.getOwnPropertyNames(t):Object.keys(t),c=b.length;let n;for(r=0;r<c;r++)n=b[r],i.call(null,t[n],n,t)}}function ti(t,i){if(tn(t))return null;i=i.toLowerCase();const f=Object.keys(t);let r=f.length,E;for(;r-- >0;)if(E=f[r],i===E.toLowerCase())return E;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Xe,ni=t=>!Vt(t)&&t!==Nt;function rr(){const{caseless:t,skipUndefined:i}=ni(this)&&this||{},f={},r=(E,b)=>{if(b==="__proto__"||b==="constructor"||b==="prototype")return;const c=t&&ti(f,b)||b;Rn(f[c])&&Rn(E)?f[c]=rr(f[c],E):Rn(E)?f[c]=rr({},E):zt(E)?f[c]=E.slice():(!i||!Vt(E))&&(f[c]=E)};for(let E=0,b=arguments.length;E<b;E++)arguments[E]&&rn(arguments[E],r);return f}const Lo=(t,i,f,{allOwnKeys:r}={})=>(rn(i,(E,b)=>{f&&ht(E)?Object.defineProperty(t,b,{value:Qr(E,f),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,b,{value:E,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),jo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),No=(t,i,f,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:i.prototype}),f&&Object.assign(t.prototype,f)},Mo=(t,i,f,r)=>{let E,b,c;const n={};if(i=i||{},t==null)return i;do{for(E=Object.getOwnPropertyNames(t),b=E.length;b-- >0;)c=E[b],(!r||r(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=f!==!1&&nr(t)}while(t&&(!f||f(t,i))&&t!==Object.prototype);return i},Bo=(t,i,f)=>{t=String(t),(f===void 0||f>t.length)&&(f=t.length),f-=i.length;const r=t.indexOf(i,f);return r!==-1&&r===f},Do=t=>{if(!t)return null;if(zt(t))return t;let i=t.length;if(!ei(i))return null;const f=new Array(i);for(;i-- >0;)f[i]=t[i];return f},Ho=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&nr(Uint8Array)),Uo=(t,i)=>{const r=(t&&t[_n]).call(t);let E;for(;(E=r.next())&&!E.done;){const b=E.value;i.call(t,b[0],b[1])}},$o=(t,i)=>{let f;const r=[];for(;(f=t.exec(i))!==null;)r.push(f);return r},qo=_t("HTMLFormElement"),zo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,r,E){return r.toUpperCase()+E}),ri=(({hasOwnProperty:t})=>(i,f)=>t.call(i,f))(Object.prototype),Vo=_t("RegExp"),ii=(t,i)=>{const f=Object.getOwnPropertyDescriptors(t),r={};rn(f,(E,b)=>{let c;(c=i(E,b,t))!==!1&&(r[b]=c||E)}),Object.defineProperties(t,r)},Go=t=>{ii(t,(i,f)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const r=t[f];if(ht(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},Ko=(t,i)=>{const f={},r=E=>{E.forEach(b=>{f[b]=!0})};return zt(t)?r(t):r(String(t).split(i)),f},Wo=()=>{},Jo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Yo(t){return!!(t&&ht(t.append)&&t[Zr]==="FormData"&&t[_n])}const Qo=t=>{const i=new Array(10),f=(r,E)=>{if(nn(r)){if(i.indexOf(r)>=0)return;if(tn(r))return r;if(!("toJSON"in r)){i[E]=r;const b=zt(r)?[]:{};return rn(r,(c,n)=>{const v=f(c,E+1);!Vt(v)&&(b[n]=v)}),i[E]=void 0,b}}return r};return f(t,0)},Zo=_t("AsyncFunction"),Xo=t=>t&&(nn(t)||ht(t))&&ht(t.then)&&ht(t.catch),oi=((t,i)=>t?setImmediate:i?((f,r)=>(Nt.addEventListener("message",({source:E,data:b})=>{E===Nt&&b===f&&r.length&&r.shift()()},!1),E=>{r.push(E),Nt.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",ht(Nt.postMessage)),es=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||oi;var Q={isArray:zt,isArrayBuffer:Xr,isBuffer:tn,isFormData:Oo,isArrayBufferView:vo,isString:xo,isNumber:ei,isBoolean:bo,isObject:nn,isPlainObject:Rn,isEmptyObject:wo,isReadableStream:Ao,isRequest:To,isResponse:Po,isHeaders:Io,isUndefined:Vt,isDate:So,isFile:Eo,isBlob:ko,isRegExp:Vo,isFunction:ht,isStream:Co,isURLSearchParams:Ro,isTypedArray:Ho,isFileList:_o,forEach:rn,merge:rr,extend:Lo,trim:Fo,stripBOM:jo,inherits:No,toFlatObject:Mo,kindOf:Cn,kindOfTest:_t,endsWith:Bo,toArray:Do,forEachEntry:Uo,matchAll:$o,isHTMLForm:qo,hasOwnProperty:ri,hasOwnProp:ri,reduceDescriptors:ii,freezeMethods:Go,toObjectSet:Ko,toCamelCase:zo,noop:Wo,toFiniteNumber:Jo,findKey:ti,global:Nt,isContextDefined:ni,isSpecCompliantForm:Yo,toJSONObject:Qo,isAsyncFn:Zo,isThenable:Xo,setImmediate:oi,asap:es,isIterable:t=>t!=null&&ht(t[_n])};class ct extends Error{static from(i,f,r,E,b,c){const n=new ct(i.message,f||i.code,r,E,b);return n.cause=i,n.name=i.name,c&&Object.assign(n,c),n}constructor(i,f,r,E,b){super(i),this.name="AxiosError",this.isAxiosError=!0,f&&(this.code=f),r&&(this.config=r),E&&(this.request=E),b&&(this.response=b,this.status=b.status)}toJSON(){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}}}ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ct.ERR_BAD_OPTION="ERR_BAD_OPTION",ct.ECONNABORTED="ECONNABORTED",ct.ETIMEDOUT="ETIMEDOUT",ct.ERR_NETWORK="ERR_NETWORK",ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ct.ERR_DEPRECATED="ERR_DEPRECATED",ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ct.ERR_CANCELED="ERR_CANCELED",ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ct.ERR_INVALID_URL="ERR_INVALID_URL";var Le=ct,ts=null;function ir(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,f){return t?t.concat(i).map(function(E,b){return E=si(E),!f&&b?"["+E+"]":E}).join(f?".":""):i}function ns(t){return Q.isArray(t)&&!t.some(ir)}const rs=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function An(t,i,f){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,f=Q.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,g){return!Q.isUndefined(g[s])});const r=f.metaTokens,E=f.visitor||e,b=f.dots,c=f.indexes,v=(f.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(E))throw new TypeError("visitor must be a function");function o(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(Q.isBoolean(a))return a.toString();if(!v&&Q.isBlob(a))throw new Le("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?v&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,s,g){let d=a;if(a&&!g&&typeof a=="object"){if(Q.endsWith(s,"{}"))s=r?s:s.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&ns(a)||(Q.isFileList(a)||Q.endsWith(s,"[]"))&&(d=Q.toArray(a)))return s=si(s),d.forEach(function(l,h){!(Q.isUndefined(l)||l===null)&&i.append(c===!0?ai([s],h,b):c===null?s:s+"[]",o(l))}),!1}return ir(a)?!0:(i.append(ai(g,s,b),o(a)),!1)}const p=[],C=Object.assign(rs,{defaultVisitor:e,convertValue:o,isVisitable:ir});function u(a,s){if(!Q.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+s.join("."));p.push(a),Q.forEach(a,function(d,m){(!(Q.isUndefined(d)||d===null)&&E.call(i,d,Q.isString(m)?m.trim():m,s,C))===!0&&u(d,s?s.concat(m):[m])}),p.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return u(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function or(t,i){this._pairs=[],t&&An(t,this,i)}const ci=or.prototype;ci.append=function(i,f){this._pairs.push([i,f])},ci.toString=function(i){const f=i?function(r){return i.call(this,r,li)}:li;return this._pairs.map(function(E){return f(E[0])+"="+f(E[1])},"").join("&")};function is(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ui(t,i,f){if(!i)return t;const r=f&&f.encode||is,E=Q.isFunction(f)?{serialize:f}:f,b=E&&E.serialize;let c;if(b?c=b(i,E):c=Q.isURLSearchParams(i)?i.toString():new or(i,E).toString(r),c){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class os{constructor(){this.handlers=[]}use(i,f,r){return this.handlers.push({fulfilled:i,rejected:f,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&i(r)})}}var hi=os,sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ss=typeof URLSearchParams<"u"?URLSearchParams:or,as=typeof FormData<"u"?FormData:null,ls=typeof Blob<"u"?Blob:null,cs={isBrowser:!0,classes:{URLSearchParams:ss,FormData:as,Blob:ls},protocols:["http","https","file","blob","url","data"]};const ar=typeof window<"u"&&typeof document<"u",lr=typeof navigator=="object"&&navigator||void 0,us=ar&&(!lr||["ReactNative","NativeScript","NS"].indexOf(lr.product)<0),hs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fs=ar&&window.location.href||"http://localhost";var ds=Object.freeze({__proto__:null,hasBrowserEnv:ar,hasStandardBrowserWebWorkerEnv:hs,hasStandardBrowserEnv:us,navigator:lr,origin:fs}),rt={...ds,...cs};function ps(t,i){return An(t,new rt.classes.URLSearchParams,{visitor:function(f,r,E,b){return rt.isNode&&Q.isBuffer(f)?(this.append(r,f.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)},...i})}function ms(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function gs(t){const i={},f=Object.keys(t);let r;const E=f.length;let b;for(r=0;r<E;r++)b=f[r],i[b]=t[b];return i}function fi(t){function i(f,r,E,b){let c=f[b++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),v=b>=f.length;return c=!c&&Q.isArray(E)?E.length:c,v?(Q.hasOwnProp(E,c)?E[c]=[E[c],r]:E[c]=r,!n):((!E[c]||!Q.isObject(E[c]))&&(E[c]=[]),i(f,r,E[c],b)&&Q.isArray(E[c])&&(E[c]=gs(E[c])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const f={};return Q.forEachEntry(t,(r,E)=>{i(ms(r),E,f,0)}),f}return null}function ys(t,i,f){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(f||JSON.stringify)(t)}const cr={transitional:sr,adapter:["xhr","http","fetch"],transformRequest:[function(i,f){const r=f.getContentType()||"",E=r.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return E?JSON.stringify(fi(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 f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ps(i,this.formSerializer).toString();if((n=Q.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return An(n?{"files[]":i}:i,v&&new v,this.formSerializer)}}return b||E?(f.setContentType("application/json",!1),ys(i)):i}],transformResponse:[function(i){const f=this.transitional||cr.transitional,r=f&&f.forcedJSONParsing,E=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(r&&!this.responseType||E)){const c=!(f&&f.silentJSONParsing)&&E;try{return JSON.parse(i,this.parseReviver)}catch(n){if(c)throw n.name==="SyntaxError"?Le.from(n,Le.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:rt.classes.FormData,Blob:rt.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=>{cr.headers[t]={}});var ur=cr;const vs=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 xs=t=>{const i={};let f,r,E;return t&&t.split(`
37
+ `).forEach(function(c){E=c.indexOf(":"),f=c.substring(0,E).trim().toLowerCase(),r=c.substring(E+1).trim(),!(!f||i[f]&&vs[f])&&(f==="set-cookie"?i[f]?i[f].push(r):i[f]=[r]:i[f]=i[f]?i[f]+", "+r:r)}),i};const di=Symbol("internals");function on(t){return t&&String(t).trim().toLowerCase()}function Tn(t){return t===!1||t==null?t:Q.isArray(t)?t.map(Tn):String(t)}function bs(t){const i=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=f.exec(t);)i[r[1]]=r[2];return i}const ws=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hr(t,i,f,r,E){if(Q.isFunction(r))return r.call(this,i,f);if(E&&(i=f),!!Q.isString(i)){if(Q.isString(r))return i.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(i)}}function Ss(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,f,r)=>f.toUpperCase()+r)}function Es(t,i){const f=Q.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+f,{value:function(E,b,c){return this[r].call(this,i,E,b,c)},configurable:!0})})}class Pn{constructor(i){i&&this.set(i)}set(i,f,r){const E=this;function b(n,v,o){const e=on(v);if(!e)throw new Error("header name must be a non-empty string");const p=Q.findKey(E,e);(!p||E[p]===void 0||o===!0||o===void 0&&E[p]!==!1)&&(E[p||v]=Tn(n))}const c=(n,v)=>Q.forEach(n,(o,e)=>b(o,e,v));if(Q.isPlainObject(i)||i instanceof this.constructor)c(i,f);else if(Q.isString(i)&&(i=i.trim())&&!ws(i))c(xs(i),f);else if(Q.isObject(i)&&Q.isIterable(i)){let n={},v,o;for(const e of i){if(!Q.isArray(e))throw TypeError("Object iterator must return a key-value pair");n[o=e[0]]=(v=n[o])?Q.isArray(v)?[...v,e[1]]:[v,e[1]]:e[1]}c(n,f)}else i!=null&&b(f,i,r);return this}get(i,f){if(i=on(i),i){const r=Q.findKey(this,i);if(r){const E=this[r];if(!f)return E;if(f===!0)return bs(E);if(Q.isFunction(f))return f.call(this,E,r);if(Q.isRegExp(f))return f.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,f){if(i=on(i),i){const r=Q.findKey(this,i);return!!(r&&this[r]!==void 0&&(!f||hr(this,this[r],r,f)))}return!1}delete(i,f){const r=this;let E=!1;function b(c){if(c=on(c),c){const n=Q.findKey(r,c);n&&(!f||hr(r,r[n],n,f))&&(delete r[n],E=!0)}}return Q.isArray(i)?i.forEach(b):b(i),E}clear(i){const f=Object.keys(this);let r=f.length,E=!1;for(;r--;){const b=f[r];(!i||hr(this,this[b],b,i,!0))&&(delete this[b],E=!0)}return E}normalize(i){const f=this,r={};return Q.forEach(this,(E,b)=>{const c=Q.findKey(r,b);if(c){f[c]=Tn(E),delete f[b];return}const n=i?Ss(b):String(b).trim();n!==b&&delete f[b],f[n]=Tn(E),r[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const f=Object.create(null);return Q.forEach(this,(r,E)=>{r!=null&&r!==!1&&(f[E]=i&&Q.isArray(r)?r.join(", "):r)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,f])=>i+": "+f).join(`
38
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...f){const r=new this(i);return f.forEach(E=>r.set(E)),r}static accessor(i){const r=(this[di]=this[di]={accessors:{}}).accessors,E=this.prototype;function b(c){const n=on(c);r[n]||(Es(E,c),r[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}Pn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Pn.prototype,({value:t},i)=>{let f=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(r){this[f]=r}}}),Q.freezeMethods(Pn);var Ct=Pn;function fr(t,i){const f=this||ur,r=i||f,E=Ct.from(r.headers);let b=r.data;return Q.forEach(t,function(n){b=n.call(f,b,E.normalize(),i?i.status:void 0)}),E.normalize(),b}function pi(t){return!!(t&&t.__CANCEL__)}class ks extends Le{constructor(i,f,r){super(i??"canceled",Le.ERR_CANCELED,f,r),this.name="CanceledError",this.__CANCEL__=!0}}var sn=ks;function mi(t,i,f){const r=f.config.validateStatus;!f.status||!r||r(f.status)?t(f):i(new Le("Request failed with status code "+f.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function _s(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Cs(t,i){t=t||10;const f=new Array(t),r=new Array(t);let E=0,b=0,c;return i=i!==void 0?i:1e3,function(v){const o=Date.now(),e=r[b];c||(c=o),f[E]=v,r[E]=o;let p=b,C=0;for(;p!==E;)C+=f[p++],p=p%t;if(E=(E+1)%t,E===b&&(b=(b+1)%t),o-c<i)return;const u=e&&o-e;return u?Math.round(C*1e3/u):void 0}}function Os(t,i){let f=0,r=1e3/i,E,b;const c=(o,e=Date.now())=>{f=e,E=null,b&&(clearTimeout(b),b=null),t(...o)};return[(...o)=>{const e=Date.now(),p=e-f;p>=r?c(o,e):(E=o,b||(b=setTimeout(()=>{b=null,c(E)},r-p)))},()=>E&&c(E)]}const In=(t,i,f=3)=>{let r=0;const E=Cs(50,250);return Os(b=>{const c=b.loaded,n=b.lengthComputable?b.total:void 0,v=c-r,o=E(v),e=c<=n;r=c;const p={loaded:c,total:n,progress:n?c/n:void 0,bytes:v,rate:o||void 0,estimated:o&&n&&e?(n-c)/o:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},f)},gi=(t,i)=>{const f=t!=null;return[r=>i[0]({lengthComputable:f,total:t,loaded:r}),i[1]]},yi=t=>(...i)=>Q.asap(()=>t(...i));var Rs=rt.hasStandardBrowserEnv?((t,i)=>f=>(f=new URL(f,rt.origin),t.protocol===f.protocol&&t.host===f.host&&(i||t.port===f.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,As=rt.hasStandardBrowserEnv?{write(t,i,f,r,E,b,c){if(typeof document>"u")return;const n=[`${t}=${encodeURIComponent(i)}`];Q.isNumber(f)&&n.push(`expires=${new Date(f).toUTCString()}`),Q.isString(r)&&n.push(`path=${r}`),Q.isString(E)&&n.push(`domain=${E}`),b===!0&&n.push("secure"),Q.isString(c)&&n.push(`SameSite=${c}`),document.cookie=n.join("; ")},read(t){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ts(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ps(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function vi(t,i,f){let r=!Ts(i);return t&&(r||f==!1)?Ps(t,i):i}const xi=t=>t instanceof Ct?{...t}:t;function Mt(t,i){i=i||{};const f={};function r(o,e,p,C){return Q.isPlainObject(o)&&Q.isPlainObject(e)?Q.merge.call({caseless:C},o,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function E(o,e,p,C){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o,p,C)}else return r(o,e,p,C)}function b(o,e){if(!Q.isUndefined(e))return r(void 0,e)}function c(o,e){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o)}else return r(void 0,e)}function n(o,e,p){if(p in i)return r(o,e);if(p in t)return r(void 0,o)}const v={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:(o,e,p)=>E(xi(o),xi(e),p,!0)};return Q.forEach(Object.keys({...t,...i}),function(e){if(e==="__proto__"||e==="constructor"||e==="prototype")return;const p=Q.hasOwnProp(v,e)?v[e]:E,C=p(t[e],i[e],e);Q.isUndefined(C)&&p!==n||(f[e]=C)}),f}var bi=t=>{const i=Mt({},t);let{data:f,withXSRFToken:r,xsrfHeaderName:E,xsrfCookieName:b,headers:c,auth:n}=i;if(i.headers=c=Ct.from(c),i.url=ui(vi(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),Q.isFormData(f)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(Q.isFunction(f.getHeaders)){const v=f.getHeaders(),o=["content-type","content-length"];Object.entries(v).forEach(([e,p])=>{o.includes(e.toLowerCase())&&c.set(e,p)})}}if(rt.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(i)),r||r!==!1&&Rs(i.url))){const v=E&&b&&As.read(b);v&&c.set(E,v)}return i},Is=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(f,r){const E=bi(t);let b=E.data;const c=Ct.from(E.headers).normalize();let{responseType:n,onUploadProgress:v,onDownloadProgress:o}=E,e,p,C,u,a;function s(){u&&u(),a&&a(),E.cancelToken&&E.cancelToken.unsubscribe(e),E.signal&&E.signal.removeEventListener("abort",e)}let g=new XMLHttpRequest;g.open(E.method.toUpperCase(),E.url,!0),g.timeout=E.timeout;function d(){if(!g)return;const l=Ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:l,config:t,request:g};mi(function(I){f(I),s()},function(I){r(I),s()},_),g=null}"onloadend"in g?g.onloadend=d:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(d)},g.onabort=function(){g&&(r(new Le("Request aborted",Le.ECONNABORTED,t,g)),g=null)},g.onerror=function(h){const _=h&&h.message?h.message:"Network Error",S=new Le(_,Le.ERR_NETWORK,t,g);S.event=h||null,r(S),g=null},g.ontimeout=function(){let h=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const _=E.transitional||sr;E.timeoutErrorMessage&&(h=E.timeoutErrorMessage),r(new Le(h,_.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,t,g)),g=null},b===void 0&&c.setContentType(null),"setRequestHeader"in g&&Q.forEach(c.toJSON(),function(h,_){g.setRequestHeader(_,h)}),Q.isUndefined(E.withCredentials)||(g.withCredentials=!!E.withCredentials),n&&n!=="json"&&(g.responseType=E.responseType),o&&([C,a]=In(o,!0),g.addEventListener("progress",C)),v&&g.upload&&([p,u]=In(v),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",u)),(E.cancelToken||E.signal)&&(e=l=>{g&&(r(!l||l.type?new sn(null,t,g):l),g.abort(),g=null)},E.cancelToken&&E.cancelToken.subscribe(e),E.signal&&(E.signal.aborted?e():E.signal.addEventListener("abort",e)));const m=_s(E.url);if(m&&rt.protocols.indexOf(m)===-1){r(new Le("Unsupported protocol "+m+":",Le.ERR_BAD_REQUEST,t));return}g.send(b||null)})},Fs=(t,i)=>{const{length:f}=t=t?t.filter(Boolean):[];if(i||f){let r=new AbortController,E;const b=function(o){if(!E){E=!0,n();const e=o instanceof Error?o:this.reason;r.abort(e instanceof Le?e:new sn(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,b(new Le(`timeout of ${i}ms exceeded`,Le.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(o=>{o.unsubscribe?o.unsubscribe(b):o.removeEventListener("abort",b)}),t=null)};t.forEach(o=>o.addEventListener("abort",b));const{signal:v}=r;return v.unsubscribe=()=>Q.asap(n),v}};const Ls=function*(t,i){let f=t.byteLength;if(f<i){yield t;return}let r=0,E;for(;r<f;)E=r+i,yield t.slice(r,E),r=E},js=async function*(t,i){for await(const f of Ns(t))yield*Ls(f,i)},Ns=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:f,value:r}=await i.read();if(f)break;yield r}}finally{await i.cancel()}},wi=(t,i,f,r)=>{const E=js(t,i);let b=0,c,n=v=>{c||(c=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:o,value:e}=await E.next();if(o){n(),v.close();return}let p=e.byteLength;if(f){let C=b+=p;f(C)}v.enqueue(new Uint8Array(e))}catch(o){throw n(o),o}},cancel(v){return n(v),E.return()}},{highWaterMark:2})},Si=64*1024,{isFunction:Fn}=Q,Ms=(({Request:t,Response:i})=>({Request:t,Response:i}))(Q.global),{ReadableStream:Ei,TextEncoder:ki}=Q.global,_i=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Bs=t=>{t=Q.merge.call({skipUndefined:!0},Ms,t);const{fetch:i,Request:f,Response:r}=t,E=i?Fn(i):typeof fetch=="function",b=Fn(f),c=Fn(r);if(!E)return!1;const n=E&&Fn(Ei),v=E&&(typeof ki=="function"?(a=>s=>a.encode(s))(new ki):async a=>new Uint8Array(await new f(a).arrayBuffer())),o=b&&n&&_i(()=>{let a=!1;const s=new f(rt.origin,{body:new Ei,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!s}),e=c&&n&&_i(()=>Q.isReadableStream(new r("").body)),p={stream:e&&(a=>a.body)};E&&["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!p[a]&&(p[a]=(s,g)=>{let d=s&&s[a];if(d)return d.call(s);throw new Le(`Response type '${a}' is not supported`,Le.ERR_NOT_SUPPORT,g)})});const C=async a=>{if(a==null)return 0;if(Q.isBlob(a))return a.size;if(Q.isSpecCompliantForm(a))return(await new f(rt.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(a)||Q.isArrayBuffer(a))return a.byteLength;if(Q.isURLSearchParams(a)&&(a=a+""),Q.isString(a))return(await v(a)).byteLength},u=async(a,s)=>{const g=Q.toFiniteNumber(a.getContentLength());return g??C(s)};return async a=>{let{url:s,method:g,data:d,signal:m,cancelToken:l,timeout:h,onDownloadProgress:_,onUploadProgress:S,responseType:I,headers:T,withCredentials:A="same-origin",fetchOptions:j}=bi(a),U=i||fetch;I=I?(I+"").toLowerCase():"text";let L=Fs([m,l&&l.toAbortSignal()],h),B=null;const N=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let z;try{if(S&&o&&g!=="get"&&g!=="head"&&(z=await u(T,d))!==0){let Z=new f(s,{method:"POST",body:d,duplex:"half"}),ce;if(Q.isFormData(d)&&(ce=Z.headers.get("content-type"))&&T.setContentType(ce),Z.body){const[ye,_e]=gi(z,In(yi(S)));d=wi(Z.body,Si,ye,_e)}}Q.isString(A)||(A=A?"include":"omit");const G=b&&"credentials"in f.prototype,oe={...j,signal:L,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:d,duplex:"half",credentials:G?A:void 0};B=b&&new f(s,oe);let ee=await(b?U(B,j):U(s,oe));const Y=e&&(I==="stream"||I==="response");if(e&&(_||Y&&N)){const Z={};["status","statusText","headers"].forEach(Ce=>{Z[Ce]=ee[Ce]});const ce=Q.toFiniteNumber(ee.headers.get("content-length")),[ye,_e]=_&&gi(ce,In(yi(_),!0))||[];ee=new r(wi(ee.body,Si,ye,()=>{_e&&_e(),N&&N()}),Z)}I=I||"text";let W=await p[Q.findKey(p,I)||"text"](ee,a);return!Y&&N&&N(),await new Promise((Z,ce)=>{mi(Z,ce,{data:W,headers:Ct.from(ee.headers),status:ee.status,statusText:ee.statusText,config:a,request:B})})}catch(G){throw N&&N(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,a,B,G&&G.response),{cause:G.cause||G}):Le.from(G,G&&G.code,a,B,G&&G.response)}}},Ds=new Map,Ci=t=>{let i=t&&t.env||{};const{fetch:f,Request:r,Response:E}=i,b=[r,E,f];let c=b.length,n=c,v,o,e=Ds;for(;n--;)v=b[n],o=e.get(v),o===void 0&&e.set(v,o=n?new Map:Bs(i)),e=o;return o};Ci();const dr={http:ts,xhr:Is,fetch:{get:Ci}};Q.forEach(dr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Oi=t=>`- ${t}`,Hs=t=>Q.isFunction(t)||t===null||t===!1;function Us(t,i){t=Q.isArray(t)?t:[t];const{length:f}=t;let r,E;const b={};for(let c=0;c<f;c++){r=t[c];let n;if(E=r,!Hs(r)&&(E=dr[(n=String(r)).toLowerCase()],E===void 0))throw new Le(`Unknown adapter '${n}'`);if(E&&(Q.isFunction(E)||(E=E.get(i))))break;b[n||"#"+c]=E}if(!E){const c=Object.entries(b).map(([v,o])=>`adapter ${v} `+(o===!1?"is not supported by the environment":"is not available in the build"));let n=f?c.length>1?`since :
39
39
  `+c.map(Oi).join(`
40
- `):" "+Oi(c[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return E}var Ri={getAdapter:Us,adapters:dr};function pr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new hn(null,t)}function Ai(t){return pr(t),t.headers=Ct.from(t.headers),t.data=fr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ri.getAdapter(t.adapter||ur.adapter,t)(t).then(function(r){return pr(t),r.data=fr.call(t,t.transformResponse,r),r.headers=Ct.from(r.headers),r},function(r){return pi(r)||(pr(t),r&&r.response&&(r.response.data=fr.call(t,t.transformResponse,r.response),r.response.headers=Ct.from(r.response.headers))),Promise.reject(r)})}const Ti="1.13.5",jn={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{jn[t]=function(r){return typeof r===t||"a"+(i<1?"n ":" ")+t}});const Pi={};jn.transitional=function(i,f,r){function E(b,c){return"[Axios v"+Ti+"] Transitional option '"+b+"'"+c+(r?". "+r:"")}return(b,c,n)=>{if(i===!1)throw new Le(E(c," has been removed"+(f?" in "+f:"")),Le.ERR_DEPRECATED);return f&&!Pi[c]&&(Pi[c]=!0,console.warn(E(c," has been deprecated since v"+f+" and will be removed in the near future"))),i?i(b,c,n):!0}},jn.spelling=function(i){return(f,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function $s(t,i,f){if(typeof t!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let E=r.length;for(;E-- >0;){const b=r[E],c=i[b];if(c){const n=t[b],v=n===void 0||c(n,b,t);if(v!==!0)throw new Le("option "+b+" must be "+v,Le.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new Le("Unknown option "+b,Le.ERR_BAD_OPTION)}}var Nn={assertOptions:$s,validators:jn};const pt=Nn.validators;class Mn{constructor(i){this.defaults=i||{},this.interceptors={request:new hi,response:new hi}}async request(i,f){try{return await this._request(i,f)}catch(r){if(r instanceof Error){let E={};Error.captureStackTrace?Error.captureStackTrace(E):E=new Error;const b=E.stack?E.stack.replace(/^.+\n/,""):"";try{r.stack?b&&!String(r.stack).endsWith(b.replace(/^.+\n.+\n/,""))&&(r.stack+=`
41
- `+b):r.stack=b}catch{}}throw r}}_request(i,f){typeof i=="string"?(f=f||{},f.url=i):f=i||{},f=Mt(this.defaults,f);const{transitional:r,paramsSerializer:E,headers:b}=f;r!==void 0&&Nn.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean),legacyInterceptorReqResOrdering:pt.transitional(pt.boolean)},!1),E!=null&&(Q.isFunction(E)?f.paramsSerializer={serialize:E}:Nn.assertOptions(E,{encode:pt.function,serialize:pt.function},!0)),f.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?f.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:f.allowAbsoluteUrls=!0),Nn.assertOptions(f,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),f.method=(f.method||this.defaults.method||"get").toLowerCase();let c=b&&Q.merge(b.common,b[f.method]);b&&Q.forEach(["delete","get","head","post","put","patch","common"],a=>{delete b[a]}),f.headers=Ct.concat(c,b);const n=[];let v=!0;this.interceptors.request.forEach(function(s){if(typeof s.runWhen=="function"&&s.runWhen(f)===!1)return;v=v&&s.synchronous;const g=f.transitional||sr;g&&g.legacyInterceptorReqResOrdering?n.unshift(s.fulfilled,s.rejected):n.push(s.fulfilled,s.rejected)});const o=[];this.interceptors.response.forEach(function(s){o.push(s.fulfilled,s.rejected)});let e,p=0,C;if(!v){const a=[Ai.bind(this),void 0];for(a.unshift(...n),a.push(...o),C=a.length,e=Promise.resolve(f);p<C;)e=e.then(a[p++],a[p++]);return e}C=n.length;let u=f;for(;p<C;){const a=n[p++],s=n[p++];try{u=a(u)}catch(g){s.call(this,g);break}}try{e=Ai.call(this,u)}catch(a){return Promise.reject(a)}for(p=0,C=o.length;p<C;)e=e.then(o[p++],o[p++]);return e}getUri(i){i=Mt(this.defaults,i);const f=vi(i.baseURL,i.url,i.allowAbsoluteUrls);return ui(f,i.params,i.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(i){Mn.prototype[i]=function(f,r){return this.request(Mt(r||{},{method:i,url:f,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(i){function f(r){return function(b,c,n){return this.request(Mt(n||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:b,data:c}))}}Mn.prototype[i]=f(),Mn.prototype[i+"Form"]=f(!0)});var Bn=Mn;class mr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let f;this.promise=new Promise(function(b){f=b});const r=this;this.promise.then(E=>{if(!r._listeners)return;let b=r._listeners.length;for(;b-- >0;)r._listeners[b](E);r._listeners=null}),this.promise.then=E=>{let b;const c=new Promise(n=>{r.subscribe(n),b=n}).then(E);return c.cancel=function(){r.unsubscribe(b)},c},i(function(b,c,n){r.reason||(r.reason=new hn(b,c,n),f(r.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 f=this._listeners.indexOf(i);f!==-1&&this._listeners.splice(f,1)}toAbortSignal(){const i=new AbortController,f=r=>{i.abort(r)};return this.subscribe(f),i.signal.unsubscribe=()=>this.unsubscribe(f),i.signal}static source(){let i;return{token:new mr(function(E){i=E}),cancel:i}}}var qs=mr;function zs(t){return function(f){return t.apply(null,f)}}function Vs(t){return Q.isObject(t)&&t.isAxiosError===!0}const gr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([t,i])=>{gr[i]=t});var Gs=gr;function Ii(t){const i=new Bn(t),f=Qr(Bn.prototype.request,i);return Q.extend(f,Bn.prototype,i,{allOwnKeys:!0}),Q.extend(f,i,null,{allOwnKeys:!0}),f.create=function(E){return Ii(Mt(t,E))},f}const Qe=Ii(ur);Qe.Axios=Bn,Qe.CanceledError=hn,Qe.CancelToken=qs,Qe.isCancel=pi,Qe.VERSION=Ti,Qe.toFormData=Tn,Qe.AxiosError=Le,Qe.Cancel=Qe.CanceledError,Qe.all=function(i){return Promise.all(i)},Qe.spread=zs,Qe.isAxiosError=Vs,Qe.mergeConfig=Mt,Qe.AxiosHeaders=Ct,Qe.formToJSON=t=>fi(Q.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=Ri.getAdapter,Qe.HttpStatusCode=Gs,Qe.default=Qe;var Fi=Qe,Ks=Ze&&Ze.__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.aiAnswersInteractionsInstance=Xe.statsInstance=Xe.apiInstance=void 0;const yr=Ks(Fi),Li=yr.default.create();Xe.apiInstance=Li;const ji=yr.default.create();Xe.statsInstance=ji;const Ws=yr.default.create();Xe.aiAnswersInteractionsInstance=Ws;const Js=400;Xe.RESPONSE_BAD_REQUEST=Js;const Ys=500;Xe.RESPONSE_SERVER_ERROR=Ys;const Qs=(t,i)=>{(i==="searchApi"?Li:ji).interceptors.request.use(r=>{const E=t({url:r.url,headers:r.headers});return r=Object.assign(Object.assign({},r),E),r},r=>Promise.reject(new Error(JSON.stringify(r))))};Xe.setRequestInterceptor=Qs;var ut={},Ni={},Dn={};Dn.byteLength=ea,Dn.toByteArray=na,Dn.fromByteArray=oa;for(var Ot=[],mt=[],Zs=typeof Uint8Array<"u"?Uint8Array:Array,vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wt=0,Xs=vr.length;Wt<Xs;++Wt)Ot[Wt]=vr[Wt],mt[vr.charCodeAt(Wt)]=Wt;mt[45]=62,mt[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 f=t.indexOf("=");f===-1&&(f=i);var r=f===i?0:4-f%4;return[f,r]}function ea(t){var i=Mi(t),f=i[0],r=i[1];return(f+r)*3/4-r}function ta(t,i,f){return(i+f)*3/4-f}function na(t){var i,f=Mi(t),r=f[0],E=f[1],b=new Zs(ta(t,r,E)),c=0,n=E>0?r-4:r,v;for(v=0;v<n;v+=4)i=mt[t.charCodeAt(v)]<<18|mt[t.charCodeAt(v+1)]<<12|mt[t.charCodeAt(v+2)]<<6|mt[t.charCodeAt(v+3)],b[c++]=i>>16&255,b[c++]=i>>8&255,b[c++]=i&255;return E===2&&(i=mt[t.charCodeAt(v)]<<2|mt[t.charCodeAt(v+1)]>>4,b[c++]=i&255),E===1&&(i=mt[t.charCodeAt(v)]<<10|mt[t.charCodeAt(v+1)]<<4|mt[t.charCodeAt(v+2)]>>2,b[c++]=i>>8&255,b[c++]=i&255),b}function ra(t){return Ot[t>>18&63]+Ot[t>>12&63]+Ot[t>>6&63]+Ot[t&63]}function ia(t,i,f){for(var r,E=[],b=i;b<f;b+=3)r=(t[b]<<16&16711680)+(t[b+1]<<8&65280)+(t[b+2]&255),E.push(ra(r));return E.join("")}function oa(t){for(var i,f=t.length,r=f%3,E=[],b=16383,c=0,n=f-r;c<n;c+=b)E.push(ia(t,c,c+b>n?n:c+b));return r===1?(i=t[f-1],E.push(Ot[i>>2]+Ot[i<<4&63]+"==")):r===2&&(i=(t[f-2]<<8)+t[f-1],E.push(Ot[i>>10]+Ot[i>>4&63]+Ot[i<<2&63]+"=")),E.join("")}var xr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */xr.read=function(t,i,f,r,E){var b,c,n=E*8-r-1,v=(1<<n)-1,o=v>>1,e=-7,p=f?E-1:0,C=f?-1:1,u=t[i+p];for(p+=C,b=u&(1<<-e)-1,u>>=-e,e+=n;e>0;b=b*256+t[i+p],p+=C,e-=8);for(c=b&(1<<-e)-1,b>>=-e,e+=r;e>0;c=c*256+t[i+p],p+=C,e-=8);if(b===0)b=1-o;else{if(b===v)return c?NaN:(u?-1:1)*(1/0);c=c+Math.pow(2,r),b=b-o}return(u?-1:1)*c*Math.pow(2,b-r)},xr.write=function(t,i,f,r,E,b){var c,n,v,o=b*8-E-1,e=(1<<o)-1,p=e>>1,C=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:b-1,a=r?1:-1,s=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*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+p>=1?i+=C/v:i+=C*Math.pow(2,1-p),i*v>=2&&(c++,v/=2),c+p>=e?(n=0,c=e):c+p>=1?(n=(i*v-1)*Math.pow(2,E),c=c+p):(n=i*Math.pow(2,p-1)*Math.pow(2,E),c=0));E>=8;t[f+u]=n&255,u+=a,n/=256,E-=8);for(c=c<<E|n,o+=E;o>0;t[f+u]=c&255,u+=a,c/=256,o-=8);t[f+u-a]|=s*128};/*!
40
+ `):" "+Oi(c[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return E}var Ri={getAdapter:Us,adapters:dr};function pr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new sn(null,t)}function Ai(t){return pr(t),t.headers=Ct.from(t.headers),t.data=fr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ri.getAdapter(t.adapter||ur.adapter,t)(t).then(function(r){return pr(t),r.data=fr.call(t,t.transformResponse,r),r.headers=Ct.from(r.headers),r},function(r){return pi(r)||(pr(t),r&&r.response&&(r.response.data=fr.call(t,t.transformResponse,r.response),r.response.headers=Ct.from(r.response.headers))),Promise.reject(r)})}const Ti="1.13.5",Ln={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ln[t]=function(r){return typeof r===t||"a"+(i<1?"n ":" ")+t}});const Pi={};Ln.transitional=function(i,f,r){function E(b,c){return"[Axios v"+Ti+"] Transitional option '"+b+"'"+c+(r?". "+r:"")}return(b,c,n)=>{if(i===!1)throw new Le(E(c," has been removed"+(f?" in "+f:"")),Le.ERR_DEPRECATED);return f&&!Pi[c]&&(Pi[c]=!0,console.warn(E(c," has been deprecated since v"+f+" and will be removed in the near future"))),i?i(b,c,n):!0}},Ln.spelling=function(i){return(f,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function $s(t,i,f){if(typeof t!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let E=r.length;for(;E-- >0;){const b=r[E],c=i[b];if(c){const n=t[b],v=n===void 0||c(n,b,t);if(v!==!0)throw new Le("option "+b+" must be "+v,Le.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new Le("Unknown option "+b,Le.ERR_BAD_OPTION)}}var jn={assertOptions:$s,validators:Ln};const pt=jn.validators;class Nn{constructor(i){this.defaults=i||{},this.interceptors={request:new hi,response:new hi}}async request(i,f){try{return await this._request(i,f)}catch(r){if(r instanceof Error){let E={};Error.captureStackTrace?Error.captureStackTrace(E):E=new Error;const b=E.stack?E.stack.replace(/^.+\n/,""):"";try{r.stack?b&&!String(r.stack).endsWith(b.replace(/^.+\n.+\n/,""))&&(r.stack+=`
41
+ `+b):r.stack=b}catch{}}throw r}}_request(i,f){typeof i=="string"?(f=f||{},f.url=i):f=i||{},f=Mt(this.defaults,f);const{transitional:r,paramsSerializer:E,headers:b}=f;r!==void 0&&jn.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean),legacyInterceptorReqResOrdering:pt.transitional(pt.boolean)},!1),E!=null&&(Q.isFunction(E)?f.paramsSerializer={serialize:E}:jn.assertOptions(E,{encode:pt.function,serialize:pt.function},!0)),f.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?f.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:f.allowAbsoluteUrls=!0),jn.assertOptions(f,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),f.method=(f.method||this.defaults.method||"get").toLowerCase();let c=b&&Q.merge(b.common,b[f.method]);b&&Q.forEach(["delete","get","head","post","put","patch","common"],a=>{delete b[a]}),f.headers=Ct.concat(c,b);const n=[];let v=!0;this.interceptors.request.forEach(function(s){if(typeof s.runWhen=="function"&&s.runWhen(f)===!1)return;v=v&&s.synchronous;const g=f.transitional||sr;g&&g.legacyInterceptorReqResOrdering?n.unshift(s.fulfilled,s.rejected):n.push(s.fulfilled,s.rejected)});const o=[];this.interceptors.response.forEach(function(s){o.push(s.fulfilled,s.rejected)});let e,p=0,C;if(!v){const a=[Ai.bind(this),void 0];for(a.unshift(...n),a.push(...o),C=a.length,e=Promise.resolve(f);p<C;)e=e.then(a[p++],a[p++]);return e}C=n.length;let u=f;for(;p<C;){const a=n[p++],s=n[p++];try{u=a(u)}catch(g){s.call(this,g);break}}try{e=Ai.call(this,u)}catch(a){return Promise.reject(a)}for(p=0,C=o.length;p<C;)e=e.then(o[p++],o[p++]);return e}getUri(i){i=Mt(this.defaults,i);const f=vi(i.baseURL,i.url,i.allowAbsoluteUrls);return ui(f,i.params,i.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(i){Nn.prototype[i]=function(f,r){return this.request(Mt(r||{},{method:i,url:f,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(i){function f(r){return function(b,c,n){return this.request(Mt(n||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:b,data:c}))}}Nn.prototype[i]=f(),Nn.prototype[i+"Form"]=f(!0)});var Mn=Nn;class mr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let f;this.promise=new Promise(function(b){f=b});const r=this;this.promise.then(E=>{if(!r._listeners)return;let b=r._listeners.length;for(;b-- >0;)r._listeners[b](E);r._listeners=null}),this.promise.then=E=>{let b;const c=new Promise(n=>{r.subscribe(n),b=n}).then(E);return c.cancel=function(){r.unsubscribe(b)},c},i(function(b,c,n){r.reason||(r.reason=new sn(b,c,n),f(r.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 f=this._listeners.indexOf(i);f!==-1&&this._listeners.splice(f,1)}toAbortSignal(){const i=new AbortController,f=r=>{i.abort(r)};return this.subscribe(f),i.signal.unsubscribe=()=>this.unsubscribe(f),i.signal}static source(){let i;return{token:new mr(function(E){i=E}),cancel:i}}}var qs=mr;function zs(t){return function(f){return t.apply(null,f)}}function Vs(t){return Q.isObject(t)&&t.isAxiosError===!0}const gr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([t,i])=>{gr[i]=t});var Gs=gr;function Ii(t){const i=new Mn(t),f=Qr(Mn.prototype.request,i);return Q.extend(f,Mn.prototype,i,{allOwnKeys:!0}),Q.extend(f,i,null,{allOwnKeys:!0}),f.create=function(E){return Ii(Mt(t,E))},f}const Qe=Ii(ur);Qe.Axios=Mn,Qe.CanceledError=sn,Qe.CancelToken=qs,Qe.isCancel=pi,Qe.VERSION=Ti,Qe.toFormData=An,Qe.AxiosError=Le,Qe.Cancel=Qe.CanceledError,Qe.all=function(i){return Promise.all(i)},Qe.spread=zs,Qe.isAxiosError=Vs,Qe.mergeConfig=Mt,Qe.AxiosHeaders=Ct,Qe.formToJSON=t=>fi(Q.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=Ri.getAdapter,Qe.HttpStatusCode=Gs,Qe.default=Qe;var Fi=Qe,Ks=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(et,"__esModule",{value:!0}),et.RESPONSE_SERVER_ERROR=et.RESPONSE_BAD_REQUEST=et.setRequestInterceptor=et.aiAnswersInteractionsInstance=et.statsInstance=et.apiInstance=void 0;const yr=Ks(Fi),Li=yr.default.create();et.apiInstance=Li;const ji=yr.default.create();et.statsInstance=ji;const Ws=yr.default.create();et.aiAnswersInteractionsInstance=Ws;const Js=400;et.RESPONSE_BAD_REQUEST=Js;const Ys=500;et.RESPONSE_SERVER_ERROR=Ys;const Qs=(t,i)=>{(i==="searchApi"?Li:ji).interceptors.request.use(r=>{const E=t({url:r.url,headers:r.headers});return r=Object.assign(Object.assign({},r),E),r},r=>Promise.reject(new Error(JSON.stringify(r))))};et.setRequestInterceptor=Qs;var ut={},Ni={},Bn={};Bn.byteLength=ea,Bn.toByteArray=na,Bn.fromByteArray=oa;for(var Ot=[],mt=[],Zs=typeof Uint8Array<"u"?Uint8Array:Array,vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=0,Xs=vr.length;Gt<Xs;++Gt)Ot[Gt]=vr[Gt],mt[vr.charCodeAt(Gt)]=Gt;mt[45]=62,mt[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 f=t.indexOf("=");f===-1&&(f=i);var r=f===i?0:4-f%4;return[f,r]}function ea(t){var i=Mi(t),f=i[0],r=i[1];return(f+r)*3/4-r}function ta(t,i,f){return(i+f)*3/4-f}function na(t){var i,f=Mi(t),r=f[0],E=f[1],b=new Zs(ta(t,r,E)),c=0,n=E>0?r-4:r,v;for(v=0;v<n;v+=4)i=mt[t.charCodeAt(v)]<<18|mt[t.charCodeAt(v+1)]<<12|mt[t.charCodeAt(v+2)]<<6|mt[t.charCodeAt(v+3)],b[c++]=i>>16&255,b[c++]=i>>8&255,b[c++]=i&255;return E===2&&(i=mt[t.charCodeAt(v)]<<2|mt[t.charCodeAt(v+1)]>>4,b[c++]=i&255),E===1&&(i=mt[t.charCodeAt(v)]<<10|mt[t.charCodeAt(v+1)]<<4|mt[t.charCodeAt(v+2)]>>2,b[c++]=i>>8&255,b[c++]=i&255),b}function ra(t){return Ot[t>>18&63]+Ot[t>>12&63]+Ot[t>>6&63]+Ot[t&63]}function ia(t,i,f){for(var r,E=[],b=i;b<f;b+=3)r=(t[b]<<16&16711680)+(t[b+1]<<8&65280)+(t[b+2]&255),E.push(ra(r));return E.join("")}function oa(t){for(var i,f=t.length,r=f%3,E=[],b=16383,c=0,n=f-r;c<n;c+=b)E.push(ia(t,c,c+b>n?n:c+b));return r===1?(i=t[f-1],E.push(Ot[i>>2]+Ot[i<<4&63]+"==")):r===2&&(i=(t[f-2]<<8)+t[f-1],E.push(Ot[i>>10]+Ot[i>>4&63]+Ot[i<<2&63]+"=")),E.join("")}var xr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */xr.read=function(t,i,f,r,E){var b,c,n=E*8-r-1,v=(1<<n)-1,o=v>>1,e=-7,p=f?E-1:0,C=f?-1:1,u=t[i+p];for(p+=C,b=u&(1<<-e)-1,u>>=-e,e+=n;e>0;b=b*256+t[i+p],p+=C,e-=8);for(c=b&(1<<-e)-1,b>>=-e,e+=r;e>0;c=c*256+t[i+p],p+=C,e-=8);if(b===0)b=1-o;else{if(b===v)return c?NaN:(u?-1:1)*(1/0);c=c+Math.pow(2,r),b=b-o}return(u?-1:1)*c*Math.pow(2,b-r)},xr.write=function(t,i,f,r,E,b){var c,n,v,o=b*8-E-1,e=(1<<o)-1,p=e>>1,C=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:b-1,a=r?1:-1,s=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*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+p>=1?i+=C/v:i+=C*Math.pow(2,1-p),i*v>=2&&(c++,v/=2),c+p>=e?(n=0,c=e):c+p>=1?(n=(i*v-1)*Math.pow(2,E),c=c+p):(n=i*Math.pow(2,p-1)*Math.pow(2,E),c=0));E>=8;t[f+u]=n&255,u+=a,n/=256,E-=8);for(c=c<<E|n,o+=E;o>0;t[f+u]=c&255,u+=a,c/=256,o-=8);t[f+u-a]|=s*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(t){const i=Dn,f=xr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;const E=2147483647;t.kMaxLength=E,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),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(O,y),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>E)throw new RangeError('The value "'+O+'" is invalid for option "size"');const y=new Uint8Array(O);return Object.setPrototypeOf(y,n.prototype),y}function n(O,y,w){if(typeof O=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return v(O,y,w)}n.poolSize=8192;function v(O,y,w){if(typeof O=="string")return C(O,y);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 s(O,y,w);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,y,w);const $=g(O);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),y,w);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,y,w){return v(O,y,w)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function o(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,y,w){return o(O),O<=0?c(O):y!==void 0?typeof w=="string"?c(O).fill(y,w):c(O).fill(y):c(O)}n.alloc=function(O,y,w){return e(O,y,w)};function p(O){return o(O),c(O<0?0:d(O)|0)}n.allocUnsafe=function(O){return p(O)},n.allocUnsafeSlow=function(O){return p(O)};function C(O,y){if((typeof y!="string"||y==="")&&(y="utf8"),!n.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=l(O,y)|0;let F=c(w);const $=F.write(O,y);return $!==w&&(F=F.slice(0,$)),F}function u(O){const y=O.length<0?0:d(O.length)|0,w=c(y);for(let F=0;F<y;F+=1)w[F]=O[F]&255;return w}function a(O){if(Be(O,Uint8Array)){const y=new Uint8Array(O);return s(y.buffer,y.byteOffset,y.byteLength)}return u(O)}function s(O,y,w){if(y<0||O.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let F;return y===void 0&&w===void 0?F=new Uint8Array(O):w===void 0?F=new Uint8Array(O,y):F=new Uint8Array(O,y,w),Object.setPrototypeOf(F,n.prototype),F}function g(O){if(n.isBuffer(O)){const y=d(O.length)|0,w=c(y);return w.length===0||O.copy(w,0,0,y),w}if(O.length!==void 0)return typeof O.length!="number"||X(O.length)?c(0):u(O);if(O.type==="Buffer"&&Array.isArray(O.data))return u(O.data)}function d(O){if(O>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return O|0}function m(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==n.prototype},n.compare=function(y,w){if(Be(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),Be(w,Uint8Array)&&(w=n.from(w,w.offset,w.byteLength)),!n.isBuffer(y)||!n.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let F=y.length,$=w.length;for(let J=0,te=Math.min(F,$);J<te;++J)if(y[J]!==w[J]){F=y[J],$=w[J];break}return F<$?-1:$<F?1:0},n.isEncoding=function(y){switch(String(y).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(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return n.alloc(0);let F;if(w===void 0)for(w=0,F=0;F<y.length;++F)w+=y[F].length;const $=n.allocUnsafe(w);let J=0;for(F=0;F<y.length;++F){let te=y[F];if(Be(te,Uint8Array))J+te.length>$.length?(n.isBuffer(te)||(te=n.from(te)),te.copy($,J)):Uint8Array.prototype.set.call($,te,J);else if(n.isBuffer(te))te.copy($,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return $};function l(O,y){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 w=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&w===0)return 0;let $=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Se(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return ve(O).length;default:if($)return F?-1:Se(O).length;y=(""+y).toLowerCase(),$=!0}}n.byteLength=l;function h(O,y,w){let F=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,y,w);case"utf8":case"utf-8":return N(this,y,w);case"ascii":return oe(this,y,w);case"latin1":case"binary":return ee(this,y,w);case"base64":return B(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,y,w);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,y,w){const F=O[y];O[y]=O[w],O[w]=F}n.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)_(this,w,w+1);return this},n.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)_(this,w,w+3),_(this,w+1,w+2);return this},n.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)_(this,w,w+7),_(this,w+1,w+6),_(this,w+2,w+5),_(this,w+3,w+4);return this},n.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?N(this,0,y):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(y){if(!n.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:n.compare(this,y)===0},n.prototype.inspect=function(){let y="";const w=t.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},r&&(n.prototype[r]=n.prototype.inspect),n.prototype.compare=function(y,w,F,$,J){if(Be(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),!n.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),F===void 0&&(F=y?y.length:0),$===void 0&&($=0),J===void 0&&(J=this.length),w<0||F>y.length||$<0||J>this.length)throw new RangeError("out of range index");if($>=J&&w>=F)return 0;if($>=J)return-1;if(w>=F)return 1;if(w>>>=0,F>>>=0,$>>>=0,J>>>=0,this===y)return 0;let te=J-$,Te=F-w;const ze=Math.min(te,Te),Pe=this.slice($,J),Ge=y.slice(w,F);for(let ye=0;ye<ze;++ye)if(Pe[ye]!==Ge[ye]){te=Pe[ye],Te=Ge[ye];break}return te<Te?-1:Te<te?1:0};function S(O,y,w,F,$){if(O.length===0)return-1;if(typeof w=="string"?(F=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,X(w)&&(w=$?0:O.length-1),w<0&&(w=O.length+w),w>=O.length){if($)return-1;w=O.length-1}else if(w<0)if($)w=0;else return-1;if(typeof y=="string"&&(y=n.from(y,F)),n.isBuffer(y))return y.length===0?-1:I(O,y,w,F,$);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(O,y,w):Uint8Array.prototype.lastIndexOf.call(O,y,w):I(O,[y],w,F,$);throw new TypeError("val must be string, number or Buffer")}function I(O,y,w,F,$){let J=1,te=O.length,Te=y.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||y.length<2)return-1;J=2,te/=2,Te/=2,w/=2}function ze(Ge,ye){return J===1?Ge[ye]:Ge.readUInt16BE(ye*J)}let Pe;if($){let Ge=-1;for(Pe=w;Pe<te;Pe++)if(ze(O,Pe)===ze(y,Ge===-1?0:Pe-Ge)){if(Ge===-1&&(Ge=Pe),Pe-Ge+1===Te)return Ge*J}else Ge!==-1&&(Pe-=Pe-Ge),Ge=-1}else for(w+Te>te&&(w=te-Te),Pe=w;Pe>=0;Pe--){let Ge=!0;for(let ye=0;ye<Te;ye++)if(ze(O,Pe+ye)!==ze(y,ye)){Ge=!1;break}if(Ge)return Pe}return-1}n.prototype.includes=function(y,w,F){return this.indexOf(y,w,F)!==-1},n.prototype.indexOf=function(y,w,F){return S(this,y,w,F,!0)},n.prototype.lastIndexOf=function(y,w,F){return S(this,y,w,F,!1)};function T(O,y,w,F){w=Number(w)||0;const $=O.length-w;F?(F=Number(F),F>$&&(F=$)):F=$;const J=y.length;F>J/2&&(F=J/2);let te;for(te=0;te<F;++te){const Te=parseInt(y.substr(te*2,2),16);if(X(Te))return te;O[w+te]=Te}return te}function A(O,y,w,F){return be(Se(y,O.length-w),O,w,F)}function j(O,y,w,F){return be(Ae(y),O,w,F)}function U(O,y,w,F){return be(ve(y),O,w,F)}function L(O,y,w,F){return be(me(y,O.length-w),O,w,F)}n.prototype.write=function(y,w,F,$){if(w===void 0)$="utf8",F=this.length,w=0;else if(F===void 0&&typeof w=="string")$=w,F=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(F)?(F=F>>>0,$===void 0&&($="utf8")):($=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-w;if((F===void 0||F>J)&&(F=J),y.length>0&&(F<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let te=!1;for(;;)switch($){case"hex":return T(this,y,w,F);case"utf8":case"utf-8":return A(this,y,w,F);case"ascii":case"latin1":case"binary":return j(this,y,w,F);case"base64":return U(this,y,w,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,y,w,F);default:if(te)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),te=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(O,y,w){return y===0&&w===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(y,w))}function N(O,y,w){w=Math.min(O.length,w);const F=[];let $=y;for(;$<w;){const J=O[$];let te=null,Te=J>239?4:J>223?3:J>191?2:1;if($+Te<=w){let ze,Pe,Ge,ye;switch(Te){case 1:J<128&&(te=J);break;case 2:ze=O[$+1],(ze&192)===128&&(ye=(J&31)<<6|ze&63,ye>127&&(te=ye));break;case 3:ze=O[$+1],Pe=O[$+2],(ze&192)===128&&(Pe&192)===128&&(ye=(J&15)<<12|(ze&63)<<6|Pe&63,ye>2047&&(ye<55296||ye>57343)&&(te=ye));break;case 4:ze=O[$+1],Pe=O[$+2],Ge=O[$+3],(ze&192)===128&&(Pe&192)===128&&(Ge&192)===128&&(ye=(J&15)<<18|(ze&63)<<12|(Pe&63)<<6|Ge&63,ye>65535&&ye<1114112&&(te=ye))}}te===null?(te=65533,Te=1):te>65535&&(te-=65536,F.push(te>>>10&1023|55296),te=56320|te&1023),F.push(te),$+=Te}return G(F)}const z=4096;function G(O){const y=O.length;if(y<=z)return String.fromCharCode.apply(String,O);let w="",F=0;for(;F<y;)w+=String.fromCharCode.apply(String,O.slice(F,F+=z));return w}function oe(O,y,w){let F="";w=Math.min(O.length,w);for(let $=y;$<w;++$)F+=String.fromCharCode(O[$]&127);return F}function ee(O,y,w){let F="";w=Math.min(O.length,w);for(let $=y;$<w;++$)F+=String.fromCharCode(O[$]);return F}function Y(O,y,w){const F=O.length;(!y||y<0)&&(y=0),(!w||w<0||w>F)&&(w=F);let $="";for(let J=y;J<w;++J)$+=le[O[J]];return $}function W(O,y,w){const F=O.slice(y,w);let $="";for(let J=0;J<F.length-1;J+=2)$+=String.fromCharCode(F[J]+F[J+1]*256);return $}n.prototype.slice=function(y,w){const F=this.length;y=~~y,w=w===void 0?F:~~w,y<0?(y+=F,y<0&&(y=0)):y>F&&(y=F),w<0?(w+=F,w<0&&(w=0)):w>F&&(w=F),w<y&&(w=y);const $=this.subarray(y,w);return Object.setPrototypeOf($,n.prototype),$};function Z(O,y,w){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+y>w)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let $=this[y],J=1,te=0;for(;++te<w&&(J*=256);)$+=this[y+te]*J;return $},n.prototype.readUintBE=n.prototype.readUIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let $=this[y+--w],J=1;for(;w>0&&(J*=256);)$+=this[y+--w]*J;return $},n.prototype.readUint8=n.prototype.readUInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]|this[y+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]<<8|this[y+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},n.prototype.readBigUInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const $=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,J=this[++y]+this[++y]*2**8+this[++y]*2**16+F*2**24;return BigInt($)+(BigInt(J)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const $=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],J=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F;return(BigInt($)<<BigInt(32))+BigInt(J)}),n.prototype.readIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let $=this[y],J=1,te=0;for(;++te<w&&(J*=256);)$+=this[y+te]*J;return J*=128,$>=J&&($-=Math.pow(2,8*w)),$},n.prototype.readIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let $=w,J=1,te=this[y+--$];for(;$>0&&(J*=256);)te+=this[y+--$]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*w)),te},n.prototype.readInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},n.prototype.readInt16LE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y]|this[y+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y+1]|this[y]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},n.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},n.prototype.readBigInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const $=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(F<<24);return(BigInt($)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),n.prototype.readBigInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const $=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt($)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F)}),n.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!0,23,4)},n.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!1,23,4)},n.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!0,52,8)},n.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!1,52,8)};function ce(O,y,w,F,$,J){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>$||y<J)throw new RangeError('"value" argument is out of bounds');if(w+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(y,w,F,$){if(y=+y,w=w>>>0,F=F>>>0,!$){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=1,te=0;for(this[w]=y&255;++te<F&&(J*=256);)this[w+te]=y/J&255;return w+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(y,w,F,$){if(y=+y,w=w>>>0,F=F>>>0,!$){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=F-1,te=1;for(this[w+J]=y&255;--J>=0&&(te*=256);)this[w+J]=y/te&255;return w+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,255,0),this[w]=y&255,w+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function ge(O,y,w,F,$){V(y,F,$,O,w,7);let J=Number(y&BigInt(4294967295));O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,w}function _e(O,y,w,F,$){V(y,F,$,O,w,7);let J=Number(y&BigInt(4294967295));O[w+7]=J,J=J>>8,O[w+6]=J,J=J>>8,O[w+5]=J,J=J>>8,O[w+4]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w+3]=te,te=te>>8,O[w+2]=te,te=te>>8,O[w+1]=te,te=te>>8,O[w]=te,w+8}n.prototype.writeBigUInt64LE=ie(function(y,w=0){return ge(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(y,w=0){return _e(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(y,w,F,$){if(y=+y,w=w>>>0,!$){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=0,te=1,Te=0;for(this[w]=y&255;++J<F&&(te*=256);)y<0&&Te===0&&this[w+J-1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeIntBE=function(y,w,F,$){if(y=+y,w=w>>>0,!$){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=F-1,te=1,Te=0;for(this[w+J]=y&255;--J>=0&&(te*=256);)y<0&&Te===0&&this[w+J+1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},n.prototype.writeInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},n.prototype.writeInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},n.prototype.writeBigInt64LE=ie(function(y,w=0){return ge(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(y,w=0){return _e(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(O,y,w,F,$,J){if(w+F>O.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Re(O,y,w,F,$){return y=+y,w=w>>>0,$||Ce(O,y,w,4),f.write(O,y,w,F,23,4),w+4}n.prototype.writeFloatLE=function(y,w,F){return Re(this,y,w,!0,F)},n.prototype.writeFloatBE=function(y,w,F){return Re(this,y,w,!1,F)};function He(O,y,w,F,$){return y=+y,w=w>>>0,$||Ce(O,y,w,8),f.write(O,y,w,F,52,8),w+8}n.prototype.writeDoubleLE=function(y,w,F){return He(this,y,w,!0,F)},n.prototype.writeDoubleBE=function(y,w,F){return He(this,y,w,!1,F)},n.prototype.copy=function(y,w,F,$){if(!n.isBuffer(y))throw new TypeError("argument should be a Buffer");if(F||(F=0),!$&&$!==0&&($=this.length),w>=y.length&&(w=y.length),w||(w=0),$>0&&$<F&&($=F),$===F||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),y.length-w<$-F&&($=y.length-w+F);const J=$-F;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,F,$):Uint8Array.prototype.set.call(y,this.subarray(F,$),w),J},n.prototype.fill=function(y,w,F,$){if(typeof y=="string"){if(typeof w=="string"?($=w,w=0,F=this.length):typeof F=="string"&&($=F,F=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!n.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(y.length===1){const te=y.charCodeAt(0);($==="utf8"&&te<128||$==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<F)throw new RangeError("Out of range index");if(F<=w)return this;w=w>>>0,F=F===void 0?this.length:F>>>0,y||(y=0);let J;if(typeof y=="number")for(J=w;J<F;++J)this[J]=y;else{const te=n.isBuffer(y)?y:n.from(y,$),Te=te.length;if(Te===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(J=0;J<F-w;++J)this[J+w]=te[J%Te]}return this};const Ie={};function Ke(O,y,w){Ie[O]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,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,y){return`The "${O}" argument must be of type number. Received type ${typeof y}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,y,w){let F=`The value of "${O}" is out of range.`,$=w;return Number.isInteger(w)&&Math.abs(w)>2**32?$=Me(String(w)):typeof w=="bigint"&&($=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&($=Me($)),$+="n"),F+=` It must be ${y}. Received ${$}`,F},RangeError);function Me(O){let y="",w=O.length;const F=O[0]==="-"?1:0;for(;w>=F+4;w-=3)y=`_${O.slice(w-3,w)}${y}`;return`${O.slice(0,w)}${y}`}function We(O,y,w){H(y,"offset"),(O[y]===void 0||O[y+w]===void 0)&&se(y,O.length-(w+1))}function V(O,y,w,F,$,J){if(O>w||O<y){const te=typeof y=="bigint"?"n":"";let Te;throw y===0||y===BigInt(0)?Te=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Te=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`,new Ie.ERR_OUT_OF_RANGE("value",Te,O)}We(F,$,J)}function H(O,y){if(typeof O!="number")throw new Ie.ERR_INVALID_ARG_TYPE(y,"number",O)}function se(O,y,w){throw Math.floor(O)!==O?(H(O,w),new Ie.ERR_OUT_OF_RANGE("offset","an integer",O)):y<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,O)}const de=/[^+/0-9A-Za-z-_]/g;function we(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 Se(O,y){y=y||1/0;let w;const F=O.length;let $=null;const J=[];for(let te=0;te<F;++te){if(w=O.charCodeAt(te),w>55295&&w<57344){if(!$){if(w>56319){(y-=3)>-1&&J.push(239,191,189);continue}else if(te+1===F){(y-=3)>-1&&J.push(239,191,189);continue}$=w;continue}if(w<56320){(y-=3)>-1&&J.push(239,191,189),$=w;continue}w=($-55296<<10|w-56320)+65536}else $&&(y-=3)>-1&&J.push(239,191,189);if($=null,w<128){if((y-=1)<0)break;J.push(w)}else if(w<2048){if((y-=2)<0)break;J.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;J.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;J.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return J}function Ae(O){const y=[];for(let w=0;w<O.length;++w)y.push(O.charCodeAt(w)&255);return y}function me(O,y){let w,F,$;const J=[];for(let te=0;te<O.length&&!((y-=2)<0);++te)w=O.charCodeAt(te),F=w>>8,$=w%256,J.push($),J.push(F);return J}function ve(O){return i.toByteArray(we(O))}function be(O,y,w,F){let $;for($=0;$<F&&!($+w>=y.length||$>=O.length);++$)y[$+w]=O[$];return $}function Be(O,y){return O instanceof y||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===y.name}function X(O){return O!==O}const le=function(){const O="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const F=w*16;for(let $=0;$<16;++$)y[F+$]=O[w]+O[$]}return y}();function ie(O){return typeof BigInt>"u"?fe:O}function fe(){throw new Error("BigInt not supported")}})(Ni);var Bi={},br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.default="00000000-0000-0000-0000-000000000000";var Jt={},Yt={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.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(Yt,"__esModule",{value:!0});const sa=Sr;function aa(t){return typeof t=="string"&&sa.default.test(t)}Yt.default=aa,Object.defineProperty(Jt,"__esModule",{value:!0});const la=Yt;function ca(t){if(!(0,la.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)}Jt.default=ca;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.unsafeStringify=void 0;const ua=Yt,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()}gt.unsafeStringify=Di;function ha(t,i=0){const f=Di(t,i);if(!(0,ua.default)(f))throw TypeError("Stringified UUID is invalid");return f}gt.default=ha;var Qt={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});let Er;const fa=new Uint8Array(16);function da(){if(!Er){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Er=crypto.getRandomValues.bind(crypto)}return Er(fa)}fn.default=da,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.updateV1State=void 0;const Hi=fn,pa=gt,dn={};function ma(t,i,f){var b;let r;const E=(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)r=$i(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,f);else{const c=Date.now(),n=(0,Hi.default)();Ui(dn,c,n),r=$i(n,dn.msecs,dn.nsecs,E?void 0:dn.clockseq,E?void 0:dn.node,i,f)}return i?r:(0,pa.unsafeStringify)(r)}function Ui(t,i,f){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=f.slice(10,16),t.node[0]|=1,t.clockseq=(f[8]<<8|f[9])&16383),t.msecs=i,t}Qt.updateV1State=Ui;function $i(t,i,f,r,E,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()),f??(f=0),r??(r=(t[8]<<8|t[9])&16383),E??(E=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+f)%4294967296;b[c++]=n>>>24&255,b[c++]=n>>>16&255,b[c++]=n>>>8&255,b[c++]=n&255;const v=i/4294967296*1e4&268435455;b[c++]=v>>>8&255,b[c++]=v&255,b[c++]=v>>>24&15|16,b[c++]=v>>>16&255,b[c++]=r>>>8|128,b[c++]=r&255;for(let o=0;o<6;++o)b[c++]=E[o];return b}Qt.default=ma;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const ga=Jt,ya=gt;function va(t){const i=typeof t=="string"?(0,ga.default)(t):t,f=xa(i);return typeof t=="string"?(0,ya.unsafeStringify)(f):f}Hn.default=va;function xa(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={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function ba(t){const i=Ea(t),f=Sa(i,t.length*8);return wa(f)}function wa(t){const i=new Uint8Array(t.length*4);for(let f=0;f<t.length*4;f++)i[f]=t[f>>2]>>>f%4*8&255;return i}function zi(t){return(t+64>>>9<<4)+14+1}function Sa(t,i){const f=new Uint32Array(zi(i)).fill(0);f.set(t),f[i>>5]|=128<<i%32,f[f.length-1]=i,t=f;let r=1732584193,E=-271733879,b=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const v=r,o=E,e=b,p=c;r=rt(r,E,b,c,t[n],7,-680876936),c=rt(c,r,E,b,t[n+1],12,-389564586),b=rt(b,c,r,E,t[n+2],17,606105819),E=rt(E,b,c,r,t[n+3],22,-1044525330),r=rt(r,E,b,c,t[n+4],7,-176418897),c=rt(c,r,E,b,t[n+5],12,1200080426),b=rt(b,c,r,E,t[n+6],17,-1473231341),E=rt(E,b,c,r,t[n+7],22,-45705983),r=rt(r,E,b,c,t[n+8],7,1770035416),c=rt(c,r,E,b,t[n+9],12,-1958414417),b=rt(b,c,r,E,t[n+10],17,-42063),E=rt(E,b,c,r,t[n+11],22,-1990404162),r=rt(r,E,b,c,t[n+12],7,1804603682),c=rt(c,r,E,b,t[n+13],12,-40341101),b=rt(b,c,r,E,t[n+14],17,-1502002290),E=rt(E,b,c,r,t[n+15],22,1236535329),r=it(r,E,b,c,t[n+1],5,-165796510),c=it(c,r,E,b,t[n+6],9,-1069501632),b=it(b,c,r,E,t[n+11],14,643717713),E=it(E,b,c,r,t[n],20,-373897302),r=it(r,E,b,c,t[n+5],5,-701558691),c=it(c,r,E,b,t[n+10],9,38016083),b=it(b,c,r,E,t[n+15],14,-660478335),E=it(E,b,c,r,t[n+4],20,-405537848),r=it(r,E,b,c,t[n+9],5,568446438),c=it(c,r,E,b,t[n+14],9,-1019803690),b=it(b,c,r,E,t[n+3],14,-187363961),E=it(E,b,c,r,t[n+8],20,1163531501),r=it(r,E,b,c,t[n+13],5,-1444681467),c=it(c,r,E,b,t[n+2],9,-51403784),b=it(b,c,r,E,t[n+7],14,1735328473),E=it(E,b,c,r,t[n+12],20,-1926607734),r=ot(r,E,b,c,t[n+5],4,-378558),c=ot(c,r,E,b,t[n+8],11,-2022574463),b=ot(b,c,r,E,t[n+11],16,1839030562),E=ot(E,b,c,r,t[n+14],23,-35309556),r=ot(r,E,b,c,t[n+1],4,-1530992060),c=ot(c,r,E,b,t[n+4],11,1272893353),b=ot(b,c,r,E,t[n+7],16,-155497632),E=ot(E,b,c,r,t[n+10],23,-1094730640),r=ot(r,E,b,c,t[n+13],4,681279174),c=ot(c,r,E,b,t[n],11,-358537222),b=ot(b,c,r,E,t[n+3],16,-722521979),E=ot(E,b,c,r,t[n+6],23,76029189),r=ot(r,E,b,c,t[n+9],4,-640364487),c=ot(c,r,E,b,t[n+12],11,-421815835),b=ot(b,c,r,E,t[n+15],16,530742520),E=ot(E,b,c,r,t[n+2],23,-995338651),r=st(r,E,b,c,t[n],6,-198630844),c=st(c,r,E,b,t[n+7],10,1126891415),b=st(b,c,r,E,t[n+14],15,-1416354905),E=st(E,b,c,r,t[n+5],21,-57434055),r=st(r,E,b,c,t[n+12],6,1700485571),c=st(c,r,E,b,t[n+3],10,-1894986606),b=st(b,c,r,E,t[n+10],15,-1051523),E=st(E,b,c,r,t[n+1],21,-2054922799),r=st(r,E,b,c,t[n+8],6,1873313359),c=st(c,r,E,b,t[n+15],10,-30611744),b=st(b,c,r,E,t[n+6],15,-1560198380),E=st(E,b,c,r,t[n+13],21,1309151649),r=st(r,E,b,c,t[n+4],6,-145523070),c=st(c,r,E,b,t[n+11],10,-1120210379),b=st(b,c,r,E,t[n+2],15,718787259),E=st(E,b,c,r,t[n+9],21,-343485551),r=It(r,v),E=It(E,o),b=It(b,e),c=It(c,p)}return Uint32Array.of(r,E,b,c)}function Ea(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(zi(t.length*8)).fill(0);for(let f=0;f<t.length;f++)i[f>>2]|=(t[f]&255)<<f%4*8;return i}function It(t,i){const f=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(f>>16)<<16|f&65535}function ka(t,i){return t<<i|t>>>32-i}function Un(t,i,f,r,E,b){return It(ka(It(It(i,t),It(r,b)),E),f)}function rt(t,i,f,r,E,b,c){return Un(i&f|~i&r,t,i,E,b,c)}function it(t,i,f,r,E,b,c){return Un(i&r|f&~r,t,i,E,b,c)}function ot(t,i,f,r,E,b,c){return Un(i^f^r,t,i,E,b,c)}function st(t,i,f,r,E,b,c){return Un(f^(i|~r),t,i,E,b,c)}kr.default=ba;var yt={};Object.defineProperty(yt,"__esModule",{value:!0}),yt.URL=yt.DNS=yt.stringToBytes=void 0;const Vi=Jt,_a=gt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let f=0;f<t.length;++f)i[f]=t.charCodeAt(f);return i}yt.stringToBytes=Gi,yt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",yt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ca(t,i,f,r,E,b){const c=typeof f=="string"?Gi(f):f,n=typeof r=="string"?(0,Vi.default)(r):r;if(typeof r=="string"&&(r=(0,Vi.default)(r)),(r==null?void 0:r.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+c.length);if(v.set(n),v.set(c,n.length),v=i(v),v[6]=v[6]&15|t,v[8]=v[8]&63|128,E){b=b||0;for(let o=0;o<16;++o)E[b+o]=v[o];return E}return(0,_a.unsafeStringify)(v)}yt.default=Ca,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(48,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(qi);var _r={},Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Oa=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Cr.default={randomUUID:Oa},Object.defineProperty(_r,"__esModule",{value:!0});const Ki=Cr,Ra=fn,Aa=gt;function Ta(t,i,f){var E;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const r=t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ra.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,i){if(f=f||0,f<0||f+16>i.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[f+b]=r[b];return i}return(0,Aa.unsafeStringify)(r)}_r.default=Ta;var Wi={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});function Pa(t,i,f,r){switch(t){case 0:return i&f^~i&r;case 1:return i^f^r;case 2:return i&f^i&r^f&r;case 3:return i^f^r}}function Rr(t,i){return t<<i|t>>>32-i}function Ia(t){const i=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(t.length+1);r.set(t),r[t.length]=128,t=r;const E=t.length/4+2,b=Math.ceil(E/16),c=new Array(b);for(let n=0;n<b;++n){const v=new Uint32Array(16);for(let o=0;o<16;++o)v[o]=t[n*64+o*4]<<24|t[n*64+o*4+1]<<16|t[n*64+o*4+2]<<8|t[n*64+o*4+3];c[n]=v}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 v=new Uint32Array(80);for(let a=0;a<16;++a)v[a]=c[n][a];for(let a=16;a<80;++a)v[a]=Rr(v[a-3]^v[a-8]^v[a-14]^v[a-16],1);let o=f[0],e=f[1],p=f[2],C=f[3],u=f[4];for(let a=0;a<80;++a){const s=Math.floor(a/20),g=Rr(o,5)+Pa(s,e,p,C)+u+i[s]+v[a]>>>0;u=C,C=p,p=Rr(e,30)>>>0,e=o,o=g}f[0]=f[0]+o>>>0,f[1]=f[1]+e>>>0,f[2]=f[2]+p>>>0,f[3]=f[3]+C>>>0,f[4]=f[4]+u>>>0}return Uint8Array.of(f[0]>>24,f[0]>>16,f[0]>>8,f[0],f[1]>>24,f[1]>>16,f[1]>>8,f[1],f[2]>>24,f[2]>>16,f[2]>>8,f[2],f[3]>>24,f[3]>>16,f[3]>>8,f[3],f[4]>>24,f[4]>>16,f[4]>>8,f[4])}Or.default=Ia,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=Or,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(80,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(Wi);var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});const Fa=gt,La=Qt,ja=Hn;function Na(t,i,f){t??(t={}),f??(f=0);let r=(0,La.default)({...t,_v6:!0},new Uint8Array(16));if(r=(0,ja.default)(r),i){for(let E=0;E<16;E++)i[f+E]=r[E];return i}return(0,Fa.unsafeStringify)(r)}Ar.default=Na;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ma=Jt,Ba=gt;function Da(t){const i=typeof t=="string"?(0,Ma.default)(t):t,f=Ha(i);return typeof t=="string"?(0,Ba.unsafeStringify)(f):f}Tr.default=Da;function Ha(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 pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.updateV7State=void 0;const Ji=fn,Ua=gt,Pr={};function $a(t,i,f){var E;let r;if(t)r=Qi(t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,f);else{const b=Date.now(),c=(0,Ji.default)();Yi(Pr,b,c),r=Qi(c,Pr.msecs,Pr.seq,i,f)}return i?r:(0,Ua.unsafeStringify)(r)}function Yi(t,i,f){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}pn.updateV7State=Yi;function Qi(t,i,f,r,E=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),E=0;else if(E<0||E+16>r.length)throw new RangeError(`UUID byte range ${E}:${E+15} is out of buffer bounds`);return i??(i=Date.now()),f??(f=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),r[E++]=i/1099511627776&255,r[E++]=i/4294967296&255,r[E++]=i/16777216&255,r[E++]=i/65536&255,r[E++]=i/256&255,r[E++]=i&255,r[E++]=112|f>>>28&15,r[E++]=f>>>20&255,r[E++]=128|f>>>14&63,r[E++]=f>>>6&255,r[E++]=f<<2&255|t[10]&3,r[E++]=t[11],r[E++]=t[12],r[E++]=t[13],r[E++]=t[14],r[E++]=t[15],r}pn.default=$a;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const qa=Yt;function za(t){if(!(0,qa.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Ir.default=za,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=br;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var f=wr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return f.default}});var r=Jt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var E=gt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.default}});var b=Qt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var c=Hn;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 v=_r;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return v.default}});var o=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}});var e=Ar;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var p=Tr;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var C=pn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var u=Yt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}});var a=Ir;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(ut,"__esModule",{value:!0}),ut.isEmptyObject=ut.generateUUID=ut.validateSetPagingParams=ut.base64=ut.isFunction=void 0;const Zi=Ni,Va=Bi,Ga=t=>typeof t=="function";ut.isFunction=Ga;const Ka=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Zi.Buffer)return Zi.Buffer.from(t).toString("base64")};ut.base64=Ka;const Wa=(t,i,f,r)=>{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(!f||!r)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof f=="string"&&typeof r=="string"||Array.isArray(f)&&Array.isArray(r)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(f)&&f.length!==r.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof r=="string"&&r!=="asc"&&r!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(r)&&r.some(E=>E!=="desc"&&E!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};ut.validateSetPagingParams=Wa;const Ja=()=>(0,Va.v4)().replace(/-/g,"");ut.generateUUID=Ja;const Ya=t=>t==null||Array.isArray(t)||Object.prototype.toString.call(t)!=="[object Object]"?!0:Object.keys(t).length===0;ut.isEmptyObject=Ya,Object.defineProperty(tr,"__esModule",{value:!0});const Bt=Xe,Xi=ut,eo=function(t,i,f,r,E,b,c,n){var v,o,e,p,C,u,a,s;const g=function(S,I){return S||S===!1?"&"+I+"="+S:""};if(f!=="search"&&f!=="ai-answers"&&f!=="suggest"&&f!=="autocomplete"&&f!=="recommend"){E({error:{response:Bt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let d="",m="",l={},h=null,_=null;if(f==="search"){_=f,d=r==null?void 0:r.keyword,d=r!=null&&r.enableLogicalOperators?d.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):d.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),d=encodeURIComponent(d);let S=r==null?void 0:r.fuzzy;if(S==="retry"&&(b!==!0?S=!1:S=!0),m=g(r==null?void 0:r.lang,"lang")+g(S,"fuzzy")+g(r==null?void 0:r.collectAnalytics,"collectAnalytics")+g(r==null?void 0:r.postfixWildcard,"postfixWildcard")+g(r==null?void 0:r.categories,"categories")+g(r==null?void 0:r.priceFromCents,"priceFromCents")+g(r==null?void 0:r.priceToCents,"priceToCents")+g(r==null?void 0:r.dateFrom,"dateFrom")+g(r==null?void 0:r.dateTo,"dateTo")+g(r==null?void 0:r.paging.page,"page")+g(r==null?void 0:r.paging.pageSize,"limit")+g(r==null?void 0:r.shuffleAndLimitTo,"shuffleAndLimitTo")+g(r==null?void 0:r.jwt,"jwt")+g(r==null?void 0:r.resultType,"resultType")+g(r==null?void 0:r.userToken,"userToken")+g(r==null?void 0:r.numFacets,"numFacets")+g(r==null?void 0:r.cacheResponseTime,"cacheResponseWithTtlSeconds")+g(r==null?void 0:r.searchOperator,"defaultOperator")+g(r==null?void 0:r.analyticsTag,"analyticsTag"),l=Object.assign(Object.assign({},l),{language:r==null?void 0:r.lang,fuzzy:S!==!0&&S!==!1?S:JSON.stringify(S),collectAnalytics:r==null?void 0:r.collectAnalytics,postfixWildcard:r==null?void 0:r.postfixWildcard,categories:r!=null&&r.categories?r==null?void 0:r.categories.split(","):void 0,priceFromCents:r!=null&&r.priceFromCents?parseInt(r==null?void 0:r.priceFromCents,10):void 0,priceToCents:r!=null&&r.priceToCents?parseInt(r==null?void 0:r.priceToCents,10):void 0,dateFrom:r==null?void 0:r.dateFrom,dateTo:r==null?void 0:r.dateTo,paging:{page:(v=r==null?void 0:r.paging.page)!==null&&v!==void 0?v:1,pageSize:(o=r==null?void 0:r.paging.pageSize)!==null&&o!==void 0?o:10,shuffleAndLimitTo:(e=r==null?void 0:r.shuffleAndLimitTo)!==null&&e!==void 0?e:void 0,sortByField:r==null?void 0:r.paging.sortBy,sortOrder:r==null?void 0:r.paging.sortOrder},jwt:r==null?void 0:r.jwt,resultType:r==null?void 0:r.resultType,userToken:(p=r==null?void 0:r.userToken)!==null&&p!==void 0?p:void 0,numFacets:r==null?void 0:r.numFacets,cacheResponseWithTtlSeconds:(C=r==null?void 0:r.cacheResponseTime)!==null&&C!==void 0?C:void 0,defaultOperator:(u=r==null?void 0:r.searchOperator)!==null&&u!==void 0?u:void 0,analyticsTag:r==null?void 0:r.analyticsTag}),Array.isArray(r==null?void 0:r.paging.sortBy)&&(r==null?void 0:r.paging.sortBy.length)>1?r==null||r.paging.sortBy.forEach(function(I,T){m=m+g(I,"sort")+g(r==null?void 0:r.paging.sortOrder[T],"order")}):m=m+g(r==null?void 0:r.paging.sortBy,"sort")+g(r==null?void 0:r.paging.sortOrder,"order"),r!=null&&r.customFieldFilters){const I={};for(let T=0;T<(r==null?void 0:r.customFieldFilters.length);T++){m=m+"&customField="+(r==null?void 0:r.customFieldFilters[T]);const j=decodeURIComponent(r==null?void 0:r.customFieldFilters[T]).split("="),U=j[0],L=j[1];I[U]=L}l=Object.assign(Object.assign({},l),{customField:(0,Xi.isEmptyObject)(I)?void 0:I})}if(r!=null&&r.facetFields){const I=[];for(let T=0;T<(r==null?void 0:r.facetFields.length);T++)m=m+"&facet="+(r==null?void 0:r.facetFields[T]),I.push(r==null?void 0:r.facetFields[T]);l=Object.assign(Object.assign({},l),{facet:I.length>0?I:void 0})}if(r!=null&&r.rangeFacets&&(m=m+"&rangeFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.rangeFacets)),l=Object.assign(Object.assign({},l),{rangeFacets:r==null?void 0:r.rangeFacets})),r!=null&&r.hierarchicalFacetSetting&&(m=m+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.hierarchicalFacetSetting)),l=Object.assign(Object.assign({},l),{hierarchicalFacets:r==null?void 0:r.hierarchicalFacetSetting})),r!=null&&r.statsFields){const I=[];for(let T=0;T<(r==null?void 0:r.statsFields.length);T++)m=m+"&fieldStat="+(r==null?void 0:r.statsFields[T]),I.push(r==null?void 0:r.statsFields[T]);l=Object.assign(Object.assign({},l),{statsFields:I})}if(r!=null&&r.personalizationEvents&&Array.isArray(r==null?void 0:r.personalizationEvents)){const I=[];for(let T=0;T<(r==null?void 0:r.personalizationEvents.length);T++){const A=r==null?void 0:r.personalizationEvents[T],j=Object.keys(A)[0];m=m+"&personalizationEvent="+encodeURIComponent(j+"="+A[j]),I.push(A)}l=Object.assign(Object.assign({},l),{personalizationEvents:I})}c?(m=m+"&filter="+encodeURIComponent(JSON.stringify(c)),l=Object.assign(Object.assign({},l),{filter:c})):r!=null&&r.filterObject&&(m=m+"&filter="+encodeURIComponent(JSON.stringify(r==null?void 0:r.filterObject)),l=Object.assign(Object.assign({},l),{filter:(0,Xi.isEmptyObject)(r==null?void 0:r.filterObject)||r==null?void 0:r.filterObject})),h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m}else f==="ai-answers"?Bt.apiInstance.post(`https://${t}/v2/indices/${i}/conversations`,{question:r==null?void 0:r.keyword}).then(function(S){S.data.response?E(S.data.response):E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})}).catch(function(S){console.error(S),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):f==="suggest"?(_=f,m=g(r==null?void 0:r.suggestionsSize,"size")+g(r==null?void 0:r.lang,"language"),l=Object.assign(Object.assign({},l),{size:r==null?void 0:r.suggestionsSize,language:r==null?void 0:r.lang}),d=r==null?void 0:r.suggestionsPrefix,h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m):f==="autocomplete"?(_="autocomplete/document-field",m=g(r==null?void 0:r.autocomplete.field,"source")+g(r==null?void 0:r.autocomplete.size,"size"),d=(r==null?void 0:r.autocomplete.prefix)||"",h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m,l=Object.assign(Object.assign({},l),{source:r==null?void 0:r.autocomplete.field,size:r==null?void 0:r.autocomplete.size})):f==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(m=g(n.itemId,"itemId"),_="recommendations/index/"+i+"/block/"+n.blockId+"?"+m,l=Object.assign(Object.assign({},l),{itemId:(a=n.itemId)!==null&&a!==void 0?a:void 0,blockId:n.blockId})):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(m=g(n.itemId,"itemId"),_="recommendations/"+i+"?configurationKey="+n.configurationKey+m,l=Object.assign(Object.assign({},l),{itemId:(s=n.itemId)!==null&&s!==void 0?s:void 0,configurationKey:n.configurationKey})),h="https://"+t+"/v1/"+_);if(f!=="ai-answers"){const S=function(T){var A,j,U;const L=T.data;f==="search"&&(r==null?void 0:r.fuzzy)==="retry"&&L.total_hits===0&&b!==!0?eo(t,i,f,r,E,!0):(b===!0&&(L.total_hits=Math.min((A=L.total_hits)!==null&&A!==void 0?A:1/0,(U=(j=r==null?void 0:r.paging)===null||j===void 0?void 0:j.pageSize)!==null&&U!==void 0?U:1/0)),E(L))},I=function(T){console.error(T),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})};if((r==null?void 0:r.apiMethod)==="POST"&&["search","suggest","autocomplete"].includes(f)){h="https://"+t+"/v1/"+_+"/"+i;const T=f==="search"?decodeURIComponent(d):d;l=Object.assign({term:T},l),Bt.apiInstance.post(h,l).then(S).catch(I)}else Bt.apiInstance.get(h).then(S).catch(I)}};tr.default=eo;var vt={},Qa=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.deleteDocumentsBatch=vt.deleteDocument=vt.saveDocumentsBatch=vt.saveDocument=vt.getDocument=void 0;const mn=Qa(Fi),Za=ut,gn=(t,i)=>({Authorization:"Basic "+(0,Za.base64)(t+":"+i),"Content-Type":"application/json"}),Xa=(t,i,f,r)=>new Promise((E,b)=>{mn.default.get(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:gn(i,f)}).then(c=>{c.status===200?E(c.data):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});vt.getDocument=Xa;const el=(t,i,f,r)=>{const E=!!(r.id||r.url);return new Promise((b,c)=>{(0,mn.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:E?"put":"post",headers:gn(i,f),data:r}).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})))})})};vt.saveDocument=el;const tl=(t,i,f,r)=>new Promise((E,b)=>{(0,mn.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:gn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.saveDocumentsBatch=tl;const nl=(t,i,f,r)=>new Promise((E,b)=>{mn.default.delete(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:gn(i,f)}).then(c=>{c.status===202?E({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})))})});vt.deleteDocument=nl;const rl=(t,i,f,r)=>new Promise((E,b)=>{mn.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:gn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.deleteDocumentsBatch=rl;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const il=Yr,ol=Xe;(0,il.polyfill)();const sl=(t,i,f,r)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!r?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(f)):ol.statsInstance.post(`https://${t}/v1/stats/${i}/`,f,{headers:{"Content-Type":"text/plain"}}).then().catch(E=>{console.error(E)})};Fr.default=sl;var $n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.putSentimentClick=void 0;const Lr=Xe,al=(t,i,f,r)=>new Promise((E,b)=>{Lr.aiAnswersInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${f}/rating`,{value:r==="positive"?1:r==="negative"?-1:0}).then(c=>{c.status===200?E(!0):b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});$n.putSentimentClick=al;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});const ll=ut;class cl{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,apiMethod:"GET"}}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,f){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=f}setLanguage(i){let f;if(Intl&&Intl.Locale)try{f=new Intl.Locale(i).language}catch(r){throw console.debug(r),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else f=i;if(f&&f.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=f}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,f){this.settings.priceFromCents=i,this.settings.priceToCents=f}addCustomFieldFilter(i,f){const r=encodeURIComponent(`${i}=${f}`);this.settings.customFieldFilters.includes(r)||this.settings.customFieldFilters.push(r)}removeCustomFieldFilter(i,f){const r=!f,E=encodeURIComponent(`${i}=${f||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>r?!b.startsWith(E):b!==E)}setDateFilter(i,f){this.settings.dateFrom=i,this.settings.dateTo=f}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,f){var r,E;(r=(E=this.settings).rangeFacets)!==null&&r!==void 0||(E.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:f})}addStatsField(i){var f,r;(f=(r=this.settings).statsFields)!==null&&f!==void 0||(r.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,f,r,E){(0,ll.validateSetPagingParams)(i,f,r,E),this.settings.paging={page:i,pageSize:f,sortBy:r,sortOrder:E}}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}setApiMethod(i){if(i!=="GET"&&i!=="POST")throw new Error("API method must be 'GET' or 'POST'");this.settings.apiMethod=i}}jr.default=cl;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});const ul=(t,i)=>{let f=0,r=null;function E(){r!==null&&(clearTimeout(r),r=null)}function b(...c){const n=Date.now()-f,v=()=>{f=Date.now(),i(...c)};E(),n>t?v():r=setTimeout(v,t-n)}return b};Nr.default=ul;var Ft={},qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.parse=yl,qn.serialize=vl;const hl=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,fl=/^[\u0021-\u003A\u003C-\u007E]*$/,dl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,pl=/^[\u0020-\u003A\u003D-\u007E]*$/,ml=Object.prototype.toString,gl=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function yl(t,i){const f=new gl,r=t.length;if(r<2)return f;const E=(i==null?void 0:i.decode)||xl;let b=0;do{const c=t.indexOf("=",b);if(c===-1)break;const n=t.indexOf(";",b),v=n===-1?r:n;if(c>v){b=t.lastIndexOf(";",c-1)+1;continue}const o=to(t,b,c),e=no(t,c,o),p=t.slice(o,e);if(f[p]===void 0){let C=to(t,c+1,v),u=no(t,v,C);const a=E(t.slice(C,u));f[p]=a}b=v+1}while(b<r);return f}function to(t,i,f){do{const r=t.charCodeAt(i);if(r!==32&&r!==9)return i}while(++i<f);return f}function no(t,i,f){for(;i>f;){const r=t.charCodeAt(--i);if(r!==32&&r!==9)return i+1}return f}function vl(t,i,f){const r=(f==null?void 0:f.encode)||encodeURIComponent;if(!hl.test(t))throw new TypeError(`argument name is invalid: ${t}`);const E=r(i);if(!fl.test(E))throw new TypeError(`argument val is invalid: ${i}`);let b=t+"="+E;if(!f)return b;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);b+="; Max-Age="+f.maxAge}if(f.domain){if(!dl.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);b+="; Domain="+f.domain}if(f.path){if(!pl.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);b+="; Path="+f.path}if(f.expires){if(!bl(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);b+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(b+="; HttpOnly"),f.secure&&(b+="; Secure"),f.partitioned&&(b+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return b}function xl(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function bl(t){return ml.call(t)==="[object Date]"}Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.deleteCookie=Ft.getCookie=Ft.setCookie=void 0;const Mr=qn,wl=(t,i,f)=>{if(typeof document>"u")return;const r=new Date;r.setTime(r.getTime()+f*24*60*60*1e3),document.cookie=(0,Mr.serialize)(t,i,{expires:r,path:"/"})};Ft.setCookie=wl;const Sl=t=>{if(!(typeof document>"u"))try{return(0,Mr.parse)(document.cookie)[t]}catch(i){console.debug("Error parsing cookies:",i);return}};Ft.getCookie=Sl;const El=t=>{typeof document>"u"||(document.cookie=(0,Mr.serialize)(t,"",{expires:new Date(0),path:"/"}))};Ft.deleteCookie=El;var kl=Ze&&Ze.__createBinding||(Object.create?function(t,i,f,r){r===void 0&&(r=f);var E=Object.getOwnPropertyDescriptor(i,f);(!E||("get"in E?!i.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(t,r,E)}:function(t,i,f,r){r===void 0&&(r=f),t[r]=i[f]}),_l=Ze&&Ze.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),ro=Ze&&Ze.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(f){var r=[];for(var E in f)Object.prototype.hasOwnProperty.call(f,E)&&(r[r.length]=E);return r},t(i)};return function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var r=t(i),E=0;E<r.length;E++)r[E]!=="default"&&kl(f,i,r[E]);return _l(f,i),f}}(),zn=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Dt=zn(tr),yn=vt,io=zn(Fr),Cl=$n,Ol=zn(jr),Vn=ro(ut),vn=zn(Nr),xn=ro(Ft),Gn=Xe,oo="api.addsearch.com",Br="addsearchUserToken";class Rl{constructor(i,f){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=f||"",this.apiHostname=oo,this.statsApiHostname=oo,this.settings=new Ol.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=xn.getCookie(Br)||Vn.generateUUID()}search(i,f){var r;let E=null,b=null;if(typeof i=="string"&&typeof f=="function")E=i,b=f;else if(typeof i=="function"&&!f)E=this.settings.getSettings().keyword||null,b=i;else if(this.settings.getSettings().callback)E=this.settings.getSettings().keyword||null,b=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>b),this.settings.setKeyword(E),(r=this.throttledSearchFetch)!==null&&r!==void 0||(this.throttledSearchFetch=(0,vn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),b)}aiAnswers(i,f){var r;this.settings.setCallback(()=>f),this.settings.setKeyword(i),(r=this.throttledAiAnswersFetch)!==null&&r!==void 0||(this.throttledAiAnswersFetch=(0,vn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),f)}putSentimentClick(i,f){return(0,Cl.putSentimentClick)(this.apiHostname,this.sitekey,i,f)}suggestions(i,f){var r;if(!i||!f||!Vn.isFunction(f))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),(r=this.throttledSuggestionsFetch)!==null&&r!==void 0||(this.throttledSuggestionsFetch=(0,vn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),f)}autocomplete(i,f,r){var E;if(!i||!f||!r||!Vn.isFunction(r))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,f),(E=this.throttledAutocompleteFetch)!==null&&E!==void 0||(this.throttledAutocompleteFetch=(0,vn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),r)}fetchCustomApi(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());b.facetFields=(E=b.facetFields)===null||E===void 0?void 0:E.filter(c=>i===c),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}fetchRangeFacets(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());(E=b.rangeFacets)!==null&&E!==void 0||(b.rangeFacets=[]),b.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}recommendations(i,f){var r;if(!i||!f||!Vn.isFunction(f))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");(r=this.throttledRecommendationFetch)!==null&&r!==void 0||(this.throttledRecommendationFetch=(0,vn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",this.settings.getSettings(),f,!1,null,i)}getDocument(i){return(0,yn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,yn.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,yn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,yn.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,yn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,f){(!f||!f.statsApiRequestOnly)&&(this.apiHostname=i),(!f||!f.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,f){this.settings.addCustomFieldFilter(i,f)}removeCustomFieldFilter(i,f){this.settings.removeCustomFieldFilter(i,f)}setPriceRangeFilter(i,f){this.settings.setPriceRangeFilter(i,f)}setDateFilter(i,f){this.settings.setDateFilter(i,f)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,f,r,E){this.settings.setPaging(i,f,r,E)}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,f){this.settings.addRangeFacet(i,f)}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)}setApiMethod(i){this.settings.setApiMethod(i)}sendStatsEvent(i,f,r){const E=!this.useStatsSessionId&&so&&ao;if(E&&!xn.getCookie(Br)&&xn.setCookie(Br,this.userTokenInPersonalization,lo),i==="search"){const b={action:"search",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,numberOfResults:r.numberOfResults,tag:this.getSettings().analyticsTag};(0,io.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,docid:r.documentId,position:r.position,tag:this.getSettings().analyticsTag};(0,io.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,f){so=i,f&&(lo=f)}consentAddSearchCookie(i){ao=i}setApiRequestInterceptor(i,f={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:r=!1,statsApiRequestOnly:E=!1}=f;!r&&!E?((0,Gn.setRequestInterceptor)(i,"searchApi"),(0,Gn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(r&&(0,Gn.setRequestInterceptor)(i,"searchApi"),E&&((0,Gn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}setCookie(i,f,r){xn.setCookie(i,f,r)}getCookie(i){return xn.getCookie(i)}searchResultClicked(i,f){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:f})}}let so=!1,ao=!1,lo=180;var Al=Rl;const Tl=Gr(Al);var co={exports:{}};/*! addsearch-search-ui 0.9.2 */(function(t,i){(function(f,r){t.exports=r()})(Ze,function(){return function(){var f={2987:function(b,c,n){b.exports=n(9770).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)},1543:function(b,c,n){n.d(c,{FW:function(){return o},mQ:function(){return e},Lt:function(){return v},Rn:function(){return C},jK:function(){return u},wF:function(){return p},On:function(){return a},bz:function(){return s}});const v="IS_LOADING_AI_ANSWERS",o="AI_ANSWERS_RESULT",e="AI_ANSWERS_RESULT_ERROR",p="SET_AI_ANSWERS_SENTIMENT",C="SET_AI_ANSWERS_ANSWER_EXPANDED",u="SET_AI_ANSWERS_HIDDEN";function a(g,d){return m=>{m({type:e,payload:!1}),m({type:v,payload:!0}),g.aiAnswers(d,l=>{if(l.error)m({type:e,payload:!0});else{const S={id:(h=l).conversation_id,answerText:h.answer||"",sources:((_=h.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(I=>({url:I.url,title:I.title})))||[]};m({type:p,payload:"neutral"}),m({type:o,payload:S})}var h,_;m({type:v,payload:!1})})}}function s(g,d,m){return l=>{l({type:p,payload:m}),g.putSentimentClick(d,m).then().catch(h=>{console.error(h)})}}},6148:function(b,c,n){n.d(c,{Ah:function(){return ee},B5:function(){return d},C0:function(){return G},FJ:function(){return m},GA:function(){return B},GB:function(){return g},Jd:function(){return _},KR:function(){return o},Km:function(){return a},MO:function(){return A},OA:function(){return U},Pf:function(){return I},VW:function(){return v},XD:function(){return oe},Xr:function(){return T},d5:function(){return S},dC:function(){return z},h$:function(){return s},hR:function(){return j},hx:function(){return l},il:function(){return h},kw:function(){return e},nl:function(){return N},nn:function(){return C},p3:function(){return u},vT:function(){return p}});const v="AUTOCOMPLETE_FETCH_START",o="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",p="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",u="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",s="AUTOCOMPLETE_SHOW",g="AUTOCOMPLETE_HIDE",d="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",m="HIDE_AUTOMATICALLY",l="KEYBOARD_EVENT",h="ARROW_UP",_="ARROW_DOWN",S="SET_ACTIVE_SUGGESTION",I="suggestions",T="custom_fields";function A(Y,W){return W&&W!==""?(Z,ce)=>{const ge=ce().keyword.minLengthRequiredToFetch;W.length<ge||(Z(L(I)),Y.suggestions(W,_e=>{ce().keyword.value!==""&&Z(function(Ce,Re){return{type:o,keyword:Ce,results:Re}}(W,_e))}))}:{type:p}}function j(Y,W,Z){return W&&W!==""?(ce,ge)=>{const _e=ge().keyword.minLengthRequiredToFetch;W.length<_e||(ce(L(T)),Y.autocomplete(Z,W,Ce=>{ge().keyword.value!==""&&ce({type:e,results:Ce})}))}:{type:C}}function U(Y,W,Z,ce){return Z&&Z!==""?(ge,_e)=>{const Ce=_e().keyword.minLengthRequiredToFetch;Z.length<Ce||(ge(L(W)),Y.search(Z,Re=>{_e().keyword.value!==""&&ge(function(He,Ie,Ke,Me){return{type:u,keyword:He,results:Ie,jsonKey:Ke,appendResults:Me}}(Z,Re,W,ce))}))}:{type:a}}function L(Y){return{type:v,jsonKey:Y}}function B(){return{type:s}}function N(){return{type:g}}function z(){return{type:d}}function G(Y){return{type:l,direction:Y}}function oe(Y,W){return{type:S,index:Y,setSuggestionToSearchField:W}}function ee(Y){return{type:m,hideAutomatically:Y}}},6843:function(b,c,n){n.d(c,{IJ:function(){return v},Ow:function(){return e},nb:function(){return o},np:function(){return p}});const v="SET_FIELD_STATS",o="CLEAR_FIELD_STATS";function e(C,u){return{type:v,fieldStats:C,callBy:u}}function p(){return{type:o}}},549:function(b,c,n){n.d(c,{CY:function(){return v},Gc:function(){return L},II:function(){return A},IS:function(){return g},JS:function(){return u},Ni:function(){return j},QW:function(){return s},Tv:function(){return m},Uj:function(){return o},VH:function(){return h},VN:function(){return C},XI:function(){return e},Xh:function(){return I},cl:function(){return a},eu:function(){return S},hx:function(){return B},jU:function(){return U},ks:function(){return T},u3:function(){return _},uR:function(){return p},ul:function(){return l},vj:function(){return d}});const v="TOGGLE_FILTER",o="SET_RANGE_FILTER",e="REGISTER_FILTER",p="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",u="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",s="TOGGLE_HIERARCHICAL_FACET_FILTER",g="TOGGLE_RANGE_FACET_FILTER",d="CLEAR_SELECTED_FILTERS_AND_FACETS",m="CLEAR_SELECTED_RANGE_FACETS";function l(N){return{type:e,filterObj:N}}function h(N,z,G){return{type:v,filterName:N,value:z,refreshSearch:G}}function _(N,z,G){return{type:o,field:N,from:z,to:G}}function S(N){return{type:p,json:N}}function I(N){return{type:C,json:N}}function T(N,z,G){return{type:u,json:N,refreshSearch:z,field:G}}function A(N,z,G){return{type:a,field:N,value:z,refreshSearch:G}}function j(N,z,G,oe,ee){return{type:s,field:N,container:z,confFields:G,value:oe,refreshSearch:ee}}function U(N,z,G,oe,ee){return{type:g,field:N,values:z,key:G,refreshSearch:oe,byActiveFilterComponent:ee}}function L(N,z){return{type:m,refreshSearch:N,setHistory:z}}function B(N,z){return{type:d,refreshSearch:N,byActiveFilterComponent:z}}},6993:function(b,c,n){n.d(c,{Ai:function(){return e},Le:function(){return o},QR:function(){return v},_T:function(){return p}});const v="KEYWORD",o="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,u,a,s){return{type:v,value:C,skipAutocomplete:u,searchFieldContainerId:a||null,setSearchFieldValue:s||!1}}function p(C){return{type:o,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,c,n){n.d(c,{I:function(){return e},N:function(){return o}});var v=n(4903);const o="SET_PAGE";function e(p,C,u,a){u===!1||p.getSettings().paging.page===C&&C!==1||(0,v.Dh)(v.sh.PAGE,C+"",null,a);const s=p.getSettings().paging;return p.setPaging(C,s.pageSize,s.sortBy,s.sortOrder),{type:o,page:C}}},878:function(b,c,n){n.d(c,{KE:function(){return p},OU:function(){return e},T7:function(){return u},iM:function(){return o},vh:function(){return C}}),n(9770),n(4903);var v=n(3007);const o="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",p="CLEAR_RECOMMENDATION";function C(a,s){return g=>{switch(s.type){case v.Qc:a.recommendations(s,d=>{var m;g((m=s.container,{type:o,container:m,recommendType:"frequently-bought-together",results:d}))});break;case v.uH:a.recommendations(s,d=>{var m;g((m=s.container,{type:e,container:m,recommendType:"related-items",results:d}))})}}}function u(){return{type:p}}},1944:function(b,c,n){n.d(c,{AX:function(){return d},EF:function(){return g},d3:function(){return p},j2:function(){return C},lq:function(){return m},mY:function(){return a},xE:function(){return u},y$:function(){return s}});var v=n(9770),o=n(4903),e=n(6351);const p="START",C="SET_SEARCH_RESULTS_PAGE_URL",u="SEARCH_FETCH_START",a="SEARCH_RESULTS",s="CLEAR_SEARCH_RESULTS";function g(l,h,_,S,I,T,A,j,U){return(0,o.Dh)(o.sh.SEARCH,h,I,T),h&&h!==""?(L,B)=>{const N=B().keyword.minLengthRequiredToFetch;I&&h.length<N||(L({type:u}),l.search(h,z=>{if((U||A)&&z&&z.hits&&z.hits.length){var G=(U||A).replace("custom_fields.",""),oe=function(ee,Y,W){return Y.find(Z=>{if(!Z.custom_fields||!Z.custom_fields[W])return!1;if(typeof Z.custom_fields[W]=="string")return ee.toLowerCase()===Z.custom_fields[W].toLowerCase();if(typeof Z.custom_fields[W]=="object"&&Z.custom_fields[W].length){const ce=Z.custom_fields[W].map(_e=>_e.toLowerCase()),ge=ee.toLowerCase();return ce.indexOf(ge)>-1}return!1})}(h,z.hits,G);if(oe&&!I)return void window.location.replace(oe.url)}L(function(ee,Y,W,Z,ce,ge){if(/top-delay-\d*$/.test(Z)){var _e=parseInt(Z.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},_e)}else Z==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(v.H)===-1){const Ce=W?W.total_hits:0,Re=W?W.processing_time_ms:0;(0,e.mh)(ee,Y,Ce,Re)}return{type:a,keyword:Y,results:W,appendResults:ce,requestBy:ge}}(l,h,z,_,S,j))}))}:{type:s}}function d(l){return l==="top"&&window.scrollTo(0,0),{type:s}}function m(l){return{type:C,url:l}}},4826:function(b,c,n){n.d(c,{JK:function(){return o},VD:function(){return e},l$:function(){return p},lD:function(){return v}});const v="SEGMENTED_SEARCH_START",o="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function p(C,u,a){return a&&a!==""?s=>{s(function(g){return{type:v,jsonKey:g}}(u)),C.search(a,g=>s(function(d,m,l){return{type:o,jsonKey:d,keyword:m,results:l}}(u,a,g)))}:{type:e}}},6353:function(b,c,n){n.d(c,{ER:function(){return e},O0:function(){return o},Ul:function(){return p}});var v=n(4903);const o="SORTBY",e="desc";function p(C,u,a,s){s&&(0,v.Dh)(v.sh.SORTBY,JSON.stringify({field:u,order:a}),null,s);const g=C.getSettings().paging;return C.setPaging(g.page,g.pageSize,u,a),{type:o,field:u,order:a}}},6510:function(b,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return I},A:function(){return S}});var v=n(2334),o=n.n(v),e=n(6148),p=n(1944),C=n(6993),u=n(4922),a=n(4379),s=n(6351),g=n(4903),d=n(3923),m=n(209),l=n.n(m),h=n(1543);function _(T,A,j){var U;return(A=typeof(U=function(L,B){if(typeof L!="object"||!L)return L;var N=L[Symbol.toPrimitive];if(N!==void 0){var z=N.call(L,B||"default");if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(L)}(A,"string"))=="symbol"?U:String(U))in T?Object.defineProperty(T,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):T[A]=j,T}class S{constructor(A,j,U,L){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=A,this.reduxStore=j,this.hasAiAnswers=U,this.conf=L,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const B=this.conf.categorySelectionFunction||d.GK;(0,d.g3)("selectSearchResultCategory",N=>B(N,this.conf.categoryAliases)),(0,a.A)(L.containerId)&&((0,u.G)(this.reduxStore,"autocomplete",N=>this.autocompleteResultsChanged(N)),(0,u.G)(this.reduxStore,"keyword",N=>this.keywordChanged(N))),L.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),L.sources&&L.sources.length&&L.sources.forEach(N=>{N.client&&N.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(A){if(A.dropRendering)return void this.clearRenderedHtml();const j=this.reduxStore.getState().keyword.value;A.pendingRequests.length>0||j.length<this.minLengthRequired||(A.keyword&&A.keyword!==""&&this.sendSearchAnalytics(A),this.render(A))}sendSearchAnalytics(A){let j=[];this.conf.sources.forEach(U=>{if(U.type===I.SEARCH&&U.collectSearchAnalytics){const L=U.client||this.client,B=A.searchResultsStats[U.jsonKey]?A.searchResultsStats[U.jsonKey].total_hits:0;j.push({client:L,numberOfResults:B})}}),(0,s.ME)(A.keyword,j)}keywordChanged(A){if(A.skipAutocomplete)return;const j=A.value;this.conf.sources.forEach(U=>{const L=U.client||this.client;if(U.type===I.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(L,j));else if(U.type===I.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(L,j,U.field));else if(U.type===I.SEARCH){const B=L.getSettings().paging;L.setPaging(1,B.pageSize,B.sortBy,B.sortOrder),this.reduxStore.dispatch((0,e.OA)(L,U.jsonKey,j,this.hasAiAnswers))}})}loadMore(A){this.conf.sources.forEach(j=>{const U=j.client;U&&j.type===I.SEARCH&&(U.nextPage(),this.reduxStore.dispatch((0,e.OA)(U,j.jsonKey,A,this.hasAiAnswers,!0)))})}render(A){if(A.visible===!1)return void this.clearRenderedHtml();const{suggestions:j,customFields:U,searchResults:L,activeSuggestionIndex:B}=A,N={activeSuggestionIndex:B,suggestions:j,customFields:U,searchResults:L};let z;if(z=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):l()(N),this.renderedHtml===z)return;const G=document.getElementById(this.conf.containerId);G.innerHTML=z,this.renderedHtml=z,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const oe=G.querySelector(".suggestions")?G.querySelectorAll(".suggestions > li"):[],ee=G.querySelectorAll(".suggestions");for(let Y=0;Y<oe.length;Y++)oe[Y].onmousedown=W=>this.suggestionMouseDown(W),ee.length<=1&&(oe[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(L[Object.keys(L)[0]]){const Y=G.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(Z=>{Z.type===I.SEARCH&&(W||(W=Z.client))}),W||(W=this.client),(0,s.$P)(W,Y,{hits:L[Object.keys(L)[0]]})}this.conf.infiniteScrollElement&&!A.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(G)}suggestionMouseDown(A){const j=A.target.getAttribute("data-keyword"),U=this.reduxStore;U.dispatch((0,e.dC)()),U.dispatch((0,C.Ai)(j,!0,null,!0));const L=U.getState().search.searchResultsPageUrl;L?(0,g.lG)(L,j):(U.dispatch((0,p.EF)(this.client,j,null,null,null,U)),this.hasAiAnswers&&U.dispatch((0,h.On)(this.client,j)))}suggestionMouseEnter(A){const j=parseInt(A.target.getAttribute("data-index"),10);j!==null&&j!==this.lastOnmouseOver&&(this.lastOnmouseOver=j,this.reduxStore.dispatch((0,e.XD)(j,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const A=this.conf.infiniteScrollElement;if(A.scrollHeight>0&&Math.ceil(A.offsetHeight+A.scrollTop)>=A.scrollHeight){const j=this.reduxStore.getState().keyword.value;this.loadMore(j)}}}}const I={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,c,n){n.d(c,{A:function(){return a},a:function(){return u}});var v=n(1944),o=n(5756),e=n(4922),p=n(4903),C=n(4826);function u(s,g,d){let m={and:[]};g&&m.and.push(g);let l={};s.allAvailableFilters.forEach(h=>{let _={or:[]};for(let S in h)s.activeFilters[S]&&!l[S]&&(_.or.push(h[S].filter),l[S]=!0);_.or.length>0&&m.and.push(_)});for(let h in s.activeRangeFilters)m.and.push({range:{[h]:Object.assign({},s.activeRangeFilters[h])}});for(let h in s.activeFacets){let _={or:[]};for(let S in s.activeFacets[h])if(h!==d){const I={};I[h]=S,_.or.push(I)}_.or.length>0&&m.and.push(_)}for(let h in s.activeHierarchicalFacets){let _={or:[]};for(let S in s.activeHierarchicalFacets[h])for(let I in s.activeHierarchicalFacets[h][S])if(!d||d.indexOf(S)===-1){const T={};T[S]=I,_.or.push(T)}_.or.length>0&&m.and.push(_)}for(let h in s.activeRangeFacets){let _={or:[]};for(let S in s.activeRangeFacets[h])if(h!==d){const I={range:{[h]:s.activeRangeFacets[h][S]}};_.or.push(I)}_.or.length>0&&m.and.push(_)}return m.and.length>0?m:{}}class a{constructor(g,d,m,l,h,_,S){this.client=g,this.reduxStore=d,this.createFilterObjectFunction=m,this.onFilterChange=l,this.onFilteredSearchRefresh=S,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",I=>this.onFilterStateChange(I,h))}onFilterStateChange(g,d){if(g.refreshSearch){(0,p.Dh)(p.sh.FILTERS,(0,p.IR)(g.activeFilters),null,this.reduxStore),(0,p.Dh)(p.sh.FACETS,(0,p.IR)(g.activeFacets),null,this.reduxStore),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore);const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m);const l=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,o.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,v.EF)(this.client,l,null,null,null,this.reduxStore,null,g.targetFacetGroup));for(let h in this.segmentedSearchClients){const _=this.createFilterObjectFunction(g,this.segmentedSearchClients[h].originalFilters);this.segmentedSearchClients[h].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[h].client,h,l))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(g.setHistory){const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(g.activeFilters)}}},9369:function(b,c,n){n.d(c,{FILTER_TYPE:function(){return L},A:function(){return U}});var v=n(2334),o=n.n(v),e=n(4922),p=n(549),C=n(6353),u=n(4379),a=n(3668),s=n.n(a),g=n(8810),d=n.n(g),m=n(5509),l=n.n(m),h=n(1572),_=n.n(h),S=n(948),I=n.n(S),T=n(3329),A=n.n(T);const j="nofilter";class U{constructor(N,z,G){this.client=N,this.reduxStore=z,this.conf=G,this.activeFilter=null,(0,u.A)(G.containerId)&&(this.reduxStore.dispatch((0,p.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",oe=>this.render(oe)),this.conf.type===L.RANGE&&(0,e.G)(this.reduxStore,"search",oe=>this.searchResultsChanged(oe)))}searchResultsChanged(N){!N.loading&&N.results.fieldStats&&N.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(N){let z=Object.assign({},this.conf);this.activeFilter=null;let G=!1;for(let W in z.options)N.activeFilters[W]?(z.options[W].active=!0,this.activeFilter=W,G=!0):z.options[W].active=!1;!G&&z.options&&z.options[j]&&(z.options[j].active=!0);let oe,ee=null;if(this.conf.type===L.TABS)ee=_();else if(this.conf.type===L.TAGS)ee=l();else if(this.conf.type===L.CHECKBOX_GROUP)ee=s();else if(this.conf.type===L.RADIO_GROUP)ee=d();else if(this.conf.type===L.RANGE){N.activeRangeFilters[this.conf.field]&&(z.from=N.activeRangeFilters[this.conf.field].gte,z.to=N.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:Z,max:ce}=W.fieldStats[this.conf.field];z.fromPlaceholder=Z==="Infinity"?"":Z,z.toPlaceholder=ce==="-Infinity"?"":ce}ee=A()}else ee=I();if(oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(z):this.conf.template?o().compile(this.conf.template)(z):ee(z),this.renderedHtml===oe)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=oe,this.renderedHtml=oe,this.conf.type===L.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===L.TABS){const W=Y.querySelectorAll("[data-filter]");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.getAttribute("data-filter")))}else if(this.conf.type===L.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.value))}else this.conf.type===L.RANGE?this.attachRangeFilterEvents(Y):(0,u.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,p.VH)(W,1))})}singleActiveChangeEvent(N){const z=N===j,G=this.reduxStore;N!==this.activeFilter&&(this.conf.setSorting&&G.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?G.dispatch((0,p.hx)(z)):this.activeFilter&&G.dispatch((0,p.VH)(this.activeFilter,1,z)),z?this.activeFilter=null:(this.activeFilter=N,G.dispatch((0,p.VH)(N,1,!0))))}attachRangeFilterEvents(N){const z=N.querySelectorAll("input");for(let oe=0;oe<z.length;oe++)z[oe].addEventListener("change",ee=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ee.target.value)?ee.target.setAttribute("data-valid","false"):(ee.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,N.querySelector('input[name="from"]').value,N.querySelector('input[name="to"]').value))});const G=N.querySelector("button");G&&G.addEventListener("click",oe=>this.reduxStore.dispatch((0,p.u3)(this.conf.field,null,null)))}rangeChangeEvent(N,z,G){const oe=z!==""?z:null,ee=G!==""?G:null;this.reduxStore.dispatch((0,p.u3)(N,oe,ee))}}const L={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 d},A:function(){return g}});var v=n(2334),o=n.n(v),e=n(5756),p=n(1944),C=n(4922),u=n(4379),a=n(8905),s=n.n(a);class g{constructor(l,h,_){this.client=l,this.reduxStore=h,this.conf=_,(0,u.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",S=>this.render(S)),_.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(l){const h=l.results.page||1,_=this.client.getSettings().paging.pageSize,S=l.results.total_hits||0,I=Math.ceil(S/_),T={type:this.conf.type,hasMorePages:h<I,isLoading:l.loading,totalHits:S};let A;if(A=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):this.conf.template?o().compile(this.conf.template)(T):s()(T),this.renderedHtml===A)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=A,this.renderedHtml=A,this.conf.type===d.BUTTON){const U=j.querySelector("button");U&&(U.onclick=L=>this.loadMore())}else this.conf.type===d.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 h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,h,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const l=this.reduxStore.getState().search.loading,h=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!l&&h)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,S=h.getBoundingClientRect().top;S>0&&S<_&&this.loadMore()}}}const d={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return A},A:function(){return T}});var v=n(2334),o=n.n(v),e=n(549),p=n(4922),C=n(4379),u=n(8526),a=n(6843);function s(j){var U=Math.ceil(Math.log10(j+1));if(U===1)return 0;var L=Math.pow(10,U-1);return Math.floor(j/L)*L}function g(j){var U=Math.ceil(Math.log10(j+1)),L=Math.pow(10,U-1);return Math.ceil(j/L)*L}var d=n(7435),m=n(6427),l=n.n(m),h=n(1204),_=n.n(h);function S(){let j,U;function L(oe,ee){oe&&(oe.textContent=ee)}function B(oe,ee){const[Y,W]=N(oe,ee);typeof j=="function"&&j({activeRange:[Y,W]})}function N(oe,ee){return[parseFloat(oe.value),parseFloat(ee.value)]}function z(oe,ee,Y,W,Z){const ce=ee.max-ee.min,ge=oe.value-ee.min,_e=ee.value-ee.min;Z.style.background=`linear-gradient(
46
+ */(function(t){const i=Bn,f=xr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;const E=2147483647;t.kMaxLength=E,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),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(O,y),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>E)throw new RangeError('The value "'+O+'" is invalid for option "size"');const y=new Uint8Array(O);return Object.setPrototypeOf(y,n.prototype),y}function n(O,y,w){if(typeof O=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return v(O,y,w)}n.poolSize=8192;function v(O,y,w){if(typeof O=="string")return C(O,y);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(Me(O,ArrayBuffer)||O&&Me(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(O,SharedArrayBuffer)||O&&Me(O.buffer,SharedArrayBuffer)))return s(O,y,w);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,y,w);const q=g(O);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),y,w);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,y,w){return v(O,y,w)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function o(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,y,w){return o(O),O<=0?c(O):y!==void 0?typeof w=="string"?c(O).fill(y,w):c(O).fill(y):c(O)}n.alloc=function(O,y,w){return e(O,y,w)};function p(O){return o(O),c(O<0?0:d(O)|0)}n.allocUnsafe=function(O){return p(O)},n.allocUnsafeSlow=function(O){return p(O)};function C(O,y){if((typeof y!="string"||y==="")&&(y="utf8"),!n.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=l(O,y)|0;let F=c(w);const q=F.write(O,y);return q!==w&&(F=F.slice(0,q)),F}function u(O){const y=O.length<0?0:d(O.length)|0,w=c(y);for(let F=0;F<y;F+=1)w[F]=O[F]&255;return w}function a(O){if(Me(O,Uint8Array)){const y=new Uint8Array(O);return s(y.buffer,y.byteOffset,y.byteLength)}return u(O)}function s(O,y,w){if(y<0||O.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let F;return y===void 0&&w===void 0?F=new Uint8Array(O):w===void 0?F=new Uint8Array(O,y):F=new Uint8Array(O,y,w),Object.setPrototypeOf(F,n.prototype),F}function g(O){if(n.isBuffer(O)){const y=d(O.length)|0,w=c(y);return w.length===0||O.copy(w,0,0,y),w}if(O.length!==void 0)return typeof O.length!="number"||X(O.length)?c(0):u(O);if(O.type==="Buffer"&&Array.isArray(O.data))return u(O.data)}function d(O){if(O>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return O|0}function m(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==n.prototype},n.compare=function(y,w){if(Me(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),Me(w,Uint8Array)&&(w=n.from(w,w.offset,w.byteLength)),!n.isBuffer(y)||!n.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let F=y.length,q=w.length;for(let J=0,te=Math.min(F,q);J<te;++J)if(y[J]!==w[J]){F=y[J],q=w[J];break}return F<q?-1:q<F?1:0},n.isEncoding=function(y){switch(String(y).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(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return n.alloc(0);let F;if(w===void 0)for(w=0,F=0;F<y.length;++F)w+=y[F].length;const q=n.allocUnsafe(w);let J=0;for(F=0;F<y.length;++F){let te=y[F];if(Me(te,Uint8Array))J+te.length>q.length?(n.isBuffer(te)||(te=n.from(te)),te.copy(q,J)):Uint8Array.prototype.set.call(q,te,J);else if(n.isBuffer(te))te.copy(q,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return q};function l(O,y){if(n.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Me(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 w=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&w===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Se(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return ve(O).length;default:if(q)return F?-1:Se(O).length;y=(""+y).toLowerCase(),q=!0}}n.byteLength=l;function h(O,y,w){let F=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,y,w);case"utf8":case"utf-8":return N(this,y,w);case"ascii":return oe(this,y,w);case"latin1":case"binary":return ee(this,y,w);case"base64":return B(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,y,w);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,y,w){const F=O[y];O[y]=O[w],O[w]=F}n.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)_(this,w,w+1);return this},n.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)_(this,w,w+3),_(this,w+1,w+2);return this},n.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)_(this,w,w+7),_(this,w+1,w+6),_(this,w+2,w+5),_(this,w+3,w+4);return this},n.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?N(this,0,y):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(y){if(!n.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:n.compare(this,y)===0},n.prototype.inspect=function(){let y="";const w=t.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},r&&(n.prototype[r]=n.prototype.inspect),n.prototype.compare=function(y,w,F,q,J){if(Me(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),!n.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),F===void 0&&(F=y?y.length:0),q===void 0&&(q=0),J===void 0&&(J=this.length),w<0||F>y.length||q<0||J>this.length)throw new RangeError("out of range index");if(q>=J&&w>=F)return 0;if(q>=J)return-1;if(w>=F)return 1;if(w>>>=0,F>>>=0,q>>>=0,J>>>=0,this===y)return 0;let te=J-q,Te=F-w;const ze=Math.min(te,Te),Pe=this.slice(q,J),Ge=y.slice(w,F);for(let ge=0;ge<ze;++ge)if(Pe[ge]!==Ge[ge]){te=Pe[ge],Te=Ge[ge];break}return te<Te?-1:Te<te?1:0};function S(O,y,w,F,q){if(O.length===0)return-1;if(typeof w=="string"?(F=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,X(w)&&(w=q?0:O.length-1),w<0&&(w=O.length+w),w>=O.length){if(q)return-1;w=O.length-1}else if(w<0)if(q)w=0;else return-1;if(typeof y=="string"&&(y=n.from(y,F)),n.isBuffer(y))return y.length===0?-1:I(O,y,w,F,q);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(O,y,w):Uint8Array.prototype.lastIndexOf.call(O,y,w):I(O,[y],w,F,q);throw new TypeError("val must be string, number or Buffer")}function I(O,y,w,F,q){let J=1,te=O.length,Te=y.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||y.length<2)return-1;J=2,te/=2,Te/=2,w/=2}function ze(Ge,ge){return J===1?Ge[ge]:Ge.readUInt16BE(ge*J)}let Pe;if(q){let Ge=-1;for(Pe=w;Pe<te;Pe++)if(ze(O,Pe)===ze(y,Ge===-1?0:Pe-Ge)){if(Ge===-1&&(Ge=Pe),Pe-Ge+1===Te)return Ge*J}else Ge!==-1&&(Pe-=Pe-Ge),Ge=-1}else for(w+Te>te&&(w=te-Te),Pe=w;Pe>=0;Pe--){let Ge=!0;for(let ge=0;ge<Te;ge++)if(ze(O,Pe+ge)!==ze(y,ge)){Ge=!1;break}if(Ge)return Pe}return-1}n.prototype.includes=function(y,w,F){return this.indexOf(y,w,F)!==-1},n.prototype.indexOf=function(y,w,F){return S(this,y,w,F,!0)},n.prototype.lastIndexOf=function(y,w,F){return S(this,y,w,F,!1)};function T(O,y,w,F){w=Number(w)||0;const q=O.length-w;F?(F=Number(F),F>q&&(F=q)):F=q;const J=y.length;F>J/2&&(F=J/2);let te;for(te=0;te<F;++te){const Te=parseInt(y.substr(te*2,2),16);if(X(Te))return te;O[w+te]=Te}return te}function A(O,y,w,F){return be(Se(y,O.length-w),O,w,F)}function j(O,y,w,F){return be(Ae(y),O,w,F)}function U(O,y,w,F){return be(ve(y),O,w,F)}function L(O,y,w,F){return be(me(y,O.length-w),O,w,F)}n.prototype.write=function(y,w,F,q){if(w===void 0)q="utf8",F=this.length,w=0;else if(F===void 0&&typeof w=="string")q=w,F=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(F)?(F=F>>>0,q===void 0&&(q="utf8")):(q=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-w;if((F===void 0||F>J)&&(F=J),y.length>0&&(F<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let te=!1;for(;;)switch(q){case"hex":return T(this,y,w,F);case"utf8":case"utf-8":return A(this,y,w,F);case"ascii":case"latin1":case"binary":return j(this,y,w,F);case"base64":return U(this,y,w,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,y,w,F);default:if(te)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),te=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(O,y,w){return y===0&&w===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(y,w))}function N(O,y,w){w=Math.min(O.length,w);const F=[];let q=y;for(;q<w;){const J=O[q];let te=null,Te=J>239?4:J>223?3:J>191?2:1;if(q+Te<=w){let ze,Pe,Ge,ge;switch(Te){case 1:J<128&&(te=J);break;case 2:ze=O[q+1],(ze&192)===128&&(ge=(J&31)<<6|ze&63,ge>127&&(te=ge));break;case 3:ze=O[q+1],Pe=O[q+2],(ze&192)===128&&(Pe&192)===128&&(ge=(J&15)<<12|(ze&63)<<6|Pe&63,ge>2047&&(ge<55296||ge>57343)&&(te=ge));break;case 4:ze=O[q+1],Pe=O[q+2],Ge=O[q+3],(ze&192)===128&&(Pe&192)===128&&(Ge&192)===128&&(ge=(J&15)<<18|(ze&63)<<12|(Pe&63)<<6|Ge&63,ge>65535&&ge<1114112&&(te=ge))}}te===null?(te=65533,Te=1):te>65535&&(te-=65536,F.push(te>>>10&1023|55296),te=56320|te&1023),F.push(te),q+=Te}return G(F)}const z=4096;function G(O){const y=O.length;if(y<=z)return String.fromCharCode.apply(String,O);let w="",F=0;for(;F<y;)w+=String.fromCharCode.apply(String,O.slice(F,F+=z));return w}function oe(O,y,w){let F="";w=Math.min(O.length,w);for(let q=y;q<w;++q)F+=String.fromCharCode(O[q]&127);return F}function ee(O,y,w){let F="";w=Math.min(O.length,w);for(let q=y;q<w;++q)F+=String.fromCharCode(O[q]);return F}function Y(O,y,w){const F=O.length;(!y||y<0)&&(y=0),(!w||w<0||w>F)&&(w=F);let q="";for(let J=y;J<w;++J)q+=le[O[J]];return q}function W(O,y,w){const F=O.slice(y,w);let q="";for(let J=0;J<F.length-1;J+=2)q+=String.fromCharCode(F[J]+F[J+1]*256);return q}n.prototype.slice=function(y,w){const F=this.length;y=~~y,w=w===void 0?F:~~w,y<0?(y+=F,y<0&&(y=0)):y>F&&(y=F),w<0?(w+=F,w<0&&(w=0)):w>F&&(w=F),w<y&&(w=y);const q=this.subarray(y,w);return Object.setPrototypeOf(q,n.prototype),q};function Z(O,y,w){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+y>w)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y],J=1,te=0;for(;++te<w&&(J*=256);)q+=this[y+te]*J;return q},n.prototype.readUintBE=n.prototype.readUIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y+--w],J=1;for(;w>0&&(J*=256);)q+=this[y+--w]*J;return q},n.prototype.readUint8=n.prototype.readUInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]|this[y+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]<<8|this[y+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},n.prototype.readBigUInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,J=this[++y]+this[++y]*2**8+this[++y]*2**16+F*2**24;return BigInt(q)+(BigInt(J)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],J=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F;return(BigInt(q)<<BigInt(32))+BigInt(J)}),n.prototype.readIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y],J=1,te=0;for(;++te<w&&(J*=256);)q+=this[y+te]*J;return J*=128,q>=J&&(q-=Math.pow(2,8*w)),q},n.prototype.readIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=w,J=1,te=this[y+--q];for(;q>0&&(J*=256);)te+=this[y+--q]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*w)),te},n.prototype.readInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},n.prototype.readInt16LE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y]|this[y+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y+1]|this[y]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},n.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},n.prototype.readBigInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(F<<24);return(BigInt(q)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),n.prototype.readBigInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(q)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F)}),n.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!0,23,4)},n.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!1,23,4)},n.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!0,52,8)},n.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!1,52,8)};function ce(O,y,w,F,q,J){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>q||y<J)throw new RangeError('"value" argument is out of bounds');if(w+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(y,w,F,q){if(y=+y,w=w>>>0,F=F>>>0,!q){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=1,te=0;for(this[w]=y&255;++te<F&&(J*=256);)this[w+te]=y/J&255;return w+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(y,w,F,q){if(y=+y,w=w>>>0,F=F>>>0,!q){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=F-1,te=1;for(this[w+J]=y&255;--J>=0&&(te*=256);)this[w+J]=y/te&255;return w+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,255,0),this[w]=y&255,w+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function ye(O,y,w,F,q){V(y,F,q,O,w,7);let J=Number(y&BigInt(4294967295));O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,w}function _e(O,y,w,F,q){V(y,F,q,O,w,7);let J=Number(y&BigInt(4294967295));O[w+7]=J,J=J>>8,O[w+6]=J,J=J>>8,O[w+5]=J,J=J>>8,O[w+4]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w+3]=te,te=te>>8,O[w+2]=te,te=te>>8,O[w+1]=te,te=te>>8,O[w]=te,w+8}n.prototype.writeBigUInt64LE=ie(function(y,w=0){return ye(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(y,w=0){return _e(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(y,w,F,q){if(y=+y,w=w>>>0,!q){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=0,te=1,Te=0;for(this[w]=y&255;++J<F&&(te*=256);)y<0&&Te===0&&this[w+J-1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeIntBE=function(y,w,F,q){if(y=+y,w=w>>>0,!q){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=F-1,te=1,Te=0;for(this[w+J]=y&255;--J>=0&&(te*=256);)y<0&&Te===0&&this[w+J+1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},n.prototype.writeInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},n.prototype.writeInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},n.prototype.writeBigInt64LE=ie(function(y,w=0){return ye(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(y,w=0){return _e(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(O,y,w,F,q,J){if(w+F>O.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Re(O,y,w,F,q){return y=+y,w=w>>>0,q||Ce(O,y,w,4),f.write(O,y,w,F,23,4),w+4}n.prototype.writeFloatLE=function(y,w,F){return Re(this,y,w,!0,F)},n.prototype.writeFloatBE=function(y,w,F){return Re(this,y,w,!1,F)};function Ue(O,y,w,F,q){return y=+y,w=w>>>0,q||Ce(O,y,w,8),f.write(O,y,w,F,52,8),w+8}n.prototype.writeDoubleLE=function(y,w,F){return Ue(this,y,w,!0,F)},n.prototype.writeDoubleBE=function(y,w,F){return Ue(this,y,w,!1,F)},n.prototype.copy=function(y,w,F,q){if(!n.isBuffer(y))throw new TypeError("argument should be a Buffer");if(F||(F=0),!q&&q!==0&&(q=this.length),w>=y.length&&(w=y.length),w||(w=0),q>0&&q<F&&(q=F),q===F||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-w<q-F&&(q=y.length-w+F);const J=q-F;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,F,q):Uint8Array.prototype.set.call(y,this.subarray(F,q),w),J},n.prototype.fill=function(y,w,F,q){if(typeof y=="string"){if(typeof w=="string"?(q=w,w=0,F=this.length):typeof F=="string"&&(q=F,F=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!n.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(y.length===1){const te=y.charCodeAt(0);(q==="utf8"&&te<128||q==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<F)throw new RangeError("Out of range index");if(F<=w)return this;w=w>>>0,F=F===void 0?this.length:F>>>0,y||(y=0);let J;if(typeof y=="number")for(J=w;J<F;++J)this[J]=y;else{const te=n.isBuffer(y)?y:n.from(y,q),Te=te.length;if(Te===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(J=0;J<F-w;++J)this[J+w]=te[J%Te]}return this};const Ie={};function Ke(O,y,w){Ie[O]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,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,y){return`The "${O}" argument must be of type number. Received type ${typeof y}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,y,w){let F=`The value of "${O}" is out of range.`,q=w;return Number.isInteger(w)&&Math.abs(w)>2**32?q=Ne(String(w)):typeof w=="bigint"&&(q=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(q=Ne(q)),q+="n"),F+=` It must be ${y}. Received ${q}`,F},RangeError);function Ne(O){let y="",w=O.length;const F=O[0]==="-"?1:0;for(;w>=F+4;w-=3)y=`_${O.slice(w-3,w)}${y}`;return`${O.slice(0,w)}${y}`}function We(O,y,w){H(y,"offset"),(O[y]===void 0||O[y+w]===void 0)&&se(y,O.length-(w+1))}function V(O,y,w,F,q,J){if(O>w||O<y){const te=typeof y=="bigint"?"n":"";let Te;throw y===0||y===BigInt(0)?Te=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Te=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`,new Ie.ERR_OUT_OF_RANGE("value",Te,O)}We(F,q,J)}function H(O,y){if(typeof O!="number")throw new Ie.ERR_INVALID_ARG_TYPE(y,"number",O)}function se(O,y,w){throw Math.floor(O)!==O?(H(O,w),new Ie.ERR_OUT_OF_RANGE("offset","an integer",O)):y<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,O)}const de=/[^+/0-9A-Za-z-_]/g;function we(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 Se(O,y){y=y||1/0;let w;const F=O.length;let q=null;const J=[];for(let te=0;te<F;++te){if(w=O.charCodeAt(te),w>55295&&w<57344){if(!q){if(w>56319){(y-=3)>-1&&J.push(239,191,189);continue}else if(te+1===F){(y-=3)>-1&&J.push(239,191,189);continue}q=w;continue}if(w<56320){(y-=3)>-1&&J.push(239,191,189),q=w;continue}w=(q-55296<<10|w-56320)+65536}else q&&(y-=3)>-1&&J.push(239,191,189);if(q=null,w<128){if((y-=1)<0)break;J.push(w)}else if(w<2048){if((y-=2)<0)break;J.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;J.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;J.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return J}function Ae(O){const y=[];for(let w=0;w<O.length;++w)y.push(O.charCodeAt(w)&255);return y}function me(O,y){let w,F,q;const J=[];for(let te=0;te<O.length&&!((y-=2)<0);++te)w=O.charCodeAt(te),F=w>>8,q=w%256,J.push(q),J.push(F);return J}function ve(O){return i.toByteArray(we(O))}function be(O,y,w,F){let q;for(q=0;q<F&&!(q+w>=y.length||q>=O.length);++q)y[q+w]=O[q];return q}function Me(O,y){return O instanceof y||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===y.name}function X(O){return O!==O}const le=function(){const O="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const F=w*16;for(let q=0;q<16;++q)y[F+q]=O[w]+O[q]}return y}();function ie(O){return typeof BigInt>"u"?he:O}function he(){throw new Error("BigInt not supported")}})(Ni);var Bi={},br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.default="00000000-0000-0000-0000-000000000000";var Kt={},Wt={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.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(Wt,"__esModule",{value:!0});const sa=Sr;function aa(t){return typeof t=="string"&&sa.default.test(t)}Wt.default=aa,Object.defineProperty(Kt,"__esModule",{value:!0});const la=Wt;function ca(t){if(!(0,la.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)}Kt.default=ca;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.unsafeStringify=void 0;const ua=Wt,tt=[];for(let t=0;t<256;++t)tt.push((t+256).toString(16).slice(1));function Di(t,i=0){return(tt[t[i+0]]+tt[t[i+1]]+tt[t[i+2]]+tt[t[i+3]]+"-"+tt[t[i+4]]+tt[t[i+5]]+"-"+tt[t[i+6]]+tt[t[i+7]]+"-"+tt[t[i+8]]+tt[t[i+9]]+"-"+tt[t[i+10]]+tt[t[i+11]]+tt[t[i+12]]+tt[t[i+13]]+tt[t[i+14]]+tt[t[i+15]]).toLowerCase()}gt.unsafeStringify=Di;function ha(t,i=0){const f=Di(t,i);if(!(0,ua.default)(f))throw TypeError("Stringified UUID is invalid");return f}gt.default=ha;var Jt={},an={};Object.defineProperty(an,"__esModule",{value:!0});let Er;const fa=new Uint8Array(16);function da(){if(!Er){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Er=crypto.getRandomValues.bind(crypto)}return Er(fa)}an.default=da,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.updateV1State=void 0;const Hi=an,pa=gt,ln={};function ma(t,i,f){var b;let r;const E=(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)r=$i(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,f);else{const c=Date.now(),n=(0,Hi.default)();Ui(ln,c,n),r=$i(n,ln.msecs,ln.nsecs,E?void 0:ln.clockseq,E?void 0:ln.node,i,f)}return i?r:(0,pa.unsafeStringify)(r)}function Ui(t,i,f){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=f.slice(10,16),t.node[0]|=1,t.clockseq=(f[8]<<8|f[9])&16383),t.msecs=i,t}Jt.updateV1State=Ui;function $i(t,i,f,r,E,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()),f??(f=0),r??(r=(t[8]<<8|t[9])&16383),E??(E=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+f)%4294967296;b[c++]=n>>>24&255,b[c++]=n>>>16&255,b[c++]=n>>>8&255,b[c++]=n&255;const v=i/4294967296*1e4&268435455;b[c++]=v>>>8&255,b[c++]=v&255,b[c++]=v>>>24&15|16,b[c++]=v>>>16&255,b[c++]=r>>>8|128,b[c++]=r&255;for(let o=0;o<6;++o)b[c++]=E[o];return b}Jt.default=ma;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const ga=Kt,ya=gt;function va(t){const i=typeof t=="string"?(0,ga.default)(t):t,f=xa(i);return typeof t=="string"?(0,ya.unsafeStringify)(f):f}Dn.default=va;function xa(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={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function ba(t){const i=Ea(t),f=Sa(i,t.length*8);return wa(f)}function wa(t){const i=new Uint8Array(t.length*4);for(let f=0;f<t.length*4;f++)i[f]=t[f>>2]>>>f%4*8&255;return i}function zi(t){return(t+64>>>9<<4)+14+1}function Sa(t,i){const f=new Uint32Array(zi(i)).fill(0);f.set(t),f[i>>5]|=128<<i%32,f[f.length-1]=i,t=f;let r=1732584193,E=-271733879,b=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const v=r,o=E,e=b,p=c;r=it(r,E,b,c,t[n],7,-680876936),c=it(c,r,E,b,t[n+1],12,-389564586),b=it(b,c,r,E,t[n+2],17,606105819),E=it(E,b,c,r,t[n+3],22,-1044525330),r=it(r,E,b,c,t[n+4],7,-176418897),c=it(c,r,E,b,t[n+5],12,1200080426),b=it(b,c,r,E,t[n+6],17,-1473231341),E=it(E,b,c,r,t[n+7],22,-45705983),r=it(r,E,b,c,t[n+8],7,1770035416),c=it(c,r,E,b,t[n+9],12,-1958414417),b=it(b,c,r,E,t[n+10],17,-42063),E=it(E,b,c,r,t[n+11],22,-1990404162),r=it(r,E,b,c,t[n+12],7,1804603682),c=it(c,r,E,b,t[n+13],12,-40341101),b=it(b,c,r,E,t[n+14],17,-1502002290),E=it(E,b,c,r,t[n+15],22,1236535329),r=ot(r,E,b,c,t[n+1],5,-165796510),c=ot(c,r,E,b,t[n+6],9,-1069501632),b=ot(b,c,r,E,t[n+11],14,643717713),E=ot(E,b,c,r,t[n],20,-373897302),r=ot(r,E,b,c,t[n+5],5,-701558691),c=ot(c,r,E,b,t[n+10],9,38016083),b=ot(b,c,r,E,t[n+15],14,-660478335),E=ot(E,b,c,r,t[n+4],20,-405537848),r=ot(r,E,b,c,t[n+9],5,568446438),c=ot(c,r,E,b,t[n+14],9,-1019803690),b=ot(b,c,r,E,t[n+3],14,-187363961),E=ot(E,b,c,r,t[n+8],20,1163531501),r=ot(r,E,b,c,t[n+13],5,-1444681467),c=ot(c,r,E,b,t[n+2],9,-51403784),b=ot(b,c,r,E,t[n+7],14,1735328473),E=ot(E,b,c,r,t[n+12],20,-1926607734),r=st(r,E,b,c,t[n+5],4,-378558),c=st(c,r,E,b,t[n+8],11,-2022574463),b=st(b,c,r,E,t[n+11],16,1839030562),E=st(E,b,c,r,t[n+14],23,-35309556),r=st(r,E,b,c,t[n+1],4,-1530992060),c=st(c,r,E,b,t[n+4],11,1272893353),b=st(b,c,r,E,t[n+7],16,-155497632),E=st(E,b,c,r,t[n+10],23,-1094730640),r=st(r,E,b,c,t[n+13],4,681279174),c=st(c,r,E,b,t[n],11,-358537222),b=st(b,c,r,E,t[n+3],16,-722521979),E=st(E,b,c,r,t[n+6],23,76029189),r=st(r,E,b,c,t[n+9],4,-640364487),c=st(c,r,E,b,t[n+12],11,-421815835),b=st(b,c,r,E,t[n+15],16,530742520),E=st(E,b,c,r,t[n+2],23,-995338651),r=at(r,E,b,c,t[n],6,-198630844),c=at(c,r,E,b,t[n+7],10,1126891415),b=at(b,c,r,E,t[n+14],15,-1416354905),E=at(E,b,c,r,t[n+5],21,-57434055),r=at(r,E,b,c,t[n+12],6,1700485571),c=at(c,r,E,b,t[n+3],10,-1894986606),b=at(b,c,r,E,t[n+10],15,-1051523),E=at(E,b,c,r,t[n+1],21,-2054922799),r=at(r,E,b,c,t[n+8],6,1873313359),c=at(c,r,E,b,t[n+15],10,-30611744),b=at(b,c,r,E,t[n+6],15,-1560198380),E=at(E,b,c,r,t[n+13],21,1309151649),r=at(r,E,b,c,t[n+4],6,-145523070),c=at(c,r,E,b,t[n+11],10,-1120210379),b=at(b,c,r,E,t[n+2],15,718787259),E=at(E,b,c,r,t[n+9],21,-343485551),r=It(r,v),E=It(E,o),b=It(b,e),c=It(c,p)}return Uint32Array.of(r,E,b,c)}function Ea(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(zi(t.length*8)).fill(0);for(let f=0;f<t.length;f++)i[f>>2]|=(t[f]&255)<<f%4*8;return i}function It(t,i){const f=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(f>>16)<<16|f&65535}function ka(t,i){return t<<i|t>>>32-i}function Hn(t,i,f,r,E,b){return It(ka(It(It(i,t),It(r,b)),E),f)}function it(t,i,f,r,E,b,c){return Hn(i&f|~i&r,t,i,E,b,c)}function ot(t,i,f,r,E,b,c){return Hn(i&r|f&~r,t,i,E,b,c)}function st(t,i,f,r,E,b,c){return Hn(i^f^r,t,i,E,b,c)}function at(t,i,f,r,E,b,c){return Hn(f^(i|~r),t,i,E,b,c)}kr.default=ba;var yt={};Object.defineProperty(yt,"__esModule",{value:!0}),yt.URL=yt.DNS=yt.stringToBytes=void 0;const Vi=Kt,_a=gt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let f=0;f<t.length;++f)i[f]=t.charCodeAt(f);return i}yt.stringToBytes=Gi,yt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",yt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ca(t,i,f,r,E,b){const c=typeof f=="string"?Gi(f):f,n=typeof r=="string"?(0,Vi.default)(r):r;if(typeof r=="string"&&(r=(0,Vi.default)(r)),(r==null?void 0:r.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+c.length);if(v.set(n),v.set(c,n.length),v=i(v),v[6]=v[6]&15|t,v[8]=v[8]&63|128,E){b=b||0;for(let o=0;o<16;++o)E[b+o]=v[o];return E}return(0,_a.unsafeStringify)(v)}yt.default=Ca,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(48,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(qi);var _r={},Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Oa=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Cr.default={randomUUID:Oa},Object.defineProperty(_r,"__esModule",{value:!0});const Ki=Cr,Ra=an,Aa=gt;function Ta(t,i,f){var E;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const r=t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ra.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,i){if(f=f||0,f<0||f+16>i.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[f+b]=r[b];return i}return(0,Aa.unsafeStringify)(r)}_r.default=Ta;var Wi={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});function Pa(t,i,f,r){switch(t){case 0:return i&f^~i&r;case 1:return i^f^r;case 2:return i&f^i&r^f&r;case 3:return i^f^r}}function Rr(t,i){return t<<i|t>>>32-i}function Ia(t){const i=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(t.length+1);r.set(t),r[t.length]=128,t=r;const E=t.length/4+2,b=Math.ceil(E/16),c=new Array(b);for(let n=0;n<b;++n){const v=new Uint32Array(16);for(let o=0;o<16;++o)v[o]=t[n*64+o*4]<<24|t[n*64+o*4+1]<<16|t[n*64+o*4+2]<<8|t[n*64+o*4+3];c[n]=v}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 v=new Uint32Array(80);for(let a=0;a<16;++a)v[a]=c[n][a];for(let a=16;a<80;++a)v[a]=Rr(v[a-3]^v[a-8]^v[a-14]^v[a-16],1);let o=f[0],e=f[1],p=f[2],C=f[3],u=f[4];for(let a=0;a<80;++a){const s=Math.floor(a/20),g=Rr(o,5)+Pa(s,e,p,C)+u+i[s]+v[a]>>>0;u=C,C=p,p=Rr(e,30)>>>0,e=o,o=g}f[0]=f[0]+o>>>0,f[1]=f[1]+e>>>0,f[2]=f[2]+p>>>0,f[3]=f[3]+C>>>0,f[4]=f[4]+u>>>0}return Uint8Array.of(f[0]>>24,f[0]>>16,f[0]>>8,f[0],f[1]>>24,f[1]>>16,f[1]>>8,f[1],f[2]>>24,f[2]>>16,f[2]>>8,f[2],f[3]>>24,f[3]>>16,f[3]>>8,f[3],f[4]>>24,f[4]>>16,f[4]>>8,f[4])}Or.default=Ia,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=Or,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(80,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(Wi);var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});const Fa=gt,La=Jt,ja=Dn;function Na(t,i,f){t??(t={}),f??(f=0);let r=(0,La.default)({...t,_v6:!0},new Uint8Array(16));if(r=(0,ja.default)(r),i){for(let E=0;E<16;E++)i[f+E]=r[E];return i}return(0,Fa.unsafeStringify)(r)}Ar.default=Na;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ma=Kt,Ba=gt;function Da(t){const i=typeof t=="string"?(0,Ma.default)(t):t,f=Ha(i);return typeof t=="string"?(0,Ba.unsafeStringify)(f):f}Tr.default=Da;function Ha(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 cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.updateV7State=void 0;const Ji=an,Ua=gt,Pr={};function $a(t,i,f){var E;let r;if(t)r=Qi(t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,f);else{const b=Date.now(),c=(0,Ji.default)();Yi(Pr,b,c),r=Qi(c,Pr.msecs,Pr.seq,i,f)}return i?r:(0,Ua.unsafeStringify)(r)}function Yi(t,i,f){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}cn.updateV7State=Yi;function Qi(t,i,f,r,E=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),E=0;else if(E<0||E+16>r.length)throw new RangeError(`UUID byte range ${E}:${E+15} is out of buffer bounds`);return i??(i=Date.now()),f??(f=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),r[E++]=i/1099511627776&255,r[E++]=i/4294967296&255,r[E++]=i/16777216&255,r[E++]=i/65536&255,r[E++]=i/256&255,r[E++]=i&255,r[E++]=112|f>>>28&15,r[E++]=f>>>20&255,r[E++]=128|f>>>14&63,r[E++]=f>>>6&255,r[E++]=f<<2&255|t[10]&3,r[E++]=t[11],r[E++]=t[12],r[E++]=t[13],r[E++]=t[14],r[E++]=t[15],r}cn.default=$a;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const qa=Wt;function za(t){if(!(0,qa.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Ir.default=za,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=br;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var f=wr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return f.default}});var r=Kt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var E=gt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.default}});var b=Jt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var c=Dn;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 v=_r;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return v.default}});var o=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}});var e=Ar;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var p=Tr;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var C=cn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var u=Wt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}});var a=Ir;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(ut,"__esModule",{value:!0}),ut.isEmptyObject=ut.generateUUID=ut.validateSetPagingParams=ut.base64=ut.isFunction=void 0;const Zi=Ni,Va=Bi,Ga=t=>typeof t=="function";ut.isFunction=Ga;const Ka=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Zi.Buffer)return Zi.Buffer.from(t).toString("base64")};ut.base64=Ka;const Wa=(t,i,f,r)=>{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(!f||!r)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof f=="string"&&typeof r=="string"||Array.isArray(f)&&Array.isArray(r)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(f)&&f.length!==r.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof r=="string"&&r!=="asc"&&r!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(r)&&r.some(E=>E!=="desc"&&E!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};ut.validateSetPagingParams=Wa;const Ja=()=>(0,Va.v4)().replace(/-/g,"");ut.generateUUID=Ja;const Ya=t=>t==null||Array.isArray(t)||Object.prototype.toString.call(t)!=="[object Object]"?!0:Object.keys(t).length===0;ut.isEmptyObject=Ya,Object.defineProperty(tr,"__esModule",{value:!0});const Bt=et,Xi=ut,eo=function(t,i,f,r,E,b,c,n){var v,o,e,p,C,u,a,s;const g=function(S,I){return S||S===!1?"&"+I+"="+S:""};if(f!=="search"&&f!=="ai-answers"&&f!=="suggest"&&f!=="autocomplete"&&f!=="recommend"){E({error:{response:Bt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let d="",m="",l={},h=null,_=null;if(f==="search"){_=f,d=r==null?void 0:r.keyword,d=r!=null&&r.enableLogicalOperators?d.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):d.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),d=encodeURIComponent(d);let S=r==null?void 0:r.fuzzy;if(S==="retry"&&(b!==!0?S=!1:S=!0),m=g(r==null?void 0:r.lang,"lang")+g(S,"fuzzy")+g(r==null?void 0:r.collectAnalytics,"collectAnalytics")+g(r==null?void 0:r.postfixWildcard,"postfixWildcard")+g(r==null?void 0:r.categories,"categories")+g(r==null?void 0:r.priceFromCents,"priceFromCents")+g(r==null?void 0:r.priceToCents,"priceToCents")+g(r==null?void 0:r.dateFrom,"dateFrom")+g(r==null?void 0:r.dateTo,"dateTo")+g(r==null?void 0:r.paging.page,"page")+g(r==null?void 0:r.paging.pageSize,"limit")+g(r==null?void 0:r.shuffleAndLimitTo,"shuffleAndLimitTo")+g(r==null?void 0:r.jwt,"jwt")+g(r==null?void 0:r.resultType,"resultType")+g(r==null?void 0:r.userToken,"userToken")+g(r==null?void 0:r.numFacets,"numFacets")+g(r==null?void 0:r.cacheResponseTime,"cacheResponseWithTtlSeconds")+g(r==null?void 0:r.searchOperator,"defaultOperator")+g(r==null?void 0:r.analyticsTag,"analyticsTag"),l=Object.assign(Object.assign({},l),{language:r==null?void 0:r.lang,fuzzy:S!==!0&&S!==!1?S:JSON.stringify(S),collectAnalytics:r==null?void 0:r.collectAnalytics,postfixWildcard:r==null?void 0:r.postfixWildcard,categories:r!=null&&r.categories?r==null?void 0:r.categories.split(","):void 0,priceFromCents:r!=null&&r.priceFromCents?parseInt(r==null?void 0:r.priceFromCents,10):void 0,priceToCents:r!=null&&r.priceToCents?parseInt(r==null?void 0:r.priceToCents,10):void 0,dateFrom:r==null?void 0:r.dateFrom,dateTo:r==null?void 0:r.dateTo,paging:{page:(v=r==null?void 0:r.paging.page)!==null&&v!==void 0?v:1,pageSize:(o=r==null?void 0:r.paging.pageSize)!==null&&o!==void 0?o:10,shuffleAndLimitTo:(e=r==null?void 0:r.shuffleAndLimitTo)!==null&&e!==void 0?e:void 0,sortByField:r==null?void 0:r.paging.sortBy,sortOrder:r==null?void 0:r.paging.sortOrder},jwt:r==null?void 0:r.jwt,resultType:r==null?void 0:r.resultType,userToken:(p=r==null?void 0:r.userToken)!==null&&p!==void 0?p:void 0,numFacets:r==null?void 0:r.numFacets,cacheResponseWithTtlSeconds:(C=r==null?void 0:r.cacheResponseTime)!==null&&C!==void 0?C:void 0,defaultOperator:(u=r==null?void 0:r.searchOperator)!==null&&u!==void 0?u:void 0,analyticsTag:r==null?void 0:r.analyticsTag}),Array.isArray(r==null?void 0:r.paging.sortBy)&&(r==null?void 0:r.paging.sortBy.length)>1?r==null||r.paging.sortBy.forEach(function(I,T){m=m+g(I,"sort")+g(r==null?void 0:r.paging.sortOrder[T],"order")}):m=m+g(r==null?void 0:r.paging.sortBy,"sort")+g(r==null?void 0:r.paging.sortOrder,"order"),r!=null&&r.customFieldFilters){const I={};for(let T=0;T<(r==null?void 0:r.customFieldFilters.length);T++){m=m+"&customField="+(r==null?void 0:r.customFieldFilters[T]);const j=decodeURIComponent(r==null?void 0:r.customFieldFilters[T]).split("="),U=j[0],L=j[1];I[U]=L}l=Object.assign(Object.assign({},l),{customField:(0,Xi.isEmptyObject)(I)?void 0:I})}if(r!=null&&r.facetFields){const I=[];for(let T=0;T<(r==null?void 0:r.facetFields.length);T++)m=m+"&facet="+(r==null?void 0:r.facetFields[T]),I.push(r==null?void 0:r.facetFields[T]);l=Object.assign(Object.assign({},l),{facet:I.length>0?I:void 0})}if(r!=null&&r.rangeFacets&&(m=m+"&rangeFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.rangeFacets)),l=Object.assign(Object.assign({},l),{rangeFacets:r==null?void 0:r.rangeFacets})),r!=null&&r.hierarchicalFacetSetting&&(m=m+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.hierarchicalFacetSetting)),l=Object.assign(Object.assign({},l),{hierarchicalFacets:r==null?void 0:r.hierarchicalFacetSetting})),r!=null&&r.statsFields){const I=[];for(let T=0;T<(r==null?void 0:r.statsFields.length);T++)m=m+"&fieldStat="+(r==null?void 0:r.statsFields[T]),I.push(r==null?void 0:r.statsFields[T]);l=Object.assign(Object.assign({},l),{statsFields:I})}if(r!=null&&r.personalizationEvents&&Array.isArray(r==null?void 0:r.personalizationEvents)){const I=[];for(let T=0;T<(r==null?void 0:r.personalizationEvents.length);T++){const A=r==null?void 0:r.personalizationEvents[T],j=Object.keys(A)[0];m=m+"&personalizationEvent="+encodeURIComponent(j+"="+A[j]),I.push(A)}l=Object.assign(Object.assign({},l),{personalizationEvents:I})}c?(m=m+"&filter="+encodeURIComponent(JSON.stringify(c)),l=Object.assign(Object.assign({},l),{filter:c})):r!=null&&r.filterObject&&(m=m+"&filter="+encodeURIComponent(JSON.stringify(r==null?void 0:r.filterObject)),l=Object.assign(Object.assign({},l),{filter:(0,Xi.isEmptyObject)(r==null?void 0:r.filterObject)||r==null?void 0:r.filterObject})),h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m}else f==="ai-answers"?Bt.apiInstance.post(`https://${t}/v2/indices/${i}/conversations`,{question:r==null?void 0:r.keyword}).then(function(S){S.data.response?E(S.data.response):E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})}).catch(function(S){console.error(S),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):f==="suggest"?(_=f,m=g(r==null?void 0:r.suggestionsSize,"size")+g(r==null?void 0:r.lang,"language"),l=Object.assign(Object.assign({},l),{size:r==null?void 0:r.suggestionsSize,language:r==null?void 0:r.lang}),d=r==null?void 0:r.suggestionsPrefix,h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m):f==="autocomplete"?(_="autocomplete/document-field",m=g(r==null?void 0:r.autocomplete.field,"source")+g(r==null?void 0:r.autocomplete.size,"size"),d=(r==null?void 0:r.autocomplete.prefix)||"",h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m,l=Object.assign(Object.assign({},l),{source:r==null?void 0:r.autocomplete.field,size:r==null?void 0:r.autocomplete.size})):f==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(m=g(n.itemId,"itemId"),_="recommendations/index/"+i+"/block/"+n.blockId+"?"+m,l=Object.assign(Object.assign({},l),{itemId:(a=n.itemId)!==null&&a!==void 0?a:void 0,blockId:n.blockId})):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(m=g(n.itemId,"itemId"),_="recommendations/"+i+"?configurationKey="+n.configurationKey+m,l=Object.assign(Object.assign({},l),{itemId:(s=n.itemId)!==null&&s!==void 0?s:void 0,configurationKey:n.configurationKey})),h="https://"+t+"/v1/"+_);if(f!=="ai-answers"){const S=function(T){var A,j,U;const L=T.data;f==="search"&&(r==null?void 0:r.fuzzy)==="retry"&&L.total_hits===0&&b!==!0?eo(t,i,f,r,E,!0):(b===!0&&(L.total_hits=Math.min((A=L.total_hits)!==null&&A!==void 0?A:1/0,(U=(j=r==null?void 0:r.paging)===null||j===void 0?void 0:j.pageSize)!==null&&U!==void 0?U:1/0)),E(L))},I=function(T){console.error(T),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})};if((r==null?void 0:r.apiMethod)==="POST"&&["search","suggest","autocomplete"].includes(f)){h="https://"+t+"/v1/"+_+"/"+i;const T=f==="search"?decodeURIComponent(d):d;l=Object.assign({term:T},l),Bt.apiInstance.post(h,l).then(S).catch(I)}else Bt.apiInstance.get(h).then(S).catch(I)}};tr.default=eo;var vt={},Qa=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.deleteDocumentsBatch=vt.deleteDocument=vt.saveDocumentsBatch=vt.saveDocument=vt.getDocument=void 0;const un=Qa(Fi),Za=ut,hn=(t,i)=>({Authorization:"Basic "+(0,Za.base64)(t+":"+i),"Content-Type":"application/json"}),Xa=(t,i,f,r)=>new Promise((E,b)=>{un.default.get(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:hn(i,f)}).then(c=>{c.status===200?E(c.data):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});vt.getDocument=Xa;const el=(t,i,f,r)=>{const E=!!(r.id||r.url);return new Promise((b,c)=>{(0,un.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:E?"put":"post",headers:hn(i,f),data:r}).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})))})})};vt.saveDocument=el;const tl=(t,i,f,r)=>new Promise((E,b)=>{(0,un.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:hn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.saveDocumentsBatch=tl;const nl=(t,i,f,r)=>new Promise((E,b)=>{un.default.delete(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:hn(i,f)}).then(c=>{c.status===202?E({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})))})});vt.deleteDocument=nl;const rl=(t,i,f,r)=>new Promise((E,b)=>{un.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:hn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.deleteDocumentsBatch=rl;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const il=Yr,ol=et;(0,il.polyfill)();const sl=(t,i,f,r)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!r?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(f)):ol.statsInstance.post(`https://${t}/v1/stats/${i}/`,f,{headers:{"Content-Type":"text/plain"}}).then().catch(E=>{console.error(E)})};Fr.default=sl;var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.putSentimentClick=void 0;const Lr=et,al=(t,i,f,r)=>new Promise((E,b)=>{Lr.aiAnswersInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${f}/rating`,{value:r==="positive"?1:r==="negative"?-1:0}).then(c=>{c.status===200?E(!0):b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Un.putSentimentClick=al;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});const ll=ut;class cl{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,apiMethod:"GET"}}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,f){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=f}setLanguage(i){let f;if(Intl&&Intl.Locale)try{f=new Intl.Locale(i).language}catch(r){throw console.debug(r),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else f=i;if(f&&f.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=f}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,f){this.settings.priceFromCents=i,this.settings.priceToCents=f}addCustomFieldFilter(i,f){const r=encodeURIComponent(`${i}=${f}`);this.settings.customFieldFilters.includes(r)||this.settings.customFieldFilters.push(r)}removeCustomFieldFilter(i,f){const r=!f,E=encodeURIComponent(`${i}=${f||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>r?!b.startsWith(E):b!==E)}setDateFilter(i,f){this.settings.dateFrom=i,this.settings.dateTo=f}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,f){var r,E;(r=(E=this.settings).rangeFacets)!==null&&r!==void 0||(E.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:f})}addStatsField(i){var f,r;(f=(r=this.settings).statsFields)!==null&&f!==void 0||(r.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,f,r,E){(0,ll.validateSetPagingParams)(i,f,r,E),this.settings.paging={page:i,pageSize:f,sortBy:r,sortOrder:E}}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}setApiMethod(i){if(i!=="GET"&&i!=="POST")throw new Error("API method must be 'GET' or 'POST'");this.settings.apiMethod=i}}jr.default=cl;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});const ul=(t,i)=>{let f=0,r=null;function E(){r!==null&&(clearTimeout(r),r=null)}function b(...c){const n=Date.now()-f,v=()=>{f=Date.now(),i(...c)};E(),n>t?v():r=setTimeout(v,t-n)}return b};Nr.default=ul;var Ft={},$n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.parse=yl,$n.serialize=vl;const hl=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,fl=/^[\u0021-\u003A\u003C-\u007E]*$/,dl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,pl=/^[\u0020-\u003A\u003D-\u007E]*$/,ml=Object.prototype.toString,gl=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function yl(t,i){const f=new gl,r=t.length;if(r<2)return f;const E=(i==null?void 0:i.decode)||xl;let b=0;do{const c=t.indexOf("=",b);if(c===-1)break;const n=t.indexOf(";",b),v=n===-1?r:n;if(c>v){b=t.lastIndexOf(";",c-1)+1;continue}const o=to(t,b,c),e=no(t,c,o),p=t.slice(o,e);if(f[p]===void 0){let C=to(t,c+1,v),u=no(t,v,C);const a=E(t.slice(C,u));f[p]=a}b=v+1}while(b<r);return f}function to(t,i,f){do{const r=t.charCodeAt(i);if(r!==32&&r!==9)return i}while(++i<f);return f}function no(t,i,f){for(;i>f;){const r=t.charCodeAt(--i);if(r!==32&&r!==9)return i+1}return f}function vl(t,i,f){const r=(f==null?void 0:f.encode)||encodeURIComponent;if(!hl.test(t))throw new TypeError(`argument name is invalid: ${t}`);const E=r(i);if(!fl.test(E))throw new TypeError(`argument val is invalid: ${i}`);let b=t+"="+E;if(!f)return b;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);b+="; Max-Age="+f.maxAge}if(f.domain){if(!dl.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);b+="; Domain="+f.domain}if(f.path){if(!pl.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);b+="; Path="+f.path}if(f.expires){if(!bl(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);b+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(b+="; HttpOnly"),f.secure&&(b+="; Secure"),f.partitioned&&(b+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return b}function xl(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function bl(t){return ml.call(t)==="[object Date]"}Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.deleteCookie=Ft.getCookie=Ft.setCookie=void 0;const Mr=$n,wl=(t,i,f)=>{if(typeof document>"u")return;const r=new Date;r.setTime(r.getTime()+f*24*60*60*1e3),document.cookie=(0,Mr.serialize)(t,i,{expires:r,path:"/"})};Ft.setCookie=wl;const Sl=t=>{if(!(typeof document>"u"))try{return(0,Mr.parse)(document.cookie)[t]}catch(i){console.debug("Error parsing cookies:",i);return}};Ft.getCookie=Sl;const El=t=>{typeof document>"u"||(document.cookie=(0,Mr.serialize)(t,"",{expires:new Date(0),path:"/"}))};Ft.deleteCookie=El;var kl=Xe&&Xe.__createBinding||(Object.create?function(t,i,f,r){r===void 0&&(r=f);var E=Object.getOwnPropertyDescriptor(i,f);(!E||("get"in E?!i.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(t,r,E)}:function(t,i,f,r){r===void 0&&(r=f),t[r]=i[f]}),_l=Xe&&Xe.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),ro=Xe&&Xe.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(f){var r=[];for(var E in f)Object.prototype.hasOwnProperty.call(f,E)&&(r[r.length]=E);return r},t(i)};return function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var r=t(i),E=0;E<r.length;E++)r[E]!=="default"&&kl(f,i,r[E]);return _l(f,i),f}}(),qn=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Dt=qn(tr),fn=vt,io=qn(Fr),Cl=Un,Ol=qn(jr),zn=ro(ut),dn=qn(Nr),pn=ro(Ft),Vn=et,oo="api.addsearch.com",Br="addsearchUserToken";let Rl=class{constructor(i,f){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=f||"",this.apiHostname=oo,this.statsApiHostname=oo,this.settings=new Ol.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=pn.getCookie(Br)||zn.generateUUID()}search(i,f){var r;let E=null,b=null;if(typeof i=="string"&&typeof f=="function")E=i,b=f;else if(typeof i=="function"&&!f)E=this.settings.getSettings().keyword||null,b=i;else if(this.settings.getSettings().callback)E=this.settings.getSettings().keyword||null,b=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>b),this.settings.setKeyword(E),(r=this.throttledSearchFetch)!==null&&r!==void 0||(this.throttledSearchFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),b)}aiAnswers(i,f){var r;this.settings.setCallback(()=>f),this.settings.setKeyword(i),(r=this.throttledAiAnswersFetch)!==null&&r!==void 0||(this.throttledAiAnswersFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),f)}putSentimentClick(i,f){return(0,Cl.putSentimentClick)(this.apiHostname,this.sitekey,i,f)}suggestions(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),(r=this.throttledSuggestionsFetch)!==null&&r!==void 0||(this.throttledSuggestionsFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),f)}autocomplete(i,f,r){var E;if(!i||!f||!r||!zn.isFunction(r))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,f),(E=this.throttledAutocompleteFetch)!==null&&E!==void 0||(this.throttledAutocompleteFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),r)}fetchCustomApi(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());b.facetFields=(E=b.facetFields)===null||E===void 0?void 0:E.filter(c=>i===c),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}fetchRangeFacets(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());(E=b.rangeFacets)!==null&&E!==void 0||(b.rangeFacets=[]),b.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}recommendations(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");(r=this.throttledRecommendationFetch)!==null&&r!==void 0||(this.throttledRecommendationFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",this.settings.getSettings(),f,!1,null,i)}getDocument(i){return(0,fn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,fn.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,fn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,fn.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,fn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,f){(!f||!f.statsApiRequestOnly)&&(this.apiHostname=i),(!f||!f.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,f){this.settings.addCustomFieldFilter(i,f)}removeCustomFieldFilter(i,f){this.settings.removeCustomFieldFilter(i,f)}setPriceRangeFilter(i,f){this.settings.setPriceRangeFilter(i,f)}setDateFilter(i,f){this.settings.setDateFilter(i,f)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,f,r,E){this.settings.setPaging(i,f,r,E)}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,f){this.settings.addRangeFacet(i,f)}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)}setApiMethod(i){this.settings.setApiMethod(i)}sendStatsEvent(i,f,r){const E=!this.useStatsSessionId&&so&&ao;if(E&&!pn.getCookie(Br)&&pn.setCookie(Br,this.userTokenInPersonalization,lo),i==="search"){const b={action:"search",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,numberOfResults:r.numberOfResults,tag:this.getSettings().analyticsTag};(0,io.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,docid:r.documentId,position:r.position,tag:this.getSettings().analyticsTag};(0,io.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,f){so=i,f&&(lo=f)}consentAddSearchCookie(i){ao=i}setApiRequestInterceptor(i,f={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:r=!1,statsApiRequestOnly:E=!1}=f;!r&&!E?((0,Vn.setRequestInterceptor)(i,"searchApi"),(0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(r&&(0,Vn.setRequestInterceptor)(i,"searchApi"),E&&((0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}setCookie(i,f,r){pn.setCookie(i,f,r)}getCookie(i){return pn.getCookie(i)}searchResultClicked(i,f){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:f})}},so=!1,ao=!1,lo=180;var Al=Rl;const Tl=Gr(Al);var co={exports:{}};/*! addsearch-search-ui 0.9.2 */(function(t,i){(function(f,r){t.exports=r()})(Xe,function(){return function(){var f={2987:function(b,c,n){b.exports=n(9770).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)},1543:function(b,c,n){n.d(c,{FW:function(){return o},mQ:function(){return e},Lt:function(){return v},Rn:function(){return C},jK:function(){return u},wF:function(){return p},On:function(){return a},bz:function(){return s}});const v="IS_LOADING_AI_ANSWERS",o="AI_ANSWERS_RESULT",e="AI_ANSWERS_RESULT_ERROR",p="SET_AI_ANSWERS_SENTIMENT",C="SET_AI_ANSWERS_ANSWER_EXPANDED",u="SET_AI_ANSWERS_HIDDEN";function a(g,d){return m=>{m({type:e,payload:!1}),m({type:v,payload:!0}),g.aiAnswers(d,l=>{if(l.error)m({type:e,payload:!0});else{const S={id:(h=l).conversation_id,answerText:h.answer||"",sources:((_=h.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(I=>({url:I.url,title:I.title})))||[]};m({type:p,payload:"neutral"}),m({type:o,payload:S})}var h,_;m({type:v,payload:!1})})}}function s(g,d,m){return l=>{l({type:p,payload:m}),g.putSentimentClick(d,m).then().catch(h=>{console.error(h)})}}},6148:function(b,c,n){n.d(c,{Ah:function(){return ee},B5:function(){return d},C0:function(){return G},FJ:function(){return m},GA:function(){return B},GB:function(){return g},Jd:function(){return _},KR:function(){return o},Km:function(){return a},MO:function(){return A},OA:function(){return U},Pf:function(){return I},VW:function(){return v},XD:function(){return oe},Xr:function(){return T},d5:function(){return S},dC:function(){return z},h$:function(){return s},hR:function(){return j},hx:function(){return l},il:function(){return h},kw:function(){return e},nl:function(){return N},nn:function(){return C},p3:function(){return u},vT:function(){return p}});const v="AUTOCOMPLETE_FETCH_START",o="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",p="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",u="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",s="AUTOCOMPLETE_SHOW",g="AUTOCOMPLETE_HIDE",d="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",m="HIDE_AUTOMATICALLY",l="KEYBOARD_EVENT",h="ARROW_UP",_="ARROW_DOWN",S="SET_ACTIVE_SUGGESTION",I="suggestions",T="custom_fields";function A(Y,W){return W&&W!==""?(Z,ce)=>{const ye=ce().keyword.minLengthRequiredToFetch;W.length<ye||(Z(L(I)),Y.suggestions(W,_e=>{ce().keyword.value!==""&&Z(function(Ce,Re){return{type:o,keyword:Ce,results:Re}}(W,_e))}))}:{type:p}}function j(Y,W,Z){return W&&W!==""?(ce,ye)=>{const _e=ye().keyword.minLengthRequiredToFetch;W.length<_e||(ce(L(T)),Y.autocomplete(Z,W,Ce=>{ye().keyword.value!==""&&ce({type:e,results:Ce})}))}:{type:C}}function U(Y,W,Z,ce){return Z&&Z!==""?(ye,_e)=>{const Ce=_e().keyword.minLengthRequiredToFetch;Z.length<Ce||(ye(L(W)),Y.search(Z,Re=>{_e().keyword.value!==""&&ye(function(Ue,Ie,Ke,Ne){return{type:u,keyword:Ue,results:Ie,jsonKey:Ke,appendResults:Ne}}(Z,Re,W,ce))}))}:{type:a}}function L(Y){return{type:v,jsonKey:Y}}function B(){return{type:s}}function N(){return{type:g}}function z(){return{type:d}}function G(Y){return{type:l,direction:Y}}function oe(Y,W){return{type:S,index:Y,setSuggestionToSearchField:W}}function ee(Y){return{type:m,hideAutomatically:Y}}},6843:function(b,c,n){n.d(c,{IJ:function(){return v},Ow:function(){return e},nb:function(){return o},np:function(){return p}});const v="SET_FIELD_STATS",o="CLEAR_FIELD_STATS";function e(C,u){return{type:v,fieldStats:C,callBy:u}}function p(){return{type:o}}},549:function(b,c,n){n.d(c,{CY:function(){return v},Gc:function(){return L},II:function(){return A},IS:function(){return g},JS:function(){return u},Ni:function(){return j},QW:function(){return s},Tv:function(){return m},Uj:function(){return o},VH:function(){return h},VN:function(){return C},XI:function(){return e},Xh:function(){return I},cl:function(){return a},eu:function(){return S},hx:function(){return B},jU:function(){return U},ks:function(){return T},u3:function(){return _},uR:function(){return p},ul:function(){return l},vj:function(){return d}});const v="TOGGLE_FILTER",o="SET_RANGE_FILTER",e="REGISTER_FILTER",p="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",u="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",s="TOGGLE_HIERARCHICAL_FACET_FILTER",g="TOGGLE_RANGE_FACET_FILTER",d="CLEAR_SELECTED_FILTERS_AND_FACETS",m="CLEAR_SELECTED_RANGE_FACETS";function l(N){return{type:e,filterObj:N}}function h(N,z,G){return{type:v,filterName:N,value:z,refreshSearch:G}}function _(N,z,G){return{type:o,field:N,from:z,to:G}}function S(N){return{type:p,json:N}}function I(N){return{type:C,json:N}}function T(N,z,G){return{type:u,json:N,refreshSearch:z,field:G}}function A(N,z,G){return{type:a,field:N,value:z,refreshSearch:G}}function j(N,z,G,oe,ee){return{type:s,field:N,container:z,confFields:G,value:oe,refreshSearch:ee}}function U(N,z,G,oe,ee){return{type:g,field:N,values:z,key:G,refreshSearch:oe,byActiveFilterComponent:ee}}function L(N,z){return{type:m,refreshSearch:N,setHistory:z}}function B(N,z){return{type:d,refreshSearch:N,byActiveFilterComponent:z}}},6993:function(b,c,n){n.d(c,{Ai:function(){return e},Le:function(){return o},QR:function(){return v},_T:function(){return p}});const v="KEYWORD",o="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,u,a,s){return{type:v,value:C,skipAutocomplete:u,searchFieldContainerId:a||null,setSearchFieldValue:s||!1}}function p(C){return{type:o,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,c,n){n.d(c,{I:function(){return e},N:function(){return o}});var v=n(4903);const o="SET_PAGE";function e(p,C,u,a){u===!1||p.getSettings().paging.page===C&&C!==1||(0,v.Dh)(v.sh.PAGE,C+"",null,a);const s=p.getSettings().paging;return p.setPaging(C,s.pageSize,s.sortBy,s.sortOrder),{type:o,page:C}}},878:function(b,c,n){n.d(c,{KE:function(){return p},OU:function(){return e},T7:function(){return u},iM:function(){return o},vh:function(){return C}}),n(9770),n(4903);var v=n(3007);const o="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",p="CLEAR_RECOMMENDATION";function C(a,s){return g=>{switch(s.type){case v.Qc:a.recommendations(s,d=>{var m;g((m=s.container,{type:o,container:m,recommendType:"frequently-bought-together",results:d}))});break;case v.uH:a.recommendations(s,d=>{var m;g((m=s.container,{type:e,container:m,recommendType:"related-items",results:d}))})}}}function u(){return{type:p}}},1944:function(b,c,n){n.d(c,{AX:function(){return d},EF:function(){return g},d3:function(){return p},j2:function(){return C},lq:function(){return m},mY:function(){return a},xE:function(){return u},y$:function(){return s}});var v=n(9770),o=n(4903),e=n(6351);const p="START",C="SET_SEARCH_RESULTS_PAGE_URL",u="SEARCH_FETCH_START",a="SEARCH_RESULTS",s="CLEAR_SEARCH_RESULTS";function g(l,h,_,S,I,T,A,j,U){return(0,o.Dh)(o.sh.SEARCH,h,I,T),h&&h!==""?(L,B)=>{const N=B().keyword.minLengthRequiredToFetch;I&&h.length<N||(L({type:u}),l.search(h,z=>{if((U||A)&&z&&z.hits&&z.hits.length){var G=(U||A).replace("custom_fields.",""),oe=function(ee,Y,W){return Y.find(Z=>{if(!Z.custom_fields||!Z.custom_fields[W])return!1;if(typeof Z.custom_fields[W]=="string")return ee.toLowerCase()===Z.custom_fields[W].toLowerCase();if(typeof Z.custom_fields[W]=="object"&&Z.custom_fields[W].length){const ce=Z.custom_fields[W].map(_e=>_e.toLowerCase()),ye=ee.toLowerCase();return ce.indexOf(ye)>-1}return!1})}(h,z.hits,G);if(oe&&!I)return void window.location.replace(oe.url)}L(function(ee,Y,W,Z,ce,ye){if(/top-delay-\d*$/.test(Z)){var _e=parseInt(Z.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},_e)}else Z==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(v.H)===-1){const Ce=W?W.total_hits:0,Re=W?W.processing_time_ms:0;(0,e.mh)(ee,Y,Ce,Re)}return{type:a,keyword:Y,results:W,appendResults:ce,requestBy:ye}}(l,h,z,_,S,j))}))}:{type:s}}function d(l){return l==="top"&&window.scrollTo(0,0),{type:s}}function m(l){return{type:C,url:l}}},4826:function(b,c,n){n.d(c,{JK:function(){return o},VD:function(){return e},l$:function(){return p},lD:function(){return v}});const v="SEGMENTED_SEARCH_START",o="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function p(C,u,a){return a&&a!==""?s=>{s(function(g){return{type:v,jsonKey:g}}(u)),C.search(a,g=>s(function(d,m,l){return{type:o,jsonKey:d,keyword:m,results:l}}(u,a,g)))}:{type:e}}},6353:function(b,c,n){n.d(c,{ER:function(){return e},O0:function(){return o},Ul:function(){return p}});var v=n(4903);const o="SORTBY",e="desc";function p(C,u,a,s){s&&(0,v.Dh)(v.sh.SORTBY,JSON.stringify({field:u,order:a}),null,s);const g=C.getSettings().paging;return C.setPaging(g.page,g.pageSize,u,a),{type:o,field:u,order:a}}},6510:function(b,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return I},A:function(){return S}});var v=n(2334),o=n.n(v),e=n(6148),p=n(1944),C=n(6993),u=n(4922),a=n(4379),s=n(6351),g=n(4903),d=n(3923),m=n(209),l=n.n(m),h=n(1543);function _(T,A,j){var U;return(A=typeof(U=function(L,B){if(typeof L!="object"||!L)return L;var N=L[Symbol.toPrimitive];if(N!==void 0){var z=N.call(L,B);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(L)}(A,"string"))=="symbol"?U:String(U))in T?Object.defineProperty(T,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):T[A]=j,T}class S{constructor(A,j,U,L){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=A,this.reduxStore=j,this.hasAiAnswers=U,this.conf=L,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const B=this.conf.categorySelectionFunction||d.GK;(0,d.g3)("selectSearchResultCategory",N=>B(N,this.conf.categoryAliases)),(0,a.A)(L.containerId)&&((0,u.G)(this.reduxStore,"autocomplete",N=>this.autocompleteResultsChanged(N)),(0,u.G)(this.reduxStore,"keyword",N=>this.keywordChanged(N))),L.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),L.sources&&L.sources.length&&L.sources.forEach(N=>{N.client&&N.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(A){if(A.dropRendering)return void this.clearRenderedHtml();const j=this.reduxStore.getState().keyword.value;A.pendingRequests.length>0||j.length<this.minLengthRequired||(A.keyword&&A.keyword!==""&&this.sendSearchAnalytics(A),this.render(A))}sendSearchAnalytics(A){let j=[];this.conf.sources.forEach(U=>{if(U.type===I.SEARCH&&U.collectSearchAnalytics){const L=U.client||this.client,B=A.searchResultsStats[U.jsonKey]?A.searchResultsStats[U.jsonKey].total_hits:0;j.push({client:L,numberOfResults:B})}}),(0,s.ME)(A.keyword,j)}keywordChanged(A){if(A.skipAutocomplete)return;const j=A.value;this.conf.sources.forEach(U=>{const L=U.client||this.client;if(U.type===I.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(L,j));else if(U.type===I.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(L,j,U.field));else if(U.type===I.SEARCH){const B=L.getSettings().paging;L.setPaging(1,B.pageSize,B.sortBy,B.sortOrder),this.reduxStore.dispatch((0,e.OA)(L,U.jsonKey,j,this.hasAiAnswers))}})}loadMore(A){this.conf.sources.forEach(j=>{const U=j.client;U&&j.type===I.SEARCH&&(U.nextPage(),this.reduxStore.dispatch((0,e.OA)(U,j.jsonKey,A,this.hasAiAnswers,!0)))})}render(A){if(A.visible===!1)return void this.clearRenderedHtml();const{suggestions:j,customFields:U,searchResults:L,activeSuggestionIndex:B}=A,N={activeSuggestionIndex:B,suggestions:j,customFields:U,searchResults:L};let z;if(z=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):l()(N),this.renderedHtml===z)return;const G=document.getElementById(this.conf.containerId);G.innerHTML=z,this.renderedHtml=z,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const oe=G.querySelector(".suggestions")?G.querySelectorAll(".suggestions > li"):[],ee=G.querySelectorAll(".suggestions");for(let Y=0;Y<oe.length;Y++)oe[Y].onmousedown=W=>this.suggestionMouseDown(W),ee.length<=1&&(oe[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(L[Object.keys(L)[0]]){const Y=G.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(Z=>{Z.type===I.SEARCH&&(W||(W=Z.client))}),W||(W=this.client),(0,s.$P)(W,Y,{hits:L[Object.keys(L)[0]]})}this.conf.infiniteScrollElement&&!A.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(G)}suggestionMouseDown(A){const j=A.target.getAttribute("data-keyword"),U=this.reduxStore;U.dispatch((0,e.dC)()),U.dispatch((0,C.Ai)(j,!0,null,!0));const L=U.getState().search.searchResultsPageUrl;L?(0,g.lG)(L,j):(U.dispatch((0,p.EF)(this.client,j,null,null,null,U)),this.hasAiAnswers&&U.dispatch((0,h.On)(this.client,j)))}suggestionMouseEnter(A){const j=parseInt(A.target.getAttribute("data-index"),10);j!==null&&j!==this.lastOnmouseOver&&(this.lastOnmouseOver=j,this.reduxStore.dispatch((0,e.XD)(j,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const A=this.conf.infiniteScrollElement;if(A.scrollHeight>0&&Math.ceil(A.offsetHeight+A.scrollTop)>=A.scrollHeight){const j=this.reduxStore.getState().keyword.value;this.loadMore(j)}}}}const I={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,c,n){n.d(c,{A:function(){return a},a:function(){return u}});var v=n(1944),o=n(5756),e=n(4922),p=n(4903),C=n(4826);function u(s,g,d){let m={and:[]};g&&m.and.push(g);let l={};s.allAvailableFilters.forEach(h=>{let _={or:[]};for(let S in h)s.activeFilters[S]&&!l[S]&&(_.or.push(h[S].filter),l[S]=!0);_.or.length>0&&m.and.push(_)});for(let h in s.activeRangeFilters)m.and.push({range:{[h]:Object.assign({},s.activeRangeFilters[h])}});for(let h in s.activeFacets){let _={or:[]};for(let S in s.activeFacets[h])if(h!==d){const I={};I[h]=S,_.or.push(I)}_.or.length>0&&m.and.push(_)}for(let h in s.activeHierarchicalFacets){let _={or:[]};for(let S in s.activeHierarchicalFacets[h])for(let I in s.activeHierarchicalFacets[h][S])if(!d||d.indexOf(S)===-1){const T={};T[S]=I,_.or.push(T)}_.or.length>0&&m.and.push(_)}for(let h in s.activeRangeFacets){let _={or:[]};for(let S in s.activeRangeFacets[h])if(h!==d){const I={range:{[h]:s.activeRangeFacets[h][S]}};_.or.push(I)}_.or.length>0&&m.and.push(_)}return m.and.length>0?m:{}}class a{constructor(g,d,m,l,h,_,S){this.client=g,this.reduxStore=d,this.createFilterObjectFunction=m,this.onFilterChange=l,this.onFilteredSearchRefresh=S,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",I=>this.onFilterStateChange(I,h))}onFilterStateChange(g,d){if(g.refreshSearch){(0,p.Dh)(p.sh.FILTERS,(0,p.IR)(g.activeFilters),null,this.reduxStore),(0,p.Dh)(p.sh.FACETS,(0,p.IR)(g.activeFacets),null,this.reduxStore),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore);const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m);const l=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,o.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,v.EF)(this.client,l,null,null,null,this.reduxStore,null,g.targetFacetGroup));for(let h in this.segmentedSearchClients){const _=this.createFilterObjectFunction(g,this.segmentedSearchClients[h].originalFilters);this.segmentedSearchClients[h].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[h].client,h,l))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(g.setHistory){const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(g.activeFilters)}}},9369:function(b,c,n){n.d(c,{FILTER_TYPE:function(){return L},A:function(){return U}});var v=n(2334),o=n.n(v),e=n(4922),p=n(549),C=n(6353),u=n(4379),a=n(3668),s=n.n(a),g=n(8810),d=n.n(g),m=n(5509),l=n.n(m),h=n(1572),_=n.n(h),S=n(948),I=n.n(S),T=n(3329),A=n.n(T);const j="nofilter";class U{constructor(N,z,G){this.client=N,this.reduxStore=z,this.conf=G,this.activeFilter=null,(0,u.A)(G.containerId)&&(this.reduxStore.dispatch((0,p.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",oe=>this.render(oe)),this.conf.type===L.RANGE&&(0,e.G)(this.reduxStore,"search",oe=>this.searchResultsChanged(oe)))}searchResultsChanged(N){!N.loading&&N.results.fieldStats&&N.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(N){let z=Object.assign({},this.conf);this.activeFilter=null;let G=!1;for(let W in z.options)N.activeFilters[W]?(z.options[W].active=!0,this.activeFilter=W,G=!0):z.options[W].active=!1;!G&&z.options&&z.options[j]&&(z.options[j].active=!0);let oe,ee=null;if(this.conf.type===L.TABS)ee=_();else if(this.conf.type===L.TAGS)ee=l();else if(this.conf.type===L.CHECKBOX_GROUP)ee=s();else if(this.conf.type===L.RADIO_GROUP)ee=d();else if(this.conf.type===L.RANGE){N.activeRangeFilters[this.conf.field]&&(z.from=N.activeRangeFilters[this.conf.field].gte,z.to=N.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:Z,max:ce}=W.fieldStats[this.conf.field];z.fromPlaceholder=Z==="Infinity"?"":Z,z.toPlaceholder=ce==="-Infinity"?"":ce}ee=A()}else ee=I();if(oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(z):this.conf.template?o().compile(this.conf.template)(z):ee(z),this.renderedHtml===oe)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=oe,this.renderedHtml=oe,this.conf.type===L.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===L.TABS){const W=Y.querySelectorAll("[data-filter]");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.getAttribute("data-filter")))}else if(this.conf.type===L.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.value))}else this.conf.type===L.RANGE?this.attachRangeFilterEvents(Y):(0,u.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,p.VH)(W,1))})}singleActiveChangeEvent(N){const z=N===j,G=this.reduxStore;N!==this.activeFilter&&(this.conf.setSorting&&G.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?G.dispatch((0,p.hx)(z)):this.activeFilter&&G.dispatch((0,p.VH)(this.activeFilter,1,z)),z?this.activeFilter=null:(this.activeFilter=N,G.dispatch((0,p.VH)(N,1,!0))))}attachRangeFilterEvents(N){const z=N.querySelectorAll("input");for(let oe=0;oe<z.length;oe++)z[oe].addEventListener("change",ee=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ee.target.value)?ee.target.setAttribute("data-valid","false"):(ee.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,N.querySelector('input[name="from"]').value,N.querySelector('input[name="to"]').value))});const G=N.querySelector("button");G&&G.addEventListener("click",oe=>this.reduxStore.dispatch((0,p.u3)(this.conf.field,null,null)))}rangeChangeEvent(N,z,G){const oe=z!==""?z:null,ee=G!==""?G:null;this.reduxStore.dispatch((0,p.u3)(N,oe,ee))}}const L={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 d},A:function(){return g}});var v=n(2334),o=n.n(v),e=n(5756),p=n(1944),C=n(4922),u=n(4379),a=n(8905),s=n.n(a);class g{constructor(l,h,_){this.client=l,this.reduxStore=h,this.conf=_,(0,u.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",S=>this.render(S)),_.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(l){const h=l.results.page||1,_=this.client.getSettings().paging.pageSize,S=l.results.total_hits||0,I=Math.ceil(S/_),T={type:this.conf.type,hasMorePages:h<I,isLoading:l.loading,totalHits:S};let A;if(A=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):this.conf.template?o().compile(this.conf.template)(T):s()(T),this.renderedHtml===A)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=A,this.renderedHtml=A,this.conf.type===d.BUTTON){const U=j.querySelector("button");U&&(U.onclick=L=>this.loadMore())}else this.conf.type===d.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 h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,h,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const l=this.reduxStore.getState().search.loading,h=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!l&&h)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,S=h.getBoundingClientRect().top;S>0&&S<_&&this.loadMore()}}}const d={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return A},A:function(){return T}});var v=n(2334),o=n.n(v),e=n(549),p=n(4922),C=n(4379),u=n(8526),a=n(6843);function s(j){var U=Math.ceil(Math.log10(j+1));if(U===1)return 0;var L=Math.pow(10,U-1);return Math.floor(j/L)*L}function g(j){var U=Math.ceil(Math.log10(j+1)),L=Math.pow(10,U-1);return Math.ceil(j/L)*L}var d=n(7435),m=n(6427),l=n.n(m),h=n(1204),_=n.n(h);function S(){let j,U;function L(oe,ee){oe&&(oe.textContent=ee)}function B(oe,ee){const[Y,W]=N(oe,ee);typeof j=="function"&&j({activeRange:[Y,W]})}function N(oe,ee){return[parseFloat(oe.value),parseFloat(ee.value)]}function z(oe,ee,Y,W,Z){const ce=ee.max-ee.min,ye=oe.value-ee.min,_e=ee.value-ee.min;Z.style.background=`linear-gradient(
47
47
  to right,
48
48
  `.concat(Y,` 0%,
49
- `).concat(Y," ").concat(ge/ce*100,`%,
50
- `).concat(W," ").concat(ge/ce*100,`%,
49
+ `).concat(Y," ").concat(ye/ce*100,`%,
50
+ `).concat(W," ").concat(ye/ce*100,`%,
51
51
  `).concat(W," ").concat(_e/ce*100,`%,
52
52
  `).concat(Y," ").concat(_e/ce*100,`%,
53
- `).concat(Y," 100%)")}function G(oe){const ee=document.querySelector("#"+U+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+U+" [data-id=adds-slider-control-to]");Number(oe.value)<=ee.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(oe,ee,Y){j=ee,U=oe;const[W,Z,ce,ge]=function(){const Me=document.querySelector("#"+U+" .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")]}(),_e=Math.ceil(parseFloat(Z));(function(Me,We){const V=document.querySelector("#"+U+" .adds-range-slider-container"),[H,se,de,we]=Me,Se=`
53
+ `).concat(Y," 100%)")}function G(oe){const ee=document.querySelector("#"+U+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+U+" [data-id=adds-slider-control-to]");Number(oe.value)<=ee.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(oe,ee,Y){j=ee,U=oe;const[W,Z,ce,ye]=function(){const Ne=document.querySelector("#"+U+" .adds-range-slider-container");return[Ne.getAttribute("data-slider-min"),Ne.getAttribute("data-slider-max"),Ne.getAttribute("data-slider-start"),Ne.getAttribute("data-slider-end")]}(),_e=Math.ceil(parseFloat(Z));(function(Ne,We){const V=document.querySelector("#"+U+" .adds-range-slider-container"),[H,se,de,we]=Ne,Se=`
54
54
  <div class="adds-range-slider-control">
55
55
  <input data-id="adds-slider-control-from" type="range" value="`.concat(de||H,'" min="').concat(H,'" max="').concat(se,'" step="').concat(We,`" />
56
56
  <input data-id="adds-slider-control-to" type="range" value="`).concat(we||se,'" min="').concat(H,'" max="').concat(se,'" step="').concat(We,`" />
57
57
  </div>
58
- `);V.innerHTML=Se})([Math.floor(parseFloat(W)),_e,ce,ge],Y.step);const Ce=Y.styles,Re=document.querySelector("#"+oe+" [data-id=adds-slider-control-from]"),He=document.querySelector("#"+oe+" [data-id=adds-slider-control-to]"),Ie=document.querySelector("#"+oe+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+oe+" [data-id=adds-slider-display-end]");z(Re,He,Ce.trackColor,Ce.progressColor,He),G(He),L(Ie,ce||W),L(Ke,ge||Z),Re.oninput=()=>function(Me,We,V,H){const[se,de]=N(Me,We);z(Me,We,H.trackColor,H.progressColor,We),se>de?(Me.value=de,L(V,de)):L(V,se)}(Re,He,Ie,Ce),He.oninput=()=>function(Me,We,V,H){const[se,de]=N(Me,We);z(Me,We,H.trackColor,H.progressColor,We),G(We),se<=de?(We.value=de,L(V,de)):(We.value=se,L(V,se))}(Re,He,Ke,Ce),Re.onchange=()=>B(Re,He),He.onchange=()=>B(Re,He)}}S.init=function(j,U,L){new S().initialize(j,U,L)};var I=S;class T{constructor(U,L,B){this.client=U,this.reduxStore=L,this.conf=B,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var N=["component.loadMore","component.pagination","component.sortby"];function z(){var G=L.getState().filters.activeRangeFacets[B.field];return!!G&&!(0,d.I)(G)}this.conf.type===A.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=A.CHECKBOX,(0,C.A)(B.containerId)&&((0,p.G)(this.reduxStore,"search",G=>{const oe=z();if(!(!G.started||G.loading||G.callBy===this.conf.field&&oe||N.indexOf(G.callBy)>-1))if(G.results.hits&&G.results.hits.length){if(oe&&this.conf.type===A.SLIDER){var ee=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ee.gte,max:ee.lte}},this.conf.field))}else if(oe&&this.conf.type===A.CHECKBOX){const Y=(0,u.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 G.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,p.G)(this.reduxStore,"fieldstats",G=>{var oe=G.fieldStats[this.conf.field];if(G.callBy!==this.conf.field||oe===void 0)return;if(oe===null)return void this.renderRangeSlider();if(z()?this.ranges=function(W){const Z=[];for(const ce in W)Z.push({from:W[ce].gte,to:W[ce].lt});return Z}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,Z,ce){const ge=W>=0?s(W):-1*g(-1*W),_e=Z>=0?g(Z):-1*s(-1*Z),Ce=[];let Re=ge;const He=g((_e-ge)/ce);for(var Ie=0;Ie<ce;Ie++)Ce.push({from:Re,to:Re+He}),Re+=He;return Ce}(oe.min,oe.max,this.maxNumberOfRangeBuckets),this.conf.type===A.SLIDER)return void this.renderRangeSlider(G);var ee={field:this.conf.field,ranges:this.ranges};const Y=(0,u.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ee,Y,W=>{this.render(W)})}))}setRangeFilter(U,L,B){const N={min:L,max:B};this.reduxStore.dispatch((0,e.jU)(this.conf.field,N,U,!0))}setRangeSlider(U){this.reduxStore.dispatch((0,e.ks)(function(L,B,N){const z="".concat(B,"-").concat(N);return{[L]:{[z]:{gte:B,lte:N}}}}(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 N;N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(B):this.conf.template?o().compile(this.conf.template)(B):l()(B),L.innerHTML=N}else L.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(U){const L=this,B=document.getElementById(this.conf.containerId),N={conf:this.conf};if(!U)return void(B.innerHTML="");const z=this.getActiveRangeFacets(this.conf.field);let G;N.sliderConfig=Object.assign({},function(oe,ee){return!oe.fieldStats&&!oe.fieldStats[ee]?{min:null,max:null}:{min:oe.fieldStats[ee].min,max:oe.fieldStats[ee].max}}(U,this.conf.field),function(oe){let ee,Y;return oe.forEach(W=>{const Z=W.gte,ce=W.lte;(ee===void 0||Z<ee)&&(ee=Z),(Y===void 0||ce>Y)&&(Y=ce)}),{start:ee,end:Y}}(z)),G=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):_()(N),B.innerHTML=G,I.init(this.conf.containerId,function(oe){oe.activeRange.length&&L.setRangeSlider(oe.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),N=L.getElementsByTagName("input");for(let z=0;z<N.length;z++){let G=N[z];G.checked=!!B.find(oe=>oe.key===G.value),U&&(G.onchange=oe=>{this.setRangeFilter(oe.target.value,oe.target.getAttribute("data-value-min"),oe.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(U){let L=[];const B=this.reduxStore.getState().filters.activeRangeFacets;if(B[U])for(let N in B[U])L.push(B[U][N]);return L}}const A={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(b,c,n){n.d(c,{A:function(){return v.Ay},RECOMMENDATION_TYPE:function(){return o}});var v=n(3007);const o={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(b,c,n){n.d(c,{Qc:function(){return s},uH:function(){return g},Ay:function(){return d}});const v=`
58
+ `);V.innerHTML=Se})([Math.floor(parseFloat(W)),_e,ce,ye],Y.step);const Ce=Y.styles,Re=document.querySelector("#"+oe+" [data-id=adds-slider-control-from]"),Ue=document.querySelector("#"+oe+" [data-id=adds-slider-control-to]"),Ie=document.querySelector("#"+oe+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+oe+" [data-id=adds-slider-display-end]");z(Re,Ue,Ce.trackColor,Ce.progressColor,Ue),G(Ue),L(Ie,ce||W),L(Ke,ye||Z),Re.oninput=()=>function(Ne,We,V,H){const[se,de]=N(Ne,We);z(Ne,We,H.trackColor,H.progressColor,We),se>de?(Ne.value=de,L(V,de)):L(V,se)}(Re,Ue,Ie,Ce),Ue.oninput=()=>function(Ne,We,V,H){const[se,de]=N(Ne,We);z(Ne,We,H.trackColor,H.progressColor,We),G(We),se<=de?(We.value=de,L(V,de)):(We.value=se,L(V,se))}(Re,Ue,Ke,Ce),Re.onchange=()=>B(Re,Ue),Ue.onchange=()=>B(Re,Ue)}}S.init=function(j,U,L){new S().initialize(j,U,L)};var I=S;class T{constructor(U,L,B){this.client=U,this.reduxStore=L,this.conf=B,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var N=["component.loadMore","component.pagination","component.sortby"];function z(){var G=L.getState().filters.activeRangeFacets[B.field];return!!G&&!(0,d.I)(G)}this.conf.type===A.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=A.CHECKBOX,(0,C.A)(B.containerId)&&((0,p.G)(this.reduxStore,"search",G=>{const oe=z();if(!(!G.started||G.loading||G.callBy===this.conf.field&&oe||N.indexOf(G.callBy)>-1))if(G.results.hits&&G.results.hits.length){if(oe&&this.conf.type===A.SLIDER){var ee=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ee.gte,max:ee.lte}},this.conf.field))}else if(oe&&this.conf.type===A.CHECKBOX){const Y=(0,u.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 G.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,p.G)(this.reduxStore,"fieldstats",G=>{var oe=G.fieldStats[this.conf.field];if(G.callBy!==this.conf.field||oe===void 0)return;if(oe===null)return void this.renderRangeSlider();if(z()?this.ranges=function(W){const Z=[];for(const ce in W)Z.push({from:W[ce].gte,to:W[ce].lt});return Z}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,Z,ce){const ye=W>=0?s(W):-1*g(-1*W),_e=Z>=0?g(Z):-1*s(-1*Z),Ce=[];let Re=ye;const Ue=g((_e-ye)/ce);for(var Ie=0;Ie<ce;Ie++)Ce.push({from:Re,to:Re+Ue}),Re+=Ue;return Ce}(oe.min,oe.max,this.maxNumberOfRangeBuckets),this.conf.type===A.SLIDER)return void this.renderRangeSlider(G);var ee={field:this.conf.field,ranges:this.ranges};const Y=(0,u.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ee,Y,W=>{this.render(W)})}))}setRangeFilter(U,L,B){const N={min:L,max:B};this.reduxStore.dispatch((0,e.jU)(this.conf.field,N,U,!0))}setRangeSlider(U){this.reduxStore.dispatch((0,e.ks)(function(L,B,N){const z="".concat(B,"-").concat(N);return{[L]:{[z]:{gte:B,lte:N}}}}(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 N;N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(B):this.conf.template?o().compile(this.conf.template)(B):l()(B),L.innerHTML=N}else L.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(U){const L=this,B=document.getElementById(this.conf.containerId),N={conf:this.conf};if(!U)return void(B.innerHTML="");const z=this.getActiveRangeFacets(this.conf.field);let G;N.sliderConfig=Object.assign({},function(oe,ee){return!oe.fieldStats&&!oe.fieldStats[ee]?{min:null,max:null}:{min:oe.fieldStats[ee].min,max:oe.fieldStats[ee].max}}(U,this.conf.field),function(oe){let ee,Y;return oe.forEach(W=>{const Z=W.gte,ce=W.lte;(ee===void 0||Z<ee)&&(ee=Z),(Y===void 0||ce>Y)&&(Y=ce)}),{start:ee,end:Y}}(z)),G=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):_()(N),B.innerHTML=G,I.init(this.conf.containerId,function(oe){oe.activeRange.length&&L.setRangeSlider(oe.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),N=L.getElementsByTagName("input");for(let z=0;z<N.length;z++){let G=N[z];G.checked=!!B.find(oe=>oe.key===G.value),U&&(G.onchange=oe=>{this.setRangeFilter(oe.target.value,oe.target.getAttribute("data-value-min"),oe.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(U){let L=[];const B=this.reduxStore.getState().filters.activeRangeFacets;if(B[U])for(let N in B[U])L.push(B[U][N]);return L}}const A={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(b,c,n){n.d(c,{A:function(){return v.Ay},RECOMMENDATION_TYPE:function(){return o}});var v=n(3007);const o={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(b,c,n){n.d(c,{Qc:function(){return s},uH:function(){return g},Ay:function(){return d}});const v=`
59
59
  <div class="addsearch-recommendations">
60
60
  {{#each hits}}
61
61
  <div class="hit">
@@ -78,62 +78,62 @@ React keys must be passed directly to JSX without using spread:
78
78
  </div>
79
79
  {{/each}}
80
80
  </div>
81
- `;var o=n(2334),e=n.n(o),p=n(4922),C=n(4379),u=n(878),a=n(4128);const s=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,g=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class d{constructor(l,h,_,S){this.client=l,this.conf=_,this.reduxStore=h,S.push(_),(0,C.A)(_.containerId)&&(0,p.G)(this.reduxStore,"recommendation",I=>{I.container===_.containerId&&this.render(I)})}render(l){const h=l.results||{};h.blockId=this.conf.blockId;let _,S=this.conf.template||v;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(h):(S=this.conf.template||v,_=e().compile(S)(h)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,u.T7)()))}}},8909:function(b,c,n){n.d(c,{SORTBY_TYPE:function(){return h},A:function(){return l}});var v=n(2334),o=n.n(v),e=n(6353),p=n(1944),C=n(5756),u=n(4922),a=n(4379),s=n(6868),g=n.n(s),d=n(9462),m=n.n(d);class l{constructor(S,I,T){this.client=S,this.conf=T,this.reduxStore=I,this.conf.options.forEach(A=>{A.sortBy=typeof A.sortBy=="string"?A.sortBy.split(","):A.sortBy,A.order=typeof A.order=="string"?A.order.split(","):A.order}),(0,a.A)(T.containerId)&&(0,u.G)(this.reduxStore,"sortby",A=>this.render(A))}onChangeSelect(S){const I=S.options[S.selectedIndex],T=I.getAttribute("data-field"),A=I.getAttribute("data-order");this.dispatchAndRefresh(T,A)}onChangeRadio(S){const I=S.target.getAttribute("data-field"),T=S.target.getAttribute("data-order");this.dispatchAndRefresh(I,T)}dispatchAndRefresh(S,I){const T=S.split(","),A=I.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,T,A,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const j=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,j,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(S,I){return S.length===I.length&&S.every((T,A)=>T===I[A])}render(S){const{field:I,order:T}=S;let A=null;A=this.conf.type===h.RADIO_GROUP?g():m();let j,U=Object.assign({},this.conf);if(U.options.forEach(B=>{this.arraysMatch(B.sortBy,I)&&this.arraysMatch(B.order,T)?B.active=!0:B.active=!1}),j=this.conf.precompiledTemplate?this.conf.precompiledTemplate(U):this.conf.template?o().compile(this.conf.template)(U):A(U),this.renderedHtml===j)return;const L=document.getElementById(this.conf.containerId);if(L.innerHTML=j,this.renderedHtml=j,this.conf.type===h.RADIO_GROUP){const B=L.querySelectorAll("input");for(let N=0;N<B.length;N++)B[N].onclick=z=>this.onChangeRadio(z)}else if(L.querySelector("select").onchange=B=>this.onChangeSelect(B.target),S){const B=L.getElementsByTagName("option");for(let N=0;N<B.length;N++)if(B[N].getAttribute("data-field")===I&&B[N].getAttribute("data-order")===T){L.querySelector("select").value=B[N].text;break}}}}const h={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},9770:function(b,c,n){n.d(c,{Z:function(){return Pt},H:function(){return Xn},default:function(){return Vl}});var v=n(9491),o=n.n(v),e=n(2334),p=n.n(e),C=n(549),u=n(4379),a=n(4922),s=n(3787),g=n.n(s);const d="FILTER",m="RANGE_FILTER",l="FACET",h="RANGE_FACET",_="HIERARCHICAL_FACET";class S{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"filters",R=>this.render(R))}getFilterLabel(x,k){for(let P=0;P<k.length;P++)if(k[P][x])return k[P][x].label}emptyIfNull(x){return x??""}render(x){let k=[];for(let re in x.activeFilters)k.push({type:d,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ue=x.activeRangeFilters[re];k.push({type:m,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ue.gte)+"-"+this.emptyIfNull(ue.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var P in x.activeFacets[re])k.push({name:re,type:l,value:P,label:P.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ue in x.activeHierarchicalFacets[re])for(let xe in x.activeHierarchicalFacets[re][ue])k.push({name:ue,type:_,container:re,value:xe,label:xe});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ue in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ue)&&k.push({name:re,type:h,value:ue,label:ue,rangeMin:x.activeRangeFacets[re][ue].gte,rangeMax:x.activeRangeFacets[re][ue].lte});const R={active:k,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(R):this.conf.template?p().compile(this.conf.template)(R):g()(R),this.renderedHtml===M)return;const q=document.getElementById(this.conf.containerId);q.innerHTML=M,this.renderedHtml=M;const K=q.querySelectorAll("[data-type]");for(let re=0;re<K.length;re++)K[re].addEventListener("click",ue=>this.handleFilterClick(ue));const ne=q.querySelector("[data-clearall]");ne&&ne.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const k=x.target.getAttribute("data-type"),P=x.target.getAttribute("data-name"),R=x.target.getAttribute("data-value"),M=x.target.getAttribute("data-container"),q=x.target.getAttribute("data-conf-fields")?x.target.getAttribute("data-conf-fields").split(","):[],K=x.target.getAttribute("data-range-min"),ne=x.target.getAttribute("data-range-max");if(k===d)this.reduxStore.dispatch((0,C.VH)(P,R,!0));else if(k===m)this.reduxStore.dispatch((0,C.u3)(P,null,null));else if(k===l)this.reduxStore.dispatch((0,C.II)(P,R));else if(k===_)this.reduxStore.dispatch((0,C.Ni)(P,M,q,R,!0));else if(k===h){const re={min:K,max:ne};this.reduxStore.dispatch((0,C.jU)(P,re,R,!0,!0))}}}var I=n(6510),T=n(8526),A=n(1353),j=n.n(A);class U{constructor(x,k,P,R){this.client=x,this.reduxStore=k,this.conf=P;var M=["component.loadMore","component.pagination","component.sortby"];(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",q=>{var K,ne=this.reduxStore.getState().filters.activeFacets;if(!(q.loading||M.indexOf(q.callBy)>-1))if((K=ne[this.conf.field])&&Object.keys(K).length!==0&&this.conf.advancedSticky){var re=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.field);if(q.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ue=>{this.render(ue,!0)});else{const ue=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ue)}}else this.render(q)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.field,R=k?x:x.results;let M=[];R&&R.facets&&R.facets[P]&&(M=R.facets[P]);const q=this.getActiveFacets(P);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===x.keyword&&this.stickyFacets&&q.length!==0?M=this.stickyFacets:(this.keyword=x.keyword,this.stickyFacets=M)),this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):j()(K),this.renderedHtml===ne&&q===this.renderedActiveFacets)return;this.renderedActiveFacets=q;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("input");for(let xe=0;xe<ue.length;xe++){let ke=ue[xe];ke.checked=q.indexOf(ke.value)!==-1,ke.onchange=De=>{this.setFilter(De.target.value,De.target.checked)}}}getActiveFacets(x){let k=[];const P=this.reduxStore.getState().filters.activeFacets;if(P[x])for(let R in P[x])k.push(R);return k}updateCheckboxStates(x){const k=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let P=0;P<k.length;P++){let R=k[P];R.checked=x.indexOf(R.value)!==-1}}}var L=n(4278),B=n.n(L),N=n(3923),z=n(2009),G=n.n(z);class oe{constructor(x,k,P,R){function M(ne,re){let ue=!0;return ne&&re.forEach(xe=>{var ke;(ke=ne[xe])&&Object.keys(ke).length!==0&&(ue=!1)}),ue}this.client=x,this.reduxStore=k,this.conf=P;var q=["component.loadMore","component.pagination","component.sortby"];const K=this.conf.template_subHierarchicalFacetsTemplate||G();(0,N.bp)("subHierarchicalFacetsTemplate",K),(0,N.g3)("validateOpenState",function(ne){return k.getState().filters.openedHierarchicalFacetGroups.indexOf(ne)===-1}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",ne=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(ne.loading||q.indexOf(ne.callBy)>-1))if(M(re,this.conf.fields)||!ne.results.hits.length)this.render(ne);else{var ue=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.fields);if(this.conf.fields.indexOf(ne.callBy)===-1)x.fetchCustomApi(this.conf.field,ue,ke=>{this.render(ke,!0)});else{var xe=document.getElementById(this.conf.containerId);this._updateCheckBoxes(xe,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(x,k){this.reduxStore.dispatch((0,C.Ni)(k,this.conf.containerId,this.conf.fields,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.fields,R=k?x:x.results;let M=[];R&&R.hierarchicalFacets&&R.hierarchicalFacets[P[0]]&&(M=R.hierarchicalFacets[P[0]],M=M.map(xe=>(xe.field=xe.field.replace("hierarchical_facet.",""),xe)));const q=this.getActiveFacets(P,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):B()(K),this.renderedHtml===ne&&q===this.renderedActiveFacets)return;this.renderedActiveFacets=q;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne,this._updateCheckBoxes(re,q,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ue=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let xe=0;xe<ue.length;xe++)ue[xe].addEventListener("click",()=>{ue[xe].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ue[xe].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,k){let P=[];const R=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(R[k]&&R[k][M])for(let q in R[k][M])P.push(q)}),P}_toggleFacetGroupOpenState(x){const k=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,P=k.indexOf(x);P===-1?k.push(x):k.splice(P,1)}_updateCheckBoxes(x,k,P,R){const M=x.getElementsByTagName("input");for(let q=0;q<M.length;q++){let K=M[q];K.checked=k.indexOf(K.value)!==-1,K.indeterminate=R.indexOf(K.value)>-1,P&&(K.onchange=ne=>{this.setFilter(ne.target.value,ne.target.getAttribute("data-field"))})}}}var ee=n(1990),Y=n(9369),W=n(3816),Z=n(5756),ce=n(1944),ge=n(4245),_e=n.n(ge);class Ce{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),k=x.search.results.page||1,P=this.client.getSettings().paging.pageSize,R=x.search.results.total_hits||0,M=Math.ceil(R/P),q=function(xe,ke){if(!ke||ke<2||!xe||xe>ke)return null;for(var De=[],Ue=0;Ue<ke;Ue++)De.push(Ue+1);if(ke<=9)return De;if(ke>9&&xe<7)return De.slice(0,9);if(ke>9&&xe>=ke-3)return De.slice(ke-9);var St=De.indexOf(xe);return St-4>=0&&St+5<=De.length?De.slice(St-4,St+5):null}(k,M),K={currentPage:k,lastPage:q?q[q.length-1]:0,totalPages:M,pages:q};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):_e()(K),this.renderedHtml===ne)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("button");for(let xe=0;xe<ue.length;xe++)ue[xe].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const k=x.target;let P=null;k.getAttribute("data-page")==="previous"?P=this.reduxStore.getState().pagination.page-1:k.getAttribute("data-page")==="next"?P=(this.reduxStore.getState().pagination.page||1)+1:P=parseInt(k.getAttribute("data-page"),10),this.reduxStore.dispatch((0,Z.I)(this.client,P,null,this.reduxStore));const R=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ce.EF)(this.client,R,M,null,null,this.reduxStore,null,"component.pagination"))}}var Re=n(8505),He=n.n(Re),Ie=n(6148),Ke=n(6993),Me=n(4903);const We=40,V=38,H=13,se=8,de=46;class we{constructor(x,k,P,R,M){this.client=x,this.reduxStore=k,this.conf=P,this.matchAllQuery=R,this.minLengthToShowResults=P.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const q=P.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:q})),P.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",K=>{K.setSearchFieldValue&&this.updateValueOnAllBoundFields(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdateBoundField(K))):(0,u.A)(P.containerId)&&((0,a.G)(this.reduxStore,"keyword",K=>{K.searchFieldContainerId!==this.conf.containerId&&K.searchFieldContainerId!==null||this.render(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdate(K)))}updateValueOnAllBoundFields(x){for(var k=0;k<this.boundFields.length;k++)this.boundFields[k].value=x}onAutocompleteUpdate(x){if((x.suggestions.length>0||x.customFields.length>0)&&x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null&&x.setSuggestionToSearchField){const k=(x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex]).value;this.render(k)}else x.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(x){if(x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null){const k=x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex];if(!k)return;const P=k.value;this.updateValueOnAllBoundFields(P)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,k,P){P||this.reduxStore.dispatch((0,Ie.dC)());let R=k;R===""&&this.matchAllQuery&&(R=Pt),R.indexOf(Xn)!==0&&this.reduxStore.dispatch((0,Z.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(R,!1,P,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(x){const k=this.reduxStore.getState().search.searchResultsPageUrl;k&&this.conf.ignoreSearchResultsPageUrl!==!0&&x&&x.length>0?(0,Me.lG)(k,x):this.executeSearch(this.client,x,!1)}addEventListenersToField(x){x.oninput=k=>this.oninput(k),x.onkeypress=k=>this.onkeypress(k),x.onkeyup=k=>this.onkeyup(k),x.onfocus=k=>this.onfocus(k),x.onblur=k=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(x){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(x.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(x){const k=this.reduxStore;x===""&&this.matchAllQuery&&(x=Pt),k.dispatch((0,Ie.dC)()),k.dispatch((0,Ke.Ai)(x,!0,null,!1)),this.redirectOrSearch(x)}render(x){const k=document.getElementById(this.conf.containerId);k.querySelector("input")?x!==null&&x!==Pt&&k.querySelector("input").value!==x&&(k.querySelector("input").value=x):(this.conf.precompiledTemplate?k.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?k.innerHTML=p().compile(this.conf.template)(this.conf):k.innerHTML=He()(this.conf),this.field=k.querySelector("input"),x!==Pt&&(this.field.value=x),this.addEventListenersToField(this.field),k.querySelector("button")&&(k.querySelector("button").onclick=()=>{let P=this.field.value;this.handleSubmitKeyword(P)}),k.querySelector("form")&&(k.querySelector("form").onsubmit=P=>P.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=k=>{k.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const k=document.querySelector(this.conf.buttonSelector);k.type==="submit"&&(k.type="button"),k.onclick=()=>{let P=this.boundFields[0].value;this.handleSubmitKeyword(P)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const k=this.reduxStore;let P=x.target.value;P===""&&this.matchAllQuery&&(P=Pt),x.keyCode!==se&&x.keyCode!==de||k.dispatch((0,Ie.XD)(null,!1));const R=this.conf.ignoreAutocomplete===!0;k.dispatch((0,Ke.Ai)(P,R,this.conf.containerId)),k.dispatch((0,Ie.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,P,!0)}onkeyup(x){const k=this.reduxStore;x.keyCode===We?k.dispatch((0,Ie.C0)(Ie.Jd)):x.keyCode===V&&k.dispatch((0,Ie.C0)(Ie.il))}onkeypress(x){if(x.keyCode===H){const k=x.target.value;this.handleSubmitKeyword(k)}}onfocus(x){x.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,Ke.Ai)(Pt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Xn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Ie.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Ie.dC)())}}var Se=n(6351),Ae=n(6873),me=n.n(Ae),ve=n(303),be=n.n(ve),Be=n(2123),X=n.n(Be),le=n(4111),ie=n.n(le);class fe{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k;const R=this.conf.template_resultcount||X(),M=this.conf.template_image||ie();(0,N.bp)("numberOfResultsTemplate",R),(0,N.bp)("searchResultImageTemplate",M),(0,N.g3)("removeTrailingQueriesFromUrl",K=>{if(K)return K.replace(/\?.*$/,"")});const q=this.conf.categorySelectionFunction||N.GK;(0,N.g3)("selectCategory",K=>q(K,this.conf.categoryAliases)),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,k=x.results||{};let P;if(k.resultcount=k.hits&&this.conf.showNumberOfResults!==!1,k.keyword=x.keyword,P=k.hits&&k.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(k):this.conf.template_noresults?p().compile(this.conf.template_noresults)(k):be()(k):this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?p().compile(this.conf.template)(k):me()(k),this.renderedHtml===P)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=P,this.renderedHtml=P,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=R.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,M,k)}}function O(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let y={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function w(pe){y=pe}const F=/[&<>"']/,$=new RegExp(F.source,"g"),J=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,te=new RegExp(J.source,"g"),Te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ze=pe=>Te[pe];function Pe(pe,x){if(x){if(F.test(pe))return pe.replace($,ze)}else if(J.test(pe))return pe.replace(te,ze);return pe}const Ge=/(^|[^\[])\^/g;function ye(pe,x){let k=typeof pe=="string"?pe:pe.source;x=x||"";const P={replace:(R,M)=>{let q=typeof M=="string"?M:M.source;return q=q.replace(Ge,"$1"),k=k.replace(R,q),P},getRegex:()=>new RegExp(k,x)};return P}function Zt(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const Lt={exec:()=>null};function At(pe,x){const k=pe.replace(/\|/g,(R,M,q)=>{let K=!1,ne=M;for(;--ne>=0&&q[ne]==="\\";)K=!K;return K?"|":" |"}).split(/ \|/);let P=0;if(k[0].trim()||k.shift(),k.length>0&&!k[k.length-1].trim()&&k.pop(),x)if(k.length>x)k.splice(x);else for(;k.length<x;)k.push("");for(;P<k.length;P++)k[P]=k[P].trim().replace(/\\\|/g,"|");return k}function Tt(pe,x,k){const P=pe.length;if(P===0)return"";let R=0;for(;R<P;){const M=pe.charAt(P-R-1);if(M!==x||k){if(M===x||!k)break;R++}else R++}return pe.slice(0,P-R)}function Xt(pe,x,k,P){const R=x.href,M=x.title?Pe(x.title):null,q=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){P.state.inLink=!0;const K={type:"link",raw:k,href:R,title:M,text:q,tokens:P.inlineTokens(q)};return P.state.inLink=!1,K}return{type:"image",raw:k,href:R,title:M,text:Pe(q)}}class Ht{constructor(x){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=x||y}space(x){const k=this.rules.block.newline.exec(x);if(k&&k[0].length>0)return{type:"space",raw:k[0]}}code(x){const k=this.rules.block.code.exec(x);if(k){const P=k[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:k[0],codeBlockStyle:"indented",text:this.options.pedantic?P:Tt(P,`
82
- `)}}}fences(x){const k=this.rules.block.fences.exec(x);if(k){const P=k[0],R=function(M,q){const K=M.match(/^(\s+)(?:```)/);if(K===null)return q;const ne=K[1];return q.split(`
81
+ `;var o=n(2334),e=n.n(o),p=n(4922),C=n(4379),u=n(878),a=n(4128);const s=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,g=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class d{constructor(l,h,_,S){this.client=l,this.conf=_,this.reduxStore=h,S.push(_),(0,C.A)(_.containerId)&&(0,p.G)(this.reduxStore,"recommendation",I=>{I.container===_.containerId&&this.render(I)})}render(l){const h=l.results||{};h.blockId=this.conf.blockId;let _,S=this.conf.template||v;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(h):(S=this.conf.template||v,_=e().compile(S)(h)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,u.T7)()))}}},8909:function(b,c,n){n.d(c,{SORTBY_TYPE:function(){return h},A:function(){return l}});var v=n(2334),o=n.n(v),e=n(6353),p=n(1944),C=n(5756),u=n(4922),a=n(4379),s=n(6868),g=n.n(s),d=n(9462),m=n.n(d);class l{constructor(S,I,T){this.client=S,this.conf=T,this.reduxStore=I,this.conf.options.forEach(A=>{A.sortBy=typeof A.sortBy=="string"?A.sortBy.split(","):A.sortBy,A.order=typeof A.order=="string"?A.order.split(","):A.order}),(0,a.A)(T.containerId)&&(0,u.G)(this.reduxStore,"sortby",A=>this.render(A))}onChangeSelect(S){const I=S.options[S.selectedIndex],T=I.getAttribute("data-field"),A=I.getAttribute("data-order");this.dispatchAndRefresh(T,A)}onChangeRadio(S){const I=S.target.getAttribute("data-field"),T=S.target.getAttribute("data-order");this.dispatchAndRefresh(I,T)}dispatchAndRefresh(S,I){const T=S.split(","),A=I.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,T,A,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const j=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,j,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(S,I){return S.length===I.length&&S.every((T,A)=>T===I[A])}render(S){const{field:I,order:T}=S;let A=null;A=this.conf.type===h.RADIO_GROUP?g():m();let j,U=Object.assign({},this.conf);if(U.options.forEach(B=>{this.arraysMatch(B.sortBy,I)&&this.arraysMatch(B.order,T)?B.active=!0:B.active=!1}),j=this.conf.precompiledTemplate?this.conf.precompiledTemplate(U):this.conf.template?o().compile(this.conf.template)(U):A(U),this.renderedHtml===j)return;const L=document.getElementById(this.conf.containerId);if(L.innerHTML=j,this.renderedHtml=j,this.conf.type===h.RADIO_GROUP){const B=L.querySelectorAll("input");for(let N=0;N<B.length;N++)B[N].onclick=z=>this.onChangeRadio(z)}else if(L.querySelector("select").onchange=B=>this.onChangeSelect(B.target),S){const B=L.getElementsByTagName("option");for(let N=0;N<B.length;N++)if(B[N].getAttribute("data-field")===I&&B[N].getAttribute("data-order")===T){L.querySelector("select").value=B[N].text;break}}}}const h={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},9770:function(b,c,n){n.d(c,{Z:function(){return Pt},H:function(){return Xn},default:function(){return Vl}});var v=n(9491),o=n.n(v),e=n(2334),p=n.n(e),C=n(549),u=n(4379),a=n(4922),s=n(3787),g=n.n(s);const d="FILTER",m="RANGE_FILTER",l="FACET",h="RANGE_FACET",_="HIERARCHICAL_FACET";class S{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"filters",R=>this.render(R))}getFilterLabel(x,k){for(let P=0;P<k.length;P++)if(k[P][x])return k[P][x].label}emptyIfNull(x){return x??""}render(x){let k=[];for(let re in x.activeFilters)k.push({type:d,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ue=x.activeRangeFilters[re];k.push({type:m,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ue.gte)+"-"+this.emptyIfNull(ue.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var P in x.activeFacets[re])k.push({name:re,type:l,value:P,label:P.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ue in x.activeHierarchicalFacets[re])for(let xe in x.activeHierarchicalFacets[re][ue])k.push({name:ue,type:_,container:re,value:xe,label:xe});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ue in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ue)&&k.push({name:re,type:h,value:ue,label:ue,rangeMin:x.activeRangeFacets[re][ue].gte,rangeMax:x.activeRangeFacets[re][ue].lte});const R={active:k,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(R):this.conf.template?p().compile(this.conf.template)(R):g()(R),this.renderedHtml===M)return;const $=document.getElementById(this.conf.containerId);$.innerHTML=M,this.renderedHtml=M;const K=$.querySelectorAll("[data-type]");for(let re=0;re<K.length;re++)K[re].addEventListener("click",ue=>this.handleFilterClick(ue));const ne=$.querySelector("[data-clearall]");ne&&ne.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const k=x.target.getAttribute("data-type"),P=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(","):[],K=x.target.getAttribute("data-range-min"),ne=x.target.getAttribute("data-range-max");if(k===d)this.reduxStore.dispatch((0,C.VH)(P,R,!0));else if(k===m)this.reduxStore.dispatch((0,C.u3)(P,null,null));else if(k===l)this.reduxStore.dispatch((0,C.II)(P,R));else if(k===_)this.reduxStore.dispatch((0,C.Ni)(P,M,$,R,!0));else if(k===h){const re={min:K,max:ne};this.reduxStore.dispatch((0,C.jU)(P,re,R,!0,!0))}}}var I=n(6510),T=n(8526),A=n(1353),j=n.n(A);class U{constructor(x,k,P,R){this.client=x,this.reduxStore=k,this.conf=P;var M=["component.loadMore","component.pagination","component.sortby"];(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",$=>{var K,ne=this.reduxStore.getState().filters.activeFacets;if(!($.loading||M.indexOf($.callBy)>-1))if((K=ne[this.conf.field])&&Object.keys(K).length!==0&&this.conf.advancedSticky){var re=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.field);if($.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ue=>{this.render(ue,!0)});else{const ue=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ue)}}else this.render($)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.field,R=k?x:x.results;let M=[];R&&R.facets&&R.facets[P]&&(M=R.facets[P]);const $=this.getActiveFacets(P);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 K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):j()(K),this.renderedHtml===ne&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("input");for(let xe=0;xe<ue.length;xe++){let ke=ue[xe];ke.checked=$.indexOf(ke.value)!==-1,ke.onchange=Be=>{this.setFilter(Be.target.value,Be.target.checked)}}}getActiveFacets(x){let k=[];const P=this.reduxStore.getState().filters.activeFacets;if(P[x])for(let R in P[x])k.push(R);return k}updateCheckboxStates(x){const k=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let P=0;P<k.length;P++){let R=k[P];R.checked=x.indexOf(R.value)!==-1}}}var L=n(4278),B=n.n(L),N=n(3923),z=n(2009),G=n.n(z);class oe{constructor(x,k,P,R){function M(ne,re){let ue=!0;return ne&&re.forEach(xe=>{var ke;(ke=ne[xe])&&Object.keys(ke).length!==0&&(ue=!1)}),ue}this.client=x,this.reduxStore=k,this.conf=P;var $=["component.loadMore","component.pagination","component.sortby"];const K=this.conf.template_subHierarchicalFacetsTemplate||G();(0,N.bp)("subHierarchicalFacetsTemplate",K),(0,N.g3)("validateOpenState",function(ne){return k.getState().filters.openedHierarchicalFacetGroups.indexOf(ne)===-1}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",ne=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(ne.loading||$.indexOf(ne.callBy)>-1))if(M(re,this.conf.fields)||!ne.results.hits.length)this.render(ne);else{var ue=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.fields);if(this.conf.fields.indexOf(ne.callBy)===-1)x.fetchCustomApi(this.conf.field,ue,ke=>{this.render(ke,!0)});else{var xe=document.getElementById(this.conf.containerId);this._updateCheckBoxes(xe,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(x,k){this.reduxStore.dispatch((0,C.Ni)(k,this.conf.containerId,this.conf.fields,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.fields,R=k?x:x.results;let M=[];R&&R.hierarchicalFacets&&R.hierarchicalFacets[P[0]]&&(M=R.hierarchicalFacets[P[0]],M=M.map(xe=>(xe.field=xe.field.replace("hierarchical_facet.",""),xe)));const $=this.getActiveFacets(P,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):B()(K),this.renderedHtml===ne&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne,this._updateCheckBoxes(re,$,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ue=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let xe=0;xe<ue.length;xe++)ue[xe].addEventListener("click",()=>{ue[xe].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ue[xe].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,k){let P=[];const R=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(R[k]&&R[k][M])for(let $ in R[k][M])P.push($)}),P}_toggleFacetGroupOpenState(x){const k=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,P=k.indexOf(x);P===-1?k.push(x):k.splice(P,1)}_updateCheckBoxes(x,k,P,R){const M=x.getElementsByTagName("input");for(let $=0;$<M.length;$++){let K=M[$];K.checked=k.indexOf(K.value)!==-1,K.indeterminate=R.indexOf(K.value)>-1,P&&(K.onchange=ne=>{this.setFilter(ne.target.value,ne.target.getAttribute("data-field"))})}}}var ee=n(1990),Y=n(9369),W=n(3816),Z=n(5756),ce=n(1944),ye=n(4245),_e=n.n(ye);class Ce{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),k=x.search.results.page||1,P=this.client.getSettings().paging.pageSize,R=x.search.results.total_hits||0,M=Math.ceil(R/P),$=function(xe,ke){if(!ke||ke<2||!xe||xe>ke)return null;for(var Be=[],$e=0;$e<ke;$e++)Be.push($e+1);if(ke<=9)return Be;if(ke>9&&xe<7)return Be.slice(0,9);if(ke>9&&xe>=ke-3)return Be.slice(ke-9);var St=Be.indexOf(xe);return St-4>=0&&St+5<=Be.length?Be.slice(St-4,St+5):null}(k,M),K={currentPage:k,lastPage:$?$[$.length-1]:0,totalPages:M,pages:$};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):_e()(K),this.renderedHtml===ne)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("button");for(let xe=0;xe<ue.length;xe++)ue[xe].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const k=x.target;let P=null;k.getAttribute("data-page")==="previous"?P=this.reduxStore.getState().pagination.page-1:k.getAttribute("data-page")==="next"?P=(this.reduxStore.getState().pagination.page||1)+1:P=parseInt(k.getAttribute("data-page"),10),this.reduxStore.dispatch((0,Z.I)(this.client,P,null,this.reduxStore));const R=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ce.EF)(this.client,R,M,null,null,this.reduxStore,null,"component.pagination"))}}var Re=n(8505),Ue=n.n(Re),Ie=n(6148),Ke=n(6993),Ne=n(4903);const We=40,V=38,H=13,se=8,de=46;class we{constructor(x,k,P,R,M){this.client=x,this.reduxStore=k,this.conf=P,this.matchAllQuery=R,this.minLengthToShowResults=P.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const $=P.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:$})),P.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",K=>{K.setSearchFieldValue&&this.updateValueOnAllBoundFields(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdateBoundField(K))):(0,u.A)(P.containerId)&&((0,a.G)(this.reduxStore,"keyword",K=>{K.searchFieldContainerId!==this.conf.containerId&&K.searchFieldContainerId!==null||this.render(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdate(K)))}updateValueOnAllBoundFields(x){for(var k=0;k<this.boundFields.length;k++)this.boundFields[k].value=x}onAutocompleteUpdate(x){if((x.suggestions.length>0||x.customFields.length>0)&&x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null&&x.setSuggestionToSearchField){const k=(x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex]).value;this.render(k)}else x.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(x){if(x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null){const k=x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex];if(!k)return;const P=k.value;this.updateValueOnAllBoundFields(P)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,k,P){P||this.reduxStore.dispatch((0,Ie.dC)());let R=k;R===""&&this.matchAllQuery&&(R=Pt),R.indexOf(Xn)!==0&&this.reduxStore.dispatch((0,Z.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(R,!1,P,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(x){const k=this.reduxStore.getState().search.searchResultsPageUrl;k&&this.conf.ignoreSearchResultsPageUrl!==!0&&x&&x.length>0?(0,Ne.lG)(k,x):this.executeSearch(this.client,x,!1)}addEventListenersToField(x){x.oninput=k=>this.oninput(k),x.onkeypress=k=>this.onkeypress(k),x.onkeyup=k=>this.onkeyup(k),x.onfocus=k=>this.onfocus(k),x.onblur=k=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(x){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(x.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(x){const k=this.reduxStore;x===""&&this.matchAllQuery&&(x=Pt),k.dispatch((0,Ie.dC)()),k.dispatch((0,Ke.Ai)(x,!0,null,!1)),this.redirectOrSearch(x)}render(x){const k=document.getElementById(this.conf.containerId);k.querySelector("input")?x!==null&&x!==Pt&&k.querySelector("input").value!==x&&(k.querySelector("input").value=x):(this.conf.precompiledTemplate?k.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?k.innerHTML=p().compile(this.conf.template)(this.conf):k.innerHTML=Ue()(this.conf),this.field=k.querySelector("input"),x!==Pt&&(this.field.value=x),this.addEventListenersToField(this.field),k.querySelector("button")&&(k.querySelector("button").onclick=()=>{let P=this.field.value;this.handleSubmitKeyword(P)}),k.querySelector("form")&&(k.querySelector("form").onsubmit=P=>P.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=k=>{k.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const k=document.querySelector(this.conf.buttonSelector);k.type==="submit"&&(k.type="button"),k.onclick=()=>{let P=this.boundFields[0].value;this.handleSubmitKeyword(P)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const k=this.reduxStore;let P=x.target.value;P===""&&this.matchAllQuery&&(P=Pt),x.keyCode!==se&&x.keyCode!==de||k.dispatch((0,Ie.XD)(null,!1));const R=this.conf.ignoreAutocomplete===!0;k.dispatch((0,Ke.Ai)(P,R,this.conf.containerId)),k.dispatch((0,Ie.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,P,!0)}onkeyup(x){const k=this.reduxStore;x.keyCode===We?k.dispatch((0,Ie.C0)(Ie.Jd)):x.keyCode===V&&k.dispatch((0,Ie.C0)(Ie.il))}onkeypress(x){if(x.keyCode===H){const k=x.target.value;this.handleSubmitKeyword(k)}}onfocus(x){x.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,Ke.Ai)(Pt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Xn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Ie.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Ie.dC)())}}var Se=n(6351),Ae=n(6873),me=n.n(Ae),ve=n(303),be=n.n(ve),Me=n(2123),X=n.n(Me),le=n(4111),ie=n.n(le);class he{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k;const R=this.conf.template_resultcount||X(),M=this.conf.template_image||ie();(0,N.bp)("numberOfResultsTemplate",R),(0,N.bp)("searchResultImageTemplate",M),(0,N.g3)("removeTrailingQueriesFromUrl",K=>{if(K)return K.replace(/\?.*$/,"")});const $=this.conf.categorySelectionFunction||N.GK;(0,N.g3)("selectCategory",K=>$(K,this.conf.categoryAliases)),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,k=x.results||{};let P;if(k.resultcount=k.hits&&this.conf.showNumberOfResults!==!1,k.keyword=x.keyword,P=k.hits&&k.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(k):this.conf.template_noresults?p().compile(this.conf.template_noresults)(k):be()(k):this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?p().compile(this.conf.template)(k):me()(k),this.renderedHtml===P)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=P,this.renderedHtml=P,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=R.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,M,k)}}function O(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let y={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function w(pe){y=pe}const F=/[&<>"']/,q=new RegExp(F.source,"g"),J=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,te=new RegExp(J.source,"g"),Te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ze=pe=>Te[pe];function Pe(pe,x){if(x){if(F.test(pe))return pe.replace(q,ze)}else if(J.test(pe))return pe.replace(te,ze);return pe}const Ge=/(^|[^\[])\^/g;function ge(pe,x){let k=typeof pe=="string"?pe:pe.source;x=x||"";const P={replace:(R,M)=>{let $=typeof M=="string"?M:M.source;return $=$.replace(Ge,"$1"),k=k.replace(R,$),P},getRegex:()=>new RegExp(k,x)};return P}function mn(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const xt={exec:()=>null};function Yt(pe,x){const k=pe.replace(/\|/g,(R,M,$)=>{let K=!1,ne=M;for(;--ne>=0&&$[ne]==="\\";)K=!K;return K?"|":" |"}).split(/ \|/);let P=0;if(k[0].trim()||k.shift(),k.length>0&&!k[k.length-1].trim()&&k.pop(),x)if(k.length>x)k.splice(x);else for(;k.length<x;)k.push("");for(;P<k.length;P++)k[P]=k[P].trim().replace(/\\\|/g,"|");return k}function At(pe,x,k){const P=pe.length;if(P===0)return"";let R=0;for(;R<P&&!(pe.charAt(P-R-1)!==x||k);)R++;return pe.slice(0,P-R)}function gn(pe,x,k,P){const R=x.href,M=x.title?Pe(x.title):null,$=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){P.state.inLink=!0;const K={type:"link",raw:k,href:R,title:M,text:$,tokens:P.inlineTokens($)};return P.state.inLink=!1,K}return{type:"image",raw:k,href:R,title:M,text:Pe($)}}class Qt{constructor(x){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=x||y}space(x){const k=this.rules.block.newline.exec(x);if(k&&k[0].length>0)return{type:"space",raw:k[0]}}code(x){const k=this.rules.block.code.exec(x);if(k){const P=k[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:k[0],codeBlockStyle:"indented",text:this.options.pedantic?P:At(P,`
82
+ `)}}}fences(x){const k=this.rules.block.fences.exec(x);if(k){const P=k[0],R=function(M,$){const K=M.match(/^(\s+)(?:```)/);if(K===null)return $;const ne=K[1];return $.split(`
83
83
  `).map(re=>{const ue=re.match(/^\s+/);if(ue===null)return re;const[xe]=ue;return xe.length>=ne.length?re.slice(ne.length):re}).join(`
84
- `)}(P,k[3]||"");return{type:"code",raw:P,lang:k[2]?k[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):k[2],text:R}}}heading(x){const k=this.rules.block.heading.exec(x);if(k){let P=k[2].trim();if(/#$/.test(P)){const R=Tt(P,"#");this.options.pedantic?P=R.trim():R&&!/ $/.test(R)||(P=R.trim())}return{type:"heading",raw:k[0],depth:k[1].length,text:P,tokens:this.lexer.inline(P)}}}hr(x){const k=this.rules.block.hr.exec(x);if(k)return{type:"hr",raw:Tt(k[0],`
85
- `)}}blockquote(x){const k=this.rules.block.blockquote.exec(x);if(k){let P=Tt(k[0],`
84
+ `)}(P,k[3]||"");return{type:"code",raw:P,lang:k[2]?k[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):k[2],text:R}}}heading(x){const k=this.rules.block.heading.exec(x);if(k){let P=k[2].trim();if(/#$/.test(P)){const R=At(P,"#");this.options.pedantic?P=R.trim():R&&!/ $/.test(R)||(P=R.trim())}return{type:"heading",raw:k[0],depth:k[1].length,text:P,tokens:this.lexer.inline(P)}}}hr(x){const k=this.rules.block.hr.exec(x);if(k)return{type:"hr",raw:At(k[0],`
85
+ `)}}blockquote(x){const k=this.rules.block.blockquote.exec(x);if(k){let P=At(k[0],`
86
86
  `).split(`
87
- `),R="",M="";const q=[];for(;P.length>0;){let K=!1;const ne=[];let re;for(re=0;re<P.length;re++)if(/^ {0,3}>/.test(P[re]))ne.push(P[re]),K=!0;else{if(K)break;ne.push(P[re])}P=P.slice(re);const ue=ne.join(`
87
+ `),R="",M="";const $=[];for(;P.length>0;){let K=!1;const ne=[];let re;for(re=0;re<P.length;re++)if(/^ {0,3}>/.test(P[re]))ne.push(P[re]),K=!0;else{if(K)break;ne.push(P[re])}P=P.slice(re);const ue=ne.join(`
88
88
  `),xe=ue.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
89
89
  $1`).replace(/^ {0,3}>[ \t]?/gm,"");R=R?`${R}
90
90
  ${ue}`:ue,M=M?`${M}
91
- ${xe}`:xe;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(xe,q,!0),this.lexer.state.top=ke,P.length===0)break;const De=q[q.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+`
91
+ ${xe}`:xe;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(xe,$,!0),this.lexer.state.top=ke,P.length===0)break;const Be=$[$.length-1];if((Be==null?void 0:Be.type)==="code")break;if((Be==null?void 0:Be.type)==="blockquote"){const $e=Be,St=$e.raw+`
92
92
  `+P.join(`
93
- `),Et=this.blockquote(St);q[q.length-1]=Et,R=R.substring(0,R.length-Ue.raw.length)+Et.raw,M=M.substring(0,M.length-Ue.text.length)+Et.text;break}if((De==null?void 0:De.type)==="list"){const Ue=De,St=Ue.raw+`
93
+ `),Et=this.blockquote(St);$[$.length-1]=Et,R=R.substring(0,R.length-$e.raw.length)+Et.raw,M=M.substring(0,M.length-$e.text.length)+Et.text;break}if((Be==null?void 0:Be.type)==="list"){const $e=Be,St=$e.raw+`
94
94
  `+P.join(`
95
- `),Et=this.list(St);q[q.length-1]=Et,R=R.substring(0,R.length-De.raw.length)+Et.raw,M=M.substring(0,M.length-Ue.raw.length)+Et.raw,P=St.substring(q[q.length-1].raw.length).split(`
96
- `)}}return{type:"blockquote",raw:R,tokens:q,text:M}}}list(x){let k=this.rules.block.list.exec(x);if(k){let P=k[1].trim();const R=P.length>1,M={type:"list",raw:"",ordered:R,start:R?+P.slice(0,-1):"",loose:!1,items:[]};P=R?`\\d{1,9}\\${P.slice(-1)}`:`\\${P}`,this.options.pedantic&&(P=R?P:"[*+-]");const q=new RegExp(`^( {0,3}${P})((?:[ ][^\\n]*)?(?:\\n|$))`);let K=!1;for(;x;){let ne=!1,re="",ue="";if(!(k=q.exec(x))||this.rules.block.hr.test(x))break;re=k[0],x=x.substring(re.length);let xe=k[2].split(`
95
+ `),Et=this.list(St);$[$.length-1]=Et,R=R.substring(0,R.length-Be.raw.length)+Et.raw,M=M.substring(0,M.length-$e.raw.length)+Et.raw,P=St.substring($[$.length-1].raw.length).split(`
96
+ `)}}return{type:"blockquote",raw:R,tokens:$,text:M}}}list(x){let k=this.rules.block.list.exec(x);if(k){let P=k[1].trim();const R=P.length>1,M={type:"list",raw:"",ordered:R,start:R?+P.slice(0,-1):"",loose:!1,items:[]};P=R?`\\d{1,9}\\${P.slice(-1)}`:`\\${P}`,this.options.pedantic&&(P=R?P:"[*+-]");const $=new RegExp(`^( {0,3}${P})((?:[ ][^\\n]*)?(?:\\n|$))`);let K=!1;for(;x;){let ne=!1,re="",ue="";if(!(k=$.exec(x))||this.rules.block.hr.test(x))break;re=k[0],x=x.substring(re.length);let xe=k[2].split(`
97
97
  `,1)[0].replace(/^\t+/,zr=>" ".repeat(3*zr.length)),ke=x.split(`
98
- `,1)[0],De=!xe.trim(),Ue=0;if(this.options.pedantic?(Ue=2,ue=xe.trimStart()):De?Ue=k[1].length+1:(Ue=k[2].search(/[^ ]/),Ue=Ue>4?1:Ue,ue=xe.slice(Ue),Ue+=k[1].length),De&&/^[ \t]*$/.test(ke)&&(re+=ke+`
99
- `,x=x.substring(ke.length+1),ne=!0),!ne){const zr=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),uo=new RegExp(`^ {0,${Math.min(3,Ue-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ho=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:\`\`\`|~~~)`),fo=new RegExp(`^ {0,${Math.min(3,Ue-1)}}#`),Gl=new RegExp(`^ {0,${Math.min(3,Ue-1)}}<[a-z].*>`,"i");for(;x;){const Vr=x.split(`
100
- `,1)[0];let _n;if(ke=Vr,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),_n=ke):_n=ke.replace(/\t/g," "),ho.test(ke)||fo.test(ke)||Gl.test(ke)||zr.test(ke)||uo.test(ke))break;if(_n.search(/[^ ]/)>=Ue||!ke.trim())ue+=`
101
- `+_n.slice(Ue);else{if(De||xe.replace(/\t/g," ").search(/[^ ]/)>=4||ho.test(xe)||fo.test(xe)||uo.test(xe))break;ue+=`
102
- `+ke}De||ke.trim()||(De=!0),re+=Vr+`
103
- `,x=x.substring(Vr.length+1),xe=_n.slice(Ue)}}M.loose||(K?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(K=!0));let St,Et=null;this.options.gfm&&(Et=/^\[[ xX]\] /.exec(ue),Et&&(St=Et[0]!=="[ ] ",ue=ue.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!Et,checked:St,loose:!1,text:ue,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 ne=0;ne<M.items.length;ne++)if(this.lexer.state.top=!1,M.items[ne].tokens=this.lexer.blockTokens(M.items[ne].text,[]),!M.loose){const re=M.items[ne].tokens.filter(xe=>xe.type==="space"),ue=re.length>0&&re.some(xe=>/\n.*\n/.test(xe.raw));M.loose=ue}if(M.loose)for(let ne=0;ne<M.items.length;ne++)M.items[ne].loose=!0;return M}}html(x){const k=this.rules.block.html.exec(x);if(k)return{type:"html",block:!0,raw:k[0],pre:k[1]==="pre"||k[1]==="script"||k[1]==="style",text:k[0]}}def(x){const k=this.rules.block.def.exec(x);if(k){const P=k[1].toLowerCase().replace(/\s+/g," "),R=k[2]?k[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",M=k[3]?k[3].substring(1,k[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):k[3];return{type:"def",tag:P,raw:k[0],href:R,title:M}}}table(x){const k=this.rules.block.table.exec(x);if(!k||!/[:|]/.test(k[2]))return;const P=At(k[1]),R=k[2].replace(/^\||\| *$/g,"").split("|"),M=k[3]&&k[3].trim()?k[3].replace(/\n[ \t]*$/,"").split(`
104
- `):[],q={type:"table",raw:k[0],header:[],align:[],rows:[]};if(P.length===R.length){for(const K of R)/^ *-+: *$/.test(K)?q.align.push("right"):/^ *:-+: *$/.test(K)?q.align.push("center"):/^ *:-+ *$/.test(K)?q.align.push("left"):q.align.push(null);for(let K=0;K<P.length;K++)q.header.push({text:P[K],tokens:this.lexer.inline(P[K]),header:!0,align:q.align[K]});for(const K of M)q.rows.push(At(K,q.header.length).map((ne,re)=>({text:ne,tokens:this.lexer.inline(ne),header:!1,align:q.align[re]})));return q}}lheading(x){const k=this.rules.block.lheading.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[2].charAt(0)==="="?1:2,text:k[1],tokens:this.lexer.inline(k[1])}}paragraph(x){const k=this.rules.block.paragraph.exec(x);if(k){const P=k[1].charAt(k[1].length-1)===`
105
- `?k[1].slice(0,-1):k[1];return{type:"paragraph",raw:k[0],text:P,tokens:this.lexer.inline(P)}}}text(x){const k=this.rules.block.text.exec(x);if(k)return{type:"text",raw:k[0],text:k[0],tokens:this.lexer.inline(k[0])}}escape(x){const k=this.rules.inline.escape.exec(x);if(k)return{type:"escape",raw:k[0],text:Pe(k[1])}}tag(x){const k=this.rules.inline.tag.exec(x);if(k)return!this.lexer.state.inLink&&/^<a /i.test(k[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(k[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:k[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:k[0]}}link(x){const k=this.rules.inline.link.exec(x);if(k){const P=k[2].trim();if(!this.options.pedantic&&/^</.test(P)){if(!/>$/.test(P))return;const q=Tt(P.slice(0,-1),"\\");if((P.length-q.length)%2==0)return}else{const q=function(K,ne){if(K.indexOf(ne[1])===-1)return-1;let re=0;for(let ue=0;ue<K.length;ue++)if(K[ue]==="\\")ue++;else if(K[ue]===ne[0])re++;else if(K[ue]===ne[1]&&(re--,re<0))return ue;return-1}(k[2],"()");if(q>-1){const K=(k[0].indexOf("!")===0?5:4)+k[1].length+q;k[2]=k[2].substring(0,q),k[0]=k[0].substring(0,K).trim(),k[3]=""}}let R=k[2],M="";if(this.options.pedantic){const q=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(R);q&&(R=q[1],M=q[3])}else M=k[3]?k[3].slice(1,-1):"";return R=R.trim(),/^</.test(R)&&(R=this.options.pedantic&&!/>$/.test(P)?R.slice(1):R.slice(1,-1)),Xt(k,{href:R&&R.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},k[0],this.lexer)}}reflink(x,k){let P;if((P=this.rules.inline.reflink.exec(x))||(P=this.rules.inline.nolink.exec(x))){const R=k[(P[2]||P[1]).replace(/\s+/g," ").toLowerCase()];if(!R){const M=P[0].charAt(0);return{type:"text",raw:M,text:M}}return Xt(P,R,P[0],this.lexer)}}emStrong(x,k,P=""){let R=this.rules.inline.emStrongLDelim.exec(x);if(R&&!(R[3]&&P.match(/[\p{L}\p{N}]/u))&&(!(R[1]||R[2])||!P||this.rules.inline.punctuation.exec(P))){const M=[...R[0]].length-1;let q,K,ne=M,re=0;const ue=R[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ue.lastIndex=0,k=k.slice(-1*x.length+M);(R=ue.exec(k))!=null;){if(q=R[1]||R[2]||R[3]||R[4]||R[5]||R[6],!q)continue;if(K=[...q].length,R[3]||R[4]){ne+=K;continue}if((R[5]||R[6])&&M%3&&!((M+K)%3)){re+=K;continue}if(ne-=K,ne>0)continue;K=Math.min(K,K+ne+re);const xe=[...R[0]][0].length,ke=x.slice(0,M+R.index+xe+K);if(Math.min(M,K)%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 k=this.rules.inline.code.exec(x);if(k){let P=k[2].replace(/\n/g," ");const R=/[^ ]/.test(P),M=/^ /.test(P)&&/ $/.test(P);return R&&M&&(P=P.substring(1,P.length-1)),P=Pe(P,!0),{type:"codespan",raw:k[0],text:P}}}br(x){const k=this.rules.inline.br.exec(x);if(k)return{type:"br",raw:k[0]}}del(x){const k=this.rules.inline.del.exec(x);if(k)return{type:"del",raw:k[0],text:k[2],tokens:this.lexer.inlineTokens(k[2])}}autolink(x){const k=this.rules.inline.autolink.exec(x);if(k){let P,R;return k[2]==="@"?(P=Pe(k[1]),R="mailto:"+P):(P=Pe(k[1]),R=P),{type:"link",raw:k[0],text:P,href:R,tokens:[{type:"text",raw:P,text:P}]}}}url(x){var P;let k;if(k=this.rules.inline.url.exec(x)){let R,M;if(k[2]==="@")R=Pe(k[0]),M="mailto:"+R;else{let q;do q=k[0],k[0]=((P=this.rules.inline._backpedal.exec(k[0]))==null?void 0:P[0])??"";while(q!==k[0]);R=Pe(k[0]),M=k[1]==="www."?"http://"+k[0]:k[0]}return{type:"link",raw:k[0],text:R,href:M,tokens:[{type:"text",raw:R,text:R}]}}}inlineText(x){const k=this.rules.inline.text.exec(x);if(k){let P;return P=this.lexer.state.inRawBlock?k[0]:Pe(k[0]),{type:"text",raw:k[0],text:P}}}}const Ut=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bn=/(?:[*+-]|\d{1,9}[.)])/,Kn=ye(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,bn).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(),en=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Dr=ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",tn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Hr=ye(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bn).getRegex(),$t="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",nn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ur=ye("^ {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",nn).replace("tag",$t).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wn=ye(en).replace("hr",Ut).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",$t).getRegex(),wn={blockquote:ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Wn).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Dr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Ut,html:Ur,lheading:Kn,list:Hr,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Wn,table:Lt,text:/^[^\n]+/},Jn=ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ut).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",$t).getRegex(),D={...wn,table:Jn,paragraph:ye(en).replace("hr",Ut).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jn).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",$t).getRegex()},ae={...wn,html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",nn).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:Lt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ye(en).replace("hr",Ut).replace("heading",` *#{1,6} *[^
106
- ]`).replace("lheading",Kn).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=ye(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,je).getRegex(),Ne=ye(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,je).getRegex(),Fe=ye("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[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=ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,je).getRegex(),Je=ye(/\\([punct])/,"gu").replace(/punct/g,je).getRegex(),Ye=ye(/^<(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(),ft=ye(nn).replace("(?:-->|$)","-->").getRegex(),jt=ye("^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",ft).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at=ye(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",xt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rn=ye(/^!?\[(label)\]\[(ref)\]/).replace("label",xt).replace("ref",tn).getRegex(),Yn=ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",tn).getRegex(),Sn={_backpedal:Lt,anyPunctuation:Je,autolink:Ye,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Ee,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Lt,emStrongLDelim:Ne,emStrongRDelimAst:Fe,emStrongRDelimUnd:tt,escape:he,link:at,nolink:Yn,punctuation:$e,reflink:rn,reflinkSearch:ye("reflink|nolink(?!\\()","g").replace("reflink",rn).replace("nolink",Yn).getRegex(),tag:jt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Lt},Ll={...Sn,link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",xt).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xt).getRegex()},$r={...Sn,escape:ye(he).replace("])","~|])").getRegex(),url:ye(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},jl={...$r,br:ye(Ee).replace("{2,}","*").getRegex(),text:ye($r.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qn={normal:wn,gfm:D,pedantic:ae},En={normal:Sn,gfm:$r,breaks:jl,pedantic:Ll};class bt{constructor(x){Ve(this,"tokens");Ve(this,"options");Ve(this,"state");Ve(this,"tokenizer");Ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||y,this.options.tokenizer=this.options.tokenizer||new Ht,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 k={block:Qn.normal,inline:En.normal};this.options.pedantic?(k.block=Qn.pedantic,k.inline=En.pedantic):this.options.gfm&&(k.block=Qn.gfm,this.options.breaks?k.inline=En.breaks:k.inline=En.gfm),this.tokenizer.rules=k}static get rules(){return{block:Qn,inline:En}}static lex(x,k){return new bt(k).lex(x)}static lexInline(x,k){return new bt(k).inlineTokens(x)}lex(x){x=x.replace(/\r\n|\r/g,`
107
- `),this.blockTokens(x,this.tokens);for(let k=0;k<this.inlineQueue.length;k++){const P=this.inlineQueue[k];this.inlineTokens(P.src,P.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,k=[],P=!1){let R,M,q;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(K=>!!(R=K.call({lexer:this},x,k))&&(x=x.substring(R.raw.length),k.push(R),!0))))if(R=this.tokenizer.space(x))x=x.substring(R.raw.length),R.raw.length===1&&k.length>0?k[k.length-1].raw+=`
98
+ `,1)[0],Be=!xe.trim(),$e=0;if(this.options.pedantic?($e=2,ue=xe.trimStart()):Be?$e=k[1].length+1:($e=k[2].search(/[^ ]/),$e=$e>4?1:$e,ue=xe.slice($e),$e+=k[1].length),Be&&/^[ \t]*$/.test(ke)&&(re+=ke+`
99
+ `,x=x.substring(ke.length+1),ne=!0),!ne){const zr=new RegExp(`^ {0,${Math.min(3,$e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),uo=new RegExp(`^ {0,${Math.min(3,$e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ho=new RegExp(`^ {0,${Math.min(3,$e-1)}}(?:\`\`\`|~~~)`),fo=new RegExp(`^ {0,${Math.min(3,$e-1)}}#`),Gl=new RegExp(`^ {0,${Math.min(3,$e-1)}}<[a-z].*>`,"i");for(;x;){const Vr=x.split(`
100
+ `,1)[0];let kn;if(ke=Vr,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),kn=ke):kn=ke.replace(/\t/g," "),ho.test(ke)||fo.test(ke)||Gl.test(ke)||zr.test(ke)||uo.test(ke))break;if(kn.search(/[^ ]/)>=$e||!ke.trim())ue+=`
101
+ `+kn.slice($e);else{if(Be||xe.replace(/\t/g," ").search(/[^ ]/)>=4||ho.test(xe)||fo.test(xe)||uo.test(xe))break;ue+=`
102
+ `+ke}Be||ke.trim()||(Be=!0),re+=Vr+`
103
+ `,x=x.substring(Vr.length+1),xe=kn.slice($e)}}M.loose||(K?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(K=!0));let St,Et=null;this.options.gfm&&(Et=/^\[[ xX]\] /.exec(ue),Et&&(St=Et[0]!=="[ ] ",ue=ue.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!Et,checked:St,loose:!1,text:ue,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 ne=0;ne<M.items.length;ne++)if(this.lexer.state.top=!1,M.items[ne].tokens=this.lexer.blockTokens(M.items[ne].text,[]),!M.loose){const re=M.items[ne].tokens.filter(xe=>xe.type==="space"),ue=re.length>0&&re.some(xe=>/\n.*\n/.test(xe.raw));M.loose=ue}if(M.loose)for(let ne=0;ne<M.items.length;ne++)M.items[ne].loose=!0;return M}}html(x){const k=this.rules.block.html.exec(x);if(k)return{type:"html",block:!0,raw:k[0],pre:k[1]==="pre"||k[1]==="script"||k[1]==="style",text:k[0]}}def(x){const k=this.rules.block.def.exec(x);if(k){const P=k[1].toLowerCase().replace(/\s+/g," "),R=k[2]?k[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",M=k[3]?k[3].substring(1,k[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):k[3];return{type:"def",tag:P,raw:k[0],href:R,title:M}}}table(x){const k=this.rules.block.table.exec(x);if(!k||!/[:|]/.test(k[2]))return;const P=Yt(k[1]),R=k[2].replace(/^\||\| *$/g,"").split("|"),M=k[3]&&k[3].trim()?k[3].replace(/\n[ \t]*$/,"").split(`
104
+ `):[],$={type:"table",raw:k[0],header:[],align:[],rows:[]};if(P.length===R.length){for(const K of R)/^ *-+: *$/.test(K)?$.align.push("right"):/^ *:-+: *$/.test(K)?$.align.push("center"):/^ *:-+ *$/.test(K)?$.align.push("left"):$.align.push(null);for(let K=0;K<P.length;K++)$.header.push({text:P[K],tokens:this.lexer.inline(P[K]),header:!0,align:$.align[K]});for(const K of M)$.rows.push(Yt(K,$.header.length).map((ne,re)=>({text:ne,tokens:this.lexer.inline(ne),header:!1,align:$.align[re]})));return $}}lheading(x){const k=this.rules.block.lheading.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[2].charAt(0)==="="?1:2,text:k[1],tokens:this.lexer.inline(k[1])}}paragraph(x){const k=this.rules.block.paragraph.exec(x);if(k){const P=k[1].charAt(k[1].length-1)===`
105
+ `?k[1].slice(0,-1):k[1];return{type:"paragraph",raw:k[0],text:P,tokens:this.lexer.inline(P)}}}text(x){const k=this.rules.block.text.exec(x);if(k)return{type:"text",raw:k[0],text:k[0],tokens:this.lexer.inline(k[0])}}escape(x){const k=this.rules.inline.escape.exec(x);if(k)return{type:"escape",raw:k[0],text:Pe(k[1])}}tag(x){const k=this.rules.inline.tag.exec(x);if(k)return!this.lexer.state.inLink&&/^<a /i.test(k[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(k[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:k[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:k[0]}}link(x){const k=this.rules.inline.link.exec(x);if(k){const P=k[2].trim();if(!this.options.pedantic&&/^</.test(P)){if(!/>$/.test(P))return;const $=At(P.slice(0,-1),"\\");if((P.length-$.length)%2==0)return}else{const $=function(K,ne){if(K.indexOf(ne[1])===-1)return-1;let re=0;for(let ue=0;ue<K.length;ue++)if(K[ue]==="\\")ue++;else if(K[ue]===ne[0])re++;else if(K[ue]===ne[1]&&(re--,re<0))return ue;return-1}(k[2],"()");if($>-1){const K=(k[0].indexOf("!")===0?5:4)+k[1].length+$;k[2]=k[2].substring(0,$),k[0]=k[0].substring(0,K).trim(),k[3]=""}}let R=k[2],M="";if(this.options.pedantic){const $=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(R);$&&(R=$[1],M=$[3])}else M=k[3]?k[3].slice(1,-1):"";return R=R.trim(),/^</.test(R)&&(R=this.options.pedantic&&!/>$/.test(P)?R.slice(1):R.slice(1,-1)),gn(k,{href:R&&R.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},k[0],this.lexer)}}reflink(x,k){let P;if((P=this.rules.inline.reflink.exec(x))||(P=this.rules.inline.nolink.exec(x))){const R=k[(P[2]||P[1]).replace(/\s+/g," ").toLowerCase()];if(!R){const M=P[0].charAt(0);return{type:"text",raw:M,text:M}}return gn(P,R,P[0],this.lexer)}}emStrong(x,k,P=""){let R=this.rules.inline.emStrongLDelim.exec(x);if(R&&!(R[3]&&P.match(/[\p{L}\p{N}]/u))&&(!(R[1]||R[2])||!P||this.rules.inline.punctuation.exec(P))){const M=[...R[0]].length-1;let $,K,ne=M,re=0;const ue=R[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ue.lastIndex=0,k=k.slice(-1*x.length+M);(R=ue.exec(k))!=null;){if($=R[1]||R[2]||R[3]||R[4]||R[5]||R[6],!$)continue;if(K=[...$].length,R[3]||R[4]){ne+=K;continue}if((R[5]||R[6])&&M%3&&!((M+K)%3)){re+=K;continue}if(ne-=K,ne>0)continue;K=Math.min(K,K+ne+re);const xe=[...R[0]][0].length,ke=x.slice(0,M+R.index+xe+K);if(Math.min(M,K)%2){const $e=ke.slice(1,-1);return{type:"em",raw:ke,text:$e,tokens:this.lexer.inlineTokens($e)}}const Be=ke.slice(2,-2);return{type:"strong",raw:ke,text:Be,tokens:this.lexer.inlineTokens(Be)}}}}codespan(x){const k=this.rules.inline.code.exec(x);if(k){let P=k[2].replace(/\n/g," ");const R=/[^ ]/.test(P),M=/^ /.test(P)&&/ $/.test(P);return R&&M&&(P=P.substring(1,P.length-1)),P=Pe(P,!0),{type:"codespan",raw:k[0],text:P}}}br(x){const k=this.rules.inline.br.exec(x);if(k)return{type:"br",raw:k[0]}}del(x){const k=this.rules.inline.del.exec(x);if(k)return{type:"del",raw:k[0],text:k[2],tokens:this.lexer.inlineTokens(k[2])}}autolink(x){const k=this.rules.inline.autolink.exec(x);if(k){let P,R;return k[2]==="@"?(P=Pe(k[1]),R="mailto:"+P):(P=Pe(k[1]),R=P),{type:"link",raw:k[0],text:P,href:R,tokens:[{type:"text",raw:P,text:P}]}}}url(x){var P;let k;if(k=this.rules.inline.url.exec(x)){let R,M;if(k[2]==="@")R=Pe(k[0]),M="mailto:"+R;else{let $;do $=k[0],k[0]=((P=this.rules.inline._backpedal.exec(k[0]))==null?void 0:P[0])??"";while($!==k[0]);R=Pe(k[0]),M=k[1]==="www."?"http://"+k[0]:k[0]}return{type:"link",raw:k[0],text:R,href:M,tokens:[{type:"text",raw:R,text:R}]}}}inlineText(x){const k=this.rules.inline.text.exec(x);if(k){let P;return P=this.lexer.state.inRawBlock?k[0]:Pe(k[0]),{type:"text",raw:k[0],text:P}}}}const Lt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gn=/(?:[*+-]|\d{1,9}[.)])/,yn=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(),Zt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Dr=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kn=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",xn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Hr=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",xn).replace("tag",Ht).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wn=ge(Zt).replace("hr",Lt).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(),bn={blockquote:ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Wn).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Dr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Lt,html:Hr,lheading:yn,list:Kn,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Wn,table:xt,text:/^[^\n]+/},D=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Lt).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(),ae={...bn,table:D,paragraph:ge(Zt).replace("hr",Lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",D).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()},fe={...bn,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xn).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:xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(Zt).replace("hr",Lt).replace("heading",` *#{1,6} *[^
106
+ ]`).replace("lheading",yn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ee=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,De=/^( {2,}|\\)\n(?!\s*$)/,He="\\p{P}\\p{S}",je=ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,He).getRegex(),Fe=ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,He).getRegex(),nt=ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,He).getRegex(),Je=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,He).getRegex(),Ye=ge(/\\([punct])/,"gu").replace(/punct/g,He).getRegex(),ft=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(),jt=ge(xn).replace("(?:-->|$)","-->").getRegex(),Tt=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",jt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ze=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wn=ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Jn=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",Ze).replace("ref",vn).getRegex(),Yn=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",vn).getRegex(),Ur={_backpedal:xt,anyPunctuation:Ye,autolink:ft,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:De,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:xt,emStrongLDelim:Fe,emStrongRDelimAst:nt,emStrongRDelimUnd:Je,escape:Ee,link:wn,nolink:Yn,punctuation:je,reflink:Jn,reflinkSearch:ge("reflink|nolink(?!\\()","g").replace("reflink",Jn).replace("nolink",Yn).getRegex(),tag:Tt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:xt},Ll={...Ur,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze).getRegex()},$r={...Ur,escape:ge(Ee).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.!#$%&'*+\/=?_`{\|}~-]+@)))/},jl={...$r,br:ge(De).replace("{2,}","*").getRegex(),text:ge($r.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qn={normal:bn,gfm:ae,pedantic:fe},Sn={normal:Ur,gfm:$r,breaks:jl,pedantic:Ll};class bt{constructor(x){Ve(this,"tokens");Ve(this,"options");Ve(this,"state");Ve(this,"tokenizer");Ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||y,this.options.tokenizer=this.options.tokenizer||new Qt,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 k={block:Qn.normal,inline:Sn.normal};this.options.pedantic?(k.block=Qn.pedantic,k.inline=Sn.pedantic):this.options.gfm&&(k.block=Qn.gfm,this.options.breaks?k.inline=Sn.breaks:k.inline=Sn.gfm),this.tokenizer.rules=k}static get rules(){return{block:Qn,inline:Sn}}static lex(x,k){return new bt(k).lex(x)}static lexInline(x,k){return new bt(k).inlineTokens(x)}lex(x){x=x.replace(/\r\n|\r/g,`
107
+ `),this.blockTokens(x,this.tokens);for(let k=0;k<this.inlineQueue.length;k++){const P=this.inlineQueue[k];this.inlineTokens(P.src,P.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,k=[],P=!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(K=>!!(R=K.call({lexer:this},x,k))&&(x=x.substring(R.raw.length),k.push(R),!0))))if(R=this.tokenizer.space(x))x=x.substring(R.raw.length),R.raw.length===1&&k.length>0?k[k.length-1].raw+=`
108
108
  `:k.push(R);else if(R=this.tokenizer.code(x))x=x.substring(R.raw.length),M=k[k.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?k.push(R):(M.raw+=`
109
109
  `+R.raw,M.text+=`
110
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),k.push(R);else if(R=this.tokenizer.heading(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.hr(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.blockquote(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.list(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.html(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.def(x))x=x.substring(R.raw.length),M=k[k.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
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),k.push(R);else if(R=this.tokenizer.lheading(x))x=x.substring(R.raw.length),k.push(R);else{if(q=x,this.options.extensions&&this.options.extensions.startBlock){let K=1/0;const ne=x.slice(1);let re;this.options.extensions.startBlock.forEach(ue=>{re=ue.call({lexer:this},ne),typeof re=="number"&&re>=0&&(K=Math.min(K,re))}),K<1/0&&K>=0&&(q=x.substring(0,K+1))}if(this.state.top&&(R=this.tokenizer.paragraph(q)))M=k[k.length-1],P&&(M==null?void 0:M.type)==="paragraph"?(M.raw+=`
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),k.push(R);else if(R=this.tokenizer.lheading(x))x=x.substring(R.raw.length),k.push(R);else{if($=x,this.options.extensions&&this.options.extensions.startBlock){let K=1/0;const ne=x.slice(1);let re;this.options.extensions.startBlock.forEach(ue=>{re=ue.call({lexer:this},ne),typeof re=="number"&&re>=0&&(K=Math.min(K,re))}),K<1/0&&K>=0&&($=x.substring(0,K+1))}if(this.state.top&&(R=this.tokenizer.paragraph($)))M=k[k.length-1],P&&(M==null?void 0:M.type)==="paragraph"?(M.raw+=`
113
113
  `+R.raw,M.text+=`
114
- `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(R),P=q.length!==x.length,x=x.substring(R.raw.length);else if(R=this.tokenizer.text(x))x=x.substring(R.raw.length),M=k[k.length-1],M&&M.type==="text"?(M.raw+=`
114
+ `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(R),P=$.length!==x.length,x=x.substring(R.raw.length);else if(R=this.tokenizer.text(x))x=x.substring(R.raw.length),M=k[k.length-1],M&&M.type==="text"?(M.raw+=`
115
115
  `+R.raw,M.text+=`
116
- `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(R);else if(x){const K="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(K);break}throw new Error(K)}}return this.state.top=!0,k}inline(x,k=[]){return this.inlineQueue.push({src:x,tokens:k}),k}inlineTokens(x,k=[]){let P,R,M,q,K,ne,re=x;if(this.tokens.links){const ue=Object.keys(this.tokens.links);if(ue.length>0)for(;(q=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ue.includes(q[0].slice(q[0].lastIndexOf("[")+1,-1))&&(re=re.slice(0,q.index)+"["+"a".repeat(q[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(q=this.tokenizer.rules.inline.blockSkip.exec(re))!=null;)re=re.slice(0,q.index)+"["+"a".repeat(q[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(q=this.tokenizer.rules.inline.anyPunctuation.exec(re))!=null;)re=re.slice(0,q.index)+"++"+re.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;x;)if(K||(ne=""),K=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ue=>!!(P=ue.call({lexer:this},x,k))&&(x=x.substring(P.raw.length),k.push(P),!0))))if(P=this.tokenizer.escape(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.tag(x))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.link(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.emStrong(x,re,ne))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.codespan(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.br(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.del(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.autolink(x))x=x.substring(P.raw.length),k.push(P);else if(this.state.inLink||!(P=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ue=1/0;const xe=x.slice(1);let ke;this.options.extensions.startInline.forEach(De=>{ke=De.call({lexer:this},xe),typeof ke=="number"&&ke>=0&&(ue=Math.min(ue,ke))}),ue<1/0&&ue>=0&&(M=x.substring(0,ue+1))}if(P=this.tokenizer.inlineText(M))x=x.substring(P.raw.length),P.raw.slice(-1)!=="_"&&(ne=P.raw.slice(-1)),K=!0,R=k[k.length-1],R&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(x){const ue="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ue);break}throw new Error(ue)}}else x=x.substring(P.raw.length),k.push(P);return k}}class Zn{constructor(x){Ve(this,"options");Ve(this,"parser");this.options=x||y}space(x){return""}code({text:x,lang:k,escaped:P}){var q;const R=(q=(k||"").match(/^\S*/))==null?void 0:q[0],M=x.replace(/\n$/,"")+`
116
+ `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(R);else if(x){const K="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(K);break}throw new Error(K)}}return this.state.top=!0,k}inline(x,k=[]){return this.inlineQueue.push({src:x,tokens:k}),k}inlineTokens(x,k=[]){let P,R,M,$,K,ne,re=x;if(this.tokens.links){const ue=Object.keys(this.tokens.links);if(ue.length>0)for(;($=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ue.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(K||(ne=""),K=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ue=>!!(P=ue.call({lexer:this},x,k))&&(x=x.substring(P.raw.length),k.push(P),!0))))if(P=this.tokenizer.escape(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.tag(x))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.link(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.emStrong(x,re,ne))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.codespan(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.br(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.del(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.autolink(x))x=x.substring(P.raw.length),k.push(P);else if(this.state.inLink||!(P=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ue=1/0;const xe=x.slice(1);let ke;this.options.extensions.startInline.forEach(Be=>{ke=Be.call({lexer:this},xe),typeof ke=="number"&&ke>=0&&(ue=Math.min(ue,ke))}),ue<1/0&&ue>=0&&(M=x.substring(0,ue+1))}if(P=this.tokenizer.inlineText(M))x=x.substring(P.raw.length),P.raw.slice(-1)!=="_"&&(ne=P.raw.slice(-1)),K=!0,R=k[k.length-1],R&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(x){const ue="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ue);break}throw new Error(ue)}}else x=x.substring(P.raw.length),k.push(P);return k}}class Zn{constructor(x){Ve(this,"options");Ve(this,"parser");this.options=x||y}space(x){return""}code({text:x,lang:k,escaped:P}){var $;const R=($=(k||"").match(/^\S*/))==null?void 0:$[0],M=x.replace(/\n$/,"")+`
117
117
  `;return R?'<pre><code class="language-'+Pe(R)+'">'+(P?M:Pe(M,!0))+`</code></pre>
118
118
  `:"<pre><code>"+(P?M:Pe(M,!0))+`</code></pre>
119
119
  `}blockquote({tokens:x}){return`<blockquote>
120
120
  ${this.parser.parse(x)}</blockquote>
121
121
  `}html({text:x}){return x}heading({tokens:x,depth:k}){return`<h${k}>${this.parser.parseInline(x)}</h${k}>
122
122
  `}hr(x){return`<hr>
123
- `}list(x){const k=x.ordered,P=x.start;let R="";for(let q=0;q<x.items.length;q++){const K=x.items[q];R+=this.listitem(K)}const M=k?"ol":"ul";return"<"+M+(k&&P!==1?' start="'+P+'"':"")+`>
123
+ `}list(x){const k=x.ordered,P=x.start;let R="";for(let $=0;$<x.items.length;$++){const K=x.items[$];R+=this.listitem(K)}const M=k?"ol":"ul";return"<"+M+(k&&P!==1?' start="'+P+'"':"")+`>
124
124
  `+R+"</"+M+`>
125
125
  `}listitem(x){let k="";if(x.task){const P=this.checkbox({checked:!!x.checked});x.loose?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=P+" "+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=P+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",raw:P+" ",text:P+" "}):k+=P+" "}return k+=this.parser.parse(x.tokens,!!x.loose),`<li>${k}</li>
126
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 k="",P="";for(let M=0;M<x.header.length;M++)P+=this.tablecell(x.header[M]);k+=this.tablerow({text:P});let R="";for(let M=0;M<x.rows.length;M++){const q=x.rows[M];P="";for(let K=0;K<q.length;K++)P+=this.tablecell(q[K]);R+=this.tablerow({text:P})}return R&&(R=`<tbody>${R}</tbody>`),`<table>
127
+ `}table(x){let k="",P="";for(let M=0;M<x.header.length;M++)P+=this.tablecell(x.header[M]);k+=this.tablerow({text:P});let R="";for(let M=0;M<x.rows.length;M++){const $=x.rows[M];P="";for(let K=0;K<$.length;K++)P+=this.tablecell($[K]);R+=this.tablerow({text:P})}return R&&(R=`<tbody>${R}</tbody>`),`<table>
128
128
  <thead>
129
129
  `+k+`</thead>
130
130
  `+R+`</table>
131
131
  `}tablerow({text:x}){return`<tr>
132
132
  ${x}</tr>
133
133
  `}tablecell(x){const k=this.parser.parseInline(x.tokens),P=x.header?"th":"td";return(x.align?`<${P} align="${x.align}">`:`<${P}>`)+k+`</${P}>
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:k,tokens:P}){const R=this.parser.parseInline(P),M=Zt(x);if(M===null)return R;let q='<a href="'+(x=M)+'"';return k&&(q+=' title="'+k+'"'),q+=">"+R+"</a>",q}image({href:x,title:k,text:P}){const R=Zt(x);if(R===null)return P;let M=`<img src="${x=R}" alt="${P}"`;return k&&(M+=` title="${k}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class qr{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 wt{constructor(x){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=x||y,this.options.renderer=this.options.renderer||new Zn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qr}static parse(x,k){return new wt(k).parse(x)}static parseInline(x,k){return new wt(k).parseInline(x)}parse(x,k=!0){let P="";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 K=M,ne=this.options.extensions.renderers[K.type].call({parser:this},K);if(ne!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(K.type)){P+=ne||"";continue}}const q=M;switch(q.type){case"space":P+=this.renderer.space(q);continue;case"hr":P+=this.renderer.hr(q);continue;case"heading":P+=this.renderer.heading(q);continue;case"code":P+=this.renderer.code(q);continue;case"table":P+=this.renderer.table(q);continue;case"blockquote":P+=this.renderer.blockquote(q);continue;case"list":P+=this.renderer.list(q);continue;case"html":P+=this.renderer.html(q);continue;case"paragraph":P+=this.renderer.paragraph(q);continue;case"text":{let K=q,ne=this.renderer.text(K);for(;R+1<x.length&&x[R+1].type==="text";)K=x[++R],ne+=`
135
- `+this.renderer.text(K);P+=k?this.renderer.paragraph({type:"paragraph",raw:ne,text:ne,tokens:[{type:"text",raw:ne,text:ne}]}):ne;continue}default:{const K='Token with "'+q.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}parseInline(x,k){k=k||this.renderer;let P="";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 K=this.options.extensions.renderers[M.type].call({parser:this},M);if(K!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){P+=K||"";continue}}const q=M;switch(q.type){case"escape":case"text":P+=k.text(q);break;case"html":P+=k.html(q);break;case"link":P+=k.link(q);break;case"image":P+=k.image(q);break;case"strong":P+=k.strong(q);break;case"em":P+=k.em(q);break;case"codespan":P+=k.codespan(q);break;case"br":P+=k.br(q);break;case"del":P+=k.del(q);break;default:{const K='Token with "'+q.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}}class kn{constructor(x){Ve(this,"options");Ve(this,"block");this.options=x||y}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?bt.lex:bt.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}}Ve(kn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const qt=new class{constructor(...pe){Ve(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",wt);Ve(this,"Renderer",Zn);Ve(this,"TextRenderer",qr);Ve(this,"Lexer",bt);Ve(this,"Tokenizer",Ht);Ve(this,"Hooks",kn);this.use(...pe)}walkTokens(pe,x){var P,R;let k=[];for(const M of pe)switch(k=k.concat(x.call(this,M)),M.type){case"table":{const q=M;for(const K of q.header)k=k.concat(this.walkTokens(K.tokens,x));for(const K of q.rows)for(const ne of K)k=k.concat(this.walkTokens(ne.tokens,x));break}case"list":{const q=M;k=k.concat(this.walkTokens(q.items,x));break}default:{const q=M;(R=(P=this.defaults.extensions)==null?void 0:P.childTokens)!=null&&R[q.type]?this.defaults.extensions.childTokens[q.type].forEach(K=>{const ne=q[K].flat(1/0);k=k.concat(this.walkTokens(ne,x))}):q.tokens&&(k=k.concat(this.walkTokens(q.tokens,x)))}}return k}use(...pe){const x=this.defaults.extensions||{renderers:{},childTokens:{}};return pe.forEach(k=>{const P={...k};if(P.async=this.defaults.async||P.async||!1,k.extensions&&(k.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(...q){let K=R.renderer.apply(this,q);return K===!1&&(K=M.apply(this,q)),K}: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)}),P.extensions=x),k.renderer){const R=this.defaults.renderer||new Zn(this.defaults);for(const M in k.renderer){if(!(M in R))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const q=M,K=k.renderer[q],ne=R[q];R[q]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue||""}}P.renderer=R}if(k.tokenizer){const R=this.defaults.tokenizer||new Ht(this.defaults);for(const M in k.tokenizer){if(!(M in R))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const q=M,K=k.tokenizer[q],ne=R[q];R[q]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.tokenizer=R}if(k.hooks){const R=this.defaults.hooks||new kn;for(const M in k.hooks){if(!(M in R))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const q=M,K=k.hooks[q],ne=R[q];kn.passThroughHooks.has(M)?R[q]=re=>{if(this.defaults.async)return Promise.resolve(K.call(R,re)).then(xe=>ne.call(R,xe));const ue=K.call(R,re);return ne.call(R,ue)}:R[q]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.hooks=R}if(k.walkTokens){const R=this.defaults.walkTokens,M=k.walkTokens;P.walkTokens=function(q){let K=[];return K.push(M.call(this,q)),R&&(K=K.concat(R.call(this,q))),K}}this.defaults={...this.defaults,...P}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return bt.lex(pe,x??this.defaults)}parser(pe,x){return wt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,k)=>{const P={...k},R={...this.defaults,...P},M=this.onError(!!R.silent,!!R.async);if(this.defaults.async===!0&&P.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 q=R.hooks?R.hooks.provideLexer():pe?bt.lex:bt.lexInline,K=R.hooks?R.hooks.provideParser():pe?wt.parse:wt.parseInline;if(R.async)return Promise.resolve(R.hooks?R.hooks.preprocess(x):x).then(ne=>q(ne,R)).then(ne=>R.hooks?R.hooks.processAllTokens(ne):ne).then(ne=>R.walkTokens?Promise.all(this.walkTokens(ne,R.walkTokens)).then(()=>ne):ne).then(ne=>K(ne,R)).then(ne=>R.hooks?R.hooks.postprocess(ne):ne).catch(M);try{R.hooks&&(x=R.hooks.preprocess(x));let ne=q(x,R);R.hooks&&(ne=R.hooks.processAllTokens(ne)),R.walkTokens&&this.walkTokens(ne,R.walkTokens);let re=K(ne,R);return R.hooks&&(re=R.hooks.postprocess(re)),re}catch(ne){return M(ne)}}}onError(pe,x){return k=>{if(k.message+=`
136
- Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An error occurred:</p><pre>"+Pe(k.message+"",!0)+"</pre>";return x?Promise.resolve(P):P}if(x)return Promise.reject(k);throw k}}};function qe(pe,x){return qt.parse(pe,x)}qe.options=qe.setOptions=function(pe){return qt.setOptions(pe),qe.defaults=qt.defaults,w(qe.defaults),qe},qe.getDefaults=O,qe.defaults=y,qe.use=function(...pe){return qt.use(...pe),qe.defaults=qt.defaults,w(qe.defaults),qe},qe.walkTokens=function(pe,x){return qt.walkTokens(pe,x)},qe.parseInline=qt.parseInline,qe.Parser=wt,qe.parser=wt.parse,qe.Renderer=Zn,qe.TextRenderer=qr,qe.Lexer=bt,qe.lexer=bt.lex,qe.Tokenizer=Ht,qe.Hooks=kn,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,wt.parse,bt.lex;var Nl=n(5230),Ml=n.n(Nl),zt=n(1543);class Bl{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,this.answerMaxHeight=P.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,N.g3)("markdown",function(M){return typeof M!="string"?"":new(p()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const R=localStorage.getItem("addSearch-isAiAnswersHidden");if(R!==null){const M=JSON.parse(R);this.reduxStore.dispatch({type:zt.jK,payload:M})}}observeResultLoadingState(){this.reduxStore.subscribe(()=>{const x=this.reduxStore.getState().search.loadingAiAnswersResult;this.isSearchResultLoading!==x&&(this.isSearchResultLoading=x,this.render())})}setupHideAIAnswersToggle(){const x=document.querySelector(".addsearch-ai-answers-result"),k=document.querySelector(".toggle-switch input");x&&k&&k.addEventListener("change",()=>{const P=this.reduxStore.getState().search.isAiAnswersHidden;this.reduxStore.dispatch({type:zt.jK,payload:!P}),localStorage.setItem("addSearch-isAiAnswersHidden",JSON.stringify(!P))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),k=x&&x.querySelector(".fade-out-overlay"),P=document.querySelector(".show-more-btn"),R=P&&P.querySelector(".button-text"),M=P&&P.querySelector(".chevron");x&&k&&P&&R&&M&&(this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),P.style.display="flex",R.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(P.style.display="flex",k.style.display="block"):(P.style.display="none",k.style.display="none")),P.addEventListener("click",()=>{this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(this.reduxStore.dispatch({type:zt.Rn,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),R.textContent="Show more",k.style.display="block",M.style.transform=""):(this.reduxStore.dispatch({type:zt.Rn,payload:!0}),x.style.maxHeight="".concat(x.scrollHeight,"px"),R.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)")}))}setupActionButtons(){const x=document.querySelector(".addsearch-ai-answers-result"),k=x&&x.querySelector(".copy-btn"),P=x.querySelector(".copy-confirm-message"),R=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&k&&P&&R&&M&&(k.addEventListener("click",()=>{const q=document.querySelector(".answer-text").textContent;navigator.clipboard.writeText(q).then(()=>{P.textContent="Answer copied!"}).catch(K=>{console.error("Failed to copy answer text with following error: ",K)})}),R.addEventListener("click",()=>{const q=this.reduxStore.getState().search;this.reduxStore.dispatch((0,zt.bz)(this.client,q.aiAnswersResult.id,q.aiAnswersSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const q=this.reduxStore.getState().search;this.reduxStore.dispatch((0,zt.bz)(this.client,q.aiAnswersResult.id,q.aiAnswersSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,k=x.aiAnswersResult,P=x.loadingAiAnswersResult,R=x.keyword,M=x.aiAnswersResultError,q={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:R,answerText:k.answerText,sourcesHeadlineText:this.conf.sourcesHeadlineText||"Sources:",sources:k.sources,aiExplanationText:this.conf.aiExplanationText||"Generated by AI, may contain errors.",isResultLoading:this.isSearchResultLoading,hadError:M,sentimentState:x.aiAnswersSentiment,showHideToggle:this.conf.hasHideToggle===void 0||this.conf.hasHideToggle,isHidden:x.isAiAnswersHidden};let K;(k.answerText||R&&P)&&(K=this.conf.precompiledTemplate?this.conf.precompiledTemplate(q):this.conf.template?p().compile(this.conf.template)(q):Ml()(q)),!(!K||this.renderedHtml===K)&&(document.getElementById(this.conf.containerId).innerHTML=K,this.renderedHtml=K,this.setupHideAIAnswersToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class Dl{constructor(x,k,P){this.client=x,this.reduxStore=k,this.conf=P,(0,u.A)(P.containerId)&&(P.template||P.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",R=>this.render(R)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let k;if(k=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):p().compile(this.conf.template)(x),this.renderedHtml===k)return;const P=document.getElementById(this.conf.containerId);P.innerHTML=k,this.renderedHtml=k;const R=P.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,R,x)}}var Hl=n(8909),Ul=n(4826),$l=n(6353),ql=n(4128),zl=n(878);const Xn="_addsearch_",Pt="*";o().polyfill(),(0,N.ud)();class Vl{constructor(x,k){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=k||{},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,Se.b8)(this.settings.analyticsCallback),(0,Se.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,ce.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:T.a;this.shouldInitializeFromBrowserHistory&&(0,Me.I5)(this.client,this.reduxStore,x,(P,R)=>{this.executeSearch(P,R,!1,null,this.settings.fieldForInstantRedirect),P&&this.settings.hasAiAnswers&&this.executeAiAnswers(P,!1)},this.settings.matchAllQuery,this.settings.baseFilters),new T.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 k=0;k<this.recommendationsSettings.length;k++)this.recommendationsSettings[k].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[k].containerId);this.reduxStore.dispatch({type:ce.d3})}executeSearch(x,k,P,R,M){this.reduxStore.dispatch((0,ce.EF)(this.client,x,k,!1,P,this.reduxStore,R,"executeSearch",M));for(let q in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ul.l$)(this.segmentedSearchClients[q].client,q,x))}executeAiAnswers(x){this.reduxStore.dispatch((0,zt.On)(this.client,x))}fetchRecommendation(x){const k=this.recommendationsSettings.filter(P=>P.containerId===x)[0];k&&this.reduxStore.dispatch((0,zl.vh)(this.client,{container:k.containerId,type:k.type,blockId:k.blockId,configurationKey:k.configurationKey,itemId:k.getProductIdFunction?k.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const x=this.client.getSettings().paging;this.reduxStore.dispatch((0,$l.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const k=this.reduxStore;k.getState().keyword.value===""&&(k.dispatch((0,Ke.Ai)(Pt,!0)),this.executeSearch(Pt,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 we(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(k,P,R,M,q)=>{this.executeSearch(k,P,R,M,q),!k.startsWith(Xn)&&this.settings.hasAiAnswers&&!R&&this.executeAiAnswers(k,R)})}autocomplete(x){new I.A(this.client,this.reduxStore,this.settings.hasAiAnswers,x)}aiAnswersResult(x){this.shouldInitializeFromBrowserHistory=!0,new Bl(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 Dl(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new U(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new oe(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ee.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Hl.A(this.client,this.reduxStore,x)}pagination(x){new Ce(this.client,this.reduxStore,x)}loadMore(x){new W.A(this.client,this.reduxStore,x)}activeFilters(x){new S(this.client,this.reduxStore,x)}recommendations(x){new ql.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.hasAiAnswers&&this.executeAiAnswers(x)}hideAutocomplete(){this.reduxStore.dispatch((0,Ie.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,ce.AX)("top"))}registerHandlebarsHelper(x,k){(0,N.g3)(x,k)}registerHandlebarsPartial(x,k){(0,N.bp)(x,k)}}},4922:function(b,c,n){function v(V,H,se){return H in V?Object.defineProperty(V,H,{value:se,enumerable:!0,configurable:!0,writable:!0}):V[H]=se,V}function o(V,H){var se=Object.keys(V);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(V);H&&(de=de.filter(function(we){return Object.getOwnPropertyDescriptor(V,we).enumerable})),se.push.apply(se,de)}return se}function e(V){for(var H=1;H<arguments.length;H++){var se=arguments[H]!=null?arguments[H]:{};H%2?o(Object(se),!0).forEach(function(de){v(V,de,se[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(se)):o(Object(se)).forEach(function(de){Object.defineProperty(V,de,Object.getOwnPropertyDescriptor(se,de))})}return V}function p(V){return"Minified Redux error #"+V+"; visit https://redux.js.org/Errors?code="+V+" 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",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(V){if(typeof V!="object"||V===null)return!1;for(var H=V;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(V)===H}function g(V,H,se){var de;if(typeof H=="function"&&typeof se=="function"||typeof se=="function"&&typeof arguments[3]=="function")throw new Error(p(0));if(typeof H=="function"&&se===void 0&&(se=H,H=void 0),se!==void 0){if(typeof se!="function")throw new Error(p(1));return se(g)(V,H)}if(typeof V!="function")throw new Error(p(2));var we=V,Se=H,Ae=[],me=Ae,ve=!1;function be(){me===Ae&&(me=Ae.slice())}function Be(){if(ve)throw new Error(p(3));return Se}function X(ie){if(typeof ie!="function")throw new Error(p(4));if(ve)throw new Error(p(5));var fe=!0;return be(),me.push(ie),function(){if(fe){if(ve)throw new Error(p(6));fe=!1,be();var O=me.indexOf(ie);me.splice(O,1),Ae=null}}}function le(ie){if(!s(ie))throw new Error(p(7));if(ie.type===void 0)throw new Error(p(8));if(ve)throw new Error(p(9));try{ve=!0,Se=we(Se,ie)}finally{ve=!1}for(var fe=Ae=me,O=0;O<fe.length;O++)(0,fe[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:X,getState:Be,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(p(10));we=ie,le({type:a.REPLACE})}})[C]=function(){var ie,fe=X;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(p(11));function y(){O.next&&O.next(Be())}return y(),{unsubscribe:fe(y)}}})[C]=function(){return this},ie},de}function d(){for(var V=arguments.length,H=new Array(V),se=0;se<V;se++)H[se]=arguments[se];return H.length===0?function(de){return de}:H.length===1?H[0]:H.reduce(function(de,we){return function(){return de(we.apply(void 0,arguments))}})}var m=n(6148);const l={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var h=n(549),_=n(9369);const S={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},I=function(V,H,se){if(V[se.container]||(V[se.container]={}),V[se.container][se.field]||(V[se.container][se.field]={}),V[se.container][se.field][se.value]){const Ae=se.value.lastIndexOf(">"),me=Ae>-1?se.value.slice(0,Ae-1):null;if(delete V[se.container][se.field][se.value],me&&(de=V[se.container][se.field],we=me,!(Object.keys(de).filter(function(ve){return ve.indexOf(we+" >")>-1}).length>0))){const ve=H.indexOf(me);ve>-1&&H.splice(ve,1)}}else{V[se.container][se.field][se.value]="true";for(let me in V[se.container])for(let ve in V[se.container][me])ve.indexOf(se.value+" >")===0&&delete V[se.container][me][ve];H=H.filter(me=>me.indexOf(se.value+" > ")!==0);const Ae=se.value.split(" > ").reduce((me,ve)=>{const be=me[me.length-1],Be=be?be+" > "+ve:ve;return Be!==se.value&&me.push(Be),me},[]);for(let me in V[se.container])for(let ve in V[se.container][me])Ae.indexOf(ve)!==-1&&delete V[se.container][me][ve];H=H.filter(me=>Ae.indexOf(me)===-1).concat(Ae)}var de,we;const Se=H.indexOf(se.value);return Se>-1&&H.splice(Se,1),{activeHierarchicalFacetState:V,indeterminateHierarchicalFacets:H}};var T=n(6993);const A={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var j=n(5756);const U={page:1};var L=n(9770),B=n(1944),N=n(1543);const z={started:!1,keyword:null,results:{},loading:!1,aiAnswersResult:{},loadingAiAnswersResult:!1,aiAnswersResultError:!1,aiAnswerSentiment:"neutral",isAiAnswersAnswerExpanded:!1,isAiAnswersHidden:!1,searchResultsPageUrl:null};var G=n(4826);const oe={pendingSegments:[]};var ee=n(6353);const Y={field:["relevance"],order:[ee.ER]},W={};var Z=n(6843);const ce={fieldStats:{}};var ge=n(878);const _e={container:null,recommendType:null,results:null};var Re=function(V){for(var H=Object.keys(V),se={},de=0;de<H.length;de++){var we=H[de];typeof V[we]=="function"&&(se[we]=V[we])}var Se,Ae=Object.keys(se);try{(function(me){Object.keys(me).forEach(function(ve){var be=me[ve];if(be(void 0,{type:a.INIT})===void 0)throw new Error(p(12));if(be(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(p(13))})})(se)}catch(me){Se=me}return function(me,ve){if(me===void 0&&(me={}),Se)throw Se;for(var be=!1,Be={},X=0;X<Ae.length;X++){var le=Ae[X],ie=se[le],fe=me[le],O=ie(fe,ve);if(O===void 0)throw ve&&ve.type,new Error(p(14));Be[le]=O,be=be||O!==fe}return(be=be||Ae.length!==Object.keys(me).length)?Be:me}}({autocomplete:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case m.VW:let se=[...V.pendingRequests];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingRequests:se});case m.vT:return Object.assign({},V,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case m.nn:return Object.assign({},V,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case m.KR:let de=[...V.pendingRequests];return de.indexOf(m.Pf)!==-1&&de.splice(de.indexOf(m.Pf),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case m.kw:let we=[...V.pendingRequests];return we.indexOf(m.Xr)!==-1&&we.splice(we.indexOf(m.Xr),1),Object.assign({},V,{pendingRequests:we,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case m.Km:return Object.assign({},V,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case m.p3:const Se=Object.assign({},V.searchResults);Se[H.jsonKey]=H.results.hits;const Ae=Object.assign({},V.searchResultsStats);H.appendResults===!0&&V.searchResults[H.jsonKey]?Se[H.jsonKey]=[...V.searchResults[H.jsonKey],...H.results.hits]:(Ae[H.jsonKey]||(Ae[H.jsonKey]={}),Ae[H.jsonKey].total_hits=H.results.total_hits,Ae[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...V.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:me,searchResults:Se,searchResultsStats:Ae,visible:!0,appendResults:H.appendResults===!0});case m.GB:return Object.assign({},V,{visible:!1,activeSuggestionIndex:null});case m.B5:return Object.assign({},V,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case m.h$:return Object.assign({},V,{visible:!0,dropRendering:!1});case m.FJ:return Object.assign({},V,{hideAutomatically:H.hideAutomatically});case m.d5:return Object.assign({},V,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case m.hx:let ve=V.activeSuggestionIndex;if(V.suggestions.length&&V.customFields.length)ve=null;else{const be=V.suggestions.length?"suggestions":"customFields";H.direction===m.Jd?ve===null&&V[be].length>0?ve=0:ve===V[be].length-1?ve=null:ve+=1:H.direction===m.il&&(ve===null&&V[be].length>0?ve=V[be].length-1:ve===0?ve=null:ve-=1)}return Object.assign({},V,{visible:!0,activeSuggestionIndex:ve,setSuggestionToSearchField:!0});default:return V}},filters:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case h.XI:let se=V.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},se.push(Be)}else if(H.filterObj.options){const Be=Object.assign({},H.filterObj.options);se.push(Be)}return Object.assign({},V,{allAvailableFilters:se});case h.CY:let de=Object.assign({},V.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},V,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case h.Uj:let we=Object.assign({},V.activeRangeFilters);return we[H.field]={},H.from!==null&&(we[H.field].gte=H.from),H.to!==null&&(we[H.field].lte=H.to),H.from===null&&H.to===null&&delete we[H.field],Object.assign({},V,{activeRangeFilters:we,refreshSearch:!0});case h.vj:return Object.assign({},V,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case h.Tv:return Object.assign({},V,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case h.uR:return Object.assign({},V,{activeFilters:H.json||{},refreshSearch:!1});case h.VN:return Object.assign({},V,{activeFacets:H.json||{},refreshSearch:!1});case h.JS:return Object.assign({},V,{activeRangeFacets:Object.assign({},V.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case h.cl:let Se=Object.assign({},V.activeFacets);return Se[H.field]||(Se[H.field]={}),Se[H.field][H.value]?delete Se[H.field][H.value]:Se[H.field][H.value]="true",Se.v=Se.v?Se.v+1:1,Object.assign({},V,{activeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.QW:let Ae=Object.assign({},V.activeHierarchicalFacets),me=V.indeterminateHierarchicalFacets.slice();const ve=I(Ae,me,H);return Ae=ve.activeHierarchicalFacetState,me=ve.indeterminateHierarchicalFacets,Ae.v=Ae.v?Ae.v+1:1,Object.assign({},V,{activeHierarchicalFacets:Ae,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.IS:let be=Object.assign({},V.activeRangeFacets);return be[H.field]||(be[H.field]={}),be[H.field][H.key]?delete be[H.field][H.key]:be[H.field][H.key]={gte:H.values.min,lt:H.values.max,key:H.key},be.v=be.v?be.v+1:1,Object.assign({},V,{activeRangeFacets:be,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return V}},keyword:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case T.QR:return Object.assign({},V,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case T.Le:return Object.assign({},V,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return V}},pagination:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,H=arguments.length>1?arguments[1]:void 0;return H.type===j.N?Object.assign({},V,{page:H.page}):V},search:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case B.d3:return Object.assign({},V,{started:!0});case B.y$:return Object.assign({},V,{keyword:null,results:{},loading:!1,aiAnswersResult:{},aiAnswersResultError:!1,loadingAiAnswersResult:!1,aiAnswersSentiment:"neutral",dropReturningResults:!0});case B.xE:return Object.assign({},V,{loading:!0,dropReturningResults:!1});case B.mY:if(V.started||console.log("WARNING: AddSearch UI not started with the start() function"),V.dropReturningResults===!0)return V;if(H.keyword.indexOf(L.H)===0)return Object.assign({},V,{loading:!1});let se=H.results;if(H.appendResults===!0&&V.results.hits){const de=[...V.results.hits,...H.results.hits];se.hits=de}return Object.assign({},V,{keyword:H.keyword,results:se,loading:!1,callBy:H.requestBy});case N.Lt:return Object.assign({},V,{loadingAiAnswersResult:H.payload});case N.FW:return Object.assign({},V,{aiAnswersResult:H.payload});case N.mQ:return Object.assign({},V,{aiAnswersResultError:H.payload});case N.wF:return Object.assign({},V,{aiAnswersSentiment:H.payload});case N.Rn:return Object.assign({},V,{isAiAnswersAnswerExpanded:H.payload});case N.jK:return Object.assign({},V,{isAiAnswersHidden:H.payload});case B.j2:return Object.assign({},V,{searchResultsPageUrl:H.url});default:return V}},segmentedsearch:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case G.lD:let se=[...V.pendingSegments];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingSegments:se,dropReturningResults:!1});case G.JK:if(H.keyword.indexOf(L.H)===0||V.dropReturningResults===!0)return V;const de={};de[H.jsonKey]=H.results;let we=[...V.pendingSegments];return we.indexOf(H.jsonKey)!==-1&&we.splice(we.indexOf(H.jsonKey),1),Object.assign({},V,de,{pendingSegments:we});case G.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return V}},sortby:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ee.O0?Object.assign({},V,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):V},fieldstats:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case Z.IJ:return Object.assign({},V,{fieldStats:H.fieldStats,callBy:H.callBy});case Z.nb:return Object.assign({},V,{fieldStats:{}});default:return V}},recommendation:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_e,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case ge.iM:case ge.OU:return Object.assign({},V,{container:H.container,recommendType:H.recommendType,results:H.results});case ge.KE:return Object.assign({},_e);default:return V}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function He(V){return function(H){var se=H.dispatch,de=H.getState;return function(we){return function(Se){return typeof Se=="function"?Se(se,de,V):we(Se)}}}}var Ie=He();Ie.withExtraArgument=He;var Ke=Ie;function Me(V){const H={configuration:V};let se=d;return V.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(se=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),g(Re,H,se(function(){for(var de=arguments.length,we=new Array(de),Se=0;Se<de;Se++)we[Se]=arguments[Se];return function(Ae){return function(){var me=Ae.apply(void 0,arguments),ve=function(){throw new Error(p(15))},be={getState:me.getState,dispatch:function(){return ve.apply(void 0,arguments)}},Be=we.map(function(X){return X(be)});return ve=d.apply(void 0,Be)(me.dispatch),e(e({},me),{},{dispatch:ve})}}}(Ke)))}function We(V,H,se){let de={};function we(){const Ae=V.getState()[H];JSON.stringify(Ae)!==JSON.stringify(de[H])&&(de[H]=Ae,se(de[H]))}let Se=V.subscribe(we);return we(),Se}},6351:function(b,c,n){n.d(c,{$P:function(){return _},ME:function(){return h},b8:function(){return e},d_:function(){return u},mh:function(){return d}});const v=2500;let o=null;function e(T){o=T}function p(T){o&&o(T)}let C=!0;function u(T){C=T}let a=null,s=null,g=!1;function d(T,A,j,U){if(C===!1)return;const L="search";a&&clearTimeout(a),a=setTimeout(()=>{A!==s&&(T.sendStatsEvent(L,A,{numberOfResults:j}),p({action:L,keyword:A,numberOfResults:j,processingTimeMs:U}),s=A,g=!0)},v)}let m=null,l=null;function h(T,A){C===!1||!A||A.length<1||(m&&clearTimeout(m),m=setTimeout(()=>{T!==l&&(A.forEach(j=>j.client.sendStatsEvent("search",T,{numberOfResults:j.numberOfResults})),l=T,g=!0)},v))}function _(T,A,j){if(A&&A.length>0)for(let U=0;U<A.length;U++)A[U].addEventListener("keyup",L=>{L.keyCode===13&&I(L,T,j)}),A[U].addEventListener("pointerdown",L=>{L.button&&L.buttons&&L.button===L.buttons||I(L,T,j)})}function S(T){const A=T.getAttribute("data-analytics-click");return T.nodeName==="BODY"||T.nodeName==="body"?null:A||S(T.parentNode)}function I(T,A,j){if(C===!1)return;const U=S(T.target),L=function(N,z,G){if(z&&z.hits){const oe=((z.page||1)-1)*N;for(let ee=0;ee<z.hits.length;ee++)if(z.hits[ee].id===G)return oe+(ee+1)}return 0}(A.getSettings().paging.pageSize,j,U),B=A.getSettings().keyword;if(A.sendStatsEvent("click",B,{documentId:U,position:L}),p({action:"click",keyword:B,documentId:U,position:L}),g===!1){const N=j?j.total_hits:0,z=j?j.processing_time_ms:0;A.sendStatsEvent("search",B,{numberOfResults:N}),p({action:"search",keyword:B,numberOfResults:N,processingTimeMs:z})}}},4379:function(b,c,n){function v(e,p,C,u){const a=e.querySelectorAll("["+p+"]");for(let s=0;s<a.length;s++)a[s].addEventListener(C,g=>{u(g.target.getAttribute(p))})}function o(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return o},h:function(){return v}})},3923:function(b,c,n){n.d(c,{GK:function(){return u},bp:function(){return d},g3:function(){return g},ud:function(){return s}});var v=n(2334),o=n.n(v),e=n(261),p=n.n(e),C=n(7435);function u(m,l){const h=m.categories||[];let _="",S=1;l=(0,C.y)(l);do _=h.length>S?h[S]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),S++;while(_.length<3&&h.length>S);return l&&l[_]?l[_]:_.replace(/[-_]+/g," ")}let a=null;function s(){g("equals",(m,l,h)=>m+""==l+""?h.fn(this):h.inverse(this)),g("not",(m,l,h)=>m+""!=l+""?h.fn(this):h.inverse(this)),g("gt",(m,l,h)=>m>l?h.fn(this):h.inverse(this)),g("lt",(m,l,h)=>m<l?h.fn(this):h.inverse(this)),g("or",(m,l,h)=>m||l?h.fn(this):h.inverse(this)),g("formatPrice",(m,l,h)=>{if(m===void 0||typeof m!="number"||!l||!h)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(l,{style:"currency",currency:h,minimumFractionDigits:2})),a)return a.format(m)}catch{}return m/100+" "+h})}function g(m,l){o().registerHelper(m,l),p().registerHelper(m,l)}function d(m,l){o().registerPartial(m,l),p().registerPartial(m,l)}},4903:function(b,c,n){n.d(c,{Dh:function(){return g},I5:function(){return m},IR:function(){return S},lG:function(){return I},sh:function(){return u}});var v=n(9770),o=n(6993),e=n(5756),p=n(549),C=n(6353);const u={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let s=null;function g(T,A,j,U){const L=U.getState();L&&L.configuration&&L.configuration.updateBrowserHistory===!1||(j?(s&&clearTimeout(s),s=setTimeout(()=>{d(T,A)},a)):d(T,A))}function d(T,A){if(T===u.SEARCH&&A&&A.indexOf(v.H)===0)return;let j=window.location.href;j.indexOf("#")!==-1&&(j=j.substring(0,j.indexOf("#")));const U=window.location.hash||"",L=h(j);T===u.PAGE&&A==1||T===u.SEARCH&&A==v.Z?delete L[T]:T&&A!==null&&A!==""?L[T]=A:T&&delete L[T];let B=j;j.indexOf("?")!==-1&&(B=j.substring(0,j.indexOf("?"))),JSON.stringify(L)!==JSON.stringify({})&&(B=B+"?"+function(N){let z="";for(let G in N)if(N.hasOwnProperty(G)){z!==""&&(z+="&");let oe="";if(G==="addsearchUnrelatedParams"){z+=N[G].split("&").join("&");continue}N[G]!==null&&N[G]!==void 0&&G!=="addsearchUnrelatedParams"&&(oe="="+encodeURIComponent(N[G])),z=z+G+oe}return z}(L)),B+=U,history.state===null?history.replaceState(L,"",B):JSON.stringify(history.state)!==JSON.stringify(L)&&history.pushState(L,"",B)}function m(T,A,j,U,L,B){const N=h(window.location.href);l(T,A,N,j,U,!1,B),window.onpopstate=z=>{const G=h(window.location.href);l(T,A,G,j,U,L,B)}}function l(T,A,j,U,L,B,N){let z=!1;if(j[u.FILTERS]){const G=_(j[u.FILTERS]);A.dispatch((0,p.eu)(G)),z=!0}if(j[u.FACETS]){const G=_(j[u.FACETS]);A.dispatch((0,p.Xh)(G)),z=!0}if(j[u.RANGE_FACETS]){const G=_(j[u.RANGE_FACETS]);A.dispatch((0,p.ks)(G)),z=!0}if(z){const G=U(A.getState().filters,N);T.setFilterObject(G)}else A.dispatch((0,p.eu)(null)),A.dispatch((0,p.Xh)(null)),T.setFilterObject(N||null);if(j[u.SORTBY]){const G=_(j[u.SORTBY]);A.dispatch((0,C.Ul)(T,G.field,G.order))}if(j[u.PAGE])A.dispatch((0,e.I)(T,parseInt(j[u.PAGE],10),null,A));else{const G=T.getSettings().paging;A.dispatch((0,e.I)(T,G.page,null,A))}if(j[u.SEARCH]){const G=decodeURIComponent(j[u.SEARCH]);A.dispatch((0,o.Ai)(G,!0,null,!0)),L(G)}else B===!0&&(A.dispatch((0,o.Ai)(v.Z,!0,null,!0)),L(v.Z))}function h(T){if(T.indexOf("?")===-1)return{};let A=T.substring(T.indexOf("?")+1);if(A==="")return{};A.indexOf("#")!==-1&&(A=A.substring(0,A.indexOf("#")));let j={};const U=A.split("&"),L=U.filter(N=>N.indexOf(u.SEARCH)===-1&&N.indexOf(u.PAGE)===-1&&N.indexOf(u.SORTBY)===-1&&N.indexOf(u.FILTERS)===-1&&N.indexOf(u.FACETS)===-1&&N.indexOf(u.RANGE_FACETS)===-1),B=U.filter(N=>!L.includes(N));return L.length&&(j.addsearchUnrelatedParams=L.join("&")),B.forEach(N=>{const z=N.split("=");if(z[0]&&z[0].length>0){let G=null;z.length>1&&(G=z[1]||"",G=G.replace(/\+/g,"%20"),G=decodeURIComponent(G)),j[z[0]]=G}}),j}function _(T){try{return JSON.parse(T)}catch{}return null}function S(T){return Object.keys(T).length>0?(delete T.v,JSON.stringify(T)):null}function I(T,A){T.indexOf("?")===-1?window.location.href=T+"?"+u.SEARCH+"="+encodeURIComponent(A):window.location.href=T+"&"+u.SEARCH+"="+encodeURIComponent(A)}},7435:function(b,c,n){function v(e){return!e||Object.keys(e).length===0}function o(e){if(e)return Object.keys(e).reduce((p,C)=>(p[C.toLowerCase()]=e[C],p),{})}n.d(c,{I:function(){return v},y:function(){return o}})},9491:function(b){function c(n,v){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(n),e=1;e<arguments.length;e++){var p=arguments[e];if(p!=null)for(var C=Object.keys(Object(p)),u=0,a=C.length;u<a;u++){var s=C[u],g=Object.getOwnPropertyDescriptor(p,s);g!==void 0&&g.enumerable&&(o[s]=p[s])}}return o}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 v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <div class="item">
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:k,tokens:P}){const R=this.parser.parseInline(P),M=mn(x);if(M===null)return R;let $='<a href="'+(x=M)+'"';return k&&($+=' title="'+k+'"'),$+=">"+R+"</a>",$}image({href:x,title:k,text:P}){const R=mn(x);if(R===null)return P;let M=`<img src="${x=R}" alt="${P}"`;return k&&(M+=` title="${k}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class qr{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 wt{constructor(x){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=x||y,this.options.renderer=this.options.renderer||new Zn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qr}static parse(x,k){return new wt(k).parse(x)}static parseInline(x,k){return new wt(k).parseInline(x)}parse(x,k=!0){let P="";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 K=M,ne=this.options.extensions.renderers[K.type].call({parser:this},K);if(ne!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(K.type)){P+=ne||"";continue}}const $=M;switch($.type){case"space":P+=this.renderer.space($);continue;case"hr":P+=this.renderer.hr($);continue;case"heading":P+=this.renderer.heading($);continue;case"code":P+=this.renderer.code($);continue;case"table":P+=this.renderer.table($);continue;case"blockquote":P+=this.renderer.blockquote($);continue;case"list":P+=this.renderer.list($);continue;case"html":P+=this.renderer.html($);continue;case"paragraph":P+=this.renderer.paragraph($);continue;case"text":{let K=$,ne=this.renderer.text(K);for(;R+1<x.length&&x[R+1].type==="text";)K=x[++R],ne+=`
135
+ `+this.renderer.text(K);P+=k?this.renderer.paragraph({type:"paragraph",raw:ne,text:ne,tokens:[{type:"text",raw:ne,text:ne}]}):ne;continue}default:{const K='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}parseInline(x,k){k=k||this.renderer;let P="";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 K=this.options.extensions.renderers[M.type].call({parser:this},M);if(K!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){P+=K||"";continue}}const $=M;switch($.type){case"escape":case"text":P+=k.text($);break;case"html":P+=k.html($);break;case"link":P+=k.link($);break;case"image":P+=k.image($);break;case"strong":P+=k.strong($);break;case"em":P+=k.em($);break;case"codespan":P+=k.codespan($);break;case"br":P+=k.br($);break;case"del":P+=k.del($);break;default:{const K='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}}class En{constructor(x){Ve(this,"options");Ve(this,"block");this.options=x||y}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?bt.lex:bt.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}}Ve(En,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const Ut=new class{constructor(...pe){Ve(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",wt);Ve(this,"Renderer",Zn);Ve(this,"TextRenderer",qr);Ve(this,"Lexer",bt);Ve(this,"Tokenizer",Qt);Ve(this,"Hooks",En);this.use(...pe)}walkTokens(pe,x){var P,R;let k=[];for(const M of pe)switch(k=k.concat(x.call(this,M)),M.type){case"table":{const $=M;for(const K of $.header)k=k.concat(this.walkTokens(K.tokens,x));for(const K of $.rows)for(const ne of K)k=k.concat(this.walkTokens(ne.tokens,x));break}case"list":{const $=M;k=k.concat(this.walkTokens($.items,x));break}default:{const $=M;(R=(P=this.defaults.extensions)==null?void 0:P.childTokens)!=null&&R[$.type]?this.defaults.extensions.childTokens[$.type].forEach(K=>{const ne=$[K].flat(1/0);k=k.concat(this.walkTokens(ne,x))}):$.tokens&&(k=k.concat(this.walkTokens($.tokens,x)))}}return k}use(...pe){const x=this.defaults.extensions||{renderers:{},childTokens:{}};return pe.forEach(k=>{const P={...k};if(P.async=this.defaults.async||P.async||!1,k.extensions&&(k.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 K=R.renderer.apply(this,$);return K===!1&&(K=M.apply(this,$)),K}: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)}),P.extensions=x),k.renderer){const R=this.defaults.renderer||new Zn(this.defaults);for(const M in k.renderer){if(!(M in R))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const $=M,K=k.renderer[$],ne=R[$];R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue||""}}P.renderer=R}if(k.tokenizer){const R=this.defaults.tokenizer||new Qt(this.defaults);for(const M in k.tokenizer){if(!(M in R))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const $=M,K=k.tokenizer[$],ne=R[$];R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.tokenizer=R}if(k.hooks){const R=this.defaults.hooks||new En;for(const M in k.hooks){if(!(M in R))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const $=M,K=k.hooks[$],ne=R[$];En.passThroughHooks.has(M)?R[$]=re=>{if(this.defaults.async)return Promise.resolve(K.call(R,re)).then(xe=>ne.call(R,xe));const ue=K.call(R,re);return ne.call(R,ue)}:R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.hooks=R}if(k.walkTokens){const R=this.defaults.walkTokens,M=k.walkTokens;P.walkTokens=function($){let K=[];return K.push(M.call(this,$)),R&&(K=K.concat(R.call(this,$))),K}}this.defaults={...this.defaults,...P}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return bt.lex(pe,x??this.defaults)}parser(pe,x){return wt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,k)=>{const P={...k},R={...this.defaults,...P},M=this.onError(!!R.silent,!!R.async);if(this.defaults.async===!0&&P.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?bt.lex:bt.lexInline,K=R.hooks?R.hooks.provideParser():pe?wt.parse:wt.parseInline;if(R.async)return Promise.resolve(R.hooks?R.hooks.preprocess(x):x).then(ne=>$(ne,R)).then(ne=>R.hooks?R.hooks.processAllTokens(ne):ne).then(ne=>R.walkTokens?Promise.all(this.walkTokens(ne,R.walkTokens)).then(()=>ne):ne).then(ne=>K(ne,R)).then(ne=>R.hooks?R.hooks.postprocess(ne):ne).catch(M);try{R.hooks&&(x=R.hooks.preprocess(x));let ne=$(x,R);R.hooks&&(ne=R.hooks.processAllTokens(ne)),R.walkTokens&&this.walkTokens(ne,R.walkTokens);let re=K(ne,R);return R.hooks&&(re=R.hooks.postprocess(re)),re}catch(ne){return M(ne)}}}onError(pe,x){return k=>{if(k.message+=`
136
+ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An error occurred:</p><pre>"+Pe(k.message+"",!0)+"</pre>";return x?Promise.resolve(P):P}if(x)return Promise.reject(k);throw k}}};function qe(pe,x){return Ut.parse(pe,x)}qe.options=qe.setOptions=function(pe){return Ut.setOptions(pe),qe.defaults=Ut.defaults,w(qe.defaults),qe},qe.getDefaults=O,qe.defaults=y,qe.use=function(...pe){return Ut.use(...pe),qe.defaults=Ut.defaults,w(qe.defaults),qe},qe.walkTokens=function(pe,x){return Ut.walkTokens(pe,x)},qe.parseInline=Ut.parseInline,qe.Parser=wt,qe.parser=wt.parse,qe.Renderer=Zn,qe.TextRenderer=qr,qe.Lexer=bt,qe.lexer=bt.lex,qe.Tokenizer=Qt,qe.Hooks=En,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,wt.parse,bt.lex;var Nl=n(5230),Ml=n.n(Nl),$t=n(1543);class Bl{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,this.answerMaxHeight=P.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,N.g3)("markdown",function(M){return typeof M!="string"?"":new(p()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const R=localStorage.getItem("addSearch-isAiAnswersHidden");if(R!==null){const M=JSON.parse(R);this.reduxStore.dispatch({type:$t.jK,payload:M})}}observeResultLoadingState(){this.reduxStore.subscribe(()=>{const x=this.reduxStore.getState().search.loadingAiAnswersResult;this.isSearchResultLoading!==x&&(this.isSearchResultLoading=x,this.render())})}setupHideAIAnswersToggle(){const x=document.querySelector(".addsearch-ai-answers-result"),k=document.querySelector(".toggle-switch input");x&&k&&k.addEventListener("change",()=>{const P=this.reduxStore.getState().search.isAiAnswersHidden;this.reduxStore.dispatch({type:$t.jK,payload:!P}),localStorage.setItem("addSearch-isAiAnswersHidden",JSON.stringify(!P))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),k=x&&x.querySelector(".fade-out-overlay"),P=document.querySelector(".show-more-btn"),R=P&&P.querySelector(".button-text"),M=P&&P.querySelector(".chevron");x&&k&&P&&R&&M&&(this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),P.style.display="flex",R.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(P.style.display="flex",k.style.display="block"):(P.style.display="none",k.style.display="none")),P.addEventListener("click",()=>{this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(this.reduxStore.dispatch({type:$t.Rn,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),R.textContent="Show more",k.style.display="block",M.style.transform=""):(this.reduxStore.dispatch({type:$t.Rn,payload:!0}),x.style.maxHeight="".concat(x.scrollHeight,"px"),R.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)")}))}setupActionButtons(){const x=document.querySelector(".addsearch-ai-answers-result"),k=x&&x.querySelector(".copy-btn"),P=x.querySelector(".copy-confirm-message"),R=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&k&&P&&R&&M&&(k.addEventListener("click",()=>{const $=document.querySelector(".answer-text").textContent;navigator.clipboard.writeText($).then(()=>{P.textContent="Answer copied!"}).catch(K=>{console.error("Failed to copy answer text with following error: ",K)})}),R.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.aiAnswersResult.id,$.aiAnswersSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.aiAnswersResult.id,$.aiAnswersSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,k=x.aiAnswersResult,P=x.loadingAiAnswersResult,R=x.keyword,M=x.aiAnswersResultError,$={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:R,answerText:k.answerText,sourcesHeadlineText:this.conf.sourcesHeadlineText||"Sources:",sources:k.sources,aiExplanationText:this.conf.aiExplanationText||"Generated by AI, may contain errors.",isResultLoading:this.isSearchResultLoading,hadError:M,sentimentState:x.aiAnswersSentiment,showHideToggle:this.conf.hasHideToggle===void 0||this.conf.hasHideToggle,isHidden:x.isAiAnswersHidden};let K;(k.answerText||R&&P)&&(K=this.conf.precompiledTemplate?this.conf.precompiledTemplate($):this.conf.template?p().compile(this.conf.template)($):Ml()($)),!(!K||this.renderedHtml===K)&&(document.getElementById(this.conf.containerId).innerHTML=K,this.renderedHtml=K,this.setupHideAIAnswersToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class Dl{constructor(x,k,P){this.client=x,this.reduxStore=k,this.conf=P,(0,u.A)(P.containerId)&&(P.template||P.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",R=>this.render(R)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let k;if(k=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):p().compile(this.conf.template)(x),this.renderedHtml===k)return;const P=document.getElementById(this.conf.containerId);P.innerHTML=k,this.renderedHtml=k;const R=P.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,R,x)}}var Hl=n(8909),Ul=n(4826),$l=n(6353),ql=n(4128),zl=n(878);const Xn="_addsearch_",Pt="*";o().polyfill(),(0,N.ud)();class Vl{constructor(x,k){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=k||{},Ne.sh.SEARCH=this.settings.searchParameter||Ne.sh.SEARCH,Ne.sh.FACETS=this.settings.facetsParameter||Ne.sh.FACETS,this.shouldInitializeFromBrowserHistory=!1,this.reduxStore=(0,a.N)(this.settings)}start(){this.initFromClientSettings(),this.client.setCollectAnalytics(!1),(0,Se.b8)(this.settings.analyticsCallback),(0,Se.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,ce.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:T.a;this.shouldInitializeFromBrowserHistory&&(0,Ne.I5)(this.client,this.reduxStore,x,(P,R)=>{this.executeSearch(P,R,!1,null,this.settings.fieldForInstantRedirect),P&&this.settings.hasAiAnswers&&this.executeAiAnswers(P,!1)},this.settings.matchAllQuery,this.settings.baseFilters),new T.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 k=0;k<this.recommendationsSettings.length;k++)this.recommendationsSettings[k].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[k].containerId);this.reduxStore.dispatch({type:ce.d3})}executeSearch(x,k,P,R,M){this.reduxStore.dispatch((0,ce.EF)(this.client,x,k,!1,P,this.reduxStore,R,"executeSearch",M));for(let $ in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ul.l$)(this.segmentedSearchClients[$].client,$,x))}executeAiAnswers(x){this.reduxStore.dispatch((0,$t.On)(this.client,x))}fetchRecommendation(x){const k=this.recommendationsSettings.filter(P=>P.containerId===x)[0];k&&this.reduxStore.dispatch((0,zl.vh)(this.client,{container:k.containerId,type:k.type,blockId:k.blockId,configurationKey:k.configurationKey,itemId:k.getProductIdFunction?k.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const x=this.client.getSettings().paging;this.reduxStore.dispatch((0,$l.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const k=this.reduxStore;k.getState().keyword.value===""&&(k.dispatch((0,Ke.Ai)(Pt,!0)),this.executeSearch(Pt,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 we(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(k,P,R,M,$)=>{this.executeSearch(k,P,R,M,$),!k.startsWith(Xn)&&this.settings.hasAiAnswers&&!R&&this.executeAiAnswers(k,R)})}autocomplete(x){new I.A(this.client,this.reduxStore,this.settings.hasAiAnswers,x)}aiAnswersResult(x){this.shouldInitializeFromBrowserHistory=!0,new Bl(this.client,this.reduxStore,x)}searchResults(x){this.shouldInitializeFromBrowserHistory=!0,new he(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 Dl(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new U(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new oe(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ee.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Hl.A(this.client,this.reduxStore,x)}pagination(x){new Ce(this.client,this.reduxStore,x)}loadMore(x){new W.A(this.client,this.reduxStore,x)}activeFilters(x){new S(this.client,this.reduxStore,x)}recommendations(x){new ql.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.hasAiAnswers&&this.executeAiAnswers(x)}hideAutocomplete(){this.reduxStore.dispatch((0,Ie.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,ce.AX)("top"))}registerHandlebarsHelper(x,k){(0,N.g3)(x,k)}registerHandlebarsPartial(x,k){(0,N.bp)(x,k)}}},4922:function(b,c,n){function v(V,H,se){return H in V?Object.defineProperty(V,H,{value:se,enumerable:!0,configurable:!0,writable:!0}):V[H]=se,V}function o(V,H){var se=Object.keys(V);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(V);H&&(de=de.filter(function(we){return Object.getOwnPropertyDescriptor(V,we).enumerable})),se.push.apply(se,de)}return se}function e(V){for(var H=1;H<arguments.length;H++){var se=arguments[H]!=null?arguments[H]:{};H%2?o(Object(se),!0).forEach(function(de){v(V,de,se[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(se)):o(Object(se)).forEach(function(de){Object.defineProperty(V,de,Object.getOwnPropertyDescriptor(se,de))})}return V}function p(V){return"Minified Redux error #"+V+"; visit https://redux.js.org/Errors?code="+V+" for the full message or use the non-minified dev environment for full errors. "}n.d(c,{N:function(){return Ne},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(V){if(typeof V!="object"||V===null)return!1;for(var H=V;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(V)===H}function g(V,H,se){var de;if(typeof H=="function"&&typeof se=="function"||typeof se=="function"&&typeof arguments[3]=="function")throw new Error(p(0));if(typeof H=="function"&&se===void 0&&(se=H,H=void 0),se!==void 0){if(typeof se!="function")throw new Error(p(1));return se(g)(V,H)}if(typeof V!="function")throw new Error(p(2));var we=V,Se=H,Ae=[],me=Ae,ve=!1;function be(){me===Ae&&(me=Ae.slice())}function Me(){if(ve)throw new Error(p(3));return Se}function X(ie){if(typeof ie!="function")throw new Error(p(4));if(ve)throw new Error(p(5));var he=!0;return be(),me.push(ie),function(){if(he){if(ve)throw new Error(p(6));he=!1,be();var O=me.indexOf(ie);me.splice(O,1),Ae=null}}}function le(ie){if(!s(ie))throw new Error(p(7));if(ie.type===void 0)throw new Error(p(8));if(ve)throw new Error(p(9));try{ve=!0,Se=we(Se,ie)}finally{ve=!1}for(var he=Ae=me,O=0;O<he.length;O++)(0,he[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:X,getState:Me,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(p(10));we=ie,le({type:a.REPLACE})}})[C]=function(){var ie,he=X;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(p(11));function y(){O.next&&O.next(Me())}return y(),{unsubscribe:he(y)}}})[C]=function(){return this},ie},de}function d(){for(var V=arguments.length,H=new Array(V),se=0;se<V;se++)H[se]=arguments[se];return H.length===0?function(de){return de}:H.length===1?H[0]:H.reduce(function(de,we){return function(){return de(we.apply(void 0,arguments))}})}var m=n(6148);const l={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var h=n(549),_=n(9369);const S={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},I=function(V,H,se){if(V[se.container]||(V[se.container]={}),V[se.container][se.field]||(V[se.container][se.field]={}),V[se.container][se.field][se.value]){const Ae=se.value.lastIndexOf(">"),me=Ae>-1?se.value.slice(0,Ae-1):null;if(delete V[se.container][se.field][se.value],me&&(de=V[se.container][se.field],we=me,!(Object.keys(de).filter(function(ve){return ve.indexOf(we+" >")>-1}).length>0))){const ve=H.indexOf(me);ve>-1&&H.splice(ve,1)}}else{V[se.container][se.field][se.value]="true";for(let me in V[se.container])for(let ve in V[se.container][me])ve.indexOf(se.value+" >")===0&&delete V[se.container][me][ve];H=H.filter(me=>me.indexOf(se.value+" > ")!==0);const Ae=se.value.split(" > ").reduce((me,ve)=>{const be=me[me.length-1],Me=be?be+" > "+ve:ve;return Me!==se.value&&me.push(Me),me},[]);for(let me in V[se.container])for(let ve in V[se.container][me])Ae.indexOf(ve)!==-1&&delete V[se.container][me][ve];H=H.filter(me=>Ae.indexOf(me)===-1).concat(Ae)}var de,we;const Se=H.indexOf(se.value);return Se>-1&&H.splice(Se,1),{activeHierarchicalFacetState:V,indeterminateHierarchicalFacets:H}};var T=n(6993);const A={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var j=n(5756);const U={page:1};var L=n(9770),B=n(1944),N=n(1543);const z={started:!1,keyword:null,results:{},loading:!1,aiAnswersResult:{},loadingAiAnswersResult:!1,aiAnswersResultError:!1,aiAnswerSentiment:"neutral",isAiAnswersAnswerExpanded:!1,isAiAnswersHidden:!1,searchResultsPageUrl:null};var G=n(4826);const oe={pendingSegments:[]};var ee=n(6353);const Y={field:["relevance"],order:[ee.ER]},W={};var Z=n(6843);const ce={fieldStats:{}};var ye=n(878);const _e={container:null,recommendType:null,results:null};var Re=function(V){for(var H=Object.keys(V),se={},de=0;de<H.length;de++){var we=H[de];typeof V[we]=="function"&&(se[we]=V[we])}var Se,Ae=Object.keys(se);try{(function(me){Object.keys(me).forEach(function(ve){var be=me[ve];if(be(void 0,{type:a.INIT})===void 0)throw new Error(p(12));if(be(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(p(13))})})(se)}catch(me){Se=me}return function(me,ve){if(me===void 0&&(me={}),Se)throw Se;for(var be=!1,Me={},X=0;X<Ae.length;X++){var le=Ae[X],ie=se[le],he=me[le],O=ie(he,ve);if(O===void 0)throw ve&&ve.type,new Error(p(14));Me[le]=O,be=be||O!==he}return(be=be||Ae.length!==Object.keys(me).length)?Me:me}}({autocomplete:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case m.VW:let se=[...V.pendingRequests];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingRequests:se});case m.vT:return Object.assign({},V,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case m.nn:return Object.assign({},V,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case m.KR:let de=[...V.pendingRequests];return de.indexOf(m.Pf)!==-1&&de.splice(de.indexOf(m.Pf),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case m.kw:let we=[...V.pendingRequests];return we.indexOf(m.Xr)!==-1&&we.splice(we.indexOf(m.Xr),1),Object.assign({},V,{pendingRequests:we,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case m.Km:return Object.assign({},V,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case m.p3:const Se=Object.assign({},V.searchResults);Se[H.jsonKey]=H.results.hits;const Ae=Object.assign({},V.searchResultsStats);H.appendResults===!0&&V.searchResults[H.jsonKey]?Se[H.jsonKey]=[...V.searchResults[H.jsonKey],...H.results.hits]:(Ae[H.jsonKey]||(Ae[H.jsonKey]={}),Ae[H.jsonKey].total_hits=H.results.total_hits,Ae[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...V.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:me,searchResults:Se,searchResultsStats:Ae,visible:!0,appendResults:H.appendResults===!0});case m.GB:return Object.assign({},V,{visible:!1,activeSuggestionIndex:null});case m.B5:return Object.assign({},V,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case m.h$:return Object.assign({},V,{visible:!0,dropRendering:!1});case m.FJ:return Object.assign({},V,{hideAutomatically:H.hideAutomatically});case m.d5:return Object.assign({},V,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case m.hx:let ve=V.activeSuggestionIndex;if(V.suggestions.length&&V.customFields.length)ve=null;else{const be=V.suggestions.length?"suggestions":"customFields";H.direction===m.Jd?ve===null&&V[be].length>0?ve=0:ve===V[be].length-1?ve=null:ve+=1:H.direction===m.il&&(ve===null&&V[be].length>0?ve=V[be].length-1:ve===0?ve=null:ve-=1)}return Object.assign({},V,{visible:!0,activeSuggestionIndex:ve,setSuggestionToSearchField:!0});default:return V}},filters:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case h.XI:let se=V.allAvailableFilters.slice();if(H.filterObj.type===_.FILTER_TYPE.RANGE){let Me={};Me[H.filterObj.field]={label:H.filterObj.labelShort?H.filterObj.labelShort:H.filterObj.label},se.push(Me)}else if(H.filterObj.options){const Me=Object.assign({},H.filterObj.options);se.push(Me)}return Object.assign({},V,{allAvailableFilters:se});case h.CY:let de=Object.assign({},V.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},V,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case h.Uj:let we=Object.assign({},V.activeRangeFilters);return we[H.field]={},H.from!==null&&(we[H.field].gte=H.from),H.to!==null&&(we[H.field].lte=H.to),H.from===null&&H.to===null&&delete we[H.field],Object.assign({},V,{activeRangeFilters:we,refreshSearch:!0});case h.vj:return Object.assign({},V,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case h.Tv:return Object.assign({},V,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case h.uR:return Object.assign({},V,{activeFilters:H.json||{},refreshSearch:!1});case h.VN:return Object.assign({},V,{activeFacets:H.json||{},refreshSearch:!1});case h.JS:return Object.assign({},V,{activeRangeFacets:Object.assign({},V.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case h.cl:let Se=Object.assign({},V.activeFacets);return Se[H.field]||(Se[H.field]={}),Se[H.field][H.value]?delete Se[H.field][H.value]:Se[H.field][H.value]="true",Se.v=Se.v?Se.v+1:1,Object.assign({},V,{activeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.QW:let Ae=Object.assign({},V.activeHierarchicalFacets),me=V.indeterminateHierarchicalFacets.slice();const ve=I(Ae,me,H);return Ae=ve.activeHierarchicalFacetState,me=ve.indeterminateHierarchicalFacets,Ae.v=Ae.v?Ae.v+1:1,Object.assign({},V,{activeHierarchicalFacets:Ae,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.IS:let be=Object.assign({},V.activeRangeFacets);return be[H.field]||(be[H.field]={}),be[H.field][H.key]?delete be[H.field][H.key]:be[H.field][H.key]={gte:H.values.min,lt:H.values.max,key:H.key},be.v=be.v?be.v+1:1,Object.assign({},V,{activeRangeFacets:be,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return V}},keyword:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case T.QR:return Object.assign({},V,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case T.Le:return Object.assign({},V,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return V}},pagination:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,H=arguments.length>1?arguments[1]:void 0;return H.type===j.N?Object.assign({},V,{page:H.page}):V},search:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case B.d3:return Object.assign({},V,{started:!0});case B.y$:return Object.assign({},V,{keyword:null,results:{},loading:!1,aiAnswersResult:{},aiAnswersResultError:!1,loadingAiAnswersResult:!1,aiAnswersSentiment:"neutral",dropReturningResults:!0});case B.xE:return Object.assign({},V,{loading:!0,dropReturningResults:!1});case B.mY:if(V.started||console.log("WARNING: AddSearch UI not started with the start() function"),V.dropReturningResults===!0)return V;if(H.keyword.indexOf(L.H)===0)return Object.assign({},V,{loading:!1});let se=H.results;if(H.appendResults===!0&&V.results.hits){const de=[...V.results.hits,...H.results.hits];se.hits=de}return Object.assign({},V,{keyword:H.keyword,results:se,loading:!1,callBy:H.requestBy});case N.Lt:return Object.assign({},V,{loadingAiAnswersResult:H.payload});case N.FW:return Object.assign({},V,{aiAnswersResult:H.payload});case N.mQ:return Object.assign({},V,{aiAnswersResultError:H.payload});case N.wF:return Object.assign({},V,{aiAnswersSentiment:H.payload});case N.Rn:return Object.assign({},V,{isAiAnswersAnswerExpanded:H.payload});case N.jK:return Object.assign({},V,{isAiAnswersHidden:H.payload});case B.j2:return Object.assign({},V,{searchResultsPageUrl:H.url});default:return V}},segmentedsearch:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case G.lD:let se=[...V.pendingSegments];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingSegments:se,dropReturningResults:!1});case G.JK:if(H.keyword.indexOf(L.H)===0||V.dropReturningResults===!0)return V;const de={};de[H.jsonKey]=H.results;let we=[...V.pendingSegments];return we.indexOf(H.jsonKey)!==-1&&we.splice(we.indexOf(H.jsonKey),1),Object.assign({},V,de,{pendingSegments:we});case G.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return V}},sortby:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ee.O0?Object.assign({},V,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):V},fieldstats:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case Z.IJ:return Object.assign({},V,{fieldStats:H.fieldStats,callBy:H.callBy});case Z.nb:return Object.assign({},V,{fieldStats:{}});default:return V}},recommendation:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_e,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case ye.iM:case ye.OU:return Object.assign({},V,{container:H.container,recommendType:H.recommendType,results:H.results});case ye.KE:return Object.assign({},_e);default:return V}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function Ue(V){return function(H){var se=H.dispatch,de=H.getState;return function(we){return function(Se){return typeof Se=="function"?Se(se,de,V):we(Se)}}}}var Ie=Ue();Ie.withExtraArgument=Ue;var Ke=Ie;function Ne(V){const H={configuration:V};let se=d;return V.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(se=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),g(Re,H,se(function(){for(var de=arguments.length,we=new Array(de),Se=0;Se<de;Se++)we[Se]=arguments[Se];return function(Ae){return function(){var me=Ae.apply(void 0,arguments),ve=function(){throw new Error(p(15))},be={getState:me.getState,dispatch:function(){return ve.apply(void 0,arguments)}},Me=we.map(function(X){return X(be)});return ve=d.apply(void 0,Me)(me.dispatch),e(e({},me),{},{dispatch:ve})}}}(Ke)))}function We(V,H,se){let de={};function we(){const Ae=V.getState()[H];JSON.stringify(Ae)!==JSON.stringify(de[H])&&(de[H]=Ae,se(de[H]))}let Se=V.subscribe(we);return we(),Se}},6351:function(b,c,n){n.d(c,{$P:function(){return _},ME:function(){return h},b8:function(){return e},d_:function(){return u},mh:function(){return d}});const v=2500;let o=null;function e(T){o=T}function p(T){o&&o(T)}let C=!0;function u(T){C=T}let a=null,s=null,g=!1;function d(T,A,j,U){if(C===!1)return;const L="search";a&&clearTimeout(a),a=setTimeout(()=>{A!==s&&(T.sendStatsEvent(L,A,{numberOfResults:j}),p({action:L,keyword:A,numberOfResults:j,processingTimeMs:U}),s=A,g=!0)},v)}let m=null,l=null;function h(T,A){C===!1||!A||A.length<1||(m&&clearTimeout(m),m=setTimeout(()=>{T!==l&&(A.forEach(j=>j.client.sendStatsEvent("search",T,{numberOfResults:j.numberOfResults})),l=T,g=!0)},v))}function _(T,A,j){if(A&&A.length>0)for(let U=0;U<A.length;U++)A[U].addEventListener("keyup",L=>{L.keyCode===13&&I(L,T,j)}),A[U].addEventListener("pointerdown",L=>{L.button&&L.buttons&&L.button===L.buttons||I(L,T,j)})}function S(T){const A=T.getAttribute("data-analytics-click");return T.nodeName==="BODY"||T.nodeName==="body"?null:A||S(T.parentNode)}function I(T,A,j){if(C===!1)return;const U=S(T.target),L=function(N,z,G){if(z&&z.hits){const oe=((z.page||1)-1)*N;for(let ee=0;ee<z.hits.length;ee++)if(z.hits[ee].id===G)return oe+(ee+1)}return 0}(A.getSettings().paging.pageSize,j,U),B=A.getSettings().keyword;if(A.sendStatsEvent("click",B,{documentId:U,position:L}),p({action:"click",keyword:B,documentId:U,position:L}),g===!1){const N=j?j.total_hits:0,z=j?j.processing_time_ms:0;A.sendStatsEvent("search",B,{numberOfResults:N}),p({action:"search",keyword:B,numberOfResults:N,processingTimeMs:z})}}},4379:function(b,c,n){function v(e,p,C,u){const a=e.querySelectorAll("["+p+"]");for(let s=0;s<a.length;s++)a[s].addEventListener(C,g=>{u(g.target.getAttribute(p))})}function o(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return o},h:function(){return v}})},3923:function(b,c,n){n.d(c,{GK:function(){return u},bp:function(){return d},g3:function(){return g},ud:function(){return s}});var v=n(2334),o=n.n(v),e=n(261),p=n.n(e),C=n(7435);function u(m,l){const h=m.categories||[];let _="",S=1;l=(0,C.y)(l);do _=h.length>S?h[S]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),S++;while(_.length<3&&h.length>S);return l&&l[_]?l[_]:_.replace(/[-_]+/g," ")}let a=null;function s(){g("equals",(m,l,h)=>m+""==l+""?h.fn(this):h.inverse(this)),g("not",(m,l,h)=>m+""!=l+""?h.fn(this):h.inverse(this)),g("gt",(m,l,h)=>m>l?h.fn(this):h.inverse(this)),g("lt",(m,l,h)=>m<l?h.fn(this):h.inverse(this)),g("or",(m,l,h)=>m||l?h.fn(this):h.inverse(this)),g("formatPrice",(m,l,h)=>{if(m===void 0||typeof m!="number"||!l||!h)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(l,{style:"currency",currency:h,minimumFractionDigits:2})),a)return a.format(m)}catch{}return m/100+" "+h})}function g(m,l){o().registerHelper(m,l),p().registerHelper(m,l)}function d(m,l){o().registerPartial(m,l),p().registerPartial(m,l)}},4903:function(b,c,n){n.d(c,{Dh:function(){return g},I5:function(){return m},IR:function(){return S},lG:function(){return I},sh:function(){return u}});var v=n(9770),o=n(6993),e=n(5756),p=n(549),C=n(6353);const u={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let s=null;function g(T,A,j,U){const L=U.getState();L&&L.configuration&&L.configuration.updateBrowserHistory===!1||(j?(s&&clearTimeout(s),s=setTimeout(()=>{d(T,A)},a)):d(T,A))}function d(T,A){if(T===u.SEARCH&&A&&A.indexOf(v.H)===0)return;let j=window.location.href;j.indexOf("#")!==-1&&(j=j.substring(0,j.indexOf("#")));const U=window.location.hash||"",L=h(j);T===u.PAGE&&A==1||T===u.SEARCH&&A==v.Z?delete L[T]:T&&A!==null&&A!==""?L[T]=A:T&&delete L[T];let B=j;j.indexOf("?")!==-1&&(B=j.substring(0,j.indexOf("?"))),JSON.stringify(L)!==JSON.stringify({})&&(B=B+"?"+function(N){let z="";for(let G in N)if(N.hasOwnProperty(G)){z!==""&&(z+="&");let oe="";if(G==="addsearchUnrelatedParams"){z+=N[G].split("&").join("&");continue}N[G]!==null&&N[G]!==void 0&&G!=="addsearchUnrelatedParams"&&(oe="="+encodeURIComponent(N[G])),z=z+G+oe}return z}(L)),B+=U,history.state===null?history.replaceState(L,"",B):JSON.stringify(history.state)!==JSON.stringify(L)&&history.pushState(L,"",B)}function m(T,A,j,U,L,B){const N=h(window.location.href);l(T,A,N,j,U,!1,B),window.onpopstate=z=>{const G=h(window.location.href);l(T,A,G,j,U,L,B)}}function l(T,A,j,U,L,B,N){let z=!1;if(j[u.FILTERS]){const G=_(j[u.FILTERS]);A.dispatch((0,p.eu)(G)),z=!0}if(j[u.FACETS]){const G=_(j[u.FACETS]);A.dispatch((0,p.Xh)(G)),z=!0}if(j[u.RANGE_FACETS]){const G=_(j[u.RANGE_FACETS]);A.dispatch((0,p.ks)(G)),z=!0}if(z){const G=U(A.getState().filters,N);T.setFilterObject(G)}else A.dispatch((0,p.eu)(null)),A.dispatch((0,p.Xh)(null)),T.setFilterObject(N||null);if(j[u.SORTBY]){const G=_(j[u.SORTBY]);A.dispatch((0,C.Ul)(T,G.field,G.order))}if(j[u.PAGE])A.dispatch((0,e.I)(T,parseInt(j[u.PAGE],10),null,A));else{const G=T.getSettings().paging;A.dispatch((0,e.I)(T,G.page,null,A))}if(j[u.SEARCH]){const G=decodeURIComponent(j[u.SEARCH]);A.dispatch((0,o.Ai)(G,!0,null,!0)),L(G)}else B===!0&&(A.dispatch((0,o.Ai)(v.Z,!0,null,!0)),L(v.Z))}function h(T){if(T.indexOf("?")===-1)return{};let A=T.substring(T.indexOf("?")+1);if(A==="")return{};A.indexOf("#")!==-1&&(A=A.substring(0,A.indexOf("#")));let j={};const U=A.split("&"),L=U.filter(N=>N.indexOf(u.SEARCH)===-1&&N.indexOf(u.PAGE)===-1&&N.indexOf(u.SORTBY)===-1&&N.indexOf(u.FILTERS)===-1&&N.indexOf(u.FACETS)===-1&&N.indexOf(u.RANGE_FACETS)===-1),B=U.filter(N=>!L.includes(N));return L.length&&(j.addsearchUnrelatedParams=L.join("&")),B.forEach(N=>{const z=N.split("=");if(z[0]&&z[0].length>0){let G=null;z.length>1&&(G=z[1]||"",G=G.replace(/\+/g,"%20"),G=decodeURIComponent(G)),j[z[0]]=G}}),j}function _(T){try{return JSON.parse(T)}catch{}return null}function S(T){return Object.keys(T).length>0?(delete T.v,JSON.stringify(T)):null}function I(T,A){T.indexOf("?")===-1?window.location.href=T+"?"+u.SEARCH+"="+encodeURIComponent(A):window.location.href=T+"&"+u.SEARCH+"="+encodeURIComponent(A)}},7435:function(b,c,n){function v(e){return!e||Object.keys(e).length===0}function o(e){if(e)return Object.keys(e).reduce((p,C)=>(p[C.toLowerCase()]=e[C],p),{})}n.d(c,{I:function(){return v},y:function(){return o}})},9491:function(b){function c(n,v){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(n),e=1;e<arguments.length;e++){var p=arguments[e];if(p!=null)for(var C=Object.keys(Object(p)),u=0,a=C.length;u<a;u++){var s=C[u],g=Object.getOwnPropertyDescriptor(p,s);g!==void 0&&g.enumerable&&(o[s]=p[s])}}return o}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 v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <div class="item">
137
137
  <span>`+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):s)+`</span>
138
138
  <button data-type="`+l(typeof(s=(s=h(p,"type")||(e!=null?h(e,"type"):e))!=null?s:d)===m?s.call(g,{name:"type",hash:{},data:u,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):s)+'" data-name="'+l(typeof(s=(s=h(p,"name")||(e!=null?h(e,"name"):e))!=null?s:d)===m?s.call(g,{name:"name",hash:{},data:u,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):s)+'" data-value="'+l(typeof(s=(s=h(p,"value")||(e!=null?h(e,"value"):e))!=null?s:d)===m?s.call(g,{name:"value",hash:{},data:u,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):s)+`"
139
139
  `+((a=h(p,"if").call(g,e!=null?h(e,"rangeMin"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:6,column:14},end:{line:6,column:66}}}))!=null?a:"")+`
@@ -432,9 +432,9 @@ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-contr
432
432
  `),N=0,z=B.length;N<z&&(B[N]||N+1!==z);N++)B[N]=j.indent+B[N];L=B.join(`
433
433
  `)}return L}throw new p.default("The partial "+j.name+" could not be compiled when running in runtime-only mode")},fn:function(T){var A=l[T];return A.decorator=l[T+"_d"],A},programs:[],program:function(T,A,j,U,L){var B=this.programs[T],N=this.fn(T);return A||L||U||j?B=g(this,T,N,A,j,U,L):B||(B=this.programs[T]=g(this,T,N)),B},data:function(T,A){for(;T&&A--;)T=T._parent;return T},mergeIfNeeded:function(T,A){var j=T||A;return T&&A&&T!==A&&(j=o.extend({},A,T)),j},nullContext:Object.seal({}),noop:h.VM.noop,compilerInfo:l.compiler};function I(T){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],j=A.data;I._setup(A),!A.partial&&l.useData&&(j=function(N,z){return z&&"root"in z||((z=z?C.createFrame(z):{}).root=N),z}(T,j));var U=void 0,L=l.useBlockParams?[]:void 0;function B(N){return""+l.main(S,N,S.helpers,S.partials,j,L,U)}return l.useDepths&&(U=A.depths?T!=A.depths[0]?[T].concat(A.depths):A.depths:[T]),(B=m(l.main,B,S,A.depths||[],j,L))(T,A)}return I.isTop=!0,I._setup=function(T){if(T.partial)S.protoAccessControl=T.protoAccessControl,S.helpers=T.helpers,S.partials=T.partials,S.decorators=T.decorators,S.hooks=T.hooks;else{var A=o.extend({},h.helpers,T.helpers);(function(U,L){Object.keys(U).forEach(function(B){var N=U[B];U[B]=function(z,G){var oe=G.lookupProperty;return a.wrapHelper(z,function(ee){return o.extend({lookupProperty:oe},ee)})}(N,L)})})(A,S),S.helpers=A,l.usePartial&&(S.partials=S.mergeIfNeeded(T.partials,h.partials)),(l.usePartial||l.useDecorators)&&(S.decorators=o.extend({},h.decorators,T.decorators)),S.hooks={},S.protoAccessControl=s.createProtoAccessControl(T);var j=T.allowCallsToHelperMissing||_;u.moveHelperToHooks(S,"helperMissing",j),u.moveHelperToHooks(S,"blockHelperMissing",j)}},I._child=function(T,A,j,U){if(l.useBlockParams&&!j)throw new p.default("must pass block params");if(l.useDepths&&!U)throw new p.default("must pass parent depths");return g(S,T,l[T],A,0,j,U)},I},c.wrapProgram=g,c.resolvePartial=function(l,h,_){return l?l.call||_.name||(_.name=l,l=_.partials[l]):l=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],l},c.invokePartial=function(l,h,_){var S=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var I=void 0;if(_.fn&&_.fn!==d&&function(){_.data=C.createFrame(_.data);var T=_.fn;I=_.data["partial-block"]=function(A){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return j.data=C.createFrame(j.data),j.data["partial-block"]=S,T(A,j)},T.partials&&(_.partials=o.extend({},_.partials,T.partials))}(),l===void 0&&I&&(l=I),l===void 0)throw new p.default("The partial "+_.name+" could not be found");if(l instanceof Function)return l(h,_)},c.noop=d;var v,o=function(l){if(l&&l.__esModule)return l;var h={};if(l!=null)for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(h[_]=l[_]);return h.default=l,h}(n(2849)),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v},C=n(2871),u=n(2277),a=n(2614),s=n(3865);function g(l,h,_,S,I,T,A){function j(U){var L=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],B=A;return!A||U==A[0]||U===l.nullContext&&A[0]===null||(B=[U].concat(A)),_(l,U,l.helpers,l.partials,L.data||S,T&&[L.blockParams].concat(T),B)}return(j=m(_,j,l,A,S,T)).program=h,j.depth=A?A.length:0,j.blockParams=I||0,j}function d(){return""}function m(l,h,_,S,I,T){if(l.decorator){var A={};h=l.decorator(h,A,_,S&&S[0],I,T,S),o.extend(h,A)}return h}},9613:function(b,c){function n(v){this.string=v}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=p,c.indexOf=function(s,g){for(var d=0,m=s.length;d<m;d++)if(s[d]===g)return d;return-1},c.escapeExpression=function(s){if(typeof s!="string"){if(s&&s.toHTML)return s.toHTML();if(s==null)return"";if(!s)return s+"";s=""+s}return o.test(s)?s.replace(v,e):s},c.isEmpty=function(s){return!s&&s!==0||!(!a(s)||s.length!==0)},c.createFrame=function(s){var g=p({},s);return g._parent=s,g},c.blockParams=function(s,g){return s.path=g,s},c.appendContextPath=function(s,g){return(s?s+".":"")+g};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},v=/[&<>"'`=]/g,o=/[&<>"'`=]/;function e(s){return n[s]}function p(s){for(var g=1;g<arguments.length;g++)for(var d in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],d)&&(s[d]=arguments[g][d]);return s}var C=Object.prototype.toString;c.toString=C;var u=function(s){return typeof s=="function"};u(/x/)&&(c.isFunction=u=function(s){return typeof s=="function"&&C.call(s)==="[object Function]"}),c.isFunction=u;var a=Array.isArray||function(s){return!(!s||typeof s!="object")&&C.call(s)==="[object Array]"};c.isArray=a},2334:function(b){b.exports=function(c){function n(o){if(v[o])return v[o].exports;var e=v[o]={exports:{},id:o,loaded:!1};return c[o].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var v={};return n.m=c,n.c=v,n.p="",n(0)}([function(c,n,v){function o(){var h=m();return h.compile=function(_,S){return a.compile(_,S,h)},h.precompile=function(_,S){return a.precompile(_,S,h)},h.AST=C.default,h.Compiler=a.Compiler,h.JavaScriptCompiler=s.default,h.Parser=u.parser,h.parse=u.parse,h.parseWithoutProcessing=u.parseWithoutProcessing,h}var e=v(1).default;n.__esModule=!0;var p=e(v(2)),C=e(v(45)),u=v(46),a=v(51),s=e(v(52)),g=e(v(49)),d=e(v(44)),m=p.default.create,l=o();l.create=o,d.default(l),l.Visitor=g.default,l.default=l,n.default=l,c.exports=n.default},function(c,n){n.default=function(v){return v&&v.__esModule?v:{default:v}},n.__esModule=!0},function(c,n,v){function o(){var l=new C.HandlebarsEnvironment;return s.extend(l,C),l.SafeString=u.default,l.Exception=a.default,l.Utils=s,l.escapeExpression=s.escapeExpression,l.VM=g,l.template=function(h){return g.template(h,l)},l}var e=v(3).default,p=v(1).default;n.__esModule=!0;var C=e(v(4)),u=p(v(37)),a=p(v(6)),s=e(v(5)),g=e(v(38)),d=p(v(44)),m=o();m.create=o,d.default(m),m.default=m,n.default=m,c.exports=n.default},function(c,n){n.default=function(v){if(v&&v.__esModule)return v;var o={};if(v!=null)for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(o[e]=v[e]);return o.default=v,o},n.__esModule=!0},function(c,n,v){function o(I,T,A){this.helpers=I||{},this.partials=T||{},this.decorators=A||{},u.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=v(1).default;n.__esModule=!0,n.HandlebarsEnvironment=o;var p=v(5),C=e(v(6)),u=v(10),a=v(30),s=e(v(32)),g=v(33),d="4.7.7";n.VERSION=d;var m=8;n.COMPILER_REVISION=m;var l=7;n.LAST_COMPATIBLE_COMPILER_REVISION=l;var h={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=h;var _="[object Object]";o.prototype={constructor:o,logger:s.default,log:s.default.log,registerHelper:function(I,T){if(p.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple helpers");p.extend(this.helpers,I)}else this.helpers[I]=T},unregisterHelper:function(I){delete this.helpers[I]},registerPartial:function(I,T){if(p.toString.call(I)===_)p.extend(this.partials,I);else{if(T===void 0)throw new C.default('Attempting to register a partial called "'+I+'" as undefined');this.partials[I]=T}},unregisterPartial:function(I){delete this.partials[I]},registerDecorator:function(I,T){if(p.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple decorators");p.extend(this.decorators,I)}else this.decorators[I]=T},unregisterDecorator:function(I){delete this.decorators[I]},resetLoggedPropertyAccesses:function(){g.resetLoggedProperties()}};var S=s.default.log;n.log=S,n.createFrame=p.createFrame,n.logger=s.default},function(c,n){function v(S){return g[S]}function o(S){for(var I=1;I<arguments.length;I++)for(var T in arguments[I])Object.prototype.hasOwnProperty.call(arguments[I],T)&&(S[T]=arguments[I][T]);return S}function e(S,I){for(var T=0,A=S.length;T<A;T++)if(S[T]===I)return T;return-1}function p(S){if(typeof S!="string"){if(S&&S.toHTML)return S.toHTML();if(S==null)return"";if(!S)return S+"";S=""+S}return m.test(S)?S.replace(d,v):S}function C(S){return!S&&S!==0||!(!_(S)||S.length!==0)}function u(S){var I=o({},S);return I._parent=S,I}function a(S,I){return S.path=I,S}function s(S,I){return(S?S+".":"")+I}n.__esModule=!0,n.extend=o,n.indexOf=e,n.escapeExpression=p,n.isEmpty=C,n.createFrame=u,n.blockParams=a,n.appendContextPath=s;var g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},d=/[&<>"'`=]/g,m=/[&<>"'`=]/,l=Object.prototype.toString;n.toString=l;var h=function(S){return typeof S=="function"};h(/x/)&&(n.isFunction=h=function(S){return typeof S=="function"&&l.call(S)==="[object Function]"}),n.isFunction=h;var _=Array.isArray||function(S){return!(!S||typeof S!="object")&&l.call(S)==="[object Array]"};n.isArray=_},function(c,n,v){function o(C,u){var a=u&&u.loc,s=void 0,g=void 0,d=void 0,m=void 0;a&&(s=a.start.line,g=a.end.line,d=a.start.column,m=a.end.column,C+=" - "+s+":"+d);for(var l=Error.prototype.constructor.call(this,C),h=0;h<p.length;h++)this[p[h]]=l[p[h]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=s,this.endLineNumber=g,e?(Object.defineProperty(this,"column",{value:d,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=d,this.endColumn=m))}catch{}}var e=v(7).default;n.__esModule=!0;var p=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];o.prototype=new Error,n.default=o,c.exports=n.default},function(c,n,v){c.exports={default:v(8),__esModule:!0}},function(c,n,v){var o=v(9);c.exports=function(e,p,C){return o.setDesc(e,p,C)}},function(c,n){var v=Object;c.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(c,n,v){function o(l){C.default(l),u.default(l),a.default(l),s.default(l),g.default(l),d.default(l),m.default(l)}function e(l,h,_){l.helpers[h]&&(l.hooks[h]=l.helpers[h],_||delete l.helpers[h])}var p=v(1).default;n.__esModule=!0,n.registerDefaultHelpers=o,n.moveHelperToHooks=e;var C=p(v(11)),u=p(v(12)),a=p(v(25)),s=p(v(26)),g=p(v(27)),d=p(v(28)),m=p(v(29))},function(c,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(p,C){var u=C.inverse,a=C.fn;if(p===!0)return a(this);if(p===!1||p==null)return u(this);if(o.isArray(p))return p.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(p,C)):u(this);if(C.data&&C.ids){var s=o.createFrame(C.data);s.contextPath=o.appendContextPath(C.data.contextPath,C.name),C={data:s}}return a(p,C)})},c.exports=n.default},function(c,n,v){(function(o){var e=v(13).default,p=v(1).default;n.__esModule=!0;var C=v(5),u=p(v(6));n.default=function(a){a.registerHelper("each",function(s,g){function d(L,B,N){S&&(S.key=L,S.index=B,S.first=B===0,S.last=!!N,I&&(S.contextPath=I+L)),_+=m(s[L],{data:S,blockParams:C.blockParams([s[L],L],[I+L,null])})}if(!g)throw new u.default("Must pass iterator to #each");var m=g.fn,l=g.inverse,h=0,_="",S=void 0,I=void 0;if(g.data&&g.ids&&(I=C.appendContextPath(g.data.contextPath,g.ids[0])+"."),C.isFunction(s)&&(s=s.call(this)),g.data&&(S=C.createFrame(g.data)),s&&typeof s=="object")if(C.isArray(s))for(var T=s.length;h<T;h++)h in s&&d(h,h,h===s.length-1);else if(o.Symbol&&s[o.Symbol.iterator]){for(var A=[],j=s[o.Symbol.iterator](),U=j.next();!U.done;U=j.next())A.push(U.value);for(T=(s=A).length;h<T;h++)d(h,h,h===s.length-1)}else(function(){var L=void 0;e(s).forEach(function(B){L!==void 0&&d(L,h-1),L=B,h++}),L!==void 0&&d(L,h-1,!0)})();return h===0&&(_=l(this)),_})},c.exports=n.default}).call(n,function(){return this}())},function(c,n,v){c.exports={default:v(14),__esModule:!0}},function(c,n,v){v(15),c.exports=v(21).Object.keys},function(c,n,v){var o=v(16);v(18)("keys",function(e){return function(p){return e(o(p))}})},function(c,n,v){var o=v(17);c.exports=function(e){return Object(o(e))}},function(c,n){c.exports=function(v){if(v==null)throw TypeError("Can't call method on "+v);return v}},function(c,n,v){var o=v(19),e=v(21),p=v(24);c.exports=function(C,u){var a=(e.Object||{})[C]||Object[C],s={};s[C]=u(a),o(o.S+o.F*p(function(){a(1)}),"Object",s)}},function(c,n,v){var o=v(20),e=v(21),p=v(22),C="prototype",u=function(a,s,g){var d,m,l,h=a&u.F,_=a&u.G,S=a&u.S,I=a&u.P,T=a&u.B,A=a&u.W,j=_?e:e[s]||(e[s]={}),U=_?o:S?o[s]:(o[s]||{})[C];for(d in _&&(g=s),g)(m=!h&&U&&d in U)&&d in j||(l=m?U[d]:g[d],j[d]=_&&typeof U[d]!="function"?g[d]:T&&m?p(l,o):A&&U[d]==l?function(L){var B=function(N){return this instanceof L?new L(N):L(N)};return B[C]=L[C],B}(l):I&&typeof l=="function"?p(Function.call,l):l,I&&((j[C]||(j[C]={}))[d]=l))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,c.exports=u},function(c,n){var v=c.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=v)},function(c,n){var v=c.exports={version:"1.2.6"};typeof __e=="number"&&(__e=v)},function(c,n,v){var o=v(23);c.exports=function(e,p,C){if(o(e),p===void 0)return e;switch(C){case 1:return function(u){return e.call(p,u)};case 2:return function(u,a){return e.call(p,u,a)};case 3:return function(u,a,s){return e.call(p,u,a,s)}}return function(){return e.apply(p,arguments)}}},function(c,n){c.exports=function(v){if(typeof v!="function")throw TypeError(v+" is not a function!");return v}},function(c,n){c.exports=function(v){try{return!!v()}catch{return!0}}},function(c,n,v){var o=v(1).default;n.__esModule=!0;var e=o(v(6));n.default=function(p){p.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,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("if",function(u,a){if(arguments.length!=2)throw new p.default("#if requires exactly one argument");return e.isFunction(u)&&(u=u.call(this)),!a.hash.includeZero&&!u||e.isEmpty(u)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(u,a){if(arguments.length!=2)throw new p.default("#unless requires exactly one argument");return C.helpers.if.call(this,u,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(v){v.registerHelper("log",function(){for(var o=[void 0],e=arguments[arguments.length-1],p=0;p<arguments.length-1;p++)o.push(arguments[p]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),o[0]=C,v.log.apply(v,o)})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(v){v.registerHelper("lookup",function(o,e,p){return o&&p.lookupProperty(o,e)})},c.exports=n.default},function(c,n,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("with",function(u,a){if(arguments.length!=2)throw new p.default("#with requires exactly one argument");e.isFunction(u)&&(u=u.call(this));var s=a.fn;if(e.isEmpty(u))return a.inverse(this);var g=a.data;return a.data&&a.ids&&((g=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),s(u,{data:g,blockParams:e.blockParams([u],[g&&g.contextPath])})})},c.exports=n.default},function(c,n,v){function o(C){p.default(C)}var e=v(1).default;n.__esModule=!0,n.registerDefaultDecorators=o;var p=e(v(31))},function(c,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerDecorator("inline",function(p,C,u,a){var s=p;return C.partials||(C.partials={},s=function(g,d){var m=u.partials;u.partials=o.extend({},m,C.partials);var l=p(g,d);return u.partials=m,l}),C.partials[a.args[0]]=a.fn,s})},c.exports=n.default},function(c,n,v){n.__esModule=!0;var o=v(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(p){if(typeof p=="string"){var C=o.indexOf(e.methodMap,p.toLowerCase());p=C>=0?C:parseInt(p,10)}return p},log:function(p){if(p=e.lookupLevel(p),typeof console<"u"&&e.lookupLevel(e.level)<=p){var C=e.methodMap[p];console[C]||(C="log");for(var u=arguments.length,a=Array(u>1?u-1:0),s=1;s<u;s++)a[s-1]=arguments[s];console[C].apply(console,a)}}};n.default=e,c.exports=n.default},function(c,n,v){function o(h){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var S=a(null);return S.__proto__=!1,{properties:{whitelist:d.createNewLookupObject(S,h.allowedProtoProperties),defaultValue:h.allowProtoPropertiesByDefault},methods:{whitelist:d.createNewLookupObject(_,h.allowedProtoMethods),defaultValue:h.allowProtoMethodsByDefault}}}function e(h,_,S){return p(typeof h=="function"?_.methods:_.properties,S)}function p(h,_){return h.whitelist[_]!==void 0?h.whitelist[_]===!0:h.defaultValue!==void 0?h.defaultValue:(C(_),!1)}function C(h){l[h]!==!0&&(l[h]=!0,m.log("error",'Handlebars: Access has been denied to resolve the property "'+h+`" because it is not an "own property" of its parent.
434
434
  You can add a runtime option to disable the check or this warning:
435
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function u(){s(l).forEach(function(h){delete l[h]})}var a=v(34).default,s=v(13).default,g=v(3).default;n.__esModule=!0,n.createProtoAccessControl=o,n.resultIsAllowed=e,n.resetLoggedProperties=u;var d=v(36),m=g(v(32)),l=a(null)},function(c,n,v){c.exports={default:v(35),__esModule:!0}},function(c,n,v){var o=v(9);c.exports=function(e,p){return o.create(e,p)}},function(c,n,v){function o(){for(var C=arguments.length,u=Array(C),a=0;a<C;a++)u[a]=arguments[a];return p.extend.apply(void 0,[e(null)].concat(u))}var e=v(34).default;n.__esModule=!0,n.createNewLookupObject=o;var p=v(5)},function(c,n){function v(o){this.string=o}n.__esModule=!0,v.prototype.toString=v.prototype.toHTML=function(){return""+this.string},n.default=v,c.exports=n.default},function(c,n,v){function o(B){var N=B&&B[0]||1,z=A.COMPILER_REVISION;if(!(N>=A.LAST_COMPATIBLE_COMPILER_REVISION&&N<=A.COMPILER_REVISION)){if(N<A.LAST_COMPATIBLE_COMPILER_REVISION){var G=A.REVISION_CHANGES[z],oe=A.REVISION_CHANGES[N];throw new T.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 ("+oe+").")}throw new T.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,N){function z(Y,W,Z){Z.hash&&(W=I.extend({},W,Z.hash),Z.ids&&(Z.ids[0]=!0)),Y=N.VM.resolvePartial.call(this,Y,W,Z);var ce=I.extend({},Z,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),ge=N.VM.invokePartial.call(this,Y,W,ce);if(ge==null&&N.compile&&(Z.partials[Z.name]=N.compile(Y,B.compilerOptions,N),ge=Z.partials[Z.name](W,ce)),ge!=null){if(Z.indent){for(var _e=ge.split(`
436
- `),Ce=0,Re=_e.length;Ce<Re&&(_e[Ce]||Ce+1!==Re);Ce++)_e[Ce]=Z.indent+_e[Ce];ge=_e.join(`
437
- `)}return ge}throw new T.default("The partial "+Z.name+" could not be compiled when running in runtime-only mode")}function G(Y){function W(Ce){return""+B.main(ee,Ce,ee.helpers,ee.partials,ce,_e,ge)}var Z=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ce=Z.data;G._setup(Z),!Z.partial&&B.useData&&(ce=s(Y,ce));var ge=void 0,_e=B.useBlockParams?[]:void 0;return B.useDepths&&(ge=Z.depths?Y!=Z.depths[0]?[Y].concat(Z.depths):Z.depths:[Y]),(W=g(B.main,W,ee,Z.depths||[],ce,_e))(Y,Z)}if(!N)throw new T.default("No environment passed to template");if(!B||!B.main)throw new T.default("Unknown template object: "+typeof B);B.main.decorator=B.main_d,N.VM.checkRevision(B.compiler);var oe=B.compiler&&B.compiler[0]===7,ee={strict:function(Y,W,Z){if(!Y||!(W in Y))throw new T.default('"'+W+'" not defined in '+Y,{loc:Z});return ee.lookupProperty(Y,W)},lookupProperty:function(Y,W){var Z=Y[W];return Z==null||Object.prototype.hasOwnProperty.call(Y,W)||L.resultIsAllowed(Z,ee.protoAccessControl,W)?Z:void 0},lookup:function(Y,W){for(var Z=Y.length,ce=0;ce<Z;ce++)if((Y[ce]&&ee.lookupProperty(Y[ce],W))!=null)return Y[ce][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:I.escapeExpression,invokePartial:z,fn:function(Y){var W=B[Y];return W.decorator=B[Y+"_d"],W},programs:[],program:function(Y,W,Z,ce,ge){var _e=this.programs[Y],Ce=this.fn(Y);return W||ge||ce||Z?_e=p(this,Y,Ce,W,Z,ce,ge):_e||(_e=this.programs[Y]=p(this,Y,Ce)),_e},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var Z=Y||W;return Y&&W&&Y!==W&&(Z=I.extend({},W,Y)),Z},nullContext:l({}),noop:N.VM.noop,compilerInfo:B.compiler};return G.isTop=!0,G._setup=function(Y){if(Y.partial)ee.protoAccessControl=Y.protoAccessControl,ee.helpers=Y.helpers,ee.partials=Y.partials,ee.decorators=Y.decorators,ee.hooks=Y.hooks;else{var W=I.extend({},N.helpers,Y.helpers);d(W,ee),ee.helpers=W,B.usePartial&&(ee.partials=ee.mergeIfNeeded(Y.partials,N.partials)),(B.usePartial||B.useDecorators)&&(ee.decorators=I.extend({},N.decorators,Y.decorators)),ee.hooks={},ee.protoAccessControl=L.createProtoAccessControl(Y);var Z=Y.allowCallsToHelperMissing||oe;j.moveHelperToHooks(ee,"helperMissing",Z),j.moveHelperToHooks(ee,"blockHelperMissing",Z)}},G._child=function(Y,W,Z,ce){if(B.useBlockParams&&!Z)throw new T.default("must pass block params");if(B.useDepths&&!ce)throw new T.default("must pass parent depths");return p(ee,Y,B[Y],W,0,Z,ce)},G}function p(B,N,z,G,oe,ee,Y){function W(Z){var ce=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ge=Y;return!Y||Z==Y[0]||Z===B.nullContext&&Y[0]===null||(ge=[Z].concat(Y)),z(B,Z,B.helpers,B.partials,ce.data||G,ee&&[ce.blockParams].concat(ee),ge)}return(W=g(z,W,B,Y,G,ee)).program=N,W.depth=Y?Y.length:0,W.blockParams=oe||0,W}function C(B,N,z){return B?B.call||z.name||(z.name=B,B=z.partials[B]):B=z.name==="@partial-block"?z.data["partial-block"]:z.partials[z.name],B}function u(B,N,z){var G=z.data&&z.data["partial-block"];z.partial=!0,z.ids&&(z.data.contextPath=z.ids[0]||z.data.contextPath);var oe=void 0;if(z.fn&&z.fn!==a&&function(){z.data=A.createFrame(z.data);var ee=z.fn;oe=z.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=A.createFrame(W.data),W.data["partial-block"]=G,ee(Y,W)},ee.partials&&(z.partials=I.extend({},z.partials,ee.partials))}(),B===void 0&&oe&&(B=oe),B===void 0)throw new T.default("The partial "+z.name+" could not be found");if(B instanceof Function)return B(N,z)}function a(){return""}function s(B,N){return N&&"root"in N||((N=N?A.createFrame(N):{}).root=B),N}function g(B,N,z,G,oe,ee){if(B.decorator){var Y={};N=B.decorator(N,Y,z,G&&G[0],oe,ee,G),I.extend(N,Y)}return N}function d(B,N){h(B).forEach(function(z){var G=B[z];B[z]=m(G,N)})}function m(B,N){var z=N.lookupProperty;return U.wrapHelper(B,function(G){return I.extend({lookupProperty:z},G)})}var l=v(39).default,h=v(13).default,_=v(3).default,S=v(1).default;n.__esModule=!0,n.checkRevision=o,n.template=e,n.wrapProgram=p,n.resolvePartial=C,n.invokePartial=u,n.noop=a;var I=_(v(5)),T=S(v(6)),A=v(4),j=v(10),U=v(43),L=v(33)},function(c,n,v){c.exports={default:v(40),__esModule:!0}},function(c,n,v){v(41),c.exports=v(21).Object.seal},function(c,n,v){var o=v(42);v(18)("seal",function(e){return function(p){return e&&o(p)?e(p):p}})},function(c,n){c.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},function(c,n){function v(o,e){if(typeof o!="function")return o;var p=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),o.apply(this,arguments)};return p}n.__esModule=!0,n.wrapHelper=v},function(c,n){(function(v){n.__esModule=!0,n.default=function(o){var e=v!==void 0?v:window,p=e.Handlebars;o.noConflict=function(){return e.Handlebars===o&&(e.Handlebars=p),o}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var v={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!v.helpers.scopedId(o)&&!o.depth}}};n.default=v,c.exports=n.default},function(c,n,v){function o(m,l){return m.type==="Program"?m:(u.default.yy=d,d.locInfo=function(h){return new d.SourceLocation(l&&l.srcName,h)},u.default.parse(m))}function e(m,l){var h=o(m,l);return new a.default(l).accept(h)}var p=v(1).default,C=v(3).default;n.__esModule=!0,n.parseWithoutProcessing=o,n.parse=e;var u=p(v(47)),a=p(v(48)),s=C(v(50)),g=v(5);n.parser=u.default;var d={};g.extend(d,s)},function(c,n){n.__esModule=!0;var v=function(){function o(){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,u,a,s,g,d,m){var l=d.length-1;switch(g){case 1:return d[l-1];case 2:this.$=s.prepareProgram(d[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.$=d[l];break;case 9:this.$={type:"CommentStatement",value:s.stripComment(d[l]),strip:s.stripFlags(d[l],d[l]),loc:s.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[l],value:d[l],loc:s.locInfo(this._$)};break;case 11:this.$=s.prepareRawBlock(d[l-2],d[l-1],d[l],this._$);break;case 12:this.$={path:d[l-3],params:d[l-2],hash:d[l-1]};break;case 13:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!1,this._$);break;case 14:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!0,this._$);break;case 15:this.$={open:d[l-5],path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 16:case 17:this.$={path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 18:this.$={strip:s.stripFlags(d[l-1],d[l-1]),program:d[l]};break;case 19:var h=s.prepareBlock(d[l-2],d[l-1],d[l],d[l],!1,this._$),_=s.prepareProgram([h],d[l-1].loc);_.chained=!0,this.$={strip:d[l-2].strip,program:_,chain:!0};break;case 21:this.$={path:d[l-1],strip:s.stripFlags(d[l-2],d[l])};break;case 22:case 23:this.$=s.prepareMustache(d[l-3],d[l-2],d[l-1],d[l-4],s.stripFlags(d[l-4],d[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[l-3],params:d[l-2],hash:d[l-1],indent:"",strip:s.stripFlags(d[l-4],d[l]),loc:s.locInfo(this._$)};break;case 25:this.$=s.preparePartialBlock(d[l-2],d[l-1],d[l],this._$);break;case 26:this.$={path:d[l-3],params:d[l-2],hash:d[l-1],strip:s.stripFlags(d[l-4],d[l])};break;case 29:this.$={type:"SubExpression",path:d[l-3],params:d[l-2],hash:d[l-1],loc:s.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[l],loc:s.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:s.id(d[l-2]),value:d[l],loc:s.locInfo(this._$)};break;case 32:this.$=s.id(d[l-1]);break;case 35:this.$={type:"StringLiteral",value:d[l],original:d[l],loc:s.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[l]),original:Number(d[l]),loc:s.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[l]==="true",original:d[l]==="true",loc:s.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:s.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:s.locInfo(this._$)};break;case 42:this.$=s.preparePath(!0,d[l],this._$);break;case 43:this.$=s.preparePath(!1,d[l],this._$);break;case 44:d[l-2].push({part:s.id(d[l]),original:d[l],separator:d[l-1]}),this.$=d[l-2];break;case 45:this.$=[{part:s.id(d[l]),original:d[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:d[l-1].push(d[l]);break;case 98:case 100:this.$=[d[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(C,u){throw new Error(C)},parse:function(C){function u(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,s=[0],g=[null],d=[],m=this.table,l="",h=0,_=0,S=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 I=this.lexer.yylloc;d.push(I);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var A,j,U,L,B,N,z,G,oe,ee={};;){if(U=s[s.length-1],this.defaultActions[U]?L=this.defaultActions[U]:(A!=null||(A=u()),L=m[U]&&m[U][A]),L===void 0||!L.length||!L[0]){var Y="";{for(N in oe=[],m[U])this.terminals_[N]&&N>2&&oe.push("'"+this.terminals_[N]+"'");Y=this.lexer.showPosition?"Parse error on line "+(h+1)+`:
435
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function u(){s(l).forEach(function(h){delete l[h]})}var a=v(34).default,s=v(13).default,g=v(3).default;n.__esModule=!0,n.createProtoAccessControl=o,n.resultIsAllowed=e,n.resetLoggedProperties=u;var d=v(36),m=g(v(32)),l=a(null)},function(c,n,v){c.exports={default:v(35),__esModule:!0}},function(c,n,v){var o=v(9);c.exports=function(e,p){return o.create(e,p)}},function(c,n,v){function o(){for(var C=arguments.length,u=Array(C),a=0;a<C;a++)u[a]=arguments[a];return p.extend.apply(void 0,[e(null)].concat(u))}var e=v(34).default;n.__esModule=!0,n.createNewLookupObject=o;var p=v(5)},function(c,n){function v(o){this.string=o}n.__esModule=!0,v.prototype.toString=v.prototype.toHTML=function(){return""+this.string},n.default=v,c.exports=n.default},function(c,n,v){function o(B){var N=B&&B[0]||1,z=A.COMPILER_REVISION;if(!(N>=A.LAST_COMPATIBLE_COMPILER_REVISION&&N<=A.COMPILER_REVISION)){if(N<A.LAST_COMPATIBLE_COMPILER_REVISION){var G=A.REVISION_CHANGES[z],oe=A.REVISION_CHANGES[N];throw new T.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 ("+oe+").")}throw new T.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,N){function z(Y,W,Z){Z.hash&&(W=I.extend({},W,Z.hash),Z.ids&&(Z.ids[0]=!0)),Y=N.VM.resolvePartial.call(this,Y,W,Z);var ce=I.extend({},Z,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),ye=N.VM.invokePartial.call(this,Y,W,ce);if(ye==null&&N.compile&&(Z.partials[Z.name]=N.compile(Y,B.compilerOptions,N),ye=Z.partials[Z.name](W,ce)),ye!=null){if(Z.indent){for(var _e=ye.split(`
436
+ `),Ce=0,Re=_e.length;Ce<Re&&(_e[Ce]||Ce+1!==Re);Ce++)_e[Ce]=Z.indent+_e[Ce];ye=_e.join(`
437
+ `)}return ye}throw new T.default("The partial "+Z.name+" could not be compiled when running in runtime-only mode")}function G(Y){function W(Ce){return""+B.main(ee,Ce,ee.helpers,ee.partials,ce,_e,ye)}var Z=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ce=Z.data;G._setup(Z),!Z.partial&&B.useData&&(ce=s(Y,ce));var ye=void 0,_e=B.useBlockParams?[]:void 0;return B.useDepths&&(ye=Z.depths?Y!=Z.depths[0]?[Y].concat(Z.depths):Z.depths:[Y]),(W=g(B.main,W,ee,Z.depths||[],ce,_e))(Y,Z)}if(!N)throw new T.default("No environment passed to template");if(!B||!B.main)throw new T.default("Unknown template object: "+typeof B);B.main.decorator=B.main_d,N.VM.checkRevision(B.compiler);var oe=B.compiler&&B.compiler[0]===7,ee={strict:function(Y,W,Z){if(!Y||!(W in Y))throw new T.default('"'+W+'" not defined in '+Y,{loc:Z});return ee.lookupProperty(Y,W)},lookupProperty:function(Y,W){var Z=Y[W];return Z==null||Object.prototype.hasOwnProperty.call(Y,W)||L.resultIsAllowed(Z,ee.protoAccessControl,W)?Z:void 0},lookup:function(Y,W){for(var Z=Y.length,ce=0;ce<Z;ce++)if((Y[ce]&&ee.lookupProperty(Y[ce],W))!=null)return Y[ce][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:I.escapeExpression,invokePartial:z,fn:function(Y){var W=B[Y];return W.decorator=B[Y+"_d"],W},programs:[],program:function(Y,W,Z,ce,ye){var _e=this.programs[Y],Ce=this.fn(Y);return W||ye||ce||Z?_e=p(this,Y,Ce,W,Z,ce,ye):_e||(_e=this.programs[Y]=p(this,Y,Ce)),_e},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var Z=Y||W;return Y&&W&&Y!==W&&(Z=I.extend({},W,Y)),Z},nullContext:l({}),noop:N.VM.noop,compilerInfo:B.compiler};return G.isTop=!0,G._setup=function(Y){if(Y.partial)ee.protoAccessControl=Y.protoAccessControl,ee.helpers=Y.helpers,ee.partials=Y.partials,ee.decorators=Y.decorators,ee.hooks=Y.hooks;else{var W=I.extend({},N.helpers,Y.helpers);d(W,ee),ee.helpers=W,B.usePartial&&(ee.partials=ee.mergeIfNeeded(Y.partials,N.partials)),(B.usePartial||B.useDecorators)&&(ee.decorators=I.extend({},N.decorators,Y.decorators)),ee.hooks={},ee.protoAccessControl=L.createProtoAccessControl(Y);var Z=Y.allowCallsToHelperMissing||oe;j.moveHelperToHooks(ee,"helperMissing",Z),j.moveHelperToHooks(ee,"blockHelperMissing",Z)}},G._child=function(Y,W,Z,ce){if(B.useBlockParams&&!Z)throw new T.default("must pass block params");if(B.useDepths&&!ce)throw new T.default("must pass parent depths");return p(ee,Y,B[Y],W,0,Z,ce)},G}function p(B,N,z,G,oe,ee,Y){function W(Z){var ce=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ye=Y;return!Y||Z==Y[0]||Z===B.nullContext&&Y[0]===null||(ye=[Z].concat(Y)),z(B,Z,B.helpers,B.partials,ce.data||G,ee&&[ce.blockParams].concat(ee),ye)}return(W=g(z,W,B,Y,G,ee)).program=N,W.depth=Y?Y.length:0,W.blockParams=oe||0,W}function C(B,N,z){return B?B.call||z.name||(z.name=B,B=z.partials[B]):B=z.name==="@partial-block"?z.data["partial-block"]:z.partials[z.name],B}function u(B,N,z){var G=z.data&&z.data["partial-block"];z.partial=!0,z.ids&&(z.data.contextPath=z.ids[0]||z.data.contextPath);var oe=void 0;if(z.fn&&z.fn!==a&&function(){z.data=A.createFrame(z.data);var ee=z.fn;oe=z.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=A.createFrame(W.data),W.data["partial-block"]=G,ee(Y,W)},ee.partials&&(z.partials=I.extend({},z.partials,ee.partials))}(),B===void 0&&oe&&(B=oe),B===void 0)throw new T.default("The partial "+z.name+" could not be found");if(B instanceof Function)return B(N,z)}function a(){return""}function s(B,N){return N&&"root"in N||((N=N?A.createFrame(N):{}).root=B),N}function g(B,N,z,G,oe,ee){if(B.decorator){var Y={};N=B.decorator(N,Y,z,G&&G[0],oe,ee,G),I.extend(N,Y)}return N}function d(B,N){h(B).forEach(function(z){var G=B[z];B[z]=m(G,N)})}function m(B,N){var z=N.lookupProperty;return U.wrapHelper(B,function(G){return I.extend({lookupProperty:z},G)})}var l=v(39).default,h=v(13).default,_=v(3).default,S=v(1).default;n.__esModule=!0,n.checkRevision=o,n.template=e,n.wrapProgram=p,n.resolvePartial=C,n.invokePartial=u,n.noop=a;var I=_(v(5)),T=S(v(6)),A=v(4),j=v(10),U=v(43),L=v(33)},function(c,n,v){c.exports={default:v(40),__esModule:!0}},function(c,n,v){v(41),c.exports=v(21).Object.seal},function(c,n,v){var o=v(42);v(18)("seal",function(e){return function(p){return e&&o(p)?e(p):p}})},function(c,n){c.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},function(c,n){function v(o,e){if(typeof o!="function")return o;var p=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),o.apply(this,arguments)};return p}n.__esModule=!0,n.wrapHelper=v},function(c,n){(function(v){n.__esModule=!0,n.default=function(o){var e=v!==void 0?v:window,p=e.Handlebars;o.noConflict=function(){return e.Handlebars===o&&(e.Handlebars=p),o}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var v={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!v.helpers.scopedId(o)&&!o.depth}}};n.default=v,c.exports=n.default},function(c,n,v){function o(m,l){return m.type==="Program"?m:(u.default.yy=d,d.locInfo=function(h){return new d.SourceLocation(l&&l.srcName,h)},u.default.parse(m))}function e(m,l){var h=o(m,l);return new a.default(l).accept(h)}var p=v(1).default,C=v(3).default;n.__esModule=!0,n.parseWithoutProcessing=o,n.parse=e;var u=p(v(47)),a=p(v(48)),s=C(v(50)),g=v(5);n.parser=u.default;var d={};g.extend(d,s)},function(c,n){n.__esModule=!0;var v=function(){function o(){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,u,a,s,g,d,m){var l=d.length-1;switch(g){case 1:return d[l-1];case 2:this.$=s.prepareProgram(d[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.$=d[l];break;case 9:this.$={type:"CommentStatement",value:s.stripComment(d[l]),strip:s.stripFlags(d[l],d[l]),loc:s.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[l],value:d[l],loc:s.locInfo(this._$)};break;case 11:this.$=s.prepareRawBlock(d[l-2],d[l-1],d[l],this._$);break;case 12:this.$={path:d[l-3],params:d[l-2],hash:d[l-1]};break;case 13:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!1,this._$);break;case 14:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!0,this._$);break;case 15:this.$={open:d[l-5],path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 16:case 17:this.$={path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 18:this.$={strip:s.stripFlags(d[l-1],d[l-1]),program:d[l]};break;case 19:var h=s.prepareBlock(d[l-2],d[l-1],d[l],d[l],!1,this._$),_=s.prepareProgram([h],d[l-1].loc);_.chained=!0,this.$={strip:d[l-2].strip,program:_,chain:!0};break;case 21:this.$={path:d[l-1],strip:s.stripFlags(d[l-2],d[l])};break;case 22:case 23:this.$=s.prepareMustache(d[l-3],d[l-2],d[l-1],d[l-4],s.stripFlags(d[l-4],d[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[l-3],params:d[l-2],hash:d[l-1],indent:"",strip:s.stripFlags(d[l-4],d[l]),loc:s.locInfo(this._$)};break;case 25:this.$=s.preparePartialBlock(d[l-2],d[l-1],d[l],this._$);break;case 26:this.$={path:d[l-3],params:d[l-2],hash:d[l-1],strip:s.stripFlags(d[l-4],d[l])};break;case 29:this.$={type:"SubExpression",path:d[l-3],params:d[l-2],hash:d[l-1],loc:s.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[l],loc:s.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:s.id(d[l-2]),value:d[l],loc:s.locInfo(this._$)};break;case 32:this.$=s.id(d[l-1]);break;case 35:this.$={type:"StringLiteral",value:d[l],original:d[l],loc:s.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[l]),original:Number(d[l]),loc:s.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[l]==="true",original:d[l]==="true",loc:s.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:s.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:s.locInfo(this._$)};break;case 42:this.$=s.preparePath(!0,d[l],this._$);break;case 43:this.$=s.preparePath(!1,d[l],this._$);break;case 44:d[l-2].push({part:s.id(d[l]),original:d[l],separator:d[l-1]}),this.$=d[l-2];break;case 45:this.$=[{part:s.id(d[l]),original:d[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:d[l-1].push(d[l]);break;case 98:case 100:this.$=[d[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(C,u){throw new Error(C)},parse:function(C){function u(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,s=[0],g=[null],d=[],m=this.table,l="",h=0,_=0,S=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 I=this.lexer.yylloc;d.push(I);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var A,j,U,L,B,N,z,G,oe,ee={};;){if(U=s[s.length-1],this.defaultActions[U]?L=this.defaultActions[U]:(A!=null||(A=u()),L=m[U]&&m[U][A]),L===void 0||!L.length||!L[0]){var Y="";{for(N in oe=[],m[U])this.terminals_[N]&&N>2&&oe.push("'"+this.terminals_[N]+"'");Y=this.lexer.showPosition?"Parse error on line "+(h+1)+`:
438
438
  `+this.lexer.showPosition()+`
439
439
  Expecting `+oe.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(h+1)+": Unexpected "+(A==1?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[A]||A,line:this.lexer.yylineno,loc:I,expected:oe})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+A);switch(L[0]){case 1:s.push(A),g.push(this.lexer.yytext),d.push(this.lexer.yylloc),s.push(L[1]),A=null,j?(A=j,j=null):(_=this.lexer.yyleng,l=this.lexer.yytext,h=this.lexer.yylineno,I=this.lexer.yylloc,S>0);break;case 2:if(z=this.productions_[L[1]][1],ee.$=g[g.length-z],ee._$={first_line:d[d.length-(z||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(z||1)].first_column,last_column:d[d.length-1].last_column},T&&(ee._$.range=[d[d.length-(z||1)].range[0],d[d.length-1].range[1]]),(B=this.performAction.call(ee,l,_,h,this.yy,L[1],g,d))!==void 0)return B;z&&(s=s.slice(0,-1*z*2),g=g.slice(0,-1*z),d=d.slice(0,-1*z)),s.push(this.productions_[L[1]][0]),g.push(ee.$),d.push(ee._$),G=m[s[s.length-2]][s[s.length-1]],s.push(G);break;case 3:return!0}}return!0}},p=function(){var C={EOF:1,parseError:function(u,a){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,a)},setInput:function(u){return this._input=u,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 u=this._input[0];return this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u,u.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),u},unput:function(u){var a=u.length,s=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var g=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),s.length-1&&(this.yylineno-=s.length-1);var d=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:s?(s.length===g.length?this.yylloc.first_column:0)+g[g.length-s.length].length-s[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
440
440
  `+a+"^"},next:function(){if(this.done)return this.EOF;var u,a,s,g,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),l=0;l<m.length&&(!(s=this._input.match(this.rules[m[l]]))||a&&!(s[0].length>a[0].length)||(a=s,g=l,this.options.flex));l++);return a?((d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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],u=this.performAction.call(this,this.yy,this,m[g],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.