@coveo/quantic 3.14.3 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/out/quantic-docs.json +2 -2
- package/force-app/main/default/lwc/quanticCaseClassification/__tests__/quanticCaseClassification.test.js +819 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/data.ts +23 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/fixture.ts +51 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/pageObject.ts +152 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/quanticCaseClassification.e2e.ts +269 -0
- package/force-app/main/default/lwc/quanticCaseClassification/quanticCaseClassification.html +6 -6
- package/force-app/main/default/lwc/quanticFacetManager/__tests__/quanticFacetManager.test.js +178 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/fixture.ts +63 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts +23 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts +82 -0
- package/force-app/main/default/lwc/quanticFacetManager/quanticFacetManager.js +1 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswer/__tests__/quanticGeneratedAnswer.test.js +54 -10
- package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +19 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.css +4 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +17 -0
- package/force-app/main/default/lwc/quanticTooltip/__tests__/quanticTooltip.test.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +2 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +6 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-category-field-suggestions.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions-generator.d.ts +9 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-category-filter-suggestions.d.ts +87 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.d.ts +38 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.ssr.d.ts +16 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions.d.ts +88 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/headless.js +3 -5
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +3 -5
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +2 -4
- package/package.json +2 -2
|
@@ -23,7 +23,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23
23
|
`)}
|
|
24
24
|
|
|
25
25
|
${t}
|
|
26
|
-
`;return new Qo(r)}var Qo=class extends Error{constructor(e){super(e),this.name="SchemaValidationError"}},Me=class{constructor(e){this.definition=e}validate(e={},t=""){let r={...this.default,...e},n=[];for(let o in this.definition){let i=this.definition[o].validate(r[o]);i&&n.push(`${o}: ${i}`)}if(n.length)throw xp(n,t);return r}get default(){let e={};for(let t in this.definition){let r=this.definition[t].default;r!==void 0&&(e[t]=r)}return e}},Et=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&K(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function Ut(e){return e===void 0}function Rp(e){return e===null}function K(e){return Ut(e)||Rp(e)}var Ce=class{constructor(e={}){oe(this,"value");this.config=e,this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t||(Ep(e)?e<this.config.min?`minimum value of ${this.config.min} not respected.`:e>this.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function Ep(e){return Ut(e)||ca(e)}function ca(e){return typeof e=="number"&&!isNaN(e)}var se=class{constructor(e={}){oe(this,"value");this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t||(Ip(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function Ip(e){return Ut(e)||ua(e)}function ua(e){return typeof e=="boolean"}var kp=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i,G=class{constructor(e={}){oe(this,"value");oe(this,"config");this.config={emptyAllowed:!0,url:!1,...e},this.value=new Et(this.config)}validate(e){let{emptyAllowed:t,url:r,regex:n,constrainTo:o,ISODate:i}=this.config,s=this.value.validate(e);if(s)return s;if(Ut(e))return null;if(!la(e))return"value is not a string.";if(!t&&!e.length)return"value is an empty string.";if(r)try{new URL(e)}catch{return"value is not a valid URL."}return n&&!n.test(e)?`value did not match provided regex ${n}`:o&&!o.includes(e)?`value should be one of: ${o.join(", ")}.`:i&&!(kp.test(e)&&new Date(e).toString()!=="Invalid Date")?"value is not a valid ISO8601 date string":null}get default(){return this.value.default}get required(){return this.value.required}};function la(e){return Object.prototype.toString.call(e)==="[object String]"}var ne=class{constructor(e={}){oe(this,"config");this.config={options:{required:!1},values:{},...e}}validate(e){if(Ut(e))return this.config.options.required?"value is required and is currently undefined":null;if(!da(e))return"value is not an object";for(let[r,n]of Object.entries(this.config.values))if(n.required&&K(e[r]))return`value does not contain ${r}`;let t="";for(let[r,n]of Object.entries(this.config.values)){let o=e[r],i=n.validate(o);i!==null&&(t+=" "+i)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function da(e){return e!==void 0&&typeof e=="object"}var Ke=class{constructor(e={}){oe(this,"value");this.config=e,this.value=new Et(this.config)}validate(e){if(!K(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if(K(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length<this.config.min)return`value contains less than ${this.config.min}`;if(this.config.each!==void 0){let r="";return e.forEach(n=>{this.config.each.required&&K(n)&&(r=`value is null or undefined: ${e.join(",")}`);let o=this.validatePrimitiveValue(n,this.config.each);o!==null&&(r+=" "+o)}),r===""?null:r}return null}validatePrimitiveValue(e,t){return ua(e)||la(e)||ca(e)||da(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function pa(e){return Array.isArray(e)}var $o=class{constructor(e){oe(this,"value");this.config=e,this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t!==null?t:Ut(e)||Object.values(this.config.enum).find(n=>n===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};m();d();f();p();var Zr=e=>e;m();d();f();p();m();d();f();p();var ka=Te(Ca(),1);m();d();f();p();m();d();f();p();var ef="recommendation-internal-options",QC=Symbol.for(ef);var Oe=new Error("Failed to load reducers."),Vt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var kt=class extends Error{constructor(r,n){super();oe(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};m();d();f();p();function Aa(e){return Array.isArray(e)}function ba(e,t){return[...e.reduce((r,n)=>{let o=t(n);return r.has(o)||r.set(o,n),r},new Map).values()]}var tf=new Set(["1",1,"yes",!0]);function wa(){if(typeof navigator>"u"||typeof window>"u")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>tf.has(r))}function xa(e){let t={};for(let[r,n]of e)t[r]=n;return t}function br(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}m();d();f();p();function Ra(e){let t=[];for(let r in e){let n=encodeURIComponent(r),o=encodeURIComponent(e[r]);t.push(`${n}=${o}`)}return t.join("&")}function Ea(e){return typeof e!="object"||!e?!1:Object.values(e).every(rf)}function rf(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Ia(e){return e===429}var it=class e{static call(t){return _asyncToGenerator(function*(){let r=nf(t),{logger:n}=t,o=yield e.preprocessRequest(r,t);n.info(o,"Platform request");let{url:i,...s}=o,u=/*#__PURE__*/function(){var _ref=_asyncToGenerator(function*(){let c=yield E(i,s);if(Ia(c.status))throw c;return c});return function u(){return _ref.apply(this,arguments)}}();try{let c=yield(0,ka.backOff)(u,{retry:a=>{let h=a&&Ia(a.status);return h&&n.info("Platform retrying request"),h}});switch(c.status){case 419:case 401:throw n.info("Platform renewing token"),new Vt;case 404:throw new kt(i,c.status);default:return n.info({response:c,requestInfo:o},"Platform response"),c}}catch(c){return c.message==="Failed to fetch"?new kt(i):c}})()}static preprocessRequest(t,r){return _asyncToGenerator(function*(){let{origin:n,preprocessRequest:o,logger:i,requestMetadata:s}=r,{signal:u,...c}=t,a=br(c);try{let h=yield o(t,n,s);return{...t,...h}}catch(h){i.error(h,"Platform request preprocessing failed. Returning default request options.")}return a})()}};function ce(e,t="prod",r="platform"){let n=t==="prod"?"":t,o=r==="platform"?"":`.${r}`;return`https://${e}${o}.org${n}.coveo.com`}function Bt(e,t="prod"){return`${ce(e,t)}/rest/search/v2`}function tn(e,t="prod"){return`${ce(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function nf(e){let{url:t,method:r,requestParams:n,contentType:o,accessToken:i,signal:s}=e,u=e.method==="POST"||e.method==="PUT",c=of(n,o);return{url:t,method:r,headers:{"Content-Type":o,Authorization:`Bearer ${i}`,...e.headers},...(u&&{body:c}),signal:s}}function of(e,t){return t==="application/x-www-form-urlencoded"?Ea(e)?Ra(e):"":JSON.stringify(e)}m();d();f();p();m();d();f();p();var Qt=class{constructor(t){oe(this,"_basePath");oe(this,"_params",{});this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}};m();d();f();p();function Zo(e){let{url:t,accessToken:r,organizationId:n,authentication:o,...i}=e;return i}var ei=e=>{let{response:t}=e;return t.body?sf(e):af(t)},sf=e=>uf(e)?lf(e):cf(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},af=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function cf(e){return e.body.statusCode!==void 0}function uf(e){return e.body.exception!==void 0}var lf=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});m();d();f();p();function Pa(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}m();d();f();p();var ti=(e,t,r,n)=>{let o=new Qt(`${e.url}${n}`);return o.addParam("organizationId",e.organizationId),e.authentication&&o.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:o.href,origin:"searchApiFetch"}};var Ta=(e,t)=>{let r=new Qt(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.authentication&&r.addParam("authentication",e.authentication),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),r.href},ri=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(function*(e,t){let r=yield it.call({...ti(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Zo(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=Pa(r),o=yield r.arrayBuffer(),s=new TextDecoder(n).decode(o);return df(s)?{success:s}:{error:ei({response:r,body:s})}});return function ri(_x,_x2){return _ref2.apply(this,arguments)}}();function df(e){return typeof e=="string"}m();d();f();p();function pf(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function ff(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function rn(e,t){if(t&&e.name==="AbortError")return{error:ff(e)};if(e instanceof kt)return{error:pf(e)};throw e}m();d();f();p();m();d();f();p();var nn=(e,t,r,n,o={})=>{mf(e);let i=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=gf(o),u=s?`${i}?${s}`:i;return{accessToken:e.accessToken,method:t,contentType:r,url:u,origin:"caseAssistApiFetch"}},on=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),sn=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),mf=e=>{if(!e.url)throw new Error("The 'url' attribute must contain a valid platform URL.");if(!e.organizationId)throw new Error("The 'organizationId' attribute must contain a valid organization ID.");if(!e.accessToken)throw new Error("The 'accessToken' attribute must contain a valid platform access token.");if(!e.caseAssistId)throw new Error("The 'caseAssistId' attribute must contain a valid Case Assist configuration ID.")},gf=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var Oa=e=>{let t=e.debug?{debug:"1"}:{};return{...nn(e,"POST","application/json","/classify",t),requestParams:hf(e)}},hf=e=>({clientId:e.clientId,locale:e.locale,fields:on(e.fields)});m();d();f();p();var Fa=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...nn(e,"POST","application/json","/documents/suggest",t),requestParams:yf(e)}},yf=e=>({clientId:e.clientId,locale:e.locale,fields:on(e.fields),context:e.context});var an=class{constructor(t){this.options=t}getCaseClassifications(t){var _this=this;return _asyncToGenerator(function*(){let r=yield it.call({...Oa(t),..._this.options});if(r instanceof Error)return rn(r);let n=yield r.json();return r.ok?{success:n}:{error:n}})()}getDocumentSuggestions(t){var _this2=this;return _asyncToGenerator(function*(){let r=yield it.call({...Fa(t),..._this2.options});if(r instanceof Error)return rn(r);let n=yield r.json();return r.ok?{success:n}:{error:n}})()}html(t){var _this3=this;return _asyncToGenerator(function*(){return ri(t,_this3.options)})()}};m();d();f();p();m();d();f();p();m();d();f();p();function me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Sf=typeof Symbol=="function"&&Symbol.observable||"@@observable",Da=Sf,ni=()=>Math.random().toString(36).substring(7).split("").join("."),vf={INIT:`@@redux/INIT${ni()}`,REPLACE:`@@redux/REPLACE${ni()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ni()}`},cn=vf;function Ue(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function oi(e,t,r){if(typeof e!="function")throw new Error(me(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(oi)(e,t)}let n=e,o=t,i=new Map,s=i,u=0,c=!1;function a(){s===i&&(s=new Map,i.forEach((x,R)=>{s.set(R,x)}))}function h(){if(c)throw new Error(me(3));return o}function S(x){if(typeof x!="function")throw new Error(me(4));if(c)throw new Error(me(5));let R=!0;a();let A=u++;return s.set(A,x),function(){if(R){if(c)throw new Error(me(6));R=!1,a(),s.delete(A),i=null}}}function y(x){if(!Ue(x))throw new Error(me(7));if(typeof x.type>"u")throw new Error(me(8));if(typeof x.type!="string")throw new Error(me(17));if(c)throw new Error(me(9));try{c=!0,o=n(o,x)}finally{c=!1}return(i=s).forEach(A=>{A()}),x}function g(x){if(typeof x!="function")throw new Error(me(10));n=x,y({type:cn.REPLACE})}function v(){let x=S;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(me(11));function A(){let P=R;P.next&&P.next(h())}return A(),{unsubscribe:x(A)}},[Da](){return this}}}return y({type:cn.INIT}),{dispatch:y,subscribe:S,getState:h,replaceReducer:g,[Da]:v}}function Cf(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:cn.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function $t(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let u=t[s];typeof e[u]=="function"&&(r[u]=e[u])}let n=Object.keys(r),o,i;try{Cf(r)}catch(s){i=s}return function(u={},c){if(i)throw i;let a=!1,h={};for(let S=0;S<n.length;S++){let y=n[S],g=r[y],v=u[y],C=g(v,c);if(typeof C>"u"){let x=c&&c.type;throw new Error(me(14))}h[y]=C,a=a||C!==v}return a=a||n.length!==Object.keys(u).length,a?h:u}}function Ht(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Ma(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(me(15))},s={getState:o.getState,dispatch:(c,...a)=>i(c,...a)},u=e.map(c=>c(s));return i=Ht(...u)(o.dispatch),{...o,dispatch:i}}}function un(e){return Ue(e)&&"type"in e&&typeof e.type=="string"}m();d();f();p();var mi=Symbol.for("immer-nothing"),wr=Symbol.for("immer-draftable"),Ae=Symbol.for("immer-state");function ge(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tt=Object.getPrototypeOf;function Re(e){return!!e&&!!e[Ae]}function be(e){return e?ja(e)||Array.isArray(e)||!!e[wr]||!!e.constructor?.[wr]||kr(e)||Pr(e):!1}var Af=Object.prototype.constructor.toString();function ja(e){if(!e||typeof e!="object")return!1;let t=Tt(e);if(t===null)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Af}function gi(e){return Re(e)||ge(15,e),e[Ae].base_}function xr(e,t){Ot(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Ot(e){let t=e[Ae];return t?t.type_:Array.isArray(e)?1:kr(e)?2:Pr(e)?3:0}function Rr(e,t){return Ot(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ii(e,t){return Ot(e)===2?e.get(t):e[t]}function Ua(e,t,r){let n=Ot(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function bf(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function kr(e){return e instanceof Map}function Pr(e){return e instanceof Set}function Pt(e){return e.copy_||e.base_}function ci(e,t){if(kr(e))return new Map(e);if(Pr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ja(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[Ae];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){let s=o[i],u=n[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(Tt(e),n)}else{let n=Tt(e);if(n!==null&&r)return{...e};let o=Object.create(n);return Object.assign(o,e)}}function pn(e,t=!1){return fn(e)||Re(e)||!be(e)||(Ot(e)>1&&(e.set=e.add=e.clear=e.delete=wf),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>pn(n,!0))),e}function wf(){ge(2)}function fn(e){return Object.isFrozen(e)}var ui={};function Ft(e){let t=ui[e];return t||ge(0,e),t}function xf(e,t){ui[e]||(ui[e]=t)}var Er;function Va(){return Er}function Rf(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function qa(e,t){t&&(Ft("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function li(e){di(e),e.drafts_.forEach(Ef),e.drafts_=null}function di(e){e===Er&&(Er=e.parent_)}function Na(e){return Er=Rf(Er,e)}function Ef(e){let t=e[Ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _a(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ae].modified_&&(li(t),ge(4)),be(e)&&(e=ln(t,e),t.parent_||dn(t,e)),t.patches_&&Ft("Patches").generateReplacementPatches_(r[Ae].base_,e,t.patches_,t.inversePatches_)):e=ln(t,r,[]),li(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mi?e:void 0}function ln(e,t,r){if(fn(t))return t;let n=t[Ae];if(!n)return xr(t,(o,i)=>La(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return dn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let o=n.copy_,i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),xr(i,(u,c)=>La(e,n,o,u,c,r,s)),dn(e,o,!1),r&&e.patches_&&Ft("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function La(e,t,r,n,o,i,s){if(Re(o)){let u=i&&t&&t.type_!==3&&!Rr(t.assigned_,n)?i.concat(n):void 0,c=ln(e,o,u);if(Ua(r,n,c),Re(c))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(be(o)&&!fn(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ln(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&dn(e,o)}}function dn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pn(t,r)}function If(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Va(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=hi;r&&(o=[n],i=Ir);let{revoke:s,proxy:u}=Proxy.revocable(o,i);return n.draft_=u,n.revoke_=s,u}var hi={get(e,t){if(t===Ae)return e;let r=Pt(e);if(!Rr(r,t))return kf(e,r,t);let n=r[t];return e.finalized_||!be(n)?n:n===si(e.base_,t)?(ai(e),e.copy_[t]=fi(n,e)):n},has(e,t){return t in Pt(e)},ownKeys(e){return Reflect.ownKeys(Pt(e))},set(e,t,r){let n=Ba(Pt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=si(Pt(e),t),i=o?.[Ae];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(bf(r,o)&&(r!==void 0||Rr(e.base_,t)))return!0;ai(e),pi(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return si(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ai(e),pi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Pt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ge(11)},getPrototypeOf(e){return Tt(e.base_)},setPrototypeOf(){ge(12)}},Ir={};xr(hi,(e,t)=>{Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)};Ir.set=function(e,t,r){return hi.set.call(this,e[0],t,r,e[0])};function si(e,t){let r=e[Ae];return(r?Pt(r):e)[t]}function kf(e,t,r){let n=Ba(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Ba(e,t){if(!(t in e))return;let r=Tt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Tt(r)}}function pi(e){e.modified_||(e.modified_=!0,e.parent_&&pi(e.parent_))}function ai(e){e.copy_||(e.copy_=ci(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let i=r;r=t;let s=this;return function(c=i,...a){return s.produce(c,h=>r.call(this,h,...a))}}typeof r!="function"&&ge(6),n!==void 0&&typeof n!="function"&&ge(7);let o;if(be(t)){let i=Na(this),s=fi(t,void 0),u=!0;try{o=r(s),u=!1}finally{u?li(i):di(i)}return qa(i,n),_a(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===mi&&(o=void 0),this.autoFreeze_&&pn(o,!0),n){let i=[],s=[];Ft("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else ge(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let n,o;return[this.produce(t,r,(s,u)=>{n=s,o=u}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){be(e)||ge(8),Re(e)&&(e=Qa(e));let t=Na(this),r=fi(e,void 0);return r[Ae].isManual_=!0,di(t),r}finishDraft(e,t){let r=e&&e[Ae];(!r||!r.isManual_)&&ge(9);let{scope_:n}=r;return qa(n,t),_a(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Ft("Patches").applyPatches_;return Re(e)?n(e,t):this.produce(e,o=>n(o,t))}};function fi(e,t){let r=kr(e)?Ft("MapSet").proxyMap_(e,t):Pr(e)?Ft("MapSet").proxySet_(e,t):If(e,t);return(t?t.scope_:Va()).drafts_.push(r),r}function Qa(e){return Re(e)||ge(10,e),$a(e)}function $a(e){if(!be(e)||fn(e))return e;let t=e[Ae],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ci(e,t.scope_.immer_.useStrictShallowCopy_)}else r=ci(e,!0);return xr(r,(n,o)=>{Ua(r,n,$a(o))}),t&&(t.finalized_=!1),r}function Ha(){let t="replace",r="add",n="remove";function o(y,g,v,C){switch(y.type_){case 0:case 2:return s(y,g,v,C);case 1:return i(y,g,v,C);case 3:return u(y,g,v,C)}}function i(y,g,v,C){let{base_:x,assigned_:R}=y,A=y.copy_;A.length<x.length&&([x,A]=[A,x],[v,C]=[C,v]);for(let w=0;w<x.length;w++)if(R[w]&&A[w]!==x[w]){let P=g.concat([w]);v.push({op:t,path:P,value:S(A[w])}),C.push({op:t,path:P,value:S(x[w])})}for(let w=x.length;w<A.length;w++){let P=g.concat([w]);v.push({op:r,path:P,value:S(A[w])})}for(let w=A.length-1;x.length<=w;--w){let P=g.concat([w]);C.push({op:n,path:P})}}function s(y,g,v,C){let{base_:x,copy_:R}=y;xr(y.assigned_,(A,w)=>{let P=ii(x,A),N=ii(R,A),T=w?Rr(x,A)?t:r:n;if(P===N&&T===t)return;let k=g.concat(A);v.push(T===n?{op:T,path:k}:{op:T,path:k,value:N}),C.push(T===r?{op:n,path:k}:T===n?{op:r,path:k,value:S(P)}:{op:t,path:k,value:S(P)})})}function u(y,g,v,C){let{base_:x,copy_:R}=y,A=0;x.forEach(w=>{if(!R.has(w)){let P=g.concat([A]);v.push({op:n,path:P,value:w}),C.unshift({op:r,path:P,value:w})}A++}),A=0,R.forEach(w=>{if(!x.has(w)){let P=g.concat([A]);v.push({op:r,path:P,value:w}),C.unshift({op:n,path:P,value:w})}A++})}function c(y,g,v,C){v.push({op:t,path:[],value:g===mi?void 0:g}),C.push({op:t,path:[],value:y})}function a(y,g){return g.forEach(v=>{let{path:C,op:x}=v,R=y;for(let N=0;N<C.length-1;N++){let T=Ot(R),k=C[N];typeof k!="string"&&typeof k!="number"&&(k=""+k),(T===0||T===1)&&(k==="__proto__"||k==="constructor")&&ge(19),typeof R=="function"&&k==="prototype"&&ge(19),R=ii(R,k),typeof R!="object"&&ge(18,C.join("/"))}let A=Ot(R),w=h(v.value),P=C[C.length-1];switch(x){case t:switch(A){case 2:return R.set(P,w);case 3:ge(16);default:return R[P]=w}case r:switch(A){case 1:return P==="-"?R.push(w):R.splice(P,0,w);case 2:return R.set(P,w);case 3:return R.add(w);default:return R[P]=w}case n:switch(A){case 1:return R.splice(P,1);case 2:return R.delete(P);case 3:return R.delete(v.value);default:return delete R[P]}default:ge(17,x)}}),y}function h(y){if(!be(y))return y;if(Array.isArray(y))return y.map(h);if(kr(y))return new Map(Array.from(y.entries()).map(([v,C])=>[v,h(C)]));if(Pr(y))return new Set(Array.from(y).map(h));let g=Object.create(Tt(y));for(let v in y)g[v]=h(y[v]);return Rr(y,wr)&&(g[wr]=y[wr]),g}function S(y){return Re(y)?h(y):y}xf("Patches",{applyPatches_:a,generatePatches_:o,generateReplacementPatches_:c})}var Ee=new Pf,Je=Ee.produce,mn=Ee.produceWithPatches.bind(Ee),$b=Ee.setAutoFreeze.bind(Ee),Hb=Ee.setUseStrictShallowCopy.bind(Ee),yi=Ee.applyPatches.bind(Ee),zb=Ee.createDraft.bind(Ee),Gb=Ee.finishDraft.bind(Ee);m();d();f();p();function Tf(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Of(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ff(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var za=e=>Array.isArray(e)?e:[e];function Df(e){let t=Array.isArray(e[0])?e[0]:e;return Ff(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mf(e,t){let r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var ew=Symbol();var tw=Object.getPrototypeOf({});var qf=class{constructor(e){this.value=e}deref(){return this.value}},Nf=typeof WeakRef<"u"?WeakRef:qf,_f=0,Ga=1;function gn(){return{s:_f,v:void 0,o:null,p:null}}function zt(e,t={}){let r=gn(),{resultEqualityCheck:n}=t,o,i=0;function s(){let u=r,{length:c}=arguments;for(let S=0,y=c;S<y;S++){let g=arguments[S];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=u.o;v===null&&(u.o=v=new WeakMap);let C=v.get(g);C===void 0?(u=gn(),v.set(g,u)):u=C}else{let v=u.p;v===null&&(u.p=v=new Map);let C=v.get(g);C===void 0?(u=gn(),v.set(g,u)):u=C}}let a=u,h;if(u.s===Ga)h=u.v;else if(h=e.apply(null,arguments),i++,n){let S=o?.deref?.()??o;S!=null&&n(S,h)&&(h=S,i!==0&&i--),o=typeof h=="object"&&h!==null||typeof h=="function"?new Nf(h):h}return a.s=Ga,a.v=h,h}return s.clearCache=()=>{r=gn(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Wa(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,u,c={},a=o.pop();typeof a=="object"&&(c=a,a=o.pop()),Tf(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let h={...r,...c},{memoize:S,memoizeOptions:y=[],argsMemoize:g=zt,argsMemoizeOptions:v=[],devModeChecks:C={}}=h,x=za(y),R=za(v),A=Df(o),w=S(function(){return i++,a.apply(null,arguments)},...x),P=!0,N=g(function(){s++;let k=Mf(A,arguments);return u=w.apply(null,k),u},...R);return Object.assign(N,{resultFunc:a,memoizedResultFunc:w,dependencies:A,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:S,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var ue=Wa(zt),Lf=Object.assign((e,t=ue)=>{Of(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,u,c)=>(s[r[c]]=u,s),{}))},{withTypes:()=>Lf});m();d();f();p();function Ka(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Ya=Ka(),Ja=Ka;var jf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ht:Ht.apply(null,arguments)},vw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Uf=e=>e&&typeof e.match=="function";function U(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(qe(0));return{type:e,payload:o.payload,...("meta"in o&&{meta:o.meta}),...("error"in o&&{error:o.error})}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>un(n)&&n.type===e,r}var rc=class Tr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Tr.prototype)}static get[Symbol.species](){return Tr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Tr(...t[0].concat(this)):new Tr(...t.concat(this))}};function Xa(e){return be(e)?Je(e,()=>{}):e}function Za(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vf(e){return typeof e=="boolean"}var Bf=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},s=new rc;return r&&(Vf(r)?s.push(Ya):s.push(Ja(r.extraArgument))),s},st="RTK_autoBatch",Wt=()=>e=>({payload:e,meta:{[st]:!0}}),ec=e=>t=>{setTimeout(t,e)},Qf=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,s=!1,u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ec(10):e.type==="callback"?e.queueNotification:ec(e.timeout),a=()=>{s=!1,i&&(i=!1,u.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let S=()=>o&&h(),y=n.subscribe(S);return u.add(h),()=>{y(),u.delete(h)}},dispatch(h){try{return o=!h?.meta?.[st],i=!o,i&&(s||(s=!0,c(a))),n.dispatch(h)}finally{o=!0}}})},$f=e=>function(r){let{autoBatch:n=!0}=r??{},o=new rc(e);return n&&o.push(Qf(typeof n=="object"?n:void 0)),o};function nc(e){let t=Bf(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{},u;if(typeof r=="function")u=r;else if(Ue(r))u=$t(r);else throw new Error(qe(1));let c;typeof n=="function"?c=n(t):c=t();let a=Ht;o&&(a=jf({trace:!1,...(typeof o=="object"&&o)}));let h=Ma(...c),S=$f(h),y=typeof s=="function"?s(S):S(),g=a(...y);return oi(u,i,g)}function oc(e){let t={},r=[],n,o={addCase(i,s){let u=typeof i=="string"?i:i.type;if(!u)throw new Error(qe(28));if(u in t)throw new Error(qe(29));return t[u]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function Hf(e){return typeof e=="function"}function le(e,t){let[r,n,o]=oc(t),i;if(Hf(e))i=()=>Xa(e());else{let u=Xa(e);i=()=>u}function s(u=i(),c){let a=[r[c.type],...n.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return a.filter(h=>!!h).length===0&&(a=[o]),a.reduce((h,S)=>{if(S)if(Re(h)){let g=S(h,c);return g===void 0?h:g}else{if(be(h))return Je(h,y=>S(y,c));{let y=S(h,c);if(y===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return h},u)}return s.getInitialState=i,s}var ic=(e,t)=>Uf(e)?e.match(t):e(t);function Ve(...e){return t=>e.some(r=>ic(r,t))}function Gt(...e){return t=>e.every(r=>ic(r,t))}function yn(e,t){if(!e||!e.meta)return!1;let r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Or(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Sn(...e){return e.length===0?t=>yn(t,["pending"]):Or(e)?Ve(...e.map(t=>t.pending)):Sn()(e[0])}function Dt(...e){return e.length===0?t=>yn(t,["rejected"]):Or(e)?Ve(...e.map(t=>t.rejected)):Dt()(e[0])}function Fr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Gt(Dt(...e),t):Or(e)?Gt(Dt(...e),t):Fr()(e[0])}function Xe(...e){return e.length===0?t=>yn(t,["fulfilled"]):Or(e)?Ve(...e.map(t=>t.fulfilled)):Xe()(e[0])}function vn(...e){return e.length===0?t=>yn(t,["pending","fulfilled","rejected"]):Or(e)?Ve(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):vn()(e[0])}var zf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cn=(e=21)=>{let t="",r=e;for(;r--;)t+=zf[Math.random()*64|0];return t},Gf=["name","message","stack","code"],Si=class{constructor(e,t){oe(this,"_type");this.payload=e,this.meta=t}},tc=class{constructor(e,t){oe(this,"_type");this.payload=e,this.meta=t}},Wf=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Gf)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Z=(()=>{function e(t,r,n){let o=U(t+"/fulfilled",(c,a,h,S)=>({payload:c,meta:{...(S||{}),arg:h,requestId:a,requestStatus:"fulfilled"}})),i=U(t+"/pending",(c,a,h)=>({payload:void 0,meta:{...(h||{}),arg:a,requestId:c,requestStatus:"pending"}})),s=U(t+"/rejected",(c,a,h,S,y)=>({payload:S,error:(n&&n.serializeError||Wf)(c||"Rejected"),meta:{...(y||{}),arg:h,requestId:a,rejectedWithValue:!!S,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function u(c){return(a,h,S)=>{let y=n?.idGenerator?n.idGenerator(c):Cn(),g=new l.AbortController,v,C;function x(A){C=A,g.abort()}let R=_asyncToGenerator(function*(){let A;try{let P=n?.condition?.(c,{getState:h,extra:S});if(Yf(P)&&(P=yield P),P===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let N=new Promise((T,k)=>{v=()=>{k({name:"AbortError",message:C||"Aborted"})},g.signal.addEventListener("abort",v)});a(i(y,c,n?.getPendingMeta?.({requestId:y,arg:c},{getState:h,extra:S}))),A=yield Promise.race([N,Promise.resolve(r(c,{dispatch:a,getState:h,extra:S,requestId:y,signal:g.signal,abort:x,rejectWithValue:(T,k)=>new Si(T,k),fulfillWithValue:(T,k)=>new tc(T,k)})).then(T=>{if(T instanceof Si)throw T;return T instanceof tc?o(T.payload,y,c,T.meta):o(T,y,c)})])}catch(P){A=P instanceof Si?s(null,y,c,P.payload,P.meta):s(P,y,c)}finally{v&&g.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&s.match(A)&&A.meta.condition||a(A),A})();return Object.assign(R,{abort:x,requestId:y,arg:c,unwrap(){return R.then(Kf)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:o,settled:Ve(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Kf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Yf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sc=Symbol.for("rtk-slice-createasyncthunk"),xw={[sc]:Z};function Jf(e,t){return`${e}/${t}`}function Xf({creators:e}={}){let t=e?.asyncThunk?.[sc];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(qe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(em()):n.reducers)||{},u=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(A,w){let P=typeof A=="string"?A:A.type;if(!P)throw new Error(qe(12));if(P in c.sliceCaseReducersByType)throw new Error(qe(13));return c.sliceCaseReducersByType[P]=w,a},addMatcher(A,w){return c.sliceMatchers.push({matcher:A,reducer:w}),a},exposeAction(A,w){return c.actionCreators[A]=w,a},exposeCaseReducer(A,w){return c.sliceCaseReducersByName[A]=w,a}};u.forEach(A=>{let w=s[A],P={reducerName:A,type:Jf(o,A),createNotation:typeof n.reducers=="function"};rm(w)?om(P,w,a,t):tm(P,w,a)});function h(){let[A={},w=[],P=void 0]=typeof n.extraReducers=="function"?oc(n.extraReducers):[n.extraReducers],N={...A,...c.sliceCaseReducersByType};return le(n.initialState,T=>{for(let k in N)T.addCase(k,N[k]);for(let k of c.sliceMatchers)T.addMatcher(k.matcher,k.reducer);for(let k of w)T.addMatcher(k.matcher,k.reducer);P&&T.addDefaultCase(P)})}let S=A=>A,y=new Map,g;function v(A,w){return g||(g=h()),g(A,w)}function C(){return g||(g=h()),g.getInitialState()}function x(A,w=!1){function P(T){let k=T[A];return typeof k>"u"&&w&&(k=C()),k}function N(T=S){let k=Za(y,w,()=>new WeakMap);return Za(k,T,()=>{let q={};for(let[D,_]of Object.entries(n.selectors??{}))q[D]=Zf(_,T,C,w);return q})}return{reducerPath:A,getSelectors:N,get selectors(){return N(P)},selectSlice:P}}let R={name:o,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...x(i),injectInto(A,{reducerPath:w,...P}={}){let N=w??i;return A.inject({reducerPath:N,reducer:v},P),{...R,...x(N,!0)}}};return R}}function Zf(e,t,r,n){function o(i,...s){let u=t(i);return typeof u>"u"&&n&&(u=r()),e(u,...s)}return o.unwrapped=e,o}var Mt=Xf();function em(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function tm({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!nm(n))throw new Error(qe(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?U(e,s):U(e))}function rm(e){return e._reducerDefinitionType==="asyncThunk"}function nm(e){return e._reducerDefinitionType==="reducerWithPrepare"}function om({type:e,reducerName:t},r,n,o){if(!o)throw new Error(qe(18));let{payloadCreator:i,fulfilled:s,pending:u,rejected:c,settled:a,options:h}=r,S=o(e,i,h);n.exposeAction(t,S),s&&n.addCase(S.fulfilled,s),u&&n.addCase(S.pending,u),c&&n.addCase(S.rejected,c),a&&n.addMatcher(S.settled,a),n.exposeCaseReducer(t,{fulfilled:s||hn,pending:u||hn,rejected:c||hn,settled:a||hn})}function hn(){}var ac="listener",cc="completed",uc="cancelled",Rw=`task-${uc}`,Ew=`task-${cc}`,Iw=`${ac}-${uc}`,kw=`${ac}-${cc}`;var{assign:lc}=Object;var vi="listenerMiddleware";var im=lc(U(`${vi}/add`),{withTypes:()=>im}),Pw=U(`${vi}/removeAll`),sm=lc(U(`${vi}/remove`),{withTypes:()=>sm});var Tw=Symbol.for("rtk-state-proxy-original");function qe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}m();d();f();p();var Y=new G({required:!0,emptyAllowed:!1}),ae=new G({required:!1,emptyAllowed:!1}),Ne=new G({required:!0,emptyAllowed:!0}),Qw=new G({required:!1,emptyAllowed:!0}),dc=new Ke({each:Y,required:!0}),pc=new G({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),am=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Ci=(e,t)=>{if("required"in t)return{payload:new Me({value:t}).validate({value:e}).value};let o=new ne({options:{required:!0},values:t}).validate(e);if(o)throw new Qo(o);return{payload:e}},H=(e,t)=>{try{return Ci(e,t)}catch(r){return{payload:e,error:am(r)}}};var An=(e,t,r,n)=>{let o=`Check the options of ${n}`;return cm(e,t,r,o,"Controller initialization error")},cm=(e,t,r,n,o)=>{try{return t.validate(r,n)}catch(i){throw e.logger.error(i,o),i}};var bn=U("caseAssistConfiguration/set",e=>H(e,{caseAssistId:Y,locale:ae,proxyBaseUrl:new G({required:!1,url:!0})}));m();d();f();p();m();d();f();p();var fc=()=>({caseAssistId:"",locale:"en-US"});var at=le(fc(),e=>{e.addCase(bn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});m();d();f();p();m();d();f();p();m();d();f();p();var mc={q:new G,enableQuerySyntax:new se,aq:new G,cq:new G,firstResult:new Ce({min:0}),numberOfResults:new Ce({min:0}),sortCriteria:new G,f:new ne,fExcluded:new ne,cf:new ne,nf:new ne,mnf:new ne,df:new ne,debug:new se,sf:new ne,tab:new G,af:new ne};var wn=U("searchParameters/restore",e=>H(e,mc));m();d();f();p();var gc=U("debug/enable"),hc=U("debug/disable");m();d();f();p();var xn=()=>!1;var yc=le(xn(),e=>{e.addCase(gc,()=>!0).addCase(hc,()=>!1).addCase(wn,(t,r)=>r.payload.debug??t)});m();d();f();p();var Rn=U("searchHub/set",e=>H(e,new G({required:!0,emptyAllowed:!0})));m();d();f();p();m();d();f();p();m();d();f();p();var Kt="3.17.0",Sc=["@coveo/atomic","@coveo/quantic"];var Ai=()=>ae,vc=()=>Y,Yt=U("configuration/updateBasicConfiguration",e=>H(e,{accessToken:ae,environment:new G({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:ae})),En=U("configuration/updateSearchConfiguration",e=>H(e,{proxyBaseUrl:new G({required:!1,url:!0}),pipeline:new G({required:!1,emptyAllowed:!0}),searchHub:ae,timezone:ae,locale:ae,authenticationProviders:new Ke({required:!1,each:Y})})),um={enabled:new se({default:!0}),originContext:Ai(),originLevel2:Ai(),originLevel3:Ai(),proxyBaseUrl:new G({required:!1,url:!0}),runtimeEnvironment:new Et,anonymous:new se({default:!1}),deviceId:ae,userDisplayName:ae,documentLocation:ae,trackingId:ae,analyticsMode:new G({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new ne({options:{required:!1},values:Sc.reduce((e,t)=>(e[t]=pc,e),{})})},In=U("configuration/updateAnalyticsConfiguration",e=>H(e,um)),kn=U("configuration/analytics/disable"),Pn=U("configuration/analytics/enable"),Cc=U("configuration/analytics/originlevel2",e=>H(e,{originLevel2:vc()})),Ac=U("configuration/analytics/originlevel3",e=>H(e,{originLevel3:vc()}));m();d();f();p();var lm=U("history/undo"),dm=U("history/redo"),Be=U("history/snapshot"),bR=Z("history/back",/*#__PURE__*/function(){var _ref4=_asyncToGenerator(function*(e,{dispatch:t}){t(lm()),yield t(Tn())});return function(_x3,_x4){return _ref4.apply(this,arguments)}}()),wR=Z("history/forward",/*#__PURE__*/function(){var _ref5=_asyncToGenerator(function*(e,{dispatch:t}){t(dm()),yield t(Tn())});return function(_x5,_x6){return _ref5.apply(this,arguments)}}()),Tn=Z("history/change",/*#__PURE__*/function(){var _ref6=_asyncToGenerator(function*(e,{getState:t}){return t().history.present});return function(_x7,_x8){return _ref6.apply(this,arguments)}}());m();d();f();p();var ct=()=>"default";var bc=le(ct(),e=>{e.addCase(Rn,(t,r)=>r.payload).addCase(Tn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(En,(t,r)=>r.payload.searchHub||t)});m();d();f();p();m();d();f();p();m();d();f();p();function pm({config:e,environment:t,event:r,listenerManager:n}){let{url:o,token:i,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(o,i,r))}var fm=/^(?:[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;function mm(e){return typeof e=="string"&&fm.test(e)}var he=[];for(let e=0;e<256;++e)he.push((e+256).toString(16).slice(1));function gm(e,t=0){return(he[e[t+0]]+he[e[t+1]]+he[e[t+2]]+he[e[t+3]]+"-"+he[e[t+4]]+he[e[t+5]]+"-"+he[e[t+6]]+he[e[t+7]]+"-"+he[e[t+8]]+he[e[t+9]]+"-"+he[e[t+10]]+he[e[t+11]]+he[e[t+12]]+he[e[t+13]]+he[e[t+14]]+he[e[t+15]]).toLowerCase()}var bi,hm=new Uint8Array(16);function ym(){if(!bi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bi=crypto.getRandomValues.bind(crypto)}return bi(hm)}var Sm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wc={randomUUID:Sm};function vm(e,t,r){if(wc.randomUUID&&!e)return wc.randomUUID();e=e||{};let n=e.random??e.rng?.()??ym();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,gm(n)}function Cm(e){return{getClientId:()=>{let t="visitorId",r=e.get(),n=r.storage,o=n.getItem(t),i=o&&mm(o)?o:r.generateUUID();return n.setItem(t,i),i}}}var Rc="1.0.0";function Am(e){let{trackingId:t}=e;return{trackingId:t}}function bm(e){return(e.source||[]).concat([`relay@${Rc}`])}function Ec(e,t,r,n){let{getReferrer:o,getLocation:i,getUserAgent:s}=r,u=Am(t),c=n.getClientId();return Object.freeze({type:e,config:u,ts:Date.now(),source:bm(t),clientId:c,userAgent:s(),referrer:o(),location:i()})}function wm(e,t,r,n,o){return{...t,meta:Ec(e,r,n,o)}}var xm="*";function Rm(){let e=[];function t({type:c,callback:a}){return e.findIndex(h=>h.type===c&&h.callback===a)}function r(c,a){return c.type==="*"||a===c.type}function n(c){return t(c)<0&&e.push(c),()=>u(c.type,c.callback)}function o(c){e.forEach(a=>{if(r(a,c.meta.type))try{a.callback(c)}catch(h){console.error(h)}})}function i(c){if(c===xm)e.length=0;else for(let a=e.length-1;a>=0;a--)e[a].type===c&&e.splice(a,1)}function s(c){let a=t(c);a>=0&&e.splice(a,1)}function u(c,a){a?s({type:c,callback:a}):i(c)}return{add:n,call:o,remove:u}}function xc({url:e,token:t,trackingId:r,...n}){return Object.freeze({url:e,token:t,trackingId:r,...(!!n.mode&&{mode:n.mode}),...(!!n.source&&{source:n.source})})}function Em(e){let t=xc(e);return{get:()=>t,update:r=>{t=xc({...t,...r})}}}function Im(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var wi=km();function km(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,o=document.cookie.split(";");for(let i of o){let s=i.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,o){let i=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+o).toUTCString()}`,u=i?`;domain=${i}`:"";document.cookie=`${e}${r}=${n}${s}${u};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Pm(){return{getItem(e){return wi.getItem(e)||localStorage.getItem(e)},removeItem(e){wi.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),wi.setItem(e,t,31556952e3)}}}function Tm(){let e=document.referrer;return e===""?null:e}function Om(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(Im().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!n)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>Tm(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>vm(),storage:Pm()}}function Fm(){try{let e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&e.name==="QuotaExceededError"&&localStorage&&localStorage.length!==0}}function Dm(){return{getItem(){return null},removeItem(){},setItem(){}}}function Mm(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Dm()}}function qm(e){return e.get().mode!=="disabled"&&Nm()&&Fm()?Om():Mm()}function Nm(){try{return typeof window=="object"}catch{return!1}}function _m(e){return{get:()=>Object.freeze(qm(e))}}function Ic(e){let t=Em(e),r=Rm(),n=_m(t),o=Cm(n);return{emit:(i,s)=>{let u=t.get(),c=n.get(),a=wm(i,s,u,c,o);return pm({config:u,environment:c,event:a,listenerManager:r})},getMeta:i=>Ec(i,t.get(),n.get(),o),on:(i,s)=>r.add({type:i,callback:s}),off:(i,s)=>r.remove(i,s),updateConfig:i=>t.update(i),version:Rc}}m();d();f();p();var Jt=ue(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${Kt}`));var Xt=ue(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Jt(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:o,enabled:i},s)=>Ic({mode:i?"emit":"disabled",url:o??tn(e,t),token:r,trackingId:n,source:s}));m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();function Ze(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function O(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(S){s(S)}}function c(h){try{a(n.throw(h))}catch(S){s(S)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}var J;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(J||(J={}));function Ei(){return typeof window<"u"}function ji(){return typeof navigator<"u"}function Zt(){return typeof document<"u"}function Ii(){try{return typeof localStorage<"u"}catch{return!1}}function Lm(){try{return typeof sessionStorage<"u"}catch{return!1}}function Vc(){return ji()&&navigator.cookieEnabled}var jm=[J.click,J.custom,J.search,J.view],Um=(e,t)=>jm.indexOf(e)!==-1?Object.assign({language:Zt()?document.documentElement.lang:"unknown",userAgent:ji()?navigator.userAgent:"unknown"},t):t,qr=class e{static set(t,r,n){var o,i,s,u;n&&(i=new Date,i.setTime(i.getTime()+n)),u=window.location.hostname,u.indexOf(".")===-1?kc(t,r,i):(s=u.split("."),o=s[s.length-2]+"."+s[s.length-1],kc(t,r,i,o))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){var i=n[o];if(i=i.replace(/^\s+/,""),i.lastIndexOf(r,0)===0)return i.substring(r.length,i.length)}return null}static erase(t){e.set(t,"",-1)}};function kc(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Vm(){return Ii()?localStorage:Vc()?new Nr:Lm()?sessionStorage:new tr}var Nr=class e{getItem(t){return qr.get(`${e.prefix}${t}`)}removeItem(t){qr.erase(`${e.prefix}${t}`)}setItem(t,r,n){qr.set(`${e.prefix}${t}`,r,n)}};Nr.prefix="coveo_";var ki=class{constructor(){this.cookieStorage=new Nr}getItem(t){return localStorage.getItem(t)||this.cookieStorage.getItem(t)}removeItem(t){this.cookieStorage.removeItem(t),localStorage.removeItem(t)}setItem(t,r){localStorage.setItem(t,r),this.cookieStorage.setItem(t,r,31556926e3)}},tr=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},Dr="__coveo.analytics.history",Bc=20,Qc=1e3*60,$c=75,rr=class{constructor(t){this.store=t||Vm()}addElement(t){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=this.getHistoryWithInternalTime();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])}addElementAsync(t){return O(this,void 0,void 0,function*(){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=yield this.getHistoryWithInternalTimeAsync();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])})}getHistory(){let t=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(t))}getHistoryAsync(){return O(this,void 0,void 0,function*(){let t=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(t))})}getHistoryWithInternalTime(){try{let t=this.store.getItem(Dr);return t&&typeof t=="string"?JSON.parse(t):[]}catch{return[]}}getHistoryWithInternalTimeAsync(){return O(this,void 0,void 0,function*(){try{let t=yield this.store.getItem(Dr);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(Dr,JSON.stringify(t.slice(0,Bc)))}catch{}}clear(){try{this.store.removeItem(Dr)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,o)=>(o.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,$c)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>Qc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:o,value:i}=r;return{name:n,time:o,value:i}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:o}=t;return r&&typeof o=="string"&&r.toLowerCase()==="query"&&o.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},Hc=Object.freeze({__proto__:null,HistoryStore:rr,MAX_NUMBER_OF_HISTORY_ELEMENTS:Bc,MAX_VALUE_SIZE:$c,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:Qc,STORE_KEY:Dr,default:rr}),Bm=(e,t)=>O(void 0,void 0,void 0,function*(){return e===J.view?(yield Qm(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),Qm=e=>O(void 0,void 0,void 0,function*(){let t=new rr,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),On,$m=new Uint8Array(16);function Hm(){if(!On&&(On=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!On))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return On($m)}var zm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dn(e){return typeof e=="string"&&zm.test(e)}var ye=[];for(let e=0;e<256;++e)ye.push((e+256).toString(16).slice(1));function zc(e,t=0){return(ye[e[t+0]]+ye[e[t+1]]+ye[e[t+2]]+ye[e[t+3]]+"-"+ye[e[t+4]]+ye[e[t+5]]+"-"+ye[e[t+6]]+ye[e[t+7]]+"-"+ye[e[t+8]]+ye[e[t+9]]+"-"+ye[e[t+10]]+ye[e[t+11]]+ye[e[t+12]]+ye[e[t+13]]+ye[e[t+14]]+ye[e[t+15]]).toLowerCase()}function Gm(e){if(!Dn(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function Wm(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Km="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ym="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Jm(e,t,r){function n(o,i,s,u){var c;if(typeof o=="string"&&(o=Wm(o)),typeof i=="string"&&(i=Gm(i)),((c=i)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+o.length);if(a.set(i),a.set(o,i.length),a=r(a),a[6]=a[6]&15|t,a[8]=a[8]&63|128,s){u=u||0;for(let h=0;h<16;++h)s[u+h]=a[h];return s}return zc(a)}try{n.name=e}catch{}return n.DNS=Km,n.URL=Ym,n}var Xm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pc={randomUUID:Xm};function qt(e,t,r){if(Pc.randomUUID&&!t&&!e)return Pc.randomUUID();e=e||{};let n=e.random||(e.rng||Hm)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return zc(n)}function Zm(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function xi(e,t){return e<<t|e>>>32-t}function eg(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let s=unescape(encodeURIComponent(e));e=[];for(let u=0;u<s.length;++u)e.push(s.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let n=e.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let s=0;s<o;++s){let u=new Uint32Array(16);for(let c=0;c<16;++c)u[c]=e[s*64+c*4]<<24|e[s*64+c*4+1]<<16|e[s*64+c*4+2]<<8|e[s*64+c*4+3];i[s]=u}i[o-1][14]=(e.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<o;++s){let u=new Uint32Array(80);for(let g=0;g<16;++g)u[g]=i[s][g];for(let g=16;g<80;++g)u[g]=xi(u[g-3]^u[g-8]^u[g-14]^u[g-16],1);let c=r[0],a=r[1],h=r[2],S=r[3],y=r[4];for(let g=0;g<80;++g){let v=Math.floor(g/20),C=xi(c,5)+Zm(v,a,h,S)+y+t[v]+u[g]>>>0;y=S,S=h,h=xi(a,30)>>>0,a=c,c=C}r[0]=r[0]+c>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+S>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var tg=Jm("v5",80,eg),Tc=tg,Gc="2.30.43",Oc=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Mr={pageview:"pageview",event:"event"},Mn=class{constructor({client:t,uuidGenerator:r=qt}){this.client=t,this.uuidGenerator=r}},Pi=class extends Mn{constructor({client:t,uuidGenerator:r=qt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=Oc(window.location),this.lastReferrer=Zt()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Zt()?document.title:"",encoding:Zt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},o={language:navigator.language,userAgent:navigator.userAgent},i={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},i),n),o),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:o,location:i}=this.getNextValues(t,r);this.lastReferrer=o,this.pageViewId=n,this.currentLocation=i,t===Mr.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Mr.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Mr.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Mr.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=o=>o.replace(/^\/?(.*)$/,"/$1");return`${(o=>o.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return Oc(window.location)}},ut=class e{constructor(t,r){if(!Dn(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>e.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let n=new URL(t);return r.some(o=>new RegExp(o.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(n.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[n,o]=r;if(n.length!==32||isNaN(parseInt(o)))return null;let i=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return Dn(i)?new e(i,Number.parseInt(o)*1e3):null}};ut.cvo_cid="cvo_cid";ut.expirationTime=120;var Ti=class extends Mn{constructor({client:t,uuidGenerator:r=qt}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return O(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),n=yield this.client.getCurrentVisitorId();return r.searchParams.set(ut.cvo_cid,new ut(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};Ti.Id="link";var Fe=Object.keys;function Fn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var Ri=128,Wc=192,Fc=224,Dc=240;function rg(e){return(e&248)===Dc?4:(e&Dc)===Fc?3:(e&Fc)===Wc?2:1}function ng(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&e.charAt(r-3)=="%";){let n=Number.parseInt(e.substring(r-2,r),16);if((n&Ri)!=Ri)break;if(r-=3,(n&Wc)!=Ri){t-r>=rg(n)*3&&(r=t);break}}return e.substring(0,r)}var Oi={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},og=Fe(Oi).map(e=>Oi[e]),ig=[...og].join("|"),sg=new RegExp(`^(${ig}$)`),ag={svcAction:"svc_action",svcActionData:"svc_action_data"},cg=e=>Fe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=Oi[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),ug=e=>sg.test(e),lg=[ug],Mc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},qc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},Se={action:"pa",list:"pal",listSource:"pls"},qn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},dg=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],Fi={id:"quoteId",affiliation:"quoteAffiliation"},Di={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},pg={add:Se,bookmark_add:Se,bookmark_remove:Se,click:Se,checkout:Se,checkout_option:Se,detail:Se,impression:Se,remove:Se,refund:Object.assign(Object.assign({},Se),qn),purchase:Object.assign(Object.assign({},Se),qn),quickview:Se,quote:Object.assign(Object.assign({},Se),Fi),review:Object.assign(Object.assign({},Se),Di)},fg=Fe(Mc).map(e=>Mc[e]),mg=Fe(qc).map(e=>qc[e]),gg=Fe(Se).map(e=>Se[e]),hg=Fe(qn).map(e=>qn[e]),yg=Fe(Di).map(e=>Di[e]),Sg=Fe(Fi).map(e=>Fi[e]),vg=[...fg,"custom"].join("|"),Cg=[...mg,"custom"].join("|"),Kc="(pr[0-9]+)",Yc="(il[0-9]+pi[0-9]+)",Ag=new RegExp(`^${Kc}(${vg})$`),bg=new RegExp(`^(${Yc}(${Cg}))|(il[0-9]+nm)$`),wg=new RegExp(`^(${gg.join("|")})$`),xg=new RegExp(`^(${hg.join("|")})$`),Rg=new RegExp(`^${Kc}custom$`),Eg=new RegExp(`^${Yc}custom$`),Ig=new RegExp(`^(${[...dg,...yg,...Sg].join("|")})$`),kg=e=>Ag.test(e),Pg=e=>bg.test(e),Tg=e=>wg.test(e),Og=e=>xg.test(e),Fg=e=>Ig.test(e),Dg=[Pg,kg,Tg,Og,Fg],Mg=[Rg,Eg],qg={anonymizeIp:"aip"},Ng={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},_g={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},Lg=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],jg=Object.assign(Object.assign(Object.assign(Object.assign({},qg),Ng),_g),Lg.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),Mi=Object.assign(Object.assign({},jg),ag),Ug=e=>{let t=!!e.action&&pg[e.action]||{};return Fe(e).reduce((r,n)=>{let o=t[n]||Mi[n]||n;return Object.assign(Object.assign({},r),{[o]:e[n]})},{})},Vg=Fe(Mi).map(e=>Mi[e]),Bg=e=>Vg.indexOf(e)!==-1,Qg=e=>e==="custom",$g=e=>[...Dg,...lg,Bg,Qg].some(t=>t(e)),Hg=e=>Fe(e).reduce((t,r)=>{let n=zg(r);return n?Object.assign(Object.assign({},t),Gg(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),zg=e=>{let t;return[...Mg].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Gg=(e,t)=>Fe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),qi=class{constructor(t){this.opts=t}sendEvent(t,r){return O(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error("navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like \"sendbeacon-polyfill\".");let{baseUrl:n,preprocessRequest:o}=this.opts,i=yield this.getQueryParamsForEventType(t),{url:s,payload:u}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${i}`,r,o),c=this.encodeForEventType(t,u),a=new Blob([c],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(s,a)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,n){return O(this,void 0,void 0,function*(){let o=t,i=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:u,body:c}=s;o=u||t;try{i=JSON.parse(c)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:i,url:o}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return O(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:n}=this.opts,o=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",o?`visitorId=${o}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(t){return[J.click,J.custom,J.search,J.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let o=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(o=`access_token=${encodeURIComponent(n)}&${o}`),o}},Ni=class{sendEvent(t,r){return O(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return O(this,void 0,void 0,function*(){return Promise.resolve()})}},Nc=b.fetch,Nn=class{constructor(t){this.opts=t}sendEvent(t,r){return O(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:o,preprocessRequest:i}=this.opts,s=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",u={url:`${n}/analytics/${t}${s}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},c=Object.assign(Object.assign({},u),i?yield i(u,"analyticsFetch"):{}),{url:a}=c,h=Ze(c,["url"]),S;try{S=yield Nc(a,h)}catch(y){console.error("An error has occured when sending the event.",y);return}if(S.ok){let y=yield S.json();return y.visitorId&&o.setCurrentVisitorId(y.visitorId),y}else{try{S.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,S,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return O(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield Nc(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[J.click,J.custom,J.search,J.view].indexOf(t)!==-1}getVisitorIdParam(){return O(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},_i=class{constructor(t,r){Ii()&&Vc()?this.storage=new ki:Ii()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new tr),this.client=new Nn(t),this.beaconClient=new qi(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:o,payload:i}of n)this.beaconClient.sendEvent(o,i)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},Li=class{constructor(t,r){this.storage=r||new tr,this.client=new Nn(t)}getClientDependingOnEventType(t){return this.client}},_n=class{constructor(){this.storage=new tr,this.client=new Ni}getClientDependingOnEventType(t){return this.client}},Wg="xx",Kg=e=>e?.startsWith(Wg)||!1,Yg=`
|
|
26
|
+
`;return new Qo(r)}var Qo=class extends Error{constructor(e){super(e),this.name="SchemaValidationError"}},Me=class{constructor(e){this.definition=e}validate(e={},t=""){let r={...this.default,...e},n=[];for(let o in this.definition){let i=this.definition[o].validate(r[o]);i&&n.push(`${o}: ${i}`)}if(n.length)throw xp(n,t);return r}get default(){let e={};for(let t in this.definition){let r=this.definition[t].default;r!==void 0&&(e[t]=r)}return e}},Et=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&K(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function Ut(e){return e===void 0}function Rp(e){return e===null}function K(e){return Ut(e)||Rp(e)}var Ce=class{constructor(e={}){oe(this,"value");this.config=e,this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t||(Ep(e)?e<this.config.min?`minimum value of ${this.config.min} not respected.`:e>this.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function Ep(e){return Ut(e)||ca(e)}function ca(e){return typeof e=="number"&&!isNaN(e)}var se=class{constructor(e={}){oe(this,"value");this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t||(Ip(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function Ip(e){return Ut(e)||ua(e)}function ua(e){return typeof e=="boolean"}var kp=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i,G=class{constructor(e={}){oe(this,"value");oe(this,"config");this.config={emptyAllowed:!0,url:!1,...e},this.value=new Et(this.config)}validate(e){let{emptyAllowed:t,url:r,regex:n,constrainTo:o,ISODate:i}=this.config,s=this.value.validate(e);if(s)return s;if(Ut(e))return null;if(!la(e))return"value is not a string.";if(!t&&!e.length)return"value is an empty string.";if(r)try{new URL(e)}catch{return"value is not a valid URL."}return n&&!n.test(e)?`value did not match provided regex ${n}`:o&&!o.includes(e)?`value should be one of: ${o.join(", ")}.`:i&&!(kp.test(e)&&new Date(e).toString()!=="Invalid Date")?"value is not a valid ISO8601 date string":null}get default(){return this.value.default}get required(){return this.value.required}};function la(e){return Object.prototype.toString.call(e)==="[object String]"}var ne=class{constructor(e={}){oe(this,"config");this.config={options:{required:!1},values:{},...e}}validate(e){if(Ut(e))return this.config.options.required?"value is required and is currently undefined":null;if(!da(e))return"value is not an object";for(let[r,n]of Object.entries(this.config.values))if(n.required&&K(e[r]))return`value does not contain ${r}`;let t="";for(let[r,n]of Object.entries(this.config.values)){let o=e[r],i=n.validate(o);i!==null&&(t+=" "+i)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function da(e){return e!==void 0&&typeof e=="object"}var Ke=class{constructor(e={}){oe(this,"value");this.config=e,this.value=new Et(this.config)}validate(e){if(!K(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if(K(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length<this.config.min)return`value contains less than ${this.config.min}`;if(this.config.each!==void 0){let r="";return e.forEach(n=>{this.config.each.required&&K(n)&&(r=`value is null or undefined: ${e.join(",")}`);let o=this.validatePrimitiveValue(n,this.config.each);o!==null&&(r+=" "+o)}),r===""?null:r}return null}validatePrimitiveValue(e,t){return ua(e)||la(e)||ca(e)||da(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function pa(e){return Array.isArray(e)}var $o=class{constructor(e){oe(this,"value");this.config=e,this.value=new Et(e)}validate(e){let t=this.value.validate(e);return t!==null?t:Ut(e)||Object.values(this.config.enum).find(n=>n===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};m();d();f();p();var Zr=e=>e;m();d();f();p();m();d();f();p();var ka=Te(Ca(),1);m();d();f();p();m();d();f();p();var ef="recommendation-internal-options",QC=Symbol.for(ef);var Oe=new Error("Failed to load reducers."),Vt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var kt=class extends Error{constructor(r,n){super();oe(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};m();d();f();p();function Aa(e){return Array.isArray(e)}function ba(e,t){return[...e.reduce((r,n)=>{let o=t(n);return r.has(o)||r.set(o,n),r},new Map).values()]}var tf=new Set(["1",1,"yes",!0]);function wa(){if(typeof navigator>"u"||typeof window>"u")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>tf.has(r))}function xa(e){let t={};for(let[r,n]of e)t[r]=n;return t}function br(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}m();d();f();p();function Ra(e){let t=[];for(let r in e){let n=encodeURIComponent(r),o=encodeURIComponent(e[r]);t.push(`${n}=${o}`)}return t.join("&")}function Ea(e){return typeof e!="object"||!e?!1:Object.values(e).every(rf)}function rf(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Ia(e){return e===429}var it=class e{static call(t){return _asyncToGenerator(function*(){let r=nf(t),{logger:n}=t,o=yield e.preprocessRequest(r,t);n.info(o,"Platform request");let{url:i,...s}=o,u=/*#__PURE__*/function(){var _ref=_asyncToGenerator(function*(){let c=yield E(i,s);if(Ia(c.status))throw c;return c});return function u(){return _ref.apply(this,arguments)}}();try{let c=yield(0,ka.backOff)(u,{retry:a=>{let h=a&&Ia(a.status);return h&&n.info("Platform retrying request"),h}});switch(c.status){case 419:case 401:throw n.info("Platform renewing token"),new Vt;case 404:throw new kt(i,c.status);default:return n.info({response:c,requestInfo:o},"Platform response"),c}}catch(c){return c.message==="Failed to fetch"?new kt(i):c}})()}static preprocessRequest(t,r){return _asyncToGenerator(function*(){let{origin:n,preprocessRequest:o,logger:i,requestMetadata:s}=r,{signal:u,...c}=t,a=br(c);try{let h=yield o(t,n,s);return{...t,...h}}catch(h){i.error(h,"Platform request preprocessing failed. Returning default request options.")}return a})()}};function ce(e,t="prod",r="platform"){let n=t==="prod"?"":t,o=r==="platform"?"":`.${r}`;return`https://${e}${o}.org${n}.coveo.com`}function Bt(e,t="prod"){return`${ce(e,t)}/rest/search/v2`}function tn(e,t="prod"){return`${ce(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function nf(e){let{url:t,method:r,requestParams:n,contentType:o,accessToken:i,signal:s}=e,u=e.method==="POST"||e.method==="PUT",c=of(n,o);return{url:t,method:r,headers:{"Content-Type":o,Authorization:`Bearer ${i}`,...e.headers},...(u&&{body:c}),signal:s}}function of(e,t){return t==="application/x-www-form-urlencoded"?Ea(e)?Ra(e):"":JSON.stringify(e)}m();d();f();p();m();d();f();p();var Qt=class{constructor(t){oe(this,"_basePath");oe(this,"_params",{});this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}};m();d();f();p();function Zo(e){let{url:t,accessToken:r,organizationId:n,authentication:o,...i}=e;return i}var ei=e=>{let{response:t}=e;return t.body?sf(e):af(t)},sf=e=>uf(e)?lf(e):cf(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},af=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function cf(e){return e.body.statusCode!==void 0}function uf(e){return e.body.exception!==void 0}var lf=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});m();d();f();p();function Pa(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}m();d();f();p();var ti=(e,t,r,n)=>{let o=new Qt(`${e.url}${n}`);return o.addParam("organizationId",e.organizationId),e.authentication&&o.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:o.href,origin:"searchApiFetch"}};var Ta=(e,t)=>{let r=new Qt(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.authentication&&r.addParam("authentication",e.authentication),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),r.href},ri=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(function*(e,t){let r=yield it.call({...ti(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Zo(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=Pa(r),o=yield r.arrayBuffer(),s=new TextDecoder(n).decode(o);return df(s)?{success:s}:{error:ei({response:r,body:s})}});return function ri(_x,_x2){return _ref2.apply(this,arguments)}}();function df(e){return typeof e=="string"}m();d();f();p();function pf(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function ff(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function rn(e,t){if(t&&e.name==="AbortError")return{error:ff(e)};if(e instanceof kt)return{error:pf(e)};throw e}m();d();f();p();m();d();f();p();var nn=(e,t,r,n,o={})=>{mf(e);let i=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=gf(o),u=s?`${i}?${s}`:i;return{accessToken:e.accessToken,method:t,contentType:r,url:u,origin:"caseAssistApiFetch"}},on=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),sn=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),mf=e=>{if(!e.url)throw new Error("The 'url' attribute must contain a valid platform URL.");if(!e.organizationId)throw new Error("The 'organizationId' attribute must contain a valid organization ID.");if(!e.accessToken)throw new Error("The 'accessToken' attribute must contain a valid platform access token.");if(!e.caseAssistId)throw new Error("The 'caseAssistId' attribute must contain a valid Case Assist configuration ID.")},gf=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var Oa=e=>{let t=e.debug?{debug:"1"}:{};return{...nn(e,"POST","application/json","/classify",t),requestParams:hf(e)}},hf=e=>({clientId:e.clientId,locale:e.locale,fields:on(e.fields)});m();d();f();p();var Fa=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...nn(e,"POST","application/json","/documents/suggest",t),requestParams:yf(e)}},yf=e=>({clientId:e.clientId,locale:e.locale,fields:on(e.fields),context:e.context});var an=class{constructor(t){this.options=t}getCaseClassifications(t){var _this=this;return _asyncToGenerator(function*(){let r=yield it.call({...Oa(t),..._this.options});if(r instanceof Error)return rn(r);let n=yield r.json();return r.ok?{success:n}:{error:n}})()}getDocumentSuggestions(t){var _this2=this;return _asyncToGenerator(function*(){let r=yield it.call({...Fa(t),..._this2.options});if(r instanceof Error)return rn(r);let n=yield r.json();return r.ok?{success:n}:{error:n}})()}html(t){var _this3=this;return _asyncToGenerator(function*(){return ri(t,_this3.options)})()}};m();d();f();p();m();d();f();p();m();d();f();p();function me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Sf=typeof Symbol=="function"&&Symbol.observable||"@@observable",Da=Sf,ni=()=>Math.random().toString(36).substring(7).split("").join("."),vf={INIT:`@@redux/INIT${ni()}`,REPLACE:`@@redux/REPLACE${ni()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ni()}`},cn=vf;function Ue(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function oi(e,t,r){if(typeof e!="function")throw new Error(me(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(me(1));return r(oi)(e,t)}let n=e,o=t,i=new Map,s=i,u=0,c=!1;function a(){s===i&&(s=new Map,i.forEach((x,R)=>{s.set(R,x)}))}function h(){if(c)throw new Error(me(3));return o}function S(x){if(typeof x!="function")throw new Error(me(4));if(c)throw new Error(me(5));let R=!0;a();let A=u++;return s.set(A,x),function(){if(R){if(c)throw new Error(me(6));R=!1,a(),s.delete(A),i=null}}}function y(x){if(!Ue(x))throw new Error(me(7));if(typeof x.type>"u")throw new Error(me(8));if(typeof x.type!="string")throw new Error(me(17));if(c)throw new Error(me(9));try{c=!0,o=n(o,x)}finally{c=!1}return(i=s).forEach(A=>{A()}),x}function g(x){if(typeof x!="function")throw new Error(me(10));n=x,y({type:cn.REPLACE})}function v(){let x=S;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(me(11));function A(){let P=R;P.next&&P.next(h())}return A(),{unsubscribe:x(A)}},[Da](){return this}}}return y({type:cn.INIT}),{dispatch:y,subscribe:S,getState:h,replaceReducer:g,[Da]:v}}function Cf(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:cn.INIT})>"u")throw new Error(me(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function $t(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let u=t[s];typeof e[u]=="function"&&(r[u]=e[u])}let n=Object.keys(r),o,i;try{Cf(r)}catch(s){i=s}return function(u={},c){if(i)throw i;let a=!1,h={};for(let S=0;S<n.length;S++){let y=n[S],g=r[y],v=u[y],C=g(v,c);if(typeof C>"u"){let x=c&&c.type;throw new Error(me(14))}h[y]=C,a=a||C!==v}return a=a||n.length!==Object.keys(u).length,a?h:u}}function Ht(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Ma(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(me(15))},s={getState:o.getState,dispatch:(c,...a)=>i(c,...a)},u=e.map(c=>c(s));return i=Ht(...u)(o.dispatch),{...o,dispatch:i}}}function un(e){return Ue(e)&&"type"in e&&typeof e.type=="string"}m();d();f();p();var mi=Symbol.for("immer-nothing"),wr=Symbol.for("immer-draftable"),Ae=Symbol.for("immer-state");function ge(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tt=Object.getPrototypeOf;function Re(e){return!!e&&!!e[Ae]}function be(e){return e?ja(e)||Array.isArray(e)||!!e[wr]||!!e.constructor?.[wr]||kr(e)||Pr(e):!1}var Af=Object.prototype.constructor.toString();function ja(e){if(!e||typeof e!="object")return!1;let t=Tt(e);if(t===null)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Af}function gi(e){return Re(e)||ge(15,e),e[Ae].base_}function xr(e,t){Ot(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Ot(e){let t=e[Ae];return t?t.type_:Array.isArray(e)?1:kr(e)?2:Pr(e)?3:0}function Rr(e,t){return Ot(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ii(e,t){return Ot(e)===2?e.get(t):e[t]}function Ua(e,t,r){let n=Ot(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function bf(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function kr(e){return e instanceof Map}function Pr(e){return e instanceof Set}function Pt(e){return e.copy_||e.base_}function ci(e,t){if(kr(e))return new Map(e);if(Pr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ja(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[Ae];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){let s=o[i],u=n[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(Tt(e),n)}else{let n=Tt(e);if(n!==null&&r)return{...e};let o=Object.create(n);return Object.assign(o,e)}}function pn(e,t=!1){return fn(e)||Re(e)||!be(e)||(Ot(e)>1&&(e.set=e.add=e.clear=e.delete=wf),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>pn(n,!0))),e}function wf(){ge(2)}function fn(e){return Object.isFrozen(e)}var ui={};function Ft(e){let t=ui[e];return t||ge(0,e),t}function xf(e,t){ui[e]||(ui[e]=t)}var Er;function Va(){return Er}function Rf(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function qa(e,t){t&&(Ft("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function li(e){di(e),e.drafts_.forEach(Ef),e.drafts_=null}function di(e){e===Er&&(Er=e.parent_)}function Na(e){return Er=Rf(Er,e)}function Ef(e){let t=e[Ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _a(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ae].modified_&&(li(t),ge(4)),be(e)&&(e=ln(t,e),t.parent_||dn(t,e)),t.patches_&&Ft("Patches").generateReplacementPatches_(r[Ae].base_,e,t.patches_,t.inversePatches_)):e=ln(t,r,[]),li(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mi?e:void 0}function ln(e,t,r){if(fn(t))return t;let n=t[Ae];if(!n)return xr(t,(o,i)=>La(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return dn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let o=n.copy_,i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),xr(i,(u,c)=>La(e,n,o,u,c,r,s)),dn(e,o,!1),r&&e.patches_&&Ft("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function La(e,t,r,n,o,i,s){if(Re(o)){let u=i&&t&&t.type_!==3&&!Rr(t.assigned_,n)?i.concat(n):void 0,c=ln(e,o,u);if(Ua(r,n,c),Re(c))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(be(o)&&!fn(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ln(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&dn(e,o)}}function dn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pn(t,r)}function If(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Va(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=hi;r&&(o=[n],i=Ir);let{revoke:s,proxy:u}=Proxy.revocable(o,i);return n.draft_=u,n.revoke_=s,u}var hi={get(e,t){if(t===Ae)return e;let r=Pt(e);if(!Rr(r,t))return kf(e,r,t);let n=r[t];return e.finalized_||!be(n)?n:n===si(e.base_,t)?(ai(e),e.copy_[t]=fi(n,e)):n},has(e,t){return t in Pt(e)},ownKeys(e){return Reflect.ownKeys(Pt(e))},set(e,t,r){let n=Ba(Pt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=si(Pt(e),t),i=o?.[Ae];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(bf(r,o)&&(r!==void 0||Rr(e.base_,t)))return!0;ai(e),pi(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return si(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ai(e),pi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Pt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ge(11)},getPrototypeOf(e){return Tt(e.base_)},setPrototypeOf(){ge(12)}},Ir={};xr(hi,(e,t)=>{Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)};Ir.set=function(e,t,r){return hi.set.call(this,e[0],t,r,e[0])};function si(e,t){let r=e[Ae];return(r?Pt(r):e)[t]}function kf(e,t,r){let n=Ba(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Ba(e,t){if(!(t in e))return;let r=Tt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Tt(r)}}function pi(e){e.modified_||(e.modified_=!0,e.parent_&&pi(e.parent_))}function ai(e){e.copy_||(e.copy_=ci(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let i=r;r=t;let s=this;return function(c=i,...a){return s.produce(c,h=>r.call(this,h,...a))}}typeof r!="function"&&ge(6),n!==void 0&&typeof n!="function"&&ge(7);let o;if(be(t)){let i=Na(this),s=fi(t,void 0),u=!0;try{o=r(s),u=!1}finally{u?li(i):di(i)}return qa(i,n),_a(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===mi&&(o=void 0),this.autoFreeze_&&pn(o,!0),n){let i=[],s=[];Ft("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else ge(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let n,o;return[this.produce(t,r,(s,u)=>{n=s,o=u}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){be(e)||ge(8),Re(e)&&(e=Qa(e));let t=Na(this),r=fi(e,void 0);return r[Ae].isManual_=!0,di(t),r}finishDraft(e,t){let r=e&&e[Ae];(!r||!r.isManual_)&&ge(9);let{scope_:n}=r;return qa(n,t),_a(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Ft("Patches").applyPatches_;return Re(e)?n(e,t):this.produce(e,o=>n(o,t))}};function fi(e,t){let r=kr(e)?Ft("MapSet").proxyMap_(e,t):Pr(e)?Ft("MapSet").proxySet_(e,t):If(e,t);return(t?t.scope_:Va()).drafts_.push(r),r}function Qa(e){return Re(e)||ge(10,e),$a(e)}function $a(e){if(!be(e)||fn(e))return e;let t=e[Ae],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ci(e,t.scope_.immer_.useStrictShallowCopy_)}else r=ci(e,!0);return xr(r,(n,o)=>{Ua(r,n,$a(o))}),t&&(t.finalized_=!1),r}function Ha(){let t="replace",r="add",n="remove";function o(y,g,v,C){switch(y.type_){case 0:case 2:return s(y,g,v,C);case 1:return i(y,g,v,C);case 3:return u(y,g,v,C)}}function i(y,g,v,C){let{base_:x,assigned_:R}=y,A=y.copy_;A.length<x.length&&([x,A]=[A,x],[v,C]=[C,v]);for(let w=0;w<x.length;w++)if(R[w]&&A[w]!==x[w]){let P=g.concat([w]);v.push({op:t,path:P,value:S(A[w])}),C.push({op:t,path:P,value:S(x[w])})}for(let w=x.length;w<A.length;w++){let P=g.concat([w]);v.push({op:r,path:P,value:S(A[w])})}for(let w=A.length-1;x.length<=w;--w){let P=g.concat([w]);C.push({op:n,path:P})}}function s(y,g,v,C){let{base_:x,copy_:R}=y;xr(y.assigned_,(A,w)=>{let P=ii(x,A),N=ii(R,A),T=w?Rr(x,A)?t:r:n;if(P===N&&T===t)return;let k=g.concat(A);v.push(T===n?{op:T,path:k}:{op:T,path:k,value:N}),C.push(T===r?{op:n,path:k}:T===n?{op:r,path:k,value:S(P)}:{op:t,path:k,value:S(P)})})}function u(y,g,v,C){let{base_:x,copy_:R}=y,A=0;x.forEach(w=>{if(!R.has(w)){let P=g.concat([A]);v.push({op:n,path:P,value:w}),C.unshift({op:r,path:P,value:w})}A++}),A=0,R.forEach(w=>{if(!x.has(w)){let P=g.concat([A]);v.push({op:r,path:P,value:w}),C.unshift({op:n,path:P,value:w})}A++})}function c(y,g,v,C){v.push({op:t,path:[],value:g===mi?void 0:g}),C.push({op:t,path:[],value:y})}function a(y,g){return g.forEach(v=>{let{path:C,op:x}=v,R=y;for(let N=0;N<C.length-1;N++){let T=Ot(R),k=C[N];typeof k!="string"&&typeof k!="number"&&(k=""+k),(T===0||T===1)&&(k==="__proto__"||k==="constructor")&&ge(19),typeof R=="function"&&k==="prototype"&&ge(19),R=ii(R,k),typeof R!="object"&&ge(18,C.join("/"))}let A=Ot(R),w=h(v.value),P=C[C.length-1];switch(x){case t:switch(A){case 2:return R.set(P,w);case 3:ge(16);default:return R[P]=w}case r:switch(A){case 1:return P==="-"?R.push(w):R.splice(P,0,w);case 2:return R.set(P,w);case 3:return R.add(w);default:return R[P]=w}case n:switch(A){case 1:return R.splice(P,1);case 2:return R.delete(P);case 3:return R.delete(v.value);default:return delete R[P]}default:ge(17,x)}}),y}function h(y){if(!be(y))return y;if(Array.isArray(y))return y.map(h);if(kr(y))return new Map(Array.from(y.entries()).map(([v,C])=>[v,h(C)]));if(Pr(y))return new Set(Array.from(y).map(h));let g=Object.create(Tt(y));for(let v in y)g[v]=h(y[v]);return Rr(y,wr)&&(g[wr]=y[wr]),g}function S(y){return Re(y)?h(y):y}xf("Patches",{applyPatches_:a,generatePatches_:o,generateReplacementPatches_:c})}var Ee=new Pf,Je=Ee.produce,mn=Ee.produceWithPatches.bind(Ee),$b=Ee.setAutoFreeze.bind(Ee),Hb=Ee.setUseStrictShallowCopy.bind(Ee),yi=Ee.applyPatches.bind(Ee),zb=Ee.createDraft.bind(Ee),Gb=Ee.finishDraft.bind(Ee);m();d();f();p();function Tf(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Of(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ff(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var za=e=>Array.isArray(e)?e:[e];function Df(e){let t=Array.isArray(e[0])?e[0]:e;return Ff(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mf(e,t){let r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var ew=Symbol();var tw=Object.getPrototypeOf({});var qf=class{constructor(e){this.value=e}deref(){return this.value}},Nf=typeof WeakRef<"u"?WeakRef:qf,_f=0,Ga=1;function gn(){return{s:_f,v:void 0,o:null,p:null}}function zt(e,t={}){let r=gn(),{resultEqualityCheck:n}=t,o,i=0;function s(){let u=r,{length:c}=arguments;for(let S=0,y=c;S<y;S++){let g=arguments[S];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=u.o;v===null&&(u.o=v=new WeakMap);let C=v.get(g);C===void 0?(u=gn(),v.set(g,u)):u=C}else{let v=u.p;v===null&&(u.p=v=new Map);let C=v.get(g);C===void 0?(u=gn(),v.set(g,u)):u=C}}let a=u,h;if(u.s===Ga)h=u.v;else if(h=e.apply(null,arguments),i++,n){let S=o?.deref?.()??o;S!=null&&n(S,h)&&(h=S,i!==0&&i--),o=typeof h=="object"&&h!==null||typeof h=="function"?new Nf(h):h}return a.s=Ga,a.v=h,h}return s.clearCache=()=>{r=gn(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Wa(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,u,c={},a=o.pop();typeof a=="object"&&(c=a,a=o.pop()),Tf(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let h={...r,...c},{memoize:S,memoizeOptions:y=[],argsMemoize:g=zt,argsMemoizeOptions:v=[],devModeChecks:C={}}=h,x=za(y),R=za(v),A=Df(o),w=S(function(){return i++,a.apply(null,arguments)},...x),P=!0,N=g(function(){s++;let k=Mf(A,arguments);return u=w.apply(null,k),u},...R);return Object.assign(N,{resultFunc:a,memoizedResultFunc:w,dependencies:A,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:S,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var ue=Wa(zt),Lf=Object.assign((e,t=ue)=>{Of(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,u,c)=>(s[r[c]]=u,s),{}))},{withTypes:()=>Lf});m();d();f();p();function Ka(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Ya=Ka(),Ja=Ka;var jf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ht:Ht.apply(null,arguments)},vw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Uf=e=>e&&typeof e.match=="function";function U(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(qe(0));return{type:e,payload:o.payload,...("meta"in o&&{meta:o.meta}),...("error"in o&&{error:o.error})}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>un(n)&&n.type===e,r}var rc=class Tr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Tr.prototype)}static get[Symbol.species](){return Tr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Tr(...t[0].concat(this)):new Tr(...t.concat(this))}};function Xa(e){return be(e)?Je(e,()=>{}):e}function Za(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vf(e){return typeof e=="boolean"}var Bf=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},s=new rc;return r&&(Vf(r)?s.push(Ya):s.push(Ja(r.extraArgument))),s},st="RTK_autoBatch",Wt=()=>e=>({payload:e,meta:{[st]:!0}}),ec=e=>t=>{setTimeout(t,e)},Qf=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,s=!1,u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ec(10):e.type==="callback"?e.queueNotification:ec(e.timeout),a=()=>{s=!1,i&&(i=!1,u.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let S=()=>o&&h(),y=n.subscribe(S);return u.add(h),()=>{y(),u.delete(h)}},dispatch(h){try{return o=!h?.meta?.[st],i=!o,i&&(s||(s=!0,c(a))),n.dispatch(h)}finally{o=!0}}})},$f=e=>function(r){let{autoBatch:n=!0}=r??{},o=new rc(e);return n&&o.push(Qf(typeof n=="object"?n:void 0)),o};function nc(e){let t=Bf(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{},u;if(typeof r=="function")u=r;else if(Ue(r))u=$t(r);else throw new Error(qe(1));let c;typeof n=="function"?c=n(t):c=t();let a=Ht;o&&(a=jf({trace:!1,...(typeof o=="object"&&o)}));let h=Ma(...c),S=$f(h),y=typeof s=="function"?s(S):S(),g=a(...y);return oi(u,i,g)}function oc(e){let t={},r=[],n,o={addCase(i,s){let u=typeof i=="string"?i:i.type;if(!u)throw new Error(qe(28));if(u in t)throw new Error(qe(29));return t[u]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function Hf(e){return typeof e=="function"}function le(e,t){let[r,n,o]=oc(t),i;if(Hf(e))i=()=>Xa(e());else{let u=Xa(e);i=()=>u}function s(u=i(),c){let a=[r[c.type],...n.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return a.filter(h=>!!h).length===0&&(a=[o]),a.reduce((h,S)=>{if(S)if(Re(h)){let g=S(h,c);return g===void 0?h:g}else{if(be(h))return Je(h,y=>S(y,c));{let y=S(h,c);if(y===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return h},u)}return s.getInitialState=i,s}var ic=(e,t)=>Uf(e)?e.match(t):e(t);function Ve(...e){return t=>e.some(r=>ic(r,t))}function Gt(...e){return t=>e.every(r=>ic(r,t))}function yn(e,t){if(!e||!e.meta)return!1;let r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Or(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Sn(...e){return e.length===0?t=>yn(t,["pending"]):Or(e)?Ve(...e.map(t=>t.pending)):Sn()(e[0])}function Dt(...e){return e.length===0?t=>yn(t,["rejected"]):Or(e)?Ve(...e.map(t=>t.rejected)):Dt()(e[0])}function Fr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Gt(Dt(...e),t):Or(e)?Gt(Dt(...e),t):Fr()(e[0])}function Xe(...e){return e.length===0?t=>yn(t,["fulfilled"]):Or(e)?Ve(...e.map(t=>t.fulfilled)):Xe()(e[0])}function vn(...e){return e.length===0?t=>yn(t,["pending","fulfilled","rejected"]):Or(e)?Ve(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):vn()(e[0])}var zf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cn=(e=21)=>{let t="",r=e;for(;r--;)t+=zf[Math.random()*64|0];return t},Gf=["name","message","stack","code"],Si=class{constructor(e,t){oe(this,"_type");this.payload=e,this.meta=t}},tc=class{constructor(e,t){oe(this,"_type");this.payload=e,this.meta=t}},Wf=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Gf)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Z=(()=>{function e(t,r,n){let o=U(t+"/fulfilled",(c,a,h,S)=>({payload:c,meta:{...(S||{}),arg:h,requestId:a,requestStatus:"fulfilled"}})),i=U(t+"/pending",(c,a,h)=>({payload:void 0,meta:{...(h||{}),arg:a,requestId:c,requestStatus:"pending"}})),s=U(t+"/rejected",(c,a,h,S,y)=>({payload:S,error:(n&&n.serializeError||Wf)(c||"Rejected"),meta:{...(y||{}),arg:h,requestId:a,rejectedWithValue:!!S,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function u(c){return(a,h,S)=>{let y=n?.idGenerator?n.idGenerator(c):Cn(),g=new l.AbortController,v,C;function x(A){C=A,g.abort()}let R=_asyncToGenerator(function*(){let A;try{let P=n?.condition?.(c,{getState:h,extra:S});if(Yf(P)&&(P=yield P),P===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let N=new Promise((T,k)=>{v=()=>{k({name:"AbortError",message:C||"Aborted"})},g.signal.addEventListener("abort",v)});a(i(y,c,n?.getPendingMeta?.({requestId:y,arg:c},{getState:h,extra:S}))),A=yield Promise.race([N,Promise.resolve(r(c,{dispatch:a,getState:h,extra:S,requestId:y,signal:g.signal,abort:x,rejectWithValue:(T,k)=>new Si(T,k),fulfillWithValue:(T,k)=>new tc(T,k)})).then(T=>{if(T instanceof Si)throw T;return T instanceof tc?o(T.payload,y,c,T.meta):o(T,y,c)})])}catch(P){A=P instanceof Si?s(null,y,c,P.payload,P.meta):s(P,y,c)}finally{v&&g.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&s.match(A)&&A.meta.condition||a(A),A})();return Object.assign(R,{abort:x,requestId:y,arg:c,unwrap(){return R.then(Kf)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:o,settled:Ve(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Kf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Yf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sc=Symbol.for("rtk-slice-createasyncthunk"),xw={[sc]:Z};function Jf(e,t){return`${e}/${t}`}function Xf({creators:e}={}){let t=e?.asyncThunk?.[sc];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(qe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(em()):n.reducers)||{},u=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(A,w){let P=typeof A=="string"?A:A.type;if(!P)throw new Error(qe(12));if(P in c.sliceCaseReducersByType)throw new Error(qe(13));return c.sliceCaseReducersByType[P]=w,a},addMatcher(A,w){return c.sliceMatchers.push({matcher:A,reducer:w}),a},exposeAction(A,w){return c.actionCreators[A]=w,a},exposeCaseReducer(A,w){return c.sliceCaseReducersByName[A]=w,a}};u.forEach(A=>{let w=s[A],P={reducerName:A,type:Jf(o,A),createNotation:typeof n.reducers=="function"};rm(w)?om(P,w,a,t):tm(P,w,a)});function h(){let[A={},w=[],P=void 0]=typeof n.extraReducers=="function"?oc(n.extraReducers):[n.extraReducers],N={...A,...c.sliceCaseReducersByType};return le(n.initialState,T=>{for(let k in N)T.addCase(k,N[k]);for(let k of c.sliceMatchers)T.addMatcher(k.matcher,k.reducer);for(let k of w)T.addMatcher(k.matcher,k.reducer);P&&T.addDefaultCase(P)})}let S=A=>A,y=new Map,g;function v(A,w){return g||(g=h()),g(A,w)}function C(){return g||(g=h()),g.getInitialState()}function x(A,w=!1){function P(T){let k=T[A];return typeof k>"u"&&w&&(k=C()),k}function N(T=S){let k=Za(y,w,()=>new WeakMap);return Za(k,T,()=>{let q={};for(let[D,_]of Object.entries(n.selectors??{}))q[D]=Zf(_,T,C,w);return q})}return{reducerPath:A,getSelectors:N,get selectors(){return N(P)},selectSlice:P}}let R={name:o,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...x(i),injectInto(A,{reducerPath:w,...P}={}){let N=w??i;return A.inject({reducerPath:N,reducer:v},P),{...R,...x(N,!0)}}};return R}}function Zf(e,t,r,n){function o(i,...s){let u=t(i);return typeof u>"u"&&n&&(u=r()),e(u,...s)}return o.unwrapped=e,o}var Mt=Xf();function em(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function tm({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!nm(n))throw new Error(qe(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?U(e,s):U(e))}function rm(e){return e._reducerDefinitionType==="asyncThunk"}function nm(e){return e._reducerDefinitionType==="reducerWithPrepare"}function om({type:e,reducerName:t},r,n,o){if(!o)throw new Error(qe(18));let{payloadCreator:i,fulfilled:s,pending:u,rejected:c,settled:a,options:h}=r,S=o(e,i,h);n.exposeAction(t,S),s&&n.addCase(S.fulfilled,s),u&&n.addCase(S.pending,u),c&&n.addCase(S.rejected,c),a&&n.addMatcher(S.settled,a),n.exposeCaseReducer(t,{fulfilled:s||hn,pending:u||hn,rejected:c||hn,settled:a||hn})}function hn(){}var ac="listener",cc="completed",uc="cancelled",Rw=`task-${uc}`,Ew=`task-${cc}`,Iw=`${ac}-${uc}`,kw=`${ac}-${cc}`;var{assign:lc}=Object;var vi="listenerMiddleware";var im=lc(U(`${vi}/add`),{withTypes:()=>im}),Pw=U(`${vi}/removeAll`),sm=lc(U(`${vi}/remove`),{withTypes:()=>sm});var Tw=Symbol.for("rtk-state-proxy-original");function qe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}m();d();f();p();var Y=new G({required:!0,emptyAllowed:!1}),ae=new G({required:!1,emptyAllowed:!1}),Ne=new G({required:!0,emptyAllowed:!0}),Qw=new G({required:!1,emptyAllowed:!0}),dc=new Ke({each:Y,required:!0}),pc=new G({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),am=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Ci=(e,t)=>{if("required"in t)return{payload:new Me({value:t}).validate({value:e}).value};let o=new ne({options:{required:!0},values:t}).validate(e);if(o)throw new Qo(o);return{payload:e}},H=(e,t)=>{try{return Ci(e,t)}catch(r){return{payload:e,error:am(r)}}};var An=(e,t,r,n)=>{let o=`Check the options of ${n}`;return cm(e,t,r,o,"Controller initialization error")},cm=(e,t,r,n,o)=>{try{return t.validate(r,n)}catch(i){throw e.logger.error(i,o),i}};var bn=U("caseAssistConfiguration/set",e=>H(e,{caseAssistId:Y,locale:ae,proxyBaseUrl:new G({required:!1,url:!0})}));m();d();f();p();m();d();f();p();var fc=()=>({caseAssistId:"",locale:"en-US"});var at=le(fc(),e=>{e.addCase(bn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});m();d();f();p();m();d();f();p();m();d();f();p();var mc={q:new G,enableQuerySyntax:new se,aq:new G,cq:new G,firstResult:new Ce({min:0}),numberOfResults:new Ce({min:0}),sortCriteria:new G,f:new ne,fExcluded:new ne,cf:new ne,nf:new ne,mnf:new ne,df:new ne,debug:new se,sf:new ne,tab:new G,af:new ne};var wn=U("searchParameters/restore",e=>H(e,mc));m();d();f();p();var gc=U("debug/enable"),hc=U("debug/disable");m();d();f();p();var xn=()=>!1;var yc=le(xn(),e=>{e.addCase(gc,()=>!0).addCase(hc,()=>!1).addCase(wn,(t,r)=>r.payload.debug??t)});m();d();f();p();var Rn=U("searchHub/set",e=>H(e,new G({required:!0,emptyAllowed:!0})));m();d();f();p();m();d();f();p();m();d();f();p();var Kt="3.18.0",Sc=["@coveo/atomic","@coveo/quantic"];var Ai=()=>ae,vc=()=>Y,Yt=U("configuration/updateBasicConfiguration",e=>H(e,{accessToken:ae,environment:new G({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:ae})),En=U("configuration/updateSearchConfiguration",e=>H(e,{proxyBaseUrl:new G({required:!1,url:!0}),pipeline:new G({required:!1,emptyAllowed:!0}),searchHub:ae,timezone:ae,locale:ae,authenticationProviders:new Ke({required:!1,each:Y})})),um={enabled:new se({default:!0}),originContext:Ai(),originLevel2:Ai(),originLevel3:Ai(),proxyBaseUrl:new G({required:!1,url:!0}),runtimeEnvironment:new Et,anonymous:new se({default:!1}),deviceId:ae,userDisplayName:ae,documentLocation:ae,trackingId:ae,analyticsMode:new G({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new ne({options:{required:!1},values:Sc.reduce((e,t)=>(e[t]=pc,e),{})})},In=U("configuration/updateAnalyticsConfiguration",e=>H(e,um)),kn=U("configuration/analytics/disable"),Pn=U("configuration/analytics/enable"),Cc=U("configuration/analytics/originlevel2",e=>H(e,{originLevel2:vc()})),Ac=U("configuration/analytics/originlevel3",e=>H(e,{originLevel3:vc()}));m();d();f();p();var lm=U("history/undo"),dm=U("history/redo"),Be=U("history/snapshot"),bR=Z("history/back",/*#__PURE__*/function(){var _ref4=_asyncToGenerator(function*(e,{dispatch:t}){t(lm()),yield t(Tn())});return function(_x3,_x4){return _ref4.apply(this,arguments)}}()),wR=Z("history/forward",/*#__PURE__*/function(){var _ref5=_asyncToGenerator(function*(e,{dispatch:t}){t(dm()),yield t(Tn())});return function(_x5,_x6){return _ref5.apply(this,arguments)}}()),Tn=Z("history/change",/*#__PURE__*/function(){var _ref6=_asyncToGenerator(function*(e,{getState:t}){return t().history.present});return function(_x7,_x8){return _ref6.apply(this,arguments)}}());m();d();f();p();var ct=()=>"default";var bc=le(ct(),e=>{e.addCase(Rn,(t,r)=>r.payload).addCase(Tn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(En,(t,r)=>r.payload.searchHub||t)});m();d();f();p();m();d();f();p();m();d();f();p();function pm({config:e,environment:t,event:r,listenerManager:n}){let{url:o,token:i,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(o,i,r))}var fm=/^(?:[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;function mm(e){return typeof e=="string"&&fm.test(e)}var he=[];for(let e=0;e<256;++e)he.push((e+256).toString(16).slice(1));function gm(e,t=0){return(he[e[t+0]]+he[e[t+1]]+he[e[t+2]]+he[e[t+3]]+"-"+he[e[t+4]]+he[e[t+5]]+"-"+he[e[t+6]]+he[e[t+7]]+"-"+he[e[t+8]]+he[e[t+9]]+"-"+he[e[t+10]]+he[e[t+11]]+he[e[t+12]]+he[e[t+13]]+he[e[t+14]]+he[e[t+15]]).toLowerCase()}var bi,hm=new Uint8Array(16);function ym(){if(!bi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bi=crypto.getRandomValues.bind(crypto)}return bi(hm)}var Sm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wc={randomUUID:Sm};function vm(e,t,r){if(wc.randomUUID&&!e)return wc.randomUUID();e=e||{};let n=e.random??e.rng?.()??ym();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,gm(n)}function Cm(e){return{getClientId:()=>{let t="visitorId",r=e.get(),n=r.storage,o=n.getItem(t),i=o&&mm(o)?o:r.generateUUID();return n.setItem(t,i),i}}}var Rc="1.0.0";function Am(e){let{trackingId:t}=e;return{trackingId:t}}function bm(e){return(e.source||[]).concat([`relay@${Rc}`])}function Ec(e,t,r,n){let{getReferrer:o,getLocation:i,getUserAgent:s}=r,u=Am(t),c=n.getClientId();return Object.freeze({type:e,config:u,ts:Date.now(),source:bm(t),clientId:c,userAgent:s(),referrer:o(),location:i()})}function wm(e,t,r,n,o){return{...t,meta:Ec(e,r,n,o)}}var xm="*";function Rm(){let e=[];function t({type:c,callback:a}){return e.findIndex(h=>h.type===c&&h.callback===a)}function r(c,a){return c.type==="*"||a===c.type}function n(c){return t(c)<0&&e.push(c),()=>u(c.type,c.callback)}function o(c){e.forEach(a=>{if(r(a,c.meta.type))try{a.callback(c)}catch(h){console.error(h)}})}function i(c){if(c===xm)e.length=0;else for(let a=e.length-1;a>=0;a--)e[a].type===c&&e.splice(a,1)}function s(c){let a=t(c);a>=0&&e.splice(a,1)}function u(c,a){a?s({type:c,callback:a}):i(c)}return{add:n,call:o,remove:u}}function xc({url:e,token:t,trackingId:r,...n}){return Object.freeze({url:e,token:t,trackingId:r,...(!!n.mode&&{mode:n.mode}),...(!!n.source&&{source:n.source})})}function Em(e){let t=xc(e);return{get:()=>t,update:r=>{t=xc({...t,...r})}}}function Im(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var wi=km();function km(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,o=document.cookie.split(";");for(let i of o){let s=i.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,o){let i=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+o).toUTCString()}`,u=i?`;domain=${i}`:"";document.cookie=`${e}${r}=${n}${s}${u};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Pm(){return{getItem(e){return wi.getItem(e)||localStorage.getItem(e)},removeItem(e){wi.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),wi.setItem(e,t,31556952e3)}}}function Tm(){let e=document.referrer;return e===""?null:e}function Om(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(Im().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!n)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>Tm(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>vm(),storage:Pm()}}function Fm(){try{let e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&e.name==="QuotaExceededError"&&localStorage&&localStorage.length!==0}}function Dm(){return{getItem(){return null},removeItem(){},setItem(){}}}function Mm(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Dm()}}function qm(e){return e.get().mode!=="disabled"&&Nm()&&Fm()?Om():Mm()}function Nm(){try{return typeof window=="object"}catch{return!1}}function _m(e){return{get:()=>Object.freeze(qm(e))}}function Ic(e){let t=Em(e),r=Rm(),n=_m(t),o=Cm(n);return{emit:(i,s)=>{let u=t.get(),c=n.get(),a=wm(i,s,u,c,o);return pm({config:u,environment:c,event:a,listenerManager:r})},getMeta:i=>Ec(i,t.get(),n.get(),o),on:(i,s)=>r.add({type:i,callback:s}),off:(i,s)=>r.remove(i,s),updateConfig:i=>t.update(i),version:Rc}}m();d();f();p();var Jt=ue(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${Kt}`));var Xt=ue(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Jt(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:o,enabled:i},s)=>Ic({mode:i?"emit":"disabled",url:o??tn(e,t),token:r,trackingId:n,source:s}));m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();m();d();f();p();function Ze(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function O(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(S){s(S)}}function c(h){try{a(n.throw(h))}catch(S){s(S)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}var J;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(J||(J={}));function Ei(){return typeof window<"u"}function ji(){return typeof navigator<"u"}function Zt(){return typeof document<"u"}function Ii(){try{return typeof localStorage<"u"}catch{return!1}}function Lm(){try{return typeof sessionStorage<"u"}catch{return!1}}function Vc(){return ji()&&navigator.cookieEnabled}var jm=[J.click,J.custom,J.search,J.view],Um=(e,t)=>jm.indexOf(e)!==-1?Object.assign({language:Zt()?document.documentElement.lang:"unknown",userAgent:ji()?navigator.userAgent:"unknown"},t):t,qr=class e{static set(t,r,n){var o,i,s,u;n&&(i=new Date,i.setTime(i.getTime()+n)),u=window.location.hostname,u.indexOf(".")===-1?kc(t,r,i):(s=u.split("."),o=s[s.length-2]+"."+s[s.length-1],kc(t,r,i,o))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){var i=n[o];if(i=i.replace(/^\s+/,""),i.lastIndexOf(r,0)===0)return i.substring(r.length,i.length)}return null}static erase(t){e.set(t,"",-1)}};function kc(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Vm(){return Ii()?localStorage:Vc()?new Nr:Lm()?sessionStorage:new tr}var Nr=class e{getItem(t){return qr.get(`${e.prefix}${t}`)}removeItem(t){qr.erase(`${e.prefix}${t}`)}setItem(t,r,n){qr.set(`${e.prefix}${t}`,r,n)}};Nr.prefix="coveo_";var ki=class{constructor(){this.cookieStorage=new Nr}getItem(t){return localStorage.getItem(t)||this.cookieStorage.getItem(t)}removeItem(t){this.cookieStorage.removeItem(t),localStorage.removeItem(t)}setItem(t,r){localStorage.setItem(t,r),this.cookieStorage.setItem(t,r,31556926e3)}},tr=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},Dr="__coveo.analytics.history",Bc=20,Qc=1e3*60,$c=75,rr=class{constructor(t){this.store=t||Vm()}addElement(t){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=this.getHistoryWithInternalTime();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])}addElementAsync(t){return O(this,void 0,void 0,function*(){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=yield this.getHistoryWithInternalTimeAsync();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])})}getHistory(){let t=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(t))}getHistoryAsync(){return O(this,void 0,void 0,function*(){let t=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(t))})}getHistoryWithInternalTime(){try{let t=this.store.getItem(Dr);return t&&typeof t=="string"?JSON.parse(t):[]}catch{return[]}}getHistoryWithInternalTimeAsync(){return O(this,void 0,void 0,function*(){try{let t=yield this.store.getItem(Dr);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(Dr,JSON.stringify(t.slice(0,Bc)))}catch{}}clear(){try{this.store.removeItem(Dr)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,o)=>(o.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,$c)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>Qc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:o,value:i}=r;return{name:n,time:o,value:i}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:o}=t;return r&&typeof o=="string"&&r.toLowerCase()==="query"&&o.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},Hc=Object.freeze({__proto__:null,HistoryStore:rr,MAX_NUMBER_OF_HISTORY_ELEMENTS:Bc,MAX_VALUE_SIZE:$c,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:Qc,STORE_KEY:Dr,default:rr}),Bm=(e,t)=>O(void 0,void 0,void 0,function*(){return e===J.view?(yield Qm(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),Qm=e=>O(void 0,void 0,void 0,function*(){let t=new rr,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),On,$m=new Uint8Array(16);function Hm(){if(!On&&(On=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!On))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return On($m)}var zm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Dn(e){return typeof e=="string"&&zm.test(e)}var ye=[];for(let e=0;e<256;++e)ye.push((e+256).toString(16).slice(1));function zc(e,t=0){return(ye[e[t+0]]+ye[e[t+1]]+ye[e[t+2]]+ye[e[t+3]]+"-"+ye[e[t+4]]+ye[e[t+5]]+"-"+ye[e[t+6]]+ye[e[t+7]]+"-"+ye[e[t+8]]+ye[e[t+9]]+"-"+ye[e[t+10]]+ye[e[t+11]]+ye[e[t+12]]+ye[e[t+13]]+ye[e[t+14]]+ye[e[t+15]]).toLowerCase()}function Gm(e){if(!Dn(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function Wm(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Km="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ym="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Jm(e,t,r){function n(o,i,s,u){var c;if(typeof o=="string"&&(o=Wm(o)),typeof i=="string"&&(i=Gm(i)),((c=i)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+o.length);if(a.set(i),a.set(o,i.length),a=r(a),a[6]=a[6]&15|t,a[8]=a[8]&63|128,s){u=u||0;for(let h=0;h<16;++h)s[u+h]=a[h];return s}return zc(a)}try{n.name=e}catch{}return n.DNS=Km,n.URL=Ym,n}var Xm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pc={randomUUID:Xm};function qt(e,t,r){if(Pc.randomUUID&&!t&&!e)return Pc.randomUUID();e=e||{};let n=e.random||(e.rng||Hm)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return zc(n)}function Zm(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function xi(e,t){return e<<t|e>>>32-t}function eg(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let s=unescape(encodeURIComponent(e));e=[];for(let u=0;u<s.length;++u)e.push(s.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let n=e.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let s=0;s<o;++s){let u=new Uint32Array(16);for(let c=0;c<16;++c)u[c]=e[s*64+c*4]<<24|e[s*64+c*4+1]<<16|e[s*64+c*4+2]<<8|e[s*64+c*4+3];i[s]=u}i[o-1][14]=(e.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<o;++s){let u=new Uint32Array(80);for(let g=0;g<16;++g)u[g]=i[s][g];for(let g=16;g<80;++g)u[g]=xi(u[g-3]^u[g-8]^u[g-14]^u[g-16],1);let c=r[0],a=r[1],h=r[2],S=r[3],y=r[4];for(let g=0;g<80;++g){let v=Math.floor(g/20),C=xi(c,5)+Zm(v,a,h,S)+y+t[v]+u[g]>>>0;y=S,S=h,h=xi(a,30)>>>0,a=c,c=C}r[0]=r[0]+c>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+S>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var tg=Jm("v5",80,eg),Tc=tg,Gc="2.30.43",Oc=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Mr={pageview:"pageview",event:"event"},Mn=class{constructor({client:t,uuidGenerator:r=qt}){this.client=t,this.uuidGenerator=r}},Pi=class extends Mn{constructor({client:t,uuidGenerator:r=qt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=Oc(window.location),this.lastReferrer=Zt()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Zt()?document.title:"",encoding:Zt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},o={language:navigator.language,userAgent:navigator.userAgent},i={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},i),n),o),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:o,location:i}=this.getNextValues(t,r);this.lastReferrer=o,this.pageViewId=n,this.currentLocation=i,t===Mr.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Mr.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Mr.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Mr.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=o=>o.replace(/^\/?(.*)$/,"/$1");return`${(o=>o.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return Oc(window.location)}},ut=class e{constructor(t,r){if(!Dn(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>e.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let n=new URL(t);return r.some(o=>new RegExp(o.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(n.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[n,o]=r;if(n.length!==32||isNaN(parseInt(o)))return null;let i=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return Dn(i)?new e(i,Number.parseInt(o)*1e3):null}};ut.cvo_cid="cvo_cid";ut.expirationTime=120;var Ti=class extends Mn{constructor({client:t,uuidGenerator:r=qt}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return O(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),n=yield this.client.getCurrentVisitorId();return r.searchParams.set(ut.cvo_cid,new ut(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};Ti.Id="link";var Fe=Object.keys;function Fn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var Ri=128,Wc=192,Fc=224,Dc=240;function rg(e){return(e&248)===Dc?4:(e&Dc)===Fc?3:(e&Fc)===Wc?2:1}function ng(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&e.charAt(r-3)=="%";){let n=Number.parseInt(e.substring(r-2,r),16);if((n&Ri)!=Ri)break;if(r-=3,(n&Wc)!=Ri){t-r>=rg(n)*3&&(r=t);break}}return e.substring(0,r)}var Oi={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},og=Fe(Oi).map(e=>Oi[e]),ig=[...og].join("|"),sg=new RegExp(`^(${ig}$)`),ag={svcAction:"svc_action",svcActionData:"svc_action_data"},cg=e=>Fe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=Oi[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),ug=e=>sg.test(e),lg=[ug],Mc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},qc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},Se={action:"pa",list:"pal",listSource:"pls"},qn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},dg=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],Fi={id:"quoteId",affiliation:"quoteAffiliation"},Di={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},pg={add:Se,bookmark_add:Se,bookmark_remove:Se,click:Se,checkout:Se,checkout_option:Se,detail:Se,impression:Se,remove:Se,refund:Object.assign(Object.assign({},Se),qn),purchase:Object.assign(Object.assign({},Se),qn),quickview:Se,quote:Object.assign(Object.assign({},Se),Fi),review:Object.assign(Object.assign({},Se),Di)},fg=Fe(Mc).map(e=>Mc[e]),mg=Fe(qc).map(e=>qc[e]),gg=Fe(Se).map(e=>Se[e]),hg=Fe(qn).map(e=>qn[e]),yg=Fe(Di).map(e=>Di[e]),Sg=Fe(Fi).map(e=>Fi[e]),vg=[...fg,"custom"].join("|"),Cg=[...mg,"custom"].join("|"),Kc="(pr[0-9]+)",Yc="(il[0-9]+pi[0-9]+)",Ag=new RegExp(`^${Kc}(${vg})$`),bg=new RegExp(`^(${Yc}(${Cg}))|(il[0-9]+nm)$`),wg=new RegExp(`^(${gg.join("|")})$`),xg=new RegExp(`^(${hg.join("|")})$`),Rg=new RegExp(`^${Kc}custom$`),Eg=new RegExp(`^${Yc}custom$`),Ig=new RegExp(`^(${[...dg,...yg,...Sg].join("|")})$`),kg=e=>Ag.test(e),Pg=e=>bg.test(e),Tg=e=>wg.test(e),Og=e=>xg.test(e),Fg=e=>Ig.test(e),Dg=[Pg,kg,Tg,Og,Fg],Mg=[Rg,Eg],qg={anonymizeIp:"aip"},Ng={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},_g={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},Lg=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],jg=Object.assign(Object.assign(Object.assign(Object.assign({},qg),Ng),_g),Lg.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),Mi=Object.assign(Object.assign({},jg),ag),Ug=e=>{let t=!!e.action&&pg[e.action]||{};return Fe(e).reduce((r,n)=>{let o=t[n]||Mi[n]||n;return Object.assign(Object.assign({},r),{[o]:e[n]})},{})},Vg=Fe(Mi).map(e=>Mi[e]),Bg=e=>Vg.indexOf(e)!==-1,Qg=e=>e==="custom",$g=e=>[...Dg,...lg,Bg,Qg].some(t=>t(e)),Hg=e=>Fe(e).reduce((t,r)=>{let n=zg(r);return n?Object.assign(Object.assign({},t),Gg(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),zg=e=>{let t;return[...Mg].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Gg=(e,t)=>Fe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),qi=class{constructor(t){this.opts=t}sendEvent(t,r){return O(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error("navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like \"sendbeacon-polyfill\".");let{baseUrl:n,preprocessRequest:o}=this.opts,i=yield this.getQueryParamsForEventType(t),{url:s,payload:u}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${i}`,r,o),c=this.encodeForEventType(t,u),a=new Blob([c],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(s,a)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,n){return O(this,void 0,void 0,function*(){let o=t,i=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:u,body:c}=s;o=u||t;try{i=JSON.parse(c)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:i,url:o}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return O(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:n}=this.opts,o=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",o?`visitorId=${o}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(t){return[J.click,J.custom,J.search,J.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let o=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(o=`access_token=${encodeURIComponent(n)}&${o}`),o}},Ni=class{sendEvent(t,r){return O(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return O(this,void 0,void 0,function*(){return Promise.resolve()})}},Nc=b.fetch,Nn=class{constructor(t){this.opts=t}sendEvent(t,r){return O(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:o,preprocessRequest:i}=this.opts,s=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",u={url:`${n}/analytics/${t}${s}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},c=Object.assign(Object.assign({},u),i?yield i(u,"analyticsFetch"):{}),{url:a}=c,h=Ze(c,["url"]),S;try{S=yield Nc(a,h)}catch(y){console.error("An error has occured when sending the event.",y);return}if(S.ok){let y=yield S.json();return y.visitorId&&o.setCurrentVisitorId(y.visitorId),y}else{try{S.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,S,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return O(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield Nc(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[J.click,J.custom,J.search,J.view].indexOf(t)!==-1}getVisitorIdParam(){return O(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},_i=class{constructor(t,r){Ii()&&Vc()?this.storage=new ki:Ii()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new tr),this.client=new Nn(t),this.beaconClient=new qi(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:o,payload:i}of n)this.beaconClient.sendEvent(o,i)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},Li=class{constructor(t,r){this.storage=r||new tr,this.client=new Nn(t)}getClientDependingOnEventType(t){return this.client}},_n=class{constructor(){this.storage=new tr,this.client=new Ni}getClientDependingOnEventType(t){return this.client}},Wg="xx",Kg=e=>e?.startsWith(Wg)||!1,Yg=`
|
|
27
27
|
We've detected you're using React Native but have not provided the corresponding runtime,
|
|
28
28
|
for an optimal experience please use the "coveo.analytics/react-native" subpackage.
|
|
29
29
|
Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native
|
|
@@ -44,6 +44,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
44
44
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
45
45
|
* See the License for the specific language governing permissions and
|
|
46
46
|
* limitations under the License.
|
|
47
|
-
*/if(__exports!=exports)module.exports=exports;return module.exports});
|
|
48
|
-
|
|
49
|
-
window.coveoQuanticVersion = '3.14.3';
|
|
47
|
+
*/if(__exports!=exports)module.exports=exports;return module.exports});
|
package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts
CHANGED
|
@@ -119,11 +119,16 @@ export type { RedirectionTrigger, RedirectionTriggerState, } from './controllers
|
|
|
119
119
|
export { buildRedirectionTrigger } from './controllers/commerce/triggers/headless-redirection-trigger.js';
|
|
120
120
|
export type { QueryTrigger, QueryTriggerState, } from './controllers/core/triggers/headless-core-query-trigger.js';
|
|
121
121
|
export { buildQueryTrigger } from './controllers/commerce/triggers/headless-query-trigger.js';
|
|
122
|
-
export type { FieldSuggestions, FieldSuggestionsState, } from './controllers/commerce/field-suggestions/headless-field-suggestions.js';
|
|
123
122
|
export type { CategoryFieldSuggestions, CategoryFieldSuggestionsState, } from './controllers/commerce/field-suggestions/headless-category-field-suggestions.js';
|
|
124
123
|
export type { FieldSuggestionsGenerator, GeneratedFieldSuggestionsControllers, } from './controllers/commerce/field-suggestions/headless-field-suggestions-generator.js';
|
|
125
124
|
export type { FieldSuggestionsFacet } from './features/commerce/facets/field-suggestions-order/field-suggestions-order-state.ts';
|
|
126
125
|
export { buildFieldSuggestionsGenerator } from './controllers/commerce/field-suggestions/headless-field-suggestions-generator.js';
|
|
126
|
+
export type { FilterSuggestionsGenerator, GeneratedFilterSuggestionsControllers, } from './controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.js';
|
|
127
|
+
export { buildFilterSuggestionsGenerator } from './controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.js';
|
|
128
|
+
export type { CategoryFilterSuggestions, CategoryFilterSuggestionsState, } from './controllers/commerce/filter-suggestions/headless-category-filter-suggestions.js';
|
|
129
|
+
export { buildCategoryFilterSuggestions } from './controllers/commerce/filter-suggestions/headless-category-filter-suggestions.js';
|
|
130
|
+
export type { FilterSuggestions, FilterSuggestionsState, } from './controllers/commerce/filter-suggestions/headless-filter-suggestions.js';
|
|
131
|
+
export { buildFilterSuggestions } from './controllers/commerce/filter-suggestions/headless-filter-suggestions.js';
|
|
127
132
|
export type { ParameterManager, ParameterManagerState, ParameterManagerProps, ParameterManagerInitialState, } from './controllers/commerce/core/parameter-manager/headless-core-parameter-manager.js';
|
|
128
133
|
export type { Parameters } from './features/commerce/parameters/parameters-actions.js';
|
|
129
134
|
export type { SearchParameters } from './features/search-parameters/search-parameter-actions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldSuggestionsFacet } from '../../../api/commerce/search/query-suggest/query-suggest-response.js';
|
|
2
1
|
import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js';
|
|
2
|
+
import { FieldSuggestionsFacet } from '../../../features/commerce/facets/field-suggestions-order/field-suggestions-order-state.js';
|
|
3
3
|
import { Controller } from '../../controller/headless-controller.js';
|
|
4
4
|
import { CategoryFieldSuggestionsState as CoreCategoryFieldSuggestionsState, CategoryFieldSuggestionsValue } from '../../field-suggestions/category-facet/headless-category-field-suggestions.js';
|
|
5
5
|
import { CategoryFacetOptions } from '../core/facets/category/headless-commerce-category-facet.js';
|
|
@@ -10,6 +10,8 @@ export type { CategoryFieldSuggestionsValue };
|
|
|
10
10
|
*
|
|
11
11
|
* @group Buildable controllers
|
|
12
12
|
* @category CategoryFieldSuggestions
|
|
13
|
+
* @alpha
|
|
14
|
+
* @deprecated
|
|
13
15
|
*/
|
|
14
16
|
export type CategoryFieldSuggestionsState = CoreCategoryFieldSuggestionsState & Pick<FieldSuggestionsFacet, 'facetId' | 'displayName' | 'field'>;
|
|
15
17
|
/**
|
|
@@ -21,6 +23,8 @@ export type CategoryFieldSuggestionsState = CoreCategoryFieldSuggestionsState &
|
|
|
21
23
|
*
|
|
22
24
|
* @group Buildable controllers
|
|
23
25
|
* @category CategoryFieldSuggestions
|
|
26
|
+
* @alpha
|
|
27
|
+
* @deprecated
|
|
24
28
|
*/
|
|
25
29
|
export interface CategoryFieldSuggestions extends Controller, FacetControllerType<'hierarchical'> {
|
|
26
30
|
/**
|
|
@@ -2,13 +2,18 @@ import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js'
|
|
|
2
2
|
import { FieldSuggestionsFacet } from '../../../features/commerce/facets/field-suggestions-order/field-suggestions-order-state.js';
|
|
3
3
|
import { Controller } from '../../controller/headless-controller.js';
|
|
4
4
|
import { CategoryFieldSuggestions } from './headless-category-field-suggestions.js';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @alpha
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
export type GeneratedFieldSuggestionsControllers = Array<CategoryFieldSuggestions>;
|
|
7
10
|
/**
|
|
8
11
|
* The `FieldSuggestionsGenerator` controller is responsible for generating field suggestions controllers for a given commerce engine.
|
|
9
12
|
*
|
|
10
13
|
* @group Buildable controllers
|
|
11
14
|
* @category FieldSuggestionsGenerator
|
|
15
|
+
* @alpha
|
|
16
|
+
* @deprecated
|
|
12
17
|
*/
|
|
13
18
|
export interface FieldSuggestionsGenerator extends Controller {
|
|
14
19
|
/**
|
|
@@ -27,5 +32,7 @@ export interface FieldSuggestionsGenerator extends Controller {
|
|
|
27
32
|
*
|
|
28
33
|
* @group Buildable controllers
|
|
29
34
|
* @category FieldSuggestionsGenerator
|
|
35
|
+
* @alpha
|
|
36
|
+
* @deprecated
|
|
30
37
|
*/
|
|
31
38
|
export declare function buildFieldSuggestionsGenerator(engine: CommerceEngine): FieldSuggestionsGenerator;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { FieldSuggestionsFacet } from '../../../api/commerce/search/query-suggest/query-suggest-response.js';
|
|
2
|
+
import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js';
|
|
3
|
+
import { Controller } from '../../controller/headless-controller.js';
|
|
4
|
+
import { CategoryFieldSuggestionsState as CoreCategoryFieldSuggestionsState, CategoryFieldSuggestionsValue } from '../../field-suggestions/category-facet/headless-category-field-suggestions.js';
|
|
5
|
+
import { CategoryFacetOptions } from '../core/facets/category/headless-commerce-category-facet.js';
|
|
6
|
+
import { FacetControllerType } from '../core/facets/headless-core-commerce-facet.js';
|
|
7
|
+
export type { CategoryFieldSuggestionsValue };
|
|
8
|
+
/**
|
|
9
|
+
* The state of the `CategoryFilterSuggestions` controller.
|
|
10
|
+
*
|
|
11
|
+
* @group Buildable controllers
|
|
12
|
+
* @category CategoryFilterSuggestions
|
|
13
|
+
*/
|
|
14
|
+
export type CategoryFilterSuggestionsState = CoreCategoryFieldSuggestionsState & Pick<FieldSuggestionsFacet, 'facetId' | 'displayName' | 'field'>;
|
|
15
|
+
/**
|
|
16
|
+
* The `CategoryFilterSuggestions` controller provides methods to request and interact with category facet suggestions
|
|
17
|
+
* based on a specific field for a given search query.
|
|
18
|
+
*
|
|
19
|
+
* @alpha This controller relies on a Commerce API functionality that is not yet generally available. If you wish to
|
|
20
|
+
* use this feature in an implementation, please contact your Coveo representative.
|
|
21
|
+
*
|
|
22
|
+
* @group Buildable controllers
|
|
23
|
+
* @category CategoryFilterSuggestions
|
|
24
|
+
*/
|
|
25
|
+
export interface CategoryFilterSuggestions extends Controller, FacetControllerType<'hierarchical'> {
|
|
26
|
+
/**
|
|
27
|
+
* Resets the query in the controller state and clears the category filter suggestions.
|
|
28
|
+
*/
|
|
29
|
+
clear(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the serialized search parameters for the current search query and specified category filter suggestion.
|
|
32
|
+
*
|
|
33
|
+
* For example, `q=jeans&cf-ec-category=Clothes,Pants`.
|
|
34
|
+
*
|
|
35
|
+
* In a typical scenario, this method should called when the user selects a category filter suggestion from a
|
|
36
|
+
* standalone search box. The returned string is then used to pass the correct URL query parameters or fragment when
|
|
37
|
+
* redirecting the browser to the search page.
|
|
38
|
+
*
|
|
39
|
+
* When the user selects a category filter suggestion from the main search box on the search page, use the `select`
|
|
40
|
+
* method instead.
|
|
41
|
+
*
|
|
42
|
+
* @param value - The category filter suggestion to serialize.
|
|
43
|
+
* @returns The serialized search parameters for the current search query and specified category filter suggestion.
|
|
44
|
+
*/
|
|
45
|
+
getSearchParameters(value: CategoryFieldSuggestionsValue): string;
|
|
46
|
+
/**
|
|
47
|
+
* Clears all facet values, selects the specified category filter suggestion, updates the query, and executes a new
|
|
48
|
+
* search request.
|
|
49
|
+
*
|
|
50
|
+
* In a typical scenario, this method should be called when the user selects a category filter suggestion from the
|
|
51
|
+
* main search box on the search page.
|
|
52
|
+
*
|
|
53
|
+
* When the user selects a category filter suggestion from a standalone search box, use the `getSearchParameters`
|
|
54
|
+
* method instead.
|
|
55
|
+
*
|
|
56
|
+
* @param value - The category filter suggestion to select.
|
|
57
|
+
*/
|
|
58
|
+
select(value: CategoryFieldSuggestionsValue): void;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the query in the controller state to the specified value and requests category filter suggestions based on the
|
|
61
|
+
* updated query.
|
|
62
|
+
*
|
|
63
|
+
* For example, if this method is called with `jeans` as an argument, it will request values from the controller's
|
|
64
|
+
* field (e.g., `ec_category`) that would return results if selected when the search query is `jeans` (such as
|
|
65
|
+
* `Clothing`, `Clothing;Pants`, and `Clothing;Shorts`).
|
|
66
|
+
*
|
|
67
|
+
* @param query - The search query to use as context to request the category filter suggestions. In a typical
|
|
68
|
+
* scenario, this should set to the current value of the search box input.
|
|
69
|
+
*/
|
|
70
|
+
updateQuery(query: string): void;
|
|
71
|
+
state: CategoryFilterSuggestionsState;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The `CategoryFilterSuggestions` controller provides methods to request and interact with category facet suggestions
|
|
75
|
+
* based on a specific field for a given search query.
|
|
76
|
+
*
|
|
77
|
+
* @alpha This controller relies on a Commerce API functionality that is not yet generally available. If you wish to
|
|
78
|
+
* use this feature in an implementation, please contact your Coveo representative.
|
|
79
|
+
*
|
|
80
|
+
* @param engine - The headless commerce engine.
|
|
81
|
+
* @param options - The options for the `CategoryFilterSuggestions` controller.
|
|
82
|
+
* @returns A `CategoryFilterSuggestions` controller instance.
|
|
83
|
+
*
|
|
84
|
+
* @group Buildable controllers
|
|
85
|
+
* @category CategoryFilterSuggestions
|
|
86
|
+
*/
|
|
87
|
+
export declare function buildCategoryFilterSuggestions(engine: CommerceEngine, options: CategoryFacetOptions): CategoryFilterSuggestions;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js';
|
|
2
|
+
import { FieldSuggestionsFacet } from '../../../features/commerce/facets/field-suggestions-order/field-suggestions-order-state.js';
|
|
3
|
+
import { Controller } from '../../controller/headless-controller.js';
|
|
4
|
+
import { CategoryFilterSuggestions } from './headless-category-filter-suggestions.js';
|
|
5
|
+
import { FilterSuggestions } from './headless-filter-suggestions.js';
|
|
6
|
+
export type GeneratedFilterSuggestionsControllers = Array<FilterSuggestions | CategoryFilterSuggestions>;
|
|
7
|
+
/**
|
|
8
|
+
* The `FilterSuggestionsGenerator` controller is responsible for generating filter suggestions controllers for a given
|
|
9
|
+
* commerce engine.
|
|
10
|
+
*
|
|
11
|
+
* @alpha This controller relies on a Commerce API functionality that is not yet generally available. If you wish to use this
|
|
12
|
+
* feature in an implementation, please contact your Coveo representative.
|
|
13
|
+
*
|
|
14
|
+
* @group Buildable controllers
|
|
15
|
+
* @category FilterSuggestionsGenerator
|
|
16
|
+
*/
|
|
17
|
+
export interface FilterSuggestionsGenerator extends Controller {
|
|
18
|
+
/**
|
|
19
|
+
* The filter suggestions controllers created by the filter suggestions generator.
|
|
20
|
+
*/
|
|
21
|
+
filterSuggestions: GeneratedFilterSuggestionsControllers;
|
|
22
|
+
/**
|
|
23
|
+
* The state of the filter suggestions generator.
|
|
24
|
+
*/
|
|
25
|
+
state: FieldSuggestionsFacet[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Builds a filter suggestions generator controller for a given commerce engine.
|
|
29
|
+
* @param engine - The commerce engine.
|
|
30
|
+
* @returns The filter suggestions generator controller.
|
|
31
|
+
*
|
|
32
|
+
* @alpha This controller relies on a Commerce API functionality that is not yet generally available. If you wish to
|
|
33
|
+
* use this feature in an implementation, please contact your Coveo representative.
|
|
34
|
+
*
|
|
35
|
+
* @group Buildable controllers
|
|
36
|
+
* @category FilterSuggestionsGenerator
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildFilterSuggestionsGenerator(engine: CommerceEngine): FilterSuggestionsGenerator;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NonRecommendationControllerDefinitionWithoutProps } from '../../../app/commerce-ssr-engine/types/common.js';
|
|
2
|
+
import { FilterSuggestionsGenerator } from './headless-filter-suggestions-generator.js';
|
|
3
|
+
export type { FilterSuggestions, FilterSuggestionsState, } from './headless-filter-suggestions.js';
|
|
4
|
+
export type { CategoryFilterSuggestions, CategoryFilterSuggestionsState, } from './headless-category-filter-suggestions.js';
|
|
5
|
+
export type { FieldSuggestionsFacet } from '../../../features/commerce/facets/field-suggestions-order/field-suggestions-order-state.js';
|
|
6
|
+
export type { GeneratedFilterSuggestionsControllers as GeneratedFilterSuggestionsControllers } from './headless-filter-suggestions-generator.js';
|
|
7
|
+
export type { FilterSuggestionsGenerator as FilterSuggestionsGenerator };
|
|
8
|
+
export interface FilterSuggestionsGeneratorDefinition extends NonRecommendationControllerDefinitionWithoutProps<FilterSuggestionsGenerator> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Defines the `FilterSuggestionsGenerator` controller for the purpose of server-side rendering.
|
|
12
|
+
* @group Definers
|
|
13
|
+
*
|
|
14
|
+
* @returns The `FilterSuggestionsGenerator` controller definition.
|
|
15
|
+
*/
|
|
16
|
+
export declare function defineFilterSuggestionsGenerator(): FilterSuggestionsGeneratorDefinition;
|