PageSourceSearch

https://www.ehi.org/wp-content/themes/EHI.org/assets/factfinder/dist/bundle.js

js ehi.org collected 2026-09-24 15:21:01 UTC 418,490 bytes, 2 lines download raw bytes

vendor: 4,162 bytes, lines 1-2
1/*! For license information please see bundle.js.LICENSE */
2!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=111)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n(27),i=n.n(r),o=n(19),a=n.n(o),c=n(3),s=n.n(c),u=n(4),l=n.n(u),f=n(18),d=n.n(f),h=n(67),p=n.n(h),m=n(24),v=n.n(m),g=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===v()(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e){e.exports=JSON.parse('{"a":"4.0.10"}')},function(e,t,n){var r;n.r(t),n.d(t,"internal",(function(){return bo})),n.d(t,"factfinder",(function(){return _o}));var o={};n.r(o),n.d(o,"compose",(function(){return j})),n.d(o,"pipe",(function(){return L})),n.d(o,"scanl",(function(){return I})),n.d(o,"isNullish",(function(){return A})),n.d(o,"fswitch",(function(){return T})),n.d(o,"escapeRegex",(function(){return M}));var c={};n.r(c),n.d(c,"encodeURIComponent",(function(){return N})),n.d(c,"decodeURIComponent",(function(){return D})),n.d(c,"fixedEncodeURIComponent",(function(){return B})),n.d(c,"fixedDecodeURIComponent",(function(){return F})),n.d(c,"percent20ToPlus",(function(){return V})),n.d(c,"uriPlusEncode",(function(){return U})),n.d(c,"encodeCategoryV4",(function(){return q})),n.d(c,"encodeAssociatedFieldName",(function(){return z})),n.d(c,"ngEncode",(function(){return W})),n.d(c,"ngCategoryPageEncode",(function(){return H})),n.d(c,"normalizeCategoryFilterEncoding",(function(){return K}));var u={};n.r(u),n.d(u,"isLogLevelActive",(function(){return $})),n.d(u,"trace",(function(){return Q})),n.d(u,"debug",(function(){return ee})),n.d(u,"info",(function(){return te})),n.d(u,"log",(function(){return ne})),n.d(u,"warn",(function(){return re})),n.d(u,"error",(function(){return ie})),n.d(u,"logMessage",(function(){return oe})),n.d(u,"emitDeprecationWarning",(function(){return ae}));var f={};n.r(f),n.d(f,"find",(function(){return se})),n.d(f,"flatMap",(function(){return ue})),n.d(f,"values",(function(){return le})),n.d(f,"includes",(function(){return fe}));var h={};n.r(h),n.d(h,"Versions",(function(){return de})),n.d(h,"getApiString",(function(){return he})),n.d(h,"isSupported",(function(){return pe}));var m={};n.r(m),n.d(m,"pppConf",(function(){return ve}));var g={};n.r(g),n.d(g,"esPolyfills",(function(){return f})),n.d(g,"util",(function(){return o}
2)),n.d(g,"Encoding",(function(){return c})),n.d(g,"NgApiVersions",(function(){return h})),n.d(g,"getFixedFilters",(function(){return Qe}));var y={};n.r(y),n.d(y,"addParam",(function(){return lt})),n.d(y,"deduplicate",(function(){return ft})),n.d(y,"HistoryEntry",(function(){return dt})),n.d(y,"getHistoryState",(function(){return ht})),n.d(y,"executeCallback",(function(){return pt})),n.d(y,"elementToString",(function(){return mt})),n.d(y,"stringToElement",(function(){return vt})),n.d(y,"isArray",(function(){return gt})),n.d(y,"isObject",(function(){return yt})),n.d(y,"isFunction",(function(){return bt})),n.d(y,"transitionEndEventName",(function(){return _t})),n.d(y,"setStyleProperty",(function(){return kt})),n.d(y,"concatFunctions",(function(){return wt})),n.d(y,"addEventListener",(function(){return Ct})),n.d(y,"cloneObject",(function(){return St})),n.d(y,"copyHTMLAttributes",(function(){return Pt})),n.d(y,"isCustomElement",(function(){return Ot})),n.d(y,"whichTransitionEvent",(function(){return xt})),n.d(y,"getParentElementByName",(function(){return Et})),n.d(y,"urlStringToDict",(function(){return Rt})),n.d(y,"getParameterString",(function(){return jt})),n.d(y,"parameterStringToDict",(function(){return Lt})),n.d(y,"keys",(function(){return It})),n.d(y,"sortStringArrayAlphabetically",(function(){return At})),n.d(y,"isFilterParameter",(function(){return Tt})),n.d(y,"dictToParameterString",(function(){return Mt})),n.d(y,"sortFilterValuesAlphabetically",(function(){return Nt})),n.d(y,"setUrlParameter",(function(){return Dt})),n.d(y,"getKeyByPattern",(function(){return Bt})),n.d(y,"mergeProperties",(function(){return Ft})),n.d(y,"getCurrentEndPathString",(function(){return Vt})),n.d(y,"fireCustomEvent",(function(){return Ut})),n.d(y,"replaceAt",(function(){return qt})),n.d(y,"removeAt",(function(){return zt})),n.d(y,"randomString",(function(){return Wt})),n.d(y,"isFFParameter",(function(){return Ht})),n.d(y,"searchParams",(function(){return Kt})),n.d(y,"localStorage",(function(){return Yt})),n.d(y,"removeChildNodes",(function(){return Gt})),n.d(y,"isOk",(function(){return Xt})),n.d(y,"getMetaElementKey",(function(){return Zt}));var b={};n.r(b),n.d(b,"encodeUrl",(function(){return Jt})),n.d(b,"fixedEncodeURIComponent",(function(){return $t})),n.d(b,"fixedDecodeURIComponent",(function(){return Qt})),n.d(b,"encodeDict",(function(){return en})),n.d(b,"_canEncode",(function(){return tn})),n.d(b,"decodeUrl",(function(){return nn})),n.d(b,"decodeDict",(function(){return rn}));var _={};n.r(_),n.d(_,"FFEvent",(function(){return ln})),n.d(_,"FilterEvent",(function(){return fn})),n.d(_,"BreadCrumbEvent",(function(){return dn})),n.d(_,"GlobalSearchParameter",(function(){return hn}));var k={};n.r(k),n.d(k,"sessionManager",(function(){return vn}));var w={};n.r(w),n.d(w,"startDispatching",(function(){return or})),n.d(w,"setShouldDeferDispatches",(function(){return ar})),n.d(w,"invokeCallbacks",(function(){return cr})),n.d(w,"addCallback",(function(){return sr})),n.d(w,"removeCallback",(function(){return ur})),n.d(w,"subscribe",(function(){return lr})),n.d(w,"unsubscribe",(function(){return fr})),n.d(w,"dispatch",(function(){return hr})),n.d(w,"dispatchResultByTopic",(function(){return pr})),n.d(w,"dispatchSearchResult",(function(){return mr})),n.d(w,"dispatchResult",(function(){return vr})),n.d(w,"dispatchRaw",(function(){return gr})),n.d(w,"dispatchResultInternal",(function(){return yr})),n.d(w,"dispatchRecords",(function(){return br})),n.d(w,"dispatchBreadcrumbTrail",(function(){return _r})),n.d(w,"dispatchSorting",(function(){return kr})),n.d(w,"dispatchProductsPerPage",(function(){return wr})),n.d(w,"dispatchPaging",(function(){return Cr})),n.d(w,"dispatchPagingItems",(function(){return Sr})),n.d(w,"dispatchAsn",(function(){return Pr})),n.d(w,"dispatchSingleWordSearch",(function(){return Or})),n.d(w,"dispatchProductDetail",(function(){return xr})),n.d(w,"dispatchCampaigns",(function(){return Er})),n.d(w,"dispatchPageCampaigns",(function(){return Rr})),n.d(w,"dispatchProductCampaigns",(function(){return jr})),n.d(w,"dispatchShoppingCartCampaign",(function(){return Lr})),n.d(w,"_doCampaingDispatch",(function(){return Ir}
2)),n.d(w,"dispatchSuggest",(function(){return Ar})),n.d(w,"dispatchRecommendations",(function(){return Tr})),n.d(w,"dispatchSimilarProducts",(function(){return Mr})),n.d(w,"dispatchPredictiveBasket",(function(){return Nr})),n.d(w,"dispatchCompare",(function(){return Dr})),n.d(w,"dispatchTagCloud",(function(){return Br})),n.d(w,"dispatchQuery",(function(){return Fr})),n.d(w,"dispatchNavigationFrame",(function(){return Vr}));var C={};n.r(C),n.d(C,"getSearchParamString",(function(){return qr})),n.d(C,"handleSeoSearch",(function(){return zr})),n.d(C,"replaceHistoryState",(function(){return Hr})),n.d(C,"replaceDocumentLocation",(function(){return Kr})),n.d(C,"pushParameterToHistory",(function(){return Yr})),n.d(C,"getBrowserURL",(function(){return Xr})),n.d(C,"pushSeoToHistory",(function(){return Zr})),n.d(C,"pushFilterUrlToHistory",(function(){return Jr})),n.d(C,"extractCategoryPathFieldName",(function(){return $r})),n.d(C,"changeRecordPropertyName",(function(){return Qr})),n.d(C,"getQueryFromSearchParams",(function(){return ei})),n.d(C,"addRenameRecordFields",(function(){return ti})),n.d(C,"removeRenameRecordFields",(function(){return ni})),n.d(C,"isNg",(function(){return ri})),n.d(C,"isPriceField",(function(){return ii})),n.d(C,"trackingHelper",(function(){return oi}));var S={};n.r(S),n.d(S,"addFFEvent",(function(){return Ni})),n.d(S,"addFailCallback",(function(){return Di})),n.d(S,"removeFailCallback",(function(){return Bi})),n.d(S,"addBeforeHistoryPushCallback",(function(){return Fi})),n.d(S,"removeBeforeHistoryPushCallback",(function(){return Vi})),n.d(S,"addBeforeDispatchingCallback",(function(){return Ui})),n.d(S,"removeBeforeDispatchingCallback",(function(){return qi})),n.d(S,"getCurrentResult",(function(){return zi}));var P={};n.r(P),n.d(P,"click",(function(){return Qi})),n.d(P,"cart",(function(){return eo})),n.d(P,"checkout",(function(){return to})),n.d(P,"login",(function(){return no})),n.d(P,"recommendationClick",(function(){return ro})),n.d(P,"searchFeedback",(function(){return io})),n.d(P,"landingPageClick",(function(){return oo}));var O={};n.r(O),n.d(O,"Tracking12",(function(){return lo})),n.d(O,"trackingManager",(function(){return fo}));var x={};n.r(x),n.d(x,"sortboxConf",(function(){return ho}));var E={};n.r(E),n.d(E,"MultiAttributeParsing",(function(){return cn})),n.d(E,"ProductTeaserCampaignProcessor",(function(){return sn})),n.d(E,"use",(function(){return go}));var R={};n.r(R),n.d(R,"response",(function(){return E}));var j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}},L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},I=function(e){return function(t){return function(n){return n.reduce((function(t,n){var r=p()(t),i=r[0],o=r.slice(1);return[e(i,n),i].concat(d()(o))}),[t]).reverse().slice(1)}}},A=function(e){return null==e},T=function(e){return function t(n,r,i){return Object.freeze({case:function(o,a){return n||!0!==o(e)?t(n,r,i):t(!0,a,!0)},case_:function(o,a){return n||!0!==o(e)?t(n,r,i):t(!0,a,!1)},otherwise:function(t){return n?i?r:r(e):t},otherwise_:function(t){return n?i?r:r(e):t(e)}})}(!1,void 0,!1)},M=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},N=window.encodeURIComponent,D=window.decodeURIComponent,B=function(e){return N(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)})).replace(/~/g,"%7E")},F=function(e){return"string"==typeof e?D(e.replace(/\+/g," ")):e},V=function(e){return e.replace(/%20/g,"+")},U=L(B,V),q=function(e){return e.replace(/%/g,"%25").replace(/\//g,"%2F").replace(/\+/g,"%2B")},z=U,W=U,H=U,K=L(F,(function(e){return e.replace(/%2f/g,"%2F").replace(/%2b/g,"%2B")}),W,(function(e){return e.replace(/^filter%3D/,"filter=")})),Y=s()((function e(){l()(this,e)})),G=function(){function e(){l()(this,e),this.ajax=!0,this.useUrlParameters=!0,this.useBrowserHistory=!0,this.useCache=!1,this.appendUnknownParameter=!0,this.isSessionIdDisabled=!1,this.keepFilters=!1,this.useAsn=!0,this.useFoundWords=!1,this.useCampaigns=!0,this.generateAdvisorTree=!1,this.disableCache=!1,this.usePersonalization=!0,this.useSemanticEnhancer=!0,this.useAso=!0,this.useSeo=!1,this.seoPrefix="",this.sid="",this.currencyCountryCode="",this.currencyCode="",this.currencyFields="price",this.currencyMinDigits="2",this.currencyMaxDigits="2",this.useFilterUrl=!1,this.filterUrlPrefix="",this.onlySearchParams=!1,this.parameterWhitelist="",this.sortUrlParametersAlphabetically=!1,this._categoryPage="",this.ngApi=""}return s()(e,[{key:"categoryPage",get:function(){return this._categoryPage},set:function(e){this._categoryPage=e.split(",").map(K).join(",")}},{key:"useUrlParameter",get:function(){return ae("useUrlParameter","useUrlParameters"),this.useUrlParameters},set:function(e){ae("useUrlParameter","useUrlParameters"),this.useUrlParameters=e}},{key:"useFilterURL",get:function(){return ae("useFilterURL","useFilterUrl"),this.useFilterUrl},set:function(e){ae("useFilterURL","useFilterUrl"),this.useFilterUrl=e}}]),e}(),X=s()((function e(){l()(this,e),this.currentFFSearchBoxValue=""})),Z={common:{logLevel:"warn"},communication:{fieldRoles:void 0,currentSearchResult:void 0,navigationLayer:{},navigationResult:{},eventCounter:0,beforeHistoryPushCallbacks:[],globalCommunicationParameter:new G,globalElementValues:new X,globalCustomUrls:new Y,globalSearchParameter:void 0}},J={trace:5,debug:4,info:3,warn:2,error:1};function $(e){return J[Z.common.logLevel]>=J[e]}function Q(e){if($("trace")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["trace",e].concat(n))}}function ee(e){if($("debug")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["debug",e].concat(n))}}function te(e){if($("info")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["info",e].concat(n))}}function ne(e){if($("info")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["log",e].concat(n))}}function re(e){if($("warn")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["warn",e].concat(n))}}function ie(e){if($("error")){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];oe.apply(void 0,["error",e].concat(n))}}function oe(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a;"function"==typeof console[e]?(o=console)[e].apply(o,[t].concat(r)):(a=console).log.a
2pply(a,[t].concat(r))}function ae(e,t){var n=t?" Use '".concat(t,"' instead."):"";re("'".concat(e,"' is deprecated and may be removed in a future release.").concat(n))}var ce=function(e){return"__NO_ENC_".concat(e)},se=function(e){return function(t){if("function"==typeof Array.prototype.find)return t.find(e);for(var n=0;n<t.length;++n)if(e(t[n]))return t[n]}},ue=function(e){return function(t){return t.reduce((function(t,n){return t.push.apply(t,d()(e(n))),t}),[])}},le=function(e){if("function"==typeof Object.values)return Object.values(e);var t=[];return Object.keys(e).forEach((function(n){return t.push(e[n])})),t},fe=function(e,t){return"function"==typeof Array.prototype.includes?e.includes(t):e.some((function(e){return e===t}))},de=Object.freeze({v4:"v4",v3:"v3",v2:"v2"}),he=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return de[e.toLowerCase()]},pe=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return 0<=Object.keys(de).indexOf(e.toLowerCase())},me=[{value:12,default:!0,selected:!0},{value:24,default:!1,selected:!1},{value:36,default:!1,selected:!1}],ve={get entries(){return me},set entries(e){me=e.slice().map((function(e){return e.default=!1,e}))}};function ge(e){return"filter".concat(e)}function ye(e){var t=e.split("/")[0];return/ROOT$/.test(t)?t:"".concat(t,"ROOT")}function be(e){return _e(e,{campaign:ke,count:we,id:ke,masterId:ke,price:we,purchaserId:ke,sid:ke,title:ke,userId:ke})}function _e(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)&&v()(n[e])!==t[e].type&&(n[e]=t[e].convert(n[e]))})),n}var ke={type:"string",convert:String},we={type:"number",convert:function(e){return"string"!=typeof e?(re("Could not parse value ".concat(e,". Expected value of type String.")),e):parseFloat(e)}},Ce={type:"boolean",convert:function(e){return"true"!==e&&"false"!==e?(re("Could not parse value ".concat(e,". Expected value to be either 'true' or 'false'.")),e):"true"===e}},Se=function(e){return"string"==typeof e&&"ng"===e.toLowerCase()},Pe=Me,Oe=function(e,t){return j((function(e){return function(t){var n=e(t);return delete n.fieldRoles,n}}),(function(e){return function(n){var r=e(n);return function e(n){null!=n&&"object"==typeof n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach((function(r){"searchParams"===r||"params"===r?(n.__ngSearchParams=n[r],n[r]=function(e){if(null!=e){var n=$e(e),r=["articleNumberSearch","hitsPerPage","maxCountVariants","page","query","searchField"].reduce((function(e,t){return e+n(t).map((function(e,t){return"".concat(W(t),"=").concat(W(e),"&")}))}),""),i=n("filters").map((function(e){var n=he(t);return e.map((function(e){return e.values.map((function(t){return"filter=".concat(W(e.name+":"+(i=(r=t).value,o=r.exclude,a=n===de.v4&&Array.isArray(i)?i.map(q).join("/"):i,o?"!"+a:a)),"&");var r,i,o,a})).join("")})).join("")})),o=n("marketIds").map((function(e){return e.map((function(e){return"marketId=".concat(e,"&")})).join("")})),a=n("advisorStatus").map((function(e,t){var n=e.answerPath,r=e.id;return"".concat(W(t),"=").concat(W(r),"-").concat(W(n),"&")})),c=n("sortItems").map((function(e){return e.map((function(e){var t=e.name,n=e.order;return"sort=".concat(W(t),":").concat(W(n),"&")})).join("")})),s=n("customParameters").map((function(e){return e.map((function(e){var t=e.name,n=e.values;return"".concat(W(t),"=").concat(W(n[0]),"&")})).join("")}));return Me({type:"search",url:Z.communication.globalSearchParameter.url,channel:e.channel},t).url+"?"+r+i+o+a+c+s.slice(0,-1)}}(n[r])):e(n[r])})))}(r),ee("[NgAdapter] normalized result:",r),r}}),(function(e){var n,r,i,o=he(t);return T(e).case(Re.isSuggest,Ze).case(Re.isSimilarProducts,Ne).case(Re.isRecommendation,De).case(Re.isCompare,Fe).case(Re.isNavigation,(i=o,function(e){Ge(e,"facets","groups"),e.groups.forEach(He(i,e.filters));var t=Xe({},e);for(var n in e)delete e[n];return e.searchResult=t,e})).case(Re.isAnyCampaign,Ve).case(Re.isGetRecords,(r=o,function(e){return(r===de.v4?e.records:e).map((function(e){var t=Object.keys(e).reduce((function(t,n){var r=e[n];if(Array.isArray(r))if(Array.isArray(r[0])){var i=r[0],o=[""].concat(d()(I((function(e,t){return"".concat(e,"/").concat(t)}))("")(i))),a=i.map((function(e,t){return"".concat(n,"ROOT").concat(o[t],"=").concat(e)}));t[n]="|"+a.join("|")+"|"}else t[n]=r.join("|");else if("object"==typeof r){var c=ue((function(e){return r[e].map((function(t){return"".concat(e,"=").concat(t)}))}
2))(Object.keys(r));t[n]="|"+c.join("|")+"|"}else t[n]=r;return t}),{});return{record:t,id:$e(Z.communication.fieldRoles)("trackingProductNumber").map((function(e){return t[e]}))}}))})).case(Re.isPredBasket,Be).otherwise((n=o,function(e){var t,r,i;for(var o in Ge(e,"breadCrumbTrail","breadCrumbTrailItems"),function(e){function t(e){e.answers.forEach((function(e){return Ge(e,"searchParams","params")}))}(e||[]).forEach((function(e){"ADVISOR"===(e.flavour||"").toUpperCase()&&(e.activeQuestions.forEach(t),e.advisorTree.forEach(t)),e.hits&&(Ge(e,"hits","pushedProductsRecords"),e.pushedProductsRecords.forEach((function(e){Ge(e,"values","record"),e.masterValues&&Xe(e.masterValues,ze(e))})))}))}(e.campaigns),e.channel=e.searchParams.channel,t=e.facets,r=e.filters,i=t.reduce((function(e,t){return e[t.name]=t.filterStyle,e}),{}),r.forEach((function(e){"SLIDER"===(i[e.name]||"").toUpperCase()&&e.values.forEach((function(e){return e.value=e.value.replace(/^\[((?:\d+\.)?\d+),((?:\d+\.)?\d+)]$/,"$1-$2")})),Ge(e,"values","valueList")})),Ge(e,"facets","groups"),e.groups.forEach(He(n,e.filters)),e.fieldRoles=We(e.fieldRoles),function(e){var t,n,r,i,o,a,c,s=ve.entries;t=s,a=(o=(i=e).paging).hitsPerPage,c=o.defaultHitsPerPage,n={value:c,default:!0,selected:a===c,searchParams:Xe({},i.searchParams)},(r=se((function(e){return e.value===n.value}))(t))?t[t.indexOf(r)]=n:t.splice(0,1,n),e.resultsPerPageList=[];var u=function(e){var t=e.searchParams[Ee.productsPerPage];if(t)return t;for(var n=0;n<ve.entries.length;n++){var r=ve.entries[n];if(!0===r.default)return r.value}}(e);s.forEach((function(t){var n=Xe({},t);n.searchParams=Je("page")(e.searchParams),n.searchParams[Ee.productsPerPage]=n.value,n.selected=n.value===u,e.resultsPerPageList.push(n)}))}(e),e.paging=function(e){return{currentPage:e.currentPage,firstLink:t(n(e,1)),lastLink:t(n(e,e.pageCount)),nextLink:t(e.nextLink),pageCount:e.pageCount,pageLinks:function(){if(e.pageCount<=1)return[];for(var r=[],i=Math.max(e.currentPage-4,0),o=Math.min(i+9,e.pageCount);i<o;i++)r.push(t(n(e,i+1)));return r}(),previousLink:t(e.previousLink),resultsPerPage:e.hitsPerPage};function t(e){if(e)return{caption:e.number+"",number:e.number,searchParams:St(e.searchParams),currentPage:e.currentPage}}function n(e,t){var n=e.nextLink||e.previousLink;if(n&&!(e.pageCount<t)){var r=St(n);return r.number=t,r.caption=r.number+"",r.currentPage=e.currentPage===t,r.searchParams&&(r.searchParams.page=t),r}}}(e.paging),Ge(e,"hits","records"),Ue(e.records),Ge(e,"articleNumberSearch","resultArticleNumberStatus",{modifier:Ke}),Ge(e,"totalHits","resultCount"),e.resultStatus=e.resultCount?"resultsFound":void 0,Ge(e,"tookTotal","searchTime"),Ge(e,"scoreFirstHit","simiFirstRecord"),Ge(e,"scoreLastHit","simiLastRecord"),e.singleWordResults=e.singleWordResults.map((function(e){return Ge(e,"totalHits","recordCount"),Ue(e.previewRecords),e})),Ge(e,"sortItems","sortsList",{modifier:Ye}),e.searchResult={},Xe(e.searchResult,e),e)"searchResult"!==o&&delete e[o];return delete e.searchResult.searchResult,e}))}))(e)},xe=function(e){return e.replace(/ROOT\b/,"")},Ee={query:"query",page:"page",productsPerPage:"hitsPerPage",sort:"sort",filter:"filter",searchField:"searchField",noArticleNumberSearch:"articleNumberSearch",useASN:"useAsn",useFoundWords:"useFoundWords",useCampaigns:"useCampaigns",navigation:"navigation",idsOnly:"idsOnly",useKeywords:"useKeywords",generateAdvisorTree:"generateAdvisorTree",disableCache:"useCache",sid:"sid",purchaserId:"purchaserId",marketId:"marketId"},Re=Object.freeze({isSuggest:function(e){return"suggest"===e.type},isAnyCampaign:function(e){var t=e.type;return/campaigns?$/i.test(t)},isProductCampaign:function(e){return"productCampaign"===e.type},isPageCampaign:function(e){return"pageCampaigns"===e.type},isShoppingCartCampaign:function(e){return"shoppingCartCampaign"===e.type},isSimilarProducts:function(e){var t=e.type;return/^similarProducts($|:.+)/i.test(t)},isTracking:function(e){var t=e.event;return-1<je.indexOf(t)},isGetRecords:function(e){return"getRecords"===e.type},isRecommendation:function(e){var t=e.type;return/^recommendation($|:.+)/i.test(t)},isCompare:function(e){var t=e.type;return/^compare($|:.+)/i.test(t)},isNavigation:function(e){return"navigation"===e.type},isNavigationSearch:function(e){return!0===e.navigation||"true"===e.navigation||"true"===(e.navigation||e[ce("navigation")]||[])[0]},isPredBasket:function(e){return"predictiveBasket"===e.type},isSort:function(e){return"sort"===e.type}}),je=["cart","checkout","click","feedback","log","login","recommendationClick","landingPageClick"],Le=Object.freeze({cart:be,checkout:be,click:function(e){return _e(e,{campaign:ke,id:ke,masterId:ke,page:we,pageSize:we,pos:we,purchaserId:ke,query:ke,score:we,sid:ke,title:ke,userId:ke})},feedback:function(e){return _e(e,{message:ke,positive:Ce,query:ke,sid:ke})},landingPageClick:function(e){return _e(e,{campaign:ke,id:ke,masterId:ke,pageId:ke,purchaserId:ke,sid:ke,title:ke,userId:ke})},login:function(e){return _e(e,{purchaserId:ke,sid:ke,userId:ke})},recommendationClick:function(e){return _e(e,{id:ke,mainId:ke,masterId:ke,purchaserId:ke,sid:ke,title:ke,userId:ke})}}),Ie=Object.freeze({compare:function(e){return e.ids.map((function(e){return"&id=".concat(e)})).join("")},getRecords:function(e){return(Array.isArray(e.recordId)?e.recordId:[e.recordId]).map((function(e){return"&productNumber=".concat(e)})).join("")}}),Ae=Object.freeze({getRecords:Je("recordId"),tracking:Je("url","version","event","channel"),navigationSearch:Je("query"),sort:Je("name","order")}),Te=[Re.isSuggest,Re.isProductCampaign,Re.isPageCampaign,Re.isShoppingCartCampaign,Re.isCompare,Re.isGetRecords,Re.isTracking];function Me(e,t){if(!pe(t))throw Error("Requested NG API version (".concat(t,") is not supported by this version of WebComponents. Choose one of [").concat(Object.keys(de).join(", "),"] for the NG API setting or try updating your WebComponents. https://github.com/FACT-Finder-Web-Components/ff-web-components/releases"));var n=e.url.replace(/\/*$/,"/"),r=he(t);return T(e).case_(Re.isNavigation,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/category/").concat(e.channel))})).case_(Re.isSuggest,(function(){return i("".concat(n,"rest/").concat(r,"/suggest/").concat(e.channel))})).case_(Re.isProductCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/product"))})).case_(Re.isPageCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/page"))})).case_(Re.isShoppingCartCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/shoppingcart"))})).case_(Re.isSimilarProducts,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/similar"))})).case_(Re.isRecommendation,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/recommendation"))})).case_(Re.isCompare,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/compare"),Ie.compare(e))})).case_(Re.isGetRecords,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel),Ie.getRecords(e),Ae.getRecords(e))})).case_(Re.isTracking,(function(){return i("".concat(n,"rest/").concat(r,"/track/").concat(e.channel,"/").concat(e.event),"",Ae.tracking(e))})).case_(Re.isPredBasket,(function(){return i("".concat(n,"rest/").concat(r,"/predictivebasket/").concat(e.channel))})).case_(Re.isNavigationSearch,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/").concat(e.channel),"",Ae.navigationSearch(e))})).case_(Re.isSort,(function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel),"",Ae.sort(e))})).otherwise_((function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel))}));function i(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e;return{url:t,addlParams:n,ngEvent:Je("navigation",ce("navigation"))(r)}}}
2function Ne(e){return Ge(e,"hits","records",{modifier:qe}),e}function De(e){return Ge(e,"hits","resultRecords",{modifier:qe}),e}function Be(e){return e}function Fe(e){return e.attributes.forEach((function(e){return Ge(e,"name","attributeName")})),e.records.forEach((function(e){return Ge(e,"values","record")})),e}function Ve(e){return e.forEach((function(e){Ge(e,"hits","pushedProductsRecords",{modifier:qe})})),e}function Ue(e){e.forEach((function(e){Xe(e.masterValues,ze(e)),Ge(e,"masterValues","record"),Ge(e,"score","searchSimilarity")}))}function qe(e){return e.forEach((function(e){return Ge(e,"values","record"),e})),e}function ze(e){var t=e.variantValues,n=void 0===t?{}:t,r=Object.keys(n),i=r.filter((function(e){return"true"===n[e].isMaster}))[0];return n[i||r[0]]||{}}function We(e){return{brand:e.brand,campaignProductNumber:e.productNumber,deeplink:e.deeplink,description:e.description,displayProductNumber:e.productNumber,ean:e.ean,imageUrl:e.imageUrl,masterArticleNumber:e.masterId,price:e.price,productName:e.productName,trackingProductNumber:e.productNumber}}function He(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=function(e){return function(t){return e===t}};return function(r,i){var o,a=T(e).case(n(de.v4),L((o=r.associatedFieldName,function(e){return e.associatedFieldName=o,e}),s,c)).case(n(de.v3),L(s,c)).otherwise(c);function c(e){if(r.__associatedFieldNameV4=e.associatedFieldName,"TREE"===r.filterStyle){var n=ye(e.associatedFieldName);if(0===e.clusterLevel)e.associatedFieldName=n;else if(e.searchParams&&e.searchParams.filters){var i=se((function(t){return t.name===e.associatedFieldName}))(e.searchParams.filters.concat(t)),o=i?(i.values||i.valueList)[0].value:e.searchParams.filters[0].values[0].value,a="".concat(n,"/").concat(gt(o)?o.map(q).join("/"):o),c=a.split("/").length===e.clusterLevel+2;e.associatedFieldName=c?a.substring(0,a.lastIndexOf("/")):a}}return Ge(e,"text","name"),e.hasOwnProperty("totalHits")&&Ge(e,"totalHits","recordCount",{defaultVal:0}),e}function s(e){return"IMPLICIT"===e.selected?(e.selected=!0,e.implicitSelection=!0):"TRUE"===e.selected?(e.selected=!0,e.implicitSelection=!1):"FALSE"===e.selected?(e.selected=!1,e.implicitSelection=!1):console.warn("[NgAdapter/renameProperty] FacetElement property 'selected' has unknown value \"".concat(e.selected,'". Property not converted.')),e}r.groupOrder=i,(r.elements||[]).forEach(a),(r.selectedElements||[]).forEach(a),"SLIDER"===r.filterStyle&&0===r.elements.length&&(r.elements=St(r.selectedElements)),"CATEGORY_PATH"===r.type&&(r.type="categoryPath")}}function Ke(e){return e?"resultsFound":"noArticleNumberSearch"}function Ye(e){return e.map((function(e){var t=St(e);return t.name="Relevancy"===t.name?null:t.name,t}))}function Ge(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},i=r.modifier,o=void 0===i?Ze:i,a=r.defaultVal,c=void 0===a?void 0:a;if(t&&n){var s=Object.getOwnPropertyDescriptor(e,t);if(void 0!==s)return delete e[t],void(e[n]=o(s.value));void 0!==c?(console.warn('[NgAdapter/renameProperty] No property "'.concat(t,'" on provided object. Creating new property "').concat(n,'" with default value "').concat(c,'".'),e),e[n]=c):console.warn('[NgAdapter/renameProperty] No property "'.concat(t,'" on provided object. New property "').concat(n,'" was not created.'),e)}}function Xe(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}function Ze(e){return e}function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n=St(e);return t.forEach((function(e){return delete n[e]})),n}}function $e(e){return function(t){return{map:e&&e.hasOwnProperty(t)?function(n){return n(e[t],t)}:function(){return""}}}}function Qe(){if(!Se(Z.communication.globalSearchParameter.version))return[];var e=Z.communication.globalCommunicationParameter.categoryPage;return e?e.split(","):[]}var et="NG",tt=Object.freeze({predBasket:"predictiveBasket"}),nt=Object.freeze({predBasket:tt.predBasket}),rt=Object.freeze({predBasket:"predictiveBasket",sandboxMode:"sandboxMode"}),it=Object.freeze((r={},a()(r,rt.predBasket,{enable:!1,topic:tt.predBasket,eventType:nt.predBasket}),a()(r,rt.sandboxMode,{enable:!1}),r));function ot(e,t){if(e===tt.predBasket){if(!it[rt.predBasket].enable)throw st(rt.predBasket);ct(t)<ct(et)&&re("".concat(tt.predBasket," requires FACT-Finder version ").concat(et," or higher."))}}function at(e,t){if(e===nt.predBasket){if(!it[rt.predBasket].enable)throw st(rt.predBasket);if(ct(t)<ct(et))throw Error("".concat(nt.predBasket," requires FACT-Finder version ").concat(et," or higher."))}}function ct(e){if(Se(e))return 1e3;var t=parseFloat(e);return isNaN(t)?-1/0:t}function st(e){return Error("To use this experimental API you have to set `factfinder.__experimental.".concat(e,".enable = true`."))}var ut=function(e,t,n){an.fireCustomEvent("ffUrlWrite",!0,!1,document,{urlDict:e,url:t,historyState:n})};function lt(e,t,n){var r=ce(t),i=e[r]||[];return Array.isArray(i)||(i=[i]),i.push(n),e[r]=ft(i),e}function ft(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(t,n){return e.indexOf(t)===n}))}var dt={_typeFlag:"HistoryEvent",create:function(e){return{searchParams:e.searchParams||(e.searchResult?e.searchResult.searchParams:"")}}};function ht(){try{return window.history.state||{}}catch(e){return ee(e),{}}}function pt(e){if(e)try{e()}catch(e){ie("could not execute callback: ",e)}}function mt(e){if(e&&1===e.nodeType){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}return""}function vt(e){var t=document.createElement("div");return t.innerHTML=e,1<t.childElementCount?t.children:t.firstElementChild}function gt(e){return"[object Array]"===Object.prototype.toString.call(e)}function yt(e){return"[object Object]"===Object.prototype.toString.call(e)}function bt(e){return"[object Function]"===Object.prototype.toString.call(e)}function _t(){var e=document.createElement("div"),t={transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n]}function kt(e,t,n){n.style[e]=t}function wt(e,t){return function(){if(e)try{e.apply(window,arguments)}catch(t){ie("could not invoke function fn1 ["+e+"] got error: ",t)}if(t)try{t.apply(window,arguments)}catch(t){ie("could not invoke function fn2 ["+e+"] got error: ",t)}}}function Ct(e,t,n){try{return e.addEventListener?e.addEventListener(t,n):e.attachEvent?e.attachEvent("on"+t,n):e[t]=n,!0}catch(e){return ie("could not add eventlistener: ",e),!1}}function St(e){var t;if(null==e||"object"!=v()(e))return e;if(e instanceof Array){t=[];for(var n=0,r=e.length;n<r;n++)t[n]=St(e[n]);return t}if(e instanceof Object){for(var i in t={},e)e.hasOwnProperty(i)&&(t[i]=St(e[i]));return t}throw new Error("Unable to copy obj! Its type isn't supported.")}function Pt(e,t){try{for(var n=e.attributes,r=0;r<n.length;r++){var i=n[r];try{"for-group"!==i.name&&t.setAttribute(i.name,i.value)}catch(e){ie(e)}}}catch(e){ie("could not copy attribute: ",e)}}function Ot(e){return 1===e.nodeType&&-1<e.tagName.indexOf("-")}
2function xt(){var e,t=document.createElement("fakeelement"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return n[e]}function Et(e,t){t=t.toUpperCase();var n=e.parentNode;return n&&n.nodeName?n.nodeName===t?n:Et(n,t):void 0}function Rt(e){var t=jt(e);return t?Lt(t):{}}function jt(e){return e||(e=window.location.href),e.split("?")[1]}function Lt(e,t){var n={};if(e)for(var r=e.split("&"),i=0;i<r.length;i++){var o=r[i],a=(o=o.split("="))[0],s=!0===t?c.fixedDecodeURIComponent(o[1]):o[1];s&&(n[a]?n[a].push(s):n[a]=[s])}return n}function It(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}function At(e){return e.sort((function(e,t){var n=e.toLowerCase().trim(),r=t.toLowerCase().trim();return n<r?-1:r<n?1:0}))}function Tt(e){return-1<e.indexOf("filter")}function Mt(e,t){var n=j((function(e){return t?At(e):e}),(function(t){return t.filter((function(t){return!yt(e[t])}))}),It)(JSON.parse(JSON.stringify(e))),r=[];return n.forEach((function(n){var i,o=e[n];!0===t&&Tt(n)&&(o[0]=j(c.fixedEncodeURIComponent,Nt,c.fixedDecodeURIComponent)(o[0])),gt(o)?r.push(o.reduce((i=n,function(e,t){return e+(e?"&":"")+i+"="+t}),"")):r.push(n+"="+o)})),"?"+r.join("&")}function Nt(e){if(-1<e.indexOf("~~~")||1<e.indexOf("___")){var t=-1<e.indexOf("~~~")?"~~~":"___";return At(e.split(t)).join(t)}return e}function Dt(e,t,n){var r=window.location.href.split("?"),i=Lt(r[1]);void 0!==t?i[e]=t:delete i[e];var o=r[0]+Mt(i,n);if(it[rt.sandboxMode].enable){var a=function(){var e={historyState:{}};return an.fireCustomEvent("ffGetHistory",!0,!1,document,e),e}();ut(i,o,a)}else history.replaceState(ht(),"",o)}function Bt(e,t){var n,r=[];for(n in e)e.hasOwnProperty(n)&&t.test(n)&&r.push(n);return r}function Ft(e,t){var n={};for(var r in t){var i=t[r];void 0!==i&&""!==i&&(n[r]=t[r])}for(var o in e)void 0===n[o]&&(n[o]=e[o]);return n}function Vt(e){e||(e=window.location.href),-1<e.indexOf("http://")?e=e.replace("http://",""):-1<e.indexOf("https://")&&(e=e.replace("https://",""));var t=e.split("/");return 1===t.length?jt(t[0]):t[t.length-1]}function Ut(e,t,n,r,i){var o=Object.assign(document.createEvent("Event"),i);o.initEvent(e,t,n),r=r||document;try{r.dispatchEvent(o)}catch(e){ie(e)}}function qt(e,t,n){var r=n.length;return 0===n.length&&(r=1),e.substr(0,t)+n+e.substr(t+r)}function zt(e,t,n){if(!(t+n>e.length))return e.substr(0,t)+e.substr(t+n)}function Wt(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ht(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e&&(e.match(/^filter.+/g)||e.match(/^sort.+/g)||"channel"===e||"query"===e||"sid"===e||"productsPerPage"===e||"page"===e||"searchField"===e||"noArticleNumberSearch"===e||"useAsn"===e||"useFoundWords"===e||"useCampaigns"===e||"navigation"===e||"idsOnly"===e||"useKeywords"===e||"generateAdvisorTree="===e||"disableCache"===e||"followSearch"===e||"usePersonalization"===e||"useSemanticEnhancer"===e||"useAso"===e||"omitContextName"===e||"log"===e||t&&"filter"===e||t&&"sort"===e||t&&"marketId"===e||t&&"hitsPerPage"===e)}var Kt=["query","filter","sort","page","productsPerPage"],Yt={store:{},setItem:function(e,t){this.isSupported()?void 0!==t?window.localStorage.setItem(e,t):window.localStorage.removeItem(e):void 0!==t?this.store[e]=t:delete this.store[e],"ff-basket"===e&&Ut("ff-basket-changed",!0,!1,document)},getItem:function(e){return this.isSupported()?window.localStorage.getItem(e):this.store[e]},isSupported:function(){try{var e="__TEST__KEY__",t=window.localStorage;return t.setItem(e,"1"),t.removeItem(e),!0}catch(e){return!1}}};function Gt(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}function Xt(e){return null!=e&&""!==e}function Zt(e){if(e)return"".concat(e.associatedFieldName,"/").concat(e.name)}
2function Jt(e,t){var n=e.split("?"),r=(e=n[0],Lt(n[1]));return en(r),e+Mt(r,t)}var $t=B,Qt=F;function en(e){return Object.keys(e).forEach((function(t){var n=e[t];if(function(e){return/^__NO_ENC_/.test(e)}(t))return e[function(e){return e.replace(/^__NO_ENC_/,"")}(t)]=n,void delete e[t];gt(n)?e[t]=n.filter((function(e){return tn(t,e)})).map($t).map(V):tn(t,n)&&(e[t]=V($t(n)))})),e}function tn(e,t){return void 0!==t&&!/^ff-.*/.test(e)&&!yt(t)&&!bt(t)&&"number"!=typeof t}function nn(e,t){var n=e.split("?"),r=(e=n[0],Lt(n[1]));return rn(r),e+Mt(r,t)}function rn(e){return Object.keys(e).forEach((function(t){var n=e[t];e[t]=gt(n)?n.map(Qt):Qt(n)})),e}var on=Object.assign({},u);Object.defineProperty(on,"logLevel",{get:function(){return Z.common.logLevel},set:function(e){return Z.common.logLevel=e}});var an=Object.assign(Object.assign({Logger:on},y),b);function cn(e){var t=e||{},n=t.srcProperty,r=void 0===n?void 0:n,o=t.storeInProperty,a=void 0===o?void 0:o,c=t.keepOriginalInProperty,s=void 0===c?void 0:c,u=t.entrySeparator,l=void 0===u?"|":u,f=t.keyValueSeparator,d=void 0===f?"=":f;if(!r||"string"!=typeof r)throw h("srcProperty");if(!a||"string"!=typeof a)throw h("storeInProperty");if(void 0!==s&&("string"!=typeof s||""===s))throw p("keepOriginalInProperty");if("string"!=typeof l||""===l)throw p("entrySeparator");if("string"!=typeof d||""===d)throw p("keyValueSeparator");return Object.freeze({topic:"records",handler:function(e){0!==e.length&&(e[0].record.hasOwnProperty(r)?e.forEach((function(e){var t=e.record,n=t[r];"string"==typeof n?(t.hasOwnProperty([a])&&a!==r&&m("Overwriting storeInProperty '".concat(a,"'")),t[a]=n.split(l).filter((function(e){return!!e})).map((function(e){return e.split(d)})).reduce((function(e,t){var n=t[0].split("~~"),r=i()(n,2),o=r[0],a=r[1];return e[o]=e[o]||[],e[o].push({unit:a,value:t[1]}),e}),{}),s&&(t[s]=n)):m("Cannot parse srcProperty '".concat(r,"'. Must be of type 'string', but was '").concat(v()(n),"'. Check if srcProperty is configured correctly"))})):m("srcProperty '".concat(r,"' not found on record")))}});function h(e){return Error(g("Required attribute options.".concat(e," must be a non-empty string")))}function p(e){return Error(g("Optional attribute options.".concat(e," was set to invalid value. Must be a non-empty string")))}function m(e){re(g(e))}function g(e){return"[Middleware:MultiAttributeParsing] ".concat(e)}}function sn(){return Object.freeze({topic:"result",handler:un})}function un(e){var t;(t=e.campaigns,t.reduce((function(e,t){return e.concat(t.feedbackTexts.filter((function(e){return!0===e.teaser})))}),[])).forEach((function(t){e.records.splice(t.position-1,0,t);for(var n=t.position;n<e.records.length;n++){var r=e.records[n];r.__ORIG_POSITION__=r.__ORIG_POSITION__||r.position,r.position+=1}}))}function ln(){var e=function(){this.type=void 0},t=function(e){return gt(e)?e[0]:e},n=void 0;return{url:void 0,type:void 0,success:void 0,fail:void 0,always:void 0,version:void 0,sid:void 0,query:void 0,channel:void 0,page:void 0,productsPerPage:void 0,sort:void 0,filter:void 0,searchField:void 0,articleNumberSearch:void 0,useASN:void 0,useFoundWords:void 0,useCampaigns:void 0,navigation:void 0,idsOnly:void 0,useKeywords:void 0,generateAdvisorTree:void 0,disableCache:void 0,purchaserId:void 0,marketId:void 0,get cancel(){return e},set cancel(n){A(e)||e===t(n)||re("Property 'cancel' is already set. Overriding."),e=n},get searchImmediate(){return n},set searchImmediate(e){A(n)||n.toString()===t(e)||re("Property 'searchImmediate' is already set. Overriding."),n=e}}}function fn(){return Object.assign(Object.assign({},ln()),{groupName:void 0,filterName:void 0,selectedMaxValue:void 0,selectedMinValue:void 0,removeAll:void 0,clusterLevel:void 0})}function dn(){return Object.assign(Object.assign({},ln()),{value:void 0})}function hn(){var e=ln();return e.query="*",e}Z.communication.globalSearchParameter=hn();var pn="ff_sid",mn="sid",vn={LOCALSTORAGE_SID_PARAM_NAME:pn,REQUEST_SID_PARAM_NAME:mn,SESSION_ID_LENGTH:30,setOrCreateSid:function(e){if(!0!==Z.communication.globalCommunicationParameter.isSessionIdDisabled){var t=Yt,n=Z.communication.globalCommunicationParameter.sid,r=gn(),i=bn();if(n)return e.sid=n,void(r!==n&&t.setItem(pn,n));r||(i?(gt(i)&&(i=i[0]),t.setItem(pn,i)):gn(!0)),e.sid=gn()}},validateSidLength:function(e){30!==e.length&&ie("sid must be exactly ".concat(30," characters long. Was: ").concat(e.length))},readSessionIdFromLocalstorage:gn,writeSessionIdToUrl:yn,readSessionIdFromRequestParam
2s:bn};function gn(e){if(!0!==Z.communication.globalCommunicationParameter.isSessionIdDisabled){var t=Yt;return t.getItem(pn)||!0!==e||t.setItem(pn,Wt(30)),t.getItem(pn)}}function yn(e){var t=Z.communication.globalCommunicationParameter;if(!0!==t.isSessionIdDisabled&&!0===t.useUrlParameters){var n=bn(!1);if(n&&void 0!==n[0]&&n[0]===e)return;if(e)Yt.setItem(e),Dt(mn,e,t.sortUrlParametersAlphabetically);else if(!n){var r=gn(!0);Dt(mn,r,t.sortUrlParametersAlphabetically)}}}function bn(e){var t=Rt().sid;return t||!0!==e||yn(t=gn(!0)),t}var _n={query:"query",channel:"channel",page:"page",productsPerPage:"productsPerPage",sort:"sort",filter:"filter",searchField:"searchField",articleNumberSearch:"noArticleNumberSearch",useASN:"useAsn",useFoundWords:"useFoundWords",useCampaigns:"useCampaigns",navigation:"navigation",idsOnly:"idsOnly",useKeywords:"useKeywords",generateAdvisorTree:"generateAdvisorTree",disableCache:"disableCache",sid:"sid"},kn={query:"query",channel:"channel",page:"page",productsPerPage:"productsPerPage",sort:"sort",filter:"filter",searchField:"searchField",articleNumberSearch:"noArticleNumberSearch",useASN:"useAsn",useFoundWords:"useFoundWords",useCampaigns:"useCampaigns",navigation:"navigation",idsOnly:"idsOnly",useKeywords:"useKeywords",generateAdvisorTree:"generateAdvisorTree",disableCache:"disableCache",sid:"sid"},wn=["dispatchId"],Cn=dn(),Sn=fn(),Pn=["url","sid","purchaserId"];function On(e,t,n){return 6.9==n?Tn(e,t,_n):6.11==n?Tn(e,t,kn):Se(n)?Tn(function(e){var t=e.disableCache;return"true"!==t&&!0!==t||(e.disableCache="false"),delete e.useCache,e}(e),t,Ee):Tn(e,t,_n)}function xn(e){return jn(e=Ft(Z.communication.globalSearchParameter,e),Z.communication.globalCustomUrls.serachUrl),Se(e.version)?An(e):(Ln(e,"Search.ff"),On(e,e.url,e.version))}function En(e,t){return In(t,e)}function Rn(e){var t=en(e),n=t.version?t.version:t.version=Z.communication.globalSearchParameter.version;if(6.9==n)return Nn(t,_n);if(6.11==n)return Nn(t,kn);if(Se(n)){var r=Ft(Dn(Z.communication.globalSearchParameter),t);"feedback"===r.event&&delete r.purchaserId,jn(r,Z.communication.globalCustomUrls.trackingUrl);var i=Pe(r,Z.communication.globalCommunicationParameter.ngApi);return i.url+Mt(i.ngEvent)}return Nn(t,kn)}function jn(e,t){void 0!==t&&""!==t&&(e.url=t)}function Ln(e,t){"/"===e.url[e.url.length-1]?e.url=e.url+t:e.url="".concat(e.url,"/").concat(t)}function In(e,t){return t=Ft(Lt(jt(e),!0),t),jn(t=Ft(Z.communication.globalSearchParameter,t),Z.communication.globalCustomUrls.serachUrl),Se(t.version)?An(t):(Ln(t,"Search.ff"),On(t,t.url,t.version))}function An(e){var t,n=(!(t=function(e){if(!gt(e.filter))return e;e.filter=ft(e.filter);var t=Qt(Qe()[0]);if(!t)return e;var n=t.substring(t.indexOf("=")+1,t.indexOf(":")+1);return e.filter=e.filter.filter((function(e,t,r){if(0!==e.indexOf(n))return!0;var i=e+"/";return!r.some((function(e){return 0===e.indexOf(i)}))})),e}(e)).marketId||gt(t.marketId)||(t.marketId=t.marketId.toString().split(",")),t),r=Pe(n,Z.communication.globalCommunicationParameter.ngApi),i=r.url,o=r.addlParams,a=r.ngEvent;return On(a,i,a.version)+o}function Tn(e,t,n){var r="?"===t[t.length-1]?t:t+"?";if(e){var i=JSON.parse(JSON.stringify(e));if(wn.forEach((function(e){return delete i[e]})),i.type){var o=i.type;en(i),i.type=o}var a=!0===Z.communication.globalCommunicationParameter.useSeo&&-1!==t.indexOf("Search.ff"),c="true"===String(i.navigation);for(var s in(a||c)&&delete i.query,n)i[s]&&(gt(i[s])?r=Mn(s,i[s],r):"function"!=typeof i[s]&&"object"!=typeof i[s]&&(r+=n[s]+"="+i[s]+"&"));if(!0===Z.communication.globalCommunicationParameter.appendUnknownParameter)for(var s in i)s in Cn||s in Sn||(gt(i[s])?r=Mn(s,i[s],r):"function"!=typeof i[s]&&"object"!=typeof i[s]&&(r+=s+"="+i[s]+"&"));r=r.substring(0,r.length-1)}return r}function Mn(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];"function"!=typeof i&&"object"!=typeof i&&(n+="".concat(e,"=").concat(i,"&"))}return n}function Nn(e,t){return jn(e=Ft(Dn(Z.communication.globalSearchParameter),e),Z.communication.globalCustomUrls.trackingUrl),Ln(e,"Tracking.ff"),Tn(e,e.url,t)}function Dn(e){var t={};if(e)for(var n=0;n<Pn.length;n++){var r=Pn[n];e[r]&&(t[r]=e[r])}return t}var Bn=Object.freeze({isSearchResult:function(e){var t=e.type;return-1<["search","filter","sort","ppp","paging","navigation","bct"].indexOf(t)},isSuggest:function(e){return"suggest"===e.type},isRecommendation:function(e){var t=e.type;return/^recommendation/i.test(t)},isSimilarProducts:function(e){var t=e.type;return/^similarProducts/i.test(t)},isPredictiveBasket:function(e){return"predictiveBasket"===e.type},isProductCampaign:function(e){return"productCampaign"===e.type},isPageCampaign:function(e){return"pageCampaigns"===e.type},isShoppingCartCampaign:function(e){return"shoppingCartCampaign"===e.type},isGetRecords:function(e){return"getRecords"===e.type}});function Fn(e){return"__ORIG_".concat(e.toUpperCase(),"__")}function Vn(e,t){if(Z.communication.globalCommunicationParameter.currencyCode&&Z.communication.globalCommunicationParameter.currencyCountryCode){if(!Z.communication.fieldRoles||!Z.communication.fieldRoles.price)return void re("No field role for price configured. Skipping localization. See https://web-components.fact-finder.de/documentation/field-roles");n=function(e){zn("record")(e.resultRecords||e.records||e)},T(e).case(Bn.isSearchResult,qn).case(Bn.isSuggest,(function(e){zn("attributes")(e.suggestions||e)})).case(Bn.isRecommendation,n).case(Bn.isSimilarProducts,n).case(Bn.isPageCampaign,Un).case(Bn.isShoppingCartCampaign,Un).case(Bn.isProductCampaign,Un).case(Bn.isPredictiveBasket,(function(e){zn("values")(e.hits)})).case(Bn.isGetRecords,n).otherwise((function(e){}))(t)}var n}var Un=function(e){(e=e.campaigns||e)&&e.forEach((function(e){e.pushedProductsRecords&&zn("record")(e.pushedProductsRecords)}))},qn=function(e){[function(e){var t=Hn();e.groups&&e.groups.forEach((function(e){var n=e.elements[0]||e.selectedElements[0];if(n){var r,i=fe(t,n.associatedFieldName),o=(r=e,function(e){e.__ORIG_NAME__=e.name,r.unit&&(e.name=e.name.replace(r.unit,"")),e.name=Wn(e.name)});
2i&&"SLIDER"!==e.filterStyle&&(e.elements.forEach(o),e.selectedElements.forEach(o))}}))},function(e){zn("record")(e.records)},Un].forEach((function(t){return t(e.searchResult||e)}))},zn=function(e){return function(t){var n=Hn();t.forEach((function(t){n.forEach((function(n){var r=t[e][n];r&&(t[e][Fn(n)]=r,t[e][n]=Wn(r))}))}))}},Wn=function(e){if(null!=e){var t=Z.communication.globalCommunicationParameter.currencyCode,n=Z.communication.globalCommunicationParameter.currencyCountryCode,r=parseInt(Z.communication.globalCommunicationParameter.currencyMaxDigits),i=parseInt(Z.communication.globalCommunicationParameter.currencyMinDigits),o=e.toString();if(o.match(/[^$,.\d]/g)){var a=o.replace(/[^0-9.]+/g," ").split(" "),c=[];a.forEach((function(e){if(e){var t=parseFloat(e);isNaN(t)||c.push(e)}}));var s=c.slice();return c=c.map((function(e){return parseFloat(e).toLocaleString(n,{style:"currency",currency:t,maximumFractionDigits:r,minimumFractionDigits:i})})),s.forEach((function(e,t){o=o.replace(e,c[t])})),o}var u=parseFloat(o).toLocaleString(n,{style:"currency",currency:t,maximumFractionDigits:r,minimumFractionDigits:i});return u+""=="NaN"?o:u}},Hn=function(){var e=Z.communication.globalCommunicationParameter.currencyFields.split(","),t=Z.communication.fieldRoles.price;return fe(e,t)||e.push(t),e},Kn=function(e){var t=e.response,n=e.request,r=t.length&&n.getResponseHeader("content-type")&&-1<n.getResponseHeader("content-type").toLowerCase().indexOf("application/json")?JSON.parse(t):t;return Object.assign(Object.assign({},e),{response:r})},Yn=L((function(e){return Z.communication.fieldRoles||function(e,t){return t?t.fieldRoles?[We(t.fieldRoles)]:t.searchResult&&t.searchResult.fieldRoles?[t.searchResult.fieldRoles]:[]:[]}(Z.communication.globalCommunicationParameter.ngApi,e.response).map((function(e){return Z.communication.fieldRoles=e})),e}),(function(e){var t=e.ffEvent,n=e.response,r=Se(Z.communication.globalSearchParameter.version)&&t?Oe(t,Z.communication.globalCommunicationParameter.ngApi)(n):n;return Object.assign(Object.assign({},e),{response:r})}),(function(e){var t=e.url,n=e.ffEvent,r=e.response,i=e.pushToHistory;return i&&!n.topics&&Z.communication.beforeHistoryPushCallbacks.forEach((function(e){try{!1===e.fn(r,n,t)&&(i=!1)}catch(e){ie("Could not execute beforeHistoryPushCallbacks: ",e)}})),i&&Yr(r,t,n),Object.assign(Object.assign({},e),{pushToHistory:i})})),Gn=function(e){return function(t){var n,r,i=t.ffEvent,o=t.response;if(Vn(i,o),function(e,t){var n;t&&((n="productCampaign"!==e.type&&"pageCampaigns"!==e.type&&t.searchResult?t.searchResult:t)&&gt(n)&&n.forEach((function(e){var t=e.pushedProductsRecords;t&&t.forEach((function(e,t){e.position=t+1}))})))}(i,o),o.searchResult){o.timedOut&&ee("FACT-Finder Timeout for request: "+i.type);var a="sort"===i.type||"ppp"===i.type||"paging"===i.type,c="false"===i.useAsn||!1===i.useAsn;if(a&&c){var s=Z.communication.currentSearchResult;Z.communication.currentSearchResult=o.searchResult,s&&(Z.communication.currentSearchResult.groups=s.groups,Z.communication.currentSearchResult.breadCrumbTrailItems=s.breadCrumbTrailItems)}else i.topics||(Z.communication.currentSearchResult=o.searchResult);if(!1!==Z.communication.globalCommunicationParameter.useBrowserHistory){var u=Rt(window.location.href),l=Z.communication.globalCommunicationParameter.useUrlParameters,f=Z.communication.globalCommunicationParameter.parameterWhitelist.split(",");mo.Util.replaceHistoryState(o,Xr(u,i,!l,f),i)}}return mo.ResultDispatcher.dispatch(o,i,(r=e,(n=i).topics&&bt(n.topics)?n.topics():r)),t}},Xn=Object.freeze({Callback:"callback",Subscribe:"subscribe"}),Zn={},Jn={},$n=!0,Qn=[],er={result:yr,records:br,asn:Pr,sort:kr,paging:Cr,suggest:Ar,bct:_r,ppp:wr,pagingItems:Sr,productDetail:xr,singleWordSearch:Or,query:Fr,campaign:Er,productCampaign:jr,shoppingCartCampaign:Lr,pageCampaigns:Rr,navigation:Vr,tagCloud:Br,similarProducts:Mr,predictiveBasket:Nr};function tr(e){return e===Xn.Callback?Jn:Zn}function nr(e,t,n,r){if($n)Qn.push({type:e,topic:t,data:n,event:r});else{var i=tr(e)[t];i&&i.length&&i.slice().forEach((function(t){try{t.fn.call(t.ctx,n,r)}catch(n){ie("could not invoke ".concat(e," function  ").concat(t),n)}}))}}function rr(e,t,n,r){var i=tr(e);i[t]=i[t]||[];var o=Wt(20);return i[t].push({fn:n,ctx:r,key:o}),o}function ir(e,t,n){for(var r=tr(e)[t]||[],i=0;i<r.length;i++)if(r[i].key===n)return r.splice(i,1),!0;return!1}function or(){ar(!1),Qn.forEach((function(e){nr(e.type,e.topic,e.data,e.event)})),Qn=[]}function ar(e){$n=e}function cr(e,t,n){nr(Xn.Callback,e,t,n)}function sr(e,t,n){return ot(e,Z.communication.globalSearchParameter.version),rr(Xn.Callback,e,t,n)}function ur(e,t){return ir(Xn.Callback,e,t)}function lr(e,t,n){return ot(e,Z.communication.globalSearchParameter.version),rr(Xn.Subscribe,e,t,n)}function fr(e,t){return ir(Xn.Subscribe,e,t)}function dr(e,t,n){nr(Xn.Subscribe,e,t,n)}function hr(e,t,n){e?n?(n instanceof Array?ee("dispatch topics: "+n):n=[n],n.forEac
2h((function(n){"recommendation"===n?Tr(e.resultRecords?e.resultRecords:e,t):"compare"===n?Dr(e,t):"suggest"===n?Ar(e.suggestions||e,t):"getRecords"===n?pr(e.records||e,n,t):"predictiveBasket"===n?pr(e.hits,n,t):er[n]?er[n](e.searchResult||e,t):pr(e,n,t)}))):mr(e.searchResult||e,t):ie("No response to dispatch for topics: "+n)}function pr(e,t,n){try{cr(t,e,n)}catch(e){ie("Unexpected error while invoking callbacks:",e)}try{ee("dispatching topic: "+t),dr(t,e,n)}catch(e){ie("Unexpected error while dispatching data:",e)}}function mr(e,t){vr(e,t)}function vr(e,t){var n,r,i,o,a;(n=e.campaigns,r=Zn,i=(n||[]).filter((function(e){return"redirect"===e.flavour.toLowerCase()}))[0],o=(r["campaign:redirect"]||[])[0],a=!!i&&!!o,Object.freeze({then:function(e){try{a&&e(o.fn.call(o.ctx,i))}catch(e){ie("could not invoke subscriber for redirect campaign. error: ",e,o)}return this},otherwise:function(e){return a||e(),this}})).then(Ur).otherwise((function(){yr(e,t),Er(e,t),br(e,t),_r(e,t),kr(e,t),wr(e,t),Cr(e,t),Sr(e,t),Pr(e,t),Or(e,t),Fr(e,t)}))}function gr(e,t){if(!A(e)&&Object.keys(e).length){var n=Z.communication.globalSearchParameter.version,r={type:"search",version:ri()?n:parseFloat(n),dispatchId:++Z.communication.eventCounter},i={url:xn(r),ffEvent:r,response:e,pushToHistory:!1};L(Yn,Gn(t))(i)}else re("Empty response passed as an argument. Dispatching stopped")}function yr(e,t){cr("result",e,t),ee("dispatching result"),dr("result",e,t)}function br(e,t){cr("records",e.records,t),ee("dispatching records"),dr("records",e.records,t)}function _r(e,t){cr("bct",e.breadCrumbTrailItems,t),ee("dispatching bread crumb trail"),dr("bct",e.breadCrumbTrailItems,t)}function kr(e,t){cr("sort",e.sortsList,t),ee("dispatching sort items"),dr("sort",e.sortsList,t)}function wr(e,t){cr("ppp",e.resultsPerPageList,t),ee("dispatching results per page items"),dr("ppp",e.resultsPerPageList,t)}function Cr(e,t){cr("paging",e.paging,t),ee("dispatching paging"),dr("paging",e.paging,t)}function Sr(e,t){var n=e&&e.paging?e.paging:void 0;cr("pagingItems",n,t),ee("dispatching paging items"),dr("pagingItems",n,t)}function Pr(e,t){cr("asn",e.groups,t),ee("dispatching asn"),dr("asn",e.groups,t)}function Or(e,t){cr("singleWordSearch",e.singleWordResults,t),ee("dispatching singleWordSearch"),dr("singleWordSearch",e.singleWordResults,t)}function xr(e,t){var n;e&&e.records instanceof Array&&(n=e.records[0]),cr("productDetail",n,t),ee("dispatching productDetail"),dr("productDetail",n,t)}function Er(e,t){cr("campaign",e.campaigns,t),ee("dispatching campaigns"),Ir(e.campaigns,"campaign",t)}function Rr(e,t){cr("pageCampaigns",e,t),ee("dispatching page campaigns"),Ir(e,"pageCampaign",t)}function jr(e,t){cr("productCampaign",e,t),ee("dispatching productCampaign"),Ir(e,"productCampaign",t)}function Lr(e,t){cr("shoppingCartCampaign",e,t),ee("dispatching shoppingCartCampaign"),Ir(e,"shoppingCartCampaign",t)}function Ir(e,t,n){try{var r=[];r.push(t);for(var i=0;i<e.length;i++){var o=e[i];o.pushedProductsRecords&&0<o.pushedProductsRecords.length&&(r.push(t+":pushedProducts"),r.push(t+":pushedProducts:"+o.name)),r.push(t+":"+o.name),r.push(t+":"+o.flavour.toLowerCase()),r.push(t+":"+o.flavour.toLowerCase()+":"+o.name),o.feedbackTexts&&(r.push(t+":feedbacktext"),o.feedbackTexts.forEach((function(e){r.push(t+":feedbacktext:"+o.name),r.push(t+":feedbacktext:"+e.label)})))}var a=Bt(Zn,new RegExp(t)).filter((function(e){return-1===r.indexOf(e)}));for(i=0;i<a.length;i++)dr(a[i],void 0,n);for(i=0;i<e.length;i++){var c=e[i];try{c.pushedProductsRecords&&0<c.pushedProductsRecords.length&&(dr(t+":pushedProducts",c.pushedProductsRecords,n),dr(t+":pushedProducts:"+c.name,c.pushedProductsRecords,n))}catch(e){}dr(t,c,n),dr(t+":"+c.name,c,n),dr(t+":"+c.flavour.toLowerCase(),c,n),dr(t+":"+c.flavour.toLowerCase()+":"+c.name,c,n);var s=c.feedbackTexts;if(s)for(var u=0;u<s.length;u++){var l=s[u];dr(t+":feedbacktext",l,n),dr(t+":feedbacktext:"+c.name,l,n),dr(t+":feedbacktext:"+l.label,l,n)}}}catch(e){}}function Ar(e,t){cr("suggest",e,t),ee("dispatching suggest"),dr("suggest",e,t)}function Tr(e,t){cr("recommendation",e,t),ee("dispatching recommendations"),dr("recommendation",e,t),dr(t.type,e,t)}function Mr(e,t){cr("similarProducts",e,t),ee("dispatching similarProducts"),dr("similarProducts",e,t),t&&dr(t.type,e,t)}function Nr(e,t){!function(e){if(!it.hasOwnProperty(e))throw Error("".concat(e," is not an experimental feature and cannot be guarded."));if(!it[e].enable)throw st(e)}(rt.predBasket),cr("predictiveBasket",e,t),ee("dispatching predictiveBasket"),dr("predictiveBasket",e,t)}function Dr(e,t){cr("compare",e,t),ee("dispatching compare"),dr("compare",e,t),dr(t.type,e,t)}function Br(e,t){cr("tagCloud",e,t),ee("dispatching tag cloud items"),dr("tagCloud",e,t)}function Fr(e,t){if(e&&e.searchParams)try{var n=Lt(e.searchParams.split("?")[1]).query;if(n){try{cr("query",n,t)}catch(e){}try{ee("dispatching query"),dr("query",n,t)}catch(e){}}}catch(e){ee("result.searchParams from query has no params")}}function Vr(e,t){cr("navigation",e,t);try{if(!e.searchResult.groups||!e.searchResult.groups.length)return;
2e.searchResult.groups[0].elements.forEach((function(e){var n;e.__TARGET_URL__=(n={url:Xr(Lt(e.searchParams.split("?")[1]),void 0,!1),isCustomized:!1},Object.freeze({setUrl:function(e){if("string"!=typeof e)throw new Error("customUrl must be a string.");n.url=e,n.isCustomized=!0},get url(){return n.url},get isCustomized(){return n.isCustomized}})),e.__SUB_ELEMENTS__=[];var r=Zt(e);Z.communication.navigationResult[t.key]=Z.communication.navigationResult[t.key]||{},Z.communication.navigationResult[t.key][r]={element:e,subelements:e.__SUB_ELEMENTS__},Z.communication.navigationLayer[t.key]=Z.communication.navigationLayer[t.key]||{},Z.communication.navigationLayer[t.key][e.clusterLevel]=Z.communication.navigationLayer[t.key][e.clusterLevel]||[],Z.communication.navigationLayer[t.key][e.clusterLevel].push(e);var i=Z.communication.navigationResult[t.key][e.associatedFieldName];i&&i.subelements.push(e)})),setTimeout((function(){var e;dr("navigation",(e=Z.communication.navigationLayer[t.key],Object.keys(e).sort((function(e,t){return e-t})).map((function(t){return e[t]}))),t)}),0)}catch(e){re("dispatchNavigation",e)}}function Ur(e){mo.Util.replaceDocumentLocation(e.target.destination)}function qr(){var e=Z.communication.currentSearchResult;if(e)return jt(e.searchParams)}function zr(e){if(e.seoPath)e.seoPath=D(e.seoPath);else{var t,n=e.query;if(Z.communication.globalCommunicationParameter.keepFilters){var r=Wr(t=e.seoPath?D(e.seoPath):D(window.location.pathname).replace(Z.communication.globalCommunicationParameter.seoPrefix+"",""));n&&"*"!==n&&0!=n.length?t=r?t.replace("/"+r+"/q","/"+n+"/q"):t+"/"+n+"/q":r&&(t=t.replace("/"+r+"/q","")),e.seoPath=N(t)}else e["ff-seo-initial"]?(delete e["ff-seo-initial"],e.seoPath||(e.seoPath=N("/"))):e.seoPath=N(n&&"*"!==n?"/"+D(n)+"/q":"/")}}function Wr(e){var t=D(e);if(-1==t.lastIndexOf("/q"))return null;var n=t.split("/");return n[n.length-2]}function Hr(e,t,n){n&&!n.topics&&Gr(e,t,!0,n.type)}function Kr(e){ee("redirecting to: ".concat(e)),document.location.replace(e)}function Yr(e,t,n){if(!t||!(-1<t.indexOf("Suggest.ff")||-1<t.indexOf("Tracking.ff"))){var r=Z.communication.globalCommunicationParameter,i=r.onlySearchParams,o=r.parameterWhitelist,a=r.useBrowserHistory,c=r.useFilterUrl,s=r.useSeo,u=r.useUrlParameters;if(!1!==u||!1!==a){var l=Lt(jt(t));if(s&&-1!==t.indexOf("Search.ff"))Zr(e,n.type);else if(1!=c||-1===["search","filter","bct"].lastIndexOf(n.type)){var f=[].concat(d()(o?o.split(","):[]),d()(i?Kt:[]));!u&&0<f.length&&re('URL parameters whitelist is set (through either "parameter-whitelist" or "only-search-params"). use-url-parameters="false" will be ignored'),Gr(e,a?Xr(l,n,!u||0<f.length,f):window.location.href.split("?")[0],n.searchImmediate,n.type,l)}else Jr(e,n.type,l)}}}function Gr(e,t,n,r,i){if(it[rt.sandboxMode].enable){if(i){var o=JSON.parse(JSON.stringify(e));Vn({type:r},o),ut(i,t,o)}}else{var a=(n?history.replaceState:history.pushState).bind(history);try{a(e,"",t)}catch(n){ne("Result is too big for history - falling back to FF-Request instead of cached result");try{a(dt.create(e),"",t)}catch(n){ne("could not",n)}}}}function Xr(e,t,n){var r,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[];t&&-1<["ppp","sort","paging"].indexOf(t.type)&&(delete e.useAsn,delete e.useCampaigns),Object.keys(e).forEach((function(t){var r,o;Ht(t,ri())&&n&&(r=t,o=!1,i.forEach((function(e){-1<r.indexOf(e)&&(o=!0)})),!o)&&delete e[t]})),("*"===(r=e.query)||"string"==typeof r&&"%2a"===r.toLowerCase())&&delete e.query,delete e.format,delete e.purchaserId,delete e.userId;var o=Mt(e,Z.communication.globalCommunicationParameter.sortUrlParametersAlphabetically);return window.location.href.split("?")[0]+o.replace(/\?$/,"")}function Zr(e,t){var n=Z.communication.globalCommunicationParameter,r=Lt(jt(e.searchResult.searchParams));Gr(e,!1===n.useUrlParameters&&!0===n.useBrowserHistory?window.location.origin+n.seoPrefix+L((function(e){return void 0!==e.seoPath?"/".concat(D(e.seoPath)):"/"}),(function(e){return r.seoPath,r.query,r.format,e+Mt(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["seoPath","query","format"]),n.sortUrlParametersAlphabetically)}))(r):window.location.href.split("?")[0],!1,t,r)}function Jr(e,t,n){var r=window.location.origin,i=Z.communication.globalCommunicationParameter;i.filterUrlPrefix&&(r+="/"+i.filterUrlPrefix),r+=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=$r();0===n.indexOf(ge(r))&&(t+=F(e[n][0])+"/",delete e[n])}return"/"+t}(n),Gr(e,r+=Mt(n,i.sortUrlParametersAlphabetically),!1,t,n)}function $r(){var e="CategoryPathROOT",t=Z.communication.currentSearchResult.groups,n=se((function(e){return"categoryPath"===e.type}))(t)||se((function(e){return"TREE"===e.filterStyle}))(t);if(!n)return re("Cannot find categoryPath type field name, ".concat(e," will be used")),e;if(n.associatedFieldName)return ye(n.associatedFieldName);var r=n.elements.concat(n.selectedElements),o=i()(r,1)[0];return o?ye(o.associatedFieldName):(re("Cannot extract category field from an empty group, its name (".concat(n.name,") will be used")),ye(n.name))}function Qr(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n].record;for(var i in t){var o=t[i];o!==i&&r[i]&&(r[o]=r[i],delete r[i])}}}function ei(){try{var e=Lt(Z.communication.currentSearchResult.searchParams.split("?")[1]),t="";if(e.query&&(t=F(e.query[0])),!0!==Z.communication.globalCommunicationParameter.useSeo)return t;var n=e.seoPath,r=F(Wr(n));return r||t||ee("whether seoPath param is set nor query param. Maybe FACT-Finder SEO is not active "),r||t}catch(e){return""}}function ti(e){var t=sr("productCampaign",(function(t){if(t)for(var n=0;n<t.length;n++){var r=t[n];if(r.pushedProductsRecords){var i=r.pushedProductsRecords;this.changeRecordPropertyName(i,e)}}}),this),n=sr("result",(function(t){var n=t.records;try{this.changeRecordPropertyName(n,e)}catch(t){console.log(t)}
2try{if(t.campaigns)for(var r in t.campaigns){var i=t.campaigns[r];i.pushedProductsRecords&&this.changeRecordPropertyName(i.pushedProductsRecords,e)}}catch(t){console.log(t)}if(t.singleWordResults)for(var o=t.singleWordResults,a=0;a<o.length;a++){var c=o[a];if(c.previewRecords)try{this.changeRecordPropertyName(c.previewRecords,e)}catch(t){console.log(t)}}}),this),r=sr("recommendation",(function(t){this.changeRecordPropertyName(t,e)}),this),i=sr("similarProducts",(function(t){this.changeRecordPropertyName(t.records,e)}),this);if(it[rt.predBasket].enable)var o=sr("predictiveBasket",(function(t){this.changeRecordPropertyName(t,e)}),this);return{productCampaign:t,result:n,recommendation:r,similarProducts:i,predictiveBasket:o}}function ni(e){for(var t in e)!0!==fr(t,e[t])&&ee("Could not remove renameRecordField callback for topic ["+t+"] with key")}function ri(){return Se(Z.communication.globalSearchParameter.version)}function ii(e){return Z.communication.fieldRoles&&Z.communication.fieldRoles.price===e||Z.communication.globalCommunicationParameter.currencyFields.split(",").some((function(t){return t===e}))}var oi={getTrackingProductId:function(e){return Z.communication.fieldRoles&&Z.communication.fieldRoles.trackingProductNumber?e.record[Z.communication.fieldRoles.trackingProductNumber]:e.id},getPrice:function(e){if(Z.communication.fieldRoles&&Z.communication.fieldRoles.price){var t=Z.communication.fieldRoles.price;return e.record[Fn(t)]||e.record[t]}return""},getTitle:function(e){return Z.communication.fieldRoles&&Z.communication.fieldRoles.productName?e.record[Z.communication.fieldRoles.productName]:""},getMasterArticleNumber:function(e){return Z.communication.fieldRoles&&Z.communication.fieldRoles.masterArticleNumber?e.record[Z.communication.fieldRoles.masterArticleNumber]:""},getUserId:function(){var e=Z.communication.globalCommunicationParameter;return e&&e.userId?e.userId:void 0},getCampaignProductNumber:function(e){return Z.communication.fieldRoles.campaignProductNumber?e.record[Z.communication.fieldRoles.campaignProductNumber]:e.id}},ai={U2VhcmNoLmZm:!0,"VHJhY2tpbmcuZmY=":!0,cmVzdC92MS9yZWNvcmRz:!0,"cmVzdC92MS9zZWFyY2g=":!0,"cmVzdC92MS90cmFja2luZw==":!0,"cmVzdC92Mi9kZXRhaWw=":!0,cmVzdC92Mi9yZWNvcmRz:!0,"cmVzdC92Mi9yZWNvcmRzL2NvbXBhcmU=":!0,cmVzdC92Mi9yZWNvcmRzL3JlY29tbWVuZGF0aW9u:!0,"cmVzdC92Mi9yZWNvcmRzL3NpbWlsYXI=":!0,cmVzdC92Mi9uYXZpZ2F0aW9u:!0,cmVzdC92Mi9uYXZpZ2F0aW9uL2NhdGVnb3J5:!0,"cmVzdC92Mi9zZWFyY2g=":!0,cmVzdC92Mi9zdWdnZXN0:!0,cmVzdC92Mi9jYW1wYWlnbi9wYWdl:!0,cmVzdC92Mi9jYW1wYWlnbi9wcm9kdWN0:!0,"cmVzdC92Mi9jYW1wYWlnbi9zaG9wcGluZ2NhcnQ=":!0,cmVzdC92Mi90cmFjay9jYXJ0:!0,"cmVzdC92Mi90cmFjay9jaGVja291dA==":!0,"cmVzdC92Mi90cmFjay9jbGljaw==":!0,"cmVzdC92Mi90cmFjay9mZWVkYmFjaw==":!0,"cmVzdC92Mi90cmFjay9sb2c=":!0,"cmVzdC92Mi90cmFjay9sb2dpbg==":!0,cmVzdC92Mi90cmFjay9yZWNvbW1lbmRhdGlvbkNsaWNr:!0,cmVzdC92Mi9wcmVkaWN0aXZlYmFza2V0:!0,"cmVzdC92My9kZXRhaWw=":!0,cmVzdC92My9yZWNvcmRz:!0,"cmVzdC92My9yZWNvcmRzL2NvbXBhcmU=":!0,cmVzdC92My9yZWNvcmRzL3JlY29tbWVuZGF0aW9u:!0,"cmVzdC92My9yZWNvcmRzL3NpbWlsYXI=":!0,cmVzdC92My9uYXZpZ2F0aW9u:!0,cmVzdC92My9uYXZpZ2F0aW9uL2NhdGVnb3J5:!0,"cmVzdC92My9zZWFyY2g=":!0,cmVzdC92My9zdWdnZXN0:!0,cmVzdC92My9jYW1wYWlnbi9wYWdl:!0,cmVzdC92My9jYW1wYWlnbi9wcm9kdWN0:!0,"cmVzdC92My9jYW1wYWlnbi9zaG9wcGluZ2NhcnQ=":!0,cmVzdC92My90cmFjay9jYXJ0:!0,"cmVzdC92My90cmFjay9jaGVja291dA==":!0,"cmVzdC92My90cmFjay9jbGljaw==":!0,"cmVzdC92My90cmFjay9mZWVkYmFjaw==":!0,"cmVzdC92My90cmFjay9sb2c=":!0,"cmVzdC92My90cmFjay9sb2dpbg==":!0,cmVzdC92My90cmFjay9yZWNvbW1lbmRhdGlvbkNsaWNr:!0,cmVzdC92My9wcmVkaWN0aXZlYmFza2V0:!0,"cmVzdC92NC9kZXRhaWw=":!0,cmVzdC92NC9yZWNvcmRz:!0,"cmVzdC92NC9yZWNvcmRzL2NvbXBhcmU=":!0,cmVzdC92NC9yZWNvcmRzL3JlY29tbWVuZGF0aW9u:!0,"cmVzdC92NC9yZWNvcmRzL3NpbWlsYXI=":!0,cmVzdC92NC9uYXZpZ2F0aW9u:!0,cmVzdC92NC9uYXZpZ2F0aW9uL2NhdGVnb3J5:!0,"cmVzdC92NC9zZWFyY2g=":!0,cmVzdC92NC9zdWdnZXN0:!0,cmVzdC92NC9jYW1wYWlnbi9wYWdl:!0,cmVzdC92NC9jYW1wYWlnbi9wcm9kdWN0:!0,"cmVzdC92NC9jYW1wYWlnbi9zaG9wcGluZ2NhcnQ=":!0,cmVzdC92NC90cmFjay9jYXJ0:!0,"cmVzdC92NC90cmFjay9jaGVja291dA==":!0,"cmVzdC92NC90cmFjay9jbGljaw==":!0,"cmVzdC92NC90cmFjay9mZWVkYmFjaw==":!0,cmVzdC92NC90cmFjay9sYW5kaW5nUGFnZUNsaWNr:!0,"cmVzdC92NC90cmFjay9sb2c=":!0,"cmVzdC92NC90cmFjay9sb2dpbg==":!0,cmVzdC92NC90cmFjay9yZWNvbW1lbmRhdGlvbkNsaWNr:!0,cmVzdC92NC9wcmVkaWN0aXZlYmFza2V0:!0};function ci(e,t,n,r,i){var o=i.split("?")[0].split("/");if("number"==typeof t&&(t=t.toString()),-1<o.indexOf("rest")&&4<=o.length){var a=function(e){var t=e.slice(e.indexOf("rest"));if(!(3<t.length))return t;var n=t[2];if("detail"===n)return t.slice(0,3);
2var r=/records|campaign|track/.test(n)?3:t.length-1;return t.splice(r,1),t}(o).join("/");return btoa(a)in ai?""+r.setRequestHeader(e,t):""}return btoa(o[o.length-1])in ai?""+r.setRequestHeader(e,t):""}var si=String.prototype;function ui(){return Wt(30,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ")}var li=ui(),fi=ui();si[fi]=function(){return"abcdefghijklmnopqrstuvwxyz"};var di="_ffo",hi="_fft",pi=ui(),mi=ui(),vi=ui(),gi=ui(),yi=ui(),bi=ui(),_i=ui(),ki=ui(),wi=ui(),Ci=ui();si[Ci]=function(){var e,t,n=0;if(0===this.length)return n;for(e=0,t=this.length;e<t;e++)n=(n<<5)-n+this.charCodeAt(e),n|=0;return n},si[bi]=function(){var e="";""[mi]();for(var t=e.concat(this[pi](),this[fi](),""[mi]()),n=0;n<t.length;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},si[vi]=function(){return Math.random()},si[gi]=function(){return(new Date).getTime()},si[yi]=function(){return this[Ci]()},si[mi]=function(){return"0123456789"};var Si=window.btoa(window.location.origin);si[pi]=function(){return"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},si[_i]=function(e){return e[0].concat(e[1]).concat(e[2])},si[li]=function(e){var t={};e.setOrCreateSid(t);for(var n=[],r=0;r<t.sid.length;r++)n.push(t.sid.charCodeAt(r).toString(16));return n.join("$")},si[ki]=function(e){for(var t=this[bi](),n=[],r=0;r<3;r++){var i="";e[r].forEach((function(e){for(var n=0;n<6;n++)i+=t.charAt(+e+10*n)})),n.push(i)}return n.push(t),n},si[wi]=function(e,t,n,r){for(var i=[[],[],[]],o=2;o<this.length;o++){var a=o;i[0][o-2]=e.toString().charAt(o),i[0][o-2]&&a--;var c=t.toString().length-2;if(i[1][o-2]=t.toString().charAt(c-o),i[1][o-2]&&a--,i[2][o-2]=n.toString().charAt(o),i[2][o-2]&&a--,1==a)break}return this[ki](i)};var Pi=Object.freeze({Get:"GET",Post:"POST"});function Oi(e){var t,n,r,i=e.url,o=e.pushParametersToHistory,a=void 0!==o&&o,c=e.ffEvent,s=e.success,u=e.fail,l=e.always,f=(t=i,Se(Z.communication.globalSearchParameter.version)&&-1<t.indexOf("/track/")),d=Pi.Get;if(r=f?(d=Pi.Post,n=rn(Rt(i)),i.split("?")[0]):i,f){var h=i.split("?")[1].split("&").filter((function(e){return 0===e.indexOf("sid=")}))[0];i=i.split("?")[0]+"?"+h}else{var p=Rt(i);p.format="json",i=i.split("?")[0]+Mt(p,Z.communication.globalCommunicationParameter.sortUrlParametersAlphabetically)}var m=function(e,t){var n=new XMLHttpRequest;return"withCredentials"in n?(n.open(e,t,!0),n.setRequestHeader("Accept","application/json")):"undefined"!=typeof XDomainRequest?(n=new XDomainRequest).open(e,t,!0):n=null,n}(d,i);if(!m)throw Error("CORS is not supported");if(f&&m.setRequestHeader("Content-Type","application/json"),(ri()||7.2<=parseFloat(Z.communication.globalSearchParameter.version))&&function(e,t){var n=[];!function(e,t,n){for(var r=n[li](t).split("$"),i=0;i<3;i++){for(var o=10*i,a="",c=o;c<o+10;c++)a+=r[c];e.push(a)}}(n,vn,t);var r=t[vi]();ci(n[0],r,1,e,t);var i=t[bi]();ci(n[1],i,1,e,t);var o=t[gi](),a=t[wi](+r,o,t[yi](),i);ci(n[2],t[_i](a),1,e,t),ci(n[1],a[3],1,e,t),ci(di,Si,1,e,t);var c=o%99;o=50<=c?(o+="").slice(2,o.length)+(o[0]+o[1]):(o+="").slice(o.length-2,o.length)+o.slice(0,o.length-2),c<10&&(c="0"+c),ci(hi,o+c,1,e,t)}(m,i),m.onload=function(e){200===e.target.status?(xi(y,m.responseText,e,m),xi(l,e)):g(e)},m.onerror=g,f){var v=function(e,t){var n=t.type,r={feedback:["id"]},i=Array.isArray(n)&&r.hasOwnProperty(n[0])?r[n[0]]:[],o=["campaign","count","id","mainId","masterId","message","page","pageId","pageSize","pos","positive","price","purchaserId","query","score","sid","title","userId"].filter((function(e){return i.indexOf(e)<0})),a={};return o.forEach((function(e){return t.hasOwnProperty(e)?a[e]=t[e][0]:void 0})),a.masterId=a.masterId||a.id,(Le[e]||function(e){return e})(a)}(c.event,n);m.send(JSON.stringify([v]))}else m.send();function g(e){xi(u,m.responseText,e),xi(l,m.responseText,e)}function y(e,t,n){try{var i={request:n,url:r,ffEvent:f?void 0:c,response:e,pushToHistory:a};L(Kn,Yn,s)(i)}catch(e){ie("Could not process response.",e),g(t)}}}function xi(e){if(e)try{for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.apply(void 0,n)}catch(e){ie(e)}}function Ei(e){var t=Z.communication.globalCommunicationParameter;if(Ii(e,t.addParams),Se(e.version)&&e.navigation&&Ii(e,t.categoryPage),!0===t.keepFilters){var n=Z.communication.currentSearchResult;
2n&&(n.filters||[]).forEach((function(t){e["filter"+t.name]=t.valueList[0].value}))}if(t.keepUrlParams){var r=t.keepUrlParams.trim().split(","),i=Rt();try{if(1===r.length&&"all"===r[0])for(var o in i)Ht(o)||(e[o]=i[o]);else for(var a=0;a<r.length;a++){var c=r[a].trim();c&&i&&i[c]&&(e[c]=i[c])}}catch(t){}}!1===t.useAsn&&(e.useAsn="false"),1==t.useFoundWords&&(e.useFoundWords="true"),0==t.useCampaigns&&(e.useCampaigns="false"),1==t.generateAdvisorTree&&(e.generateAdvisorTree="true"),1==t.disableCache&&(e.disableCache="true"),0==t.usePersonalization&&(e.usePersonalization="false"),0==t.useSemanticEnhancer&&(e.useSemanticEnhancer="false"),0==t.useAso&&(e.useAso="false"),1==t.useSeo&&zr(e),Li(e,Gn()),ji(e.url?e.url:xn(e),e,!0)}var Ri={};function ji(e,t,n){Oi({url:e,pushParametersToHistory:n,ffEvent:t,success:t.success,fail:t.fail,always:t.always})}function Li(e,t){e.success?e.success=L(t,(function(e){return e.response}),e.success):e.success=t}function Ii(e,t){t&&t.trim().split(",").forEach((function(t){try{var n=t.split("="),r=n[0].trim(),i=n[1].trim();"filter"===r?(o=e,a=F(i),void 0===o.filter?o.filter=a:Array.isArray(o.filter)?fe(o.filter,a)||o.filter.push(a):o.filter=[o.filter,a]):lt(e,r,i)}catch(t){}var o,a}))}function Ai(e){return function(t){return 0===e.indexOf(t)}}Ri.search=Ei,Ri.filter=function(e){if(Z.communication.currentSearchResult&&Z.communication.currentSearchResult.groups){var t=function(){Li(e,Gn());var t,n,r=Rt(Z.communication.currentSearchResult.searchParams);for(var i in r)r.hasOwnProperty(i)&&/^sort/i.test(i)&&(e[i]=r[i]);n=r,Se((t=e).version)?n.hitsPerPage&&(t.hitsPerPage=n.hitsPerPage):n.productsPerPage&&(t.productsPerPage=n.productsPerPage);for(var o=function(t){var n=Z.communication.currentSearchResult.groups[t];if(e.groupName!==n.name)return"continue";if("true"===e.removeAll||!0===e.removeAll){delete e.removeAll;var i=!1,o=function(t){if(Se(e.version)){var n=Qe().map((function(e){return e.replace(/^filter=/,"")})),o=L(z,xe)(t.associatedFieldName);if(gt(r.filter)){var a=r.filter.filter((function(e){return!new RegExp("^".concat(M(o),"%3A"),"i").test(e)||n.some(Ai(e))}));r.filter=i?a.map((function(e){return se(Ai(e))(n)||e})):a}}else if(i)for(var c in r){var s=ge(z(ye(t.associatedFieldName)));r.hasOwnProperty(c)&&0===c.indexOf(s)&&delete r[c]}else{var u=z(t.associatedFieldName);delete r[ge(u)]}};return"SLIDER"===n.filterStyle?n.elements.forEach(o):(i="TREE"===n.filterStyle,n.selectedElements.forEach(o)),ji(En(e,Mt(r,Z.communication.globalCommunicationParameter.sortUrlParametersAlphabetically)),e,!0),{v:{v:void 0}}}var a=e.clusterLevel||0;delete e.clusterLevel;var c=n.selectedElements.concat(n.elements),s=se((function(t){return t.name===e.filterName&&t.clusterLevel===a||"SLIDER"===n.filterStyle}))(c);s&&ji(En(e,s.searchParams),e,!0)},a=0;a<Z.communication.currentSearchResult.groups.length;a++){var c=o(a);if("continue"!==c&&"object"===v()(c))return c.v}ne("filter ["+e.filterName+"] in group ["+e.groupName+"] not found.")}();if("object"===v()(t))return t.v}else ne("discard filter event. no result available, you need to search before you can filter the result.")},Ri.clearFilter=function(e){var t=Rt(Z.communication.currentSearchResult.searchParams),n=ge($r());function r(){var r=n.match(/^filter(.*)ROOT$/)[1],i=Qe().map((function(e){return e.replace(/^filter=/,"")}));return(t.filter||[]).filter((function(t){return!0===e.keepCategoryPath&&Ai(t)(r)||i.some(Ai(t))})).map((function(e){return se(Ai(e))(i)||e}))}!0===e.removeParams?Se(Z.communication.globalSearchParameter.version)?Ni({type:"search",query:ei(),filter:r().map(F)}):Ni(Object.keys(t).reduce((function(r,i){return!0===e.keepCategoryPath&&0===i.indexOf(n)&&(r[i]=t[i][0]),r}),{type:"search",query:ei()})):(Se(Z.communication.globalSearchParameter.version)?t.filter=r():Object.keys(t).forEach((function(r){var i=!0===e.keepCategoryPath&&0===r.indexOf(n);0!==r.indexOf("filter")||i||delete t[r]})),e.type="search",delete e.removeParams,delete e.keepCategoryPath,Li(e,Gn()),ji(In(Mt(t,Z.communication.globalCommunicationParameter.sortUrlParametersAlphabetically),e),e,!0))},Ri.bct=function(e){if(Z.communication.currentSearchResult&&Z.communication.currentSearchResult.breadCrumbTrailItems){for(var t=0;t<Z.communication.currentSearchResult.breadCrumbTrailItems.length;t++){var n=Z.communication.currentSearchResult.breadCrumbTrailItems[t];if(e.value===n.value){var r=Se(e.version)?n.searchParams+"&"+Z.communication.globalCommunicationParameter.categoryPage:n.searchParams;return Li(e,Gn()),void ji(In(r,e),e,!0)}}ne("no bread crumb trail item found for value: "+e.value)}else ne("discard breadCrumbTrail event. no result available, you need to search before you can use the bct.")},Ri.sort=function(e){if(Z.communication.currentSearchResult&&Z.communication.currentSearchResult.sortsList){for(var t=0;t<Z.communication.currentSearchResult.sortsList.length;t++){var n=Z.communication.currentSearchResult.sortsList[t];if(e.order===n.order&&e.name===n.name)return e.useAsn=A(e.useAsn)?"false":e.useAsn,Li(e,Gn(["result","campaign","re
2cords","sort","ppp","paging","pagingItems","singleWordSearch"])),void ji((r=e,In(n.searchParams,r)),e,!0)}ne("no sort item found for value: ".concat(e.value))}else ne("discard sort event. no result available, you need to search before you can sort the result.");var r},Ri.ppp=function(e){if(Z.communication.currentSearchResult&&Z.communication.currentSearchResult.resultsPerPageList){for(var t=0;t<Z.communication.currentSearchResult.resultsPerPageList.length;t++){var n=Z.communication.currentSearchResult.resultsPerPageList[t];if(e.value===n.value)return e.useAsn=A(e.useAsn)?"false":e.useAsn,Li(e,Gn(["result","campaign","records","ppp","paging","pagingItems","singleWordSearch"])),void ji((r=e,In(n.searchParams,r)),e,!0)}ne("No products per page item found for value: ".concat(e.value," "))}else ne("Discard products per page event. No result available, you need to search before you can use products per page.");var r},Ri.paging=function(e){if(Z.communication.currentSearchResult&&Z.communication.currentSearchResult.paging){var t,n=function(e,t){return e&&e.number===t.number},r=Z.communication.currentSearchResult.paging;n(r.firstLink,e)?t=r.firstLink:n(r.lastLink,e)?t=r.lastLink:n(r.previousLink,e)?t=r.previousLink:n(r.nextLink,e)&&(t=r.nextLink),t||r.pageLinks&&r.pageLinks.forEach((function(r){n(r,e)&&(t=r)})),t?(e.useAsn=A(e.useAsn)?"false":e.useAsn,delete e.number,Li(e,Gn(["result","campaign","records","ppp","paging","pagingItems","singleWordSearch"])),ji((i=e,In(t.searchParams,i)),e,!0)):ne("No paging item found for value: ".concat(e.number," "))}var i},Ri.suggest=function(e){var t;Li(e,Gn(["suggest"])),ji(e.url?e.url:(t=e,jn(t=Ft(Z.communication.globalSearchParameter,t),Z.communication.globalCustomUrls.suggestUrl),Se(t.version)?An(t):(Ln(t,"Suggest.ff"),On(t,t.url,t.version))),e,!1)},Ri.suggestItem=function(e){var t,n,r,i,o=(t=e["ff-suggestParams"],n=Z.communication.globalSearchParameter.url,i={removeFFPrefix:!0},6.9==(r=Z.communication.globalSearchParameter.version)||6.11==r||Se(r),function(e,t,n){return n&&n.removeFFPrefix&&(e="/"+(e="/"!==e[0]?"/"+e:e).replace(/(\/.*?\/)/,"")),("/"===t[t.length-1]?t=t.substring(0,t.length-1):t)+e}(t,n,i));delete e["ff-suggestParams"],e.type="search",e.url=o,Ei(e)},Ri.productDetail=function(e){var t;Li(e,Gn(["productDetail"])),ji(e.url?e.url:((t=e).id||ee("No id specified for Product Detail request"),t.query=t.id,delete t.id,t.useAsn="false",t.useCampaigns="false",t.isArticleNumber="true",jn(t=Ft(Z.communication.globalSearchParameter,t),Z.communication.globalCustomUrls.serachUrl),Ln(t,"Search.ff"),On(t,t.url,t.version)),e,!1)},Ri.tagCloud=function(e){var t;Li(e,Gn(["tagCloud"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.tagCloudUrl),Ln(t,"TagCloud.ff"),t.do="getTagCloud",On(t,t.url,t.version)),e,!1)},Ri.navigation=function(e){Z.communication.navigationResult={},Z.communication.navigationLayer={};var t=Number(e.firstFetch);t<0&&(t=0);var n=Number(e.fetchSize);n<0&&(n=1);var r=Number(e.maxFetch);10<r&&(r=10);var i=Number(e.fetchTime);i<0&&(i=100),function e(t,n,r,i,o,a){var c={};vn.setOrCreateSid(c),c.type="navigation",c.userId=a.userId,isNaN(t)||(c.startLevel=t),isNaN(n)||(c.endLevel=n),c.initialNavigation=!0,c.navigation=!0,c.key=a.key,"function"==typeof a.fail&&(c.fail=a.fail),"function"==typeof a.always&&(c.always=a.always);var s,u;c.success=function(t){var s=t.response,u=n+1,l=u+i;l<=r+i&&(10<l&&(l=10),r<l&&(l=r),window.setTimeout((function(){e(u,l,r,i,o,a)}),o)),mo.ResultDispatcher.dispatchNavigationFrame(s,c)},a.success&&(c.success=wt(c.success,a.success)),ji((u=c).url?u.url:(s=u,jn(s=Ft(Z.communication.globalSearchParameter,s),Z.communication.globalCustomUrls.serachUrl),Se(s.version)?An(s):(Ln(s,"Search.ff"),On(s,s.url,s.version))),u,!1)}(0,t,r,n,i,e)},Ri["navigation-search"]=function(e){e.type="search",e.navigation="true";var t,n=[];for(var r in e)0===r.indexOf("filter")&&n.push({key:r,value:e[r]});Li(e,Gn()),ji(e.url?e.url:(t=e,jn(t=Ft(Z.communication.globalSearchParameter,t),Z.communication.globalCustomUrls.serachUrl),Se(t.version)?An(t):(Ln(t,"Search.ff"),On(t,t.url,t.version))),e,!0)},Ri.similarProducts=function(e){var t;Li(e,Gn(["similarProducts"])),ji((t=e,jn(t=Ft(Z.communication.globalSearchParameter,t),Z.communication.globalCustomUrls.similarRecordsUrl),Se(t.version)?An(t):(t.maxRecordCount=t.maxResults,delete t.maxResults,Ln(t,"SimilarRecords.ff"),On(t,t.url,t.version))),e,!1)},Ri.predictiveBasket=function(e){Li(e,Gn(["predictiveBasket"])),ji(function(e){at(e.type,e.version);var t=Ft(Z.communication.globalSearchParameter,e);if(jn(t,Z.communication.globalCustomUrls.predictiveBasketUrl),Se(t.version))return An(t)}(e),e,!1)},Ri.advisor=function(e){var t=Ft(e,Lt(jt(e.answer.params)));delete t.answer,delete t.type,Ei(t),t.type="search"},Ri.productCampaign=function(e){var t;Li(e,Gn(["productCampaign"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.campaignUrl),Se(t.version)?An(t):(Ln(t,"ProductCampaign.ff"),t.do="getProductCampaigns",On(t,t.url,t.version))),e,!1)},Ri.shoppingCartCampaign=function(e){var t;Li(e,Gn(["shoppingCartCampaign"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.campaignUrl),Se(t.version)?An(t):(Ln(t,"ProductCampaign.ff"),t.do="getShoppingCartCampaigns",On(t,t.url,t.version))),e,!1)},Ri.pageCampaigns=function(e){var t;Li(e,Gn(["pageCampaigns"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.campaignUrl),Se(t.version)?An(t):(Ln(t,"ProductCampaign.ff"),t.do="getPageCampaigns",On(t,t.url,t.version))),e,!1)},Ri.recommendation=function(e){var t;Li(e,Gn(["recommendation"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.recommendationUrl),Se(t.version)?An(t):(Ln(t,"Recommender.ff"),t.do="getRecommendation",On(t,t.url,t.version))),e,!1)},Ri.compare=function(e){gt(e.ids)?e.ids.length<2?re("Not at least 2 ids in this compare event",e):(Li(e,Gn(["compare"])),ji(function(e){if(e=Ft(Dn(Z.communication.globalSearchParameter),e),Se(e.version)){jn(e,Z.communication.globalCustomUrls.compareUrl);var t=Pe(e,Z.communication.globalCommunicationParameter.ngApi),n=t.url,r=t.addlParams;return delete e.ids,On(e,n,e.version)+r}var i="&ids="+e.ids.join(";");return delete e.ids,jn(e,Z.communication.globalCustomUrls.compareUrl),Ln(e,"Compare.ff"),On(e,e.url,e.version)+i}(e),e,!1)):re("No ids in this compare event",e)},Ri.getRecords=function(e){var t;Li(e,Gn(["getRecords"])),ji((t=e,jn(t=Ft(Dn(Z.communication.globalSearchParameter),t),Z.communication.globalCustomUrls.getRecordsUrl),Se(t.version)?An(t):(Ln(t,"rest/v1/records/"+t.channel),delete t.channel,On(t,t.url,t.version))),e,!1)};var Ti=[],Mi=[];function Ni(e){(e=Object.assign(ln(),e)).dispatchId=++Z.communication.eventCounter;var t,n=Z.communication.globalSearchParameter;if(!e.version){var r=parseFloat(n.version);Se(n.version)?e.version=n.version:isNaN(r)?re("Global search parameter 'version' ".concat(n.version?"has invali
2d format.":"is not defined.")):e.version=r}if(Se(e.version)&&!Z.communication.globalCommunicationParameter.ngApi&&re("Global communication parameter 'api' is not defined."),at(e.type,e.version),!e.channel){var i=jt();if(i){var o=Lt(i);o.channel&&(e.channel=o.channel,n.channel=e.channel)}e.channel||(e.channel=n.channel)}Se(e.version)&&Z.communication.globalCommunicationParameter.categoryPage&&"suggest"!==e.type&&("search"===e.type?e.searchImmediate:!1!==e.navigation&&"false"!==e.navigation)&&(e.navigation="true");for(var a=0;a<Ti.length;a++){var c=Ti[a];e.fail?e.fail=wt(e.fail,c.fn):e.fail=c.fn}for(vn.setOrCreateSid(e),vn.validateSidLength(e.sid),Se(e.version)&&function(e,t){e.userId||t!==de.v4||Te.some((function(t){return t(e)}))||(e.userId=Z.communication.globalCommunicationParameter.userId)}(e,Z.communication.globalCommunicationParameter.ngApi),a=0;a<Mi.length;a++){c=Mi[a];try{c.fn(e)}catch(e){console.log("Could not execute beforeDispatchingCallback: "+e)}}return e.query&&(e.query=("string"==typeof e.query?e.query:e.query[0]).replace(/<[\s\S]*>/g,"")),n.url&&e.channel&&e.version||(ie('Required search params are not available: [url(globalSearchParameter): "'.concat(n.url,'"], [url(event): "').concat(e.url,'"], [channel: "').concat(e.channel,'"], [version: "').concat(e.version,'"]')),re("At the time this event was emitted no configuration was available, See https://web-components.fact-finder.de/documentation/ready-events",e)),(t=e).type?-1<t.type.indexOf("recommendation")?Ri.recommendation(t):-1<t.type.indexOf("similarProducts")?Ri.similarProducts(t):-1<t.type.indexOf("compare")?Ri.compare(t):null!=Ri[t.type]?Ri[t.type](t):ne("Event could not be delegated. No valid type specified - type ["+t.type+"]"):ne("Event could not be delegated. No type specified"),e.dispatchId}function Di(e){if(e){var t=Wt(20);return Ti.push({fn:e,key:t}),t}ee("addFailCallback: fn is undefined")}function Bi(e){var t=Ti.length;return(Ti=Ti.filter((function(t){return t.key!==e}))).length!==t}function Fi(e){if(e){var t=Wt(20);return Z.communication.beforeHistoryPushCallbacks.push({fn:e,key:t}),t}ee("addBeforeHistoryPushCallback: fn is undefined")}function Vi(e){var t=Z.communication.beforeHistoryPushCallbacks;return Z.communication.beforeHistoryPushCallbacks=t.filter((function(t){return t.key!==e})),Z.communication.beforeHistoryPushCallbacks.length!==t.length}function Ui(e){if(e){var t=Wt(20);return Mi.push({fn:e,key:t}),t}ee("addBeforeDispatchingCallback: fn is undefined")}function qi(e){var t=Mi.length;return(Mi=Mi.filter((function(t){return t.key!==e}))).length!==t}function zi(e){return Z.communication.currentSearchResult}var Wi=["id","sid","query","pos","origPos","page","origPageSize"],Hi=["id","sid","query","pos","page"],Ki=["id","sid","count"],Yi=["id","sid","count"],Gi=["id","sid","mainId"],Xi=["userId","sid"],Zi=["id","sid","query","positive"],Ji=["sid","query","positive"],$i=["campaign","id","pageId","sid"];function Qi(e){var t=ri()?Hi:Wi;so("click",e,t),ao(t,e)||"function"!=typeof e.always||e.always()}function eo(e){so("cart",e,Ki)}function to(e){so("checkout",e,Yi)}function no(e){var t=Xi;if(vn.setOrCreateSid(e),ao(t,e)){var n="".concat(e.sid,":").concat(e.userId),r=Yt.getItem(n);r&&r===e.userId||(Yt.setItem(n,e.userId),e.event="login",co(e))}else re(uo("login",e,t))}function ro(e){so("recommendationClick",e,Gi)}function io(e){so("feedback",e,ri()?Ji:Zi)}function oo(e){Z.communication.globalCommunicationParameter.ngApi===de.v4?so("landingPageClick",e,$i):re("Landing Page Click tracking is not supported in used API Version.")}function ao(e,t){return e.every((function(e){return t.hasOwnProperty(e)}))}function co(e){if(e.version||(e.version=Z.communication.globalSearchParameter.version),!e.channel){var t=jt();if(t){var n=Lt(t);n.channel&&(e.channel=n.channel)}e.channel||(e.channel=Z.communication.globalSearchParameter.channel)}var r=Z.communication.globalCommunicationParameter.addTrackingParams;if(r)try{for(var i=r.trim().split(","),o=0;o<i.length;o++){var a=i[o];try{var c=a.split("="),s=c[0].trim(),u=c[1].trim();e[s]=u}catch(e){}}}catch(e){}var l=Rn(e);e.success||(e.success=function(){}
2),Oi({url:l,pushParametersToHistory:!1,ffEvent:e,success:e.success,fail:e.fail,always:e.always})}function so(e,t,n){vn.setOrCreateSid(t),ao(n,t)?(t.event=e,co(t)):re(uo(e,t,n))}function uo(e,t,n){var r=n.filter((function(e){return!t.hasOwnProperty(e)}));return"The following parameters for ".concat(e," event are missing: ").concat(r.join(", "),".")}var lo=function(){function e(){l()(this,e),this.storage=Yt,this.neededClickInfo=["id","sid","query","pos","origPos","page","origPageSize"],this.neededClickInfoNG=["id","sid","query","pos","page"],this.neededCartInfo=["id","sid","count"],this.neededCheckoutInfo=["id","sid","count"],this.neededRecoInfo=["id","sid","mainId"],this.neededLoginInfo=["userId","sid"],this.neededSearchFeedbackInfo=["id","sid","query","positive"],this.neededSearchFeedbackInfoNG=["sid","query","positive"],this.neededLandingPageInfo=["campaign","id","pageId","sid"],ae("Tracking12","Tracking")}return s()(e,[{key:"click",value:function(e){var t=ri()?this.neededClickInfoNG:this.neededClickInfo;this.handleEventRequest("click",e,t),!0!==this.checkNeededParamsAvailable(t,e)&&"function"==typeof e.always&&e.always()}},{key:"cart",value:function(e){this.handleEventRequest("cart",e,this.neededCartInfo)}},{key:"checkout",value:function(e){this.handleEventRequest("checkout",e,this.neededCheckoutInfo)}},{key:"login",value:function(e){var t=this.neededLoginInfo;if(vn.setOrCreateSid(e),!0===this.checkNeededParamsAvailable(t,e)){var n="".concat(e.sid,":").concat(e.userId),r=this.storage.getItem(n);r&&r===e.userId||(this.storage.setItem(n,e.userId),e.event="login",this._sendRequest(e))}else re(this.getWarningMessage("login",e,t))}},{key:"recommendationClick",value:function(e){this.handleEventRequest("recommendationClick",e,this.neededRecoInfo)}},{key:"searchFeedback",value:function(e){var t=ri()?this.neededSearchFeedbackInfoNG:this.neededSearchFeedbackInfo;this.handleEventRequest("feedback",e,t)}},{key:"landingPageClick",value:function(e){Z.communication.globalCommunicationParameter.ngApi===de.v4?this.handleEventRequest("landingPageClick",e,this.neededLandingPageInfo):re("Landing page tracking is not supported in used API Version.")}},{key:"checkNeededParamsAvailable",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!t.hasOwnProperty(r))return!1}return!0}},{key:"_sendRequest",value:function(e){if(!e.channel){var t=jt();if(t){var n=Lt(t);n.channel&&(e.channel=n.channel)}e.channel||(e.channel=Z.communication.globalSearchParameter.channel)}var r=Z.communication.globalCommunicationParameter.addTrackingParams;if(r)try{for(var i=r.trim().split(","),o=0;o<i.length;o++){var a=i[o];try{var c=a.split("="),s=c[0].trim(),u=c[1].trim();e[s]=u}catch(e){}}}catch(e){}var l=Rn(e);e.success||(e.success=function(){}),Oi({url:l,pushParametersToHistory:!1,ffEvent:e,success:e.success,fail:e.fail,always:e.always})}},{key:"handleEventRequest",value:function(e,t,n){vn.setOrCreateSid(t),!0===this.checkNeededParamsAvailable(n,t)?(t.event=e,this._sendRequest(t)):re(this.getWarningMessage(e,t,n))}},{key:"getWarningMessage",value:function(e,t,n){var r=n.filter((function(e){return!1===t.hasOwnProperty(e)}));return"The following parameters for ".concat(e," event are missing: ").concat(r.join(", "),".")}}]),e}(),fo=Object.assign({},P),ho={entries:[]},po=Object.assign({},S);["currentSearchResult","navigationResult","navigationLayer","eventCounter"].forEach((function(e){return vo(po,e)}));var mo=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_),k),O),{Tracking:P}),x),m),{EventAggregator:po,ResultDispatcher:w,Util:C});function vo(e,t){Object.defineProperty(e,t,{get:function(){return Z.communication[t]},set:function(e){return Z.communication[t]=e}})}function go(e){mo.ResultDispatcher.addCallback(e.topic,e.handler,void 0)}["fieldRoles","globalCommunicationParameter","globalElementValues","globalCustomUrls","globalSearchParameter"].forEach((function(e){return vo(mo,e)}));var yo=n(0),bo=wo(g),_o=wo({version:yo.a,common:an,middleware:R,communication:mo,isReady:!0});_o.__experimental=it;var ko={trackingManager:fo};function wo(e){var t="[object Module]"===e.toString()?Object.assign({},e):e;for(var n in t)"object"==typeof t[n]&&null!==t[n]&&(t[n]=wo(t[n]));return t}Object.defineProperty(mo,"trackingManager",{get:function(){return an.Logger.emitDeprecationWarning("factfinder.communication.trackingManager","factfinder.communication.Tracking"),ko.trackingManager},set:function(e){ko.trackingManager=e}}),window.factfinder=_o,an.fireCustomEvent("ffReady",!0,!1,document,{factfinder:_o,resultDispatcher:mo.ResultDispatcher,eventAggregator:mo.EventAggregator})}]),y=g.factfinder,b=g.internal},function(e,t,n){n(0);var r=n(79);function i(t,n,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"e",(function(){return P})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return E}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(9),k=n(28),w=n(41);var C=Object.freeze({Comment:8}),S=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){return c()(this,n),t.apply(this,arguments)}return u()(n,[{key:"createRenderRoot",value:function(){return this}},{key:"showSelf",value:function(){this.classList.remove("ffw-hidden")}},{key:"hideSelf",value:function(){this.classList.add("ffw-hidden")}},{key:"shouldUpdate",value:function(e){return this._preprocessBooleanProperties(e),!0}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this._preprocessBooleanProperties(this.constructor._classProperties)}},{key:"_preprocessBooleanProperties",value:function(e){var t=this;e.forEach((function(e,n){var r,i,o;t.constructor._classProperties.get(n).type===x&&(r=t[n],"true"!==(i=String(r).toLowerCase())&&"false"!==i&&b.a.common.Logger.error("".concat(t.constructor.is,": ")+"StringyBoolean property [".concat(n,"] is expected to be either true or false, but is [").concat(t[n],"]. ")+"Falling back to fal
2se."),t[n]=(o=t[n],"true"===String(o).toLowerCase()))}))}}]),n}(Object(_.a)([Object(w.a)()],y.a));function P(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return Object(y.b)(r||(r=o()([""])));if("string"==typeof e)return Object(y.b)([Object(k.a)(e,t)]);var n=document.createElement("div");return n.appendChild(e),Object(y.b)([Object(k.a)(n.innerHTML,t)])}function O(e){return!e.innerHTML.trim()||Array.from(e.childNodes).every((function(e){return e.nodeType===C.Comment}))}var x=String.bind({});function E(e){return null==e?e:String(e)}},function(e,t,n){var r=n(61);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(24),i=n(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?arguments[1]:void 0;return e.reduce((function(e,t){var n=t(e);return n===e||e.prototype instanceof n?e:n}),t)}},function(e,t,n){"use strict";var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(12),v=n(24),g=n.n(v),y=n(25),b=n(16);function _(e,t){for(var n=e.element.content,r=e.parts,i=document.createTreeWalker(n,133,null,!1),o=w(r),a=r[o],c=-1,s=0,u=[],l=null;i.nextNode();){c++;var f=i.currentNode;for(f.previousSibling===l&&(l=null),t.has(f)&&(u.push(f),null===l&&(l=f)),null!==l&&s++;void 0!==a&&a.index===c;)a.index=null!==l?-1:a.index-s,a=r[o=w(r,o)]}u.forEach((function(e){return e.parentNode.removeChild(e)}))}var k=function(e){for(var t=11===e.nodeType?0:1,n=document.createTreeWalker(e,133,null,!1);n.nextNode();)t++;return t},w=function(e){for(var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1)+1;t<e.length;t++){var n=e[t];if(Object(b.d)(n))return t}return-1},C=n(37),S=n(34),P=n(33),O=function(e,t){return"".concat(e,"--").concat(t)},x=!0;void 0===window.ShadyCSS?x=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/[email protected] and @webcomponents/[email protected]."),x=!1);var E=["html","svg"],R=new Set,j=n(18),L=n.n(j),I=n(68),A=n.n(I),T=n(26),M=n.n(T),N=n(62),D=n.n(N);function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}window.JSCompiler_renameProperty=function(e,t){return e};var F={toAttribute:function(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},V=function(e,t){return t!==e&&(t==t||e==e)},U={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:V},q=Promise.resolve(!0),z="finalized",W=function(e){l()(r,e);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(r);function r(){var e;return i()(this,r),(e=n.call(this))._updateState=0,e._instanceProperties=void 0,e._updatePromise=q,e._hasConnectedResolver=void 0,e._changedProperties=new Map,e._reflectingProperties=void 0,e.initialize(),e}return a()(r,[{key:"initialize",value:function(){this._saveInstanceProperties(),this._requestUpdate()}},{key:"_saveInstanceProperties",value:function(){var e=this;
2this.constructor._classProperties.forEach((function(t,n){if(e.hasOwnProperty(n)){var r=e[n];delete e[n],e._instanceProperties||(e._instanceProperties=new Map),e._instanceProperties.set(n,r)}}))}},{key:"_applyInstanceProperties",value:function(){var e=this;this._instanceProperties.forEach((function(t,n){return e[n]=t})),this._instanceProperties=void 0}},{key:"connectedCallback",value:function(){this._updateState=32|this._updateState,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(e,t,n){t!==n&&this._attributeToProperty(e,n)}},{key:"_propertyToAttribute",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:U,r=this.constructor,i=r._attributeNameForProperty(e,n);if(void 0!==i){var o=r._propertyValueToAttribute(t,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}},{key:"_attributeToProperty",value:function(e,t){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){var i=n._classProperties.get(r)||U;this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,i),this._updateState=-17&this._updateState}}}},{key:"_requestUpdate",value:function(e,t){var n=!0;if(void 0!==e){var r=this.constructor,i=r._classProperties.get(e)||U;r._valueHasChanged(this[e],t,i.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,i))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}},{key:"requestUpdate",value:function(e,t){return this._requestUpdate(e,t),this.updateComplete}},{key:"_enqueueUpdate",value:(t=A()(D.a.mark((function e(){var t,n,r,i,o=this;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._updateState=4|this._updateState,r=this._updatePromise,this._updatePromise=new Promise((function(e,r){t=e,n=r})),e.prev=3,e.next=6,r;case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(3);case 10:if(this._hasConnected){e.next=13;break}return e.next=13,new Promise((function(e){return o._hasConnectedResolver=e}));case 13:if(e.prev=13,null!=(i=this.performUpdate()))return e.next=18,i;e.next=18;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(13),n(e.t1);case 23:t(!this._hasRequestedUpdate);case 24:case"end":return e.stop()}}),e,this,[[3,8],[13,20]])}))),function(){return t.apply(this,arguments)})},{key:"_hasConnected",get:function(){return 32&this._updateState}},{key:"_hasRequestedUpdate",get:function(){return 4&this._updateState}},{key:"hasUpdated",get:function(){return 1&this._updateState}},{key:"performUpdate",value:function(){this._instanceProperties&&this._applyInstanceProperties();var e=!1,t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}},{key:"_markUpdated",value:function(){this._changedProperties=new Map,this._updateState=-5&this._updateState}},{key:"updateComplete",get:function(){return this._getUpdateComplete()}},{key:"_getUpdateComplete",value:function(){return this._updatePromise}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._reflectingProperties&&0<this._reflectingProperties.size&&(this._reflectingProperties.forEach((function(e,n){return t._propertyToAttribute(n,t[n],e)})),this._reflectingProperties=void 0)}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this._classProperties.forEach((function(n,r){var i=e._attributeNameForProperty(r,n);void 0!==i&&(e._attributeToPropertyMap.set(i,r),t.push(i))})),t}},{key:"_ensureClassProperties",value:function(){var e=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((function(t,n){return e._classProperties.set(n,t)}))}}},{key:"createProperty",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:U;if(this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"===g()(e)?Symbol():"__".concat(e);Object.defineProperty(this.prototype,e,{get:function(){return this[n]},set:function(t){var r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}}},{key:"finalize",value:function(){var e=Object.getPrototypeOf(this);if(e.hasOwnProperty(z)||e.finalize(),this[z]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var t,n=this.properties,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}([].concat(L()(Object.getOwnPropertyNames(n)),L()("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[])));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_attributeNameForProperty",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(e,t){return(2<arguments.length&&void 0!==arguments[2]?arguments[2]:V)(e,t)}},{key:"_propertyValueFromAttribute",value:function(e,t){var n=t.type,r=t.converter||F,i="function"==typeof r?r:r.fromAttribute;return i?i(e,n):e}},{key:"_propertyValueToAttribute",value:function(e,t){if(void 0!==t.reflect){var n=t.type,r=t.converter;return(r&&r.toAttribute||F.toAttribute)(e,n)}}}]),r}(M()(HTMLElement));W.finalized=!0;var H="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;Symbol(),n.d(t,"a",(function(){return K})),n.d(t,"b",(function(){return m.g})),(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");var K=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"initialize",value:function(){s()(p()(n.prototype),"initialize",this).call(this),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}},{key:"createRenderRoot",value:function(){return this.attachShadow({mode:"open"})}},{key:"adoptStyles",value:function(){var e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?H?this.renderRoot.adoptedStyleSheets=e.map((function(e){return e.styleSheet})):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((function(e){return e.cssText})),this.localName))}},{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}},{key:"update",value:function(e){var t=this;s()(p()(n.prototype),"update",this).call(this,e);var r=this.render();r instanceof m.d&&this.constructor.render(r,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((function(e){var n=document.createElement("style");n.textContent=e.cssText,t.renderRoot.appendChild(n)})))}},{key:"render",value:function(){}}],[{key:"finalize",value:function(){s()(p()(n),"finalize",this).call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}},{key:"_getUniqueStyles",value:function(){var e=this.styles,t=[];return Array.isArray(e)?function(e){return e.flat?e.flat(1/0):function e(t){for(var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=0,i=t.length;r<i;r++){var o=t[r];Array.isArray(o)?e(o,n):n.push(o)}return n}(e)}(e).reduceRight((function(e,t){return e.add(t),e}),new Set).forEach((function(e){return t.unshift(e)})):e&&t.push(e),t}}]),n}(W);K.finalized=!0,K.render=function(e,t,n){if(!n||"object"!==g()(n)||!n.scopeName)throw new Error("The `scopeName` option is required.");var r,i=n.scopeName,o=C.a.has(t),a=x&&11===t.nodeType&&!!t.host,c=a&&!R.has(i),s=c?document.createDocumentFragment():t;if(Object(C.b)(e,s,Object.assign({templateFactory:(r=i,function(e){var t=O(e.type,r),n=S.a.get(t);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},S.a.set(t,n));var i=n.stringsArray.get(e.strings);if(void 0!==i)return i;var o=e.strings.join(b.f);if(void 0===(i=n.keyString.get(o))){var a=e.getTemplateElement();x&&window.ShadyCSS.prepareTemplateDom(a,r),i=new b.a(e,a),n.keyString.set(o,i)}return n.stringsArray.set(e.strings,i),i})}
2,n)),c){var u=C.a.get(s);C.a.delete(s),function(e,t,n){R.add(e);var r=n?n.element:document.createElement("template"),i=t.querySelectorAll("style"),o=i.length;if(0!==o){for(var a,c=document.createElement("style"),s=0;s<o;s++){var u=i[s];u.parentNode.removeChild(u),c.textContent+=u.textContent}a=e,E.forEach((function(e){var t=S.a.get(O(e,a));void 0!==t&&t.keyString.forEach((function(e){var t=e.element.content,n=new Set;Array.from(t.querySelectorAll("style")).forEach((function(e){n.add(e)})),_(e,n)}))}));var l=r.content;n?function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.element.content,i=e.parts;if(null!=n)for(var o=document.createTreeWalker(r,133,null,!1),a=w(i),c=0,s=-1;o.nextNode();)for(s++,o.currentNode===n&&(c=k(t),n.parentNode.insertBefore(t,n));-1!==a&&i[a].index===s;){if(0<c){for(;-1!==a;)i[a].index+=c,a=w(i,a);return}a=w(i,a)}else r.appendChild(t)}(n,c,l.firstChild):l.insertBefore(c,l.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);var f=l.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==f)t.insertBefore(f.cloneNode(!0),t.firstChild);else if(n){l.insertBefore(c,l.firstChild);var d=new Set;d.add(c),_(n,d)}}else window.ShadyCSS.prepareTemplateStyles(r,e)}(i,s,u.value instanceof P.a?u.value.template:void 0),Object(y.b)(t,t.firstChild),t.appendChild(s),C.a.set(t,u)}!o&&a&&window.ShadyCSS.styleElement(t.host)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return g}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1);var v=n(35).a,g=function(e){return function(t){return function(t){l()(r,t);var n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(r);function r(){var e;return i()(this,r),(e=n.call(this))._subscriptionKey=void 0,e._subscribedTopic=void 0,e}return a()(r,[{key:"connectedCallback",value:function(){"function"==typeof s()(p()(r.prototype),"connectedCallback",this)&&s()(p()(r.prototype),"connectedCallback",this).call(this),this._subscriptionKey||!1===this.subscribe||y(this,this.topic||e)}},{key:"update",value:function(){var t=this.topic||e;!1===this.subscribe?b(this):t!==this._subscribedTopic&&_(this,t),"function"==typeof s()(p()(r.prototype),"update",this)&&s()(p()(r.prototype),"update",this).call(this)}},{key:"disconnectedCallback",value:function(){"function"==typeof s()(p()(r.prototype),"disconnectedCallback",this)&&s()(p()(r.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&b(this)}},{key:"_subscriptionCallback",value:function(){throw new Error("'_subscriptionCallback' function not implemented")}}]),r}(t)}},y=function(e,t){e._subscribedTopic=t,e._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(t,e._subscriptionCallback,e)},b=function(e){m.a.communication.ResultDispatcher.unsubscribe(e._subscribedTopic,e._subscriptionKey),e._subscriptionKey=void 0,e._subscribedTopic=void 0},_=function(e,t){e._subscribedTopic&&b(e),y(e,t)}},function(e,t,n){"use strict";var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(20),s=new(function(){function e(){i()(this,e)}return a()(e,[{key:"handleAttributeExpressions",value:function(e,t,n,r){var i=t[0];return"."===i?new c.f(e,t.slice(1),n).parts:"@"===i?[new c.d(e,t.slice(1),r.eventContext)]:"?"===i?[new c.c(e,t.slice(1),n)]:new c.a(e,t,n).parts}},{key:"handleTextExpression",value:function(e){return new c.e(e)}}]),e}()),u=n(40),l=n(36),f=n(25),d=(n(22),n(37)),h=(n(34),n(33),n(16));n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return l.a})),n.d(t,"h",(function(){return f.b})),n.d(t,"j",(function(){return f.c})),n.d(t,"a",(function(){return c.b})),n.d(t,"b",(function(){return c.e})),n.d(t,"c",(function(){return c.g})),n.d(t,"i",(function(){return d.b})),n.d(t,"d",(function(){return u.b})),n.d(t,"e",(function(){return h.c}
2)),(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var p=function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new u.b(e,n,"html",s)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ElementLog",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(){return function(e){return function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"trace",value:function(e){e=this._createMsg("trace",e),h.a.common.Logger.trace(e)}},{key:"info",value:function(e){e=this._createMsg("info",e),h.a.common.Logger.info(e)}},{key:"debug",value:function(e){e=this._createMsg("debug",e),h.a.common.Logger.debug(e)}},{key:"warn",value:function(e){e=this._createMsg("warn",e),h.a.common.Logger.warn(e)}},{key:"error",value:function(e){e=this._createMsg("error",e),h.a.common.Logger.error(e)}},{key:"_createMsg",value:function(e,t){return"".concat(e.toUpperCase()," ").concat(this.constructor.is,": ").concat(t)}}]),n}(e)}}},function(e,t,n){"use strict";function r(e){var t=document.createElement("div");t.innerHTML=e;var n=t.firstElementChild;return t.removeChild(n),n}function i(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n,r){return t+n+e[r+1]}),e[0])}function o(e,t){var n=e.parentNode||t,r=e.nextSibling,i=e.cloneNode(!0);return function(e,t,o){for(var a=Math.max(e.length,t.length),c=0;c<a;c++){var s=e[c];s||(s=i.cloneNode(!0),n.insertBefore(s,r)),o&&o(s,t[c])}}}function a(e){var t=getComputedStyle(e);if("fixed"===t.position)return window;for(var n="absolute"===t.position,r=/(auto|scroll)/,i=e;i&&"BODY"!==i.tagName.toUpperCase()&&"HTML"!==i.tagName.toUpperCase();i=i.parentElement){var o=getComputedStyle(i);if((!n||"static"!==o.position)&&r.test("".concat(o.overflow).concat(o.overflowY).concat(o.overflowX)))return i}return window}function c(e){if(e){var t=document.querySelector(e);if(!t)return factfinder.common.Logger.warn("WARN: Infinite scrolling container not found for selector: ".concat(e,". Falling back to window.")),window;var n=t.tagName.toUpperCase();return"BODY"===n||"HTML"===n?(factfinder.common.Logger.warn('WARN: Element "'.concat(n,'" is not a valid scrollable container. Falling back to window.')),window):t}}function s(e,t){if(!e)throw new Error("Invalid argument: node.");if(!t)throw new Error("Invalid argument: tagName.");for(;e.parentElement;)if((e=e.parentElement).tagName.toUpperCase()===t.toUpperCase())return e}n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(1),i=r.b.NgApiVersions,o=r.a.communication;function a(){return c()&&i.getApiString(o.globalCommunicationParameter.ngApi)===i.Versions.v4}function c(){return o.Util.isNg()}},function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return m}));var r=n(3),i=n.n(r),o=n(4),a=n.n(o),c="{{lit-".concat(String(Math.random()).slice(2),"}}"),s="\x3c!--".concat(c,"--\x3e"),u=new RegExp("".concat(c,"|").concat(s)),l="$lit$",f=i()((function e(t,n){a()(this,e),this.parts=[],this.element=n;for(var r=[],i=[],o=document.createTreeWalker(n.content,133,null,!1),s=0,f=-1,h=0,v=t.strings,g=t.values.length;h<g;){var y=o.nextNode();if(null!==y){if(f++,1===y.nodeType){if(y.hasAttributes()){for(var b=y.attributes,_=b.length,k=0,w=0;w<_;w++)d(b[w].name,l)&&k++;for(;0<k--;
2){var C=v[h],S=m.exec(C)[2],P=S.toLowerCase()+l,O=y.getAttribute(P);y.removeAttribute(P);var x=O.split(u);this.parts.push({type:"attribute",index:f,name:S,strings:x}),h+=x.length-1}}"TEMPLATE"===y.tagName&&(i.push(y),o.currentNode=y.content)}else if(3===y.nodeType){var E=y.data;if(0<=E.indexOf(c)){for(var R=y.parentNode,j=E.split(u),L=j.length-1,I=0;I<L;I++){var A=void 0,T=j[I];if(""===T)A=p();else{var M=m.exec(T);null!==M&&d(M[2],l)&&(T=T.slice(0,M.index)+M[1]+M[2].slice(0,-l.length)+M[3]),A=document.createTextNode(T)}R.insertBefore(A,y),this.parts.push({type:"node",index:++f})}""===j[L]?(R.insertBefore(p(),y),r.push(y)):y.data=j[L],h+=L}}else if(8===y.nodeType)if(y.data===c){var N=y.parentNode;null!==y.previousSibling&&f!==s||(f++,N.insertBefore(p(),y)),s=f,this.parts.push({type:"node",index:f}),null===y.nextSibling?y.data="":(r.push(y),f--),h++}else for(var D=-1;-1!==(D=y.data.indexOf(c,D+1));)this.parts.push({type:"node",index:-1}),h++}else o.currentNode=i.pop()}for(var B=0,F=r;B<F.length;B++){var V=F[B];V.parentNode.removeChild(V)}})),d=function(e,t){var n=e.length-t.length;return 0<=n&&e.slice(n)===t},h=function(e){return-1!==e.index},p=function(){return document.createComment("")},m=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},function(e,t,n){"use strict";n.r(t),n.d(t,"RecordList",(function(){return S}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(44),v=n(1),g=n(14),y=n(9),b=n(39),_=n(41),k=n(50),w=n(5);var C='[data-container="infinite-scroll-placeholder"]',S=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).subscribe=!0,e.infiniteDebounceDelay=32,e.infiniteScrollMargin=0,e.infiniteScrollContainer="",e.restoreScrollPosition=!0,e.__isRecommendation=!1,e.__isLandingPage=!1,e.__campaign="",e.__pageId="",e._origHTML=e.innerHTML,e}return a()(n,[{key:"subscriptionKey",get:function(){return this._subscriptionKey}},{key:"connectedCallback",value:function(){var e,t=this;if(this._restoreScrollHandler=(e=this,function(t){var n=t.detail,r=n.records,i=n.scroll,o=n.previousViewedRecord;O(e,r).then((function(){var t=Object(g.d)(e.infiniteScrollContainer)||Object(g.c)(e.children[o-1]);t===window?window.scrollTo(i.scrollLeft,i.scrollTop):(t.scrollLeft=i.scrollLeft,t.scrollTop=i.scrollTop)}))}),this._scrollingHandler=this._scrollingHandler||function(e){return function(){var n;e.infiniteScrolling&&0<=(n=e.getBoundingClientRect()).left&&n.bottom+e.infiniteScrollMargin<=(window.innerHeight||document.documentElement.clientHeight)&&n.right+e.infiniteScrollMargin<=(window.innerWidth||document.documentElement.clientWidth)&&(e._loadNextPageDebouncerJob=Object(m.a)(e._loadNextPageDebouncerJob,t,e.infiniteDebounceDelay),e._loadNextPageDebouncerJob.run())};function t(){e.loadNextPage.call(e)}}(this),s()(p()(n.prototype),"connectedCallback",this).call(this),!0===this.subscribe&&(this._subscriptionKey=v.a.communication.ResultDispatcher.subscribe("records",this._recordsChangedFFEventHandler,this)),this._templateInfiniteScrollRecordPlaceholder=this._templateInfiniteScrollRecordPlaceholder||this.querySelector(C)||Object(g.a)('<div data-container="infinite-scroll-placeholder"></div>'),this._templateInfiniteScrollRecordPlaceholder.parentNode&&this._templateInfiniteScrollRecordPlaceholder.parentNode.removeChild(this._templateInfiniteScrollRecordPlaceholder),this._templateRecord=this._templateRecord||this.querySelector(b.Record.is),this._templateRecord&&this._templateRecord.parentNode&&(this.templateInsertionInfo={parentNode:this._templateRecord.parentNode,nextElementSibling:this._templateRecord.nextElementSibling},!this._templateRecord.templateString&&this._templateRecord.innerHTML&&(this._templateRecord.templateString=this._templateRecord.innerHTML),this.ssr||this._templateRecord.parentNode.removeChild(this._templateRecord)),this.ssr){var r='template[data-role="record"]',i=this.querySelector(r);if(!i)throw Error("No SSR template with selector '".concat(r,"' could be found, but property ssr-rendered is set. Cannot properly initialize record list."));i.parentNode.removeChild(i);var o=document.importNode(i.content,!0);this._templateRecord=o.querySelector(b.Record.is),this._templateRecord.templateString=this._templateRecord.innerHTML,this.querySelectorAll(b.Record.is).forEac
2h((function(e){e.templateString=t._templateRecord.innerHTML})),this.templateInsertionInfo.nextElementSibling=void 0}this.ssr||this.records&&this.records.length||this.hideSelf()}},{key:"update",value:function(e){e.has("infiniteScrolling")&&this._infiniteScrollingChanged(this.infiniteScrolling,e.infiniteScrolling),e.has("records")&&this._recordsPropertyChanged(this.records),e.has("restoreScrollPosition")&&this._restoreScrollPositionChanged(this.restoreScrollPosition,e.restoreScrollPosition),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this.unsubscribe(),this._loadNextPageDebouncerJob&&this._loadNextPageDebouncerJob.cancel(),P(this._scrollingContainer,this._scrollingHandler),this._scrollingHandler=function(){},document.removeEventListener(k.a,this._restoreScrollHandler),s()(p()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"unsubscribe",value:function(){this._subscriptionKey&&(v.a.communication.ResultDispatcher.unsubscribe("records",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"loadNextPage",value:function(){var e=v.a.communication.EventAggregator.currentSearchResult,t=function(e,t){if(t&&t.paging.nextLink&&!e._currentLoadingNextPage){var n=Math.ceil(e.querySelectorAll(b.Record.is).length/t.paging.resultsPerPage)+1,r=Math.max(n,t.paging.nextLink.number);return r>t.paging.pageCount?void 0:r}}(this,e);if(t&&!(t>this.infiniteMaxPages)&&(this._currentLoadingNextPage=t,this._currentLoadNextPageDispatchId=v.a.communication.EventAggregator.addFFEvent({type:"paging",number:this._currentLoadingNextPage,topics:function(){return["result","records"]}}),this.infiniteScrolling))for(var n=(this._currentLoadingNextPage-1)*e.paging.resultsPerPage,r=n;r<n+e.paging.resultsPerPage;r++)this.insertBefore(this._templateInfiniteScrollRecordPlaceholder.cloneNode(!0),this.children[r])}},{key:"_recordsChangedFFEventHandler",value:function(e,t){var n=this;t&&t.dispatchId===this._currentLoadNextPageDispatchId?O(this,e).then((function(){n._currentLoadingNextPage=void 0,n._currentLoadNextPageDispatchId=void 0,Array.from(n.querySelectorAll(C)).forEach(n.removeChild.bind(n))})):(L(this,e?e.length:0),O(this,e))}},{key:"_recordsPropertyChanged",value:function(e,t){var n,r;n=e,r=t,Boolean(n&&r&&n.length===r.length&&n.every((function(e,t){return Object(b.isSameRecordData)(e,r[t])})))||(L(this,e?e.length:0),O(this,e))}},{key:"_infiniteScrollingChanged",value:function(e,t){var n,r;e?(this._scrollingContainer=Object(g.d)(this.infiniteScrollContainer)||Object(g.c)(this),n=this._scrollingContainer,r=this._scrollingHandler,n.addEventListener("scroll",r,!1),window.addEventListener("resize",r,!1)):(P(this._scrollingContainer,this._scrollingHandler),this._scrollingHandler=function(){},this._scrollingContainer=void 0)}},{key:"_restoreScrollPositionChanged",value:function(e,t){!0===e?document.addEventListener(k.a,this._restoreScrollHandler):document.removeEventListener(k.a,this._restoreScrollHandler)}}],[{key:"is",get:function(){return"ff-record-list"}},{key:"properties",get:function(){return{records:{type:Array},subscribe:{type:w.c},infiniteScrolling:{type:Boolean,attribute:"infinite-scrolling"},infiniteDebounceDelay:{type:Number,attribute:"infinite-debounce-delay"},infiniteScrollMargin:{type:Number,attribute:"infinite-scroll-margin"},infiniteScrollContainer:{type:String,attribute:"infinite-scroll-container"},infiniteMaxPages:{type:Number,attribute:"infinite-max-pages"},restoreScrollPosition:{type:w.c,attribute:"restore-scroll-position"},ssr:{type:Boolean,reflectToAttribute:!0}}}}]),n}(Object(y.a)([Object(_.a)()],w.a));function P(e,t){e&&e.removeEventListener("scroll",t,!1),window.removeEventListener("resize",t,!1)}function O(e,t){return new Promise((function(n){if(!t||!t.length)return e.hideSelf(),void n();var r=e.templateInsertionInfo.parentNode,i=function(e){for(var t=[],n=0;n<e.children.length;n++){var r=e.children[n];(E(r)||x(r))&&t.push(r)}return t}(r);t.forEach((function(t,n){var o=i[e.infiniteScrolling?t.position-1:n];o?x(o)?j(o,t,e):E(o)?r.replaceChild(j(e._templateRecord.clone(),t,e),o):R(e,t):R(e,t)})),e.showSelf(),requestAnimationFrame((function(){e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})),e.infiniteScrolling&&e._scrollingHandler(),n()}))}))}
2function x(e){return e.nodeName===b.Record.is.toUpperCase()}function E(e){return"infinite-scroll-placeholder"===e.getAttribute("data-container")}function R(e,t){var n=j(e._templateRecord.clone(),t,e),r=e.templateInsertionInfo,i=r.parentNode,o=r.nextElementSibling;o?i.insertBefore(n,o):i.appendChild(n)}function j(e,t,n){return e.__isRecommendation=n.__isRecommendation,e.recordData=t,e.__isLandingPage=n.__isLandingPage,e.__campaign=n.__campaign,e.__pageId=n.__pageId,n._currentLoadingNextPage&&(e.recordData.page=n._currentLoadingNextPage),e}function L(e,t){var n=e.templateInsertionInfo.parentNode,r=n.removeChild.bind(n);Array.from(e.querySelectorAll(b.Record.is)).slice(t).forEach(r),Array.from(e.querySelectorAll(C)).forEach(r)}window.customElements.define(S.is,S)},function(e,t,n){var r=n(77),i=n(65),o=n(78);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return R})),n.d(t,"e",(function(){return j})),n.d(t,"c",(function(){return L})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return A})),n.d(t,"d",(function(){return N}));var r=n(2),i=n.n(r),o=n(6),a=n.n(o),c=n(7),s=n.n(c),u=n(0),l=n.n(u),f=n(4),d=n.n(f),h=n(3),p=n.n(h),m=n(24),v=n.n(m),g=n(36),y=n(25),b=n(22),_=n(33),k=n(40),w=n(16);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l()(e);if(t){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s()(this,n)}}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=function(e){return null===e||!("object"===v()(e)||"function"==typeof e)},x=function(e){return Array.isArray(e)||!(!e||!e[Symbol.iterator])},E=function(){function e(t,n,r){d()(this,e),this.dirty=!0,this.element=t,this.name=n,this.strings=r,this.parts=[];for(var i=0;i<r.length-1;i++)this.parts[i]=this._createPart()}return p()(e,[{key:"_createPart",value:function(){return new R(this)}},{key:"_getValue",value:function(){for(var e=this.strings,t=e.length-1,n="",r=0;r<t;r++){n+=e[r];var i=this.parts[r];if(void 0!==i){var o=i.value;if(O(o)||!x(o))n+="string"==typeof o?o:String(o);else{var a,c=S(o);try{for(c.s();!(a=c.n()).done;){var s=a.value;n+="string"==typeof s?s:String(s)}}catch(e){c.e(e)}finally{c.f()}}}}return n+e[t]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),e}(),R=function(){function e(t){d()(this,e),this.value=void 0,this.committer=t}return p()(e,[{key:"setValue",value:function(e){e===b.a||O(e)&&e===this.value||(this.value=e,Object(g.b)(e)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;Object(g.b)(this.value);){var e=this.value;this.value=b.a,e(this)}this.value!==b.a&&this.committer.commit()}}]),e}(),j=function(){function e(t){d()(this,e),this.value=void 0,this.__pendingValue=void 0,this.options=t}return p()(e,[{key:"appendInto",value:function(e){this.startNode=e.appendChild(Object(w.c)()),this.endNode=e.appendChild(Object(w.c)())}},{key:"insertAfterNode",value:function(e){this.startNode=e,this.endNode=e.nextSibling}},{key:"appendIntoPart",value:function(e){e.__insert(this.startNode=Object(w.c)()),e.__insert(this.endNode=Object(w.c)())}},{key:"insertAfterPart",value:function(e){e.__insert(this.startNode=Object(w.c)()),this.endNode=e.endNode,e.endNode=this.startNode}},{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Object(g.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=b.a,e(this)}var t=this.__pendingValue;t!==b.a&&(O(t)?t!==this.value&&this.__commitText(t):t instanceof k.b?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):x(t)?this.__commitIterable(t):t===b.b?(this.value=b.b,this.clear()):this.__commitText(t))}},{key:"__insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"__commitNode",value:function(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}},{key:"__commitText",value:function(e){var t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}},{key:"__commitTemplateResult",value:function(e){var t=this.options.templateFactory(e);if(this.value instanceof _.a&&this.value.template===t)this.value.update(e.values);else{var n=new _.a(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(t){Array.isArray(this.value)||(this.value=[],this.clear());var n,r,i=this.value,o=0,a=S(t);try{for(a.s();!(r=a.n()).done;){var c=r.value;void 0===(n=i[o])&&(n=new e(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(c),n.commit(),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(i.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.startNode;Object(y.b)(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),L=function(){function e(t,n,r){if(d()(this,e),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=r}return p()(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Object(g.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=b.a,e(this)}if(this.__pendingValue!==b.a){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=b.a}}}]),e}(),I=function(e){a()(n,e);var t=C(n);
2function n(e,r,i){var o;return d()(this,n),(o=t.call(this,e,r,i)).single=2===i.length&&""===i[0]&&""===i[1],o}return p()(n,[{key:"_createPart",value:function(){return new A(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:i()(l()(n.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),n}(E),A=function(e){a()(n,e);var t=C(n);function n(){return d()(this,n),t.apply(this,arguments)}return p()(n)}(R),T=!1;try{var M={get capture(){return!(T=!0)}};window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){}var N=function(){function e(t,n,r){var i=this;d()(this,e),this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(e){return i.handleEvent(e)}}return p()(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Object(g.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=b.a,e(this)}if(this.__pendingValue!==b.a){var t=this.__pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),i=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=D(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=b.a}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),D=function(e){return e&&(T?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={},i={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(12);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e,t){var n=e.startNode.parentNode,i=void 0===t?e.endNode:t.startNode,o=n.insertBefore(Object(r.e)(),i);n.insertBefore(Object(r.e)(),i);var a=new r.b(e.options);return a.insertAfterNode(o),a},c=function(e,t){return e.setValue(t),e.commit(),e},s=function(e,t,n){var i=e.startNode.parentNode,o=n?n.startNode:e.endNode,a=t.endNode.nextSibling;a!==o&&Object(r.j)(i,t.startNode,a,o)},u=function(e){Object(r.h)(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},l=function(e,t,n){for(var r=new Map,i=t;i<=n;i++)r.set(e[i],i);return r},f=new WeakMap,d=new WeakMap,h=Object(r.f)((function(e,t,n){var o;return void 0===n?n=t:void 0!==t&&(o=t),function(t){if(!(t instanceof r.b))throw new Error("repeat can only be used in text bindings");var h,p,m,v=f.get(t)||[],g=d.get(t)||[],y=[],b=[],_=[],k=0,w=i(e);try{for(w.s();!(h=w.n()).done;){var C=h.value;_[k]=o?o(C,k):k,b[k]=n(C,k),k++}}catch(t){w.e(t)}finally{w.f()}for(var S=0,P=v.length-1,O=0,x=b.length-1;S<=P&&O<=x;)if(null===v[S])S++;else if(null===v[P])P--;else if(g[S]===_[O])y[O]=c(v[S],b[O]),S++,O++;else if(g[P]===_[x])y[x]=c(v[P],b[x]),P--,x--;else if(g[S]===_[x])y[x]=c(v[S],b[x]),s(t,v[S],y[x+1]),S++,x--;else if(g[P]===_[O])y[O]=c(v[P],b[O]),s(t,v[P],v[S]),P--,O++;else if(void 0===p&&(p=l(_,O,x),m=l(g,S,P)),p.has(g[S]))if(p.has(g[P])){var E=m.get(_[O]),R=void 0!==E?v[E]:null;if(null===R){var j=a(t,v[S]);c(j,b[O]),y[O]=j}else y[O]=c(R,b[O]),s(t,R,v[S]),v[E]=null;O++}else u(v[P]),P--;else u(v[S]),S++;for(;O<=x;){var L=a(t,y[x+1]);c(L,b[O]),y[O++]=L}for(;S<=P;){var I=v[S++];null!==I&&u(I)}f.set(t,y),d.set(t,_)}}))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}
2));var r=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=function(e,t){for(var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;t!==n;){var i=t.nextSibling;e.insertBefore(t,r),t=i}},o=function(e,t){for(var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;t!==n;){var r=t.nextSibling;e.removeChild(t),t=r}}},function(e,t,n){var r=n(0),i=n(61),o=n(70),a=n(71);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},c(t)}e.exports=c},function(e,t,n){var r=n(63),i=n(76),o=n(64);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45),i=n(1);function o(e,t){var n=e.replace(/{{/g,r.tags[0]).replace(/}}(?!})/g,r.tags[1]);try{return Object(r.render)(n,t)}catch(t){return i.a.common.Logger.error("could not render template: ".concat(e),t),""}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CollapseElement",(function(){return h}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f);var h=function(){return function(e){return function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"__transitionEnd",value:function(e){var t=this,n=e&&e.nodeName?e:e.currentTarget;try{n.__transitionActive__=!1,n.removeEventListener("transitionend",this.__transitionEnd),"0px"!==n.style.height?(this._updateTransition(n,!1),n.style.height="",n.style.overflow="",setTimeout((function(){return t._updateTransition(n,!0)}))):this._updateTransition(n,!0)}catch(e){console.log(e)}finally{if(n&&n.__collapseCallback__){var r=n.__collapseCallback__;delete n.__collapseCallback__,setTimeout((function(){try{r()}catch(e){console.log(e)}}),16)}}}},{key:"_updateTransition",value:function(e,t){e.style["transition-duration"]=!0===t?"":"0ms"}},{key:"_isDisplayed",value:function(e){var t=e.getBoundingClientRect();for(var n in t)if(0!==t[n])return!0;return!1}},{key:"_hide",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=2<arguments.length?arguments[2]:void 0;try{"0px"!==e.style.height&&this._doTransition(e,t,"0px",n)}catch(e){console.log(e)}}},{key:"_show",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=2<arguments.length?arguments[2]:void 0;try{this._doTransition(e,t,"auto",n)}catch(e){console.log(e)}}},{key:"_toggle",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=2<arguments.length?arguments[2]:void 0;e.hasAttribute("opened")?this._hide(e,t,n):this._show(e,t,n)}},{key:"_doTransition",value:function(e,t,n,r){if(!e.__transitionActive__){e.__transitionActive__=!0,r&&(e.__collapseCallback__=r);var i=window.getComputedStyle(e),o=i["transition-duration"]||i.transitionDuration;if(t=o&&"0"!==o.replace(/\D/g,"")&&t,this._updateTransition(e,!1),t&&this._isDisplayed(e)){var a=i.height;if("auto"===n&&(e.style.height="",n=i.height),n===(e.style.height=a))return e.style.height="",e.__transitionActive__=!1,delete e.__collapseCallback__,void this._updateTransition(e,t);e.offsetHeight,this._updateTransition(e,t),e.addEventListener("transitionend",this.__transitionEnd.bind(this))}"0px"===n?(e.style.overflow="hidden",e.removeAttribute("opened")):e.setAttribute("opened",""),e.style.height=n,t&&this._isDisplayed(e)||(e.offsetHeight,this.__transitionEnd(e))}}},{key:"_showChecked",value:function(e,t,n){e&&this._show(e,t,n)}},{key:"_hideChecked",value:function(e,t,n){e&&this._hide(e,t,n)}},{key:"_toggleChecked",value:function(e,t,n){e&&this._toggle(e,t,n)}}]),n}(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(19),i=n.n(r),o=n(1);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){try{return c(c({},e),{},i()({},t,o.b.Encoding.decodeURIComponent(e[t])))}catch(t){return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r,i,o=n(19),a=n.n(o),c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(2),p=n.n(h),m=n(6),v=n.n(m),g=n(7),y=n.n(g),b=n(0),_=n.n(b),k=n(12),w=n(1),C=n(54),S=n(9),P=(n(66),n(13)),O=n(5),x=n(30),E=n(15),R=n(38);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).type="all",e.suggestion=void 0,e.ffPreventDefault=!1,e._template=void 0,e.addEventListener("click",e._clicked),e}return d()(n,[{key:"query",get:function(){return w.a.communication.globalElementValues.currentFFSearchBoxValue}},{key:"render",value:function(){var e=this.suggestion&&JSON.parse(JSON.stringify(this.suggestion));return e&&this.query&&this.highlightQuery(e,this.query),this._template?Object(k.g)(r||(r=s()(["",""])),Object(O.e)(this._template,Object(x.a)(e,"name"))):Object(k.g)(i||(i=s()(["",""])),this.innerHTML)}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._template=this._template||this.innerHTML||void 0}},{key:"update",value:function(e){this.suggestion?this.showSelf():this.hideSelf(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){if(p()(_()(n.prototype),"updated",this).call(this,e),this.suggestion)try{Object(C.a)(this,this.suggestion.image)}catch(e){this.error(e)}}},{key:"highlightQuery",value:function(e,t){if(!e.queryHighlighted)if(t&&t.trim())try{var n=t.trim().split(" ").map(w.b.util.escapeRegex).join("|");e.name=e.name.replace(new RegExp(n,"gi"),(function(e){return'<span class="ffw-query">'.concat(e,"</span>")})),e.queryHighlighted=!0}catch(e){this.error(e)}else this.warn("Search query is not defined or is an empty string. Suggest item highlighting skipped.")}},{key:"_clicked",value:function(){var e={type:this.type,suggestion:this.suggestion,element:this};if(this.dispatchEvent(new CustomEvent("item-clicked",{detail:e,bubbles:!0})),!0!==this.ffPreventDefault){var t=Object(E.b)()?w.a.communication.fieldRoles.deeplink:"deeplink";if(!this.openDeeplink(this.suggestion.attributes[t])){var n="productName"===this.type?this.getRecordEvent():(this,L(L({},w.a.common.decodeDict(w.a.common.urlStringToDict(this.suggestion.searchParams))),{},{queryFromSuggest:!0,userInput:w.a.communication.globalElementValues.currentFFSearchBoxValue,type:"search"}));Object(R.a)(n,this)}}else this.ffPreventDefault=!1}},{key:"getRecordEvent",value:function(){var e=parseFloat(w.a.communication.globalSearchParameter.version);isNaN(e)&&!Object(E.a)()&&(this.error("Could not parse float from FACT-Finder version string, using fallback article number search"),e=7.2);var t=Object(E.b)()?w.a.communication.fieldRoles.productNumber:"id",n=e<7.3?{t
2ype:"productDetail",id:this.suggestion.attributes.articleNr}:{type:"getRecords",recordId:[this.suggestion.attributes[t]]};return n.success=w.a.common.concatFunctions(n.success,this.recordSearchHandler.bind(this)),n}},{key:"recordSearchHandler",value:function(e){var t=e.searchResult?e.searchResult.records:e;t&&0<t.length&&w.a.communication.fieldRoles&&this.openDeeplink(t[0].record[w.a.communication.fieldRoles.deeplink])}},{key:"openDeeplink",value:function(e){return!!e&&(window.open(e,"_self"),!0)}}],[{key:"is",get:function(){return"ff-suggest-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},suggestion:{type:Object,attribute:!1}}}}]),n}(Object(S.a)([Object(P.ElementLog)()],O.a));window.customElements.define(I.is,I)},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(5);var _=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).type="pageLink",e.showSelected=!1,e}return u()(n,[{key:"render",value:function(){return Object(y.b)(r||(r=o()(['<div class="ffw-page-item-container ffw-cursor" @click="','">',"</div>"])),this._changePage,Object(b.e)(this._template,this.pagingItem||{}))}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template||(this._template=Object(b.d)(this)?"{{caption}}":this.innerHTML)}},{key:"update",value:function(e){e.has("pagingItem")&&(this.pagingItem?(this.classList.remove("ffw-disabled"),this.showSelf(),!0===this.pagingItem.currentPage?this.classList.add("ffw-selected"):this.classList.remove("ffw-selected")):(this.classList.add("ffw-disabled"),this.hideSelf())),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_changePage",value:function(e){this.pagingItem&&!this.pagingItem.currentPage&&"true"!==this.showOnly&&factfinder.communication.EventAggregator.addFFEvent({type:"paging",number:this.pagingItem.number})}}],[{key:"is",get:function(){return"ff-paging-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},pagingItem:{type:Object,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:b.b,attribute:"show-only",reflect:!0}}}}]),n}(b.a);window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(18),i=n.n(r),o=n(4),a=n.n(o),c=n(3),s=n.n(c),u=n(25),l=n(16);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=function(){function e(t,n,r){a()(this,e),this.__parts=[],this.template=t,this.processor=n,this.options=r}return s()(e,[{key:"update",value:function(e){var t,n=0,r=f(this.__parts);try{for(r.s();!(t=r.n()).done;){var i=t.value;
2void 0!==i&&i.setValue(e[n]),n++}}catch(e){r.e(e)}finally{r.f()}var o,a=f(this.__parts);try{for(a.s();!(o=a.n()).done;){var c=o.value;void 0!==c&&c.commit()}}catch(e){a.e(e)}finally{a.f()}}},{key:"_clone",value:function(){for(var e,t=u.a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,o=document.createTreeWalker(t,133,null,!1),a=0,c=0,s=o.nextNode();a<r.length;)if(e=r[a],Object(l.d)(e)){for(;c<e.index;)c++,"TEMPLATE"===s.nodeName&&(n.push(s),o.currentNode=s.content),null===(s=o.nextNode())&&(o.currentNode=n.pop(),s=o.nextNode());if("node"===e.type){var f=this.processor.handleTextExpression(this.options);f.insertAfterNode(s.previousSibling),this.__parts.push(f)}else{var d;(d=this.__parts).push.apply(d,i()(this.processor.handleAttributeExpressions(s,e.name,e.strings,this.options)))}a++}else this.__parts.push(void 0),a++;return u.a&&(document.adoptNode(t),customElements.upgrade(t)),t}}]),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(16);function i(e){var t=o.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},o.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var i=e.strings.join(r.f);return void 0===(n=t.keyString.get(i))&&(n=new r.a(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}var o=new Map},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({result:"result",records:"records",asn:"asn",sort:"sort",paging:"paging",suggest:"suggest",bct:"bct",ppp:"ppp",pagingItems:"pagingItems",navigation:"navigation",recommendation:"recommendation",similarProducts:"similarProducts",singleWordSearch:"singleWordSearch",compare:"compare",productDetail:"productDetail",tagCloud:"tagCloud"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=new WeakMap,i=function(e){return function(){var t=e.apply(void 0,arguments);return r.set(t,!0),t}},o=function(e){return"function"==typeof e&&r.has(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(25),i=n(20),o=n(34),a=new WeakMap,c=function(e,t,n){var c=a.get(t);void 0===c&&(Object(r.b)(t,t.firstChild),a.set(t,c=new i.e(Object.assign({templateFactory:o.b},n))),c.appendInto(t)),c.setValue(e),c.commit()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function i(e,t){var n=new CustomEvent("before-".concat(e.type),{detail:e,bubbles:!0,cancelable:!0,composed:!0});(t||document).dispatchEvent(n),n.defaultPrevented||r.a.communication.EventAggregator.addFFEvent(n.detail)}},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(14),y=n(52);var b=n(41),_=n(46),k=n(5),w=n(28);n.d(t,"isSameRecordData",(function(){return S})),n.d(t,"Record",(function(){return P}));var C=[function(e){return function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).searchLightDOM=!0,e.productImageIdentifier="[data-image]",e.productImageErrorIdentifier="[data-image-onerror]",e.redirectIdentifier="[data-redirect]",e.redirectTargetIdentifier="[data-redirect-target]",e.productAnchorIdentifier="[data-anchor]",e.recommendationIdentifier="[data-recommendation]",e.bindImmediate=!1,e.tracking=m.a.communication.Tracking,e}return a()(n,[{key:"ready",value:function(){s()(p()(n.prototype),"ready",this).call(this),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}},{key:"bindProductActions",value:function(){this._bindProductRedirect()}},{key:"bindProductImage",value:function(){this.searchLightDOM&&this._bindProductImage(this)}},{key:"bindProductAnchors",value:function(){this.searchLightDOM&&this._bindProductAnchors(this)}},{key:"_bindProductImage",value:function(e){var t=this;e.querySelectorAll(this.productImageIdentifier).forEach((function(e){e.onerror||(e.onerror=t._bindOnError(e));var n=m.a.communication,r=n.fieldRoles?n.fieldRoles.imageUrl:"",i=e.getAttribute("data-image")||t.recordData.record[r]||t.recordData.record.ImageUrl;i?e.setAttribute("src",i):e.onerror()}))}},{key:"_bindOnError",value:function(e){var t=this;return function(){var n=e.getAttribute("data-image-onerror");e.onerror=null,n?e.setAttribute("src",n):m.a.common.Logger.debug("No image data for this record: ".concat(t.recordData.id))}}},{key:"_bindProductAnchors",value:function(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((function(e){var t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}},{key:"_bindProductRedirect",value:function(){this.searchLightDOM&&this.bindRedirect(this)}},{key:"bindRedirect",value:function(e){var t=this;e&&e.querySelectorAll(this.redirectIdentifier).forEach((function(e){e.querySelectorAll("[data-track]").forEach((function(e){return e.attributes.removeNamedItem("data-track")})),t.registerClickListener(e)}))}},{key:"registerClickListener",value:function(e){var t=this,n=function(e){var n=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!n&&!t.disableOverwrite},r=function r(i){e.removeEventListener("mouseup",r),2!==i.button&&t._handleTrackingAndRedirect(i,n(i))};e.addEventListener("click",(function(e){n(e)&&e.preventDefault()})),e.addEventListener("mousedown",(function(t){e.addEventListener("mouseup",r),e.addEventListener("mouseleave",(function(){return e.removeEventListener("mouseup",r)}))}))}},{key:"_handleTrackingAndRedirect",value:function(e,t){var n=this;e.stopPropagation();var r=e.currentTarget,i=this.getRedirectTarget(r),o=this.getRedirectLocation(r);if(o){var a=function(){!0===t&&n.redirect(o,i)};if("_blank"===i){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):this._trackProductClick(this)}catch(e){console.log(e)}a()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,a):!0===this.__isLandingPage?this._trackLandingPageClick(this,a):this._trackProductClick(this,void 0,a)}}},{key:"getRedirectLocation",value:function(e){var t=e.attributes.getNamedItem("data-redirect");if(t){var n=t.nodeValue;if(n&&0<n.length)return n;if(this.recordData)return this.recordData.record.Deeplink;m.a.common.Logger.debug("No record data available for data-redirect action.")}}},{key:"getRedirectTarget",value:function(e){var t=e.attributes.getNamedItem("data-redirect-target");if(t){var n=t.nodeValue;if(n)return n}return"_blank"}},{key:"redirect",value:function(e,t){m.a.communication.globalCommunicationParameter.useBrowserHistory&&function(e){var t=Object(g.b)(e,"ff-record-list"),n=Object(g.d)(t?t.infiniteScrollContainer:void 0)||Object(g.c)(e),r=n===window?{scrollLeft:window.pageXOffset,scrollTop:window.pageYOffset}:{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop};Object(y.c)({scroll:r,records:Array.from(e.parentElement.querySelectorAll(e.tagName)).map((function(e){return e.recordData})),previousViewedRecord:e.recordData.position})}(this),window.open(e,t)}}],[{key:"properties",get:function(){return{searchLightDOM:{type:Boolean},productImageIdentifier:{type:"String"},productImageErrorIdentifier:{type:"String"},redirectIdentifier:{type:"String"},redirectTargetIdentifier:{type:"String"},productAnchorIdentifier:{type:"String"},recommendationIdentifier:{type:"String"},bindImmediate:{type:Boolean},disableOverwrite:{type:Boolean}}}}]),n}(e)},Object(b.a)(),Object(_.Tracking)()],S=function(e,t){return Boolean(e&&t&&e.id===t.id&&JSON.stringify(e)===JSON.stringify(t))},P=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).addCartClick=!1,e.addCheckoutClick=!1,e.recordData=void 0,e.__isRecommendation=!1,e.__isLandingPage=!1,e.__campaign="",e.__pageId="",e}
2return a()(n,[{key:"connectedCallback",value:function(){this.updateTemplate(),s()(p()(n.prototype),"connectedCallback",this).call(this)}},{key:"updated",value:function(e){e.has("recordData")&&this._recordDataChanged(this.recordData,e.get("recordData")),s()(p()(n.prototype),"updated",this).call(this,e)}},{key:"_recordDataChanged",value:function(e,t){var n=this;if(e){if(!0===e.teaser)return this.innerHTML=e.text,!this.hasAttribute("is-teaser")&&this.setAttribute("is-teaser",""),void this.showSelf();this.hasAttribute("is-teaser")&&this.removeAttribute("is-teaser"),S(e,t)||(this.stamp(e),this.updateComplete.then((function(){n.bindProductActions(),n.bindProductImage(),n.bindProductAnchors(),n.bindClick(),n.addCartClick&&n.bindCartClick(),n.addCheckoutClick&&n.bindCheckoutClick()}))),this.showSelf()}else this.hideSelf()}},{key:"stamp",value:function(e){this.innerHTML=Object(w.a)(this.templateString,e)}},{key:"updateTemplate",value:function(e){e?this.templateString=e:this.templateString||(this.templateString=this.innerHTML)}},{key:"clone",value:function(){var e=document.createElement(n.is);return m.a.common.copyHTMLAttributes(this,e),e.templateString=this.templateString,e}}],[{key:"is",get:function(){return"ff-record"}},{key:"properties",get:function(){return{recordData:{type:Object},addCartClick:{type:Boolean,attribute:"add-cart-click"},addCheckoutClick:{type:Boolean,attribute:"add-checkout-click"}}}}]),n}(Object(v.a)(C,k.a));window.customElements.define(P.is,P)},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return b}));var r=n(2),i=n.n(r),o=n(6),a=n.n(o),c=n(7),s=n.n(c),u=n(0),l=n.n(u),f=n(4),d=n.n(f),h=n(3),p=n.n(h),m=n(25),v=n(16);var g=" ".concat(v.f," "),y=function(){function e(t,n,r,i){d()(this,e),this.strings=t,this.values=n,this.type=r,this.processor=i}return p()(e,[{key:"getHTML",value:function(){for(var e=this.strings.length-1,t="",n=!1,r=0;r<e;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(-1<o||n)&&-1===i.indexOf("--\x3e",o+1);var a=v.e.exec(i);t+=null===a?i+(n?g:v.g):i.substr(0,a.index)+a[1]+a[2]+v.b+a[3]+v.f}return t+this.strings[e]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),b=function(e){a()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l()(e);if(t){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s()(this,n)}}(n);function n(){return d()(this,n),t.apply(this,arguments)}return p()(n,[{key:"getHTML",value:function(){return"<svg>".concat(i()(l()(n.prototype),"getHTML",this).call(this),"</svg>")}},{key:"getTemplateElement",value:function(){var e=i()(l()(n.prototype),"getTemplateElement",this).call(this),t=e.content,r=t.firstChild;return t.removeChild(r),Object(m.c)(t,r.firstChild),e}}]),n}(y)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h);var m=function(){return function(e){return function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){"function"==typeof s()(p()(n.prototype),"connectedCallback",this)&&s()(p()(n.prototype),"connectedCallback",this).call(this),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}]),n}(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
2));var r=n(12),i=new WeakMap,o=Object(r.f)((function(e){return function(t){if(!(t instanceof r.a)||t instanceof r.c||"class"!==t.committer.name||1<t.committer.parts.length)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var n=t.committer,o=n.element;i.has(t)||(o.className=n.strings.join(" "));var a=o.classList,c=i.get(t);for(var s in c)s in e||a.remove(s);for(var u in e){var l=e[u];c&&l===c[u]||a[l?"add":"remove"](u)}i.set(t,e)}}))},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageItem",(function(){return O})),n.d(t,"renderPPPItem",(function(){return x})),n.d(t,"getTemplate",(function(){return E}));var r,i=n(19),o=n.n(i),a=n(8),c=n.n(a),s=n(4),u=n.n(s),l=n(3),f=n.n(l),d=n(21),h=n.n(d),p=n(6),m=n.n(p),v=n(7),g=n.n(v),y=n(0),b=n.n(y),_=n(10),k=n(42),w=n(1),C=n(5);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var P={dataTemplate:"{{value}}",attributes:{}},O=function(e){m()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e,r;return u()(this,n),(e=t.call(this)).template=P,e.addEventListener("click",(r=h()(e),function(){!r.productsPerPageItem.selected&&w.a.communication.EventAggregator.addFFEvent({type:"ppp",value:r.productsPerPageItem.value})})),e}return f()(n,[{key:"render",value:function(){return Object(C.e)(this.template.dataTemplate,this.productsPerPageItem)}},{key:"firstUpdated",value:function(e){var t=this;Object.keys(this.template.attributes).forEach((function(e){return t.setAttribute(e,t.template.attributes[e])}))}}],[{key:"is",get:function(){return"ff-products-per-page-item"}},{key:"properties",get:function(){return{productsPerPageItem:{type:Object},template:{type:Object,attribute:!1}}}}]),n}(C.a);function x(e,t){return Object(_.b)(r||(r=c()(['<ff-products-per-page-item class="','" .template="','" .productsPerPageItem="','"></ff-products-per-page-item>'])),Object(k.a)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"ffw-selected":t.selected},e.classNames)),e,t)}function E(e){var t=e.querySelector(O.is);return!t||Object(C.d)(t)?P:{dataTemplate:t.innerHTML,attributes:Array.prototype.reduce.call(t.attributes,(function(e,t){var n=t.name,r=t.value;return"class"!==n&&(e[n]=r),e}),{}),classNames:(t.className||"").split(" ").reduce((function(e,t){return t&&(e[t]=!0),e}),{})}}window.customElements.define(O.is,O)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t,n){var r=void 0,i=function(){clearTimeout(r),r=void 0};return e&&"function"==typeof e.cancel&&e.cancel(),{cancel:i,run:function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];i(),r=setTimeout((function(){r=void 0,t.apply(void 0,o)}),n)}}}},function(e,t,n){var r,i,o,a;a=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var a=RegExp.prototype.test,c=/\S/;function s(e){return t=c,n=e,!a.call(t,n);var t,n}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},l=/\s*/,f=/\s+/,d=/\s*=/,h=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function g(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n,i,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var c,s,u,l=this,f=!1;l;){if(0<e.indexOf("."))for(c=l.view,s=e.split("."),u=0;null!=c&&u<s.length;)u===s.length-1&&(f=o(c,s[u])||(n=c,i=s[u],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(i))),c=c[s[u++]];else c=l.view[e],f=o(l.view,e);if(f){t=c;break}l=l.parent}a[e]=t}return r(t)&&(t=t.call(this.view)),t},g.prototype.clearCache=function(){this.cache={}},g.prototype.parse=function(t,r){var o=this.cache,a=t+":"+(r||e.tags).join(":"),c=o[a];return null==c&&(c=o[a]=function(t,r){if(!t)return[];var o,a,c,u=[],v=[],g=[],y=!1,b=!1;function _(){if(y&&!b)for(;g.length;)delete v[g.pop()];else g=[];
2b=y=!1}function k(e){if("string"==typeof e&&(e=e.split(f,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(i(e[0])+"\\s*"),a=new RegExp("\\s*"+i(e[1])),c=new RegExp("\\s*"+i("}"+e[1]))}k(r||e.tags);for(var w,C,S,P,O,x,E=new m(t);!E.eos();){if(w=E.pos,S=E.scanUntil(o))for(var R=0,j=S.length;R<j;++R)s(P=S.charAt(R))?g.push(v.length):b=!0,v.push(["text",P,w,w+1]),w+=1,"\n"===P&&_();if(!E.scan(o))break;if(y=!0,C=E.scan(p)||"name",E.scan(l),"="===C?(S=E.scanUntil(d),E.scan(d),E.scanUntil(a)):"{"===C?(S=E.scanUntil(c),E.scan(h),E.scanUntil(a),C="&"):S=E.scanUntil(a),!E.scan(a))throw new Error("Unclosed tag at "+E.pos);if(O=[C,S,w,E.pos],v.push(O),"#"===C||"^"===C)u.push(O);else if("/"===C){if(!(x=u.pop()))throw new Error('Unopened section "'+S+'" at '+w);if(x[1]!==S)throw new Error('Unclosed section "'+x[1]+'" at '+w)}else"name"===C||"{"===C||"&"===C?b=!0:"="===C&&k(S)}if(x=u.pop())throw new Error('Unclosed section "'+x[1]+'" at '+E.pos);return function(e){for(var t,n=[],r=n,i=[],o=0,a=e.length;o<a;++o)switch((t=e[o])[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=0<i.length?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(v))}(t,r)),c},g.prototype.render=function(e,t,n,r){var i=this.parse(e,r),o=t instanceof v?t:new v(t);return this.renderTokens(i,o,n,e,r)},g.prototype.renderTokens=function(e,t,n,r,i){for(var o,a,c,s="",u=0,l=e.length;u<l;++u)c=void 0,"#"===(a=(o=e[u])[0])?c=this.renderSection(o,t,n,r):"^"===a?c=this.renderInverted(o,t,n,r):">"===a?c=this.renderPartial(o,t,n,i):"&"===a?c=this.unescapedValue(o,t):"name"===a?c=this.escapedValue(o,t):"text"===a&&(c=this.rawValue(o)),void 0!==c&&(s+=c);return s},g.prototype.renderSection=function(e,t,i,o){var a=this,c="",s=t.lookup(e[1]);if(s){if(n(s))for(var u=0,l=s.length;u<l;++u)c+=this.renderTokens(e[4],t.push(s[u]),i,o);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)c+=this.renderTokens(e[4],t.push(s),i,o);else if(r(s)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(t.view,o.slice(e[3],e[5]),(function(e){return a.render(e,t,i)})))&&(c+=s)}else c+=this.renderTokens(e[4],t,i,o);return c}},g.prototype.renderInverted=function(e,t,r,i){var o=t.lookup(e[1]);if(!o||n(o)&&0===o.length)return this.renderTokens(e[4],t,r,i)},g.prototype.renderPartial=function(e,t,n,i){if(n){var o=r(n)?n(e[1]):n[e[1]];return null!=o?this.renderTokens(this.parse(o,i),t,n,o):void 0}},g.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},g.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},g.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="3.0.1",e.tags=["{{","}}"];var y=new g;return e.clearCache=function(){return y.clearCache()},e.parse=function(e,t){return y.parse(e,t)},e.render=function(e,t,r,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(o=e)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return y.render(e,t,r,i)},e.to_html=function(t,n,i,o){var a=e.render(t,n,i);if(!r(o))return a;o(a)},e.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return u[e]}))},e.Scanner=m,e.Context=v,e.Writer=g,e},t&&"string"!=typeof t.nodeName?a(t):(i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))},function(e,t,n){"use strict";n.r(t),n.d(t,"INTERNAL_TRACKING_PRICE_FIELD_NAME",(function(){return m})),n.d(t,"Tracking",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(15);var m="__TRACKING_PRICE__",v=function(){return function(e){return function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).clickSelector="[data-track]",e.productClickSelector='[data-track="productClick"]',e.recommendationClickSelector='[data-track="recommendationClick"]',e.checkoutClickSelector='[data-track="checkoutClick"]',e.cartClickSelector='[data-track="cartClick"]',e.dataCountSelector="[data-track-count]",e.tracking=h.a.communication.Tracking,e.getTrackingProductId=h.a.communication.Util.trackingHelper.getTrackingProductId,e.getPrice=h.a.communication.Util.trackingHelper.getPrice,e.getMasterArticleNumber=h.a.communication.Util.trackingHelper.getMasterArticleNumber,e.getUserId=h.a.communication.Util.trackingHelper.getUserId,e.getTitle=h.a.communication.Util.trackingHelper.getTitle,e}return a()(n,[{key:"appendCount",value:function(e,t){e.count=t.count||"1";var n=t.querySelector(this.dataCountSelector);if(n){var r=n.getAttribute("data-track-count");e.count=n[r]||n.value||"1"}}},{key:"appendChannel",value:function(e,t){t.channel?e.channel=t.channel:e.channel=h.a.communication.globalSearchParameter.channel}},{key:"appendInstoreAds",value:function(e,t){"true"===t.record.__FFInstoreAds__&&(e.instoreAds="true")}},{key:"appendCampaign",value:function(e,t){t.record.__FFCampaign__&&(e.campaign=t.record.__FFCampaign__)}},{key:"appendUserId",value:function(e){var t=this.getUserId();null!=t&&(e.userId=t)}},{key:"appendTitle",value:function(e,t){var n=this.getTitle(t);null!=n&&(e.title=n)}},{key:"appendPageSize",value:function(e,t,n){var r=null;if(n&&n.resultsPerPageList)for(var i=0;i<n.resultsPerPageList.length;i++){var o=n.resultsPerPageList[i];if(1==o.selected){r=o.value;break}}null!=r&&(e.pageSize=r)}},{key:"appendOrigPageSize",value:function(e,t){var n=h.b.esPolyfills.find((function(e){return!0===e.default}))(t.resultsPerPageList)||t.resultsPerPageList[0];e.origPageSize=n.value}},{key:"appendSimi",value:function(e,t){var n=t.searchSimilarity;null!=n&&(e.simi=n)}},{key:"appendMasterArticleNumber",value:function(e,t){var n=this.getMasterArticleNumber(t);null!=n&&(e.masterId=n)}},{key:"getRecordElement",value:function(e,t){return t&&!e?{recordData:t}:e&&t?(e.recordData=t,e):e.tagName&&"ff-record"===e.tagName.toLowerCase()?this:h.a.common.getParentElementByName(e,"ff-record")}},{key:"bindClick",value:function(e){e=e||this,!0===this.__isRecommendation?g(this,this.clickSelector,(function(t){e._trackRecommendationClick(e)}),e):!0===this.__isLandingPage?g(this,this.clickSelector,(function(t){e._trackLandingPageClick(e)}),e):g(this,this.clickSelector,(function(t){e._trackProductClick(e)}),e)}},{key:"bindProductClick",value:function(e){e=e||this,g(this,this.productClickSelector,(function(t){e._trackProductClick(e)}),e)}},{key:"bindRecommendationClick",value:function(e){e=e||this,g(this,this.recommendationClickSelector,(function(t){e._trackRecommendationClick(e)}),e)}}
2,{key:"bindCheckoutClick",value:function(e){e=e||this,g(this,this.checkoutClickSelector,(function(t){e._trackCheckoutClick(e)}),e)}},{key:"bindCartClick",value:function(e){e=e||this,g(this,this.cartClickSelector,(function(t){e._trackCartClick(e)}),e)}},{key:"_trackRecommendationClick",value:function(e,t,n){var r,i;if(r=t?{recordData:t}:e.tagName&&"ff-record"===e.tagName.toLowerCase()?this:h.a.common.getParentElementByName(e,"ff-record"),"ff-recommendation"===e.tagName.toLowerCase())i=e;else{var o=e;i=h.a.common.getParentElementByName(o,"ff-recommendation")}if(r){var a={mainId:i.recordId,id:this.getTrackingProductId(r.recordData)};this.appendMasterArticleNumber(a,r.recordData),this.appendUserId(a),n&&(a.always=n),this.tracking.recommendationClick(a)}}},{key:"_trackLandingPageClick",value:function(e,t){var n={campaign:e.recordData.__campaignId,id:e.recordData.id,pageId:e.recordData.__pageId};this.appendTitle(n,e.recordData),this.appendUserId(n),this.appendMasterArticleNumber(n,e.recordData),t&&(n.always=t),this.tracking.landingPageClick(n)}},{key:"_trackCheckoutClick",value:function(e,t,n){var r=this.getRecordElement(e,t);if(r){var i={id:this.getTrackingProductId(r.recordData),price:r.recordData.record[m]?r.recordData.record[m]:this.getPrice(r.recordData)};this.appendMasterArticleNumber(i,r.recordData),this.appendTitle(i,r.recordData),this.appendCount(i,e),this.appendChannel(i,e),this.appendCampaign(i,r.recordData),this.appendInstoreAds(i,r.recordData),this.appendUserId(i),n&&(i.always=n),this.tracking.checkout(i)}else console.log("No record element found. Tracking not possible.")}},{key:"_trackCartClick",value:function(e,t,n){var r=this.getRecordElement(e,t),i={id:this.getTrackingProductId(r.recordData),price:this.getPrice(r.recordData)};Object(p.a)()||(i.query=h.a.communication.Util.getQueryFromSearchParams()),this.appendMasterArticleNumber(i,r.recordData),this.appendTitle(i,r.recordData),this.appendCount(i,e),this.appendCampaign(i,r.recordData),this.appendInstoreAds(i,r.recordData),this.appendUserId(i),n&&(i.always=n),this.tracking.cart(i)}},{key:"_trackProductClick",value:function(e,t,n){var r=(e=this.getRecordElement(e,t)).recordData.position||e.recordData.record.__ORIG_POSITION__,i=h.a.common,o=h.a.communication.EventAggregator.currentSearchResult,a=function(e){return i.executeCallback(e),!1};if(!o)return a(n);var c=i.mergeProperties(i.parameterStringToDict(h.b.Encoding.fixedDecodeURIComponent(i.getParameterString())),i.parameterStringToDict(h.b.Encoding.fixedDecodeURIComponent(i.getParameterString(o.searchParams)))),s=h.a.communication.Util.getQueryFromSearchParams();if(Object(p.a)()&&(c.navigation||h.a.communication.globalCommunicationParameter.categoryPage)){var u=h.b.esPolyfills.find((function(e){return"categoryPath"===e.type}))(o.groups);if(u&&u.hasOwnProperty("__associatedFieldNameV4")){var l=h.b.esPolyfills.find((function(e){return e.name===u.__associatedFieldNameV4}))(o.filters);if(l&&0<l.valueList.length){var f=l.valueList[0].value;s=Object(p.b)()?f.map((function(e){return e.replace(/\//g,"%2F")})).join("/"):f}}}else if(!Object(p.a)()&&c.navigation){var d=h.a.communication.Util.extractCategoryPathFieldName();s=Object.keys(c).sort((function(e,t){return e.length-t.length})).map((function(e){return-1<e.indexOf(d)?c[e].join():""})).filter((function(e,t,n){return e&&n.indexOf(e)===t})).join("/")||s}if(!s)return i.Logger.error("Could not find the query. No tracking request will be sent"),a(n);var m={query:s,page:e.recordData.record.page||o.paging.currentPage,id:this.getTrackingProductId(e.recordData),pos:r,origPos:e.recordData.record.__ORIG_POSITION__||r};this.appendPageSize(m,e.recordData,o),this.appendSimi(m,e.recordData),this.appendMasterArticleNumber(m,e.recordData),this.appendCampaign(m,e.recordData),this.appendInstoreAds(m,e.recordData),this.appendTitle(m,e.recordData),this.appendUserId(m),this.appendOrigPageSize(m,o),n&&(m.always=n),this.tracking.click(m)}}]),n}(e)}};function g(e,t,n,r){var i=(r||e).querySelectorAll(t);return!!i&&(n=n.bind(e),i.forEach((function(e){return e.addEventListener("click",n)})),!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Communication",(function(){return O}));var r=n(27),i=n.n(r),o=n(4),a=n.n(o),c=n(3),s=n.n(c),u=n(2),l=n.n(u),f=n(6),d=n.n(f),h=n(7),p=n.n(h),m=n(0),v=n.n(m),g=n(45),y=n(1),b=n(50),_=n(9),k=n(13),w=n(11),C=n(15);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P="_ff-communication-history-fallback",O=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(){var e;return a()(this,n),(e=t.call(this)).ignorePage=!1,e._popstateHandler=function(t){t instanceof CustomEvent&&t.detail&&(t=t.detail),!0===e.useBrowserHistory&&t&&t.state&&Object(b.b)(t.state,P)},e}return s()(n,[{key:"useUrlParameter",get:function(){return y.a.common.Logger.emitDeprecationWarning("".concat(n.is,"/useUrlParameter"),"".concat(n.is,"/useUrlParameters")),this.useUrlParameters},set:function(e){y.a.common.Logger.emitDeprecationWarning("".concat(n.is,"/useUrlParameter"),"".concat(n.is,"/useUrlParameters")),this.useUrlParameters=e}},{key:"connectedCallback",value:function(){if(l()(v()(n.prototype),"connectedCallback",this).call(this),this.version||this.error("Attribute [version] must be specified."),Object(C.a)()&&!this.api&&this.error("Attribute [api] must be specified."),!this.userId){var e=y.a.communication.sessionManager.readSessionIdFromLocalstorage();e&&y.a.common.localStorage.setItem(e,void 0)}window.addEventListener("popstate",this._popstateHandler),this.searchImmediate&&!x(this.getAttribute("default-query"))&&this.search(!0)}},{key:"disconnectedCallback",value:function(){l()(v()(n.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("popstate",this._popstateHandler)}},{key:"attributeChangedCallback",value:function(e,t,r){if("use-url-parameter"===e)y.a.common.Logger.emitDeprecationWarning("".concat(n.is,"/use-url-parameter"),"".concat(n.is,"/use-url-parameters")),this.useUrlParameters=this._parseBoolean(r,"use-url-parameter");else if("category-page"===e&&r&&!Object(C.a)())y.a.common.Logger.w
2arn("".concat(n.is,"/category-page: This feature is only available for 'version=\"ng\"'.")),y.a.communication.globalCommunicationParameter.categoryPage="";else{var i=this.constructor._attributeToPropertyMap.get(e),o=n.properties[i],a=this._getTypeName(o.type);switch(a){case"String":this[i]=null==r?r:String(r);break;case"Boolean":!1===this.hasAttribute(e)?this[i]=!1:this[i]=this._parseBoolean(r,i);break;default:this.error("Property type ".concat(a," is not supported."))}}}},{key:"search",value:function(e){var t=y.a.common.getParameterString(),n=t?y.a.common.parameterStringToDict(t,!0):{};n.type="search",n.searchImmediate=e,!0===this.ignorePage&&delete n.page,this.checkSeo(n),this.checkFilterUrl(n),y.a.communication.EventAggregator.addFFEvent(n)}},{key:"checkSeo",value:function(e){if(y.a.communication.globalCommunicationParameter.useSeo){var t=window.location.pathname.replace(y.a.communication.globalCommunicationParameter.seoPrefix+"","");e.seoPath=y.b.Encoding.encodeURIComponent(t),delete e.query,e["ff-seo-initial"]=!0}}},{key:"checkFilterUrl",value:function(e){if(y.a.communication.globalCommunicationParameter.useFilterUrl){var t=window.location.pathname;"/"===t.substr(0,1)&&(t=t.substr(1));var n=t.replace(y.a.communication.globalCommunicationParameter.filterUrlPrefix,"");"/"===n.substr(0,1)&&(n=n.substr(1));for(var r=n.split("/"),i=[],o=0;o<r.length;o++)if(-1===r[o].indexOf(".")){var a={};if(0==o)a.key="filterCategoryROOT";else{var c=i[o-1];a.key="".concat(c.key,"/").concat(c.value)}a.value=r[o],null!=a.value&&""!==a.value&&i.push(a)}0<i.length&&i.forEach((function(t){e[t.key]=y.b.Encoding.fixedDecodeURIComponent(t.value)}))}}},{key:"_subscriptionCallback",value:function(e){e=y.a.communication.EventAggregator.currentSearchResult=e.searchResult||e,y.a.communication.ResultDispatcher.dispatchResult(e)}},{key:"_parseBoolean",value:function(e,t){var n=String(e).toLowerCase();return-1<["true","false",""].indexOf(n)?"true"===n||""===n:"null"===n?(this.warn("Boolean property [".concat(t,"] is expected be either true, false or empty, but is [").concat(n,"]. Use empty value instead for 'true'. Falling back to true.")),!0):(this.error("Boolean property [".concat(t,"] is expected be either true, false or empty, but is [").concat(n,"]. Falling back to fal
2se.")),!1)}},{key:"_getTypeName",value:function(e){return"string"==typeof e?e:"function"==typeof e?e.name?e.name:e.toString().replace("\n","").match(/^function\s*([^\s(]+)/)[1]:void this.error("Type must be either a string or a function.")}}],[{key:"is",get:function(){return"ff-communication"}},{key:"properties",get:function(){return{version:{type:String,group:"globalSearchParameter",name:"version"},api:{type:String,group:"globalCommunicationParameter",name:"ngApi"},addParams:{attribute:"add-params",group:"globalCommunicationParameter",type:String},categoryPage:{attribute:"category-page",group:"globalCommunicationParameter",type:String},addTrackingParams:{attribute:"add-tracking-params",group:"globalCommunicationParameter",type:String},ajax:{group:"globalCommunicationParameter",type:Boolean},currencyCode:{attribute:"currency-code",group:"globalCommunicationParameter",type:String},currencyCountryCode:{attribute:"currency-country-code",group:"globalCommunicationParameter",type:String},currencyFields:{attribute:"currency-fields",group:"globalCommunicationParameter",type:String},currencyMaxDigits:{attribute:"currency-max-digits",group:"globalCommunicationParameter",type:String},currencyMinDigits:{attribute:"currency-min-digits",group:"globalCommunicationParameter",type:String},disableCache:{attribute:"disable-cache",group:"globalCommunicationParameter",type:Boolean},filterUrlPrefix:{attribute:"filter-url-prefix",group:"globalCommunicationParameter",type:String},generateAdvisorTree:{attribute:"generate-advisor-tree",group:"globalCommunicationParameter",type:Boolean},keepFilters:{attribute:"keep-filters",group:"globalCommunicationParameter",type:Boolean},keepUrlParams:{attribute:"keep-url-params",group:"globalCommunicationParameter",type:String},onlySearchParams:{attribute:"only-search-params",group:"globalCommunicationParameter",type:Boolean},parameterWhitelist:{attribute:"parameter-whitelist",group:"globalCommunicationParameter",type:String},seoPrefix:{attribute:"seo-prefix",group:"globalCommunicationParameter",type:String},sid:{group:"globalCommunicationParameter",type:String},sortUrlParametersAlphabetically:{attribute:"sort-url-parameters-alphabetically",group:"globalCommunicationParameter",type:Boolean},useAsn:{attribute:"use-asn",group:"globalCommunicationParameter",type:Boolean},useAso:{attribute:"use-aso",group:"globalCommunicationParameter",type:Boolean},useBrowserHistory:{attribute:"use-browser-history",group:"globalCommunicationParameter",type:Boolean},useCache:{attribute:"use-cache",group:"globalCommunicationParameter",type:Boolean},useCampaigns:{attribute:"use-campaigns",group:"globalCommunicationParameter",type:Boolean},useFilterUrl:{attribute:"use-filter-url",group:"globalCommunicationParameter",type:Boolean},useFoundWords:{attribute:"use-found-words",group:"globalCommunicationParameter",type:Boolean},userId:{attribute:"user-id",get:function(){return y.a.communication.globalCommunicationParameter.userId},set:function(e){(y.a.communication.globalCommunicationParameter.userId=e)&&Promise.resolve().then((function(){var t={userId:e};y.a.communication.Tracking.login(t)}))},type:String},usePersonalization:{attribute:"use-personalization",group:"globalCommunicationParameter",type:Boolean},useSemanticEnhancer:{attribute:"use-semantic-enhancer",group:"globalCommunicationParameter",type:Boolean},useSeo:{attribute:"use-seo",group:"globalCommunicationParameter",type:Boolean},useUrlParameters:{attribute:"use-url-parameters",group:"globalCommunicationParameter",type:Boolean},channel:{group:"globalSearchParameter",type:String},defaultQuery:{attribute:"default-query",group:"globalSearchParameter",name:"query",set:function(e){x(e)?y.a.common.Logger.error("".concat(n.is,"/defaultQuery: value cannot be an empty string or whitespace only. searchImmediate will be ignored.")):y.a.communication.globalSearchParameter.query=e},type:String},url:{group:"globalSearchParameter",set:function(e){e&&(y.a.communication.globalSearchParameter.url=e.trim())},type:String},purchaserId:{attribute:"purchaser-id",group:"globalSearchParameter",type:String},marketId:{attribute:"market-id",group:"globalSearchParameter",type:String},campaignUrl:{attribute:"campaign-url",group:"globalCustomUrls",type:String},compareUrl:{attribute:"compare-url",group:"globalCustomUrls",type:String},getRecordsUrl:{attribute:"get-records-url",group:"globalCustomUrls",type:String},recommendationUrl:{attribute:"recommendation-url",group:"globalCustomUrls",type:String},searchUrl:{attribute:"search-url",group:"globalCustomUrls",name:"serachUrl",type:String},similarRecordsUrl:{attribute:"similar-records-url",group:"globalCustomUrls",type:String},suggestUrl:{attribute:"suggest-url",group:"globalCustomUrls",type:String},tagCloudUrl:{attribute:"tag-cloud-url",group:"globalCustomUrls",type:String},trackingUrl:{attribute:"tracking-url",group:"globalCustomUrls",type:String},logLevel:{attribute:"log-level",get:function(){return y.a.common.Logger.logLevel},set:function(e){return y.a.common.Logger.logLevel=e},type:String},ignorePage:{attribute:"ignore-page",type:Boolean},searchImmediate:{attribute:"search-immediate",type:Boolean},mustacheDelimiters:{attribute:"mustache-delimiters",type:String,get:function(){return g.tags.join()},set:function(e){var t=e.split(",");if(2!==t.length)throw new Error("Incorrect mustache-delimiters value. Please provide opening and closing tags separated by a comma e.g. '[[,]]'");g.tags=t}}}}},{key:"observedAttributes",get:function(){this._propsCreated||this.createProperties();var e,t=[],n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(this._attributeToPropertyMap);try{for(n.s();!(e=n.n()).done;){var r=i()(e.value,2),o=r[0];r[1],t.push(o)}}catch(e){n.e(e)}finally{n.f()}return t.concat("use-url-parameter")}},{key:"createProperties",value:function(){var e=this;this._attributeToPropertyMap=new Map;var t=function(t){var n=e.properties[t];e._attributeToPropertyMap.set(n.attribute||t,t),Object.defineProperty(e.prototype,t,{get:function(){return n.get&&"function"==typeof n.get?n.get.bind(this)():n.group?y.a.communication[n.group][n.name||t]:this["__".concat(t)]},set:function(e){n.set&&"function"==typeof n.set?n.set.bind(this)(e):n.group?y.a.communication[n.group][n.name||t]=e:this["__".concat(t)]=e},configurable:!0,enumerable:!0})};for(var n in this.properties)t(n);this._propsCreated=!0}}]),n}(Object(_.a)([Object(k.ElementLog)(),Object(w.a)(P)],HTMLElement));function x(e){return!/\S/.test(e)}window.customElements.define(O.is,O)},function(e,t,n){"use strict";function r(e){return(e.selectedElements[0]||e.elements[0]||e).associatedFieldName||e.name}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"SliderOneTouch",(function(){return E}));var r,i=n(19),o=n.n(i),a=n(27),c=n.n(a),s=n(8),u=n.n(s),l=n(4),f=n.n(l),d=n(3),h=n.n(d),p=n(2),m=n.n(p),v=n(6),g=n.n(v),y=n(7),b=n.n(y),_=n(0),k=n.n(_),w=n(10),C=n(58);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=Object.freeze({Triangle:".ffw-triangle",LeftButton:".ffw-slider-button-left",RightButton:".ffw-slider-button-right",Line:".ffw-line",SelectedRange:".ffw-selected-range"}),x=Object.freeze({NoTransition:"ffw-no-transition",Active:"ffw-active"}),E=function(e){g()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var i=k()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b()(this,n)}}(n);function n(){var e;return f()(this,n),(e=t.call(this)).ratio=.5,e._listener=void 0,e}return h()(n,[{key:"render",value:function(){var e=this.querySelector(".ffw-slider-button-left"),t=this.querySelector(".ffw-slider-button-right"),n=this.offsetWidth,i=n;e&&t&&(i=n-e.offsetWidth-t.offsetWidth);var o=i*this.ratio;return Object(w.b)(r||(r=u()(['<div class="ffw-slider-container" @mouseover="','" @mouseleave="','" style="left:-',"px;margin-top:-","px;margin-bottom:-","px;width:","px;height:",'px"><div class="ffw-triangle" @mousedown="','" @touchstart="','" @mouseover="','" style="left:',"px;border-width:0 0 ","px ",'px"></div><div class="ffw-line" style="width:',"px;left:",'px"></div><div class="ffw-selected-range" style="left:','px;right:0"></div><div class="ffw-slider-button ffw-slider-button-left" @mousedown="','" @touchstart="','" style="left:','px"></div><div class="ffw-slider-button ffw-slider-button-right" @mousedown="','" @touchstart="','" style="left:','px"></div></div>'])),R(this),j(this),n,o,o,2*n,2*o,I(this),I(this),R(this),1.5*n,o,i,n,n,n,A(this,!0),A(this,!0),n,A(this,!1),A(this,!1),2*n)}},{key:"firstUpdated",value:function(){m()(k()(n.prototype),"firstUpdated",this).call(this),window.addEventListener("mouseup",M(this)),window.addEventListener("touchend",M(this))}},{key:"update",value:function(e){m()(k()(n.prototype),"update",this).call(this,e),["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((function(t){return e.has(t)}))&&(function(e){e.selectedMaxValue=Math.min(e.absoluteMaxValue,e.selectedMaxValue),e.selectedMinValue=Math.max(e.absoluteMinValue,e.selectedMinValue),e.selectedMinValue===e.selectedMaxValue&&(e.selectedMinValue===e.absoluteMinValue&&(e.selectedMaxValue+=e.stepSize),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.stepSize)),N(e)}(this),L(this))}},{key:"updateData",value:function(e){m()(k()(n.prototype),"updateData",this).call(this,e),L(this)}}],[{key:"is",get:function(){return"ff-slider-one-touch"}},{key:"properties",get:function(){return{ratio:{type:Number}}}}]),n}(C.a);function R(e){return function(){e.querySelector(O.Triangle).classList.add(x.Active),L(e)}}function j(e){return function(){e._listener||(e.querySelector(O.Triangle).classList.remove(x.Active),L(e))}}function L(e){var t=e.querySelector(O.LeftButton),n=e.querySelector(O.RightButton),r=e.querySelector(O.Line),i=e.querySelector(O.SelectedRange),o=e.querySelector(O.Triangle),a=r.offsetWidth,c=r.offsetLeft,s=a-t.offsetWidth-n.offsetWidth,u=a+t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,f=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*s+c),d=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*s+u);t.style.left="".concat(f,"px"),i.style.left="".concat(f,"px"),n.style.left="".concat(d,"px"),i.style.right="".concat(2*a-d-n.offsetWidth,"px");var h=f+t.offsetWidth;if(o.classList.contains(x.Active)){var p=50-(d-h)/s*50;o.style.left="".concat(d,"px"),o.style.top="".concat(p,"%")}else o.style.left="".concat((d-h)/2+h,"px"),o.style.top="50%"}function I(e){return{handleEvent:function(t){var n=e.querySelector(O.LeftButton),r=e.querySelector(O.RightButton),i=e.querySelector(O.Line),o=e.querySelector(O.Triangle);o.classList.contains(x.Active)||R(e)(),M(e)(),o.classList.add(x.NoTransition);var a=i.offsetWidth-n.offsetWidth-r.offsetWidth,s=e.absoluteMaxValue-e.absoluteMinValue,u=function(e){return e/a*s},l=T(t),f=c()(l,2),d=f[0],h=f[1],p=e.selectedMaxValue,m=e.selectedMaxValue-e.selectedMinValue;e._listener=function(t){var n=T(t),r=c()(n,2),i=r[0],o=r[1],a=i-d,s=(o-h)/e.ratio,l=u(a),f=u(s),v=p+l,g=v-m,y=Math.max(0,v-e.absoluteMaxValue),b=Math.max(0,e.absoluteMinValue-g),_=0<f?Math.max(0,b-f):b,k=Math.min(e.absoluteMaxValue,v)+_,w=Math.max(e.absoluteMinValue,g)-y,C=f-b,S=Math.min(k,w+C),P=Math.max(e.absoluteMinValue,k);e.selectedMinValue=S,e.selectedMaxValue=P,L(e),N(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function A(e,t){return{handleEvent:function(n){M(e)();var r=e.querySelector(O.LeftButton),i=e.querySelector(O.RightButton),o=e.querySelector(O.Line);e.querySelector(O.Triangle).classList.add(x.NoTransition);var a=o.offsetWidth-r.offsetWidth-i.offsetWidth,s=o.offsetLeft,u=parseInt(r.style.left.replace("px","")),l=parseInt(i.style.left.replace("px","")),f=T(n),d=c()(f,1)[0],h=e.absoluteMaxValue-e.absoluteMinValue,p=function(t){return t/a*h+e.absoluteMinValue};e._listener=function(n){var i=T(n),o=c()(i,1)[0]-d;if(t){var a=p(u+o-s);e.selectedMinValue=Math.min(e.selectedMaxValue,a)}else{var f=p(l+o-s-r.offsetWidth);e.selectedMaxValue=Math.max(e.selectedMinValue,f)}L(e),N(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function T(e){return[void 0!==e.clientX?e.clientX:e.touches[0].clientX,void 0!==e.clientY?e.clientY:e.touches[0].clientY]}function M(e){return function(){if(e._listener){window.removeEventListener("mousemove",e._listener),window.removeEventListener("touchmove",e._listener),e.submit(),e._listener=void 0;var t=e.querySelector(O.Triangle);t.classList.remove(x.NoTransition),!1===(t.matches?t.matches(":hover"):t.msMatchesSelector(":hover"))&&j(e)()}}}
2function N(e){var t={detail:{selectedMinValue:e.selectedMinValue,selectedMaxValue:e.selectedMaxValue,slider:1}};e.dispatchEvent(new CustomEvent("value-changed",t)),e.dispatchEvent(new CustomEvent("slider-moved",t)),e.dispatchEvent(new CustomEvent("slider-moved",{detail:P(P({},t.detail),{},{slider:2})}))}window.customElements.define(E.is,E)},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n(19),i=n.n(r),o=n(1),a=n(53),c=n(52);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e,t){if(!d(e))return!1;if(h(e))o.a.communication.EventAggregator.currentSearchResult=e.searchResult,o.a.communication.ResultDispatcher.dispatchResult(e.searchResult,null),p();else var n=o.a.communication.EventAggregator.addFFEvent(u(u({},o.a.common.urlStringToDict(e.searchResult.searchParams)),{},{type:"search",topics:function(){return[t]}})),r=o.a.communication.ResultDispatcher.subscribe("result",(function(e,t){t.dispatchId===n&&(o.a.communication.ResultDispatcher.unsubscribe("result",r),p())}));return!0},f="ffRecordListScrollRestorationEventName",d=function(e){return e&&e.searchResult},h=function(e){return e.searchResult._typeFlag!==o.a.common.HistoryEntry._typeFlag},p=function(){var e=Object(c.a)();e&&(Object(c.b)(),Object(a.a)().then((function(){document.dispatchEvent(new CustomEvent(f,{detail:e}))})))}},function(e,t,n){"use strict";var r,i,o,a,c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(2),p=n.n(h),m=n(6),v=n.n(m),g=n(7),y=n.n(g),b=n(0),_=n.n(b),k=n(10),w=n(1),C=n(5),S=n(14),P=n(9),O=n(27),x=n.n(O),E=n(44),R=((r={}).Event=((i=r.Event||{}).add=document.addEventListener?function(e,t,n,r){r=r||!1,e.addEventListener(t,n,r)}:function(e,t,n){e.attachEvent("on"+t,n)},i.remove=document.removeEventListener?function(e,t,n,r){r=r||!1,e.removeEventListener(t,n,r)}:function(e,t,n){e.detachEvent("on"+t,n)},i.DOMit=function(e){return function(e){if(!e.clientX)try{e.clientX=e.touches[0].clientX}catch(e){}if(!e.clientY)try{e.clientY=e.touches[0].clientY}catch(e){}}(e),(e=e||window.event).target||(e.target=e.srcElement),e.preventDefault||(e.preventDefault=function(){return e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),e},i.getTarget=function(e){var t=(e=i.DOMit(e)).target;return 1!==t.nodeType&&(t=t.parentNode),t},i.domReady=function(){var e=[],t=!1;
2function n(n){if(!t&&("readystatechange"!==n.type||"complete"===document.readyState)){for(var r=0,i=e.length;r<i;r++)e[r].call(document);t=!0,e=[]}}return document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("readystatechange",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n)),function(n){t?n.call(document):e.push(n)}}(),i),r.Viewport={_docEl:null,getDocEl:function(){var e="",t=document;return this._docEl||(e=t.compatMode,this._docEl="CSS1Compat"===e?t.documentElement:t.body),this._docEl},getWidth:function(){var e=this.getDocEl().clientWidth;return window.innerWidth&&e>window.innerWidth&&(e=window.innerWidth),e},getHeight:function(){var e=this.getDocEl().clientHeight;return window.innerHeight&&e>window.innerHeight&&(e=window.innerHeight),e},getScrollX:function(){return"number"==typeof window.pageXOffset?window.pageXOffset:this.getDocEl().scrollLeft},getScrollY:function(){return"number"==typeof window.pageYOffset?window.pageYOffset:this.getDocEl().scrollTop},getAll:function(){return{width:this.getWidth(),height:this.getHeight(),scrollX:this.getScrollX(),scrollY:this.getScrollY()}}},r.Util=((o=r.Util||{}).$=function(e,t){return t?t.root?t.shadowRoot.querySelector(e):t.querySelector(e):e.nodeType?e:""!==e?window.ShadowDOMPolyfill||Element.prototype.createShadowRoot?document.querySelector("body /deep/ #"+e):document.getElementById(e):void 0},o.intersectContainer=function(e,t){var n=parseInt(e.style.left.replace("px",""),10),r=parseInt(e.style.left.replace("px",""))+e.offsetWidth,i=parseInt(t.style.left.replace("px",""),10),a=parseInt(t.style.left.replace("px",""),10)+t.offsetWidth;return o.intersectValues(n,r,i,a)},o.intersectValues=function(e,t,n,r){return e<=r&&n<=t||r<=e&&t<=n},o.getCurrentStyle=function(e,t){var n,r,i="";return window.getComputedStyle?i=window.getComputedStyle(e,null)[t]:e.currentStyle&&(i=e.currentStyle[t],!/^\d+(px)?$/i.test(i)&&/^\d/.test(i)&&(n=e.style.left,r=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,e.style.left=i||0,i=e.style.pixelLeft+"px",e.style.left=n,e.runtimeStyle.left=r)),i},o.contained=function(e,t){if(!e)return!1;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.hash=function(){return Math.floor(65536*(1+Math.random())).toString(32).substring(1)},o),r.Draggable=function(){var e=r.Util,t=r.Event,n=r.Viewport;function i(n,r,o,a){var c,s;if("string"==typeof n?c=e.$(n):"nodeType"in n?c=n:console.log("Cant process identifierer "+n),!c)throw new Error("new DYN_WEB.Draggable: No element with the specified id found.");this.id=n;var u=parseInt(e.getCurrentStyle(c,"left"),10),l=parseInt(e.getCurrentStyle(c,"top"),10);if(o&&(this.minX="number"==typeof o.minX?o.minX:void 0,this.maxX="number"==typeof o.maxX?o.maxX:void 0,this.minY="number"==typeof o.minY?o.minY:void 0,this.maxY="number"==typeof o.maxY?o.maxY:void 0,this.on_drag_start="function"==typeof o.on_drag_start?o.on_drag_start:this.on_drag_start,this.on_drag="function"==typeof o.on_drag?o.on_drag:this.on_drag,this.on_drag_end="function"==typeof o.on_drag_end?o.on_drag_end:this.on_drag_end),a?(u=this.maxX,this.slider2=e.$(n)):(u=isNaN(u)?0:u,this.slider1=e.$(n)),l=isNaN(l)?0:l,i.shiftTo(c,u,l),r){if(!(s=r.nodeType?r:e.$(r)))throw new Error("new DYN_WEB.Draggable: No element with the specified handleId found.");if(!e.contained(s,c))throw new Error("new DYN_WEB.Draggable: No element with id "+r+" found inside "+n+".")}else s=c;t.add(s,"mousedown",i.start.bind(this)),t.add(s,"touchstart",i.start.bind(this))}return i.prototype={on_drag_start:function(){},on_drag:function(){},on_drag_end:function(){}},i.zOrder=1e3,i.start=function(e){var r,o,a,c,s,u=0;e=t.DOMit(e);var l=t.getTarget(e);do{if(l.id===this.slider1.id){r=this.slider1;break}if(l.id===this.slider2.id){r=this.slider2;break}u++}while(u<10&&(l=l.parentNode));if(!r)throw new Error("Unable to find Draggable element onmousedown.");r.style.zIndex=i.zOrder++,o=e.clientX+n.getScrollX(),a=e.clientY+n.getScrollY(),c=parseInt(r.style.left,10)||0,s=parseInt(r.style.top,10)||0,this.dx=o-c,this.dy=a-s,this.downX=o,this.downY=a,this.on_drag_start(c,s),this.drag=i.drag.bind(this),this.end=i.end.bind(this),t.add(document,"mousemove",this.drag),t.add(document,"touchmove",this.drag),t.add(document,"mouseup",this.end),t.add(document,"touchend",this.end),e.preventDefault(),e.stopPropagation()},i.drag=function(e){e=t.DOMit(e);
2var r=this,o=this.id,a=e.clientX+n.getScrollX()-r.dx,c=e.clientY+n.getScrollY()-r.dy;a=void 0!==r.minX?Math.max(r.minX,a):a,a=void 0!==r.maxX?Math.min(r.maxX,a):a,c=void 0!==r.minY?Math.max(r.minY,c):c,c=void 0!==r.maxY?Math.min(r.maxY,c):c,("string"==typeof r.id?r.id===this.slider1.id:r.id.id===this.slider1.id)?(r.maxX=parseInt(this.slider2.style.left.replace("px",""),10),r.minX=0):("string"==typeof r.id?r.id===this.slider2.id:r.id.id===this.slider2.id)&&(r.minX=parseInt(this.slider1.style.left.replace("px",""),10),r.maxX=r.origMaxX),i.shiftTo(o,a,c),r.on_drag(a,c),e.preventDefault()},i.end=function(){var e,n,r=this.id;t.remove(document,"mousemove",this.drag),t.remove(document,"touchmove",this.drag),t.remove(document,"mouseup",this.end),t.remove(document,"touchend",this.end),r&&(e=parseInt(r.style.left,10),n=parseInt(r.style.top,10),this.on_drag_end(e,n))},i.setup=function(){for(var e,t=0,n=arguments.length;t<n;t++)"string"==typeof(e=arguments[t])?new i(e):new i(e.id,e.handleId,e)},i.shiftTo=function(e,t,n){e.style.left=parseInt(t,10)+"px",e.style.top=parseInt(n,10)+"px"},i}(),r.Slider=function(){var e=r.Util,t=r.Event,n=r.Draggable;function i(e,t,n,r,o){this.id=e,this.trackId=t,this.axis=n,"string"!=typeof this.id?i.col[this.id.id]=this:i.col[this.id]=this,this.init(r)}return i.col={},i.prototype={slideDur:50,init:function(r){var i,o=e.$(this.id),a=e.$(this.trackId),c=parseInt(e.getCurrentStyle(o,"left"),10),s=parseInt(e.getCurrentStyle(o,"top"),10),u=this;c=isNaN(c)?0:c,s=isNaN(s)?0:s,i="v"===this.axis?{minX:c,maxX:c,minY:0,maxY:a.offsetHeight-o.offsetHeight-2*a.clientTop}:{minX:0,maxX:a.offsetWidth-o.offsetWidth-2*a.clientLeft,minY:s,maxY:s},this.barWd=o.offsetWidth,this.barHt=o.offsetHeight,this.Dragbar=r?new n(this.id,"",i,!0):new n(this.id,"",i),this.minX=this.Dragbar.minX,this.maxX=this.Dragbar.maxX,this.origMaxX=this.maxX,this.Dragbar.origMaxX=this.origMaxX,this.minY=this.Dragbar.minY,this.maxY=this.Dragbar.maxY,this.Dragbar.on_drag_start=function(e,t){u.on_move_start(e,t)},this.Dragbar.on_drag=function(e,t){u.on_move(e,t)},this.Dragbar.on_drag_end=function(e,t){u.on_move_end(e,t)},t.add(a,"mousedown",(function(e){u.prepSlide(e,u.id)})),t.add(a,"touchstart",(function(e){u.prepSlide(e,u.id)}))},prepSlide:function(n,r){var o;n=t.DOMit(n);var a=(o="string"!=typeof r?i.col[r.id]:i.col[r]).bar=e.$(r);o.clearTimer(),n.offX="number"==typeof n.offsetX?n.offsetX:n.layerX,n.offY="number"==typeof n.offsetY?n.offsetY:n.layerY,o.startX=parseInt(a.style.left,10),o.startY=parseInt(a.style.top,10),"v"===o.axis?(o.destX=o.startX,o.destY=n.offY<o.startY?n.offY:n.offY-o.barHt,o.destY=Math.min(Math.max(o.destY,o.minY),o.maxY)):(o.destX=n.offX<o.startX?n.offX:n.offX-o.barWd,o.destX=Math.min(Math.max(o.destX,o.minX),o.maxX),o.destY=o.startY),o.distX=o.destX-o.startX,o.distY=o.destY-o.startY,o.per=Math.PI/(2*o.slideDur),o.slideStartTime=(new Date).getTime(),o.on_move_start(o.startX,o.startY),o.timerId=setInterval((function(){o.doSlide()}),10)},doSlide:function(){},shiftTo:function(e,t){!this.bar||isNaN(e)||isNaN(t)||(this.bar.style.left=Math.round(e)+"px",this.bar.style.top=Math.round(t)+"px")},clearTimer:function(){clearInterval(this.timerId),this.timerId=0},on_move_start:function(e,t){},on_move:function(e,t){},on_move_end:function(e,t){}},i}(),r),j=n(58);var L=0,I=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).submitOnRelease=!0,e._slider1=null,e._slider2=null,e.isInitialzied=!1,e.dragging=!1,e._sliderContent1=void 0,e._sliderContent2=void 0,e._UID=L++,e}return d()(n,[{key:"render",value:function(){return Object(k.b)(a||(a=s()(['<div style="position:relative;width:100%;height:100%" class="ffw-sliderBar"><div id="','" class="ffw-slider1 ffw-sliderWrapper" style="position:absolute!important">','</div><div id="','" class="ffw-slider2 ffw-sliderWrapper" style="position:absolute!important">',"</div></div>"])),"slider1-".concat(this._UID),this._sliderContent1,"slider2-".concat(this._UID),this._sliderContent2)}},{key:"connectedCallback",value:function(){var e=this;function t(e){var t='<div slot="'.concat(e,'"></div>');return Object(S.a)(t)}p()(_()(n.prototype),"connectedCallback",this).call(this),this._sliderContent1=this.querySelector('[slot="slider1"]')||t("slider1"),this._sliderContent2=this.querySelector('[slot="slider2"]')||t("slider2"),this.resizeHandler=window.addEventListener("resize",(function(){return e.render
2Slider()})),this.renderSliderKey||(this.renderSliderKey=setInterval((function(){return e.renderSlider()}),250))}},{key:"disconnectedCallback",value:function(){p()(_()(n.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this.resizeHandler),this.renderSliderKey&&(clearInterval(this.renderSliderKey),this.renderSliderKey=void 0)}},{key:"update",value:function(e){p()(_()(n.prototype),"update",this).call(this,e),e.has("selectedMinValue")&&this._selectedMinChanged(),e.has("selectedMaxValue")&&this._selectedMaxChanged(e.get("selectedMaxValue")),(e.has("absoluteMaxValue")||e.has("absoluteMinValue"))&&A(this)}},{key:"init",value:function(){var e,t,n,r;this._slider1=new R.Slider(this.querySelector(".ffw-slider1"),this,"h"),this._slider1.on_move=(e=this,function(t){return T(e,Math.floor(e._getCurrentValue(t)),e.selectedMaxValue,1)}),this._slider1.on_move_end=(t=this,function(e){t.selectedMinValue=t._getCurrentValue(e),M(t)}),this._slider2=new R.Slider(this.querySelector(".ffw-slider2"),this,"h",!0),this._slider2.on_move=(n=this,function(e){var t=(e=n._getCurrentValue(e))<n.selectedMinValue?n.selectedMinValue+1:e;T(n,n.selectedMinValue,t,2)}),this._slider2.on_move_end=(r=this,function(e){r.selectedMaxValue=r._getCurrentValue(e),M(r)}
2),this._slider1.Dragbar.slider2=this._slider2.Dragbar.id,this._slider2.Dragbar.slider1=this._slider1.Dragbar.id,this.style.opacity="1",this.offsetHeight,this.isInitialized=!0}},{key:"updateData",value:function(e){p()(_()(n.prototype),"updateData",this).call(this,e),this._forceUpdate=!0,A(this)}},{key:"renderSlider",value:function(){if(!0===this.isInitialized&&!1===this.dragging){var e=this.querySelector(".ffw-sliderBar").clientWidth,t=this._slider1.barWd||this.querySelector(".ffw-slider1").clientWidth,n=this._slider2.barWd||this.querySelector(".ffw-slider2").clientWidth,r=Math.max(e-t,0),i=Math.max(e-n,0);this._slider1.Dragbar.maxX=r,this._slider1.Dragbar.origMaxX=r,this._slider1.maxX=r,this._slider2.Dragbar.maxX=i,this._slider2.Dragbar.origMaxX=i,this._slider2.maxX=i;var o=Math.max(Math.floor(r*Math.max(this.selectedMinValue-this.absoluteMinValue,0)/(this.absoluteMaxValue-this.absoluteMinValue))-1,0),a=Math.floor(i*Math.max(this.selectedMaxValue-this.absoluteMinValue,0)/(this.absoluteMaxValue-this.absoluteMinValue));this.querySelector(".ffw-slider1").style.left="".concat(o,"px"),this.querySelector(".ffw-slider2").style.left="".concat(a,"px")}}},{key:"_getCurrentValue",value:function(e){e<=0&&(e=1e-10);var t=this._slider2.barWd||this.querySelector(".ffw-slider2").clientWidth,n=Math.max(this.querySelector(".ffw-sliderBar").clientWidth-t,0);if(n<=e)return Math.ceil(this.absoluteMaxValue);var r=e/n,i=this.absoluteMaxValue-this.absoluteMinValue;return Math.floor(i*r)+Math.floor(this.absoluteMinValue)}},{key:"_selectedMinChanged",value:function(){isNaN(this.selectedMinValue)||this.selectedMinValue<Math.floor(this.absoluteMinValue)?this.selectedMinValue=Math.floor(this.absoluteMinValue):this.selectedMinValue>=this.selectedMaxValue&&(this.selectedMinValue=this.selectedMaxValue>this.absoluteMinValue?Math.ceil(this.selectedMaxValue)-1:this.absoluteMinValue),A(this),this.dispatchEvent(N(this.selectedMinValue,this.selectedMaxValue,1))}},{key:"_selectedMaxChanged",value:function(e){isNaN(this.selectedMaxValue)||this.selectedMaxValue>Math.ceil(this.absoluteMaxValue)?this.selectedMaxValue=Math.ceil(this.absoluteMaxValue)||e:this.selectedMaxValue<=this.selectedMinValue&&(this.selectedMaxValue=Math.floor(this.selectedMinValue)+1),A(this),this.dispatchEvent(N(this.selectedMinValue,this.selectedMaxValue,2))}}],[{key:"is",get:function(){return"ff-slider"}},{key:"properties",get:function(){return{submitOnRelease:{type:Boolean,attribute:"submit-on-release"}}}}]),n}(j.a);function A(e){e._forceUpdate&&(e._forceUpdate=!1,!e.isInitialized&&e.init(),e.renderSlider())}function T(e,t,n,r){e.dragging=!0,e.dispatchEvent(new CustomEvent("slider-moved",{detail:{selectedMinValue:t,selectedMaxValue:n,slider:r}}))}function M(e){e.dragging=!1,"false"!==e.getAttribute("submit-on-release")&&e.submit()}function N(e,t,n){return new CustomEvent("value-changed",{detail:{selectedMinValue:e,selectedMaxValue:t,slider:n}})}window.customElements.define(I.is,I);var D,B,F=n(49),V=n(28);var U=["".concat(I.is,", ").concat(F.SliderOneTouch.is),"input[data-control='1']","input[data-control='2']"],q=Object(S.e)(D||(D=s()(['<div><ff-slider step-size="1" submit-on-release="true"><div slot="slider1"></div><div slot="slider2"></div></ff-slider><div style="display:flex;justify-content:space-around;align-items:center"><input data-control="1" style="width:60px"> <span style="width:20px;height:2px;background-color:#000;display:inline-block"></span> <input data-control="2" style="width:60px"></div></div>']))),z=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).disableInputFields=!1,e.submitOnInput=!1,e.unit=void 0,e.group=void 0,e.inputMin=void 0,e.inputMa
2x=void 0,e.slider=void 0,e._submitDelay=500,e._content=void 0,e._isSubmitScheduled=!1,e._submitInputMinDebouncerJob=void 0,e._submitInputMaxDebouncerJob=void 0,e}return d()(n,[{key:"render",value:function(){return Object(k.b)(B||(B=s()(['<div class="ffw-sliderSection">',"</div>"])),this._content)}},{key:"initDefaultTemplates",value:function(){var e;this._content||(e=Object(C.d)(this)?(this._content=Object(S.a)(q),this._content):(this._content=Array.from(this.childNodes),this),this.slider=e.querySelector(U[0]),this.inputMin=e.querySelector(U[1]),this.inputMax=e.querySelector(U[2]),function(e,t){var n=U.filter((function(e){return!t.querySelector(e)}));if(0!==n.length)throw Error("".concat(z.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(U.join('", "'),'".\nMissing templates are: "').concat(n.join('", "'),'".\nAlternatively, you may leave ').concat(z.is," empty. In this case, default templates will be used."))}(0,e),this.slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this.slider.addEventListener("value-changed",this._valueChanged.bind(this)))}},{key:"update",value:function(e){e.has("group")&&this._groupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),p()(_()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"init",value:function(){var e=this;this.inputMin.value=this.addUnit(this.slider.selectedMinValue),this.inputMax.value=this.addUnit(this.slider.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((function(){return e.style.opacity="1"}))}},{key:"submit",value:function(){this._submitInputMax(),this._submitInputMin()}},{key:"_groupChanged",value:function(){var e=this;this.group&&setTimeout((function(){e._updateInput(e.inputMax,e.slider.selectedMaxValue),e._updateInput(e.inputMin,e.slider.selectedMinValue)}),1)}},{key:"_updateInput",value:function(e,t){if(e){this.slider&&void 0!==t&&(e.value=this.addUnit(t));for(var n=e.attributes,r=0;r<n.length;r++){var i=n[r];i.value=Object(V.a)(i.value,{group:this.group})}}}},{key:"_disableFocusInput",value:function(){this.inputMax.disabled=!0,this.inputMin.disabled=!0}},{key:"_submitInputMin",value:function(){var e=this.removeUnit(this.inputMin.value);isNaN(e)&&(e=this.slider.selectedMinValue);var t=e%this.slider.stepSize;e-=t,.5<=t/this.slider.stepSize&&(e+=this.slider.stepSize),this.slider.selectedMinValue=e,this.slider._forceUpdate=!0,this.inputMin.value=this.addUnit(e),this.inputMin.blur(),this._scheduleSubmit()}},{key:"_submitInputMax",value:function(){var e=this.removeUnit(this.inputMax.value);isNaN(e)&&(e=this.slider.selectedMaxValue);var t=e%this.slider.stepSize;e-=t,.5<=t/this.slider.stepSize&&(e+=this.slider.stepSize),this.slider.selectedMaxValue=e,this.slider._forceUpdate=!0,this.inputMax.value=this.addUnit(e),this.inputMax.blur(),this._scheduleSubmit()}},{key:"_scheduleSubmit",value:function(){var e=this;this._isSubmitScheduled||(this._isSubmitScheduled=!0,this.slider.updateComplete.then((function(){e._isSubmitScheduled=!1,e.slider.submit()})))}},{key:"_initInputSubmit",value:function(){var e=this;function t(e){return 48<=e&&e<=57||96<=e&&e<=105}this._submitInputMinDebouncerJob=Object(E.a)(this._submitInputMinDebouncerJob,(function(){e._submitInputMin(),e.inputMin.focus()}),this._submitDelay),this._submitInputMaxDebouncerJob=Object(E.a)(this._submitInputMinDebouncerJob,(function(){e._submitInputMax(),e.inputMax.focus()}),this._submitDelay),this.inputMin.onkeyup=function(n){var r=(n=window.event||n).keyCode||n.which;if(13===r)return e._submitInputMin(),!1;e.submitOnInput&&t(r)&&e._submitInputMinDebouncerJob.run()},this.inputMax.onkeyup=function(n){var r=(n=window.event||n).keyCode||n.which;if(13===r)return e._submitInputMax(),!1;e.submitOnInput&&t(r)&&e._submitInputMaxDebouncerJob.run()}}},{key:"addUnit",value:function(e){var t=w.a.communication.globalCommunicationParameter,n=t.currencyCode,r=t.currencyCountryCode,i=this.group.elements.concat(this.group.selectedElements),o=x()(i,1)[0];return o&&w.a.communication.Util.isPriceField(o.associatedFieldName)&&n&&r?e.toLocaleStr
2ing(r,{style:"currency",currency:n}):(this.group.unit&&(e+=" ".concat(this.group.unit)),e)}},{key:"removeUnit",value:function(e){return+e.replace(this.unit,"").replace(",",".").replace(/\.(?=.*\.)/g,"")}},{key:"_valueChanged",value:function(e){var t=e.detail,n=t.slider,r=t.selectedMinValue,i=t.selectedMaxValue;if(1===n)this.inputMin.value=this.addUnit(r);else{if(2!==n)throw"Unexpected slider: ".concat(n);this.inputMax.value=this.addUnit(i)}}}],[{key:"is",get:function(){return"ff-slider-control"}},{key:"properties",get:function(){return{disableInputFields:{type:C.c,attribute:"disable-input-fields"},submitOnInput:{type:C.c,attribute:"submit-on-input"},unit:{type:String},group:{type:Object,attribute:!1}}}}]),n}(C.a);window.customElements.define(z.is,z);var W,H,K=n(13),Y=n(29),G=n(48);n.d(t,"a",(function(){return X}));var X=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).collapsible=!0,e.opened=!1,e.filterStyle="SLIDER",e.selectorWrapper=".ffw-wrapper",e._wrapper=void 0,e._sliderControl=void 0,e._removeFilterContainer=void 0,e.selectorGroupCaptionContainer='[slot="groupCaption"]',e.selectRemoveFilterContainer='[data-container="removeFilter"]',e._initialized=!1,e._rawOuterHtml="",e}return d()(n,[{key:"render",value:function(){var e=this;return this._initialized?Object(k.b)(H||(H=s()(['<div data-container="groupCaption" @click="','">','</div><div class="ffw-container"><div class="ffw-wrapper" ?opened="','">'," ","</div></div>"])),(function(){return e.toggle(!0)}),Object(C.e)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):Object(k.b)(W||(W=s()(['<div class="ffw-container"><div class="ffw-wrapper" ?opened="','"></div></div>'])),this.opened)}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this.init()}},{key:"firstUpdated",value:function(e){p()(_()(n.prototype),"firstUpdated",this).call(this,e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}},{key:"init",value:function(){var e=this;this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(z.is)||document.createElement(z.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((function(){var t=e.querySelector("".concat(I.is,", ").concat(F.SliderOneTouch.is));Z(e,t),t.addEventListener("value-changed",(function(){Z(e,t)}))})))}},{key:"_initGroupCaption",value:function(){return this.querySelector(this.selectorGroupCaptionContainer)||Object(S.a)('<div slot="groupCaption">{{group.name}}</div>')}},{key:"_updateSliderControls",value:function(){var e=this;this.querySelectorAll(z.is).forEach((function(t){return t.group=e.group})),this._sliderControl&&(this._sliderControl.group=this.group)}},{key:"_hideGroup",value:function(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}},{key:"update",value:function(e){e.has("group")&&this._asnGroupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"_processAndRenderGroup",value:function(e){var t=this;this.forGroup=Object(G.a)(e);var r=e.elements[0];if("number"!=typeof r.absoluteMinValue||"number"!=typeof r.absoluteMaxValue)return this.warn("[".concat(n.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),r.absoluteMinValue,r.absoluteMaxValue),void this._hideGroup();if(r.absoluteMinValue!==r.absoluteMaxValue){r.selectedMinValue=Math.max(r.absoluteMinValue,r.selectedMinValue),r.selectedMaxValue=Math.min(r.absoluteMaxValue,r.selectedMaxValue),this._updateSliderControls();try{Promise.resolve().then((function(){var n=t.querySelector("".concat(I.is,", ").concat(F.SliderOneTouch.is));n&&(n.unit=e.unit,n.updateComplete.then((function(){return n.updateData(r)})))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;var t=e.elements[0],n=t.selectedMinValue,r=t.selectedMaxValue,i=t.absoluteMinValue;return r!==t.absoluteMaxValue||n!==i}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((function(){return t.show()})),this.dispatchEvent(new CustomEvent("records-updated",{bubbles:!0,composed:!0})),this.style.opacity="1",this.offsetHeight}catch(e){this.error(e)}}else this._hideGroup()}},{key:"_asnGroupChanged",value:function(){this.group?this._processAndRenderGroup(this.group):(this.group=w.a.communication.AsnGroup,this._hideGroup())}},{key:"_initRemoveFilter",value:function(){var e=this,t=this.querySelector(this.selectRemoveFilterContainer)||Object(S.a)('<div data-container="removeFilter">Reset Filter</div>');return t.addEventListener("click",(function(){w.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:e.group.name,removeAll:!0})}
2)),t}},{key:"toggle",value:function(e){var t=this;this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(function(){return t.opened=!1})):(this._toggle(this._wrapper,e),this.opened=!0))}},{key:"show",value:function(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(function(){return t.opened=!1})))}},{key:"clone",value:function(){return Object(S.a)(this._rawOuterHtml)}}],[{key:"is",get:function(){return"ff-asn-group-slider"}},{key:"properties",get:function(){return{collapsible:{type:C.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,reflect:!0,attribute:"for-group"},filterStyle:{type:String,reflect:!0,attribute:"filter-style"},disableAutoExpand:{type:Boolean,reflect:!0,attribute:"disable-auto-expand"},group:{type:Object,attribute:!1}}}}]),n}(Object(P.a)([Object(K.ElementLog)(),Object(Y.CollapseElement)()],C.a));function Z(e,t){if(e._removeFilterContainer){var n=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue<t.absoluteMaxValue?"inline":"none";n!==r&&(e._removeFilterContainer.style.display=r,e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!1,composed:!0})))}}window.customElements.define(X.is,X)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(){return JSON.parse(sessionStorage.getItem("_ff-recordsScrollRestorationId"))},i=function(e){return sessionStorage.setItem("_ff-recordsScrollRestorationId",JSON.stringify(e))},o=function(){return sessionStorage.removeItem("_ff-recordsScrollRestorationId")}},function(e,t,n){"use strict";function r(){return new Promise((function(e){window.WebComponents&&window.WebComponents.ready?e():document.addEventListener("WebComponentsReady",(function t(){document.removeEventListener("WebComponentsReady",t),e()}))}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.querySelectorAll(e.getAttribute("product-image-identifier")||"[data-image]").forEach((function(n){n.onerror&&function(e,t){var n=e.attributes.getNamedItem(t);if(n){var r=n.nodeValue;r&&(e.onerror=function(){e.onerror=null,e.setAttribute("src",r)})}}(n,e.getAttribute("product-image-error-attribute")||"data-image-onerror"),(n.getAttribute("data-image")||t)&&n.setAttribute("src",n.getAttribute("data-image")||t)}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r){return"".concat((i=t,o=n,a=r,!0===i?"productCampaign":!0===o?"shoppingCartCampaign":!0===a?"pageCampaign":"campaign"),":").concat(e.filter((function(e){return e})).join(":"));var i,o,a}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(12),i=new WeakMap,o=Object(r.f)((function(e,t){return function(n){var r=i.get(n);if(Array.isArray(e)){if(Array.isArray(r)&&r.length===e.length&&e.every((function(e,t){return e===r[t]})))return}else if(r===e&&(void 0!==e||i.has(n)))return;n.setValue(t()),i.set(n,Array.isArray(e)?Array.from(e):e)}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),i=function(e){return function(t){if(t.implicitSelection)return!1;var n=r.a.common.getParameterString(t.searchParams).split("&");return e.every((function(e){return n.some((function(t){if(0!==t.indexOf(e))return!1;var n=t.substr(e.length,3);return""===n||"%2f"===n.toLowerCase()}))}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(51),y=n(15);var b=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).stepSize=1,e._initialized=!1,e}return a()(n,[{key:"update",value:function(e){e.has("absoluteMinValue")&&(this.absoluteMinValue=Math.floor(this.absoluteMinValue/this.stepSize)*this.stepSize),e.has("absoluteMaxValue")&&(this.absoluteMaxValue=Math.ceil(this.absoluteMaxValue/this.stepSize)*this.stepSize),e.has("selectedMinValue")&&(this.selectedMinValue=Math.floor(this.selectedMinValue/this.stepSize)*this.stepSize),e.has("selectedMaxValue")&&(this.selectedMaxValue=Math.ceil(this.selectedMaxValue/this.stepSize)*this.stepSize),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"updateData",value:function(e){!e||this.selectedMaxValue===e.selectedMaxValue&&this.selectedMinValue===e.selectedMinValue||(this.absoluteMaxValue=e.absoluteMaxValue,this.absoluteMinValue=e.absoluteMinValue,this.selectedMaxValue=e.selectedMaxValue,this.selectedMinValue=e.selectedMinValue),function(e){e._initialized||(Promise.resolve().then((function(){var t=m.a.common.getParentElementByName(e,"FF-Slider-CONTROL");t&&(t.unit=e.unit,t.init())})),e._initialized=!0)}(this)}},{key:"submit",value:function(){var e=m.a.communication.EventAggregator.currentSearchResult;if(e){var t=m.a.common.getParentElementByName(this,g.a.is);if(t){var n,r=t.group.elements[0].associatedFieldName,i=e.searchParams.split("?")[1],o=m.a.
2common.parameterStringToDict(i);if(this.selectedMinValue<=this.absoluteMinValue&&this.selectedMaxValue>=this.absoluteMaxValue)m.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,removeAll:!0});else{if((n=this).selectedMinValue=Math.round(n.selectedMinValue/n.stepSize)*n.stepSize,n.selectedMaxValue=Math.round(n.selectedMaxValue/n.stepSize)*n.stepSize,Object(y.a)())o.filter=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?arguments[1]:void 0;return e.filter((function(e){return m.b.Encoding.fixedDecodeURIComponent(e).split(":")[0]!==t}))}(o.filter,r).concat(["".concat(r,":[").concat(this.selectedMinValue,",").concat(this.selectedMaxValue,"]")]);else{var a=m.b.Encoding.encodeAssociatedFieldName(r);o["filter".concat(a)]="".concat(this.selectedMinValue,"-").concat(this.selectedMaxValue)}o.type="filter",o.groupName=t.group.name,m.a.communication.EventAggregator.addFFEvent(m.a.common.decodeDict(o))}}else console.warn("No asn-group available, search is not executed.")}else console.warn("No search result available, cannot submit slider filter data.")}}],[{key:"properties",get:function(){return{selectedMinValue:{type:Number,attribute:"selected-min-value"},selectedMaxValue:{type:Number,attribute:"selected-max-value"},absoluteMaxValue:{type:Number,attribute:"absolute-max-value"},absoluteMinValue:{type:Number,attribute:"absolute-min-value"},stepSize:{type:Number,attribute:"step-size"},unit:{type:String}}}}]),n}(v.a)},function(e,t,n){"use strict";n.r(t),n.d(t,"Middleware",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(26),p=n.n(h),m=n(47);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){if(m.Communication.is!==this.parentElement.nodeName.toLowerCase())throw new Error("".concat(n.is," must be a direct child of ").concat(m.Communication.is))}}],[{key:"is",get:function(){return"ff-middleware"}}]),n}(p()(HTMLElement));window.customElements.define(v.is,v)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(26),p=n.n(h),m=n(59);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this))._onceExecuted=!1,e}return a()(n,[{key:"connectedCallback",value:function(){if(m.Middleware.is!==this.parentElement.nodeName.toLowerCase())throw new Error("".concat(this.constructor.is," must be a direct child of ").concat(m.Middleware.is));!this._onceExecuted&&this._once&&(this._once(),this._onceExecuted=!0)}}]),n}(p()(HTMLElement))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){e.exports=n(80)},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"SearchBox",(function(){return P}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(21),s=n.n(c),u=n(2),l=n.n(u),f=n(6),d=n.n(f),h=n(7),p=n.n(h),m=n(0),v=n.n(m),g=n(44),y=n(5),b=n(1),_=n(9),k=n(31),w=n(13),C=n(11),S=n(38);var P=function(e){d()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).selectedIndex=-1,e._inputValueChanged=e._inputValueChanged.bind(s()(e)),e.suggestOnfocus=!1,e.hideSuggestOnblur=!0,e.selectOnclick=!1,e.useSuggest=!0,e.suggestDelay=0,e.showAsteriskQuery=!1,e._externalHighlightKey=void 0,e._enableTextSelection=!0,e._fireSuggestDebouncerJob=void 0,e}return a()(n,[{key:"value",get:function(){if(this.input)return this.input.value;this.error("Input element not initialized.")}
2,set:function(e){this.input?(this.input.value=e,this.input.dispatchEvent(new Event("input",{bubbles:!0}))):this.error("Input element not initialized.")}},{key:"firstUpdated",value:function(e){var t=this;l()(v()(n.prototype),"firstUpdated",this).call(this,e),this.input||(this.appendChild(document.createElement("input")),this.resetInput()),this.input.addEventListener("input",this._inputValueChanged),this.input.addEventListener("blur",this._inputValueChanged),this.input.addEventListener("focus",this._inputValueChanged),!0===this.selectOnclick?this.addEventListener("click",(function(){t._enableTextSelection&&(t.input.select(),t._enableTextSelection=!1)})):!1!==this.selectOnclick&&this.warn("select-onclick has to be either 'true' or 'false'"),this.input.onkeyup=function(e){13===e.keyCode&&t._onEnter(),27===e.keyCode&&t._hideSuggest(),40===e.keyCode&&t._onArrowDown(e),38===e.keyCode&&t._onArrowUp(e),37===e.keyCode&&t.move("left"),39===e.keyCode&&t.move("right")};try{if(this.input.value)b.a.communication.globalElementValues.currentFFSearchBoxValue=this.input.value;else{var r=b.a.common.parameterStringToDict(b.a.common.getParameterString()).query,i=b.b.Encoding.fixedDecodeURIComponent(r?r[0]:b.a.communication.globalSearchParameter.query);this.input.value=i&&("*"!==i||this.showAsteriskQuery)?i:"",b.a.communication.globalElementValues.currentFFSearchBoxValue||(b.a.communication.globalElementValues.currentFFSearchBoxValue=i)}}catch(e){this.error(e)}}},{key:"updated",value:function(e){var t=this;l()(v()(n.prototype),"updated",this).call(this),e.has("suggestDelay")&&(null===this.suggestDelay||isNaN(this.suggestDelay)||(this._fireSuggestDebouncerJob=Object(g.a)(this._fireSuggestDebouncerJob,(function(){return t._fireSuggest()}),this.suggestDelay)))}},{key:"connectedCallback",value:function(){l()(v()(n.prototype),"connectedCallback",this).call(this),this.resetInput(),this._externalHighlightKey||(this._externalHighlightKey=b.a.communication.ResultDispatcher.subscribe("ff_suggestHighlight",this._handleExternalHighlight,this))}},{key:"disconnectedCallback",value:function(){this._externalHighlightKey&&(b.a.communication.ResultDispatcher.unsubscribe("ff_suggestHighlight",this._externalHighlightKey),this._externalHighlightKey=void 0),this._fireSuggestDebouncerJob&&this._fireSuggestDebouncerJob.cancel(),l()(v()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"_subscriptionCallback",value:function(e,t){if((!t||!t.searchImmediate)&&e&&e[0]){var n=e[0].text;this.input.value="*"!==n||this.showAsteriskQuery?n:"",b.a.communication.globalElementValues.currentFFSearchBoxValue=n}}},{key:"_inputValueChanged",value:function(e){var t=this;e&&("focus"===e.type&&!0===this.suggestOnfocus?this._triggerSuggest():"input"===e.type?(b.a.communication.globalElementValues.currentFFSearchBoxValue=e.currentTarget.value,this._triggerSuggest()):"blur"===e.type?(this._enableTextSelection=!0,this.hideSuggestOnblur&&setTimeout((function(){return t._hideSuggest()}),150)):e.detail&&void 0!==e.detail.value&&b.a.communication.EventAggregator.addFFEvent({type:"suggest",query:e.detail.value}))}},{key:"_triggerSuggest",value:function(){!1!==this.useSuggest&&(this.resetHighlight(),this._fireSuggestDebouncerJob.run())}},{key:"_fireSuggest",value:function(){this.value&&2<=this.value.length?Object(S.a)({type:"suggest",query:this.value},this):this._hideSuggest()}},{key:"_hideSuggest",value:function(){this.resetHighlight(),this.selectedIndex=-1,b.a.communication.ResultDispatcher.dispatch({},void 0,["suggest:hide"])}},{key:"search",value:function(){Object(S.a)({type:"search",query:this.value},this)}},{key:"_onEnter",value:function(){-1!==this.selectedIndex?this.searchSelected():this.search(),this._hideSuggest()}},{key:"_onArrowUp",value:function(e){if(!(this.selectedIndex<=0)){this.input.setSelectionRange(0,this.value.length);var t=this.getSuggestItems();return 0<t.length&&(this.removeHighlight(t[this.selectedIndex]),this.selectedIndex--,0<=this.selectedIndex&&this.setHighlight(t[this.selectedIndex])),e.stopPropagation(),e.preventDefault(),e.returnValue=!1,!(e.cancelBubble=!0)}}},{key:"_onArrowDown",value:function(e){var t=this.getSuggestItems();this.selectedIndex!==t.length-1&&0<t.length&&(-1!==this.selectedIndex&&this.removeHighlight(t[this.selectedIndex]),this.selectedIndex++,this.selectedIndex<t.length&&this.setHighlight(t[this.selectedIndex]))}},{key:"move",value:function(e){var t=this.getSuggestItems(),n=t[this.selectedIndex];if(n){var r=n.getBoundingClientRect(),i=[];t.forEach((function(t){var n=t.getBoundingClientRect();
2("left"===e&&n.left<r.left||"right"===e&&n.left>r.left)&&i.push(t)}));var o=null,a=1/0,c=1/0;i.forEach((function(e){var t=e.getBoundingClientRect(),n=Math.abs(t.left-r.left),i=Math.abs(t.top-r.top);o?i<c?(o=e,c=i):i===c&&n<a&&(o=e,a=n):(o=e,a=n,c=i)})),o&&(this.removeHighlight(n),this.setHighlight(o),this.selectedIndex=t.indexOf(o))}}},{key:"searchSelected",value:function(){var e=this.getSuggestItems()[this.selectedIndex];b.a.common.fireCustomEvent("click",!0,!0,e)}},{key:"getSuggestItems",value:function(){var e=document.querySelectorAll(k.a.is);return Array.from(e).filter((function(e){return 0!==e.offsetHeight}))}},{key:"resetInput",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"input";this.input=this.querySelector(e)}},{key:"_handleExternalHighlight",value:function(e){this.resetHighlight(),this.setHighlight(e.element),this.selectedIndex=e.selectedIndex}},{key:"setHighlight",value:function(e){if(e.classList.add("ffw-highlight-suggest-item"),e._onfocus)try{e._onfocus()}catch(e){this.error(e)}}},{key:"removeHighlight",value:function(e){e.classList.remove("ffw-highlight-suggest-item")}},{key:"resetHighlight",value:function(){this.selectedIndex=-1,this.getSuggestItems().forEac
2h((function(e){e.classList.remove("ffw-highlight-suggest-item")}))}}],[{key:"is",get:function(){return"ff-searchbox"}},{key:"properties",get:function(){return{suggestOnfocus:{type:y.c,attribute:"suggest-onfocus"},hideSuggestOnblur:{type:y.c,attribute:"hide-suggest-onblur"},selectOnclick:{type:y.c,attribute:"select-onclick"},useSuggest:{type:y.c,attribute:"use-suggest"},suggestDelay:{type:Number,attribute:"suggest-delay"},showAsteriskQuery:{type:y.c,attribute:"show-asterisk-query"}}}}]),n}(Object(_.a)([Object(w.ElementLog)(),Object(C.a)(C.b.bct)],y.a));window.customElements.define(P.is,P)},function(e,t,n){var r=n(63),i=n(65),o=n(64);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t){function n(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,s,"next",e)}function s(e){n(a,i,o,c,s,"throw",e)}c(void 0)}))}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return PagingSet}));var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9),utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(5),_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(13);function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(e);if(t){var i=_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,n)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var PagingSet=function(_BehaviorDecorator){_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PagingSet,_BehaviorDecorator);var _super=_createSuper(PagingSet);function PagingSet(){var e;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,PagingSet),(e=_super.call(this)).state="all",e._isActive=!1,e}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PagingSet,[{key:"connectedCallback",value:function(){_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(PagingSet.prototype),"connectedCallback",this).call(this),this.hideSelf()}},{key:"update",value:function(e){e.has("paging")&&this._pagingChanged(),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(PagingSet.prototype),"update",this).call(this,e)}},{key:"isActive",get:function(){return this._isActive}},{key:"_pagingChanged",value:function _pagingChanged(){if("all"!==this.state){var state=this.state.replace(/currentPage/g,this.paging.currentPage).replace(/pageCount/g,this.paging.pageCount);
2if(/[a-z]/i.test(state))return this._isActive=!1,this.hideSelf(),void this.error("Alphabetical values are not allowed. Could not resolve [".concat(/[a-z].*/i.exec(state),"] in state [").concat(state,"]"));try{this._isActive=eval(state),this.isActive?this.showSelf():this.hideSelf()}catch(e){this._isActive=!1,this.hideSelf()}}else this._isActive=!0}}],[{key:"is",get:function(){return"ff-paging-set"}},{key:"properties",get:function(){return{state:{type:String,reflect:!0},paging:{type:Object,attribute:!1}}}}]),PagingSet}(Object(_behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_6__.a)([Object(_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_8__.ElementLog)()],utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_7__.a));window.customElements.define(PagingSet.is,PagingSet)},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(61);function i(t,n,o){return function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},i.apply(null,arguments)}e.exports=i},function(e,t,n){var r=n(73);"string"==typeof r&&(r=[[e.i,r,""]]);n(74)(r,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t){e.exports="ff-campaign-advisor,ff-campaign-advisor-answer,ff-campaign-advisor-question,ff-campaign-feedbacktext,ff-campaign-pushed-products,ff-single-word-search,ff-single-word-search-record{display:block}ff-products-per-page-dropdown{display:inline-block;outline:none}ff-products-per-page-dropdown .ffw-ppp-dropdown-closed{display:none}ff-products-per-page-dropdown .ffw-ppp-dropdown-container{position:absolute;background-color:#fff;outline:none;z-index:1001;-webkit-transition:height .4s;-moz-transition:height .4s;-ms-transition:height .4s;-o-transition:height .4s;transition:height .4s;box-sizing:border-box}ff-products-per-page-item{display:block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-products-per-page-list{display:inline-block;outline:none}ff-products-per-page-list ff-products-per-page-item,ff-products-per-page-select{display:inline-block}ff-header-navigation .ffw-header-nav{position:relative}ff-header-navigation .ffw-header{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}ff-header-navigation .ffw-body{display:-webkit-box;display:-ms-flexbox;display:flex;flex-direction:column;position:absolute;z-index:1;width:inherit;left:0;right:0;background-color:#fff}ff-header-navigation .ffw-body-middle{display:flex;flex-direction:row}ff-header-navigation .ffw-body-center{display:-webkit-box;display:-ms-flexbox;display:flex;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap}ff-header-navigation .ffw-nav-group{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:300px;flex-basis:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-nav-element.ffw-nav-item{-webkit-box-flex:1;-ms-flex:1;flex:1}ff-nav-element a{color:inherit;cursor:inherit;text-decoration:inherit}ff-record-list{display:block}ff-record{display:inline-block;vertical-align:top}ff-sortbox{display:inline-block;outline:none}ff-sortbox .ffw-closed{display:none}ff-sortbox .ffw-dropdown-container{position:absolute;background-color:#fff;z-index:1001;-webkit-transition:height .4s;-moz-transition:height .4s;-ms-transition:height .4s;-o-transition:height .4s;transition:height .4s;box-sizing:border-box}ff-sortbox-item{display:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-paging,ff-paging-dropdown,ff-paging-item,ff-paging-set,ff-sortbox-select{display:inline-block}ff-paging-item .ffw-cursor{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-paging-dropdown{outline:none}ff-paging-dropdown .ffw-paging-dropdown-container{position:absolute;display:flex;flex-direction:column;background-color:#fff;outline:none;z-index:1001;-webkit-transition:height .4s;-moz-transition:height .4s;-ms-transition:height .4s;-o-transition:height .4s;transition:height .4s;box-sizing:border-box}ff-paging-dropdown .ffw-paging-dropdown-closed{display:none}ff-recommendation,ff-similar-products{display:block}ff-onfocus-suggest{display:block;z-index:9999}ff-onfocus-suggest .ffw-blockLayout{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-wrap:nowrap;-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-direction:row;-ms-flex-direction:row;-webkit-flex-direction:row}ff-onfocus-suggest .ffw-suggestContainer{position:relative;z-index:9999;background-color:#fff;top:0;left:0;right:0}ff-onfocus-suggest .ffw-suggestContainerWrapper{position:absolute}ff-onfocus-suggest .ffw-suggestContainerPositioning{position:relative;width:100%}ff-onfocus-suggest .ffw-suggestContainerWrapperHidden{display:none}ff-suggest-item{display:block;word-wrap:break-word}ff-suggest-item:hover{text-decoration:underline}ff-suggest{display:block;z-index:9999}ff-suggest .ffw-blockLayout{display:flex;flex-wrap:nowrap;-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-direction:row;-ms-flex-direction:row;-webkit-flex-direction:row}ff-suggest .ffw-listLayout{display:block}ff-suggest .ffw-suggestContainer{position:relative;z-index:9999;background-color:#fff;top:0;left:0;right:0}ff-suggest .ffw-suggestContainerWrapper{position:absolute}ff-navigation{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}ff-navigation,ff-navigation .ffw-menu-items{display:-webkit-box;display:-ms-flexbox;display:flex}ff-navigation .ffw-menu-items{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[layout=vertical]>.ffw-menu-items{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[layout=horizontal]>.ffw-menu-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}ff-navigation .ffw-navigation-label{display:none}ff-navigation #navigation-menu{display:none;border-bottom:1px solid #000;cursor:pointer;padding:5px;background-color:#b9ecff;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[mobile=true]>
2.ffw-navigation-label{display:block}ff-navigation[mobile=true]>#navigation-menu:checked+label+.ffw-menu-items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}ff-navigation[mobile=true]>.ffw-menu-items{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[mobile=true]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%}ff-navigation-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}ff-navigation-item .ffw-item-caption{width:100%}ff-navigation-item .ffw-container-hidden{display:none!important}ff-navigation-item .ffw-item-container{display:none;-webkit-transition:all .1s linear;transition:all .1s linear;-webkit-transition-delay:.3s;transition-delay:.3s;position:absolute;z-index:1;background-color:#fff}ff-navigation-item[direction=down][flyout=true]>.ffw-item-container{top:100%}ff-navigation-item[direction=down]>.ffw-item-container{top:100%;left:0}ff-navigation-item[flyout=false][selected]>.ffw-item-container{top:0;z-index:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false]>.ffw-item-container{display:none}ff-navigation-item[flyout=false][direction=down][selected]>.ffw-item-container{top:0}ff-navigation-item[flyout=false]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false][selected] .ffw-navigation-link{display:none!important;top:0}ff-navigation-item[flyout=false] .ffw-navigation-link{display:none!important}ff-navigation-item[flyout=true][direction=right]>.ffw-item-container{top:0;left:100%}ff-navigation-item[flyout=true][direction=left]>.ffw-item-container{top:0;right:100%}ff-navigation-item[flyout=true]:hover>.ffw-item-container:not(:empty){display:inline-block}ff-asn{outline:none;transition:opacity .6s;display:block}ff-asn[align=horizontal]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}ff-asn-group{opacity:0;transition:opacity .4s;outline:none;display:block;min-width:180px;max-width:220px}ff-asn-group[align=horizontal] #wrapper{position:absolute;width:100%}ff-asn-group .ffw-asn-group-container{position:relative}ff-asn-group .ffw-wrapper{position:relative;transition-duration:.35s}ff-asn-group-element,ff-asn-group-slider{display:block;outline:none}ff-asn-group-slider{opacity:0;transition:opacity .4s;min-width:180px;max-width:220px}ff-asn[align=horizontal] ff-asn-group-slider .ffw-wrapper{position:absolute;width:100%}ff-asn-group-slider .ffw-container{position:relative}ff-asn-group-slider .ffw-wrapper{position:relative;transition-duration:.4s}ff-slider-control{display:block;opacity:0;transition:opacity .8s;padding:10px 0}ff-slider-control .ffw-sliderSection{margin-top:10px}ff-slider{height:5px;background-color:#336;margin:5px auto;display:block;opacity:0;transition:opacity .8s}ff-slider .ffw-sliderWrapper{min-width:1px}ff-slider [slot^=slider]{height:10px;width:10px;border:1px solid #000;cursor:pointer}ff-compare{display:block}ff-asn-remove-all-filter{display:inline-block}ff-breadcrumb-trail{display:inline}ff-breadcrumb-trail-item{transition:opacity .8s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-search-feedback{position:absolute;top:20px}ff-search-feedback[align=left]{left:0}ff-search-feedback[align=right]{right:0}ff-search-feedback[align=left] .ffw-content{transform:translate(0)}ff-search-feedback[align=left] .ffw-caption{transform:translate(100%)}ff-search-feedback .ffw-noTransition{transition:0s!important}ff-search-feedback .ffw-caption{position:absolute;right:0;transition:transform .3s;cursor:pointer}ff-search-feedback .ffw-content{position:absolute;transition:transform .3s;transform:translate(100%);right:0;text-align:left}ff-search-feedback .ffw-transformZero{transform:translate(0)!important}ff-search-feedback .ffw-transformX{transform:translate(100%)!important}ff-tag-cloud{display:block;max-width:600px}ff-tag-cloud .ffw-tagCloudContainer{display:flex;justify-content:space-around;flex-wrap:wrap}ff-tag-cloud .ffw-tagCloudLink{padding:2px}ff-loading-spinner{display:block}ff-loading-spinner .ffw-path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:ffw-spinner-dash 1.3s linear infinite}ff-loading-spinner .ffw-spinner{animation:ffw-spinner-rotation 1.3s linear infinite}@keyframes ffw-spinner-rotation{0%{transform:rotate(0deg)}to{transform:rotate(270deg)}}@keyframes ffw-spinner-dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:44.5;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}ff-slider-one-touch{display:block;z-index:-1001;pointer-events:none}ff-slider-one-touch .ffw-slider-container{top:0;position:relative;pointer-events:none}ff-slider-one-touch .ffw-triangle{pointer-events:auto;user-select:none;position:absolute;z-index:1000;opacity:.5;cursor:pointer;touch-action:none;border-style:solid;border-color:transparent transparent #89bdff;top:50%;transition:top .2s ease-out,left .2s ease-out,transform .2s ease-out;transform:translate(-50%,-50%) scale(.25)}ff-slider-one-touch .ffw-triangle.ffw-active{transition:top .2s ease-in,left .2s ease-in,transform .2s ease-in;transform:translateX(-100%) scale(1)}ff-slider-one-touch .ffw-triangle.ffw-no-transition{transition:none}ff-slider-one-touch .ffw-line{pointer-events:auto;z-index:999;top:50%;position:absolute;height:1px;transform:translateY(-50%);background-color:#000;background-clip:padding-box;border-top:25px solid transparent;border-bottom:25px solid transparent}ff-slider-one-touch .ffw-selected-range{z-index:1000;top:50%;position:absolute;height:2px;transform:translateY(-50%);background-color:#003ccb}ff-slider-one-touch .ffw-slider-button{width:5px;height:5px;border:1px solid #000;position:absolute;top:50%;z-index:1003;pointer-events:auto;cursor:pointer;touch-action:none}ff-slider-one-touch .ffw-slider-button-left,ff-slider-one-touch .ffw-slider-button-right{transform:translateY(-50%)}.ffw-hidden{display:none!important}"},function(e,t,n){var r,i,o,a={},c=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=(o={},function(e,t){if("function"==typeof e)return e();if(void 0===o[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}o[e]=n}return o[e]}),u=null,l=0,f=[],d=n(75);function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=a[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(b(r.parts[o],t))}else{var c=[];for(o=0;o<r.parts.length;o++)c.push(b(r.parts[o],t));a[r.id]={id:r.id,refs:1,parts:c}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;
2i++){var o=e[i],a=t.base?o[0]+t.base:o[0],c={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}function m(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(e.insertAt.before,n);n.insertBefore(t,i)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);0<=t&&f.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,i,o,a,c;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var s=l++;n=u||(u=g(t)),r=w.bind(null,n,s,!1),i=w.bind(null,n,s,!0)}else i=e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=t,c=document.createElement("link"),void 0===a.attrs.type&&(a.attrs.type="text/css"),a.attrs.rel="stylesheet",y(c,a.attrs),m(a,c),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=d(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),c=e.href;e.href=URL.createObjectURL(a),c&&URL.revokeObjectURL(c)}.bind(null,n=c,t),function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=c()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var o=n[i];(c=a[o.id]).refs--,r.push(c)}for(e&&h(p(e,t),t),i=0;i<r.length;i++){var c;if(0===(c=r[i]).refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete a[c.id]}}}};var _,k=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function w(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=k(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t){e.exports=function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var r=n(0);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=function(){return this||"object"==typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&0<=Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime"),o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(81),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"==typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{(l=t.regeneratorRuntime=u?e.exports:{}).wrap=_;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={},v={};v[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==r&&i.call(y,a)&&(v=y);var b=S.prototype=w.prototype=Object.create(v);C.prototype=b.constructor=S,S.constructor=C,S[s]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},P(O.prototype),O.prototype[c]=function(){return this},l.AsyncIterator=O,l.async=function(e,t,n,r){var i=new O(_(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(b),b[s]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=L,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEac
vendor: 4,307 bytes, line 2
2h(R),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return c.type="throw",c.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var i,o,a,c,s=t&&t.prototype instanceof w?t:w,u=Object.create(s.prototype),l=new j(r||[]);return u._invoke=(i=e,o=n,a=l,c=f,function(e,t){if(c===h)throw new Error("Generator is already running");if(c===p){if("throw"===e)throw t;return I()}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){var r=x(n,a);if(r){if(r===m)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===f)throw c=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=h;var s=k(i,o,a);if("normal"===s.type){if(c=a.done?p:d,s.arg===m)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(c=p,a.method="throw",a.arg=s.arg)}}),u}function k(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function C(){}function S(){}function P(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){var t;this._invoke=function(n,r){function o(){return new Promise((function(t,o){!function t(n,r,o,a){var c=k(e[n],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return t("throw",e,o,a)}))}a(c.arg)}(n,r,t,o)}))}return t=t?t.then(o,o):o()}}function x(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,x(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=k(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(e,t,n){"use strict";n.r(t),n.d(t,"SearchButton",(function(){return _}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(5),v=n(1),g=n(9),y=n(13),b=n(38);var _=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this))._button=void 0,e}return a()(n,[{key:"firstUpdated",value:function(){var e;this.resetButton(),this.addEventListener("click",(e=this,function(t){e._button.contains(t.srcElement)&&Object(b.a)({type:"search",query:v.a.communication.globalElementValues.currentFFSearchBoxValue||v.a.communication.globalSearchParameter.query},e)})),s()(p()(n.prototype),"firstUpdated",this).call(this)}},{key:"resetButton",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"button";this._button=this.querySelector(e)}}],[{key:"is",get:function(){return"ff-searchbutton"}}]),n}(Object(g.a)([Object(y.ElementLog)()],m.a));window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignFeedbackText",(function(){return y}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(55);var y=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).label="",e.isProductCampaign=!1,e.isShoppingCartCampaign=!1,e.campaignData=void 0,e}return a()(n,[{key:"render",value:function(){return Object(v.e)(this._template,this.campaignData)}},{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this._template=Object(v.d)(this)?"{{text}}":this.innerHTML,this.hideSelf()}},{key:"update",value:function(e){var t=this;(e.has("label")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&function(e){e._topic&&e.subscriptionKey&&m.a.communication.ResultDispatcher.unsubscribe(e._topic,e.subscriptionKey),e._topic=Object(g.a)(["feedbacktext",e.label],e.isProductCampaign,e.isShoppingCartCampaign,e.isLandingPageCampaign),e.subscriptionKey=m.a.communication.ResultDispatcher.subscribe(e._topic,(function(t){e.campaignData=t}))}(this),e.has("campaignData")&&(this.campaignData?this.showSelf():this.hideSelf(),this.updateComplete.then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey)}}],[{key:"is",get:function(){return"ff-campaign-feedbacktext"}},{key:"properties",get:function(){return{label:{type:String},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},campaignData:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(y.is,y)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignLandingPage",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(9),m=n(13);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"pageId",get:function(){return this._pageId},set:function(e){var t=this;(this._pageId=e)?h.a.communication.EventAggregator.addFFEvent({type:"pageCampaigns",pageId:e,success:function(e){if(e.length){var n=e[0].id;e[0].pushedProductsRecords.forEach((function(e){e.__pageId=t.pageId,e.__campaignId=n}))}}}):this.debug("No page id for page campaign specified.")}},{key:"attributeChangedCallback",value:function(e,t,n){"page-id"===e&&(this.pageId=n)}}],[{key:"is",get:function(){return"ff-campaign-landing-page"}},{key:"observedAttributes",get:function(){return["page-id"]}}]),n}(Object(p.a)([Object(m.ElementLog)()],HTMLElement));window.customElements.define(v.is,v)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignPushedProducts",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(9),y=n(17),b=n(55),_=n(13);var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).name="",e.isProductCampaign=!1,e.isShoppingCartCampaign=!1,e.isLandingPageCampaign=!1,e}return a()(n,[{key:"update",value:function(e){(e.has("name")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&w(this),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),w(this);var e=this.querySelector(y.RecordList.is);e&&("true"===e.subscribe&&(this.warn("Automatic subscription of ".concat(y.RecordList.is," child component is turned on and will be turned off. Please, set ").concat(y.RecordList.is," 'subscribe' property to 'false' in your HTML code.")),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("".concat(y.RecordList.is," child component is subscribed to search result and will be unsubscribed.")),e.unsubscribe()),this.isLandingPageCampaign&&(e.__isLandingPage=!0))}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey),this._subscriptionKey=void 0)}}],[{key:"is",get:function(){return"ff-campaign-pushed-products"}},{key:"properties",get:function(){return{name:{type:String},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"}}}}]),n}(Object(g.a)([Object(_.ElementLog)()],v.a));function w(e){var t;e._topic&&e._subscriptionKey&&m.a.communication.ResultDispatcher.unsubscribe(e._topic,e._subscriptionKey),e._topic=Object(b.a)(["pushedProducts",e.name],e.isProductCampaign,e.isShoppingCartCampaign,e.isLandingPageCampaign),e._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(e._topic,(t=e,function(e){if(e){t.showSelf();var n=t.querySelector(y.RecordList.is);n?n.records=e:t.warn("No ".concat(y.RecordList.is," element found for pushed products."))}else t.hideSelf()}))}window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignProduct",(function(){return w}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(
25),m=n(9),v=n(13),g=n(15);var y=Object.freeze({ProductNumber:"productNumber",Id:"id"}),b=h.b.esPolyfills,_=b.includes,k=b.values,w=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).recordId=void 0,e.idType=y.ProductNumber,e}return a()(n,[{key:"update",value:function(e){if(e.has("idType")&&Object(g.b)()){var t=k(y);if(!_(t,this.idType))return void this.warn("idType must be one of [".concat(t.join(", "),"]. Was: ").concat(this.idType,"."))}if(e.has("recordId")&&this.recordId){var n={type:"productCampaign"};if(Object(g.b)()){if(!_(k(y),this.idType))return void this.warn("idType invalid. Not sending request.");n.id=this.recordId,n.idType=this.idType}else n.productNumber=this.recordId;h.a.communication.EventAggregator.addFFEvent(n)}}}],[{key:"is",get:function(){return"ff-campaign-product"}},{key:"properties",get:function(){return{recordId:{type:String,attribute:"record-id"}
2,idType:{type:String,attribute:"id-type"}}}}]),n}(Object(m.a)([Object(v.ElementLog)()],p.a));window.customElements.define(w.is,w)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignRedirect",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(26),p=n.n(h),m=n(1);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){var e;this.subscriptionKey=m.a.communication.ResultDispatcher.subscribe(["campaign:redirect"],(e=this,function(t){if(!t||!e.hasAttribute("relative-to-origin"))return t;var n=t.target.destination.replace(/^\/+/,"");return t.target.destination="".concat(location.protocol,"//").concat(location.host,"/").concat(n),t}))}},{key:"disconnectedCallback",value:function(){m.a.communication.ResultDispatcher.unsubscribe(["campaign:redirect"],this.subscriptionKey),this.subscriptionKey=void 0}}],[{key:"is",get:function(){return"ff-campaign-redirect"}}]),n}(p()(HTMLElement));window.customElements.define(v.is,v)},function(e,t,n){"use strict";n.r(t),n.d(t,"CampaignShoppingCart",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(26),p=n.n(h),m=n(1);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"recordId",get:function(){return this._recordId},set:function(e){(this._recordId=e)&&m.a.communication.EventAggregator.addFFEvent({type:"shoppingCartCampaign",productNumber:e.split(",")})}},{key:"attributeChangedCallback",value:function(e,t,n){"record-id"===e&&(this.recordId=n)}}],[{key:"is",get:function(){return"ff-campaign-shopping-cart"}},{key:"observedAttributes",get:function(){return["record-id"]}}]),n}(p()(HTMLElement));window.customElements.define(v.is,v)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageDropdown",(function(){return E}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(42),_=n(56),k=n(23),w=n(1),C=n(9),S=n(5),P=n(43),O=n(29),x=n(11);var E=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).opened=!1,e.showSelected="false",e.collapseOnblur="false",e.items=[],e.haveItemsBeenInitialised=!1,e.ffPPPTemplate=void 0,e.dropdownContainer=void 0,e.subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this,t=w.b.esPolyfills.find((function(e){return e.selected}))(this.items);return Object(y.b)(r||(r=o()(["",'<div class="ffw-ppp-dropdown-container ','">',"</div>"])),t?Object(P.renderPPPItem)(this.ffPPPTemplate,t):"",Object(b.a)({"ffw-ppp-dropdown-closed":!this.opened}),Object(_.a)([this.items,this.showSelected],(function(){return Object(k.a)(e.items,(function(e){return e.value}),(function(t){return"false"===e.showSelected&&t.selected?"":Object(P.renderPPPItem)(e.ffPPPTemplate,t)}))})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this.ffPPPTemplate=Object(P.getTemplate)(this),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(e=this,function(){"true"===e.collapseOnblur&&setTimeout((function(){return e.hide()}),16)}))}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("items")&&function(e){if(0===e.items.length)return e.hideSelf();e.haveItemsBeenInitialised?e.hide():e.haveItemsBeenInitialised=!0,e.showSelf()}(this)}},{key:"firstUpdated",value:function(){this.dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}},{key:"updated",value:function(e){e.has("items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}},{key:"show",value:function(){this.opened||this.dropdownContainer.__transitionActive__||(this.opened=!0,this._show(this.dropdownContainer,!0))}},{key:"hide",value:function(){var e=this;this.opened&&!this.dropdownContainer.__transitionActive__&&this._hide(this.dropdownContainer,!0,(function(){return e.opened=!1}))}},{key:"toggle",value:function(e){!1!==e&&this.opened?this.hide():this.show()}},{key:"_subscriptionCallback",value:function(e){this.items=e||[]}}],[{key:"is",get:function(){return"ff-products-per-page-dropdown"}},{key:"properties",get:function(){return{items:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:String,attribute:"show-selected"},collapseOnblur:{type:String,attribute:"collapse-onblur"}}}}]),n}(Object(C.a)([Object(O.CollapseElement)(),Object(x.a)(x.b.ppp)],S.a));window.customElements.define(E.is,E)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(23),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).options=[],e.select=void 0,e.o
2ptionTemplate=void 0,e.subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['<select @change="','">',"</select>"])),S,Object(b.a)(this.options,(function(e){return e.value}),(function(t){return Object(_.e)(e.optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.optionTemplate=(e=this.querySelector("[data-template]"))?(e.removeAttribute("data-template"),e.cloneNode(!0)):"<option>{{value}}</option>"}},{key:"firstUpdated",value:function(){this.select=this.querySelector("select")}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("options")&&(0===this.options.length?this.hideSelf():this.showSelf())}},{key:"updated",value:function(e){e.has("options")&&(this.select.selectedIndex=function(e){for(var t=0;t<e.length;t++)if(e[t].selected)return t;return-1}(this.options),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}},{key:"_subscriptionCallback",value:function(e){this.options=e||[]}}],[{key:"is",get:function(){return"ff-products-per-page-select"}},{key:"properties",get:function(){return{options:{type:Array,attribute:!1}}}}]),n}(Object(k.a)([Object(w.a)(w.b.ppp)],_.a));function S(){var e=this.options[this.select.selectedIndex];e&&factfinder.communication.EventAggregator.addFFEvent({type:"ppp",value:e.value})}window.customElements.define(C.is,C)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageList",(function(){return S}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(23),_=n(5),k=n(43),w=n(9),C=n(11);var S=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).items=[],e.ffPPPTemplate=void 0,e.subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(["",""])),Object(b.a)(this.items,(function(e){return e.value}),(function(t){return Object(k.renderPPPItem)(e.ffPPPTemplate,t)})))}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.ffPPPTemplate=Object(k.getTemplate)(this)}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("items")&&(0===this.items.length?this.hideSelf():this.showSelf())}},{key:"updated",value:function(e){e.has("items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}},{key:"_subscriptionCallback",value:function(e){this.items=e||[]}}],[{key:"is",get:function(){return"ff-products-per-page-list"}},{key:"properties",get:function(){return{items:{type:Array,attribute:!1}}}}]),n}(Object(w.a)([Object(C.a)(C.b.ppp)],_.a));window.customElements.define(S.is,S)},function(e,t,n){"use strict";n.r(t),n.d(t,"AsnRemoveAllFilter",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(5),y=n(11),b=n(15),_=n(47);var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).showAlways=!1,e.removeParams=!1,e.keepCategoryPath=!1,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.addEventListener("click",this._removeFilter)}},{key:"update",value:function(e){e.has("keepCategoryPath")&&this.keepCategoryPath&&m.a.common.Logger.emitDeprecationWarning("".concat(n.is,"/keepCategoryPath"),"".concat(_.Communication.is,"/categoryPath"))}},{key:"_subscriptionCallback",value:function(e){var t=this;if(!1===this.showAlways){var n=m.a.common.urlStringToDict(e.searchParams),r=m.a.communication.Util.extractCategoryPathFieldName();if(Object(b.a)()){var i=r.match(/(.*)ROOT$/)[1],o=m.b.getFixedFilters();return void((n.filter||[]).some((function(e){return!(0===e.indexOf(i)&&t.keepCategoryPath||m.b.esPolyfills.includes(o,"filter=".concat(e)))}))?this.showSelf():this.hideSelf())}for(var a in n){var c=this.keepCategoryPath&&0===a.indexOf(r);if(0===a.indexOf("filter")&&!c)return void this.showSelf()}this.hideSelf()}else this.showSelf()}},{key:"_removeFilter",value:function(){m.a.communication.EventAggregator.addFFEvent({type:"clearFilter",removeParam
2s:this.removeParams,keepCategoryPath:this.keepCategoryPath})}}],[{key:"is",get:function(){return"ff-asn-remove-all-filter"}},{key:"properties",get:function(){return{showAlways:{type:Boolean,attribute:"show-always"},removeParams:{type:Boolean,attribute:"remove-params"},keepCategoryPath:{type:Boolean,attribute:"keep-category-path"}}}}]),n}(Object(v.a)([Object(y.a)(y.b.result)],g.a));window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"FilterCloud",(function(){return B}));var r,i,o,a=n(19),c=n.n(a),s=n(18),u=n.n(s),l=n(8),f=n.n(l),d=n(4),h=n.n(d),p=n(3),m=n.n(p),v=n(2),g=n.n(v),y=n(6),b=n.n(y),_=n(7),k=n.n(_),w=n(0),C=n.n(w),S=n(10),P=n(1),O=n(28),x=n(14),E=n(9),R=n(13),j=n(11),L=n(5),I=n(30),A=n(57);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=Object.freeze({factfinder:"fact-finder",alphabetical:"alphabetical",userSelection:"user-selection"}),D="[data-template=filter]",B=function(e){b()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C()(e);if(t){var i=C()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return k()(this,n)}}(n);function n(){var e;return h()(this,n),(e=t.call(this)).order=N.factfinder,e.blacklist=void 0,e.whitelist=void 0,e._selectedFilters=[],e._blacklist=[],e._whitelist=[],e._userSelectionOrder=[],e._factFinderOrder=[],e}return m()(n,[{key:"render",value:function(){if(!this._template)return Object(S.b)(r||(r=f()([""])));var e=document.createElement("div");e.innerHTML=this._template;var t=e.querySelector(D),n=t.outerHTML;return this._selectedFilters.map(H(n)).forEach((function(e){t.parentNode.insertBefore(e,t)})),t.parentNode.removeChild(t),Object(S.b)(i||(i=f()(["",""])),Array.from(e.childNodes).map((function(e){return Object(S.b)(o||(o=f()(["",""])),e)})))}},{key:"connectedCallback",value:function(){g()(C()(n.prototype),"connectedCallback",this).call(this),this._template||(Object(L.d)(this)?this._template='<span data-template="filter">{{element.name}}</span>':this.querySelector(D)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(D,".")),this.hideSelf())),this.addEventListener("click",F)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",F),g()(C()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"update",value:function(e){var t=this;this._selectedFilters&&0!==this._selectedFilters.length?this.showSelf():this.hideSelf(),e.has("blacklist")&&(this._blacklist=this.blacklist?this.blackl
2ist.split(","):[]),e.has("whitelist")&&(this._whitelist=this.whitelist?this.whitelist.split(","):[]),e.has("order")&&!1===Object.keys(N).some((function(e){return N[e]===t.order}))&&(this.hideSelf(),this.error("Invalid 'order' value: '".concat(this.order,"'."))),this.blacklist&&this.whitelist&&(this.hideSelf(),this.error("'blacklist' and 'whitelist' are mutually exclusive, but both properties are set.")),(e.has("order")||e.has("blacklist")||e.has("whitelist"))&&(this._selectedFilters=U(this.order,this)),g()(C()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;g()(C()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"_subscriptionCallback",value:function(e){this._selectedFilters=V(this,this.order,this._userSelectionOrder,e)}}],[{key:"is",get:function(){return"ff-filter-cloud"}},{key:"properties",get:function(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}}]),n}(Object(E.a)([Object(R.ElementLog)(),Object(j.a)(j.b.asn)],L.a));function F(e){var t=e.item;t&&P.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,filterName:t.element.name,clusterLevel:t.element.clusterLevel})}window.customElements.define(B.is,B);var V=function(e,t,n,r){var i=q(z(r)),o=n.filter((function(e){return W(i,e)})),a=i.filter((function(e){return!W(o,e)}));return e._factFinderOrder=i,e._userSelectionOrder=o.concat(a),U(t,e)},U=function(e,t){switch(e){case N.userSelection:return K(t._userSelectionOrder,t._blacklist,t._whitelist);case N.alphabetical:return K(t._factFinderOrder,t._blacklist,t._whitelist).sort((function(e,t){return e.element.name.localeCompare(t.element.name)}));default:return K(t._factFinderOrder,t._blacklist,t._whitelist)}},q=function(e){return e.reduce((function(e,t){return 0!==e.filter((function(e){return e.element.name===t.element.name&&e.group.name===t.group.name})).length?e:[].concat(u()(e),[t])}),[])},z=function(e){return e.reduce((function(e,t){return e.concat([].concat(u()(t.selectedElements),u()(t.elements.filter((function(e){return e.selected})))).map((function(e){return{group:t,element:e}})))}),[])},W=function(e,t){var n=t.element;return e.some((function(e){return e.element.name===n.name}))},H=function(e){return function(t){var n=Object(x.a)(e);return n.item=t,n.innerHTML=Object(O.a)(n.innerHTML,M(M({},t),{},{element:Object(I.a)(t.element,"name")})),n.addEventListener("click",(function(e){e.item=t})),n}},K=function(e,t,n){var r=P.b.getFixedFilters();return e.filter((function(e){var i=t.indexOf(e.group.name)<0,o=0===n.length||0<=n.indexOf(e.group.name),a=!e.element.implicitSelection,c=Object(A.a)(r)(e.element);return i&&o&&a&&c}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Recommendation",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(5),y=n(17),b=n(13),_=n(35);var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).maxResults=4,e.subscribe=!0,e.usePerso=!1,e._topic="".concat(_.a.recommendation,":").concat(m.a.common.randomString(10)),e._subscriptionKey=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.subscribe&&!this._subscriptionKey&&(this._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(this._topic,this._handleRecommendations,this));var e=this.querySelector(y.RecordList.is);e&&(e.setAttribute("subscribe","false"),e.__isRecommendation=!0)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"update",value:function(e){e.has("recordId")&&this.getRecommendations(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"getRecommendations",value:function(){if(this.recordId){var e={type:this._topic,id:this.recordId.split(","),maxResults:this.maxResults};this.usePerso&&(e.usePerso="true"),m.a.communication.EventAggregator.addFFEvent(e)}else this.debug("No record id for recommendations specified."),this.hideSelf()}},{key:"_handleRecommendations",value:function(e){var t=this;if(e&&0<e.length){var n=this.querySelector(y.RecordList.is);n&&(n.records=e.slice(0,this.maxResults)),this.showSelf(),Promise.resolve().then((function(){return t.dispatchEvent(new CustomEvent("gotRecommendations",{bubbles:!0,composed:!0}))}
2))}else this.hideSelf()}}],[{key:"is",get:function(){return"ff-recommendation"}},{key:"properties",get:function(){return{recordId:{type:g.b,attribute:"record-id"},maxResults:{type:Number,attribute:"max-results"},subscribe:{type:g.c},usePerso:{type:g.c,attribute:"use-perso"}}}}]),n}(Object(v.a)([Object(b.ElementLog)()],g.a));window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarProducts",(function(){return O}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(17),y=n(5),b=n(13),_=n(11),k=n(15);var w=m.b.esPolyfills,C=w.includes,S=w.values,P=Object.freeze({ProductNumber:"productNumber",Id:"id"}),O=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;i()(this,n),(e=t.call(this)).topic="".concat(_.b.similarProducts,":").concat(m.a.common.randomString(10)),e.maxResults=4,e.idType=void 0;var r=e.querySelector(g.RecordList.is);return r&&(r.subscribe=!1),e}return a()(n,[{key:"update",value:function(e){if(e.has("idType")&&Object(k.a)()){var t=S(P);if(!C(t,this.idType))return void this.warn("idType must be one of [".concat(t.join(", "),"]. Was: ").concat(this.idType,"."))}e.has("recordId")&&this.getSimilarProducts(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf()}},{key:"getSimilarProducts",value:function(){if(C(S(P),this.idType)||!Object(k.a)())if(this.recordId){var e={type:this.topic,id:this.recordId,maxResults:this.maxResults};Object(k.a)()&&(e.idType=this.idType),m.a.communication.EventAggregator.addFFEvent(e)}else this.debug("No record id for similarProducts specified.");else this.warn("idType invalid. Not sending request.")}},{key:"_subscriptionCallback",value:function(e){var t=e.records;if(t&&0<t.length){var n=this.querySelector(g.RecordList.is);n&&(n.records=t.slice(0,this.maxResults)),this.showSelf()}else this.hideSelf()}}],[{key:"is",get:function(){return"ff-similar-products"}},{key:"properties",get:function(){return{recordId:{type:y.b,attribute:"record-id"},maxResults:{type:Number,attribute:"max-results"},idType:{type:String,attribute:"id-type"}}}}]),n}(Object(v.a)([Object(b.ElementLog)(),Object(_.a)(_.b.similarProducts)],y.a));window.customElements.define(O.is,O)},function(e,t,n){"use strict";n.r(t),n.d(t,"PredictiveBasket",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(9),y=n(13),b=n(17),_=n(11);var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;if(i()(this,n),!m.a.__experimental.predictiveBasket.enable)throw Error("To use this experimental API you have to set `factfinder.__experimental.predictiveBasket.enable = true`.");return(e=t.call(this)).userId=void 0,e.maxResults=void 0,e.blacklist=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.userId&&!this.querySelector(b.RecordList.is)&&this.warn("No ff-record-list provided. Provide one to make ".concat(n.is," work properly."))}},{key:"_subscriptionCallback",value:function(e){if(e&&0<e.length){var t=this.querySelector(b.RecordList.is);t&&(t.records=e),this.showSelf()}else this.hideSelf()}},{key:"update",value:function(e){e.has("userId")&&this.getPredictions(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"getPredictions",value:function(){if(void 0===this.userId||null===this.userId||""===this.userId)return this.error("No user id specified."),void this.hideSelf();var e={type:m.a.__experimental.predictiveBasket.eventType,userId:this.userId};void 0!==this.maxResults&&(e.maxResults=this.maxResults),"string"==typeof this.blackl
2ist&&(e.blacklist=this.blacklist.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e}))),m.a.communication.EventAggregator.addFFEvent(e)}}],[{key:"is",get:function(){return"ff-predictive-basket"}},{key:"properties",get:function(){return{userId:{attribute:"user-id",type:String,reflect:!0},maxResults:{attribute:"max-results",type:Number},blacklist:String}}}]),n}(Object(g.a)([Object(y.ElementLog)(),Object(_.a)(m.a.__experimental.predictiveBasket.topic)],v.a));window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"Suggest",(function(){return E}));var r,i,o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(12),_=n(1),k=n(9),w=n(13),C=n(31),S=n(5),P=n(35),O=n(14);var x=Object.freeze({block:"block",list:"list"}),E=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).layout=x.list,e.suggestItems=[],e._showUnknownSuggestions=!1,e._unknownSuggestionsSectionId=void 0,e._suggestSubscriptionKey=void 0,e._hideSuggestSubscriptionKey=void 0,e._template=void 0,e._itemTemplates={},e}return l()(n,[{key:"render",value:function(){var e=this,t=R(this.suggestItems),n=Object.keys(t),o=document.createElement("div");o.innerHTML=this._template;for(var c=o.querySelectorAll("[data-container]"),s=Object(O.a)('<div data-container="unknown">\n                            <p class="containerCaption">unknown</p>\n                                <ff-suggest-item>\n                                    <span>{{{name}}}</span>\n                                </ff-suggest-item>\n                         </div>'),u=c.length-1;0<=u;u--){var l=c[u],f=l.getAttribute("data-container");(!f||n.indexOf(f)<0)&&l.parentNode.removeChild(l)}n.forEach((function(n){var r=t[n],i=o.querySelector("".concat(C.a.is,'[type="').concat(n,'"]'));if(!i){if(!e._showUnknownSuggestions)return;var a=Object(O.a)(s.outerHTML.replace(/\bunknown\b/g,n)),c=o.querySelector(e._unknownSuggestionsSectionId?"#".concat(e._unknownSuggestionsSectionId):"section");if(!c)return;c.appendChild(a),i=a.querySelector("".concat(C.a.is)),e._itemTemplates[n]=i.innerHTML}r.forEach((function(t){var r=document.createElement(C.a.is);r._template=e._itemTemplates[n],r.type=n,r.suggestion=t,i.parentNode.insertBefore(r,i)})),i.parentNode.removeChild(i)}));var d=o.querySelectorAll("section");return Array.from(d).forEach((function(e){0===e.querySelectorAll(C.a.is).length&&e.setAttribute("hidden","")})),Object(b.g)(r||(r=a()(['<div style="position:relative;width:100%"><div class="ffw-suggestContainerWrapper"><div class="ffw-suggestContainer ffw-','Layout">',"</div></div></div>"])),this.layout,Array.from(o.children).map((function(e){return Object(b.g)(i||(i=a()(["",""])),e)})))}},{key:"connectedCallback",value:function(){var e=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this._initTemplates(),this._suggestSubscriptionKey=this._suggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe(P.a.suggest,(function(t,n){var r=_.a.communication.globalElementValues.currentFFSearchBoxValue;n&&j(n.query)!==r||(e.suggestItems=t||[])})),this._hideSuggestSubscriptionKey=this._hideSuggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe("suggest:hide",(function(){e.hideSelf()})),this.addEventListener("item-clicked",this._itemClicked)}},{key:"update",value:function(e){this.suggestItems&&0!==this.suggestItems.length?this.showSelf():this.hideSelf(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.a.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}
2))}))}},{key:"disconnectedCallback",value:function(){this.removeEventListener("item-clicked",this._itemClicked),this._suggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe(P.a.suggest,this._suggestSubscriptionKey),this._suggestSubscriptionKey=void 0),this._hideSuggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe("suggest:hide",this._hideSuggestSubscriptionKey),this._hideSuggestSubscriptionKey=void 0),d()(y()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"_itemClicked",value:function(e){this.dispatchEvent(new CustomEvent("suggest-item-clicked",{detail:e.detail,bubbles:!0}))}},{key:"_initTemplates",value:function(){var e=this,t=document.createElement("div");t.innerHTML=this.innerHTML;for(var n=t.childNodes.length-1;0<=n;n--){var r=t.childNodes[n];("SECTION"!==r.nodeName||!r.querySelector(C.a.is)&&r.id!==this._unknownSuggestionsSectionId)&&r.parentNode.removeChild(r)}this._template=t.innerHTML,t.querySelectorAll(C.a.is).forEach((function(t){var n=t.getAttribute("type");n&&!e._itemTemplates[n]&&(e._itemTemplates[n]=t.innerHTML)}))}}],[{key:"is",get:function(){return"ff-suggest"}},{key:"properties",get:function(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},_showUnknownSuggestions:{type:S.c,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}}]),n}(Object(k.a)([Object(w.ElementLog)()],S.a));window.customElements.define(E.is,E);var R=function(e){var t={};return e.forEach((function(e){t[e.type]=t[e.type]||[],t[e.type].push(e)})),t},j=function(e){try{return _.b.Encoding.fixedDecodeURIComponent(e)}catch(t){return e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"SortBoxSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this))._selectAttributes=[],e._itemTemplate=void 0,e.items=[],e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['<select @change="','">',"</select>"])),S,this.items.map((function(t){return Object(_.e)(e._itemTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||"<option>{{description}}</option>"}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t<e.length;t++)if(e[t].selected)return t;return 0}(this.items)),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}},{key:"_subscriptionCallback",value:function(e){this.items=e}}],[{key:"is",get:function(){return"ff-sortbox-select"}},{key:"properties",get:function(){return{items:{type:Array,attribute:!1}}}}]),n}(Object(k.a)([Object(w.a)(w.b.sort)],_.a));function S(e){b.a.communication.EventAggregator.addFFEvent({type:"sort",name:this.items[e.target.selectedIndex].name,order:this.items[e.target.selectedIndex].order})}window.customElements.define(C.is,C)},function(e,t,n){"use strict";n.r(t),n.d(t,"Template",(function(){return b}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(9),y=n(13);var b=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).data=void 0,e.scope=void 0,e._subscriptionKey=void 0,e._template=void 0,e}return a()(n,[{key:"render",value:function(){return Object(v.e)(this._template,this.data)}},{key:"connectedCallback",value:function(){var e=this;s()(p()(n.prototype),"connectedCallback",this).call(this),this._template=this.innerHTML,this.scope&&!this._subscriptionKey&&(this._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(this.scope,(function(t){e.data=t}),this))}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this.scope,this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"update",value:function(e){this.data?this.showSelf():this.hideSelf(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;s()(p()(n.prototype),"updated",this).call(this,e),e.has("data")&&this.updateComplete.then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}
2)),e.has("scope")&&(m.a.communication.ResultDispatcher.unsubscribe(e.get("scope"),this._subscriptionKey),this._subscriptionKey=this.scope?m.a.communication.ResultDispatcher.subscribe(this.scope,(function(e){t.data=e}),this):void 0)}}],[{key:"is",get:function(){return"ff-template"}},{key:"properties",get:function(){return{data:{type:Object,attribute:!1},scope:{type:String}}}}]),n}(Object(g.a)([Object(y.ElementLog)()],v.a));window.customElements.define(b.is,b)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(5),v=n(9),g=n(11);var y=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"update",value:function(e){if(e.has("urlParameterName")&&this.urlParameterName){var t=factfinder.common.urlStringToDict()[this.urlParameterName];t&&(this.recordId=t)}e.has("recordId")&&factfinder.communication.EventAggregator.addFFEvent({type:"productDetail",id:this.recordId}),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){}}],[{key:"is",get:function(){return"ff-product-detail"}},{key:"properties",get:function(){return{recordId:{type:Number,attribute:"record-id"},urlParameterName:{type:String,attribute:"url-parameter-name"}}}}]),n}(Object(v.a)([Object(g.a)(g.b.productDetail)],m.a));window.customElements.define(y.is,y)},function(e,t,n){"use strict";n.r(t),n.d(t,"PagingDropdown",(function(){return T}));var r,i,o,a,c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(21),p=n.n(h),m=n(2),v=n.n(m),g=n(6),y=n.n(g),b=n(7),_=n.n(b),k=n(0),w=n.n(k),C=n(10),S=n(12),P=n(42),O=n(56),x=n(23),E=n(1),R=n(9),j=n(5),L=n(32),I=n(29),A=n(11);var T=function(e){y()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w()(e);if(t){var i=w()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).opened=!1,e._itemTemplate=void 0,e.addEventListener("click",(function(){return e.toggle()})),e.addEventListener("blur",function(){var e=this;!0===this.collapseOnblur&&setTimeout((function(){return e.hide()}),150)}.bind(p()(e))),e}return d()(n,[{key:"render",value:function(){var e=this;return Object(C.b)(r||(r=s()(["",'<div class="ffw-paging-dropdown-container ','">',"</div>"])),this.renderDropdownSelected(),Object(P.a)({"ffw-paging-dropdown-closed":!this.opened}),Object(O.a)([this.items,this.showSelected],(function(){return Object(x.a)(e.items?e.items.pageLinks:[],(function(e){return e.caption}),(function(t){return e.renderDropdownItem(t)}))})))}},{key:"renderDropdownSelected",value:function(){return this.items?this.renderLink(E.b.esPolyfills.find((function(e){return e.currentPage}))(this.items.pageLinks)):Object(C.b)(i||(i=s()([""])))}},{key:"renderDropdownItem",value:function(e){return!e.currentPage||this.showSelected?this.renderLink(e):Object(C.b)(o||(o=s()([""])))}},{key:"renderLink",value:function(e){var t=this._itemTemplate.clone();return t.pagingItem=e,t}},{key:"connectedCallback",value:function(){var e;v()(w()(n.prototype),"connectedCallback",this).call(this),this._itemTemplate||(this._itemTemplate=this.querySelector(L.a.is)||(e=document.createElement("div"),Object(S.i)(Object(C.b)(a||(a=s()(["<ff-paging-item>{{caption}}</ff-paging-item>"]))),e),e.firstElementChild)),this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}},{key:"update",value:function(e){e.has("items")&&this._itemsChanged(),v()(w()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;v()(w()(n.prototype),"updated",this).call(this),(e.has("items")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(L.a.is))).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}
2))}},{key:"show",value:function(){var e=this.getDropdown();this.opened=!0,this._show(e,!0)}},{key:"hide",value:function(){var e=this,t=this.getDropdown();t&&this._hide(t,!0,(function(){e.opened=!1}))}},{key:"toggle",value:function(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.opened)?this.hide():this.show()}},{key:"getDropdown",value:function(){return this.querySelector(".ffw-paging-dropdown-container")}},{key:"_subscriptionCallback",value:function(e){this.items=e}},{key:"_itemsChanged",value:function(){this.opened&&this.hide(),0<this.items.pageLinks.length?this.showSelf():this.hideSelf()}}],[{key:"is",get:function(){return"ff-paging-dropdown"}},{key:"properties",get:function(){return{items:{type:Object,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,reflect:!0,attribute:"show-selected"},collapseOnblur:{type:Boolean,attribute:"collapse-onblur",reflect:!0}}}}]),n}(Object(R.a)([Object(I.CollapseElement)(),Object(A.a)(A.b.paging)],j.a));window.customElements.define(T.is,T)},function(e,t,n){"use strict";n.r(t),n.d(t,"Paging",(function(){return _}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(5),v=n(32),g=n(69),y=n(9),b=n(11);var _=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).showOnly=!1,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf()}},{key:"update",value:function(e){e.has("paging")&&this._pagingChanged(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;e.has("paging")&&Promise.all(Array.from(this.querySelectorAll("".concat(v.a.is))).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"_subscriptionCallback",value:function(e){this.paging=e}},{key:"_pagingChanged",value:function(){var e=this;if(0===this.paging.pageLinks.length)this.hideSelf();else{var t=this.querySelectorAll(g.a.is);0<t.length?t.forEach((function(t){t.paging=e.paging,t.updateComplete.then((function(){t.isActive&&e._processPagingSet(e.paging,t)}))})):this._processPagingSet(this.paging,this),this.showSelf()}}},{key:"_processPagingSet",value:function(e,t){this._processCurrentLinks(e,t);var n=t.querySelector("".concat(v.a.is,'[type="firstLink"]'));n&&(k(n,this.showOnly),n.pagingItem=e.firstLink);var r=t.querySelector("".concat(v.a.is,'[type="lastLink"]'));r&&(k(r,this.showOnly),r.pagingItem=e.lastLink);var i=t.querySelector("".concat(v.a.is,'[type="nextLink"]'));i&&(k(i,this.showOnly),i.pagingItem=e.nextLink);var o=t.querySelector("".concat(v.a.is,'[type="previousLink"]'));o&&(k(o,this.showOnly),o.pagingItem=e.previousLink)}},{key:"_processCurrentLinks",value:function(e,t){var n=this,r=e.pageLinks.reduce((function(e,t,n){return!0===t.currentPage?n:e}),-1);t.querySelectorAll("".concat(v.a.is,'[type~="currentLink"]')).forEach((function(t){k(t,n.showOnly);var i=/-?\d/.exec(t.type)||[],o=parseInt(i[0])||0;t.pagingItem=e.pageLinks[r+o]}))}}],[{key:"is",get:function(){return"ff-paging"}},{key:"properties",get:function(){return{paging:{type:Object,attribute:!1},showOnly:{type:m.c,attribute:"show-only",reflect:!0}}}}]),n}(Object(y.a)([Object(b.a)(b.b.paging)],m.a));function k(e,t){e.showOnly=e.showOnly||t.toString()}window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t),n.d(t,"PagingSelect",(function(){return k}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(5);var k=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this))._selectAttributes=[],e._optionTemplate=void 0,e._pagingData=void 0,e._subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this,t=this.pagingData?this.pagingData.pageLinks:[];return Object(y.b)(r||(r=o()(['<select @change="','">',"</select>"])),w,t.map((function(t){return Object(_.e)(e._optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e=this;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf();var t=this.querySelector("select");this._selectAttributes=t?Array.from(t.attributes):[],this._optionTemplate=this.querySelector("option")||"<option>
2{{caption}}</option>",this._subscriptionKey=b.a.communication.ResultDispatcher.subscribe("paging",(function(t){return e.pagingData=t}))}},{key:"disconnectedCallback",value:function(){f()(g()(n.prototype),"disconnectedCallback",this).call(this),b.a.communication.ResultDispatcher.unsubscribe("paging",this._subscriptionKey)}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");this._selectAttributes.forEach((function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("pagingData")&&(this.pagingData&&0!==this.pagingData.pageLinks.length?(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t<e.length;t++)if(e[t].currentPage)return t;return 0}(this.pagingData.pageLinks)):this.hideSelf(),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}},{key:"pagingData",get:function(){return this._pagingData},set:function(e){if(e&&!Array.isArray(e.pageLinks))throw new Error("ff-paging-select received invalid data format. Must be { pageLinks: [] }");var t=this._pagingData;this._pagingData=e,this.requestUpdate("pagingData",t)}}],[{key:"is",get:function(){return"ff-paging-select"}},{key:"properties",get:function(){return{pagingData:{type:Object,attribute:!1}}}}]),n}(_.a);function w(e){var t=this.pagingData.pageLinks[e.target.selectedIndex].number;b.a.communication.EventAggregator.addFFEvent({type:"paging",number:t})}window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"Compare",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(17),y=n(5),b=n(13),_=n(35);var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).maxResults=4,e.subscribe=!0,e.autoCompare="false",e._topic="".concat(_.a.compare,":").concat(m.a.common.randomString(10)),e._subscriptionKey=void 0,e}return a()(n,[{key:"topic",get:function(){return this._topic}},{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf();var e=this.querySelector(g.RecordList.is);e?("true"===e.subscribe&&(this.warn("Automatic subscription of ff-record-list child component is turned on and will be turned off. Please, set ff-record-list 'subscribe' property to 'false' in your HTML code."),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("ff-record-list child component is subscribed to search result and will be unsubscribed."),e.unsubscribe())):this.warn("Record list for 'ff-compare' component was not found."),this.subscribe&&!this._subscriptionKey&&(this._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(this._topic,this._handleCompareResults,this))}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"updated",value:function(e){s()(p()(n.prototype),"updated",this).call(this,e),e.has("recordId")&&"true"===this.autoCompare&&this.compareRecords(this.recordId)}},{key:"_handleCompareResults",value:function(e){var t=this,n=e.records||[],r=e.attributes.reduce((function(e,t){return e[t.attributeName]=t.different,e}),{});if(2<=n.length){n.forEach((function(e){return e.diff=r}));var i=this.querySelector(g.RecordList.is);i&&(i.records=n.slice(0,this.maxResults),i.addEventListener("dom-updated",(function(){var e=Array.from(i.querySelectorAll("[data-attribute]"));t._updateCssClasses(e,r),t.showSelf()}),{once:!0}))}else this.hideSelf()}},{key:"compareRecords",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];2<=e.length?m.a.communication.EventAggregator.addFFEvent({type:this._topic,ids:e,maxResults:this.maxResults}):(this.debug("No record ids for compare specified."),this.hideSelf())}}
2,{key:"_updateCssClasses",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("data-attribute");!0===t[n]?(e.classList.add("ffw-compare-diff"),e.classList.remove("ffw-compare-equal")):!1===t[n]?(e.classList.remove("ffw-compare-diff"),e.classList.add("ffw-compare-equal")):(e.classList.remove("ffw-compare-diff"),e.classList.remove("ffw-compare-equal"))}))}}],[{key:"is",get:function(){return"ff-compare"}},{key:"properties",get:function(){return{recordId:{type:Array,attribute:"record-id"},maxResults:{type:Number,attribute:"max-result"},subscribe:{type:y.c},autoCompare:{type:String,attribute:"auto-compare"}}}}]),n}(Object(v.a)([Object(b.ElementLog)()],y.a));window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t),n.d(t,"TagCloud",(function(){return x}));var r,i,o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(10),_=n(23),k=n(1),w=n(5),C=n(9),S=n(11),P=n(15),O=n(38);var x=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).tags=[],e.minFontSize=10,e.maxFontSize=20,e.unit="px",e.gradientColorStart="#294884",e.gradientColorEnd="#20b6e8",e.wordCount=30,e.disableAuto=!1,e.ffPreventDefault=void 0,e}return l()(n,[{key:"render",value:function(){var e=this;return Object(b.b)(r||(r=a()(['<div class="ffw-tagCloudContainer">',"</div>"])),Object(_.a)(this.tags,(function(t){return e._renderTag(t)})))}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):this.disableAuto||this.getTagCloud()}},{key:"_subscriptionCallback",value:function(e){this.tags=e}},{key:"update",value:function(e){e.has("wordCount")&&!this.disableAuto&&this.getTagCloud(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){return t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"disconnectedCallback",value:function(){d()(y()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(k.a.communication.ResultDispatcher.unsubscribe("tagCloud",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"getTagCloud",value:function(){Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):k.a.communication.EventAggregator.addFFEvent({type:"tagCloud",wordCount:this.wordCount})}},{key:"_renderTag",value:function(e){var t={query:e.query,count:e.searchCount,params:k.a.common.decodeUrl(e.params)},n=this.minFontSize+Math.round((this.maxFontSize-this.minFontSize)*e.weight),r=R(j(1,this.gradientColorStart,this.gradientColorEnd),e.weight,this.gradientColorStart),o="font-size: ".concat(n).concat(this.unit,"; color: ").concat(r);return Object(b.b)(i||(i=a()(['<a href="#" class="ffw-tagCloudLink" style="','" .tagCloudEntry="','" @click="','">',"</a>"])),o,t,this._handleClick,e.query)}},{key:"_handleClick",value:function(e){e.preventDefault();var t={entry:e.target.tagCloudEntry,element:this};if(this.dispatchEvent(new CustomEvent("entry-clicked",{bubbles:!0,composed:!0,detail:t})),!0!==this.ffPreventDefault){var n=k.a.common.urlStringToDict(e.target.tagCloudEntry.params);n.type="search",Object(O.a)(n,this)}else delete this.ffPreventDefault}}],[{key:"is",get:function(){return"ff-tag-cloud"}},{key:"properties",get:function(){return{minFontSize:{type:Number,attribute:"min-font-size"},maxFontSize:{type:Number,attribute:"max-font-size"},unit:{type:String},gradientColorStart:{type:String,attribute:"gradient-color-start"},gradientColorEnd:{type:String,attribute:"gradient-color-end"},wordCount:{type:Number,attribute:"word-count"},disableAuto:{type:Boolean,attribute:"disable-auto"},tags:{type:Array,attribute:!1}}}}]),n}(Object(C.a)([Object(S.a)(S.b.tagCloud)],w.a));window.customElements.define(x.is,x);var E=function(e){4===e.length&&(e=e.replace(/(\w)(\w)(\w)/gi,"$1$1$2$2$3$3"));var t=/(\w{2})(\w{2})(\w{2})/.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},R=function(e,t,n){return E(n).map((function(n,r){var i=Math.round(n+e[r]*t);return Math.min(Math.max(i,0),255)}
2)).reduce((function(e,t){return e+"0".concat(t.toString(16)).slice(-2)}),"#")},j=function(e,t,n){var r=E(t);return E(n).map((function(t,n){return(t-r[n])/e}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"SearchFeedback",(function(){return P}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(9),k=n(41),w=n(11),C=n(5);var S=Object.freeze({left:"left",right:"right"}),P=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).opened=!1,e.align=S.left,e.positive=!0,e.resetOnToggle=!1,e.resetOnSend=!1,e.dontShowOnResultChanged=!1,e._captionTemplate=void 0,e._contentTemplate=void 0,e}return u()(n,[{key:"_caption",get:function(){return this.querySelector(".ffw-caption")}},{key:"_content",get:function(){return this.querySelector(".ffw-content")}},{key:"_hidden",get:function(){return this.classList.contains("ffw-hidden")}},{key:"render",value:function(){return Object(y.b)(r||(r=o()(['<div @click="','" class="ffw-caption">','</div><div class="ffw-content">',"</div>"])),this._handleClick,this._captionTemplate,this._contentTemplate)}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this._captionTemplate||(this._captionTemplate=this.querySelector("[slot='caption']")),this._contentTemplate||(this._contentTemplate=this.querySelector("[slot='content']")),this.hideSelf()}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e);var r=function(e,n){var r=t.querySelector(e);r&&r.addEventListener("click",n.bind(t))};r("[data-toggle]",this._handleClick),r("[data-send]",this._handleSend),r("[data-positive]",(function(){return t.positive=!0})),r("[data-negative]",(function(){return t.positive=!1}))}},{key:"updated",value:function(e){if(f()(g()(n.prototype),"updated",this).call(this,e),e.has("opened")&&void 0!==e.get("opened")){if(this._hidden)this._removeTransitions();else{var t=this.align===S.right;this._content.classList[this.opened?"add":"remove"](t?"ffw-transformZero":"ffw-transformX"),this._caption.classList[this.opened?"add":"remove"](t?"ffw-transformX":"ffw-transformZero")}this.dispatchEvent(new CustomEvent("open-changed",{bubbles:!0,composed:!0,detail:{value:this.opened}}))}e.has("positive")&&void 0!==e.get("positive")&&this.dispatchEvent(new CustomEvent("positive-changed",{bubbles:!0,composed:!0,detail:{value:this.positive}}))}},{key:"_removeTransitions",value:function(){this._content.classList.remove("ffw-transformZero"),this._content.classList.remove("ffw-transformX"),this._caption.classList.remove("ffw-transformZero"),this._caption.classList.remove("ffw-transformX")}},{key:"_subscriptionCallback",value:function(e){!0!==this.dontShowOnResultChanged&&e&&this._hidden&&this.show(),this.opened=!1,this._removeTransitions(),this.reset()}},{key:"_handleClick",value:function(){this.opened=!this.opened,this._checkAndReset()}},{key:"_checkAndReset",value:function(){!this.opened&&this.resetOnToggle&&this.reset()}},{key:"_handleSend",value:function(){var e=this,t={query:b.a.communication.Util.getQueryFromSearchParams(),id:"none",type:"feedback",positive:this.positive,success:function(){e.resetOnSend&&e._resetAfterSend(),e.dispatchEvent(new CustomEvent("successful",{bubbles:!0,composed:!0}))},fail:function(){return e.dispatchEvent(new CustomEvent("failed",{bubbles:!0,composed:!0}))}},n=this.querySelector("[data-message]");n&&"string"==typeof n.value&&(t.message=n.value),b.a.communication.Tracking.searchFeedback(t)}},{key:"_resetAfterSend",value:function(){this.reset(),this.hide()}},{key:"hide",value:function(){this.hideSelf(),this.opened=!1}},{key:"show",value:function(){this.showSelf()}},{key:"reset",value:function(){this.positive=!0;var e=this.querySelector("[data-message]");e&&"string"==typeof e.value&&(e.value="")}}],[{key:"is",get:function(){return"ff-search-feedback"}},{key:"properties",get:function(){return{opened:{type:Boolean},align:{type:String},positive:{type:C.c},resetOnToggle:{type:Boolean,attribute:"reset-on-toggle"},resetOnSend:{type:Boolean,attribute:"reset-on-send"},dontShowOnResultChanged:{type:Boolean,attribute:"dont-show-on-result-changed"}}}}]),n}(Object(_.a)([Object(k.a)(),Object(w.a)(w.b.result)],C.a));window.customElements.define(P.is,P)},function(e,t,n){"use strict";n.r(t),n.d(t,"MultiAttributeParsing",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"srcProperty",get:function(){return m(this,"src-property")}},{key:"storeInProperty",get:function(){return m(this,"store-in-property")}},{key:"keepOriginalInProperty",get:function(){return m(this,"keep-original-in-property")}},{key:"entrySeparator",get:function(){return m(this,"entry-separator")}},{key:"keyValueSeparator",get:function(){return m(this,"key-value-separator")}},{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.MultiAttributeParsing({srcProperty:this.srcProperty,storeInProperty:this.storeInProperty,keepOriginalInProperty:this.keepOriginalInProperty,entrySeparator:this.entrySeparator,keyValueSeparator:this.keyValueSeparator}))}}],[{key:"is",get:function(){return"ff-multi-attribute-parsing"}}]),n}(n(60).a);function m(e,t){var n=e.getAttribute(t);return"string"==typeof n?n:void 0}window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductTeaserCampaignProcessor",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.ProductTeaserCampaignProcessor())}}],[{key:"is",get:function(){return"ff-product-teaser-campaign-processor"}}]),n}(n(60).a);window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(24),a=n.n(o),c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(2),p=n.n(h),m=n(6),v=n.n(m),g=n(7),y=n.n(g),b=n(0),_=n.n(b),k=n(10),w=n(9),C=n(19),S=n.n(C),P=n(18),O=n.n(P),x=n(12),E=n(33),R=new WeakMap,j=Object(x.f)((function(e){return function(t){if(!(t instanceof x.b))throw new Error("cache can only be used in text bindings");var n=R.get(t);void 0===n&&(n=new WeakMap,R.set(t,n));var r=t.value;if(r instanceof E.a){if(e instanceof x.d&&r.template===t.options.templateFactory(e))return void t.setValue(e);var i=n.get(r.template);void 0===i&&(i={instance:r,nodes:document.createDocumentFragment()},n.set(r.template,i)),Object(x.j)(i.nodes,t.startNode.nextSibling,t.endNode)}if(e instanceof x.d){var o=t.options.templateFactory(e),a=n.get(o);void 0!==a&&(t.setValue(a.nodes),t.commit(),t.value=a.instance)}t.setValue(e)}})),L=n(1),I=n(5),A=n(14),T=n(27),M=n.n(T),N=n(21),D=n.n(N),B=n(54),F=n(13),V=n(30);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?U(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e,r;return l()(this,n),(e=t.call(this)).selected=!1,e.element=void 0,e.group=void 0,e._rawOuterHtml="",e._selectedTemplate=W("selected"),e._unselectedTemplate=W("unselected"),e._clickListener=(r=D()(e),function(e){if(!r.implicit&&!r.fixed){var t=L.b.getFixedFilters();if(0<t.length&&r.selected){var n=L.a.common.getParameterString(r.element.searchParams).split("&");if(!t.every((function(e){return n.some((function(t){return 0===t.indexOf(e)}))})))return}r.selected=!r.selected,L.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:r.group.name,filterName:r.element.name,clusterLevel:r.element.clusterLevel})}}),e}return d()(n,[{key:"render",value:function(){var e=this.element&&q(q({},this.element),{},{name:this.element.__HIGHLIGHTED_NAME__||this.element.name});return this.selected?Object(k.b)(r||(r=s()(['<div class="ffw-asn-selected">',"</div>"])),Object(I.e)(this._selectedTemplate,{element:Object(V.a)(e,"name"),group:this.group})):Object(k.b)(i||(i=s()(['<div class="ffw-asn-unselected">',"</div>"])),Object(I.e)(this._unselectedTemplate,{element:Object(V.a)(e,"name"),group:this.group}))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){this._rawOuterHtml=this.outerHTML,this._selectedTemplate=this.querySelector("[slot='selected']")||this._selectedTemplate,this._unselectedTemplate=this.querySelector("[slot='unselected']")||this._unselectedTemplate,this.addEventListener("click",this._clickListener)}},{key:"update",value:function(e){var t,r;e.has("element")&&((r=(t=this).element)?(t.selected=r.selected,t.implicit=r.implicitSelection,t.fixed=!!r.selected&&function(e){var t=L.a.communication.Util.extractCategoryPathFieldName();if(e.associatedFieldName!==t&&0!==e.associatedFieldName.indexOf(t+"/"))return!1;var n=L.a.common.fixedDecodeURIComponent;return L.b.getFixedFilters().map((function(e){return n(n(e.split("=")[1]))})).some((function(t){var r=t.split(":"),i=M()(r,2),o=i[0]+"ROOT/"+i[1],a=L.b.util.escapeRegex(n(e.associatedFieldName)+"/"+e.name);return new RegExp("^".concat(a,"(/|$)")).test(o)}))}(r),t.className=t.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),r.clusterLevel&&t.classList.add("clusterLevel".concat(r.clusterLevel)),t.showSelf()):t.hideSelf()),p()(_()(n.prototype),"update",this).call(this)}},{key:"updated",value:function(e){p()(_()(n.prototype),"updated",this).call(this,e),Object(B.a)(this)}},{key:"clone",value:function(e,t){var r=this._rawOuterHtml?Object(A.a)(this._rawOuterHtml):document.createElement(n.is);return r.group=e,r.element=t,r._selectedTemplate=this._selectedTemplate,r._unselectedTemplate=this._unselectedTemplate,r}}],[{key:"is",get:function(){return"ff-asn-group-element"}},{key:"properties",get:function(){return{selected:{type:Boolean,reflect:!0},fixed:{type:Boolean,reflect:!0},implicit:{type:Boolean,reflect:!0},element:{type:Object,attribute:!1},group:{type:Object,attribute:!1}}}}]),n}(Object(w.a)([Object(F.ElementLog)()],I.a));function W(e){return Object(A.a)('<div slot="'.concat(e,'">{{element.name}}</div>'))}window.customElements.define(z.is,z);var H,K,Y,G,X,Z,J,$=n(29),Q=n(48),ee=n(57);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?te(Object(n),!0).forEach((function(t){S()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=Object.freeze({DetailedLinksContainer:'[data-container="detailedLinks"]',HiddenLinksContainer:'[data-container="hiddenLinks"]',DetailedLinksContent:'[data-content="detailedLinks"]',HiddenLinksContent:'[data-content="hiddenLinks"]',SelectBoxPlaceholderOption:"option:not([data-template])",SelectBoxOptionTemplate:"option[data-template]",ToggleWrapper:".ffw-wrapper",ShowMoreContainer:'[data-container="showMore"]',ShowLessContainer:'[data-container="showLess"]',GroupCaptionContainer:'[slot="groupCaption"]',RemoveFilterContainer:'[data-container="removeFilter"]',FilterSearchFieldContainer:'[slot="filterSearch"]'}),ie=L.a.communication.EventAggregator,oe=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).collapsible=!0,e.opened=!1,e.forGroup=void 0,e.filterStyle=void 0,e.disableAutoExpand=!1,e.group=void 0,e.selectBox=!1,e.notSearchable=!1,e._detailedElements=[],e._hiddenElements=[],e._wrapper=void 0,e._initialized=!1,e._rawOuterHtml="",e._asnGroupElementTemplate=void 0,e._groupCaptionTemplate=void 0,e._selectBoxOptionTemplate=void 0,e._selectBoxPlaceholderOption=void 0,e._detailedLinksContainer=void 0,e._hiddenLinksContainer=void 0,e._showMoreContainer=void 0,e._showLessContainer=void 0,e._removeFilterContainer=void 0,e._filterSearchContainer=void 0,e._filterSearchField=void 0,e._filterSearchInput=void 0,e}return d()(n,[{key:"render",value:function(){var e=this;if(!this._initialized)return Object(k.b)(H||(H=s()(['<div class="ffw-asn-group-container"><div class="ffw-wrapper"></div></div>'])));this._filterSearchInput=this.querySelector("".concat(re.FilterSearchFieldContainer," input"));var t,n,r,i={group:this.group};return Object(k.b)(K||(K=s()(['<div data-container="groupCaption" @click="','">','</div><div class="ffw-asn-group-container"><div class="ffw-wrapper" @input="','">'," "," ","</div></div>"])),(function(){return e.toggle(!0)}),Object(I.e)(this._groupCaptionTemplate,i),(function(t){return function(e,t){var n=t.composedPath(),r=n[0];if("INPUT"===r.nodeName&&n.slice(1).some((function(e){return e.getAttribute&&"filterSearch"===e.getAttribute("slot")}))){e.requestUpdate();var i=new RegExp(L.b.util.escapeRegex(r.value)||"$a","gi"),o=[].concat(O()(e.group.selectedElements),O()(e.group.elements)).reduce((function(e,t){i.lastIndex=0;var n=i.exec(t.name);if(null===n)return e;var r=t.name.replace(i,(function(e){return'<span class="ffw-query">'.concat(e,"</span>")}));return(0===n.index?e.headMatchedElements:e.otherMatchedElements).push(ne(ne({},t),{},{__HIGHLIGHTED_NAME__:r})),e}),{headMatchedElements:[],otherMatchedElements:[]}),a=o.headMatchedElements,c=o.otherMatchedElements;ce(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[].concat(O()(a),O()(c)))}}(e,t)}),le(function(e){if(!e.group)return!1;var t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),Object(I.e)(this._filterSearchField,i)),j(this._filterSearchInput&&0<this._filterSearchInput.value.length?this._filterSearchContainer:(n=(r=(t=this).group)&&r.elements.length>r.detailedLinks,Object(k.b)(Y||(Y=s()([""," "," "," ",""])),t._detailedLinksContainer,le(n,t._hiddenLinksContainer),le(n&&!t.selectBox,t._showMoreContainer),le(n&&!t.selectBox,t._showLessContainer)))),le(function(e){if(!ue(t=e)||!t.selectedElements.some((function(e){return!0!==e.implicitSelection})))return!1;var t,n=L.b.getFixedFilters();return 0===n.length||e.selectedElements.filter((function(e){return!0!==e.implicitSelection})).some(Object(ee.a)(n))}(this.group),this._removeFilterContainer))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){var e,t,n,r=this;this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(z.is)||document.createElement(z.is),this._groupCaptionTemplate=this.querySelector(re.GroupCaptionContainer)||Object(A.a)('<div slot="groupCaption">{{group.name}}</div>'),this._detailedLinksContainer=this.querySelector(re.DetailedLinksContainer)||Object(A.a)(Object(A.e)(X||(X=s()(['<div opened data-container="detailedLinks"><div data-content="detailedLinks"></div></div>'])))),this._hiddenLinksContainer=this.querySelector(re.HiddenLinksContainer),this._filterSearchField=(e=this.querySelector(re.FilterSearchFieldContainer))?e.cloneNode(!0):Object(A.a)('<div slot="filterSearch"><input></div>'),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error("<input> not found in filterSearch template")}(this),this._filterSearchContainer=Object(A.a)('<div class="ffw-asn-group-searchable-results"></div>'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=(t=function(){return r.group||{}},(n=this.querySelector(re.RemoveFilterContainer)||Object(A.a)('<div data-container="removeFilter">Reset Filter</div>')).addEventListener("click",(function(){ie.addFFEvent({type:"filter",groupName:t().name,removeAll:!0})}
2)),n),this.selectBox&&(this._selectBoxOptionTemplate=this._hiddenLinksContainer.querySelector(re.SelectBoxOptionTemplate)||Object(A.a)("<option data-template>{{element.name}} {{group.unit}} ({{element.recordCount}})</option>")),this.style.display="none",this._initialized=!0)}},{key:"update",value:function(e){var t,r,i,o;e.has("group")&&(this._filterSearchInput&&(this._filterSearchInput.value="",this._filterSearchInput.dispatchEvent(new Event("input"))),this.group?(this._detailedElements=this.group.selectedElements.concat(this.group.elements.slice(0,this.group.detailedLinks)),this._hiddenElements=this.group.elements.slice(this.group.detailedLinks),this._detailedLinksContainer=(t=this._detailedLinksContainer,r=this.group,i=this._asnGroupElementTemplate,o=this._detailedElements,ce(t.querySelector(re.DetailedLinksContent),i,r,o),t),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=se(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=ae(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||ue(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;this._wrapper=this.querySelector(re.ToggleWrapper),this.opened||e.has("group")&&ue(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(function(){return t.opened=!1})),!1===this.opened&&!0!==this.disableAutoExpand&&ue(this.group)&&this.show(!1)}},{key:"updated",value:function(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=Object(Q.a)(this.group)),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}},{key:"show",value:function(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(function(){return t.opened=!1})),this._wrapper.removeAttribute("opened"))}},{key:"toggle",value:function(e){this.opened?this.hide(e):this.show(e)}},{key:"showDetailedLinksContainer",value:function(e){this._show(this._detailedLinksContainer,e)}},{key:"hideDetailedLinksContainer",value:function(e){this._hide(this._detailedLinksContainer,e)}},{key:"toggleDetailedLinksContainer",value:function(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}},{key:"showHiddenLinksContainer",value:function(e){var t=this;this._hiddenLinksContainer=this.selectBox?se(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):ae(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((function(){t._showChecked(t._hiddenLinksContainer,e),t._hiddenLinksContainer.setAttribute("opened","")}))}},{key:"hideHiddenLinksContainer",value:function(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(function(){}))}},{key:"toggleHiddenLinksContainer",value:function(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}},{key:"clone",value:function(){return Object(A.a)(this._rawOuterHtml)}},{key:"_initShowMore",value:function(){var e=this;this._showMoreContainer=this.querySelector(re.ShowMoreContainer)||Object(A.a)('<div data-container="showMore">Show More</div>'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(function(){return e.showHiddenLinksContainer(!0)}))}},{key:"_initShowLess",value:function(){var e=this;this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(re.ShowLessContainer)||Object(A.a)('<div data-container="showLess">Show Less</div>'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(function(){return e.hideHiddenLinksContainer(!0)}))}},{key:"_initHiddenLinksContainer",value:function(){if(this.selectBox)this._hiddenLinksContainer?"SELECT"!==this._hiddenLinksContainer.tagName?(this.warn("Provided template for select box is not a select element. Using default template."),this._hiddenLinksContainer=n()):0===this._hiddenLinksContainer.querySelectorAll(re.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore(Object(A.a)("<option disabled hidden selected>More...</option>"),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=n(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(re.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",(t=this,function(){var e=t._hiddenLinksContainer.options[t._hiddenLinksContainer.selectedIndex].data;e&&ie.addFFEvent({type:"filter",groupName:t.group.name,filterName:e.__ORIG_NAME__||e.name,clusterLevel:e.clusterLevel})})),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){var e=Object(A.e)(G||(G=s()(['<div data-container="hiddenLinks" style="height:0;overflow:hidden"><div data-content="hiddenLinks"></div></div>'])));this._hiddenLinksContainer=Object(A.a)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}var t;function n(){return Object(A.a)('<select data-container="hiddenLinks">'.concat("<option disabled hidden selected>More...</option>","</select>"))}}}
2],[{key:"is",get:function(){return"ff-asn-group"}},{key:"properties",get:function(){return{collapsible:{type:I.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,attribute:"for-group",reflect:!0},filterStyle:{type:String,attribute:"filter-style",reflect:!0},disableAutoExpand:{type:Boolean,attribute:"disable-auto-expand",reflect:!0},group:{type:Object,attribute:!1},selectBox:{type:I.c,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}}]),n}(Object(w.a)([Object(F.ElementLog)(),Object($.CollapseElement)()],I.a));function ae(e,t,n,r){return ce(e.querySelector(re.HiddenLinksContent),t,n,r),e}function ce(e,t,n,r){Object(x.i)(Object(k.b)(Z||(Z=s()(["",""])),r.map((function(e){return t.clone(n,e)}))),e)}function se(e,t,n,r,i){var o=i.map((function(e){return Object(I.e)(n,{group:r,element:e})}));return Object(x.i)(Object(k.b)(J||(J=s()(["",""])),[Object(I.e)(t)].concat(O()(o))),e),e.selectedIndex=0,e.querySelectorAll(re.SelectBoxOptionTemplate).forEach((function(e,t){var n=i[t];e.value=n.name,e.data=n})),e}function ue(e){return e&&0<e.selectedElements.length}function le(e,t){return e?t:void 0}window.customElements.define(oe.is,oe);var fe,de,he=n(51),pe=n(11);n.d(t,"Asn",(function(){return ve}));var me=Object.freeze({vertical:"vertical",horizontal:"horizontal"}),ve=function(e){v()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).align=me.vertical,e.asnGroups=[],e.subscribe=!0,e.topic=void 0,e._templates=void 0,e._searchableFrom=1/0,e}return d()(n,[{key:"render",value:function(){var e=this;return Object(k.b)(de||(de=s()(["",""])),(this.asnGroups||[]).map((function(t){var n=e._getGroupTemplate(t);return n.group=t,Object(k.b)(fe||(fe=s()(["",""])),n)})))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._initTemplates()}},{key:"update",value:function(e){var t=this;e.has("topic")&&"string"!=typeof this.topic&&void 0!==this.topic&&(this.error('Attribute "topic" must be either undefined or a string but was: '.concat(a()(this.topic),". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((function(){var e=t.querySelectorAll("".concat(oe.is,",").concat(he.a.is));Promise.all(Array.from(e).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"searchableFrom",get:function(){return this._searchableFrom},set:function(e){"number"!=typeof e||isNaN(e)||e<1?this.warn("searchableFrom was expected to be a valid positive number, but was [".concat(e,"] instead")):this._searchableFrom=e}},{key:"_getGroupTemplate",value:function(e){var t=Object(Q.a)(e),n=this._templates[t];if(!n){var r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(n=this._templates[r].clone(),this._templates[t]=n)}return n||(n=this._templates.all.clone(),this._templates[t]=n),n}},{key:"_initTemplates",value:function(){var e=this;if(!this._templates)try{if(this._templates={},this.querySelectorAll("".concat(oe.is,",").concat(he.a.is)).forEach((function(t){try{var n=t.getAttribute("for-group"),r=t.getAttribute("filter-style");n&&"all"!==n.toLowerCase()?e._templates[n]=t:r?e._templates[r]=t:"FF-ASN-GROUP-SLIDER"===t.tagName?e._templates.SLIDER=t:e._templates.all||(e._templates.all=t)}catch(t){e.error(t)}})),!this._templates.all){var t=document.createElement(oe.is);t.setAttribute("opened",void 0),t._init(),this._templates.all=t}if(!this._templates.SLIDER){var n=document.createElement(he.a.is);n.setAttribute("filter-style","SLIDER"),n.setAttribute("opened",void 0),n.init(),this._templates.SLIDER=n}}catch(t){this.error(t)}}},{key:"_subscriptionCallback",value:function(e){this.asnGroups=e.filter((function(e){return e.selectedElements.length||e.elements.length}))}}
2],[{key:"is",get:function(){return"ff-asn"}},{key:"properties",get:function(){return{align:{type:String,reflect:!0},asnGroups:{type:Array,attribute:!1},searchableFrom:{type:Number,attribute:"searchable-from"},subscribe:{type:I.c},topic:{type:String}}}}]),n}(Object(w.a)([Object(F.ElementLog)(),Object(pe.a)(pe.b.asn)],I.a));window.customElements.define(ve.is,ve)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(14);var y=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){return Object(v.e)(this._template,this.answer)}},{key:"connectedCallback",value:function(){var e;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template=Object(v.d)(this)?"<button><span>{{text}}</span></button>":this.innerHTML,this.addEventListener("click",(e=this,function(t){m.a.communication.EventAggregator.addFFEvent({type:"advisor",answer:e.answer})}))}},{key:"updated",value:function(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}],[{key:"is",get:function(){return"ff-campaign-advisor-answer"}},{key:"properties",get:function(){return{answer:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(y.is,y);var b=n(28);var _=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderQuestion=function(e){var t=Object(g.f)(e.querySelector(y.is)||document.createElement(y.is),e),n=e.querySelector("[data-question]");n||(n=Object(g.a)("<div>{{text}}</div>"),e.insertBefore(n,e.firstChild));var r=n.innerHTML;return function(i){n.innerHTML=Object(b.a)(r,i),t(e.querySelectorAll(y.is),i.answers,(function(e,t){e.answer=t}))}}(this)}},{key:"update",value:function(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),s()(p()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-campaign-advisor-question"}},{key:"properties",get:function(){return{question:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(_.is,_),n.d(t,"CampaignAdvisor",(function(){return k}));var k=function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).name="",e.not=void 0,e.subscriptionKey=void 0,e._renderCampaign=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){var e,t;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderCampaign=(e=this,t=Object(g.f)(e.querySelector(_.is)||document.createElement(_.is),e),function(n){return t(e.querySelectorAll(_.is),n.activeQuestions,(function(e,t){e.question=t}))})}},{key:"update",value:function(e){var t,r=this;e.has("name")&&function(e,t,n){e.subscriptionKey&&m.a.communication.ResultDispatcher.unsubscribe(w(n),e.subscriptionKey),e.subscriptionKey=m.a.communication.ResultDispatcher.subscribe(w(t),(function(t){e.campaignData=t}))}(this,this.name,e.get("name")),e.has("campaignData")&&(!this.campaignData||0===this.campaignData.activeQuestions.length||this.not&&this.not.split(",").some((function(e){return e.trim()===r.campaignData.name}))?this.hideSelf():(this.showSelf(),this._renderCampaign(this.campaignData),(t=this,Promise.all(Array.from(t.querySelectorAll(_.is)).map((function(e){return e.updateComplete}))).then((function(){return Promise.all(Array.from(t.querySelectorAll(y.is)).map((function(e){return e.updateComplete})))}))).then((function(){return r.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}
2)))),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),m.a.communication.ResultDispatcher.unsubscribe(w(this.name),this.subscriptionKey)}}],[{key:"is",get:function(){return"ff-campaign-advisor"}},{key:"properties",get:function(){return{name:{type:String,reflect:!0},not:{type:String},campaignData:{type:Object,attribute:!1}}}}]),n}(v.a);function w(e){return e&&e.trim()?["campaign:advisor:".concat(e)]:["campaign:advisor"]}window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(3),a=n.n(o),c=n(4),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(26),v=n.n(m),g=(n(72),n(1)),y=n(53);n.d(t,"factfinder",(function(){return g.a})),r=g.a,i=setTimeout((function(){r.common.Logger.log("Warning: The WebComponentsReady event didn't fire within 10 seconds, which indicates a very slow page load.")}),1e4),Object(y.a)().then((function(){clearTimeout(i),r.communication.ResultDispatcher.startDispatching()})),g.a.elements={ElementLogBehavior:n(13).ElementLog(),CollapseElementBehavior:n(29).CollapseElement(),TrackingBehavior:n(46).Tracking()},WebComponents.waitFor((function(){return new Promise((function(e){n(47),n(66),n(82),n(39),n(17),n(110),n(83),n(84),n(85),n(86),n(87),n(88),n(43),n(89),n(90),n(91),n(109),n(92),n(93),n(112),n(94),n(95),n(96),n(97),window.customElements.define("ff-onfocus-suggest",function(e){l()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return s()(this,n),e=t.call(this),g.a.common.Logger.error("ff-onfocus-suggest: This component is currently not available. It will be reimplemented in a future version."),e}return a()(n)}(v()(HTMLElement))),n(113),n(98),n(114),n(99),n(115),n(100),n(101),n(102),n(103),n(116),n(104),n(105),n(117),n(106),n(49),n(59),n(107),n(108),n(118),e()}))}))},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(5),_=n(1),k=n(30);var w={dataTemplate:"{{text}}",attributes:{}},C=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.addEventListener("click",(function(){_.a.communication.EventAggregator.addFFEvent({type:"bct",value:e.breadCrumbTrailItem.value})})),e}return u()(n,[{key:"template",get:function(){return this.templates[this.type]||this.templates[P.default]||w}},{key:"render",value:function(){return Object(b.e)(this.template.dataTemplate,Object(k.a)(this.breadCrumbTrailItem,"text"))}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this.template.attributes).forEach((function(e){return t.setAttribute(e,t.template.attributes[e])}))}},{key:"update",value:function(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=P.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),f()(g()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-breadcrumb-trail-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"}}}}]),n}(b.a);
2window.customElements.define(C.is,C);var S,P=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"}),O=n(9),x=n(13),E=n(11);n.d(t,"BreadcrumbTrail",(function(){return R}));var R=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.separatorTemplate=void 0,e.breadCrumbTrailItems=[],e.showAsteriskQuery=!1,e}return u()(n,[{key:"render",value:function(){for(var e,t,n=[],i=(this.breadCrumbTrailItems||[]).length,a=0;a<i;a++){var c=this.breadCrumbTrailItems[a];if(c.type){if(("*"!==c.value||c.type!==P.search&&P.hasOwnProperty(c.type)||this.showAsteriskQuery)&&(n.push((e=c,t=this.templates,Object(y.b)(r||(r=o()(['<ff-breadcrumb-trail-item .breadCrumbTrailItem="','" .templates="','"></ff-breadcrumb-trail-item>'])),e,t))),a<i-1)){var s=this.separatorTemplate.cloneNode(!0);n.push(s)}}else this.warn("No type for current breadcrumb item: '".concat(c.text,"'."))}return Object(y.b)(S||(S=o()(["",""])),n)}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this.templates=function(e){var t,n={};for(var r in P){var i=P[r],o=e.querySelector("".concat(C.is,"[type='").concat(i,"']"));n[i]||(n[i]=!(t=o)||Object(b.d)(t)?w:{dataTemplate:t.innerHTML,attributes:Array.prototype.reduce.call(t.attributes,(function(e,t){var n=t.name,r=t.value;return"unresolved"!==n&&(e[n]=r),e}),{})})}return n}(this),this.separatorTemplate=this.querySelector("[data-separator]")||document.createTextNode(" > ")}},{key:"update",value:function(e){var t=this;e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this.breadCrumbTrailItems=e}}],[{key:"is",get:function(){return"ff-breadcrumb-trail"}},{key:"properties",get:function(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:b.c,attribute:"show-asterisk-query"}}}}]),n}(Object(O.a)([Object(x.ElementLog)(),Object(E.a)(E.b.bct)],b.a));window.customElements.define(R.is,R)},function(e,t,n){"use strict";n.r(t);var r=n(19),i=n.n(r),o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(5),_=n(10),k=n(9),w=n(21),C=n.n(w),S=n(1);var P=Object.freeze({Selected:"ffw-selected",ShowSelected:"ffw-showSelected"}),O=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).sortItem={},e._template=Object(b.d)(C()(e))?"{{description}}":e.innerHTML,e.addEventListener("click",function(){this._isClickable&&S.a.communication.EventAggregator.addFFEvent({type:"sort",name:this.sortItem.name,order:this.sortItem.order})}.bind(C()(e))),e}return l()(n,[{key:"render",value:function(){return Object(b.e)(this._template,this.sortItem)}},{key:"update",value:function(e){e.has("sortItem")&&this._sortItemChanged(this.sortItem),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_sortItemChanged",value:function(e,t){this.style.display=e?(this._isCl
2ickable=!e.selected,e.selected?this.classList.add(P.Selected):this.classList.remove(P.Selected),e.showSelected?this.classList.add(P.ShowSelected):this.classList.remove(P.ShowSelected),"block"):"none"}}],[{key:"is",get:function(){return"ff-sortbox-item"}},{key:"properties",get:function(){return{sortItem:{type:Object},key:{type:String}}}}]),n}(b.a);window.customElements.define(O.is,O);var x,E=n(29),R=n(11);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"SortBox",(function(){return T}));var I=Object.freeze({DefaultSortItemCssSelector:"".concat(O.is,'[key="default.template"]')}),A=Object.freeze({SelectedContainer:"ffw-selected-container",DropdownContainer:"ffw-dropdown-container",DropdownClosed:"ffw-closed"}),T=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).items=[],e.opened=!1,e.showSelected=!1,e.showSelectedFirst=!1,e.collapseOnblur=!1,e._defaultSortItemTemplate=void 0,e._initialized=!1,e._sortBoxItemTemplateInfos={},e}return l()(n,[{key:"render",value:function(){return Object(_.b)(x||(x=a()(['<div class="','"></div><div class="'," ",'"></div>'])),A.SelectedContainer,A.DropdownContainer,this.opened?"":A.DropdownClosed)}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){if(!this._initialized){this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");var e,t,n,r=this.querySelector(I.DefaultSortItemCssSelector);r?(this._defaultSortItemTemplate=r,this.removeChild(r)):this._defaultSortItemTemplate=document.createElement(O.is),this._sortBoxItemTemplateInfos=(e=this._sortBoxItemTemplateInfos,t=this.querySelectorAll(O.is),n="null.desc",t.forEach((function(t){var r=t.getAttribute("key");!r||r===n&&e.hasOwnProperty(n)||(e["ff.relevance"===r?n:r]=N(t))})),e),this._initialized=!0}}},{key:"firstUpdated",value:function(e){var t,r,i;d()(y()(n.prototype),"firstUpdated",this).call(this,e),this.hideSelf(),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(t=this,function(){t.collapseOnblur&&setTimeout((function(){return t.hide()}),150)})),i=M(r=this),r.opened?(r.opened=!0,r._show(i,!1)):r._hide(i,!1,(function(){r.opened=!1}))}},{key:"update",value:function(e){(e.has("items")||e.has("showSelected"))&&function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];if(e.hide(),!t.length)return e.hideSelf();var n=e.showSelected?function(e,t){for(var n=e.slice(),r=0;r<n.length;r++){var i=n[r];if(i.selected){var o=L(L({},i),{},{selected:!1,showSelected:!0}),a=t?0:r+1;n.splice(a,0,o);break}}return n}(t,e.showSelectedFirst):t;e.querySelectorAll(O.is).forEach((function(e){return e.parentNode.removeChild(e)})),n.forEach((function(t){var n,r="".concat((n=t).name,".").concat(n.order),i=function(e,t,n,r){var i,o=null!=(i=e[n])?i:function(){var r=t.clone();return r.setAttribute("key",n),e[n]=N(r),e[n]}();if(r&&!o.selected){var a=o.dropdown.clone();a.setAttribute("key",n),o.selected=a}return r?o.selected:o.dropdown}(e._sortBoxItemTemplateInfos,e._defaultSortItemTemplate,r,t.selected);((i.sortItem=t).selected?e.querySelector(".".concat(A.SelectedContainer)):M(e)).appendChild(i)})),e.showSelf(),e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}(this,this.items),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"toggle",value:function(e){!0===e?this.hide():!1===e?this.show():this.opened?this.hide():this.show()}},{key:"show",value:function(){if(!this.opened){this.opened=!0;var e=M(this);this._show(e,!0)}}},{key:"hide",value:function(){var e=this;if(this.opened){var t=M(this);t.__transitionActive__=!1,this._hide(t,!0,(function(){e.opened=!1}))}}},{key:"_subscriptionCallback",value:function(e){this.items=e}}],[{key:"is",get:function(){return"ff-sortbox"}},{key:"properties",get:function(){return{items:{attribute:!1,type:Array},opened:{type:Boolean,reflect:!0},showSelected:{attribute:"show-selected",type:b.c,reflect:!0},showSelectedFirst:{attribute:"show-selected-first",type:b.c,reflect:!0},collapseOnblur:{attribute:"collapse-onblur",type:b.c,reflect:!0}}}}]),n}(Object(k.a)([Object(E.CollapseElement)(),Object(R.a)(R.b.sort)],b.a));function M(e){return e.querySelector(".".concat(A.DropdownContainer))}function N(e,t){return{dropdown:e,selected:t}}window.customElements.define(T.is,T)},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(21),f=n.n(l),d=n(2),h=n.n(d),p=n(6),m=n.n(p),v=n(7),g=n.n(v),y=n(0),b=n.n(y),_=n(10),k=n(1),w=n(5);var C=Object.freeze({NavSearch:"nav-search"}),S=function(e){m()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e,r;return c()(this,n),(e=t.call(this)).element={},e.addEventListener("click",(r=f()(e),function(e){e.preventDefault();var t=r.element;t.__TARGET_URL__&&t.__TARGET_URL__.isCustomized?window.location.href=t.__TARGET_URL__.url:r.dispatchEvent(new CustomEvent(C.NavSearch,{bubbles:!0,composed:!0,detail:t}))})),e}return u()(n,[{key:"render",value:function(){return Object(_.b)(r||(r=o()(['<a href="','">',"</a>"])),(this.element.__TARGET_URL__||{}
2).url,k.b.Encoding.decodeURIComponent(this.element.name))}}],[{key:"is",get:function(){return"ff-nav-element"}},{key:"properties",get:function(){return{element:{attribute:!1,type:Object}}}}]),n}(w.a);window.customElements.define(S.is,S);var P,O,x,E,R,j=n(9),L=n(11),I=n(15);n.d(t,"HeaderNavigation",(function(){return T}));var A=k.a.communication.EventAggregator,T=function(e){m()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e,r;return c()(this,n),(e=t.call(this)).elements=[],e.groupCount=10,e.groupSize=4,e.hideEmptyGroups=!0,e.fetchInitial=!0,e.mouseenterDelay=600,e.mouseleaveDelay=200,e._key=k.a.common.randomString(10),e._slottedElements={},e._selectedElement={},e._showBody=!1,e._shouldShowBody=!1,e.addEventListener(C.NavSearch,(r=f()(e),function(e){var t=e.detail;r._showBody=!1;var n=t.searchParams.split("?")[1],i=k.a.common.decodeDict(k.a.common.parameterStringToDict(n));i.type="navigation-search",setTimeout((function(){Object(I.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(i.filter[0]))),A.addFFEvent(i)}),0)})),e}return u()(n,[{key:"render",value:function(){var e,t,n,r=this;return Object(_.b)(P||(P=o()(['<div class="ffw-header-nav" @mouseenter="','" @mouseleave="','"><div class="ffw-header"><div class="ffw-nav-item-separator"></div>',"</div>","</div>"])),M,D,this.elements.map((function(e){return Object(_.b)(O||(O=o()(['<ff-nav-element .element="','" class="ffw-nav-item" @mouseenter="','"></ff-nav-element><div class="ffw-nav-item-separator"></div>'])),e,N)})),this._showBody?Object(_.b)(x||(x=o()(['<div class="ffw-body"><div class="ffw-body-top">','</div><div class="ffw-body-middle"><div class="ffw-body-left">','</div><div class="ffw-body-center">','</div><div class="ffw-body-right">','</div></div><div class="ffw-body-bottom">',"</div></div>"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.name)],(e=this.hideEmptyGroups,t=this.groupCount,n=this._selectedElement.groups,n?!0===e?n.filter((function(e){var t=0===e.links.length;return t&&k.a.common.Logger.log("[".concat(T.is,"]: The group '").concat(e.name,"' has no 3rd layer children and will not be shown. If you wish to display it nevertheless, set 'hide-empty-groups=\"false\"'")),!t})).slice(0,t):n.slice(0,t):[]).map((function(e){return Object(_.b)(E||(E=o()(['<div class="ffw-nav-group"><ff-nav-element class="ffw-nav-group-caption" .element="','"></ff-nav-element>'," ","</div>"])),e,(t=r,n=e.links,n.slice(0,t.groupSize)).map((function(e){return Object(_.b)(R||(R=o()(['<ff-nav-element class="ffw-nav-link" .element="','"></ff-nav-element>'])),e)})),r._slottedElements[e.name]);var t,n})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.name)]):void 0)}},{key:"connectedCallback",value:function(){var e=this;h()(b()(n.prototype),"connectedCallback",this).call(this),this.querySelectorAll("[slot]").forEach((function(t){return e._slottedElements[t.getAttribute("slot")]=t})),this.fetchInitial&&this.fetch()}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),e.has("elements")&&setTimeout((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}},{key:"fetch",value:function(){var e={type:L.b.navigation,firstFetch:3,fetchSize:1,maxFetch:3,fetchTime:10,key:this._key};setTimeout((function(){return A.addFFEvent(e)}),0)}},{key:"_subscriptionCallback",value:function(e){var t,n;
2t=this,(n=e[0]).forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.groups=r.subelements,e.groups.forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.links=r.subelements}))})),t.elements=n}}],[{key:"is",get:function(){return"ff-header-navigation"}},{key:"properties",get:function(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:w.c},fetchInitial:{attribute:"fetch-initial",type:w.c},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}}]),n}(Object(j.a)([Object(L.a)(L.b.navigation)],w.a));function M(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((function(){!0===t._shouldShowBody&&(t._showBody=!0)}),this.mouseenterDelay))}function N(e){this._selectedElement=e.currentTarget.element}function D(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((function(){!1===t._shouldShowBody&&(t._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(T.is,T)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(10),_=n(23),k=n(1),w=n(5),C=n(30),S=n(15);var P=Object.freeze({down:"down",right:"right",left:"left",default:"right"}),O={dataTemplate:"<div>{{name}}</div>",attributes:{direction:P.default}},x=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).clusterLevel=0,e.type="default",e.direction=P.default,e.hasSubelements=!1,e.flyout="true",e.selected=!1,e.element=void 0,e._templates={default:O},e}return l()(n,[{key:"childrenUpdateComplete",get:function(){var e=this;return new Promise((function(t){e.updateComplete.then((function(){var r=e.querySelectorAll("".concat(n.is,'[cluster-level="').concat(e.clusterLevel+1,'"]'));0===r.length?t():Promise.all(Array.from(r).map((function(e){return e.childrenUpdateComplete}))).then(t)}))}))}},{key:"_template",get:function(){return this._templates&&this._templates[this.type||"default"]||O}},{key:"render",value:function(){var e=this,t=this.element&&this.element.__SUB_ELEMENTS__;return Object(b.b)(r||(r=a()(['<div class="ffw-item-caption" @mouseover="','">','</div><div class="ffw-item-container">',"</div>"])),this.onHovered,Object(w.e)(this._template.dataTemplate,Object(C.a)(this.element,"name")),Object(_.a)(t||[],(function(t){return R(function(e,t){var n="default";e._templates&&e._templates["layer".concat(t.clusterLevel)]&&(n="layer".concat(t.clusterLevel));var r=E(t),i=e._templates&&e._templates.parent;r&&i&&(n="parent");var o=e._templates&&e._templates[n]&&e._templates[n].attributes.direction||P.default;return{element:t,type:n,templates:e._templates,flyout:e.flyout,direction:o,_key:e._key}}(e,t))})))}},{key:"update",value:function(e){e.has("element")&&this._elementChanged(),e.has("flyout")&&this._flyoutChanged(this.flyout),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;d()(y()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this._template.attributes).forEach((function(e){return t.setAttribute(e,t._template.attributes[e])})),this._initLink()}},{key:"updated",value:function(e){if(d()(y()(n.prototype),"updated",this).call(this,e),e.has("hasSubelements")){if(!this.link)return;this.hasSubelements?this.link.classList.remove("ffw-navigation-link"):this.link.classList.add("ffw-navigation-link")}}},{key:"connectedCallback",value:function(){var e=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",(function(t){return e._clicked(t)}))}},{key:"_initLink",value:function(){var e=this;this.link=this.querySelector("[data-search]"),this.link&&this.link.addEventListener("click",(function(t){e.search(),t.stopPropagation(),t.cancelBubble=!0}))}},{key:"_elementChanged",value:function(){this.element?(this.clusterLevel=this.element.clusterLevel,this._subelementsUpdated()):this.clusterLevel=void 0}},{key:"_subelementsUpdated",value:function(){this.hasSubelements=E(this.element)}},{key:"_clicked",value:function(e){"false"===this.flyout&&(this.hasSubelements?(this.selected=!this.selected,this.link&&(!0===this.selected?this.link.classList.add("ffw-navigation-link"):this.link.classList.remove("ffw-navigation-link"))):this.link&&this.link.classList.add("ffw-navigation-link")),"true"!==this.flyout&&this.hasSubelements&&!this.alwaysSearchOnclick||this.search(),e.stopPropagation(),e.cancelBubble=!0}},{key:"_flyoutChanged",value:function(e){"true"===e&&(this.selected=!1)}},{key:"search",value:function(){var e=this.element.searchParams,t=k.a.common.decodeDict(k.a.common.parameterStringToDict(e.split("?")[1]));t.type="navigation-search";var n=this.parentElement;n.classList.add("ffw-container-hidden"),Promise.resolve().then((function(){Object(S.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(t.filter[0]))),k.a.communication.EventAggregator.addFFEvent(t)})),setTimeout((function(){return n.classList.remove("ffw-container-hidden")}),1e3)}},{key:"onHovered",value:function(){if(0!==this.clusterLevel)if(this.direction===P.right){var e=window.innerWidth-this.getBoundingClientRect().left;this.direction=e<500?P.left:this.direction}else if(this.direction===P.left){var t=this.getBoundingClientRect().left,n=this.getBoundingClientRect().width;this.direction=t<=n?P.right:this.direction}}}],[{key:"is",get:function(){return"ff-navigation-item"}},{key:"properties",get:function(){return{element:{type:Object,attribute:!1},direction:{type:String,reflect:!0},clusterLevel:{type:Number,reflect:!0,attribute:"cluster-level"},type:{type:String},hasSubelements:{type:Boolean,attribute:"has-subelements",reflect:!0},alwaysSearchOnclick:{type:Boolean,attribute:"always-search-onclick"},flyout:{type:String,reflect:!0},selected:{type:Boolean,reflect:!0}}}}]),n}(w.a);function E(e){return e.__SUB_ELEMENTS__&&0<e.__SUB_ELEMENTS__.length}function R(e){return Object(b.b)(i||(i=a()(['<ff-navigation-item .element="','" .direction="','" .type="','" .flyout
2="','" ._templates="','" ._key="','" ?selected="','"></ff-navigation-item>'])),e.element,e.direction,e.type,e.flyout,e.templates,e._key,e.selected)}window.customElements.define(x.is,x);var j,L=n(9),I=n(13),A=n(11);n.d(t,"Navigation",(function(){return M}));var T=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),M=function(e){p()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this))._templates={},e._navigationDataInitialized=!1,e._menuTemplate=void 0,e._key=k.a.common.randomString(10),e.navigationData=[],e.layout=T.horizontal,e.flyout="true",e.mobile="false",e.fetchInitial="true",e.firstFetch=2,e.fetchSize=1,e.maxFetch=10,e.fetchTime=100,e.subscribe=!0,e}return l()(n,[{key:"render",value:function(){var e=this;return Object(b.b)(j||(j=a()(['<input id="navigation-menu" type="checkbox"> <label for="navigation-menu" class="ffw-navigation-label"><div>','</div></label><div class="ffw-menu-items">',"</div>"])),this._menuTemplate,Object(_.a)(this.navigationData,(function(t){return R(e._getHeaderNavigationItem(t))})))}},{key:"connectedCallback",value:function(){var e=this;if(d()(y()(n.prototype),"connectedCallback",this).call(this),0===Object.keys(this._templates).length&&this.querySelectorAll(x.is).forEach((function(t){var n;e._templates[t.type||"default"]||(e._templates[t.type||"default"]=!(n=t)||Object(w.d)(n)?O:{dataTemplate:n.innerHTML,attributes:Array.prototype.reduce.call(n.attributes,(function(e,t){var n=t.name,r=t.value;return"unresolved"!==n&&(e[n]=r),e}),{})})})),!this._menuTemplate){var t=this.querySelector('[slot="menu"]');t&&(this._menuTemplate=t.innerHTML)}"false"!==this.fetchInitial&&this.fetch()}},{key:"fetch",value:function(){var e={type:"navigation",firstFetch:this.firstFetch,fetchSize:this.fetchSize,maxFetch:this.maxFetch,fetchTime:this.fetchTime,key:this._key};setTimeout((function(){return k.a.communication.EventAggregator.addFFEvent(e)}))}},{key:"update",value:function(e){var t=this;e.has("layout")&&this.layout&&this.updateLayout(),e.has("flyout")&&this._flyoutChanged(this.flyout),e.has("mobile")&&this._mobileChanged(this.mobile),e.has("navigationData")&&this.updateComplete.then((function(){t.updateLayout(),Promise.all(Array.from(t.querySelectorAll("".concat(x.is,'[cluster-level="0"]'))).map((function(e){return e.childrenUpdateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this._navigationDataInitialized||(e&&e[0]?this.navigationData=e[0]:this.warn("Navigation has no results."),this._navigationDataInitialized=!0),this.querySelectorAll(x.is).forEach((function(e){return e._subelementsUpdated()}))}},{key:"updateLayout",value:function(){var e=this;try{this.navigationData.forEach((function(t){t.direction=e.layout===T.horizontal?P.down:t.template.attributes.direction||P.default})),this.querySelectorAll("".concat(x.is,':not([cluster-level="0"])')).forEach((function(e){e.direction=e._template.attributes.direction||P.default}))}catch(e){this.warn("Failed to change layout",e)}}},{key:"_flyoutChanged",value:function(e){e&&this.querySelectorAll(x.is).forEach((function(t){return t.flyout=e}))}},{key:"_mobileChanged",value:function(e){"true"===e&&(this.flyout="false")}},{key:"_getHeaderNavigationItem",value:function(e){var t=(this._templates.header||this._templates.default).attributes.direction||P.default;return{type:"header",templates:this._templates,direction:this.layout===T.horizontal?P.down:t,element:e,flyout:this.flyout,_key:this._key}}}],[{key:"is",get:function(){return"ff-navigation"}},{key:"properties",get:function(){return{navigationData:{type:Array,attribute:!1},layout:{type:String,reflect:!0},flyout:{type:String,reflect:!0},mobile:{type:String,reflect:!0},fetchInitial:{type:String,attribute:"fetch-initial"},firstFetch:{type:Number,attribute:"first-fetch"},fetchSize:{type:Number,attribute:"fetch-size"},maxFetch:{type:Number,attribute:"max-fetch"},fetchTime:{type:Number,attribute:"fetch-time"},subscribe:{type:w.c}}}}]),n}(Object(L.a)([Object(I.ElementLog)(),Object(A.a)(A.b.navigation)],w.a));window.customElements.define(M.is,M)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(9),m=n(26);var v=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"recordId",get:function(){return this.getAttribute("record-id")},set:function(e){return this.setAttribute("record-id",e)}},{key:"count",get:function(){return this.getAttribute("count")}
2,set:function(e){this.setAttribute("count",e)}},{key:"price",get:function(){return this.getAttribute("price")},set:function(e){this.setAttribute("price",e)}},{key:"channel",get:function(){return this.getAttribute("channel")},set:function(e){this.setAttribute("channel",e)}},{key:"connectedCallback",value:function(){this.count||(this.count="1")}}],[{key:"is",get:function(){return"ff-checkout-tracking-item"}}]),n}(n.n(m)()(HTMLElement));window.customElements.define(v.is,v);var g=n(46),y=n(13),b=n(15);n.d(t,"CheckoutTracking",(function(){return _}));var _=function(e){s()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"disableAutoTracking",get:function(){return this.hasAttribute("disable-auto-tracking")}},{key:"connectedCallback",value:function(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}},{key:"trackCheckoutItems",value:function(){!function(e,t){if(0!==Object.keys(t).length)7.3<=parseFloat(h.a.communication.globalSearchParameter.version)||Object(b.a)()?Object.keys(t).map((function(e){return{type:"getRecords",recordId:t[e],channel:e,topics:function(){return["checkout-tracking"]}}})).forEach((function(t){e.dispatchEvent(new CustomEvent("before-get-records",{detail:t,bubbles:!0})),t.success=h.a.common.concatFunctions(t.success,(function(t){t.forEach((function(t){var n=e.querySelector("[record-id='".concat(t.id,"']"));n&&t.record&&(t.record[g.INTERNAL_TRACKING_PRICE_FIELD_NAME]=n.price),e._trackCheckoutClick(n,t)}))})),h.a.communication.EventAggregator.addFFEvent(t)})):e.warn("Your FACT-Finder version does not support <ff-checkout-tracking>. Requires version 7.3 or ng")}(this,Array.prototype.reduce.call(this.querySelectorAll(v.is),(function(e,t){var n=t.channel||h.a.communication.globalSearchParameter.channel;return e[n]=e[n]||[],e[n].push(t.recordId.trim()),e}),{}))}}],[{key:"is",get:function(){return"ff-checkout-tracking"}}]),n}(Object(p.a)([Object(y.ElementLog)(),Object(g.Tracking)()],HTMLElement));window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t);var r,i=n(18),o=n.n(i),a=n(8),c=n.n(a),s=n(4),u=n.n(s),l=n(3),f=n.n(l),d=n(2),h=n.n(d),p=n(6),m=n.n(p),v=n(7),g=n.n(v),y=n(0),b=n.n(y),_=n(12),k=n(21),w=n.n(k),C=n(17),S=n(9),P=n(13),O=n(1),x=n(5),E=n(28);var R="[data-search='singleWord']",j={dataTemplate:'<div>\n                        <h1 data-search="singleWord">{{word}} ({{recordCount}}) </h1>\n                        <ff-record-list subscribe="false">\n                            <ff-record>\n                                <img data-image={{record.ImageName}} data-image-onerror="../img_not_found.gif">\n                                <div class="title">{{record.Title}}</div>\n                            </ff-record>\n                        </ff-record-list>\n                    </div>',attributes:{}},L=function(e){m()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._template=void 0,e._handleSingleSearchClick=I(w()(e)),e}return f()(n,[{key:"render",value:function(){return Object(_.g)(this._template?[this._template.dataTemplate]:[])}},{key:"firstUpdated",value:function(e){var t=this;h()(b()(n.prototype),"firstUpdated",this).call(this,e),this._template&&Object.keys(this._template.attributes).forEac
2h((function(e){return t.setAttribute(e,t._template.attributes[e])}))}},{key:"updated",value:function(e){h()(b()(n.prototype),"updated",this).call(this,e),e.has("word")&&A(this,this.word)}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector(C.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):Object(x.d)(this)||this.warn("".concat(C.RecordList.is," not found. Data will not be displayed."))}}],[{key:"is",get:function(){return"ff-single-word-search-record"}},{key:"properties",get:function(){return{_template:{type:Object,attribute:!1},word:{type:Object,attribute:!1}}}}]),n}(Object(S.a)([Object(P.ElementLog)()],x.a)),I=function(e){return function(){try{var t=O.a.common.getParameterString(e.word.searchParams),n=O.a.common.parameterStringToDict(t);n.type="search",O.a.communication.EventAggregator.addFFEvent(n)}catch(t){e.error(t)}}},A=function(e,t){if(e.hideSelf(),t){var n=e.querySelector(R);n&&(n.innerHTML=Object(E.a)(n.innerHTML,t));var r=e.querySelector(C.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(C.RecordList.is," not found. Data will not be displayed.")),T(e,e._handleSingleSearchClick),M(e,e._handleSingleSearchClick),e.showSelf()}},T=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.removeEventListener("click",t)}))},M=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.addEventListener("click",t)}))};window.customElements.define(L.is,L);var N,D,B=n(23),F=n(11);n.d(t,"SingleWordSearch",(function(){return V}));var V=function(e){m()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._headerTemplate=void 0,e._singleWordRecordTemplate=void 0,e._footerTemplate=void 0,e.words=[],e}return f()(n,[{key:"render",value:function(){var e=this;return!this.words||0<!this.words.length?Object(_.g)(N||(N=c()([""]))):Object(_.g)(D||(D=c()([""," "," ",""])),Object(x.e)(this._headerTemplate),Object(B.a)(this.words,(function(e){return e.word}),(function(t){return n=e._singleWordRecordTemplate,i=t,Object(_.g)(r||(r=c()(['<ff-single-word-search-record ._template="','" .word="','"></ff-single-word-search-record>'])),n,i);var n,i})),Object(x.e)(this._footerTemplate))}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(L.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e,t=this.querySelector(L.is),r=U(t),i=q(t);this._headerTemplate=this._headerTemplate||z(r),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(!(e=t)||Object(x.d)(e)?j:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,(function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{})}),this._footerTemplate=this._footerTemplate||z(i)}},{key:"_subscriptionCallback",value:function(e){this.words=e||[]}}],[{key:"is",get:function(){return"ff-single-word-search"}},{key:"properties",get:function(){return{words:{type:Array}}}}]),n}(Object(S.a)([Object(F.a)(F.b.singleWordSearch)],x.a)),U=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(0,t.indexOf(e))},q=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(t.indexOf(e)+1)},z=function(e){var t=document.createElement("div");return e.forEach((function(e){return t.appendChild(e)})),t.innerHTML};window.customElements.define(V.is,V)},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(42),_=n(12),k=new WeakMap,w=Object(_.f)((function(e){return function(t){if(!(t instanceof _.a)||t instanceof _.c||"style"!==t.committer.name||1<t.committer.parts.length)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var n=t.committer,r=n.element.style;k.has(t)||(r.cssText=n.strings.join(" "));var i=k.get(t);for(var o in i)o in e||(-1===o.indexOf("-")?r[o]=null:r.removeProperty(o));for(var a in e)-1===a.indexOf("-")?r[a]=e[a]:r.setProperty(a,e[a]);k.set(t,e)}})),C=n(1),S=n(5);n.d(t,"LoadingSpinner",(function(){return P}));var P=function(e){h()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).isActive=!1,e.strokeColor="#4285F4",e.manual=!1,e._subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){return Object(y.b)(r||(r=o()(['<div class="','"><svg style="','" class="ffw-spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="ffw-path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></div>'])),Object(b.a)({"ffw-hidden":!this.isActive}),w({stroke:this.strokeColor}))}},{key:"update",value:function(e){e.has("manual")&&(this.manual?this._subscriptionKey&&(C.a.communication.EventAggregator.removeBeforeDispatchingCallback(this._subscriptionKey),this._subscriptionKey=void 0):function(e){e._subscriptionKey||(e._subscriptionKey=C.a.communication.EventAggregator.addBeforeDispatchingCallback((function(t){-1!==["search","filter","sort","clearFilter","advisor"].indexOf(t.type)&&(e.show(),t.always=C.a.common.concatFunctions((function(){return e.hide()}),t.always))})))}(this)),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"show",value:function(){this.isActive=!0}},{key:"hide",value:function(){this.isActive=!1}}],[{key:"is",get:function(){return"ff-loading-spinner"}},{key:"properties",get:function(){return{isActive:{type:Boolean,reflect:!0,attribute:"is-active"},strokeColor:{type:String,attribute:"stroke-color"},manual:{type:Boolean,reflect:!0}}}}]),n}(S.a);window.customElements.define(P.is,P)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.