@bridgeline-digital/hawksearch-handlebars-ui 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see hawksearch-handlebars-ui.js.LICENSE.txt */
2
- (()=>{var e={675:function(e){var t;t=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(2)),r=n(a(45)),i=a(46),o=a(51),l=n(a(52)),c=n(a(49)),h=n(a(44)),u=s.default.create;function d(){var e=u();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=r.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=i.parser,e.parse=i.parse,e.parseWithoutProcessing=i.parseWithoutProcessing,e}var p=d();p.create=d,h.default(p),p.Visitor=c.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var n=a(3).default,s=a(1).default;t.__esModule=!0;var r=n(a(4)),i=s(a(37)),o=s(a(6)),l=n(a(5)),c=n(a(38)),h=s(a(44));function u(){var e=new r.HandlebarsEnvironment;return l.extend(e,r),e.SafeString=i.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=u();d.create=u,h.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=u;var s=a(5),r=n(a(6)),i=a(10),o=a(30),l=n(a(32)),c=a(33);t.VERSION="4.7.7",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var h="[object Object]";function u(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},i.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(s.toString.call(e)===h){if(t)throw new r.default("Arg not supported with multiple helpers");s.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(s.toString.call(e)===h)s.extend(this.partials,e);else{if(void 0===t)throw new r.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(s.toString.call(e)===h){if(t)throw new r.default("Arg not supported with multiple decorators");s.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=l.default.log;t.log=d,t.createFrame=s.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return s.test(e)?e.replace(n,r):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=i({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,s=/[&<>"'`=]/;function r(e){return a[e]}function i(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,a){"use strict";var n=a(7).default;t.__esModule=!0;var s=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var a=t&&t.loc,i=void 0,o=void 0,l=void 0,c=void 0;a&&(i=a.start.line,o=a.end.line,l=a.start.column,c=a.end.column,e+=" - "+i+":"+l);for(var h=Error.prototype.constructor.call(this,e),u=0;u<s.length;u++)this[s[u]]=h[s[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=i,this.endLineNumber=o,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t,a){return n.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){s.default(e),r.default(e),i.default(e),o.default(e),l.default(e),c.default(e),h.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||delete e.helpers[t])};var s=n(a(11)),r=n(a(12)),i=n(a(25)),o=n(a(26)),l=n(a(27)),c=n(a(28)),h=n(a(29))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,a){var s=a.inverse,r=a.fn;if(!0===t)return r(this);if(!1===t||null==t)return s(this);if(n.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):s(this);if(a.data&&a.ids){var i=n.createFrame(a.data);i.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:i}}return r(t,a)}))},e.exports=t.default},function(e,t,a){(function(n){"use strict";var s=a(13).default,r=a(1).default;t.__esModule=!0;var i=a(5),o=r(a(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var a,r=t.fn,l=t.inverse,c=0,h="",u=void 0,d=void 0;function p(t,a,n){u&&(u.key=t,u.index=a,u.first=0===a,u.last=!!n,d&&(u.contextPath=d+t)),h+=r(e[t],{data:u,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(u=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var f=e.length;c<f;c++)c in e&&p(c,c,c===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var v=[],m=e[n.Symbol.iterator](),g=m.next();!g.done;g=m.next())v.push(g.value);for(f=(e=v).length;c<f;c++)p(c,c,c===e.length-1)}else a=void 0,s(e).forEach((function(e){void 0!==a&&p(a,c-1),a=e,c++})),void 0!==a&&p(a,c-1,!0);return 0===c&&(h=l(this)),h}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),e.exports=a(21).Object.keys},function(e,t,a){var n=a(16);a(18)("keys",(function(e){return function(t){return e(n(t))}}))},function(e,t,a){var n=a(17);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var n=a(19),s=a(21),r=a(24);e.exports=function(e,t){var a=(s.Object||{})[e]||Object[e],i={};i[e]=t(a),n(n.S+n.F*r((function(){a(1)})),"Object",i)}},function(e,t,a){var n=a(20),s=a(21),r=a(22),i=function(e,t,a){var o,l,c,h=e&i.F,u=e&i.G,d=e&i.S,p=e&i.P,f=e&i.B,v=e&i.W,m=u?s:s[t]||(s[t]={}),g=u?n:d?n[t]:(n[t]||{}).prototype;for(o in u&&(a=t),a)(l=!h&&g&&o in g)&&o in m||(c=l?g[o]:a[o],m[o]=u&&"function"!=typeof g[o]?a[o]:f&&l?r(c,n):v&&g[o]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((m.prototype||(m.prototype={}))[o]=c))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,e.exports=i},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var n=a(23);e.exports=function(e,t,a){if(n(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,n){return e.call(t,a,n)};case 3:return function(a,n,s){return e.call(t,a,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=a(5),r=n(a(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new r.default("#if requires exactly one argument");return s.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||s.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,a){if(2!=arguments.length)throw new r.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],a=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var s=1;null!=a.hash.level?s=a.hash.level:a.data&&null!=a.data.level&&(s=a.data.level),t[0]=s,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,a){return e?a.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=a(5),r=n(a(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new r.default("#with requires exactly one argument");s.isFunction(e)&&(e=e.call(this));var a=t.fn;if(s.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=s.createFrame(t.data)).contextPath=s.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:n,blockParams:s.blockParams([e],[n&&n.contextPath])})}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){s.default(e)};var s=n(a(31))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,a,s){var r=e;return t.partials||(t.partials={},r=function(s,r){var i=a.partials;a.partials=n.extend({},i,t.partials);var o=e(s,r);return a.partials=i,o}),t.partials[s.args[0]]=s.fn,r}))},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5),s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(s.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=s.lookupLevel(e),"undefined"!=typeof console&&s.lookupLevel(s.level)<=e){var t=s.methodMap[e];console[t]||(t="log");for(var a=arguments.length,n=Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];console[t].apply(console,n)}}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";var n=a(34).default,s=a(13).default,r=a(3).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var a=n(null);return a.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(a,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,a){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,a)},t.resetLoggedProperties=function(){s(l).forEach((function(e){delete l[e]}))};var i=a(36),o=r(a(32)),l=n(null)},function(e,t,a){e.exports={default:a(35),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t,a){"use strict";var n=a(34).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return s.extend.apply(void 0,[n(null)].concat(t))};var s=a(5)},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(39).default,s=a(13).default,r=a(3).default,i=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=c.COMPILER_REVISION;if(!(t>=c.LAST_COMPATIBLE_COMPILER_REVISION&&t<=c.COMPILER_REVISION)){if(t<c.LAST_COMPATIBLE_COMPILER_REVISION){var n=c.REVISION_CHANGES[a],s=c.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0],r={strict:function(e,t,a){if(!e||!(t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:a});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var a=e[t];return null==a||Object.prototype.hasOwnProperty.call(e,t)||d.resultIsAllowed(a,r.protoAccessControl,t)?a:void 0},lookup:function(e,t){for(var a=e.length,n=0;n<a;n++)if(null!=(e[n]&&r.lookupProperty(e[n],t)))return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(a,n,s){s.hash&&(n=o.extend({},n,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,n,s);var r=o.extend({},s,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=t.VM.invokePartial.call(this,a,n,r);if(null==i&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),i=s.partials[s.name](n,r)),null!=i){if(s.indent){for(var c=i.split("\n"),h=0,u=c.length;h<u&&(c[h]||h+1!==u);h++)c[h]=s.indent+c[h];i=c.join("\n")}return i}throw new l.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,n,s){var r=this.programs[e],i=this.fn(e);return t||s||n||a?r=p(this,e,i,t,a,n,s):r||(r=this.programs[e]=p(this,e,i)),r},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var a=e||t;return e&&t&&e!==t&&(a=o.extend({},t,e)),a},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=a.data;i._setup(a),!a.partial&&e.useData&&(n=v(t,n));var s=void 0,o=e.useBlockParams?[]:void 0;function l(t){return""+e.main(r,t,r.helpers,r.partials,n,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(l=m(e.main,l,r,a.depths||[],n,o))(t,a)}return i.isTop=!0,i._setup=function(n){if(n.partial)r.protoAccessControl=n.protoAccessControl,r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks;else{var i=o.extend({},t.helpers,n.helpers);!function(e,t){s(e).forEach((function(a){var n=e[a];e[a]=function(e,t){var a=t.lookupProperty;return u.wrapHelper(e,(function(e){return o.extend({lookupProperty:a},e)}))}(n,t)}))}(i,r),r.helpers=i,e.usePartial&&(r.partials=r.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=o.extend({},t.decorators,n.decorators)),r.hooks={},r.protoAccessControl=d.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||a;h.moveHelperToHooks(r,"helperMissing",l),h.moveHelperToHooks(r,"blockHelperMissing",l)}},i._child=function(t,a,n,s){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!s)throw new l.default("must pass parent depths");return p(r,t,e[t],a,0,n,s)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,a){return e?e.call||a.name||(a.name=e,e=a.partials[e]):e="@partial-block"===a.name?a.data["partial-block"]:a.partials[a.name],e},t.invokePartial=function(e,t,a){var n=a.data&&a.data["partial-block"];a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var s=void 0;if(a.fn&&a.fn!==f&&function(){a.data=c.createFrame(a.data);var e=a.fn;s=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=c.createFrame(a.data),a.data["partial-block"]=n,e(t,a)},e.partials&&(a.partials=o.extend({},a.partials,e.partials))}(),void 0===e&&s&&(e=s),void 0===e)throw new l.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=f;var o=r(a(5)),l=i(a(6)),c=a(4),h=a(10),u=a(43),d=a(33);function p(e,t,a,n,s,r,i){function o(t){var s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=i;return!i||t==i[0]||t===e.nullContext&&null===i[0]||(o=[t].concat(i)),a(e,t,e.helpers,e.partials,s.data||n,r&&[s.blockParams].concat(r),o)}return(o=m(a,o,e,i,n,r)).program=t,o.depth=i?i.length:0,o.blockParams=s||0,o}function f(){return""}function v(e,t){return t&&"root"in t||((t=t?c.createFrame(t):{}).root=e),t}function m(e,t,a,n,s,r){if(e.decorator){var i={};t=e.decorator(t,i,a,n&&n[0],s,r,n),o.extend(t,i)}return t}},function(e,t,a){e.exports={default:a(40),__esModule:!0}},function(e,t,a){a(41),e.exports=a(21).Object.seal},function(e,t,a){var n=a(42);a(18)("seal",(function(e){return function(t){return e&&n(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){(function(a){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==a?a:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default,s=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=h,t.parse=function(e,t){var a=h(e,t);return new i.default(t).accept(a)};var r=n(a(47)),i=n(a(48)),o=s(a(50)),l=a(5);t.parser=r.default;var c={};function h(e,t){return"Program"===e.type?e:(r.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},r.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,n,s,r,i){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:this.$=n.prepareProgram(r[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=r[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(r[o]),strip:n.stripFlags(r[o],r[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:r[o],value:r[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(r[o-2],r[o-1],r[o],this._$);break;case 12:this.$={path:r[o-3],params:r[o-2],hash:r[o-1]};break;case 13:this.$=n.prepareBlock(r[o-3],r[o-2],r[o-1],r[o],!1,this._$);break;case 14:this.$=n.prepareBlock(r[o-3],r[o-2],r[o-1],r[o],!0,this._$);break;case 15:this.$={open:r[o-5],path:r[o-4],params:r[o-3],hash:r[o-2],blockParams:r[o-1],strip:n.stripFlags(r[o-5],r[o])};break;case 16:case 17:this.$={path:r[o-4],params:r[o-3],hash:r[o-2],blockParams:r[o-1],strip:n.stripFlags(r[o-5],r[o])};break;case 18:this.$={strip:n.stripFlags(r[o-1],r[o-1]),program:r[o]};break;case 19:var l=n.prepareBlock(r[o-2],r[o-1],r[o],r[o],!1,this._$),c=n.prepareProgram([l],r[o-1].loc);c.chained=!0,this.$={strip:r[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:r[o-1],strip:n.stripFlags(r[o-2],r[o])};break;case 22:case 23:this.$=n.prepareMustache(r[o-3],r[o-2],r[o-1],r[o-4],n.stripFlags(r[o-4],r[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:r[o-3],params:r[o-2],hash:r[o-1],indent:"",strip:n.stripFlags(r[o-4],r[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(r[o-2],r[o-1],r[o],this._$);break;case 26:this.$={path:r[o-3],params:r[o-2],hash:r[o-1],strip:n.stripFlags(r[o-4],r[o])};break;case 29:this.$={type:"SubExpression",path:r[o-3],params:r[o-2],hash:r[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:r[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(r[o-2]),value:r[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(r[o-1]);break;case 35:this.$={type:"StringLiteral",value:r[o],original:r[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(r[o]),original:Number(r[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===r[o],original:"true"===r[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,r[o],this._$);break;case 43:this.$=n.preparePath(!1,r[o],this._$);break;case 44:r[o-2].push({part:n.id(r[o]),original:r[o],separator:r[o-1]}),this.$=r[o-2];break;case 45:this.$=[{part:n.id(r[o]),original:r[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:r[o-1].push(r[o]);break;case 98:case 100:this.$=[r[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],a=[null],n=[],s=this.table,r="",i=0,o=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;n.push(c);var h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var u,d,p,f,v,m,g,y,k,w,b={};;){if(p=t[t.length-1],this.defaultActions[p]?f=this.defaultActions[p]:(null==u&&(w=void 0,"number"!=typeof(w=this.lexer.lex()||1)&&(w=this.symbols_[w]||w),u=w),f=s[p]&&s[p][u]),void 0===f||!f.length||!f[0]){var _="";if(!l){for(m in k=[],s[p])this.terminals_[m]&&m>2&&k.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[u]||u)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==u?"end of input":"'"+(this.terminals_[u]||u)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[u]||u,line:this.lexer.yylineno,loc:c,expected:k})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+u);switch(f[0]){case 1:t.push(u),a.push(this.lexer.yytext),n.push(this.lexer.yylloc),t.push(f[1]),u=null,d?(u=d,d=null):(o=this.lexer.yyleng,r=this.lexer.yytext,i=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(g=this.productions_[f[1]][1],b.$=a[a.length-g],b._$={first_line:n[n.length-(g||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(g||1)].first_column,last_column:n[n.length-1].last_column},h&&(b._$.range=[n[n.length-(g||1)].range[0],n[n.length-1].range[1]]),void 0!==(v=this.performAction.call(b,r,o,i,this.yy,f[1],a,n)))return v;g&&(t=t.slice(0,-1*g*2),a=a.slice(0,-1*g),n=n.slice(0,-1*g)),t.push(this.productions_[f[1]][0]),a.push(b.$),n.push(b._$),y=s[t[t.length-2]][t[t.length-1]],t.push(y);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length&&(!(a=this._input.match(this.rules[r[i]]))||t&&!(a[0].length>t[0].length)||(t=a,n=i,this.options.flex));i++);return t?((s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,r[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,n){function s(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(s(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(s(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(s(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=s(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=s(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function a(){this.yy={}}return e.lexer=t,a.prototype=e,e.Parser=a,new a}();t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(49));function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function i(e,t,a){void 0===t&&(t=e.length);var n=e[t-1],s=e[t-2];return n?"ContentStatement"===n.type?(s||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var n=e[t+1],s=e[t+2];return n?"ContentStatement"===n.type?(s||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:a}function l(e,t,a){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(a||!n.rightStripped)){var s=n.value;n.value=n.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function c(e,t,a){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(a||!n.leftStripped)){var s=n.value;return n.value=n.value.replace(a?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}r.prototype=new s.default,r.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,s=0,r=n.length;s<r;s++){var h=n[s],u=this.accept(h);if(u){var d=i(n,s,a),p=o(n,s,a),f=u.openStandalone&&d,v=u.closeStandalone&&p,m=u.inlineStandalone&&d&&p;u.close&&l(n,s,!0),u.open&&c(n,s,!0),t&&m&&(l(n,s),c(n,s)&&"PartialStatement"===h.type&&(h.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),t&&f&&(l((h.program||h.inverse).body),c(n,s)),t&&v&&(l(n,s),c((h.inverse||h.program).body))}}return e},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,n=a,s=a;if(a&&a.chained)for(n=a.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var r={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:i((n||t).body)};if(e.openStrip.close&&l(t.body,null,!0),a){var h=e.inverseStrip;h.open&&c(t.body,null,!0),h.close&&l(n.body,null,!0),e.closeStrip.open&&c(s.body,null,!0),!this.options.ignoreStandalone&&i(t.body)&&o(n.body)&&(c(t.body),l(n.body))}else e.closeStrip.open&&c(t.body,null,!0);return r},r.prototype.Decorator=r.prototype.MustacheStatement=function(e){return e.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=r,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(6));function r(){this.parents=[]}function i(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){i.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}r.prototype={constructor:r,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!r.prototype[a.type])throw new s.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new s.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new s.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:i,Decorator:i,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=r,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var n=e?"@":"",r=[],i=0,o=0,l=t.length;o<l;o++){var c=t[o].part,h=t[o].original!==c;if(n+=(t[o].separator||"")+c,h||".."!==c&&"."!==c&&"this"!==c)r.push(c);else{if(r.length>0)throw new s.default("Invalid path: "+n,{loc:a});".."===c&&i++}}return{type:"PathExpression",data:e,depth:i,parts:r,original:n,loc:a}},t.prepareMustache=function(e,t,a,n,s,r){var i=n.charAt(3)||n.charAt(2),o="{"!==i&&"&"!==i;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:s,loc:this.locInfo(r)}},t.prepareRawBlock=function(e,t,a,n){r(e,a);var s={type:"Program",body:t,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,a,n,i,o){n&&n.path&&r(e,n);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,h=void 0;if(a){if(l)throw new s.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=n.strip),h=a.strip,c=a.program}return i&&(i=c,c=t,t=i),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:h,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,n=e[e.length-1].loc;a&&n&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,n){return r(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(n)}};var s=n(a(6));function r(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new s.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var n=a(34).default,s=a(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=a.parse(e,t),s=(new a.Compiler).compile(n,t);return(new a.JavaScriptCompiler).compile(s,t)},t.compile=function(e,t,a){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=i.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function s(){var n=a.parse(e,t),s=(new a.Compiler).compile(n,t),r=(new a.JavaScriptCompiler).compile(s,t,void 0,!0);return a.template(r)}function o(e,t){return n||(n=s()),n.call(this,e,t)}return o._setup=function(e){return n||(n=s()),n._setup(e)},o._child=function(e,t,a,r){return n||(n=s()),n._child(e,t,a,r)},o};var r=s(a(6)),i=a(5),o=s(a(45)),l=[].slice;function c(){}function h(e,t){if(e===t)return!0;if(i.isArray(e)&&i.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!h(e[a],t[a]))return!1;return!0}}function u(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var n=this.opcodes[a],s=e.opcodes[a];if(n.opcode!==s.opcode||!h(n.args,s.args))return!1}for(t=this.children.length,a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=i.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,n=0;n<a;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){u(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,a):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new r.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,s="SubExpression"===e.name.type;s&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var i=e.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",s,n,i),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){u(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var n=e.path,s=n.parts[0],r=null!=t||null!=a;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",s,r)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var n=this.setupFullMustacheParams(e,t,a),s=e.path,i=s.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",n.length,i);else{if(this.options.knownHelpersOnly)throw new r.default("You specified knownHelpersOnly, but used the unknown helper "+i,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",n.length,s.original,o.default.helpers.simpleId(s))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),n=!e.depth&&!a&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,n=t.length;for(this.opcode("pushHash");a<n;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),n=!a&&o.default.helpers.helperExpression(e),s=!a&&(n||t);if(s&&!n){var r=e.path.parts[0],i=this.options;i.knownHelpers[r]?n=!0:i.knownHelpersOnly&&(s=!1)}return n?"helper":s?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,n){var s=e.params;return this.pushParams(s),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),s},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var n=this.options.blockParams[t],s=n&&i.indexOf(n,e);if(n&&s>=0)return[t,s]}}}},function(e,t,a){"use strict";var n=a(13).default,s=a(1).default;t.__esModule=!0;var r=a(4),i=s(a(6)),o=a(5),l=s(a(53));function c(e){this.value=e}function h(){}h.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=r.COMPILER_REVISION;return[e,r.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,a,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,r=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=s.length;l<c;l++)r=s[l],this.source.currentLocation=r.loc,o=o||r.loc,this[r.opcode].apply(this,r.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(n);if(this.isChild)return h;var u={compiler:this.compilerInfo(),main:h};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var d=this.context,p=d.programs,f=d.decorators;for(l=0,c=p.length;l<c;l++)p[l]&&(u[l]=p[l],f[l]&&(u[l+"_d"]=f[l],u.useDecorators=!0));return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),n?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),t.srcName?(u=u.toStringWithSourceMap({file:t.destName})).map=u.map&&u.map.toString():u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",s=this.stackVars.concat(this.registers.list);s.length>0&&(a+=", "+s.join(", "));var r=0;n(this.aliases).forEach((function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(a+=", alias"+ ++r+"="+e,n.children[0]="alias"+r)})),this.lookupPropertyFunctionIsUsed&&(a+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var o=this.mergeSource(a);return e?(i.push(o),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,n=void 0,s=void 0,r=void 0,i=void 0;return this.source.each((function(e){e.appendToBuffer?(r?e.prepend(" + "):r=e,i=e):(r&&(s?r.prepend("buffer += "):n=!0,i.add(";"),r=i=void 0),s=!0,t||(a=!1))})),a?r?(r.prepend("return "),i.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),r?(r.prepend("return buffer + "),i.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var n=this.popStack();a.splice(1,0,n),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,n){var s=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[s++])),this.resolvePath("context",e,s,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,n,s){var r=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,n){var s=t.popStack(),r=0,i=a.length;for(e&&i--;r<i;r++)s=t.nameLookup(s,a[r],n);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(a[r]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}(this.options.strict&&s,this,t,e));else for(var i=t.length;a<i;a++)this.replaceStack((function(s){var i=r.nameLookup(s,t[a],e);return n?[" && ",i]:[" != null ? ",i," : ",s]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(a,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,a){var n=this.popStack(),s=this.setupHelper(e,t),r=[];a&&r.push(s.name),r.push(n),this.options.strict||r.push(this.aliasable("container.hooks.helperMissing"));var i=["(",this.itemsSeparatedBy(r,"||"),")"],o=this.source.functionCall(i,"call",s.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var n=1;n<e.length;n++)a.push(t,e[n]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),s=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(s[0]="(helper = ",s.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",s,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,a){var n=[],s=this.setupParams(t,1,n);e&&(t=this.popStack(),delete s.name),a&&(s.indent=JSON.stringify(a)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),a=void 0,n=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(n=this.popStack(),a=this.popStack());var r=this.hash;a&&(r.contexts[e]=a),n&&(r.types[e]=n),s&&(r.ids[e]=s),r.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:h,compileChildren:function(e,t){for(var a=e.children,n=void 0,s=void 0,r=0,i=a.length;r<i;r++){n=a[r],s=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=s.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof c||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new c(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,n=void 0,s=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var r=this.popStack(!0);if(r instanceof c)t=["(",a=[r.value]],s=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",r,")"],a=this.topStack()}var l=e.call(this,a);s||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var n=e[t];if(n instanceof c)this.compileStack.push(n);else{var s=this.incrStack();this.pushSource([s," = ",n,";"]),this.compileStack.push(s)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof c)return a.value;if(!t){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof c?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,a){var n={},s=[],r=[],i=[],o=!a,l=void 0;o&&(a=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),h=this.popStack();(h||c)&&(n.fn=h||"container.noop",n.inverse=c||"container.noop");for(var u=t;u--;)l=this.popStack(),a[u]=l,this.trackIds&&(i[u]=this.popStack()),this.stringParams&&(r[u]=this.popStack(),s[u]=this.popStack());return o&&(n.args=this.source.generateArray(a)),this.trackIds&&(n.ids=this.source.generateArray(i)),this.stringParams&&(n.types=this.source.generateArray(r),n.contexts=this.source.generateArray(s)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,a,n){var s=this.setupParams(e,t,a);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),n?(this.useRegister("options"),a.push("options"),["options=",s]):a?(a.push(s),""):s}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=h.RESERVED_WORDS={},a=0,n=e.length;a<n;a++)t[e[a]]=!0}(),h.isValidJavaScriptVariableName=function(e){return!h.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=h,e.exports=t.default},function(e,t,a){"use strict";var n=a(13).default;t.__esModule=!0;var s=a(5),r=void 0;function i(e,t,a){if(s.isArray(e)){for(var n=[],r=0,i=e.length;r<i;r++)n.push(t.wrap(e[r],a));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}r||((r=function(e,t,a,n){this.src="",n&&this.add(n)}).prototype={add:function(e){s.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){s.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new r(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof r?e:(e=i(e,this,t),new r(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];n(e).forEach((function(n){var s=i(e[n],t);"undefined"!==s&&a.push([t.quotedString(n),":",s])}));var s=this.generateList(a);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var t=this.empty(),a=0,n=e.length;a<n;a++)a&&t.add(","),t.add(i(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=t()}},t={};function a(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,a),r.exports}a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(675);const t=a.p+"placeholder.c99b7374b9bf579d0fd0.png";var n,s,r,i;!function(e){e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content"}(n||(n={})),function(e){e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple"}(s||(s={})),function(e){e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom"}(r||(r={})),function(e){e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement"}(i||(i={}));const o="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;const c=o||l||Function("return this")(),h=c.Symbol,u=Array.isArray;var d=Object.prototype,p=d.hasOwnProperty,f=d.toString,v=h?h.toStringTag:void 0;var m=Object.prototype.toString;var g=h?h.toStringTag:void 0;const y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?function(e){var t=p.call(e,v),a=e[v];try{e[v]=void 0;var n=!0}catch(e){}var s=f.call(e);return n&&(t?e[v]=a:delete e[v]),s}(e):function(e){return m.call(e)}(e)},k=function(e){return null!=e&&"object"==typeof e},w=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==y(e)};var b=h?h.prototype:void 0,_=b?b.toString:void 0;const S=function e(t){if("string"==typeof t)return t;if(u(t))return function(e,t){for(var a=-1,n=null==e?0:e.length,s=Array(n);++a<n;)s[a]=t(e[a],a,e);return s}(t,e)+"";if(w(t))return _?_.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a},x=(E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==E?void 0:E[e]});var E,P=/&(?:amp|lt|gt|quot|#39);/g,C=RegExp(P.source);const H=function(e){return(e=null==(t=e)?"":S(t))&&C.test(e)?e.replace(P,x):e;var t},q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let R;const I=new Uint8Array(16);function L(){if(!R&&(R="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!R))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(I)}const A=[];for(let e=0;e<256;++e)A.push((e+256).toString(16).slice(1));const T=function(e,t,a){if(q.randomUUID&&!t&&!e)return q.randomUUID();const n=(e=e||{}).random||(e.rng||L)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=n[e];return t}return function(e,t=0){return(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase()}(n)};class M{constructor(){var e,t,a,n,s,r,i,o,l,c,h,u,d,p,f;this.fieldMappings={imageUrl:(null===(e=Hawksearch.config.fieldMappings)||void 0===e?void 0:e.imageUrl)||"image",price:(null===(t=Hawksearch.config.fieldMappings)||void 0===t?void 0:t.price)||"price",salePrice:(null===(a=Hawksearch.config.fieldMappings)||void 0===a?void 0:a.salePrice)||"saleprice",title:(null===(n=Hawksearch.config.fieldMappings)||void 0===n?void 0:n.title)||"itemname",description:(null===(s=Hawksearch.config.fieldMappings)||void 0===s?void 0:s.description)||"longdescription",type:(null===(r=Hawksearch.config.fieldMappings)||void 0===r?void 0:r.type)||"type",url:(null===(i=Hawksearch.config.fieldMappings)||void 0===i?void 0:i.url)||"url"},this.queryStringParams={disableSpellcheck:(null===(o=Hawksearch.config.queryStringMappings)||void 0===o?void 0:o.disableSpellcheck)||"disableSpellcheck",facet:(null===(l=Hawksearch.config.queryStringMappings)||void 0===l?void 0:l.facet)||"facet",page:(null===(c=Hawksearch.config.queryStringMappings)||void 0===c?void 0:c.page)||"page",pageSize:(null===(h=Hawksearch.config.queryStringMappings)||void 0===h?void 0:h.pageSize)||"pageSize",query:(null===(u=Hawksearch.config.queryStringMappings)||void 0===u?void 0:u.query)||"query",searchWithin:(null===(d=Hawksearch.config.queryStringMappings)||void 0===d?void 0:d.searchWithin)||"searchWithin",sort:(null===(p=Hawksearch.config.queryStringMappings)||void 0===p?void 0:p.sort)||"sort"},this.searchUrl=null!==(f=Hawksearch.config.searchUrl)&&void 0!==f?f:"/search"}httpPost(e,t){return a=this,n=void 0,r=function*(){const a=this.baseUrl+e,n=this.getHeaders(),s=yield fetch(a,{method:"POST",headers:n,body:JSON.stringify(t)}),r=s.headers.get("content-type");return(null==r?void 0:r.startsWith("application/json"))?s.json():void 0},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function o(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof s?a:new s((function(e){e(a)}))).then(i,o)}l((r=r.apply(a,n||[])).next())}));var a,n,s,r}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=H(t),t=decodeURIComponent(t),t}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return T()}}const D=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}query(e){return t=this,a=void 0,s=function*(){const t={query:e};return yield this.executeAutocomplete(t)},new((n=void 0)||(n=Promise))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof n?a:new n((function(e){e(a)}))).then(i,o)}l((s=s.apply(t,a||[])).next())}));var t,a,n,s}executeAutocomplete(e){const t={ClientGuid:Hawksearch.config.clientId,Keyword:e.query,DisplayFullResponse:!0};return this.triggerEvent("hawksearch:before-autocomplete-executed",t),this.httpPost("/autocomplete",t).then((t=>{this.triggerEvent("hawksearch:after-autocomplete-executed",t);const a=this.convertAutocompleteResponse(e.query,t);return this.triggerEvent("hawksearch:autocomplete-completed",a),this.bindComponent(a),a}))}convertAutocompleteResponse(e,t){return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map((e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:e.FieldQSValue,url:`${this.searchUrl}?${this.queryStringParams.facet}-${e.FieldQSName}=${encodeURIComponent(e.FieldQSValue)}`})))},content:{title:t.ContentHeading,results:t.Content.map((e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url}))),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map((e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`})))},products:{title:t.ProductHeading,results:t.Products.map((e=>{var t;return{id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.ProductName),sku:e.Sku||void 0,imageUrl:null===(t=e.Thumb)||void 0===t?void 0:t.Url,url:e.Url}})),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e){this.triggerEvent("hawksearch:bind-autocomplete",e)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});dispatchEvent(a)}},N=function(e,t){return e===t||e!=e&&t!=t},O=function(e,t){for(var a=e.length;a--;)if(N(e[a][0],t))return a;return-1};var j=Array.prototype.splice;function F(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}F.prototype.clear=function(){this.__data__=[],this.size=0},F.prototype.delete=function(e){var t=this.__data__,a=O(t,e);return!(a<0||(a==t.length-1?t.pop():j.call(t,a,1),--this.size,0))},F.prototype.get=function(e){var t=this.__data__,a=O(t,e);return a<0?void 0:t[a][1]},F.prototype.has=function(e){return O(this.__data__,e)>-1},F.prototype.set=function(e,t){var a=this.__data__,n=O(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this};const V=F,B=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!B(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},z=c["__core-js_shared__"];var U,W=(U=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"";var Q=Function.prototype.toString;const Z=function(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var K=/^\[object .+?Constructor\]$/,Y=Function.prototype,J=Object.prototype,G=Y.toString,X=J.hasOwnProperty,ee=RegExp("^"+G.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const te=function(e){return!(!B(e)||(t=e,W&&W in t))&&($(e)?ee:K).test(Z(e));var t},ae=function(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return te(a)?a:void 0},ne=ae(c,"Map"),se=ae(Object,"create");var re=Object.prototype.hasOwnProperty;var ie=Object.prototype.hasOwnProperty;function oe(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oe.prototype.get=function(e){var t=this.__data__;if(se){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return re.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:ie.call(t,e)},oe.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=se&&void 0===t?"__lodash_hash_undefined__":t,this};const le=oe,ce=function(e,t){var a,n,s=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?s["string"==typeof t?"string":"hash"]:s.map};function he(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new le,map:new(ne||V),string:new le}},he.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return ce(this,e).get(e)},he.prototype.has=function(e){return ce(this,e).has(e)},he.prototype.set=function(e,t){var a=ce(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this};const ue=he;function de(e){var t=this.__data__=new V(e);this.size=t.size}de.prototype.clear=function(){this.__data__=new V,this.size=0},de.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},de.prototype.get=function(e){return this.__data__.get(e)},de.prototype.has=function(e){return this.__data__.has(e)},de.prototype.set=function(e,t){var a=this.__data__;if(a instanceof V){var n=a.__data__;if(!ne||n.length<199)return n.push([e,t]),this.size=++a.size,this;a=this.__data__=new ue(n)}return a.set(e,t),this.size=a.size,this};const pe=de,fe=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ve=function(e,t,a){"__proto__"==t&&fe?fe(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a};var me=Object.prototype.hasOwnProperty;const ge=function(e,t,a){var n=e[t];me.call(e,t)&&N(n,a)&&(void 0!==a||t in e)||ve(e,t,a)},ye=function(e,t,a,n){var s=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=n?n(a[o],e[o],o,a,e):void 0;void 0===l&&(l=e[o]),s?ve(a,o,l):ge(a,o,l)}return a},ke=function(e){return k(e)&&"[object Arguments]"==y(e)};var we=Object.prototype,be=we.hasOwnProperty,_e=we.propertyIsEnumerable;const Se=ke(function(){return arguments}())?ke:function(e){return k(e)&&be.call(e,"callee")&&!_e.call(e,"callee")};var xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=xe&&"object"==typeof module&&module&&!module.nodeType&&module,Pe=Ee&&Ee.exports===xe?c.Buffer:void 0;const Ce=(Pe?Pe.isBuffer:void 0)||function(){return!1};var He=/^(?:0|[1-9]\d*)$/;const qe=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&He.test(e))&&e>-1&&e%1==0&&e<t},Re=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ie={};Ie["[object Float32Array]"]=Ie["[object Float64Array]"]=Ie["[object Int8Array]"]=Ie["[object Int16Array]"]=Ie["[object Int32Array]"]=Ie["[object Uint8Array]"]=Ie["[object Uint8ClampedArray]"]=Ie["[object Uint16Array]"]=Ie["[object Uint32Array]"]=!0,Ie["[object Arguments]"]=Ie["[object Array]"]=Ie["[object ArrayBuffer]"]=Ie["[object Boolean]"]=Ie["[object DataView]"]=Ie["[object Date]"]=Ie["[object Error]"]=Ie["[object Function]"]=Ie["[object Map]"]=Ie["[object Number]"]=Ie["[object Object]"]=Ie["[object RegExp]"]=Ie["[object Set]"]=Ie["[object String]"]=Ie["[object WeakMap]"]=!1;const Le=function(e){return function(t){return e(t)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Te=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Me=Te&&Te.exports===Ae&&o.process;const De=function(){try{return Te&&Te.require&&Te.require("util").types||Me&&Me.binding&&Me.binding("util")}catch(e){}}();var Ne=De&&De.isTypedArray;const Oe=Ne?Le(Ne):function(e){return k(e)&&Re(e.length)&&!!Ie[y(e)]};var je=Object.prototype.hasOwnProperty;const Fe=function(e,t){var a=u(e),n=!a&&Se(e),s=!a&&!n&&Ce(e),r=!a&&!n&&!s&&Oe(e),i=a||n||s||r,o=i?function(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}(e.length,String):[],l=o.length;for(var c in e)!t&&!je.call(e,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qe(c,l))||o.push(c);return o};var Ve=Object.prototype;const Be=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ve)},$e=function(e,t){return function(a){return e(t(a))}},ze=$e(Object.keys,Object);var Ue=Object.prototype.hasOwnProperty;const We=function(e){return null!=e&&Re(e.length)&&!$(e)},Qe=function(e){return We(e)?Fe(e):function(e){if(!Be(e))return ze(e);var t=[];for(var a in Object(e))Ue.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)};var Ze=Object.prototype.hasOwnProperty;const Ke=function(e){if(!B(e))return function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}(e);var t=Be(e),a=[];for(var n in e)("constructor"!=n||!t&&Ze.call(e,n))&&a.push(n);return a},Ye=function(e){return We(e)?Fe(e,!0):Ke(e)};var Je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=Ge&&Ge.exports===Je?c.Buffer:void 0,et=Xe?Xe.allocUnsafe:void 0;const tt=function(){return[]};var at=Object.prototype.propertyIsEnumerable,nt=Object.getOwnPropertySymbols;const st=nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var a=-1,n=null==e?0:e.length,s=0,r=[];++a<n;){var i=e[a];t(i,a,e)&&(r[s++]=i)}return r}(nt(e),(function(t){return at.call(e,t)})))}:tt,rt=function(e,t){for(var a=-1,n=t.length,s=e.length;++a<n;)e[s+a]=t[a];return e},it=$e(Object.getPrototypeOf,Object),ot=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,st(e)),e=it(e);return t}:tt,lt=function(e,t,a){var n=t(e);return u(e)?n:rt(n,a(e))},ct=function(e){return lt(e,Qe,st)},ht=function(e){return lt(e,Ye,ot)},ut=ae(c,"DataView"),dt=ae(c,"Promise"),pt=ae(c,"Set"),ft=ae(c,"WeakMap");var vt="[object Map]",mt="[object Promise]",gt="[object Set]",yt="[object WeakMap]",kt="[object DataView]",wt=Z(ut),bt=Z(ne),_t=Z(dt),St=Z(pt),xt=Z(ft),Et=y;(ut&&Et(new ut(new ArrayBuffer(1)))!=kt||ne&&Et(new ne)!=vt||dt&&Et(dt.resolve())!=mt||pt&&Et(new pt)!=gt||ft&&Et(new ft)!=yt)&&(Et=function(e){var t=y(e),a="[object Object]"==t?e.constructor:void 0,n=a?Z(a):"";if(n)switch(n){case wt:return kt;case bt:return vt;case _t:return mt;case St:return gt;case xt:return yt}return t});const Pt=Et;var Ct=Object.prototype.hasOwnProperty;const Ht=c.Uint8Array,qt=function(e){var t=new e.constructor(e.byteLength);return new Ht(t).set(new Ht(e)),t};var Rt=/\w*$/;var It=h?h.prototype:void 0,Lt=It?It.valueOf:void 0;const At=function(e,t,a){var n,s,r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return qt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var a=t?qt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var a=t?qt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}(e,a);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(r=new(s=e).constructor(s.source,Rt.exec(s))).lastIndex=s.lastIndex,r;case"[object Symbol]":return n=e,Lt?Object(Lt.call(n)):{}}};var Tt=Object.create;const Mt=function(){function e(){}return function(t){if(!B(t))return{};if(Tt)return Tt(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();var Dt=De&&De.isMap;const Nt=Dt?Le(Dt):function(e){return k(e)&&"[object Map]"==Pt(e)};var Ot=De&&De.isSet;const jt=Ot?Le(Ot):function(e){return k(e)&&"[object Set]"==Pt(e)};var Ft="[object Arguments]",Vt="[object Function]",Bt={};Bt[Ft]=Bt["[object Array]"]=Bt["[object ArrayBuffer]"]=Bt["[object DataView]"]=Bt["[object Boolean]"]=Bt["[object Date]"]=Bt["[object Float32Array]"]=Bt["[object Float64Array]"]=Bt["[object Int8Array]"]=Bt["[object Int16Array]"]=Bt["[object Int32Array]"]=Bt["[object Map]"]=Bt["[object Number]"]=Bt["[object Object]"]=Bt["[object RegExp]"]=Bt["[object Set]"]=Bt["[object String]"]=Bt["[object Symbol]"]=Bt["[object Uint8Array]"]=Bt["[object Uint8ClampedArray]"]=Bt["[object Uint16Array]"]=Bt["[object Uint32Array]"]=!0,Bt["[object Error]"]=Bt[Vt]=Bt["[object WeakMap]"]=!1;const $t=function e(t,a,n,s,r,i){var o,l=1&a,c=2&a,h=4&a;if(n&&(o=r?n(t,s,r,i):n(t)),void 0!==o)return o;if(!B(t))return t;var d=u(t);if(d){if(o=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&Ct.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(t),!l)return function(e,t){var a=-1,n=e.length;for(t||(t=Array(n));++a<n;)t[a]=e[a];return t}(t,o)}else{var p=Pt(t),f=p==Vt||"[object GeneratorFunction]"==p;if(Ce(t))return function(e,t){if(t)return e.slice();var a=e.length,n=et?et(a):new e.constructor(a);return e.copy(n),n}(t,l);if("[object Object]"==p||p==Ft||f&&!r){if(o=c||f?{}:function(e){return"function"!=typeof e.constructor||Be(e)?{}:Mt(it(e))}(t),!l)return c?function(e,t){return ye(e,ot(e),t)}(t,function(e,t){return e&&ye(t,Ye(t),e)}(o,t)):function(e,t){return ye(e,st(e),t)}(t,function(e,t){return e&&ye(t,Qe(t),e)}(o,t))}else{if(!Bt[p])return r?t:{};o=At(t,p,l)}}i||(i=new pe);var v=i.get(t);if(v)return v;i.set(t,o),jt(t)?t.forEach((function(s){o.add(e(s,a,n,s,t,i))})):Nt(t)&&t.forEach((function(s,r){o.set(r,e(s,a,n,r,t,i))}));var m=d?void 0:(h?c?ht:ct:c?Ye:Qe)(t);return function(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););}(m||t,(function(s,r){m&&(s=t[r=s]),ge(o,r,e(s,a,n,r,t,i))})),o},zt=function(e){return $t(e,5)},Ut=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.tracking)||"https://tracking-dev.hawksearch.net/api"}trackAutocompleteClick(e,t,a,n){const r={Keyword:e,Name:a,SuggestType:t,Url:n};return this.trackEvent(s.AutocompleteClick,r)}trackBannerClick(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={BannerId:e,CampaignId:t,TrackingId:Hawksearch.searchResponse.trackingId};return this.trackEvent(s.BannerClick,n)}trackBannerImpression(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={BannerId:e,CampaignId:t,TrackingId:Hawksearch.searchResponse.trackingId};return this.trackEvent(s.BannerImpression,n)}trackPageLoad(e){const t={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(s.PageLoad,t)}trackSearchResultClick(e,t,a){var n;if(!(null===(n=Hawksearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={UniqueId:e,Url:t,TrackingId:Hawksearch.searchResponse.trackingId,RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:null==a?void 0:a.pageX,MouseY:null==a?void 0:a.pageY};return this.trackEvent(s.Click,r)}trackSearch(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:Hawksearch.searchResponse.trackingId,TypeId:t?i.Initial:i.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(s.Search,n)}trackEvent(e,t){if(!1===Hawksearch.config.trackingEnabled)return Promise.resolve();const a={ClientGuid:Hawksearch.config.clientId,EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};return this.httpPost("/trackevent",a)}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}};var Wt=function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}l((n=n.apply(e,t||[])).next())}))};const Qt=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}search(e){return Wt(this,void 0,void 0,(function*(){const t=yield this.executeSearch(e,!0,!1);return this.bindComponents(t),t}))}query(e,t=!1){return Wt(this,void 0,void 0,(function*(){if(window.location.pathname!==this.searchUrl){let t=this.searchUrl;return e&&(t=`${t}?${this.queryStringParams.query}=${encodeURIComponent(e)}`),window.location.assign(t),Promise.resolve()}if(e){const t=this.getRecentQueries(),a=5;t.includes(e)||(t.length>=a&&t.splice(a-1),t.unshift(e),this.saveRecentQueries(t))}const a={disableSpellcheck:!!t||void 0,query:e,newRequest:!0},n=yield this.executeSearch(a,!0,!1);return this.bindComponents(n),n}))}addFacetValue(e,t){var a,n;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const s=zt(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={}),this.clearExistingFacetValue(s,e,t),s.facets[e]=[...null!==(n=null===(a=s.facets[e])||void 0===a?void 0:a.filter((e=>e!==t)))&&void 0!==n?n:[],t];const r=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}removeFacetValue(e,t){return Wt(this,void 0,void 0,(function*(){if(this.ensureSearchRequest(),"searchWithin"===e)return yield this.searchWithin("");const a=zt(Hawksearch.searchRequest);a.newRequest=!1,a.page=void 0,this.clearExistingFacetValue(a,e,t);const n=yield this.executeSearch(a,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}includeFacetValue(e,t){const a=`@${t}`;return this.removeFacetValue(e,a)}excludeFacetValue(e,t){var a;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const n=`@${t}`,s=zt(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={}),this.clearExistingFacetValue(s,e,t),s.facets=Object.assign(Object.assign({},s.facets),{[e]:[...null!==(a=s.facets[e])&&void 0!==a?a:[],n]});const r=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}clearExistingFacetValue(e,t,a){var n,s,r;const i=`@${a=a.replace(/^@/,"")}`;e.facets||(e.facets={}),e.facets=Object.assign(Object.assign({},e.facets),{[t]:[...null!==(s=null===(n=e.facets[t])||void 0===n?void 0:n.filter((e=>e!==a&&e!==i)))&&void 0!==s?s:[]]}),(null===(r=e.facets[t])||void 0===r?void 0:r.length)||delete e.facets[t]}setFacetValue(e,t){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const a=zt(Hawksearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),a.facets[e]=[t];const n=yield this.executeSearch(a,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}modifySearch(e,t){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const a=zt(Hawksearch.searchRequest);a.query=e,a.facets=t,a.newRequest=!1,a.page=void 0;const n=yield this.executeSearch(a,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}searchWithin(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=zt(Hawksearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const a=yield this.executeSearch(t,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}selectTab(e){var t,a,n;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const s=zt(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={});const r=null===(n=null===(a=null===(t=Hawksearch.searchResponse)||void 0===t?void 0:t.facets)||void 0===a?void 0:a.find((e=>"tabs"===e.type)))||void 0===n?void 0:n.field;r&&(e?s.facets[r]=[e]:delete s.facets[r]);const i=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(i),this.bindPaginationComponent(i),this.bindSelectedFacetsComponent(i),this.bindTabsComponent(i),this.bindZoneComponent(i),i}))}paginate(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=zt(Hawksearch.searchRequest);t.newRequest=!1,t.page=e;const a=yield this.executeSearch(t,!1);return this.bindPaginationComponent(a),a}))}setPageSize(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=zt(Hawksearch.searchRequest);t.newRequest=!1,t.pageSize=e;const a=yield this.executeSearch(t,!1);return this.bindPageSizeComponent(a),this.bindPaginationComponent(a),a}))}sort(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=zt(Hawksearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const a=yield this.executeSearch(t,!1);return this.bindPaginationComponent(a),this.bindSortingComponent(a),a}))}executeSearch(e,t,a=!0){Hawksearch.searchRequest=e;const n={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},ClientGuid:Hawksearch.config.clientId,IgnoreSpellcheck:e.disableSpellcheck,Keyword:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort};return this.triggerEvent("hawksearch:before-search-executed",n),this.httpPost("/search",n).then((n=>{var s;this.triggerEvent("hawksearch:after-search-executed",n);const r=this.convertSearchResponse(e,n);return Hawksearch.searchResponse=r,Ut.trackSearch(e.query,t),this.setQueryString(),this.triggerEvent("hawksearch:search-completed",r),a&&(this.bindModifiedQueryComponent(r),this.bindQuerySuggestionsComponent(r),this.bindSearchFieldComponent(r),this.bindSearchResultsListComponent(r)),t&&r.redirect&&window.open(r.redirect.url,null!==(s=r.redirect.target)&&void 0!==s?s:"_self"),r}))}ensureSearchRequest(){if(!Hawksearch.searchRequest)throw new Error("You cannot refine search results until an initial search has been executed")}convertSearchResponse(e,t){var a,n,s,r,i,o;const l=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":return"color";case"link":return"link";case"openrange":if("datetime"===e.DataType)return"date-range";if(e.IsCurrency||e.IsNumeric)return"numeric-range";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";case"swatch":return"color";default:return"unsupported"}},c=e=>{const t=l(e);if(["date-range","numeric-range","range-slider"].includes(t))return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:e.IsCurrency||e.IsNumeric?{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}:void 0},h=(e,t)=>{var a,n;const s=null===(a=e.Ranges)||void 0===a?void 0:a.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(null==s?void 0:s.AssetFullUrl)return this.getUrl(null===(n=Hawksearch.config.urlPrefixes)||void 0===n?void 0:n.assets,s.AssetFullUrl)},u=(e,t)=>{var a,n,s;let r=null===(a=e.SwatchData)||void 0===a?void 0:a.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(r||(r=null===(n=e.SwatchData)||void 0===n?void 0:n.find((e=>e.IsDefault))),r)return{name:t.Label,hex:r.Color||r.Value,imageUrl:this.getUrl(null===(s=Hawksearch.config.urlPrefixes)||void 0===s?void 0:s.assets,r.AssetUrl||r.AssetName)}},d=(e,t,a)=>"recent-searches"===l(e)?this.getRecentQueries().map((e=>({title:e}))):null==t?void 0:t.map((t=>{var n;return{title:t.Label,imageUrl:h(e,t),value:t.Value,color:u(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:null===(n=null==a?void 0:a.Items)||void 0===n?void 0:n.some((e=>e.Value===`@${t.Value}`)),children:d(e,t.Children,a)}})),p=e=>{var t;if("recent-searches"===l(e)){const t=d(e,void 0,void 0);return!!(null==t?void 0:t.length)}return null===(t=e.IsVisible)||void 0===t||t},f=e=>{var t,a,n,s,r,i,o,l,c,h,u,d,p;return{id:e.DocId,pinned:null!==(t=e.IsPin)&&void 0!==t&&t,visible:null===(a=e.IsVisible)||void 0===a||a,score:e.Score,type:["item","product"].includes(null===(r=null===(s=null===(n=e.Document)||void 0===n?void 0:n[this.fieldMappings.type])||void 0===s?void 0:s[0])||void 0===r?void 0:r.toLowerCase())?"product":"content",imageUrl:this.getUrl(null===(i=Hawksearch.config.urlPrefixes)||void 0===i?void 0:i.content,this.getString(null===(o=e.Document)||void 0===o?void 0:o[this.fieldMappings.imageUrl])),title:this.getString(null===(l=e.Document)||void 0===l?void 0:l[this.fieldMappings.title]),description:this.getString(null===(c=e.Document)||void 0===c?void 0:c[this.fieldMappings.description]),url:this.getUrl(null===(h=Hawksearch.config.urlPrefixes)||void 0===h?void 0:h.content,this.getString(null===(u=e.Document)||void 0===u?void 0:u[this.fieldMappings.url])),price:this.getNumber(null===(d=e.Document)||void 0===d?void 0:d[this.fieldMappings.price]),salePrice:this.getNumber(null===(p=e.Document)||void 0===p?void 0:p[this.fieldMappings.salePrice]),attributes:e.Document}},v=()=>{var a;const n="searchWithin",s=null===(a=t.Facets)||void 0===a?void 0:a.find((e=>e.Field===n));return e.searchWithin&&s?[{field:n,title:s.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},m=(e,t)=>{var a;("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&(t="");const n={id:e.BannerId,campaignId:e.CampaignId,type:e[t+"ContentType"],title:e.Title,zone:e.Zone};switch(n.type){case"custom":n.content=e[t+"Output"];break;case"featured":{const t=n;t.type="featured-items",t.items=e.Items.map(f);break}case"image":{const s=n;s.image={url:this.getUrl(null===(a=Hawksearch.config.urlPrefixes)||void 0===a?void 0:a.assets,e[t+"ImageUrl"]),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},s.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const a=n;a.type="popular-queries";const s=Math.min(...e[t+"Output"].map((e=>e.count))),r=Math.max(...e[t+"Output"].map((e=>e.count)))-s,i=5,o=new Array(i).fill(0);o.forEach(((e,t)=>{o[t]=t===i-1?0:Math.floor(r/(t+1))+s})),a.items=e[t+"Output"]instanceof Array?e[t+"Output"].map((e=>({query:e.keyword,count:e.count,weight:i-o.findIndex((t=>e.count>=t))}))).sort(((e,t)=>e.query.localeCompare(t.query))):[];break}default:{const t=n;t.type="custom-widget",t.data=e.AltTag}}}return n};return{contentZones:(()=>{var e,a;const n={};return null===(e=t.FeaturedItems)||void 0===e||e.Items.forEach((e=>{var t,a;const s=null!==(t=n[e.Zone])&&void 0!==t?t:{name:e.Zone},r={mobile:m(e,""),tablet:m(e,""),desktop:m(e,"")};s.items=[...null!==(a=s.items)&&void 0!==a?a:[],r],n[e.Zone]=s})),null===(a=t.Merchandising)||void 0===a||a.Items.forEach((e=>{var t,a;const s=null!==(t=n[e.Zone])&&void 0!==t?t:{name:e.Zone},r={mobile:m(e,"Mobile"),tablet:m(e,"Tablet"),desktop:m(e,"")};s.items=[...null!==(a=s.items)&&void 0!==a?a:[],r],n[e.Zone]=s})),n})(),facets:null===(a=t.Facets)||void 0===a?void 0:a.map((a=>{var n,s,r;return{id:a.FacetId,type:l(a),title:a.Name,field:a.ParamName||a.Field,collapsible:null!==(n=a.IsCollapsible)&&void 0!==n&&n,collapsed:a.IsCollapsedDefault,range:c(a),searchable:a.IsSearch,searchWithin:e.searchWithin,tooltip:this.stripHtml(null!==(s=a.Tooltip)&&void 0!==s?s:"")||void 0,truncateThreshold:parseFloat(a.TruncateThreshold)||void 0,values:d(a,a.Values,null===(r=t.Selections)||void 0===r?void 0:r[a.ParamName||a.Field]),visible:p(a)}})).filter((e=>"unsupported"!==e.type)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:null!==(n=t.Pagination.Items.map((e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))))&&void 0!==n?n:[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:null===(s=t.Results)||void 0===s?void 0:s.map(f),selectedFacets:(()=>{var e;return[...Object.keys(null!==(e=t.Selections)&&void 0!==e?e:[]).map((e=>{var a,n;const s=t.Selections[e],r=null===(a=t.Facets)||void 0===a?void 0:a.find((t=>(t.ParamName||t.Field)===e)),i=new RegExp("^@");return{field:e,currency:null!==(n=null==r?void 0:r.IsCurrency)&&void 0!==n&&n,title:s.Label,values:s.Items.map((e=>({title:e.Label.replace(i,""),value:e.Value,excluded:i.test(e.Value)})))}})),...v()]})(),success:t.Success,sorting:{value:null===(r=t.Sorting)||void 0===r?void 0:r.Value,options:null!==(o=null===(i=t.Sorting)||void 0===i?void 0:i.Items.map((e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))))&&void 0!==o?o:[]},trackingId:t.TrackingId}}getString(e,t){var a;return null!==(a=null==e?void 0:e[0])&&void 0!==a?a:t}getNumber(e,t){const a=this.getString(e);let n=a?parseFloat(a):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),null!=n?n:t}getUrl(e,t){if(t)return e&&!/^https?:\/\//.test(t)?`${e}/${t.replace(/^\/+/,"")}`:t}bindComponents(e){this.bindSearchResultsComponent(e),setTimeout((()=>{this.bindFacetsListComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)}))}bindFacetsListComponent(e){this.triggerEvent("hawksearch:bind-facets-list",null==e?void 0:e.facets)}bindModifiedQueryComponent(e){const t={display:!!(null==e?void 0:e.query)&&!!(null==e?void 0:e.modifiedQuery)&&Hawksearch.searchRequest.newRequest,query:null==e?void 0:e.query,modifiedQuery:null==e?void 0:e.modifiedQuery};this.triggerEvent("hawksearch:bind-modified-query",t)}bindPageSizeComponent(e){var t;this.triggerEvent("hawksearch:bind-page-size",null===(t=null==e?void 0:e.pagination)||void 0===t?void 0:t.options)}bindPaginationComponent(e){this.triggerEvent("hawksearch:bind-pagination",null==e?void 0:e.pagination)}bindSearchFieldComponent(e){this.triggerEvent("hawksearch:bind-search-field",e)}bindSearchResultsComponent(e){this.triggerEvent("hawksearch:bind-search-results",e)}bindSearchResultsListComponent(e){this.triggerEvent("hawksearch:bind-search-results-list",null==e?void 0:e.results)}bindQuerySuggestionsComponent(e){var t;const a={display:!!(null===(t=null==e?void 0:e.querySuggestions)||void 0===t?void 0:t.length)&&Hawksearch.searchRequest.newRequest,querySuggestions:null==e?void 0:e.querySuggestions};this.triggerEvent("hawksearch:bind-query-suggestions",a)}bindSortingComponent(e){this.triggerEvent("hawksearch:bind-sorting",null==e?void 0:e.sorting)}bindSelectedFacetsComponent(e){this.triggerEvent("hawksearch:bind-selected-facets",null==e?void 0:e.selectedFacets)}bindTabsComponent(e){var t;this.triggerEvent("hawksearch:bind-tabs",null===(t=null==e?void 0:e.facets)||void 0===t?void 0:t.find((e=>"tabs"===e.type)))}bindZoneComponent(e){this.triggerEvent("hawksearch:bind-content-zone",e)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});dispatchEvent(a)}getRequestFromUrl(){const e=new URL(window.location.href),t={},a=new RegExp(`^${this.queryStringParams.facet}-`);for(const n of Array.from(e.searchParams.keys()).filter((e=>a.test(e))))t[n.replace(a,"")]=e.searchParams.getAll(n);return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:t,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort))}}setQueryString(){if(!Hawksearch.searchRequest)return;const e=Hawksearch.searchRequest,t=new URL(window.location.href);t.searchParams.delete(this.queryStringParams.query),e.query&&t.searchParams.set(this.queryStringParams.query,e.query);for(const e of t.searchParams.keys())e.startsWith(`${this.queryStringParams.facet}-`)&&t.searchParams.delete(e);e.disableSpellcheck&&t.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).forEach((a=>{const n=e.facets[a];null==n||n.forEach((e=>t.searchParams.append(`${this.queryStringParams.facet}-${a}`,e)))})),t.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&t.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),t.searchParams.delete(this.queryStringParams.sort),e.sort&&t.searchParams.set(this.queryStringParams.sort,e.sort),t.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&t.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),t.searchParams.delete(this.queryStringParams.page),e.page&&t.searchParams.set(this.queryStringParams.page,e.page.toString());const a={searchRequest:Hawksearch.searchRequest,searchResponse:Hawksearch.searchResponse};t.toString()===window.location.href?window.history.replaceState(a,""):window.history.pushState(a,"",t.toString())}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}},Zt=a.p+"hawksearch-handlebars-ui.2080df81d487fd6f63994233727bef26.css";class Kt extends HTMLElement{constructor(){super(...arguments),this.handlebars=Hawksearch.handlebars}get hasCustomTemplate(){return!!this.innerHTML.trim().length}connectedCallback(){this.attachShadow({mode:"open"}),this.registerHelpers();const e=this.getCustomTemplateHtml(),t=null!=e?e:this.defaultHtml;this.template=this.handlebars.compile(t),setTimeout((()=>{this.renderContent()})),this.bindEvent&&(this.bindEventHandler=e=>{this.data=e.detail,this.renderContent()},addEventListener(this.bindEvent,this.bindEventHandler))}disconnectedCallback(){this.bindEvent&&this.bindEventHandler&&removeEventListener(this.bindEvent,this.bindEventHandler)}registerHelpers(){}renderContent(){var e,t,a;if(!this.template)return;const n=[];let s=[];if(!1!==(null===(e=Hawksearch.config.css)||void 0===e?void 0:e.defaultStyles)&&s.push(Zt),null===(t=Hawksearch.config.css)||void 0===t?void 0:t.customStyles){const e="string"==typeof Hawksearch.config.css.customStyles?[Hawksearch.config.css.customStyles]:Hawksearch.config.css.customStyles;s=s.concat(e)}s.forEach((e=>{const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,n.push(t)}));const r=document.createElement("template");r.innerHTML=this.getContentHtml(this.template),this.style.display=r.innerHTML?"":"none";const i=r.content.cloneNode(!0);n.push(i),null===(a=this.shadowRoot)||void 0===a||a.replaceChildren(...n),this.bindChildElements()}bindChildElements(){}getCustomTemplateHtml(){var e;let t;if(this.hasCustomTemplate)t=this.innerHTML;else if(this.customTemplatePropertyName&&(t=null===(e=Hawksearch.config.templates)||void 0===e?void 0:e[this.customTemplatePropertyName]),t){const e=document.getElementById(t);e instanceof HTMLTemplateElement&&(t=e.innerHTML);const a={"{{&gt;":"{{>"};Object.entries(a).forEach((([e,a])=>{const n=new RegExp(e,"g");t=t.replace(n,a)}))}return t}}class Yt extends Kt{constructor(){super(...arguments),this.bindEvent=void 0}}function Jt(e,t=2){var a,n,s;const r=(null===(a=Hawksearch.config.formatting)||void 0===a?void 0:a.cultureIsoCode)||"en-US",i=(null===(s=null===(n=Hawksearch.config.formatting)||void 0===n?void 0:n.currencyIsoCode)||void 0===s?void 0:s.toUpperCase())||"USD";return e.toLocaleString(r,{style:"currency",currency:i,minimumFractionDigits:t,maximumFractionDigits:t})}function Gt(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function Xt(e){var t;const a=(null===(t=Hawksearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleString(a,{year:"numeric",month:"short",day:"2-digit"})}function ea(e,t=2){var a;const n=(null===(a=Hawksearch.config.formatting)||void 0===a?void 0:a.cultureIsoCode)||"en-US";return e.toLocaleString(n,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}const ta=function(){return c.Date.now()};var aa=/\s/;var na=/^\s+/;const sa=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&aa.test(e.charAt(t)););return t}(e)+1).replace(na,""):e};var ra=/^[-+]0x[0-9a-f]+$/i,ia=/^0b[01]+$/i,oa=/^0o[0-7]+$/i,la=parseInt;const ca=function(e){if("number"==typeof e)return e;if(w(e))return NaN;if(B(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=B(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=sa(e);var a=ia.test(e);return a||oa.test(e)?la(e.slice(2),a?2:8):ra.test(e)?NaN:+e};var ha=Math.max,ua=Math.min;const da=function(e,t,a){var n,s,r,i,o,l,c=0,h=!1,u=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var a=n,r=s;return n=s=void 0,c=t,i=e.apply(r,a)}function f(e){return c=e,o=setTimeout(m,t),h?p(e):i}function v(e){var a=e-l;return void 0===l||a>=t||a<0||u&&e-c>=r}function m(){var e=ta();if(v(e))return g(e);o=setTimeout(m,function(e){var a=t-(e-l);return u?ua(a,r-(e-c)):a}(e))}function g(e){return o=void 0,d&&n?p(e):(n=s=void 0,i)}function y(){var e=ta(),a=v(e);if(n=arguments,s=this,l=e,a){if(void 0===o)return f(l);if(u)return clearTimeout(o),o=setTimeout(m,t),p(l)}return void 0===o&&(o=setTimeout(m,t)),i}return t=ca(t)||0,B(a)&&(h=!!a.leading,r=(u="maxWait"in a)?ha(ca(a.maxWait)||0,t):r,d="trailing"in a?!!a.trailing:d),y.cancel=function(){void 0!==o&&clearTimeout(o),c=0,n=l=s=o=void 0},y.flush=function(){return void 0===o?i:g(ta())},y};function pa(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function fa(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}class va extends Kt{constructor(){super(...arguments),this.bindEvent=void 0}bindChildElements(){var e,t,a,n,s,r;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("input[hawksearch-facet-value]").forEach((e=>{e.addEventListener("change",(e=>{e.stopPropagation();const t=e.currentTarget,a=this.data.field,n=t.value;t.checked?Qt.addFacetValue(a,n):Qt.removeFacetValue(a,n)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),e.stopPropagation();const a=e.currentTarget.getAttribute("hawksearch-facet-value"),n=null===(t=this.data.values)||void 0===t?void 0:t.find((e=>e.value===a));n&&(n.selected?Qt.removeFacetValue(this.data.field,a):Qt.addFacetValue(this.data.field,a))}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-facet-value-include]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field;let n=t.getAttribute("hawksearch-facet-value-include");n&&(n=`@${n}`,Qt.removeFacetValue(a,n))}))})),null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-facet-value-exclude]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field,n=t.getAttribute("hawksearch-facet-value-exclude");n&&Qt.excludeFacetValue(a,n)}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-facet-value-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.renderContent())}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-facet-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.renderContent()}))}))}}if(Hawksearch||(Hawksearch={}),Hawksearch.service=Qt,Hawksearch.handlebars=e.noConflict(),Hawksearch.handlebars.registerHelper("add",(function(e,t){return e+t})),Hawksearch.handlebars.registerHelper("and",(function(...e){return e.slice(0,-1).every((e=>!!e))})),Hawksearch.handlebars.registerHelper("attribute",(function(e,t){return new Hawksearch.handlebars.SafeString(t?e:"")})),Hawksearch.handlebars.registerHelper("concat",(function(...e){return e.length<2?"":e.slice(0,-1).join("")})),Hawksearch.handlebars.registerHelper("eq",(function(e,t){return e===t})),Hawksearch.handlebars.registerHelper("exclude",(function(e){return e.fn()})),Hawksearch.handlebars.registerHelper("html",(function(e){return new Hawksearch.handlebars.SafeString(e)})),Hawksearch.handlebars.registerHelper("currency",((e,t,a)=>{var n;return"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),Jt(null!==(n=null!=e?e:a)&&void 0!==n?n:0,t)})),Hawksearch.handlebars.registerHelper("number",((e,t,a)=>{var n;return"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),ea(null!==(n=null!=e?e:a)&&void 0!==n?n:0,t)})),Hawksearch.handlebars.registerHelper("if-else",(function(e,t,a){return e?t:a})),Hawksearch.handlebars.registerHelper("lt",(function(e,t){return e<t})),Hawksearch.handlebars.registerHelper("lte",(function(e,t){return e<=t})),Hawksearch.handlebars.registerHelper("gt",(function(e,t){return e>t})),Hawksearch.handlebars.registerHelper("gte",(function(e,t){return e>=t})),Hawksearch.handlebars.registerHelper("or",(function(...e){return e.slice(0,-1).some((e=>!!e))})),Hawksearch.handlebars.registerHelper("string",((e,t)=>("object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),null!=e?e:t))),Hawksearch.handlebars.registerHelper("subtract",(function(e,t){return e-t})),customElements.define("hawksearch-autocomplete",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-autocomplete",this.customTemplatePropertyName="search",this.defaultHtml='<div class="autocomplete">\n <div class="row">\n {{#if products.results.length}}\n <div class="column column--12 column-md--8">\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\n <div class="row autocomplete__products">\n {{#each products.results}}\n <div class="column column--12 column-sm--4">\n <div class="autocomplete__product">\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <span class="autocomplete__product__title">\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\n </span>\n </div>\n </div>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{#if (or categories.results.length content.results.length queries.results.length)}}\n <div class="column column--12 column-md--4">\n {{#if categories.results.length}}\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\n <ul class="autocomplete__list">\n {{#each categories.results}}\n <li>\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if content.results.length}}\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\n <ul class="autocomplete__list">\n {{#each content.results}}\n <li>\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if queries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\n <ul class="autocomplete__list">\n {{#each queries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n </div>\n {{/if}}\n </div>\n <div class="autocomplete__view-all">\n <a hawksearch-view-all>{{viewAllText}}</a>\n </div>\n</div>'}getContentHtml(e){var t,a,s,r,i,o;return this.data&&((null===(a=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===a?void 0:a.length)||(null===(r=null===(s=this.data.content)||void 0===s?void 0:s.results)||void 0===r?void 0:r.length)||(null===(o=null===(i=this.data.products)||void 0===i?void 0:i.results)||void 0===o?void 0:o.length))?e(Object.assign(Object.assign({},this.data),{AutocompleteItemType:n})):""}bindChildElements(){var e,a,s,r,i,o;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;e.preventDefault();const s=e.currentTarget,r=s.getAttribute("hawksearch-category-field"),i=s.getAttribute("hawksearch-category-value"),o=null===(a=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.field===r&&e.value===i));if(!o)return;Ut.trackAutocompleteClick(this.data.query,n.Category,o.title,o.url);const l={[o.field]:[o.value]};Qt.modifySearch(void 0,l),this.close()}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-content]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;const s=e.currentTarget.getAttribute("hawksearch-content"),r=null===(a=null===(t=this.data.content)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.id===s));r&&Ut.trackAutocompleteClick(this.data.query,n.Content,r.title,r.url)}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-product]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;const s=e.currentTarget.getAttribute("hawksearch-product"),r=null===(a=null===(t=this.data.products)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.id===s));r&&Ut.trackAutocompleteClick(this.data.query,n.Product,r.title,r.url)}))})),null===(i=this.shadowRoot)||void 0===i||i.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const a=e.currentTarget.getAttribute("hawksearch-query");if(!a)return;const s=null===(t=this.data.queries)||void 0===t?void 0:t.results.find((e=>e.query===a));s&&Ut.trackAutocompleteClick(this.data.query,n.Search,s.query,s.url),Qt.query(a)}))})),null===(o=this.shadowRoot)||void 0===o||o.querySelectorAll("[hawksearch-view-all]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),Qt.query(this.data.query)}))}))}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}}),customElements.define("hawksearch-checkbox-list-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="checkboxListFacet",this.defaultHtml='<div class="checkbox-list-facet">\r\n {{> facet-checkbox-list values}}\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\r\n {{/if}}\r\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\n <ul class="checkbox-list-facet__list">\n {{#each this}}\n {{#if visible}}\n <li\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\n \' checkbox-list-facet__list__item--collapsible\'\n hasChildren\n }}"\n >\n <div class="checkbox-list-facet__list__item__content">\n {{#if selected}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\n {{else}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\n {{/if}}\n <label for="{{@root.id}}-{{value}}" class="facet__value">\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\n </label>\n {{#if toggled}}\n {{> facet-checkbox-list children}}\n {{/if}}\n </div>\n <div class="checkbox-list-facet__list__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Include">\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if hasChildren}}\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Toggle">\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n{{/if}}')}getContentHtml(e){var t,a,n;if(!this.data||!(null===(t=this.data.values)||void 0===t?void 0:t.length))return"";const s=this.state.filter?new RegExp(this.state.filter,"i"):void 0,r=e=>!!s&&s.test(e.title),i=e=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.some((e=>r(e))))||!1},o=(e,t)=>null==e?void 0:e.map(((e,a)=>{var n,l,c,h,u;const d=Object.assign(Object.assign({},e),{visible:!t&&!s&&(this.state.toggled||!this.data.truncateThreshold||a<this.data.truncateThreshold)||r(e)||i(e)||!s&&!!(null==t?void 0:t.toggled),hasChildren:!!(null===(n=e.children)||void 0===n?void 0:n.length),children:void 0,toggled:!(!e.value||!(null===(l=e.children)||void 0===l?void 0:l.length))&&null!==(u=null===(h=null===(c=this.state.values)||void 0===c?void 0:c[e.value])||void 0===h?void 0:h.toggled)&&void 0!==u&&u||i(e)});return d.children=o(e.children,d),d}));return e({values:o(this.data.values,void 0),showToggle:!!this.data.truncateThreshold&&(null!==(n=null===(a=this.data.values)||void 0===a?void 0:a.length)&&void 0!==n?n:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-color-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="colorFacet",this.defaultHtml='<div class="color-facet">\n <div class="row row--tight color-facet__items">\n {{#each values}}\n {{#if visible}}\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n <span class="color-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="Include">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s;if(!this.data)return"";const r=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return e({values:null!==(a=null===(t=this.data.values)||void 0===t?void 0:t.filter((e=>e.color)).map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!r&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!r&&r.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==a?a:[],showToggle:!!this.data.truncateThreshold&&(null!==(s=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==s?s:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-content-zone",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-content-zone",this.customTemplatePropertyName="contentZone",this.defaultHtml='<div class="content-zone">\n {{#each items}}\n {{#if (eq type "custom")}}\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\n {{/if}}\n {{#if (eq type "featured-items")}}\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\n {{/if}}\n {{#if (eq type "image")}}\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\n {{/if}}\n {{#if (eq type "popular-queries")}}\n <hawksearch-popular-queries index="{{@index}}"></hawksearch-popular-queries>\n {{/if}}\n {{/each}}\n</div>'}get name(){return this.getAttribute("name")||void 0}get zone(){var e,t;return this.name?null===(t=null===(e=this.data)||void 0===e?void 0:e.contentZones)||void 0===t?void 0:t[this.name]:void 0}get displayType(){var e,t,a,n;const s=window.innerWidth;return s>=(null!==(t=null===(e=Hawksearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":s>=(null!==(n=null===(a=Hawksearch.config.breakpoints)||void 0===a?void 0:a.tablet)&&void 0!==n?n:740)?"tablet":"mobile"}connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=da((e=>{this.displayType!==this.previousDisplayType&&this.renderContent()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}getContentHtml(e){var t;return this.previousDisplayType=this.displayType,(null===(t=this.zone)||void 0===t?void 0:t.items.length)?e(Object.assign(Object.assign({},this.zone),{items:this.zone.items.map((e=>e[this.displayType]))})):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[index]").forEach((e=>{var t,a,n;const s=e,r=parseInt(s.getAttribute("index")||"-1");isNaN(r)||r<0||r>=((null===(t=this.zone)||void 0===t?void 0:t.items.length)||-1)||(s.data=null===(n=null===(a=this.zone)||void 0===a?void 0:a.items[r])||void 0===n?void 0:n[this.displayType])}))}}),customElements.define("hawksearch-custom-content",class extends Yt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="customContent",this.defaultHtml='<div class="custom-content">\n {{html content}}\n</div>'}getContentHtml(e){return this.data?e(this.data):""}}),customElements.define("hawksearch-date-picker",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="datePicker",this.defaultHtml='<div class="date-picker">\n <input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{label}}" />\n {{#if modalVisible}}\n <div hawksearch-modal class="date-picker__modal">\n {{#if monthSelectorVisible}}\n <div class="date-picker__modal__header">\n <span class="date-picker__modal__header__month">Select Month</span>\n </div>\n <div class="row">\n <div class="column column--12">\n <select hawksearch-month>\n {{#each months}}\n {{#if (eq this @root.currentMonth)}}\n <option value="{{@index}}" selected>{{this}}</option>\n {{else}}\n <option value="{{@index}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <select hawksearch-year>\n {{#each years}}\n {{#if (eq this @root.currentYear)}}\n <option value="{{this}}" selected>{{this}}</option>\n {{else}}\n <option value="{{this}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <button hawksearch-select-month class="button button--full-width">View Calendar</button>\n </div>\n </div>\n {{else}}\n <div class="date-picker__modal__header">\n <a hawksearch-previous class="date-picker__modal__header__previous" title="Previous">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{heading}}</a>\n <a hawksearch-next class="date-picker__modal__header__next" title="Next">\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n </div>\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\n <thead>\n <tr>\n <th scope="col">Su</th>\n <th scope="col">Mo</th>\n <th scope="col">Tu</th>\n <th scope="col">We</th>\n <th scope="col">Th</th>\n <th scope="col">Fr</th>\n <th scope="col">Sa</th>\n </tr>\n </thead>\n <tbody>\n {{#each weeks}}\n <tr>\n {{#each this}}\n <td\n hawksearch-date="{{value}}"\n class="date-picker__calendar__day\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\n {{attribute \' date-picker__calendar__day--selected\' selected}}\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\n >\n <span>{{dayOfMonth date}}</span>\n </td>\n {{/each}}\n </tr>\n {{/each}}\n </tbody>\n </table>\n {{/if}}\n </div>\n {{/if}}\n</div>',this.modalVisible=!1,this.modalDate=new Date,this.monthSelectorVisible=!1}static get observedAttributes(){return["label","max","min","value"]}connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout((()=>this.renderContent())))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=da((e=>{this.positionModal()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){if("label"===e)this.label=a||void 0;else{const t=a?new Date(a):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.renderContent()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayOfMonth",(e=>e.getDate().toString().padStart(2,"0")))}getContentHtml(e){var t;return e({label:null!==(t=this.label)&&void 0!==t?t:"Selected Date",value:this.selectedDate?Gt(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,heading:`${fa(this.modalDate)} ${this.modalDate.getFullYear()}`,years:this.getYears(),months:["January","February","March","April","May","June","July","August","September","October","November","December"],weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:fa(this.modalDate)})}bindChildElements(){var e,t,a,n,s,r;this.positionModal(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("click",(e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.renderContent()}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.renderContent()}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.renderContent()}))})),null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-month-selector]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.renderContent()}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-select-month]").forEach((e=>{e.addEventListener("click",(e=>{var t,a,n,s;e.preventDefault();const r=null===(a=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("[hawksearch-month]"))||void 0===a?void 0:a.value,i=null===(s=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-year]"))||void 0===s?void 0:s.value;if(void 0===r)throw new Error("Unable to get month value");if(void 0===i)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(i),parseInt(r),1),this.monthSelectorVisible=!1,this.renderContent()}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-date]").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const a=e.getAttribute("hawksearch-date")||void 0;if(!a)return;const n=new Date(a);if(this.minDate&&!(n>=this.minDate)||this.maxDate&&!(n<=this.maxDate))return;this.selectedDate=n,this.modalVisible=!1,this.renderContent();const s=new CustomEvent("hawksearch:date-picker-changed",{detail:n});this.dispatchEvent(s)}))}))}positionModal(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("[hawksearch-modal]");if(!t||!t.offsetWidth||!this.modalVisible)return;t.style.left="",t.style.right="";const a=window.innerWidth,n=t.getBoundingClientRect();t.offsetWidth+n.x>=a&&a>=t.offsetWidth&&(t.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),a=t<1900?t:1900,n=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let t=a;t<=n;t++)e.push(t);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const a=[];do{const e=this.getWeek(t);a.push(e),t=new Date(a[a.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(a.length<6);return a}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let a=0;a<7;a++){const n=new Date(e.getTime());n.setDate(n.getDate()+a),n.setHours(0,0,0,0);const s={date:n,value:n.toISOString(),currentMonth:n.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||n>=this.minDate)&&(!this.maxDate||n<=this.maxDate),selected:!!this.selectedDate&&pa(n,this.selectedDate)};t.push(s)}return t}}),customElements.define("hawksearch-date-range-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="dateRangeFacet",this.defaultHtml='<div class="date-range-facet">\n <div class="row">\n <div class="column column--6">\n <hawksearch-date-picker hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" label="Start Date"></hawksearch-date-picker>\n </div>\n <div class="column column--6">\n <hawksearch-date-picker hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" label="End Date"></hawksearch-date-picker>\n </div>\n </div>\n</div>'}get range(){var e,t;if("date"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){return this.data&&this.range?e({startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString()}):""}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)}))}))}updateInputElements(e,t){var a,n;const s=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector("[hawksearch-start]"),r=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-end]");s&&(s.value=e?Gt(e):""),r&&(r.value=t?Gt(t):"")}setFacetValue(e,t){var a,n;if(e&&t&&e>t){const a=e;e=t,t=a}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),pa(e,this.range.start)&&pa(t,this.range.end)||Qt.setFacetValue(this.data.field,`${null!==(a=null==e?void 0:e.toISOString())&&void 0!==a?a:""},${null!==(n=null==t?void 0:t.toISOString())&&void 0!==n?n:""}`)}}),customElements.define("hawksearch-facet-wrapper",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="facetWrapper",this.defaultHtml='<div class="facet">\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\n {{title}}\n {{#if tooltip}}\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\n {{/if}}\n {{#if collapsible}}\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\n {{/if}}\n </div>\n {{#unless collapsed}}\n <div class="facet__content">\n {{#if searchable}}\n <input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\n {{/if}}\n {{#if (eq type "checkbox")}}\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\n {{/if}}\n {{#if (eq type "color")}}\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\n {{/if}}\n {{#if (eq type "date-range")}}\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\n {{/if}}\n {{#if (eq type "link")}}\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\n {{/if}}\n {{#if (eq type "numeric-range")}}\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\n {{/if}}\n {{#if (eq type "range-slider")}}\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\n {{/if}}\n {{#if (eq type "recent-searches")}}\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\n {{/if}}\n {{#if (eq type "related-searches")}}\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\n {{/if}}\n {{#if (eq type "search")}}\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\n {{/if}}\n {{#if (eq type "size")}}\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}getContentHtml(e){var t,a,n;return this.data&&this.data.visible?e(Object.assign(Object.assign({},this.data),{collapsed:null!==(a=null!==(t=this.state.collapsed)&&void 0!==t?t:this.data.collapsed)&&void 0!==a&&a,filter:null!==(n=this.state.filter)&&void 0!==n?n:""})):""}bindChildElements(){var e,t,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet-heading]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),(null===(t=this.data)||void 0===t?void 0:t.collapsible)&&(this.state.collapsed=!this.state.collapsed,this.renderContent())}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-facet-search]").forEach((e=>{e.addEventListener("keyup",(e=>{var t;const a=null===(t=e.currentTarget.value)||void 0===t?void 0:t.trim();this.state.filter=a||void 0,this.rebindChildElements()}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.data=this.data,e.state=this.state}))}rebindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.renderContent()}))}}),customElements.define("hawksearch-facets-list",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-facets-list",this.customTemplatePropertyName="facetsList",this.defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\n <div hawksearch-mobile-toggle class="facets__heading">\n Narrow Results\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\n </div>\n <div class="facets__content">\n {{#each facets}}\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\n {{/each}}\n </div>\n</div>',this.state={expanded:!1}}getContentHtml(e){if(!this.data)return"";const t=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size"];return e({facets:this.data.filter((e=>t.includes(e.type))),expanded:this.state.expanded})}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-mobile-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.renderContent()}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach((e=>{var t,a;const n=parseInt(null!==(t=e.getAttribute("hawksearch-facet-id"))&&void 0!==t?t:""),s=null===(a=this.data)||void 0===a?void 0:a.find((e=>e.id===n));let r;if(null==s?void 0:s.values){r=[];const e=t=>{null==t||t.forEach((t=>{t.value&&r.push(t.value),e(t.children)}))};e(s.values)}let i=this.state[n];i||(i={id:n,toggled:!1,values:{}},this.state[n]=i),null==r||r.forEach((e=>{i.values[e]||(i.values[e]={toggled:!1})})),e.data=s,e.state=i}))}}),customElements.define("hawksearch-featured-items-content",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="featuredItemsContent",this.defaultHtml='<div class="row featured-items-content">\n {{#each items}}\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{/if}}\n {{else}}\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n {{/if}}\n {{/each}}\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("hawksearch-featured-items-content-item").forEach(((e,t)=>{var a,n;e.data=null===(n=null===(a=this.data)||void 0===a?void 0:a.items)||void 0===n?void 0:n[t]}))}}),customElements.define("hawksearch-featured-items-content-item",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="featuredItemsContentItem",this.defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\n {{#if pinned}}\n <span class="featured-items-content__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__sale-indicator">Sale</span>\n {{/if}}\n {{#if (eq type "product")}}\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n {{/if}}\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#unless (eq salePrice undefined)}}\n <div class="featured-items-content__item__price">\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__price__original">{{currency price 0}}</span>\n <span class="featured-items-content__item__price__current">{{currency salePrice 0}}</span>\n {{else}}\n <span class="featured-items-content__item__price-__current">{{currency salePrice 0}}</span>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("string",((e,t)=>("string"==typeof e&&(e=[e]),this.getString(e,t)))),this.handlebars.registerHelper("number",((e,t)=>("string"==typeof e&&(e=[e]),this.getNumber(e,t)))),this.handlebars.registerHelper("currency",((e,t)=>("string"==typeof e?e=[e]:"number"==typeof e&&(e=[e.toString()]),this.getCurrency(e,t))))}getContentHtml(e){return this.data?e(this.data):""}bindChildElements(){var e,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&Ut.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}getString(e,t){var a;return null!==(a=null==e?void 0:e[0])&&void 0!==a?a:t}getNumber(e,t){const a=this.getString(e);let n=a?parseFloat(a):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),null!=n?n:t}getCurrency(e,t){const a=this.getNumber(e)||t;if(a)return Jt(a)}}),customElements.define("hawksearch-icon",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="icon",this.defaultHtml='{{html svg}}\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\n <use href="{{url}}"></use>\n</svg>'}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}getContentHtml(e){const t=this.getAttribute("name");return t?e({svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="chevron-back" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z"/></symbol><symbol id="chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z"/></symbol><symbol id="chevron-forward" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z"/></symbol><symbol id="chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z"/></symbol><symbol id="chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z"/></symbol><symbol id="chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z"/></symbol><symbol id="cross" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z"/></symbol><symbol id="help" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z"/></symbol><symbol id="minus" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z"/></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="star" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${t}`,height:this.size,width:this.size}):""}}),customElements.define("hawksearch-image-content",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="imageContent",this.defaultHtml='<div class="image-content">\n {{#if link}}\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n </a>\n {{else}}\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n {{/if}}\n</div>'}getContentHtml(e){return this.data?(Ut.trackBannerImpression(this.data.id,this.data.campaignId),e(this.data)):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{Ut.trackBannerClick(this.data.id,this.data.campaignId)}))}))}}),customElements.define("hawksearch-link-list-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="linkListFacet",this.defaultHtml='<div class="link-list-facet">\n <ul class="link-list-facet__list">\n {{#each values}}\n {{#if visible}}\n <li class="link-list-facet__list__item">\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\n {{#if imageUrl}}\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\n {{else}}\n <span class="facet__value__title">{{title}}</span>\n {{/if}}\n <span class="facet__value__count">({{count}})</span>\n </span>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s,r;if(!this.data)return"";const i=this.state.filter?new RegExp(null!==(t=this.state.filter)&&void 0!==t?t:"","i"):void 0,o=e({values:null!==(n=null===(a=this.data.values)||void 0===a?void 0:a.map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!i&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!i&&i.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==n?n:[],showToggle:!!this.data.truncateThreshold&&(null!==(r=null===(s=this.data.values)||void 0===s?void 0:s.length)&&void 0!==r?r:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled});return o}}),customElements.define("hawksearch-modified-query",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-modified-query",this.customTemplatePropertyName="modifiedQuery",this.defaultHtml='<div class="modified-query">\n <p>\n Showing results for\n <span class="modified-query__modified">{{modifiedQuery}}</span>. Search instead for\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\n </p>\n</div>'}getContentHtml(e){return this.data&&this.data.display&&this.data.query&&this.data.modifiedQuery?e({query:this.data.query,modifiedQuery:this.data.modifiedQuery}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t,!0)}))}))}}),customElements.define("hawksearch-numeric-range-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="numericRangeFacet",this.defaultHtml='<div class="numeric-range-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum" />\n </div>\n </div>\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){return this.data&&this.range?e({startValue:Math.floor(this.range.start),endValue:Math.ceil(this.range.end),minValue:Math.floor(this.range.min),maxValue:Math.floor(this.range.max)}):""}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.floor(this.range.min),t.value=a.toString()),this.setFacetValue(a,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.ceil(this.range.max),t.value=a.toString()),this.setFacetValue(this.range.start,a)}))}))}setFacetValue(e,t){if(e>t){const a=e;e=t,t=a}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||Qt.setFacetValue(this.data.field,`${e},${t}`)}}),customElements.define("hawksearch-page-size",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-page-size",this.customTemplatePropertyName="pageSize",this.defaultHtml='<div class="page-size">\n <select hawksearch-page-size>\n {{#each options}}\n {{#if selected}}\n <option value="{{pageSize}}" selected>{{title}}</option>\n {{else}}\n <option value="{{pageSize}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.length)?e({options:this.data}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-page-size]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget,a=parseInt(t.value);Qt.setPageSize(a)}))}))}}),customElements.define("hawksearch-pagination",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-pagination",this.customTemplatePropertyName="pagination",this.defaultHtml='<div class="pagination">\n {{#if summary}}\n <div class="pagination__summary">{{summary}}</div>\n {{/if}}\n <div class="pagination__pages">\n {{#if displayFirstLink}}\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="First">\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if displayPreviousLink}}\n <a\n hawksearch-page="{{subtract page 1}}"\n rel="prev"\n href="{{pageUrl (subtract page 1)}}"\n class="pagination__page pagination__page--previous"\n title="Previous"\n >\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#each pages}}\n {{#if (eq this @root.page)}}\n <span class="pagination__page pagination__page--selected">{{this}}</span>\n {{else}}\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\n {{/if}}\n {{/each}}\n {{#if displayNextLink}}\n <a hawksearch-page="{{add page 1}}" rel="next" href="{{pageUrl (add page 1)}}" class="pagination__page pagination__page--next" title="Next">\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#if displayLastLink}}\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="Last">\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n</div>',this.defaultMaxPageLinks=9}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",(e=>{const t=new URLSearchParams;return 1===e?t.delete(Qt.queryStringParams.page):t.set(Qt.queryStringParams.page,e.toString()),`?${t}`}))}getContentHtml(e){var t,a,n;if(!this.data||0==this.data.totalResults)return"";const s=(this.data.page-1)*this.data.pageSize+1;let r=s+this.data.pageSize-1;return r>this.data.totalResults&&(r=this.data.totalResults),e({page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:s,lastRecord:r,totalRecords:null!==(t=this.data.totalResults)&&void 0!==t?t:0,totalPages:null!==(a=this.data.totalPages)&&void 0!==a?a:1,maxPageLinks:null!==(n=this.data.maxPageLinks)&&void 0!==n?n:this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,summary:`Showing ${s}-${r} of ${this.data.totalResults}`})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-page]").forEach((e=>{const t=e.getAttribute("hawksearch-page");if(t){const a=parseInt(t);e.addEventListener("click",(e=>{e.preventDefault(),this.setPage(a)}))}}))}setPage(e){return t=this,a=void 0,s=function*(){yield Qt.paginate(e)},new((n=void 0)||(n=Promise))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof n?a:new n((function(e){e(a)}))).then(i,o)}l((s=s.apply(t,a||[])).next())}));var t,a,n,s}getPages(){var e;const t=[];if(this.data&&this.data.totalPages>1){const a=null!==(e=this.data.maxPageLinks)&&void 0!==e?e:this.defaultMaxPageLinks;let n=this.data.page-Math.floor(a/2);n<1&&(n=1);let s=n+a-1;s>this.data.totalPages&&(s=this.data.totalPages);for(let e=n;e<=s;e++)t.push(e)}return t}}),customElements.define("hawksearch-popular-queries",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="popularQueriesContent",this.defaultHtml='<div class="popular-queries-content">\n {{#each items}}\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\n {{/each}}\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.items.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-query-suggestions",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-query-suggestions",this.customTemplatePropertyName="querySuggestions",this.defaultHtml='<div class="query-suggestions">\n <p>Did you mean to search for {{query-suggestions querySuggestions}}?</p>\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("query-suggestions",(function(e){function t(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}return e.length<=2?new Hawksearch.handlebars.SafeString(e.map(t).join(" or ")):new Hawksearch.handlebars.SafeString(e.slice(0,e.length-1).map(t).join(", ")+", or "+t(e[e.length-1]))}))}getContentHtml(e){var t;return this.data&&this.data.display&&(null===(t=this.data.querySuggestions)||void 0===t?void 0:t.length)?e({querySuggestions:this.data.querySuggestions}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-range-slider",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="rangeSlider",this.defaultHtml='<div class="range-slider">\n <div class="range-slider__container">\n <div class="range-slider__bar">\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\n </div>\n <span class="range-slider__handle range-slider__handle--start" title="Start" hawksearch-handle="start" style="left: {{start}}%;"></span>\n <span class="range-slider__handle range-slider__handle--end" title="End" hawksearch-handle="end" style="left: {{end}}%;"></span>\n </div>\n</div>',this.dragging=!1,this.start=0,this.end=100}static get observedAttributes(){return["end","start"]}connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach((e=>document.addEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.addEventListener(e,this.mouseMoveEventHandler)),{passive:!0})}attributeChangedCallback(e,t,a){switch(e){case"end":this.setEnd(a);break;case"start":this.setStart(a)}this.renderContent()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach((e=>document.removeEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.removeEventListener(e,this.mouseMoveEventHandler)))}setStart(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentHtml(e){return e({start:this.start,end:this.end})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-handle]").forEach((e=>{["mousedown","touchstart"].forEach((t=>e.addEventListener(t,(t=>{var a,n;if(!e.getAttribute("hawksearch-handle"))return;const s=t.currentTarget;this.activeHandle=s,this.startOffsetPercentage=parseFloat(null!==(a=s.style.left)&&void 0!==a?a:0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-handle]").forEach((e=>e.style.zIndex="")),s.style.zIndex="1"}),{passive:!0})))}))}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},a=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(a)}onMouseMove(e){var t,a,n,s,r;if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const i=this.activeHandle.getAttribute("hawksearch-handle"),o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('[hawksearch-handle="start"]'),l=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector('[hawksearch-handle="end"]'),c=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-bar]"),h=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,u=this.activeHandle.parentElement.offsetWidth;let d=Math.round(h/u*100)+this.startOffsetPercentage,p=0,f=100;"start"===i?f=parseFloat(null!==(s=l.style.left)&&void 0!==s?s:100):"end"===i&&(p=parseFloat(null!==(r=o.style.left)&&void 0!==r?r:0)),d<=p?d=p:d>=f&&(d=f),"start"===i?p=d:"end"===i&&(f=d),this.activeHandle.style.left=`${d}%`,c.style.left=`${p}%`,c.style.right=100-f+"%","start"===i?this.start=d:"end"===i&&(this.end=d);const v={start:this.start,end:this.end},m=new CustomEvent("hawksearch:range-slider-dragging",{detail:v});this.dispatchEvent(m)}}),customElements.define("hawksearch-range-slider-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="rangeSliderFacet",this.defaultHtml='<div class="range-slider-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum Price" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum Price" />\n </div>\n </div>\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){if(!this.data||!this.range)return"";const t=Math.ceil(this.range.max)-Math.floor(this.range.min);return e({startValue:Math.floor(this.range.start),endValue:Math.ceil(this.range.end),minValue:Math.floor(this.range.min),maxValue:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/t*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/t*100)})}bindChildElements(){var e,t,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(a,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(this.range.start,a)}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("hawksearch-range-slider").forEach((e=>{e.addEventListener("hawksearch:range-slider-dragging",(e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.updateInputElements(a.start,a.end)})),e.addEventListener("hawksearch:range-slider-changed",(e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.setFacetValue(a.start,a.end)}))}))}getRange(e,t){var a,n;const s=Math.floor(null!==(a=this.range.min)&&void 0!==a?a:0),r=Math.ceil(null!==(n=this.range.max)&&void 0!==n?n:0),i=r-s;return{start:Math.floor(i*e/100+s),end:Math.ceil(r*t/100)}}updateInputElements(e,t){var a,n;const s=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector("[hawksearch-start]"),r=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-end]");s&&(s.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||Qt.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}}),customElements.define("hawksearch-recent-searches-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="recentSearchesFacet",this.defaultHtml='<div class="recent-searches-facet">\n <ul class="recent-searches-facet__list">\n {{#each values}}\n <li class="recent-searches-facet__list__item">\n <a hawksearch-query="{{title}}" class="facet__value">{{title}}</a>\n </li>\n {{/each}}\n </ul>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;super.bindChildElements(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-related-searches-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="relatedSearchesFacet",this.defaultHtml='<div class="related-searches-facet">\n <ul class="related-searches-facet__list">\n {{#each values}}\n <li class="related-searches-facet__list__item">\n <a hawksearch-query="{{title}}" class="facet__value">{{title}}</a>\n </li>\n {{/each}}\n </ul>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;super.bindChildElements(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-search-field",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-field",this.customTemplatePropertyName="searchField",this.defaultHtml='<div class="search-field">\n <input type="text" hawksearch-input value="{{query}}" placeholder="Enter keywords" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>'}connectedCallback(){var e;super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},null===(e=this.shadowRoot)||void 0===e||e.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.shadowRoot)||void 0===e||e.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentHtml(e){return e(this.data)}bindChildElements(){var e,t;const a=["Enter","NumpadEnter"];null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("keyup",(e=>{if(!a.includes(e.code))return;const t=e.currentTarget.value.trim();this.toggleAutocomplete(!1),Qt.query(t)})),e.addEventListener("keyup",da((t=>{if(a.includes(t.code))return;const n=e.value.trim();this.toggleAutocomplete(!!n),n&&D.query(n)}),250))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-autocomplete").forEach((e=>{e.addEventListener("hawksearch:close-autocomplete",(e=>{this.toggleAutocomplete(!1)}))}))}toggleAutocomplete(e){var t;null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-autocomplete").forEach((t=>{t.style.display=e?"block":"none"}))}}),customElements.define("hawksearch-search-results",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-results",this.customTemplatePropertyName="searchResults",this.defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\n<div class="row">\n <div class="column column--12 column-md--4">\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\n <hawksearch-facets-list></hawksearch-facets-list>\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\n </div>\n <div class="column column--12 column-md--8">\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\n <hawksearch-tabs></hawksearch-tabs>\n <div class="margin">\n <hawksearch-selected-facets></hawksearch-selected-facets>\n </div>\n <div class="row">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-pagination></hawksearch-pagination>\n </div>\n <div class="column column--12 column-md--6">\n <div class="row row--tight">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-page-size></hawksearch-page-size>\n </div>\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-sorting></hawksearch-sorting>\n </div>\n </div>\n </div>\n </div>\n <hawksearch-search-results-list></hawksearch-search-results-list>\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\n </div>\n</div>'}getContentHtml(e){return e(this.data)}}),customElements.define("hawksearch-search-results-list",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-results-list",this.customTemplatePropertyName="searchResultsList",this.defaultHtml='<div class="row search-results-list">\n {{#each items}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{/if}}\n {{/each}}\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.length)?e({items:this.data}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("hawksearch-search-results-item").forEach(((e,t)=>{var a;e.data=null===(a=this.data)||void 0===a?void 0:a[t]}))}}),customElements.define("hawksearch-search-results-item",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="searchResultsItem",this.defaultHtml='<div class="search-results-item search-results-item--{{type}}">\n {{#if pinned}}\n <span class="search-results-item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="search-results-item__sale-indicator">Sale</span>\n {{/if}}\n {{#if (eq type "product")}}\n <a hawksearch-link href="{{url}}" class="search-results-item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n {{/if}}\n <div class="search-results-item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#unless (eq salePrice undefined)}}\n <div class="search-results-item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="search-results-item__price__original">{{currency price 0}}</span>\n <span class="search-results-item__price__current" itemprop="price">{{currency salePrice 0}}</span>\n {{else}}\n <span class="search-results-item__price-__current" itemprop="price">{{currency salePrice 0}}</span>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}getContentHtml(e){return this.data?e(this.data):""}bindChildElements(){var e,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&Ut.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}}),customElements.define("hawksearch-search-within-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="searchWithinFacet",this.defaultHtml='<div class="search-within-facet">\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="Enter keywords" />\n</div>'}getContentHtml(e){var t;return this.data?e({value:null!==(t=this.data.searchWithin)&&void 0!==t?t:""}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value.trim();Qt.searchWithin(t)}))}))}}),customElements.define("hawksearch-selected-facets",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-selected-facets",this.customTemplatePropertyName="selectedFacets",this.defaultHtml='<div class="flex-gap flex-gap--xs">\n {{#each selections}}\n <span class="selected-facet">\n <span class="selected-facet__field">{{title}}</span>\n <span class="selected-facet__value{{attribute \' selected-facet__value--excluded\' excluded}}">{{selectionTitle}}</span>\n <a hawksearch-facet-field="{{field}}" hawksearch-facet-value="{{selectionValue}}" class="selected-facet__remove">\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\n </a>\n </span>\n {{/each}}\n</div>'}getContentHtml(e){var t;if(!(null===(t=this.data)||void 0===t?void 0:t.length))return"";const a=[];return this.data.forEach((e=>{e.values.forEach((t=>{var n,s,r,i;let o=t.title;const l=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(t.value),c=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(t.value);if(l){const e=void 0!==(null===(n=l.groups)||void 0===n?void 0:n.min)?new Date(l.groups.min):void 0,t=void 0!==(null===(s=l.groups)||void 0===s?void 0:s.max)?new Date(l.groups.max):void 0;e&&t&&pa(e,t)?o=Xt(e):e&&t?o=`${Xt(e)} - ${Xt(t)}`:e?o=`After ${Xt(e)}`:t&&(o=`Before ${Xt(t)}`)}if(c){const t=void 0!==(null===(r=c.groups)||void 0===r?void 0:r.min)?parseFloat(c.groups.min):void 0,a=void 0!==(null===(i=c.groups)||void 0===i?void 0:i.max)?parseFloat(c.groups.max):void 0,n=e.currency?Jt:ea;void 0!==t&&void 0!==a?o=t===a?n(t,0):`${n(t,0)} - ${n(a,0)}`:void 0!==t?o=`${n(t,0)} and up`:void 0!==a&&(o=`${n(a,0)} and below`)}a.push({field:e.field,title:e.title,selectionTitle:o,selectionValue:t.value,excluded:t.excluded})}))})),a.sort(((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title))),e({facets:this.data,selections:a})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-facet-field"),n=t.getAttribute("hawksearch-facet-value");a&&n&&Qt.removeFacetValue(a,n)}))}))}}),customElements.define("hawksearch-size-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="colorFacet",this.defaultHtml='<div class="size-facet">\n <div class="row row--tight size-facet__items">\n {{#each values}}\n {{#if visible}}\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\n {{title}}\n </div>\n </div>\n <span class="size-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="Include">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s;if(!this.data)return"";const r=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return e({values:null!==(a=null===(t=this.data.values)||void 0===t?void 0:t.map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!r&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!r&&r.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==a?a:[],showToggle:!!this.data.truncateThreshold&&(null!==(s=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==s?s:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-sorting",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-sorting",this.customTemplatePropertyName="sorting",this.defaultHtml='<div class="sorting">\n <select hawksearch-sort>\n {{#each options}}\n {{#if selected}}\n <option value="{{value}}" selected>{{title}}</option>\n {{else}}\n <option value="{{value}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.options)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-sort]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value;Qt.sort(t)}))}))}}),customElements.define("hawksearch-tabs",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-tabs",this.customTemplatePropertyName="tabs",this.defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt values.length 4)}}">\n {{#each values}}\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">{{title}} ({{count}})</li>\n {{/each}}\n</ul>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-tab-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");Qt.selectTab(null!=t?t:void 0)}))}))}}),customElements.define("hawksearch-tooltip",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="tooltip",this.defaultHtml='<span class="tooltip" hawksearch-tooltip>\n <span class="tooltip__icon">\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\n </span>\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\n</span>'}getContentHtml(e){const t=this.getAttribute("text");return t?e({text:t}):""}bindChildElements(){var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("[hawksearch-tooltip]"))||void 0===t||t.addEventListener("mouseover",(e=>{var t;const a=e.currentTarget,n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("[hawksearch-tooltip-content]");if(!n)return;n.style.removeProperty("top"),n.style.removeProperty("right");const s=window.innerWidth,r=a.getBoundingClientRect(),i=r.x+r.width;n.style.top=`${r.top}px`,s-i<370&&(n.style.right="20px")}))}}),addEventListener("popstate",(e=>{const t=e.state;Hawksearch.searchRequest=t.searchRequest,Hawksearch.searchResponse=t.searchResponse,Qt.bindComponents(t.searchResponse)})),dispatchEvent(new CustomEvent("hawksearch:initialized")),document.querySelector("hawksearch-search-results")){Ut.trackPageLoad(r.Custom);const e=Qt.getRequestFromUrl();Qt.search(e)}})()})();
2
+ (()=>{var e={675:function(e){var t;t=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(2)),r=n(a(45)),i=a(46),o=a(51),l=n(a(52)),c=n(a(49)),h=n(a(44)),u=s.default.create;function d(){var e=u();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=r.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=i.parser,e.parse=i.parse,e.parseWithoutProcessing=i.parseWithoutProcessing,e}var p=d();p.create=d,h.default(p),p.Visitor=c.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var n=a(3).default,s=a(1).default;t.__esModule=!0;var r=n(a(4)),i=s(a(37)),o=s(a(6)),l=n(a(5)),c=n(a(38)),h=s(a(44));function u(){var e=new r.HandlebarsEnvironment;return l.extend(e,r),e.SafeString=i.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=u();d.create=u,h.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=u;var s=a(5),r=n(a(6)),i=a(10),o=a(30),l=n(a(32)),c=a(33);t.VERSION="4.7.7",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var h="[object Object]";function u(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},i.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(s.toString.call(e)===h){if(t)throw new r.default("Arg not supported with multiple helpers");s.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(s.toString.call(e)===h)s.extend(this.partials,e);else{if(void 0===t)throw new r.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(s.toString.call(e)===h){if(t)throw new r.default("Arg not supported with multiple decorators");s.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=l.default.log;t.log=d,t.createFrame=s.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return s.test(e)?e.replace(n,r):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=i({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,s=/[&<>"'`=]/;function r(e){return a[e]}function i(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,a){"use strict";var n=a(7).default;t.__esModule=!0;var s=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var a=t&&t.loc,i=void 0,o=void 0,l=void 0,c=void 0;a&&(i=a.start.line,o=a.end.line,l=a.start.column,c=a.end.column,e+=" - "+i+":"+l);for(var h=Error.prototype.constructor.call(this,e),u=0;u<s.length;u++)this[s[u]]=h[s[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=i,this.endLineNumber=o,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t,a){return n.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){s.default(e),r.default(e),i.default(e),o.default(e),l.default(e),c.default(e),h.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||delete e.helpers[t])};var s=n(a(11)),r=n(a(12)),i=n(a(25)),o=n(a(26)),l=n(a(27)),c=n(a(28)),h=n(a(29))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,a){var s=a.inverse,r=a.fn;if(!0===t)return r(this);if(!1===t||null==t)return s(this);if(n.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):s(this);if(a.data&&a.ids){var i=n.createFrame(a.data);i.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:i}}return r(t,a)}))},e.exports=t.default},function(e,t,a){(function(n){"use strict";var s=a(13).default,r=a(1).default;t.__esModule=!0;var i=a(5),o=r(a(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var a,r=t.fn,l=t.inverse,c=0,h="",u=void 0,d=void 0;function p(t,a,n){u&&(u.key=t,u.index=a,u.first=0===a,u.last=!!n,d&&(u.contextPath=d+t)),h+=r(e[t],{data:u,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(u=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var f=e.length;c<f;c++)c in e&&p(c,c,c===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var v=[],m=e[n.Symbol.iterator](),g=m.next();!g.done;g=m.next())v.push(g.value);for(f=(e=v).length;c<f;c++)p(c,c,c===e.length-1)}else a=void 0,s(e).forEach((function(e){void 0!==a&&p(a,c-1),a=e,c++})),void 0!==a&&p(a,c-1,!0);return 0===c&&(h=l(this)),h}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),e.exports=a(21).Object.keys},function(e,t,a){var n=a(16);a(18)("keys",(function(e){return function(t){return e(n(t))}}))},function(e,t,a){var n=a(17);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var n=a(19),s=a(21),r=a(24);e.exports=function(e,t){var a=(s.Object||{})[e]||Object[e],i={};i[e]=t(a),n(n.S+n.F*r((function(){a(1)})),"Object",i)}},function(e,t,a){var n=a(20),s=a(21),r=a(22),i=function(e,t,a){var o,l,c,h=e&i.F,u=e&i.G,d=e&i.S,p=e&i.P,f=e&i.B,v=e&i.W,m=u?s:s[t]||(s[t]={}),g=u?n:d?n[t]:(n[t]||{}).prototype;for(o in u&&(a=t),a)(l=!h&&g&&o in g)&&o in m||(c=l?g[o]:a[o],m[o]=u&&"function"!=typeof g[o]?a[o]:f&&l?r(c,n):v&&g[o]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((m.prototype||(m.prototype={}))[o]=c))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,e.exports=i},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var n=a(23);e.exports=function(e,t,a){if(n(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,n){return e.call(t,a,n)};case 3:return function(a,n,s){return e.call(t,a,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=a(5),r=n(a(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new r.default("#if requires exactly one argument");return s.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||s.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,a){if(2!=arguments.length)throw new r.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],a=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var s=1;null!=a.hash.level?s=a.hash.level:a.data&&null!=a.data.level&&(s=a.data.level),t[0]=s,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,a){return e?a.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=a(5),r=n(a(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new r.default("#with requires exactly one argument");s.isFunction(e)&&(e=e.call(this));var a=t.fn;if(s.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=s.createFrame(t.data)).contextPath=s.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:n,blockParams:s.blockParams([e],[n&&n.contextPath])})}))},e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){s.default(e)};var s=n(a(31))},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,a,s){var r=e;return t.partials||(t.partials={},r=function(s,r){var i=a.partials;a.partials=n.extend({},i,t.partials);var o=e(s,r);return a.partials=i,o}),t.partials[s.args[0]]=s.fn,r}))},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var n=a(5),s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(s.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=s.lookupLevel(e),"undefined"!=typeof console&&s.lookupLevel(s.level)<=e){var t=s.methodMap[e];console[t]||(t="log");for(var a=arguments.length,n=Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];console[t].apply(console,n)}}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";var n=a(34).default,s=a(13).default,r=a(3).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var a=n(null);return a.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(a,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,a){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,a)},t.resetLoggedProperties=function(){s(l).forEach((function(e){delete l[e]}))};var i=a(36),o=r(a(32)),l=n(null)},function(e,t,a){e.exports={default:a(35),__esModule:!0}},function(e,t,a){var n=a(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t,a){"use strict";var n=a(34).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return s.extend.apply(void 0,[n(null)].concat(t))};var s=a(5)},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(39).default,s=a(13).default,r=a(3).default,i=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=c.COMPILER_REVISION;if(!(t>=c.LAST_COMPATIBLE_COMPILER_REVISION&&t<=c.COMPILER_REVISION)){if(t<c.LAST_COMPATIBLE_COMPILER_REVISION){var n=c.REVISION_CHANGES[a],s=c.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0],r={strict:function(e,t,a){if(!e||!(t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:a});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var a=e[t];return null==a||Object.prototype.hasOwnProperty.call(e,t)||d.resultIsAllowed(a,r.protoAccessControl,t)?a:void 0},lookup:function(e,t){for(var a=e.length,n=0;n<a;n++)if(null!=(e[n]&&r.lookupProperty(e[n],t)))return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(a,n,s){s.hash&&(n=o.extend({},n,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,n,s);var r=o.extend({},s,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=t.VM.invokePartial.call(this,a,n,r);if(null==i&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),i=s.partials[s.name](n,r)),null!=i){if(s.indent){for(var c=i.split("\n"),h=0,u=c.length;h<u&&(c[h]||h+1!==u);h++)c[h]=s.indent+c[h];i=c.join("\n")}return i}throw new l.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,n,s){var r=this.programs[e],i=this.fn(e);return t||s||n||a?r=p(this,e,i,t,a,n,s):r||(r=this.programs[e]=p(this,e,i)),r},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var a=e||t;return e&&t&&e!==t&&(a=o.extend({},t,e)),a},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=a.data;i._setup(a),!a.partial&&e.useData&&(n=v(t,n));var s=void 0,o=e.useBlockParams?[]:void 0;function l(t){return""+e.main(r,t,r.helpers,r.partials,n,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(l=m(e.main,l,r,a.depths||[],n,o))(t,a)}return i.isTop=!0,i._setup=function(n){if(n.partial)r.protoAccessControl=n.protoAccessControl,r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks;else{var i=o.extend({},t.helpers,n.helpers);!function(e,t){s(e).forEach((function(a){var n=e[a];e[a]=function(e,t){var a=t.lookupProperty;return u.wrapHelper(e,(function(e){return o.extend({lookupProperty:a},e)}))}(n,t)}))}(i,r),r.helpers=i,e.usePartial&&(r.partials=r.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=o.extend({},t.decorators,n.decorators)),r.hooks={},r.protoAccessControl=d.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||a;h.moveHelperToHooks(r,"helperMissing",l),h.moveHelperToHooks(r,"blockHelperMissing",l)}},i._child=function(t,a,n,s){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!s)throw new l.default("must pass parent depths");return p(r,t,e[t],a,0,n,s)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,a){return e?e.call||a.name||(a.name=e,e=a.partials[e]):e="@partial-block"===a.name?a.data["partial-block"]:a.partials[a.name],e},t.invokePartial=function(e,t,a){var n=a.data&&a.data["partial-block"];a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var s=void 0;if(a.fn&&a.fn!==f&&function(){a.data=c.createFrame(a.data);var e=a.fn;s=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=c.createFrame(a.data),a.data["partial-block"]=n,e(t,a)},e.partials&&(a.partials=o.extend({},a.partials,e.partials))}(),void 0===e&&s&&(e=s),void 0===e)throw new l.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=f;var o=r(a(5)),l=i(a(6)),c=a(4),h=a(10),u=a(43),d=a(33);function p(e,t,a,n,s,r,i){function o(t){var s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=i;return!i||t==i[0]||t===e.nullContext&&null===i[0]||(o=[t].concat(i)),a(e,t,e.helpers,e.partials,s.data||n,r&&[s.blockParams].concat(r),o)}return(o=m(a,o,e,i,n,r)).program=t,o.depth=i?i.length:0,o.blockParams=s||0,o}function f(){return""}function v(e,t){return t&&"root"in t||((t=t?c.createFrame(t):{}).root=e),t}function m(e,t,a,n,s,r){if(e.decorator){var i={};t=e.decorator(t,i,a,n&&n[0],s,r,n),o.extend(t,i)}return t}},function(e,t,a){e.exports={default:a(40),__esModule:!0}},function(e,t,a){a(41),e.exports=a(21).Object.seal},function(e,t,a){var n=a(42);a(18)("seal",(function(e){return function(t){return e&&n(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){(function(a){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==a?a:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default,s=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=h,t.parse=function(e,t){var a=h(e,t);return new i.default(t).accept(a)};var r=n(a(47)),i=n(a(48)),o=s(a(50)),l=a(5);t.parser=r.default;var c={};function h(e,t){return"Program"===e.type?e:(r.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},r.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var a=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,n,s,r,i){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:this.$=n.prepareProgram(r[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=r[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(r[o]),strip:n.stripFlags(r[o],r[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:r[o],value:r[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(r[o-2],r[o-1],r[o],this._$);break;case 12:this.$={path:r[o-3],params:r[o-2],hash:r[o-1]};break;case 13:this.$=n.prepareBlock(r[o-3],r[o-2],r[o-1],r[o],!1,this._$);break;case 14:this.$=n.prepareBlock(r[o-3],r[o-2],r[o-1],r[o],!0,this._$);break;case 15:this.$={open:r[o-5],path:r[o-4],params:r[o-3],hash:r[o-2],blockParams:r[o-1],strip:n.stripFlags(r[o-5],r[o])};break;case 16:case 17:this.$={path:r[o-4],params:r[o-3],hash:r[o-2],blockParams:r[o-1],strip:n.stripFlags(r[o-5],r[o])};break;case 18:this.$={strip:n.stripFlags(r[o-1],r[o-1]),program:r[o]};break;case 19:var l=n.prepareBlock(r[o-2],r[o-1],r[o],r[o],!1,this._$),c=n.prepareProgram([l],r[o-1].loc);c.chained=!0,this.$={strip:r[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:r[o-1],strip:n.stripFlags(r[o-2],r[o])};break;case 22:case 23:this.$=n.prepareMustache(r[o-3],r[o-2],r[o-1],r[o-4],n.stripFlags(r[o-4],r[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:r[o-3],params:r[o-2],hash:r[o-1],indent:"",strip:n.stripFlags(r[o-4],r[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(r[o-2],r[o-1],r[o],this._$);break;case 26:this.$={path:r[o-3],params:r[o-2],hash:r[o-1],strip:n.stripFlags(r[o-4],r[o])};break;case 29:this.$={type:"SubExpression",path:r[o-3],params:r[o-2],hash:r[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:r[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(r[o-2]),value:r[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(r[o-1]);break;case 35:this.$={type:"StringLiteral",value:r[o],original:r[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(r[o]),original:Number(r[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===r[o],original:"true"===r[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,r[o],this._$);break;case 43:this.$=n.preparePath(!1,r[o],this._$);break;case 44:r[o-2].push({part:n.id(r[o]),original:r[o],separator:r[o-1]}),this.$=r[o-2];break;case 45:this.$=[{part:n.id(r[o]),original:r[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:r[o-1].push(r[o]);break;case 98:case 100:this.$=[r[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],a=[null],n=[],s=this.table,r="",i=0,o=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;n.push(c);var h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var u,d,p,f,v,m,g,y,k,w,b={};;){if(p=t[t.length-1],this.defaultActions[p]?f=this.defaultActions[p]:(null==u&&(w=void 0,"number"!=typeof(w=this.lexer.lex()||1)&&(w=this.symbols_[w]||w),u=w),f=s[p]&&s[p][u]),void 0===f||!f.length||!f[0]){var _="";if(!l){for(m in k=[],s[p])this.terminals_[m]&&m>2&&k.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[u]||u)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==u?"end of input":"'"+(this.terminals_[u]||u)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[u]||u,line:this.lexer.yylineno,loc:c,expected:k})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+u);switch(f[0]){case 1:t.push(u),a.push(this.lexer.yytext),n.push(this.lexer.yylloc),t.push(f[1]),u=null,d?(u=d,d=null):(o=this.lexer.yyleng,r=this.lexer.yytext,i=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(g=this.productions_[f[1]][1],b.$=a[a.length-g],b._$={first_line:n[n.length-(g||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(g||1)].first_column,last_column:n[n.length-1].last_column},h&&(b._$.range=[n[n.length-(g||1)].range[0],n[n.length-1].range[1]]),void 0!==(v=this.performAction.call(b,r,o,i,this.yy,f[1],a,n)))return v;g&&(t=t.slice(0,-1*g*2),a=a.slice(0,-1*g),n=n.slice(0,-1*g)),t.push(this.productions_[f[1]][0]),a.push(b.$),n.push(b._$),y=s[t[t.length-2]][t[t.length-1]],t.push(y);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length&&(!(a=this._input.match(this.rules[r[i]]))||t&&!(a[0].length>t[0].length)||(t=a,n=i,this.options.flex));i++);return t?((s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,r[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,n){function s(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(s(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(s(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(s(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=s(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=s(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function a(){this.yy={}}return e.lexer=t,a.prototype=e,e.Parser=a,new a}();t.default=a,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(49));function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function i(e,t,a){void 0===t&&(t=e.length);var n=e[t-1],s=e[t-2];return n?"ContentStatement"===n.type?(s||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var n=e[t+1],s=e[t+2];return n?"ContentStatement"===n.type?(s||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:a}function l(e,t,a){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(a||!n.rightStripped)){var s=n.value;n.value=n.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function c(e,t,a){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(a||!n.leftStripped)){var s=n.value;return n.value=n.value.replace(a?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}r.prototype=new s.default,r.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,s=0,r=n.length;s<r;s++){var h=n[s],u=this.accept(h);if(u){var d=i(n,s,a),p=o(n,s,a),f=u.openStandalone&&d,v=u.closeStandalone&&p,m=u.inlineStandalone&&d&&p;u.close&&l(n,s,!0),u.open&&c(n,s,!0),t&&m&&(l(n,s),c(n,s)&&"PartialStatement"===h.type&&(h.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),t&&f&&(l((h.program||h.inverse).body),c(n,s)),t&&v&&(l(n,s),c((h.inverse||h.program).body))}}return e},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,n=a,s=a;if(a&&a.chained)for(n=a.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var r={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:i((n||t).body)};if(e.openStrip.close&&l(t.body,null,!0),a){var h=e.inverseStrip;h.open&&c(t.body,null,!0),h.close&&l(n.body,null,!0),e.closeStrip.open&&c(s.body,null,!0),!this.options.ignoreStandalone&&i(t.body)&&o(n.body)&&(c(t.body),l(n.body))}else e.closeStrip.open&&c(t.body,null,!0);return r},r.prototype.Decorator=r.prototype.MustacheStatement=function(e){return e.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=r,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0;var s=n(a(6));function r(){this.parents=[]}function i(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){i.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}r.prototype={constructor:r,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!r.prototype[a.type])throw new s.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new s.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new s.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:i,Decorator:i,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=r,e.exports=t.default},function(e,t,a){"use strict";var n=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var n=e?"@":"",r=[],i=0,o=0,l=t.length;o<l;o++){var c=t[o].part,h=t[o].original!==c;if(n+=(t[o].separator||"")+c,h||".."!==c&&"."!==c&&"this"!==c)r.push(c);else{if(r.length>0)throw new s.default("Invalid path: "+n,{loc:a});".."===c&&i++}}return{type:"PathExpression",data:e,depth:i,parts:r,original:n,loc:a}},t.prepareMustache=function(e,t,a,n,s,r){var i=n.charAt(3)||n.charAt(2),o="{"!==i&&"&"!==i;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:s,loc:this.locInfo(r)}},t.prepareRawBlock=function(e,t,a,n){r(e,a);var s={type:"Program",body:t,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,a,n,i,o){n&&n.path&&r(e,n);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,h=void 0;if(a){if(l)throw new s.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=n.strip),h=a.strip,c=a.program}return i&&(i=c,c=t,t=i),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:h,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,n=e[e.length-1].loc;a&&n&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,n){return r(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(n)}};var s=n(a(6));function r(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new s.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var n=a(34).default,s=a(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=a.parse(e,t),s=(new a.Compiler).compile(n,t);return(new a.JavaScriptCompiler).compile(s,t)},t.compile=function(e,t,a){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=i.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function s(){var n=a.parse(e,t),s=(new a.Compiler).compile(n,t),r=(new a.JavaScriptCompiler).compile(s,t,void 0,!0);return a.template(r)}function o(e,t){return n||(n=s()),n.call(this,e,t)}return o._setup=function(e){return n||(n=s()),n._setup(e)},o._child=function(e,t,a,r){return n||(n=s()),n._child(e,t,a,r)},o};var r=s(a(6)),i=a(5),o=s(a(45)),l=[].slice;function c(){}function h(e,t){if(e===t)return!0;if(i.isArray(e)&&i.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!h(e[a],t[a]))return!1;return!0}}function u(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var n=this.opcodes[a],s=e.opcodes[a];if(n.opcode!==s.opcode||!h(n.args,s.args))return!1}for(t=this.children.length,a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=i.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,n=0;n<a;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){u(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,a):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new r.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,s="SubExpression"===e.name.type;s&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var i=e.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",s,n,i),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){u(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var n=e.path,s=n.parts[0],r=null!=t||null!=a;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",s,r)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var n=this.setupFullMustacheParams(e,t,a),s=e.path,i=s.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",n.length,i);else{if(this.options.knownHelpersOnly)throw new r.default("You specified knownHelpersOnly, but used the unknown helper "+i,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",n.length,s.original,o.default.helpers.simpleId(s))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),n=!e.depth&&!a&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,n=t.length;for(this.opcode("pushHash");a<n;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),n=!a&&o.default.helpers.helperExpression(e),s=!a&&(n||t);if(s&&!n){var r=e.path.parts[0],i=this.options;i.knownHelpers[r]?n=!0:i.knownHelpersOnly&&(s=!1)}return n?"helper":s?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,n){var s=e.params;return this.pushParams(s),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),s},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var n=this.options.blockParams[t],s=n&&i.indexOf(n,e);if(n&&s>=0)return[t,s]}}}},function(e,t,a){"use strict";var n=a(13).default,s=a(1).default;t.__esModule=!0;var r=a(4),i=s(a(6)),o=a(5),l=s(a(53));function c(e){this.value=e}function h(){}h.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=r.COMPILER_REVISION;return[e,r.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,a,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,r=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=s.length;l<c;l++)r=s[l],this.source.currentLocation=r.loc,o=o||r.loc,this[r.opcode].apply(this,r.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(n);if(this.isChild)return h;var u={compiler:this.compilerInfo(),main:h};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var d=this.context,p=d.programs,f=d.decorators;for(l=0,c=p.length;l<c;l++)p[l]&&(u[l]=p[l],f[l]&&(u[l+"_d"]=f[l],u.useDecorators=!0));return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),n?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),t.srcName?(u=u.toStringWithSourceMap({file:t.destName})).map=u.map&&u.map.toString():u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",s=this.stackVars.concat(this.registers.list);s.length>0&&(a+=", "+s.join(", "));var r=0;n(this.aliases).forEach((function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(a+=", alias"+ ++r+"="+e,n.children[0]="alias"+r)})),this.lookupPropertyFunctionIsUsed&&(a+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var o=this.mergeSource(a);return e?(i.push(o),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,n=void 0,s=void 0,r=void 0,i=void 0;return this.source.each((function(e){e.appendToBuffer?(r?e.prepend(" + "):r=e,i=e):(r&&(s?r.prepend("buffer += "):n=!0,i.add(";"),r=i=void 0),s=!0,t||(a=!1))})),a?r?(r.prepend("return "),i.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),r?(r.prepend("return buffer + "),i.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var n=this.popStack();a.splice(1,0,n),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,n){var s=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[s++])),this.resolvePath("context",e,s,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,n,s){var r=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,n){var s=t.popStack(),r=0,i=a.length;for(e&&i--;r<i;r++)s=t.nameLookup(s,a[r],n);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(a[r]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}(this.options.strict&&s,this,t,e));else for(var i=t.length;a<i;a++)this.replaceStack((function(s){var i=r.nameLookup(s,t[a],e);return n?[" && ",i]:[" != null ? ",i," : ",s]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(a,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,a){var n=this.popStack(),s=this.setupHelper(e,t),r=[];a&&r.push(s.name),r.push(n),this.options.strict||r.push(this.aliasable("container.hooks.helperMissing"));var i=["(",this.itemsSeparatedBy(r,"||"),")"],o=this.source.functionCall(i,"call",s.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var n=1;n<e.length;n++)a.push(t,e[n]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),s=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(s[0]="(helper = ",s.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",s,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,a){var n=[],s=this.setupParams(t,1,n);e&&(t=this.popStack(),delete s.name),a&&(s.indent=JSON.stringify(a)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),a=void 0,n=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(n=this.popStack(),a=this.popStack());var r=this.hash;a&&(r.contexts[e]=a),n&&(r.types[e]=n),s&&(r.ids[e]=s),r.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:h,compileChildren:function(e,t){for(var a=e.children,n=void 0,s=void 0,r=0,i=a.length;r<i;r++){n=a[r],s=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=s.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof c||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new c(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,n=void 0,s=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var r=this.popStack(!0);if(r instanceof c)t=["(",a=[r.value]],s=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",r,")"],a=this.topStack()}var l=e.call(this,a);s||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var n=e[t];if(n instanceof c)this.compileStack.push(n);else{var s=this.incrStack();this.pushSource([s," = ",n,";"]),this.compileStack.push(s)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof c)return a.value;if(!t){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof c?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,a){var n={},s=[],r=[],i=[],o=!a,l=void 0;o&&(a=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),h=this.popStack();(h||c)&&(n.fn=h||"container.noop",n.inverse=c||"container.noop");for(var u=t;u--;)l=this.popStack(),a[u]=l,this.trackIds&&(i[u]=this.popStack()),this.stringParams&&(r[u]=this.popStack(),s[u]=this.popStack());return o&&(n.args=this.source.generateArray(a)),this.trackIds&&(n.ids=this.source.generateArray(i)),this.stringParams&&(n.types=this.source.generateArray(r),n.contexts=this.source.generateArray(s)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,a,n){var s=this.setupParams(e,t,a);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),n?(this.useRegister("options"),a.push("options"),["options=",s]):a?(a.push(s),""):s}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=h.RESERVED_WORDS={},a=0,n=e.length;a<n;a++)t[e[a]]=!0}(),h.isValidJavaScriptVariableName=function(e){return!h.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=h,e.exports=t.default},function(e,t,a){"use strict";var n=a(13).default;t.__esModule=!0;var s=a(5),r=void 0;function i(e,t,a){if(s.isArray(e)){for(var n=[],r=0,i=e.length;r<i;r++)n.push(t.wrap(e[r],a));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}r||((r=function(e,t,a,n){this.src="",n&&this.add(n)}).prototype={add:function(e){s.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){s.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new r(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof r?e:(e=i(e,this,t),new r(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];n(e).forEach((function(n){var s=i(e[n],t);"undefined"!==s&&a.push([t.quotedString(n),":",s])}));var s=this.generateList(a);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var t=this.empty(),a=0,n=e.length;a<n;a++)a&&t.add(","),t.add(i(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=t()}},t={};function a(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,a),r.exports}a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(675);const t=a.p+"placeholder.c99b7374b9bf579d0fd0.png";var n,s,r,i;!function(e){e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content"}(n||(n={})),function(e){e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple"}(s||(s={})),function(e){e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom"}(r||(r={})),function(e){e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement"}(i||(i={}));const o="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;const c=o||l||Function("return this")(),h=c.Symbol,u=Array.isArray;var d=Object.prototype,p=d.hasOwnProperty,f=d.toString,v=h?h.toStringTag:void 0;var m=Object.prototype.toString;var g=h?h.toStringTag:void 0;const y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?function(e){var t=p.call(e,v),a=e[v];try{e[v]=void 0;var n=!0}catch(e){}var s=f.call(e);return n&&(t?e[v]=a:delete e[v]),s}(e):function(e){return m.call(e)}(e)},k=function(e){return null!=e&&"object"==typeof e},w=function(e){return"symbol"==typeof e||k(e)&&"[object Symbol]"==y(e)};var b=h?h.prototype:void 0,_=b?b.toString:void 0;const S=function e(t){if("string"==typeof t)return t;if(u(t))return function(e,t){for(var a=-1,n=null==e?0:e.length,s=Array(n);++a<n;)s[a]=t(e[a],a,e);return s}(t,e)+"";if(w(t))return _?_.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a},x=(E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==E?void 0:E[e]});var E,P=/&(?:amp|lt|gt|quot|#39);/g,C=RegExp(P.source);const H=function(e){return(e=null==(t=e)?"":S(t))&&C.test(e)?e.replace(P,x):e;var t},q={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let I;const R=new Uint8Array(16);function L(){if(!I&&(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!I))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(R)}const A=[];for(let e=0;e<256;++e)A.push((e+256).toString(16).slice(1));const T=function(e,t,a){if(q.randomUUID&&!t&&!e)return q.randomUUID();const n=(e=e||{}).random||(e.rng||L)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=n[e];return t}return function(e,t=0){return(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase()}(n)};class M{constructor(){var e,t,a,n,s,r,i,o,l,c,h,u,d,p,f;this.fieldMappings={imageUrl:(null===(e=Hawksearch.config.fieldMappings)||void 0===e?void 0:e.imageUrl)||"image",price:(null===(t=Hawksearch.config.fieldMappings)||void 0===t?void 0:t.price)||"price",salePrice:(null===(a=Hawksearch.config.fieldMappings)||void 0===a?void 0:a.salePrice)||"saleprice",title:(null===(n=Hawksearch.config.fieldMappings)||void 0===n?void 0:n.title)||"itemname",description:(null===(s=Hawksearch.config.fieldMappings)||void 0===s?void 0:s.description)||"longdescription",type:(null===(r=Hawksearch.config.fieldMappings)||void 0===r?void 0:r.type)||"type",url:(null===(i=Hawksearch.config.fieldMappings)||void 0===i?void 0:i.url)||"url"},this.queryStringParams={disableSpellcheck:(null===(o=Hawksearch.config.queryStringMappings)||void 0===o?void 0:o.disableSpellcheck)||"disableSpellcheck",facet:(null===(l=Hawksearch.config.queryStringMappings)||void 0===l?void 0:l.facet)||"facet",page:(null===(c=Hawksearch.config.queryStringMappings)||void 0===c?void 0:c.page)||"page",pageSize:(null===(h=Hawksearch.config.queryStringMappings)||void 0===h?void 0:h.pageSize)||"pageSize",query:(null===(u=Hawksearch.config.queryStringMappings)||void 0===u?void 0:u.query)||"query",searchWithin:(null===(d=Hawksearch.config.queryStringMappings)||void 0===d?void 0:d.searchWithin)||"searchWithin",sort:(null===(p=Hawksearch.config.queryStringMappings)||void 0===p?void 0:p.sort)||"sort"},this.searchUrl=null!==(f=Hawksearch.config.searchUrl)&&void 0!==f?f:"/search"}httpPost(e,t){return a=this,n=void 0,r=function*(){const a=this.baseUrl+e,n=this.getHeaders(),s=yield fetch(a,{method:"POST",headers:n,body:JSON.stringify(t)}),r=s.headers.get("content-type");return(null==r?void 0:r.startsWith("application/json"))?s.json():void 0},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function o(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof s?a:new s((function(e){e(a)}))).then(i,o)}l((r=r.apply(a,n||[])).next())}));var a,n,s,r}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=H(t),t=decodeURIComponent(t),t}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return T()}}const D=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}query(e){return t=this,a=void 0,s=function*(){const t={query:e};return yield this.executeAutocomplete(t)},new((n=void 0)||(n=Promise))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof n?a:new n((function(e){e(a)}))).then(i,o)}l((s=s.apply(t,a||[])).next())}));var t,a,n,s}executeAutocomplete(e){const t={ClientGuid:Hawksearch.config.clientId,Keyword:e.query,DisplayFullResponse:!0};return this.triggerEvent("hawksearch:before-autocomplete-executed",t),this.httpPost("/autocomplete",t).then((t=>{this.triggerEvent("hawksearch:after-autocomplete-executed",t);const a=this.convertAutocompleteResponse(e.query,t);return this.triggerEvent("hawksearch:autocomplete-completed",a),this.bindComponent(a),a}))}convertAutocompleteResponse(e,t){return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map((e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:e.FieldQSValue,url:`${this.searchUrl}?${this.queryStringParams.facet}-${e.FieldQSName}=${encodeURIComponent(e.FieldQSValue)}`})))},content:{title:t.ContentHeading,results:t.Content.map((e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url}))),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map((e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`})))},products:{title:t.ProductHeading,results:t.Products.map((e=>{var t;return{id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.ProductName),sku:e.Sku||void 0,imageUrl:null===(t=e.Thumb)||void 0===t?void 0:t.Url,url:e.Url}})),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e){this.triggerEvent("hawksearch:bind-autocomplete",e)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});dispatchEvent(a)}},N=function(e,t){return e===t||e!=e&&t!=t},O=function(e,t){for(var a=e.length;a--;)if(N(e[a][0],t))return a;return-1};var j=Array.prototype.splice;function F(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}F.prototype.clear=function(){this.__data__=[],this.size=0},F.prototype.delete=function(e){var t=this.__data__,a=O(t,e);return!(a<0||(a==t.length-1?t.pop():j.call(t,a,1),--this.size,0))},F.prototype.get=function(e){var t=this.__data__,a=O(t,e);return a<0?void 0:t[a][1]},F.prototype.has=function(e){return O(this.__data__,e)>-1},F.prototype.set=function(e,t){var a=this.__data__,n=O(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this};const V=F,B=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!B(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},U=c["__core-js_shared__"];var z,W=(z=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"";var Q=Function.prototype.toString;const Z=function(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var K=/^\[object .+?Constructor\]$/,Y=Function.prototype,J=Object.prototype,G=Y.toString,X=J.hasOwnProperty,ee=RegExp("^"+G.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const te=function(e){return!(!B(e)||(t=e,W&&W in t))&&($(e)?ee:K).test(Z(e));var t},ae=function(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return te(a)?a:void 0},ne=ae(c,"Map"),se=ae(Object,"create");var re=Object.prototype.hasOwnProperty;var ie=Object.prototype.hasOwnProperty;function oe(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oe.prototype.get=function(e){var t=this.__data__;if(se){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return re.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:ie.call(t,e)},oe.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=se&&void 0===t?"__lodash_hash_undefined__":t,this};const le=oe,ce=function(e,t){var a,n,s=e.__data__;return("string"==(n=typeof(a=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==a:null===a)?s["string"==typeof t?"string":"hash"]:s.map};function he(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new le,map:new(ne||V),string:new le}},he.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return ce(this,e).get(e)},he.prototype.has=function(e){return ce(this,e).has(e)},he.prototype.set=function(e,t){var a=ce(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this};const ue=he;function de(e){var t=this.__data__=new V(e);this.size=t.size}de.prototype.clear=function(){this.__data__=new V,this.size=0},de.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},de.prototype.get=function(e){return this.__data__.get(e)},de.prototype.has=function(e){return this.__data__.has(e)},de.prototype.set=function(e,t){var a=this.__data__;if(a instanceof V){var n=a.__data__;if(!ne||n.length<199)return n.push([e,t]),this.size=++a.size,this;a=this.__data__=new ue(n)}return a.set(e,t),this.size=a.size,this};const pe=de,fe=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ve=function(e,t,a){"__proto__"==t&&fe?fe(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a};var me=Object.prototype.hasOwnProperty;const ge=function(e,t,a){var n=e[t];me.call(e,t)&&N(n,a)&&(void 0!==a||t in e)||ve(e,t,a)},ye=function(e,t,a,n){var s=!a;a||(a={});for(var r=-1,i=t.length;++r<i;){var o=t[r],l=n?n(a[o],e[o],o,a,e):void 0;void 0===l&&(l=e[o]),s?ve(a,o,l):ge(a,o,l)}return a},ke=function(e){return k(e)&&"[object Arguments]"==y(e)};var we=Object.prototype,be=we.hasOwnProperty,_e=we.propertyIsEnumerable;const Se=ke(function(){return arguments}())?ke:function(e){return k(e)&&be.call(e,"callee")&&!_e.call(e,"callee")};var xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=xe&&"object"==typeof module&&module&&!module.nodeType&&module,Pe=Ee&&Ee.exports===xe?c.Buffer:void 0;const Ce=(Pe?Pe.isBuffer:void 0)||function(){return!1};var He=/^(?:0|[1-9]\d*)$/;const qe=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&He.test(e))&&e>-1&&e%1==0&&e<t},Ie=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Re={};Re["[object Float32Array]"]=Re["[object Float64Array]"]=Re["[object Int8Array]"]=Re["[object Int16Array]"]=Re["[object Int32Array]"]=Re["[object Uint8Array]"]=Re["[object Uint8ClampedArray]"]=Re["[object Uint16Array]"]=Re["[object Uint32Array]"]=!0,Re["[object Arguments]"]=Re["[object Array]"]=Re["[object ArrayBuffer]"]=Re["[object Boolean]"]=Re["[object DataView]"]=Re["[object Date]"]=Re["[object Error]"]=Re["[object Function]"]=Re["[object Map]"]=Re["[object Number]"]=Re["[object Object]"]=Re["[object RegExp]"]=Re["[object Set]"]=Re["[object String]"]=Re["[object WeakMap]"]=!1;const Le=function(e){return function(t){return e(t)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Te=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Me=Te&&Te.exports===Ae&&o.process;const De=function(){try{return Te&&Te.require&&Te.require("util").types||Me&&Me.binding&&Me.binding("util")}catch(e){}}();var Ne=De&&De.isTypedArray;const Oe=Ne?Le(Ne):function(e){return k(e)&&Ie(e.length)&&!!Re[y(e)]};var je=Object.prototype.hasOwnProperty;const Fe=function(e,t){var a=u(e),n=!a&&Se(e),s=!a&&!n&&Ce(e),r=!a&&!n&&!s&&Oe(e),i=a||n||s||r,o=i?function(e,t){for(var a=-1,n=Array(e);++a<e;)n[a]=t(a);return n}(e.length,String):[],l=o.length;for(var c in e)!t&&!je.call(e,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qe(c,l))||o.push(c);return o};var Ve=Object.prototype;const Be=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ve)},$e=function(e,t){return function(a){return e(t(a))}},Ue=$e(Object.keys,Object);var ze=Object.prototype.hasOwnProperty;const We=function(e){return null!=e&&Ie(e.length)&&!$(e)},Qe=function(e){return We(e)?Fe(e):function(e){if(!Be(e))return Ue(e);var t=[];for(var a in Object(e))ze.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)};var Ze=Object.prototype.hasOwnProperty;const Ke=function(e){if(!B(e))return function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}(e);var t=Be(e),a=[];for(var n in e)("constructor"!=n||!t&&Ze.call(e,n))&&a.push(n);return a},Ye=function(e){return We(e)?Fe(e,!0):Ke(e)};var Je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=Ge&&Ge.exports===Je?c.Buffer:void 0,et=Xe?Xe.allocUnsafe:void 0;const tt=function(){return[]};var at=Object.prototype.propertyIsEnumerable,nt=Object.getOwnPropertySymbols;const st=nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var a=-1,n=null==e?0:e.length,s=0,r=[];++a<n;){var i=e[a];t(i,a,e)&&(r[s++]=i)}return r}(nt(e),(function(t){return at.call(e,t)})))}:tt,rt=function(e,t){for(var a=-1,n=t.length,s=e.length;++a<n;)e[s+a]=t[a];return e},it=$e(Object.getPrototypeOf,Object),ot=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rt(t,st(e)),e=it(e);return t}:tt,lt=function(e,t,a){var n=t(e);return u(e)?n:rt(n,a(e))},ct=function(e){return lt(e,Qe,st)},ht=function(e){return lt(e,Ye,ot)},ut=ae(c,"DataView"),dt=ae(c,"Promise"),pt=ae(c,"Set"),ft=ae(c,"WeakMap");var vt="[object Map]",mt="[object Promise]",gt="[object Set]",yt="[object WeakMap]",kt="[object DataView]",wt=Z(ut),bt=Z(ne),_t=Z(dt),St=Z(pt),xt=Z(ft),Et=y;(ut&&Et(new ut(new ArrayBuffer(1)))!=kt||ne&&Et(new ne)!=vt||dt&&Et(dt.resolve())!=mt||pt&&Et(new pt)!=gt||ft&&Et(new ft)!=yt)&&(Et=function(e){var t=y(e),a="[object Object]"==t?e.constructor:void 0,n=a?Z(a):"";if(n)switch(n){case wt:return kt;case bt:return vt;case _t:return mt;case St:return gt;case xt:return yt}return t});const Pt=Et;var Ct=Object.prototype.hasOwnProperty;const Ht=c.Uint8Array,qt=function(e){var t=new e.constructor(e.byteLength);return new Ht(t).set(new Ht(e)),t};var It=/\w*$/;var Rt=h?h.prototype:void 0,Lt=Rt?Rt.valueOf:void 0;const At=function(e,t,a){var n,s,r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return qt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var a=t?qt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var a=t?qt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}(e,a);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(r=new(s=e).constructor(s.source,It.exec(s))).lastIndex=s.lastIndex,r;case"[object Symbol]":return n=e,Lt?Object(Lt.call(n)):{}}};var Tt=Object.create;const Mt=function(){function e(){}return function(t){if(!B(t))return{};if(Tt)return Tt(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();var Dt=De&&De.isMap;const Nt=Dt?Le(Dt):function(e){return k(e)&&"[object Map]"==Pt(e)};var Ot=De&&De.isSet;const jt=Ot?Le(Ot):function(e){return k(e)&&"[object Set]"==Pt(e)};var Ft="[object Arguments]",Vt="[object Function]",Bt={};Bt[Ft]=Bt["[object Array]"]=Bt["[object ArrayBuffer]"]=Bt["[object DataView]"]=Bt["[object Boolean]"]=Bt["[object Date]"]=Bt["[object Float32Array]"]=Bt["[object Float64Array]"]=Bt["[object Int8Array]"]=Bt["[object Int16Array]"]=Bt["[object Int32Array]"]=Bt["[object Map]"]=Bt["[object Number]"]=Bt["[object Object]"]=Bt["[object RegExp]"]=Bt["[object Set]"]=Bt["[object String]"]=Bt["[object Symbol]"]=Bt["[object Uint8Array]"]=Bt["[object Uint8ClampedArray]"]=Bt["[object Uint16Array]"]=Bt["[object Uint32Array]"]=!0,Bt["[object Error]"]=Bt[Vt]=Bt["[object WeakMap]"]=!1;const $t=function e(t,a,n,s,r,i){var o,l=1&a,c=2&a,h=4&a;if(n&&(o=r?n(t,s,r,i):n(t)),void 0!==o)return o;if(!B(t))return t;var d=u(t);if(d){if(o=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&Ct.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(t),!l)return function(e,t){var a=-1,n=e.length;for(t||(t=Array(n));++a<n;)t[a]=e[a];return t}(t,o)}else{var p=Pt(t),f=p==Vt||"[object GeneratorFunction]"==p;if(Ce(t))return function(e,t){if(t)return e.slice();var a=e.length,n=et?et(a):new e.constructor(a);return e.copy(n),n}(t,l);if("[object Object]"==p||p==Ft||f&&!r){if(o=c||f?{}:function(e){return"function"!=typeof e.constructor||Be(e)?{}:Mt(it(e))}(t),!l)return c?function(e,t){return ye(e,ot(e),t)}(t,function(e,t){return e&&ye(t,Ye(t),e)}(o,t)):function(e,t){return ye(e,st(e),t)}(t,function(e,t){return e&&ye(t,Qe(t),e)}(o,t))}else{if(!Bt[p])return r?t:{};o=At(t,p,l)}}i||(i=new pe);var v=i.get(t);if(v)return v;i.set(t,o),jt(t)?t.forEach((function(s){o.add(e(s,a,n,s,t,i))})):Nt(t)&&t.forEach((function(s,r){o.set(r,e(s,a,n,r,t,i))}));var m=d?void 0:(h?c?ht:ct:c?Ye:Qe)(t);return function(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););}(m||t,(function(s,r){m&&(s=t[r=s]),ge(o,r,e(s,a,n,r,t,i))})),o},Ut=function(e){return $t(e,5)},zt=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.tracking)||"https://tracking-dev.hawksearch.net/api"}trackAutocompleteClick(e,t,a,n){const r={Keyword:e,Name:a,SuggestType:t,Url:n};return this.trackEvent(s.AutocompleteClick,r)}trackBannerClick(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={BannerId:e,CampaignId:t,TrackingId:Hawksearch.searchResponse.trackingId};return this.trackEvent(s.BannerClick,n)}trackBannerImpression(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={BannerId:e,CampaignId:t,TrackingId:Hawksearch.searchResponse.trackingId};return this.trackEvent(s.BannerImpression,n)}trackPageLoad(e){const t={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(s.PageLoad,t)}trackSearchResultClick(e,t,a){var n;if(!(null===(n=Hawksearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={UniqueId:e,Url:t,TrackingId:Hawksearch.searchResponse.trackingId,RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:null==a?void 0:a.pageX,MouseY:null==a?void 0:a.pageY};return this.trackEvent(s.Click,r)}trackSearch(e,t){var a;if(!(null===(a=Hawksearch.searchResponse)||void 0===a?void 0:a.trackingId))return Promise.resolve();const n={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:Hawksearch.searchResponse.trackingId,TypeId:t?i.Initial:i.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(s.Search,n)}trackEvent(e,t){if(!1===Hawksearch.config.trackingEnabled)return Promise.resolve();const a={ClientGuid:Hawksearch.config.clientId,EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};return this.httpPost("/trackevent",a)}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}};var Wt=function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function i(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,o)}l((n=n.apply(e,t||[])).next())}))};const Qt=new class extends M{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=Hawksearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}search(e){return Wt(this,void 0,void 0,(function*(){const t=yield this.executeSearch(e,!0,!1);return this.bindComponents(t),t}))}query(e,t,a=!1){return Wt(this,void 0,void 0,(function*(){if(window.location.pathname!==this.searchUrl){const a={newRequest:!0,query:e,facets:t},n=this.getSearchUrl(a);return window.location.assign(n),Promise.resolve()}if(e){const t=this.getRecentQueries(),a=5;t.includes(e)||(t.length>=a&&t.splice(a-1),t.unshift(e),this.saveRecentQueries(t))}const n={disableSpellcheck:!!a||void 0,query:e,newRequest:!0},s=yield this.executeSearch(n,!0,!1);return this.bindComponents(s),s}))}addFacetValue(e,t){var a,n;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const s=Ut(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={}),this.clearExistingFacetValue(s,e,t),s.facets[e]=[...null!==(n=null===(a=s.facets[e])||void 0===a?void 0:a.filter((e=>e!==t)))&&void 0!==n?n:[],t];const r=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}removeFacetValue(e,t){return Wt(this,void 0,void 0,(function*(){if(this.ensureSearchRequest(),"searchWithin"===e)return yield this.searchWithin("");const a=Ut(Hawksearch.searchRequest);a.newRequest=!1,a.page=void 0,this.clearExistingFacetValue(a,e,t);const n=yield this.executeSearch(a,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}includeFacetValue(e,t){const a=`@${t}`;return this.removeFacetValue(e,a)}excludeFacetValue(e,t){var a;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const n=`@${t}`,s=Ut(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={}),this.clearExistingFacetValue(s,e,t),s.facets=Object.assign(Object.assign({},s.facets),{[e]:[...null!==(a=s.facets[e])&&void 0!==a?a:[],n]});const r=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}clearExistingFacetValue(e,t,a){var n,s,r;const i=`@${a=a.replace(/^@/,"")}`;e.facets||(e.facets={}),e.facets=Object.assign(Object.assign({},e.facets),{[t]:[...null!==(s=null===(n=e.facets[t])||void 0===n?void 0:n.filter((e=>e!==a&&e!==i)))&&void 0!==s?s:[]]}),(null===(r=e.facets[t])||void 0===r?void 0:r.length)||delete e.facets[t]}setFacetValue(e,t){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const a=Ut(Hawksearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),a.facets[e]=[t];const n=yield this.executeSearch(a,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}searchWithin(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=Ut(Hawksearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const a=yield this.executeSearch(t,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}selectTab(e){var t,a,n;return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const s=Ut(Hawksearch.searchRequest);s.newRequest=!1,s.page=void 0,s.facets||(s.facets={});const r=null===(n=null===(a=null===(t=Hawksearch.searchResponse)||void 0===t?void 0:t.facets)||void 0===a?void 0:a.find((e=>"tabs"===e.type)))||void 0===n?void 0:n.field;r&&(e?s.facets[r]=[e]:delete s.facets[r]);const i=yield this.executeSearch(s,!1);return this.bindFacetsListComponent(i),this.bindPaginationComponent(i),this.bindSelectedFacetsComponent(i),this.bindTabsComponent(i),this.bindZoneComponent(i),i}))}paginate(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=Ut(Hawksearch.searchRequest);t.newRequest=!1,t.page=e;const a=yield this.executeSearch(t,!1);return this.bindPaginationComponent(a),a}))}setPageSize(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=Ut(Hawksearch.searchRequest);t.newRequest=!1,t.pageSize=e;const a=yield this.executeSearch(t,!1);return this.bindPageSizeComponent(a),this.bindPaginationComponent(a),a}))}sort(e){return Wt(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=Ut(Hawksearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const a=yield this.executeSearch(t,!1);return this.bindPaginationComponent(a),this.bindSortingComponent(a),a}))}executeSearch(e,t,a=!0){Hawksearch.searchRequest=e;const n={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},ClientGuid:Hawksearch.config.clientId,IgnoreSpellcheck:e.disableSpellcheck,Keyword:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort};return this.triggerEvent("hawksearch:before-search-executed",n),this.httpPost("/search",n).then((n=>{var s;this.triggerEvent("hawksearch:after-search-executed",n);const r=this.convertSearchResponse(e,n);return Hawksearch.searchResponse=r,zt.trackSearch(e.query,t),this.setQueryString(),this.triggerEvent("hawksearch:search-completed",r),a&&(this.bindModifiedQueryComponent(r),this.bindQuerySuggestionsComponent(r),this.bindSearchFieldComponent(r),this.bindSearchResultsListComponent(r)),t&&r.redirect&&window.open(r.redirect.url,null!==(s=r.redirect.target)&&void 0!==s?s:"_self"),r}))}ensureSearchRequest(){if(!Hawksearch.searchRequest)throw new Error("You cannot refine search results until an initial search has been executed")}convertSearchResponse(e,t){var a,n,s,r,i,o;const l=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":return"color";case"link":return"link";case"openrange":if("datetime"===e.DataType)return"date-range";if(e.IsCurrency||e.IsNumeric)return"numeric-range";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";case"swatch":return"color";default:return"unsupported"}},c=e=>{const t=l(e);if(["date-range","numeric-range","range-slider"].includes(t))return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:e.IsCurrency||e.IsNumeric?{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}:void 0},h=(e,t)=>{var a,n;const s=null===(a=e.Ranges)||void 0===a?void 0:a.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(null==s?void 0:s.AssetFullUrl)return this.getUrl(null===(n=Hawksearch.config.urlPrefixes)||void 0===n?void 0:n.assets,s.AssetFullUrl)},u=(e,t)=>{var a,n,s;let r=null===(a=e.SwatchData)||void 0===a?void 0:a.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(r||(r=null===(n=e.SwatchData)||void 0===n?void 0:n.find((e=>e.IsDefault))),r)return{name:t.Label,hex:r.Color||r.Value,imageUrl:this.getUrl(null===(s=Hawksearch.config.urlPrefixes)||void 0===s?void 0:s.assets,r.AssetUrl||r.AssetName)}},d=(e,t,a)=>"recent-searches"===l(e)?this.getRecentQueries().map((e=>({title:e}))):null==t?void 0:t.map((t=>{var n;return{title:t.Label,imageUrl:h(e,t),value:t.Value,color:u(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:null===(n=null==a?void 0:a.Items)||void 0===n?void 0:n.some((e=>e.Value===`@${t.Value}`)),children:d(e,t.Children,a)}})),p=e=>{var t;if("recent-searches"===l(e)){const t=d(e,void 0,void 0);return!!(null==t?void 0:t.length)}return null===(t=e.IsVisible)||void 0===t||t},f=e=>{var t,a,n,s,r,i,o,l,c,h,u,d,p;return{id:e.DocId,pinned:null!==(t=e.IsPin)&&void 0!==t&&t,visible:null===(a=e.IsVisible)||void 0===a||a,score:e.Score,type:["item","product"].includes(null===(r=null===(s=null===(n=e.Document)||void 0===n?void 0:n[this.fieldMappings.type])||void 0===s?void 0:s[0])||void 0===r?void 0:r.toLowerCase())?"product":"content",imageUrl:this.getUrl(null===(i=Hawksearch.config.urlPrefixes)||void 0===i?void 0:i.content,this.getString(null===(o=e.Document)||void 0===o?void 0:o[this.fieldMappings.imageUrl])),title:this.getString(null===(l=e.Document)||void 0===l?void 0:l[this.fieldMappings.title]),description:this.getString(null===(c=e.Document)||void 0===c?void 0:c[this.fieldMappings.description]),url:this.getUrl(null===(h=Hawksearch.config.urlPrefixes)||void 0===h?void 0:h.content,this.getString(null===(u=e.Document)||void 0===u?void 0:u[this.fieldMappings.url])),price:this.getNumber(null===(d=e.Document)||void 0===d?void 0:d[this.fieldMappings.price]),salePrice:this.getNumber(null===(p=e.Document)||void 0===p?void 0:p[this.fieldMappings.salePrice]),attributes:e.Document}},v=()=>{var a;const n="searchWithin",s=null===(a=t.Facets)||void 0===a?void 0:a.find((e=>e.Field===n));return e.searchWithin&&s?[{field:n,title:s.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},m=(e,t)=>{var a;("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&(t="");const n={id:e.BannerId,campaignId:e.CampaignId,type:e[t+"ContentType"],title:e.Title,zone:e.Zone};switch(n.type){case"custom":n.content=e[t+"Output"];break;case"featured":{const t=n;t.type="featured-items",t.items=e.Items.map(f);break}case"image":{const s=n;s.image={url:this.getUrl(null===(a=Hawksearch.config.urlPrefixes)||void 0===a?void 0:a.assets,e[t+"ImageUrl"]),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},s.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const a=n;a.type="popular-queries";const s=Math.min(...e[t+"Output"].map((e=>e.count))),r=Math.max(...e[t+"Output"].map((e=>e.count)))-s,i=5,o=new Array(i).fill(0);o.forEach(((e,t)=>{o[t]=t===i-1?0:Math.floor(r/(t+1))+s})),a.items=e[t+"Output"]instanceof Array?e[t+"Output"].map((e=>({query:e.keyword,count:e.count,weight:i-o.findIndex((t=>e.count>=t))}))).sort(((e,t)=>e.query.localeCompare(t.query))):[];break}default:{const t=n;t.type="custom-widget",t.data=e.AltTag}}}return n};return{contentZones:(()=>{var e,a;const n={};return null===(e=t.FeaturedItems)||void 0===e||e.Items.forEach((e=>{var t,a;const s=null!==(t=n[e.Zone])&&void 0!==t?t:{name:e.Zone},r={mobile:m(e,""),tablet:m(e,""),desktop:m(e,"")};s.items=[...null!==(a=s.items)&&void 0!==a?a:[],r],n[e.Zone]=s})),null===(a=t.Merchandising)||void 0===a||a.Items.forEach((e=>{var t,a;const s=null!==(t=n[e.Zone])&&void 0!==t?t:{name:e.Zone},r={mobile:m(e,"Mobile"),tablet:m(e,"Tablet"),desktop:m(e,"")};s.items=[...null!==(a=s.items)&&void 0!==a?a:[],r],n[e.Zone]=s})),n})(),facets:null===(a=t.Facets)||void 0===a?void 0:a.map((a=>{var n,s,r;return{id:a.FacetId,type:l(a),title:a.Name,field:a.ParamName||a.Field,collapsible:null!==(n=a.IsCollapsible)&&void 0!==n&&n,collapsed:a.IsCollapsedDefault,range:c(a),searchable:a.IsSearch,searchWithin:e.searchWithin,tooltip:this.stripHtml(null!==(s=a.Tooltip)&&void 0!==s?s:"")||void 0,truncateThreshold:parseFloat(a.TruncateThreshold)||void 0,values:d(a,a.Values,null===(r=t.Selections)||void 0===r?void 0:r[a.ParamName||a.Field]),visible:p(a)}})).filter((e=>"unsupported"!==e.type)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:null!==(n=t.Pagination.Items.map((e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))))&&void 0!==n?n:[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:null===(s=t.Results)||void 0===s?void 0:s.map(f),selectedFacets:(()=>{var e;return[...Object.keys(null!==(e=t.Selections)&&void 0!==e?e:[]).map((e=>{var a,n;const s=t.Selections[e],r=null===(a=t.Facets)||void 0===a?void 0:a.find((t=>(t.ParamName||t.Field)===e)),i=new RegExp("^@");return{field:e,currency:null!==(n=null==r?void 0:r.IsCurrency)&&void 0!==n&&n,title:s.Label,values:s.Items.map((e=>({title:e.Label.replace(i,""),value:e.Value,excluded:i.test(e.Value)})))}})),...v()]})(),success:t.Success,sorting:{value:null===(r=t.Sorting)||void 0===r?void 0:r.Value,options:null!==(o=null===(i=t.Sorting)||void 0===i?void 0:i.Items.map((e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))))&&void 0!==o?o:[]},trackingId:t.TrackingId}}getString(e,t){var a;return null!==(a=null==e?void 0:e[0])&&void 0!==a?a:t}getNumber(e,t){const a=this.getString(e);let n=a?parseFloat(a):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),null!=n?n:t}getUrl(e,t){if(t)return e&&!/^https?:\/\//.test(t)?`${e}/${t.replace(/^\/+/,"")}`:t}bindComponents(e){this.bindSearchResultsComponent(e),setTimeout((()=>{this.bindFacetsListComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)}))}bindFacetsListComponent(e){this.triggerEvent("hawksearch:bind-facets-list",null==e?void 0:e.facets)}bindModifiedQueryComponent(e){const t={display:!!(null==e?void 0:e.query)&&!!(null==e?void 0:e.modifiedQuery)&&Hawksearch.searchRequest.newRequest,query:null==e?void 0:e.query,modifiedQuery:null==e?void 0:e.modifiedQuery};this.triggerEvent("hawksearch:bind-modified-query",t)}bindPageSizeComponent(e){var t;this.triggerEvent("hawksearch:bind-page-size",null===(t=null==e?void 0:e.pagination)||void 0===t?void 0:t.options)}bindPaginationComponent(e){this.triggerEvent("hawksearch:bind-pagination",null==e?void 0:e.pagination)}bindSearchFieldComponent(e){this.triggerEvent("hawksearch:bind-search-field",e)}bindSearchResultsComponent(e){this.triggerEvent("hawksearch:bind-search-results",e)}bindSearchResultsListComponent(e){this.triggerEvent("hawksearch:bind-search-results-list",null==e?void 0:e.results)}bindQuerySuggestionsComponent(e){var t;const a={display:!!(null===(t=null==e?void 0:e.querySuggestions)||void 0===t?void 0:t.length)&&Hawksearch.searchRequest.newRequest,querySuggestions:null==e?void 0:e.querySuggestions};this.triggerEvent("hawksearch:bind-query-suggestions",a)}bindSortingComponent(e){this.triggerEvent("hawksearch:bind-sorting",null==e?void 0:e.sorting)}bindSelectedFacetsComponent(e){this.triggerEvent("hawksearch:bind-selected-facets",null==e?void 0:e.selectedFacets)}bindTabsComponent(e){var t;this.triggerEvent("hawksearch:bind-tabs",null===(t=null==e?void 0:e.facets)||void 0===t?void 0:t.find((e=>"tabs"===e.type)))}bindZoneComponent(e){this.triggerEvent("hawksearch:bind-content-zone",e)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});dispatchEvent(a)}getRequestFromUrl(){const e=new URL(window.location.href),t={},a=new RegExp(`^${this.queryStringParams.facet}-`);for(const n of Array.from(e.searchParams.keys()).filter((e=>a.test(e))))t[n.replace(a,"")]=e.searchParams.getAll(n);return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:t,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort))}}setQueryString(){if(!Hawksearch.searchRequest)return;const e=this.getSearchUrl(Hawksearch.searchRequest),t={searchRequest:Hawksearch.searchRequest,searchResponse:Hawksearch.searchResponse};e.toString()===window.location.href?window.history.replaceState(t,""):window.history.pushState(t,"",e.toString())}getSearchUrl(e){const t=new URL(window.location.pathname===this.searchUrl?window.location.href:this.searchUrl,window.location.origin);t.searchParams.delete(this.queryStringParams.query),e.query&&t.searchParams.set(this.queryStringParams.query,e.query);for(const e of t.searchParams.keys())e.startsWith(`${this.queryStringParams.facet}-`)&&t.searchParams.delete(e);return e.disableSpellcheck&&t.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).forEach((a=>{const n=e.facets[a];null==n||n.forEach((e=>t.searchParams.append(`${this.queryStringParams.facet}-${a}`,e)))})),t.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&t.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),t.searchParams.delete(this.queryStringParams.sort),e.sort&&t.searchParams.set(this.queryStringParams.sort,e.sort),t.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&t.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),t.searchParams.delete(this.queryStringParams.page),e.page&&t.searchParams.set(this.queryStringParams.page,e.page.toString()),t.toString()}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}},Zt=a.p+"hawksearch-handlebars-ui.2080df81d487fd6f63994233727bef26.css";class Kt extends HTMLElement{constructor(){super(...arguments),this.handlebars=Hawksearch.handlebars}get hasCustomTemplate(){return!!this.innerHTML.trim().length}connectedCallback(){this.attachShadow({mode:"open"}),this.registerHelpers();const e=this.getCustomTemplateHtml(),t=null!=e?e:this.defaultHtml;this.template=this.handlebars.compile(t),setTimeout((()=>{this.renderContent()})),this.bindEvent&&(this.bindEventHandler=e=>{this.data=e.detail,this.renderContent()},addEventListener(this.bindEvent,this.bindEventHandler))}disconnectedCallback(){this.bindEvent&&this.bindEventHandler&&removeEventListener(this.bindEvent,this.bindEventHandler)}registerHelpers(){}renderContent(){var e,t,a;if(!this.template)return;const n=[];let s=[];if(!1!==(null===(e=Hawksearch.config.css)||void 0===e?void 0:e.defaultStyles)&&s.push(Zt),null===(t=Hawksearch.config.css)||void 0===t?void 0:t.customStyles){const e="string"==typeof Hawksearch.config.css.customStyles?[Hawksearch.config.css.customStyles]:Hawksearch.config.css.customStyles;s=s.concat(e)}s.forEach((e=>{const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,n.push(t)}));const r=document.createElement("template");r.innerHTML=this.getContentHtml(this.template),this.style.display=r.innerHTML?"":"none";const i=r.content.cloneNode(!0);n.push(i),null===(a=this.shadowRoot)||void 0===a||a.replaceChildren(...n),this.bindChildElements()}bindChildElements(){}getCustomTemplateHtml(){var e;let t;if(this.hasCustomTemplate)t=this.innerHTML;else if(this.customTemplatePropertyName&&(t=null===(e=Hawksearch.config.templates)||void 0===e?void 0:e[this.customTemplatePropertyName]),t){const e=document.getElementById(t);e instanceof HTMLTemplateElement&&(t=e.innerHTML);const a={"{{&gt;":"{{>"};Object.entries(a).forEach((([e,a])=>{const n=new RegExp(e,"g");t=t.replace(n,a)}))}return t}}class Yt extends Kt{constructor(){super(...arguments),this.bindEvent=void 0}}function Jt(e,t=2){var a,n,s;const r=(null===(a=Hawksearch.config.formatting)||void 0===a?void 0:a.cultureIsoCode)||"en-US",i=(null===(s=null===(n=Hawksearch.config.formatting)||void 0===n?void 0:n.currencyIsoCode)||void 0===s?void 0:s.toUpperCase())||"USD";return e.toLocaleString(r,{style:"currency",currency:i,minimumFractionDigits:t,maximumFractionDigits:t})}function Gt(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function Xt(e){var t;const a=(null===(t=Hawksearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleString(a,{year:"numeric",month:"short",day:"2-digit"})}function ea(e,t=2){var a;const n=(null===(a=Hawksearch.config.formatting)||void 0===a?void 0:a.cultureIsoCode)||"en-US";return e.toLocaleString(n,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}const ta=function(){return c.Date.now()};var aa=/\s/;var na=/^\s+/;const sa=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&aa.test(e.charAt(t)););return t}(e)+1).replace(na,""):e};var ra=/^[-+]0x[0-9a-f]+$/i,ia=/^0b[01]+$/i,oa=/^0o[0-7]+$/i,la=parseInt;const ca=function(e){if("number"==typeof e)return e;if(w(e))return NaN;if(B(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=B(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=sa(e);var a=ia.test(e);return a||oa.test(e)?la(e.slice(2),a?2:8):ra.test(e)?NaN:+e};var ha=Math.max,ua=Math.min;const da=function(e,t,a){var n,s,r,i,o,l,c=0,h=!1,u=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var a=n,r=s;return n=s=void 0,c=t,i=e.apply(r,a)}function f(e){return c=e,o=setTimeout(m,t),h?p(e):i}function v(e){var a=e-l;return void 0===l||a>=t||a<0||u&&e-c>=r}function m(){var e=ta();if(v(e))return g(e);o=setTimeout(m,function(e){var a=t-(e-l);return u?ua(a,r-(e-c)):a}(e))}function g(e){return o=void 0,d&&n?p(e):(n=s=void 0,i)}function y(){var e=ta(),a=v(e);if(n=arguments,s=this,l=e,a){if(void 0===o)return f(l);if(u)return clearTimeout(o),o=setTimeout(m,t),p(l)}return void 0===o&&(o=setTimeout(m,t)),i}return t=ca(t)||0,B(a)&&(h=!!a.leading,r=(u="maxWait"in a)?ha(ca(a.maxWait)||0,t):r,d="trailing"in a?!!a.trailing:d),y.cancel=function(){void 0!==o&&clearTimeout(o),c=0,n=l=s=o=void 0},y.flush=function(){return void 0===o?i:g(ta())},y};function pa(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function fa(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]}class va extends Kt{constructor(){super(...arguments),this.bindEvent=void 0}bindChildElements(){var e,t,a,n,s,r;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("input[hawksearch-facet-value]").forEach((e=>{e.addEventListener("change",(e=>{e.stopPropagation();const t=e.currentTarget,a=this.data.field,n=t.value;t.checked?Qt.addFacetValue(a,n):Qt.removeFacetValue(a,n)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),e.stopPropagation();const a=e.currentTarget.getAttribute("hawksearch-facet-value"),n=null===(t=this.data.values)||void 0===t?void 0:t.find((e=>e.value===a));n&&(n.selected?Qt.removeFacetValue(this.data.field,a):Qt.addFacetValue(this.data.field,a))}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-facet-value-include]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field;let n=t.getAttribute("hawksearch-facet-value-include");n&&(n=`@${n}`,Qt.removeFacetValue(a,n))}))})),null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-facet-value-exclude]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field,n=t.getAttribute("hawksearch-facet-value-exclude");n&&Qt.excludeFacetValue(a,n)}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-facet-value-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.renderContent())}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-facet-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.renderContent()}))}))}}if(Hawksearch||(Hawksearch={}),Hawksearch.service=Qt,Hawksearch.handlebars=e.noConflict(),Hawksearch.handlebars.registerHelper("add",(function(e,t){return e+t})),Hawksearch.handlebars.registerHelper("and",(function(...e){return e.slice(0,-1).every((e=>!!e))})),Hawksearch.handlebars.registerHelper("attribute",(function(e,t){return new Hawksearch.handlebars.SafeString(t?e:"")})),Hawksearch.handlebars.registerHelper("concat",(function(...e){return e.length<2?"":e.slice(0,-1).join("")})),Hawksearch.handlebars.registerHelper("eq",(function(e,t){return e===t})),Hawksearch.handlebars.registerHelper("exclude",(function(e){return e.fn()})),Hawksearch.handlebars.registerHelper("html",(function(e){return new Hawksearch.handlebars.SafeString(e)})),Hawksearch.handlebars.registerHelper("currency",((e,t,a)=>{var n;return"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),Jt(null!==(n=null!=e?e:a)&&void 0!==n?n:0,t)})),Hawksearch.handlebars.registerHelper("number",((e,t,a)=>{var n;return"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),ea(null!==(n=null!=e?e:a)&&void 0!==n?n:0,t)})),Hawksearch.handlebars.registerHelper("if-else",(function(e,t,a){return e?t:a})),Hawksearch.handlebars.registerHelper("lt",(function(e,t){return e<t})),Hawksearch.handlebars.registerHelper("lte",(function(e,t){return e<=t})),Hawksearch.handlebars.registerHelper("gt",(function(e,t){return e>t})),Hawksearch.handlebars.registerHelper("gte",(function(e,t){return e>=t})),Hawksearch.handlebars.registerHelper("or",(function(...e){return e.slice(0,-1).some((e=>!!e))})),Hawksearch.handlebars.registerHelper("string",((e,t)=>("object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),null!=e?e:t))),Hawksearch.handlebars.registerHelper("subtract",(function(e,t){return e-t})),customElements.define("hawksearch-autocomplete",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-autocomplete",this.customTemplatePropertyName="search",this.defaultHtml='<div class="autocomplete">\n <div class="row">\n {{#if products.results.length}}\n <div class="column column--12 column-md--8">\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\n <div class="row autocomplete__products">\n {{#each products.results}}\n <div class="column column--12 column-sm--4">\n <div class="autocomplete__product">\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <span class="autocomplete__product__title">\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\n </span>\n </div>\n </div>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{#if (or categories.results.length content.results.length queries.results.length)}}\n <div class="column column--12 column-md--4">\n {{#if categories.results.length}}\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\n <ul class="autocomplete__list">\n {{#each categories.results}}\n <li>\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if content.results.length}}\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\n <ul class="autocomplete__list">\n {{#each content.results}}\n <li>\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if queries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\n <ul class="autocomplete__list">\n {{#each queries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n </div>\n {{/if}}\n </div>\n <div class="autocomplete__view-all">\n <a hawksearch-view-all>{{viewAllText}}</a>\n </div>\n</div>'}getContentHtml(e){var t,a,s,r,i,o;return this.data&&((null===(a=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===a?void 0:a.length)||(null===(r=null===(s=this.data.content)||void 0===s?void 0:s.results)||void 0===r?void 0:r.length)||(null===(o=null===(i=this.data.products)||void 0===i?void 0:i.results)||void 0===o?void 0:o.length))?e(Object.assign(Object.assign({},this.data),{AutocompleteItemType:n})):""}bindChildElements(){var e,a,s,r,i,o;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;e.preventDefault();const s=e.currentTarget,r=s.getAttribute("hawksearch-category-field"),i=s.getAttribute("hawksearch-category-value"),o=null===(a=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.field===r&&e.value===i));if(!o)return;zt.trackAutocompleteClick(this.data.query,n.Category,o.title,o.url);const l={[o.field]:[o.value]};Qt.query(void 0,l),this.close()}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-content]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;const s=e.currentTarget.getAttribute("hawksearch-content"),r=null===(a=null===(t=this.data.content)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.id===s));r&&zt.trackAutocompleteClick(this.data.query,n.Content,r.title,r.url)}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-product]").forEach((e=>{e.addEventListener("click",(e=>{var t,a;const s=e.currentTarget.getAttribute("hawksearch-product"),r=null===(a=null===(t=this.data.products)||void 0===t?void 0:t.results)||void 0===a?void 0:a.find((e=>e.id===s));r&&zt.trackAutocompleteClick(this.data.query,n.Product,r.title,r.url)}))})),null===(i=this.shadowRoot)||void 0===i||i.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const a=e.currentTarget.getAttribute("hawksearch-query");if(!a)return;const s=null===(t=this.data.queries)||void 0===t?void 0:t.results.find((e=>e.query===a));s&&zt.trackAutocompleteClick(this.data.query,n.Search,s.query,s.url),Qt.query(a)}))})),null===(o=this.shadowRoot)||void 0===o||o.querySelectorAll("[hawksearch-view-all]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),Qt.query(this.data.query)}))}))}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}}),customElements.define("hawksearch-checkbox-list-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="checkboxListFacet",this.defaultHtml='<div class="checkbox-list-facet">\r\n {{> facet-checkbox-list values}}\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\r\n {{/if}}\r\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\n <ul class="checkbox-list-facet__list">\n {{#each this}}\n {{#if visible}}\n <li\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\n \' checkbox-list-facet__list__item--collapsible\'\n hasChildren\n }}"\n >\n <div class="checkbox-list-facet__list__item__content">\n {{#if selected}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\n {{else}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\n {{/if}}\n <label for="{{@root.id}}-{{value}}" class="facet__value">\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\n </label>\n {{#if toggled}}\n {{> facet-checkbox-list children}}\n {{/if}}\n </div>\n <div class="checkbox-list-facet__list__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Include">\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if hasChildren}}\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="Toggle">\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n{{/if}}')}getContentHtml(e){var t,a,n;if(!this.data||!(null===(t=this.data.values)||void 0===t?void 0:t.length))return"";const s=this.state.filter?new RegExp(this.state.filter,"i"):void 0,r=e=>!!s&&s.test(e.title),i=e=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.some((e=>r(e))))||!1},o=(e,t)=>null==e?void 0:e.map(((e,a)=>{var n,l,c,h,u;const d=Object.assign(Object.assign({},e),{visible:!t&&!s&&(this.state.toggled||!this.data.truncateThreshold||a<this.data.truncateThreshold)||r(e)||i(e)||!s&&!!(null==t?void 0:t.toggled),hasChildren:!!(null===(n=e.children)||void 0===n?void 0:n.length),children:void 0,toggled:!(!e.value||!(null===(l=e.children)||void 0===l?void 0:l.length))&&null!==(u=null===(h=null===(c=this.state.values)||void 0===c?void 0:c[e.value])||void 0===h?void 0:h.toggled)&&void 0!==u&&u||i(e)});return d.children=o(e.children,d),d}));return e({values:o(this.data.values,void 0),showToggle:!!this.data.truncateThreshold&&(null!==(n=null===(a=this.data.values)||void 0===a?void 0:a.length)&&void 0!==n?n:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-color-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="colorFacet",this.defaultHtml='<div class="color-facet">\n <div class="row row--tight color-facet__items">\n {{#each values}}\n {{#if visible}}\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n <span class="color-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="Include">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s;if(!this.data)return"";const r=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return e({values:null!==(a=null===(t=this.data.values)||void 0===t?void 0:t.filter((e=>e.color)).map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!r&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!r&&r.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==a?a:[],showToggle:!!this.data.truncateThreshold&&(null!==(s=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==s?s:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-content-zone",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-content-zone",this.customTemplatePropertyName="contentZone",this.defaultHtml='<div class="content-zone">\n {{#each items}}\n {{#if (eq type "custom")}}\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\n {{/if}}\n {{#if (eq type "featured-items")}}\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\n {{/if}}\n {{#if (eq type "image")}}\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\n {{/if}}\n {{#if (eq type "popular-queries")}}\n <hawksearch-popular-queries index="{{@index}}"></hawksearch-popular-queries>\n {{/if}}\n {{/each}}\n</div>'}get name(){return this.getAttribute("name")||void 0}get zone(){var e,t;return this.name?null===(t=null===(e=this.data)||void 0===e?void 0:e.contentZones)||void 0===t?void 0:t[this.name]:void 0}get displayType(){var e,t,a,n;const s=window.innerWidth;return s>=(null!==(t=null===(e=Hawksearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":s>=(null!==(n=null===(a=Hawksearch.config.breakpoints)||void 0===a?void 0:a.tablet)&&void 0!==n?n:740)?"tablet":"mobile"}connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=da((e=>{this.displayType!==this.previousDisplayType&&this.renderContent()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}getContentHtml(e){var t;return this.previousDisplayType=this.displayType,(null===(t=this.zone)||void 0===t?void 0:t.items.length)?e(Object.assign(Object.assign({},this.zone),{items:this.zone.items.map((e=>e[this.displayType]))})):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[index]").forEach((e=>{var t,a,n;const s=e,r=parseInt(s.getAttribute("index")||"-1");isNaN(r)||r<0||r>=((null===(t=this.zone)||void 0===t?void 0:t.items.length)||-1)||(s.data=null===(n=null===(a=this.zone)||void 0===a?void 0:a.items[r])||void 0===n?void 0:n[this.displayType])}))}}),customElements.define("hawksearch-custom-content",class extends Yt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="customContent",this.defaultHtml='<div class="custom-content">\n {{html content}}\n</div>'}getContentHtml(e){return this.data?e(this.data):""}}),customElements.define("hawksearch-date-picker",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="datePicker",this.defaultHtml='<div class="date-picker">\n <input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{label}}" />\n {{#if modalVisible}}\n <div hawksearch-modal class="date-picker__modal">\n {{#if monthSelectorVisible}}\n <div class="date-picker__modal__header">\n <span class="date-picker__modal__header__month">Select Month</span>\n </div>\n <div class="row">\n <div class="column column--12">\n <select hawksearch-month>\n {{#each months}}\n {{#if (eq this @root.currentMonth)}}\n <option value="{{@index}}" selected>{{this}}</option>\n {{else}}\n <option value="{{@index}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <select hawksearch-year>\n {{#each years}}\n {{#if (eq this @root.currentYear)}}\n <option value="{{this}}" selected>{{this}}</option>\n {{else}}\n <option value="{{this}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <button hawksearch-select-month class="button button--full-width">View Calendar</button>\n </div>\n </div>\n {{else}}\n <div class="date-picker__modal__header">\n <a hawksearch-previous class="date-picker__modal__header__previous" title="Previous">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{heading}}</a>\n <a hawksearch-next class="date-picker__modal__header__next" title="Next">\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n </div>\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\n <thead>\n <tr>\n <th scope="col">Su</th>\n <th scope="col">Mo</th>\n <th scope="col">Tu</th>\n <th scope="col">We</th>\n <th scope="col">Th</th>\n <th scope="col">Fr</th>\n <th scope="col">Sa</th>\n </tr>\n </thead>\n <tbody>\n {{#each weeks}}\n <tr>\n {{#each this}}\n <td\n hawksearch-date="{{value}}"\n class="date-picker__calendar__day\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\n {{attribute \' date-picker__calendar__day--selected\' selected}}\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\n >\n <span>{{dayOfMonth date}}</span>\n </td>\n {{/each}}\n </tr>\n {{/each}}\n </tbody>\n </table>\n {{/if}}\n </div>\n {{/if}}\n</div>',this.modalVisible=!1,this.modalDate=new Date,this.monthSelectorVisible=!1}static get observedAttributes(){return["label","max","min","value"]}connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout((()=>this.renderContent())))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=da((e=>{this.positionModal()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){if("label"===e)this.label=a||void 0;else{const t=a?new Date(a):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.renderContent()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayOfMonth",(e=>e.getDate().toString().padStart(2,"0")))}getContentHtml(e){var t;return e({label:null!==(t=this.label)&&void 0!==t?t:"Selected Date",value:this.selectedDate?Gt(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,heading:`${fa(this.modalDate)} ${this.modalDate.getFullYear()}`,years:this.getYears(),months:["January","February","March","April","May","June","July","August","September","October","November","December"],weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:fa(this.modalDate)})}bindChildElements(){var e,t,a,n,s,r;this.positionModal(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("click",(e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.renderContent()}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.renderContent()}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.renderContent()}))})),null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-month-selector]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.renderContent()}))})),null===(s=this.shadowRoot)||void 0===s||s.querySelectorAll("[hawksearch-select-month]").forEach((e=>{e.addEventListener("click",(e=>{var t,a,n,s;e.preventDefault();const r=null===(a=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("[hawksearch-month]"))||void 0===a?void 0:a.value,i=null===(s=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-year]"))||void 0===s?void 0:s.value;if(void 0===r)throw new Error("Unable to get month value");if(void 0===i)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(i),parseInt(r),1),this.monthSelectorVisible=!1,this.renderContent()}))})),null===(r=this.shadowRoot)||void 0===r||r.querySelectorAll("[hawksearch-date]").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const a=e.getAttribute("hawksearch-date")||void 0;if(!a)return;const n=new Date(a);if(this.minDate&&!(n>=this.minDate)||this.maxDate&&!(n<=this.maxDate))return;this.selectedDate=n,this.modalVisible=!1,this.renderContent();const s=new CustomEvent("hawksearch:date-picker-changed",{detail:n});this.dispatchEvent(s)}))}))}positionModal(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("[hawksearch-modal]");if(!t||!t.offsetWidth||!this.modalVisible)return;t.style.left="",t.style.right="";const a=window.innerWidth,n=t.getBoundingClientRect();t.offsetWidth+n.x>=a&&a>=t.offsetWidth&&(t.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),a=t<1900?t:1900,n=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let t=a;t<=n;t++)e.push(t);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const a=[];do{const e=this.getWeek(t);a.push(e),t=new Date(a[a.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(a.length<6);return a}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let a=0;a<7;a++){const n=new Date(e.getTime());n.setDate(n.getDate()+a),n.setHours(0,0,0,0);const s={date:n,value:n.toISOString(),currentMonth:n.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||n>=this.minDate)&&(!this.maxDate||n<=this.maxDate),selected:!!this.selectedDate&&pa(n,this.selectedDate)};t.push(s)}return t}}),customElements.define("hawksearch-date-range-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="dateRangeFacet",this.defaultHtml='<div class="date-range-facet">\n <div class="row">\n <div class="column column--6">\n <hawksearch-date-picker hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" label="Start Date"></hawksearch-date-picker>\n </div>\n <div class="column column--6">\n <hawksearch-date-picker hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" label="End Date"></hawksearch-date-picker>\n </div>\n </div>\n</div>'}get range(){var e,t;if("date"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){return this.data&&this.range?e({startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString()}):""}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)}))}))}updateInputElements(e,t){var a,n;const s=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector("[hawksearch-start]"),r=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-end]");s&&(s.value=e?Gt(e):""),r&&(r.value=t?Gt(t):"")}setFacetValue(e,t){var a,n;if(e&&t&&e>t){const a=e;e=t,t=a}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),pa(e,this.range.start)&&pa(t,this.range.end)||Qt.setFacetValue(this.data.field,`${null!==(a=null==e?void 0:e.toISOString())&&void 0!==a?a:""},${null!==(n=null==t?void 0:t.toISOString())&&void 0!==n?n:""}`)}}),customElements.define("hawksearch-facet-wrapper",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="facetWrapper",this.defaultHtml='<div class="facet">\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\n {{title}}\n {{#if tooltip}}\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\n {{/if}}\n {{#if collapsible}}\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\n {{/if}}\n </div>\n {{#unless collapsed}}\n <div class="facet__content">\n {{#if searchable}}\n <input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\n {{/if}}\n {{#if (eq type "checkbox")}}\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\n {{/if}}\n {{#if (eq type "color")}}\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\n {{/if}}\n {{#if (eq type "date-range")}}\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\n {{/if}}\n {{#if (eq type "link")}}\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\n {{/if}}\n {{#if (eq type "numeric-range")}}\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\n {{/if}}\n {{#if (eq type "range-slider")}}\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\n {{/if}}\n {{#if (eq type "recent-searches")}}\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\n {{/if}}\n {{#if (eq type "related-searches")}}\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\n {{/if}}\n {{#if (eq type "search")}}\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\n {{/if}}\n {{#if (eq type "size")}}\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}getContentHtml(e){var t,a,n;return this.data&&this.data.visible?e(Object.assign(Object.assign({},this.data),{collapsed:null!==(a=null!==(t=this.state.collapsed)&&void 0!==t?t:this.data.collapsed)&&void 0!==a&&a,filter:null!==(n=this.state.filter)&&void 0!==n?n:""})):""}bindChildElements(){var e,t,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet-heading]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),(null===(t=this.data)||void 0===t?void 0:t.collapsible)&&(this.state.collapsed=!this.state.collapsed,this.renderContent())}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-facet-search]").forEach((e=>{e.addEventListener("keyup",(e=>{var t;const a=null===(t=e.currentTarget.value)||void 0===t?void 0:t.trim();this.state.filter=a||void 0,this.rebindChildElements()}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.data=this.data,e.state=this.state}))}rebindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.renderContent()}))}}),customElements.define("hawksearch-facets-list",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-facets-list",this.customTemplatePropertyName="facetsList",this.defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\n <div hawksearch-mobile-toggle class="facets__heading">\n Narrow Results\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\n </div>\n <div class="facets__content">\n {{#each facets}}\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\n {{/each}}\n </div>\n</div>',this.state={expanded:!1}}getContentHtml(e){if(!this.data)return"";const t=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size"];return e({facets:this.data.filter((e=>t.includes(e.type))),expanded:this.state.expanded})}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-mobile-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.renderContent()}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach((e=>{var t,a;const n=parseInt(null!==(t=e.getAttribute("hawksearch-facet-id"))&&void 0!==t?t:""),s=null===(a=this.data)||void 0===a?void 0:a.find((e=>e.id===n));let r;if(null==s?void 0:s.values){r=[];const e=t=>{null==t||t.forEach((t=>{t.value&&r.push(t.value),e(t.children)}))};e(s.values)}let i=this.state[n];i||(i={id:n,toggled:!1,values:{}},this.state[n]=i),null==r||r.forEach((e=>{i.values[e]||(i.values[e]={toggled:!1})})),e.data=s,e.state=i}))}}),customElements.define("hawksearch-featured-items-content",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="featuredItemsContent",this.defaultHtml='<div class="row featured-items-content">\n {{#each items}}\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{/if}}\n {{else}}\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n {{/if}}\n {{/each}}\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("hawksearch-featured-items-content-item").forEach(((e,t)=>{var a,n;e.data=null===(n=null===(a=this.data)||void 0===a?void 0:a.items)||void 0===n?void 0:n[t]}))}}),customElements.define("hawksearch-featured-items-content-item",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="featuredItemsContentItem",this.defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\n {{#if pinned}}\n <span class="featured-items-content__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__sale-indicator">Sale</span>\n {{/if}}\n {{#if (eq type "product")}}\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n {{/if}}\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#unless (eq salePrice undefined)}}\n <div class="featured-items-content__item__price">\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__price__original">{{currency price 0}}</span>\n <span class="featured-items-content__item__price__current">{{currency salePrice 0}}</span>\n {{else}}\n <span class="featured-items-content__item__price-__current">{{currency salePrice 0}}</span>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("string",((e,t)=>("string"==typeof e&&(e=[e]),this.getString(e,t)))),this.handlebars.registerHelper("number",((e,t)=>("string"==typeof e&&(e=[e]),this.getNumber(e,t)))),this.handlebars.registerHelper("currency",((e,t)=>("string"==typeof e?e=[e]:"number"==typeof e&&(e=[e.toString()]),this.getCurrency(e,t))))}getContentHtml(e){return this.data?e(this.data):""}bindChildElements(){var e,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&zt.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}getString(e,t){var a;return null!==(a=null==e?void 0:e[0])&&void 0!==a?a:t}getNumber(e,t){const a=this.getString(e);let n=a?parseFloat(a):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),null!=n?n:t}getCurrency(e,t){const a=this.getNumber(e)||t;if(a)return Jt(a)}}),customElements.define("hawksearch-icon",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="icon",this.defaultHtml='{{html svg}}\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\n <use href="{{url}}"></use>\n</svg>'}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}getContentHtml(e){const t=this.getAttribute("name");return t?e({svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="chevron-back" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z"/></symbol><symbol id="chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z"/></symbol><symbol id="chevron-forward" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z"/></symbol><symbol id="chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z"/></symbol><symbol id="chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z"/></symbol><symbol id="chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z"/></symbol><symbol id="cross" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z"/></symbol><symbol id="help" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z"/></symbol><symbol id="minus" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z"/></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="star" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${t}`,height:this.size,width:this.size}):""}}),customElements.define("hawksearch-image-content",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="imageContent",this.defaultHtml='<div class="image-content">\n {{#if link}}\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n </a>\n {{else}}\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n {{/if}}\n</div>'}getContentHtml(e){return this.data?(zt.trackBannerImpression(this.data.id,this.data.campaignId),e(this.data)):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{zt.trackBannerClick(this.data.id,this.data.campaignId)}))}))}}),customElements.define("hawksearch-link-list-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="linkListFacet",this.defaultHtml='<div class="link-list-facet">\n <ul class="link-list-facet__list">\n {{#each values}}\n {{#if visible}}\n <li class="link-list-facet__list__item">\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\n {{#if imageUrl}}\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\n {{else}}\n <span class="facet__value__title">{{title}}</span>\n {{/if}}\n <span class="facet__value__count">({{count}})</span>\n </span>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s,r;if(!this.data)return"";const i=this.state.filter?new RegExp(null!==(t=this.state.filter)&&void 0!==t?t:"","i"):void 0,o=e({values:null!==(n=null===(a=this.data.values)||void 0===a?void 0:a.map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!i&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!i&&i.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==n?n:[],showToggle:!!this.data.truncateThreshold&&(null!==(r=null===(s=this.data.values)||void 0===s?void 0:s.length)&&void 0!==r?r:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled});return o}}),customElements.define("hawksearch-modified-query",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-modified-query",this.customTemplatePropertyName="modifiedQuery",this.defaultHtml='<div class="modified-query">\n <p>\n Showing results for\n <span class="modified-query__modified">{{modifiedQuery}}</span>. Search instead for\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\n </p>\n</div>'}getContentHtml(e){return this.data&&this.data.display&&this.data.query&&this.data.modifiedQuery?e({query:this.data.query,modifiedQuery:this.data.modifiedQuery}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t,void 0,!0)}))}))}}),customElements.define("hawksearch-numeric-range-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="numericRangeFacet",this.defaultHtml='<div class="numeric-range-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum" />\n </div>\n </div>\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){return this.data&&this.range?e({startValue:Math.floor(this.range.start),endValue:Math.ceil(this.range.end),minValue:Math.floor(this.range.min),maxValue:Math.floor(this.range.max)}):""}bindChildElements(){var e,t;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.floor(this.range.min),t.value=a.toString()),this.setFacetValue(a,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.ceil(this.range.max),t.value=a.toString()),this.setFacetValue(this.range.start,a)}))}))}setFacetValue(e,t){if(e>t){const a=e;e=t,t=a}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||Qt.setFacetValue(this.data.field,`${e},${t}`)}}),customElements.define("hawksearch-page-size",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-page-size",this.customTemplatePropertyName="pageSize",this.defaultHtml='<div class="page-size">\n <select hawksearch-page-size>\n {{#each options}}\n {{#if selected}}\n <option value="{{pageSize}}" selected>{{title}}</option>\n {{else}}\n <option value="{{pageSize}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.length)?e({options:this.data}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-page-size]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget,a=parseInt(t.value);Qt.setPageSize(a)}))}))}}),customElements.define("hawksearch-pagination",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-pagination",this.customTemplatePropertyName="pagination",this.defaultHtml='<div class="pagination">\n {{#if summary}}\n <div class="pagination__summary">{{summary}}</div>\n {{/if}}\n <div class="pagination__pages">\n {{#if displayFirstLink}}\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="First">\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if displayPreviousLink}}\n <a\n hawksearch-page="{{subtract page 1}}"\n rel="prev"\n href="{{pageUrl (subtract page 1)}}"\n class="pagination__page pagination__page--previous"\n title="Previous"\n >\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#each pages}}\n {{#if (eq this @root.page)}}\n <span class="pagination__page pagination__page--selected">{{this}}</span>\n {{else}}\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\n {{/if}}\n {{/each}}\n {{#if displayNextLink}}\n <a hawksearch-page="{{add page 1}}" rel="next" href="{{pageUrl (add page 1)}}" class="pagination__page pagination__page--next" title="Next">\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#if displayLastLink}}\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="Last">\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n</div>',this.defaultMaxPageLinks=9}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",(e=>{const t=new URLSearchParams;return 1===e?t.delete(Qt.queryStringParams.page):t.set(Qt.queryStringParams.page,e.toString()),`?${t}`}))}getContentHtml(e){var t,a,n;if(!this.data||0==this.data.totalResults)return"";const s=(this.data.page-1)*this.data.pageSize+1;let r=s+this.data.pageSize-1;return r>this.data.totalResults&&(r=this.data.totalResults),e({page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:s,lastRecord:r,totalRecords:null!==(t=this.data.totalResults)&&void 0!==t?t:0,totalPages:null!==(a=this.data.totalPages)&&void 0!==a?a:1,maxPageLinks:null!==(n=this.data.maxPageLinks)&&void 0!==n?n:this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,summary:`Showing ${s}-${r} of ${this.data.totalResults}`})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-page]").forEach((e=>{const t=e.getAttribute("hawksearch-page");if(t){const a=parseInt(t);e.addEventListener("click",(e=>{e.preventDefault(),this.setPage(a)}))}}))}setPage(e){return t=this,a=void 0,s=function*(){yield Qt.paginate(e)},new((n=void 0)||(n=Promise))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof n?a:new n((function(e){e(a)}))).then(i,o)}l((s=s.apply(t,a||[])).next())}));var t,a,n,s}getPages(){var e;const t=[];if(this.data&&this.data.totalPages>1){const a=null!==(e=this.data.maxPageLinks)&&void 0!==e?e:this.defaultMaxPageLinks;let n=this.data.page-Math.floor(a/2);n<1&&(n=1);let s=n+a-1;s>this.data.totalPages&&(s=this.data.totalPages);for(let e=n;e<=s;e++)t.push(e)}return t}}),customElements.define("hawksearch-popular-queries",class extends Yt{constructor(){super(...arguments),this.customTemplatePropertyName="popularQueriesContent",this.defaultHtml='<div class="popular-queries-content">\n {{#each items}}\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\n {{/each}}\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.items.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-query-suggestions",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-query-suggestions",this.customTemplatePropertyName="querySuggestions",this.defaultHtml='<div class="query-suggestions">\n <p>Did you mean to search for {{query-suggestions querySuggestions}}?</p>\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("query-suggestions",(function(e){function t(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}return e.length<=2?new Hawksearch.handlebars.SafeString(e.map(t).join(" or ")):new Hawksearch.handlebars.SafeString(e.slice(0,e.length-1).map(t).join(", ")+", or "+t(e[e.length-1]))}))}getContentHtml(e){var t;return this.data&&this.data.display&&(null===(t=this.data.querySuggestions)||void 0===t?void 0:t.length)?e({querySuggestions:this.data.querySuggestions}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-range-slider",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="rangeSlider",this.defaultHtml='<div class="range-slider">\n <div class="range-slider__container">\n <div class="range-slider__bar">\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\n </div>\n <span class="range-slider__handle range-slider__handle--start" title="Start" hawksearch-handle="start" style="left: {{start}}%;"></span>\n <span class="range-slider__handle range-slider__handle--end" title="End" hawksearch-handle="end" style="left: {{end}}%;"></span>\n </div>\n</div>',this.dragging=!1,this.start=0,this.end=100}static get observedAttributes(){return["end","start"]}connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach((e=>document.addEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.addEventListener(e,this.mouseMoveEventHandler)),{passive:!0})}attributeChangedCallback(e,t,a){switch(e){case"end":this.setEnd(a);break;case"start":this.setStart(a)}this.renderContent()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach((e=>document.removeEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.removeEventListener(e,this.mouseMoveEventHandler)))}setStart(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentHtml(e){return e({start:this.start,end:this.end})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-handle]").forEach((e=>{["mousedown","touchstart"].forEach((t=>e.addEventListener(t,(t=>{var a,n;if(!e.getAttribute("hawksearch-handle"))return;const s=t.currentTarget;this.activeHandle=s,this.startOffsetPercentage=parseFloat(null!==(a=s.style.left)&&void 0!==a?a:0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,null===(n=this.shadowRoot)||void 0===n||n.querySelectorAll("[hawksearch-handle]").forEach((e=>e.style.zIndex="")),s.style.zIndex="1"}),{passive:!0})))}))}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},a=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(a)}onMouseMove(e){var t,a,n,s,r;if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const i=this.activeHandle.getAttribute("hawksearch-handle"),o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('[hawksearch-handle="start"]'),l=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector('[hawksearch-handle="end"]'),c=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-bar]"),h=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,u=this.activeHandle.parentElement.offsetWidth;let d=Math.round(h/u*100)+this.startOffsetPercentage,p=0,f=100;"start"===i?f=parseFloat(null!==(s=l.style.left)&&void 0!==s?s:100):"end"===i&&(p=parseFloat(null!==(r=o.style.left)&&void 0!==r?r:0)),d<=p?d=p:d>=f&&(d=f),"start"===i?p=d:"end"===i&&(f=d),this.activeHandle.style.left=`${d}%`,c.style.left=`${p}%`,c.style.right=100-f+"%","start"===i?this.start=d:"end"===i&&(this.end=d);const v={start:this.start,end:this.end},m=new CustomEvent("hawksearch:range-slider-dragging",{detail:v});this.dispatchEvent(m)}}),customElements.define("hawksearch-range-slider-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="rangeSliderFacet",this.defaultHtml='<div class="range-slider-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{startValue}}" min="{{minValue}}" max="{{endValue}}" aria-label="Minimum Price" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{endValue}}" min="{{startValue}}" max="{{maxValue}}" aria-label="Maximum Price" />\n </div>\n </div>\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}getContentHtml(e){if(!this.data||!this.range)return"";const t=Math.ceil(this.range.max)-Math.floor(this.range.min);return e({startValue:Math.floor(this.range.start),endValue:Math.ceil(this.range.end),minValue:Math.floor(this.range.min),maxValue:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/t*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/t*100)})}bindChildElements(){var e,t,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(a,this.range.end)}))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(this.range.start,a)}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("hawksearch-range-slider").forEach((e=>{e.addEventListener("hawksearch:range-slider-dragging",(e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.updateInputElements(a.start,a.end)})),e.addEventListener("hawksearch:range-slider-changed",(e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.setFacetValue(a.start,a.end)}))}))}getRange(e,t){var a,n;const s=Math.floor(null!==(a=this.range.min)&&void 0!==a?a:0),r=Math.ceil(null!==(n=this.range.max)&&void 0!==n?n:0),i=r-s;return{start:Math.floor(i*e/100+s),end:Math.ceil(r*t/100)}}updateInputElements(e,t){var a,n;const s=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector("[hawksearch-start]"),r=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelector("[hawksearch-end]");s&&(s.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||Qt.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}}),customElements.define("hawksearch-recent-searches-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="recentSearchesFacet",this.defaultHtml='<div class="recent-searches-facet">\n <ul class="recent-searches-facet__list">\n {{#each values}}\n <li class="recent-searches-facet__list__item">\n <a hawksearch-query="{{title}}" class="facet__value">{{title}}</a>\n </li>\n {{/each}}\n </ul>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;super.bindChildElements(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-related-searches-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="relatedSearchesFacet",this.defaultHtml='<div class="related-searches-facet">\n <ul class="related-searches-facet__list">\n {{#each values}}\n <li class="related-searches-facet__list__item">\n <a hawksearch-query="{{title}}" class="facet__value">{{title}}</a>\n </li>\n {{/each}}\n </ul>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;super.bindChildElements(),null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&Qt.query(t)}))}))}}),customElements.define("hawksearch-search-field",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-field",this.customTemplatePropertyName="searchField",this.defaultHtml='<div class="search-field">\n <input type="text" hawksearch-input value="{{query}}" placeholder="Enter keywords" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>'}connectedCallback(){var e;super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},null===(e=this.shadowRoot)||void 0===e||e.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.shadowRoot)||void 0===e||e.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentHtml(e){return e(this.data)}bindChildElements(){var e,t;const a=["Enter","NumpadEnter"];null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("keyup",(e=>{if(!a.includes(e.code))return;const t=e.currentTarget.value.trim();this.toggleAutocomplete(!1),Qt.query(t)})),e.addEventListener("keyup",da((t=>{if(a.includes(t.code))return;const n=e.value.trim();this.toggleAutocomplete(!!n),n&&D.query(n)}),250))})),null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-autocomplete").forEach((e=>{e.addEventListener("hawksearch:close-autocomplete",(e=>{this.toggleAutocomplete(!1)}))}))}toggleAutocomplete(e){var t;null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("hawksearch-autocomplete").forEach((t=>{t.style.display=e?"block":"none"}))}}),customElements.define("hawksearch-search-results",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-results",this.customTemplatePropertyName="searchResults",this.defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\n<div class="row">\n <div class="column column--12 column-md--4">\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\n <hawksearch-facets-list></hawksearch-facets-list>\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\n </div>\n <div class="column column--12 column-md--8">\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\n <hawksearch-tabs></hawksearch-tabs>\n <div class="margin">\n <hawksearch-selected-facets></hawksearch-selected-facets>\n </div>\n <div class="row">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-pagination></hawksearch-pagination>\n </div>\n <div class="column column--12 column-md--6">\n <div class="row row--tight">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-page-size></hawksearch-page-size>\n </div>\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-sorting></hawksearch-sorting>\n </div>\n </div>\n </div>\n </div>\n <hawksearch-search-results-list></hawksearch-search-results-list>\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\n </div>\n</div>'}getContentHtml(e){return e(this.data)}}),customElements.define("hawksearch-search-results-list",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-search-results-list",this.customTemplatePropertyName="searchResultsList",this.defaultHtml='<div class="row search-results-list">\n {{#each items}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{/if}}\n {{/each}}\n</div>'}getContentHtml(e){var t;return(null===(t=this.data)||void 0===t?void 0:t.length)?e({items:this.data}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("hawksearch-search-results-item").forEach(((e,t)=>{var a;e.data=null===(a=this.data)||void 0===a?void 0:a[t]}))}}),customElements.define("hawksearch-search-results-item",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="searchResultsItem",this.defaultHtml='<div class="search-results-item search-results-item--{{type}}">\n {{#if pinned}}\n <span class="search-results-item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="search-results-item__sale-indicator">Sale</span>\n {{/if}}\n {{#if (eq type "product")}}\n <a hawksearch-link href="{{url}}" class="search-results-item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n {{/if}}\n <div class="search-results-item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#unless (eq salePrice undefined)}}\n <div class="search-results-item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="search-results-item__price__original">{{currency price 0}}</span>\n <span class="search-results-item__price__current" itemprop="price">{{currency salePrice 0}}</span>\n {{else}}\n <span class="search-results-item__price-__current" itemprop="price">{{currency salePrice 0}}</span>\n {{/if}}\n </div>\n {{/unless}}\n</div>'}getContentHtml(e){return this.data?e(this.data):""}bindChildElements(){var e,a;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=Hawksearch.config.placeholderImageUrl||t}))})),null===(a=this.shadowRoot)||void 0===a||a.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&zt.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}}),customElements.define("hawksearch-search-within-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="searchWithinFacet",this.defaultHtml='<div class="search-within-facet">\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="Enter keywords" />\n</div>'}getContentHtml(e){var t;return this.data?e({value:null!==(t=this.data.searchWithin)&&void 0!==t?t:""}):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value.trim();Qt.searchWithin(t)}))}))}}),customElements.define("hawksearch-selected-facets",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-selected-facets",this.customTemplatePropertyName="selectedFacets",this.defaultHtml='<div class="flex-gap flex-gap--xs">\n {{#each selections}}\n <span class="selected-facet">\n <span class="selected-facet__field">{{title}}</span>\n <span class="selected-facet__value{{attribute \' selected-facet__value--excluded\' excluded}}">{{selectionTitle}}</span>\n <a hawksearch-facet-field="{{field}}" hawksearch-facet-value="{{selectionValue}}" class="selected-facet__remove">\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\n </a>\n </span>\n {{/each}}\n</div>'}getContentHtml(e){var t;if(!(null===(t=this.data)||void 0===t?void 0:t.length))return"";const a=[];return this.data.forEach((e=>{e.values.forEach((t=>{var n,s,r,i;let o=t.title;const l=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(t.value),c=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(t.value);if(l){const e=void 0!==(null===(n=l.groups)||void 0===n?void 0:n.min)?new Date(l.groups.min):void 0,t=void 0!==(null===(s=l.groups)||void 0===s?void 0:s.max)?new Date(l.groups.max):void 0;e&&t&&pa(e,t)?o=Xt(e):e&&t?o=`${Xt(e)} - ${Xt(t)}`:e?o=`After ${Xt(e)}`:t&&(o=`Before ${Xt(t)}`)}if(c){const t=void 0!==(null===(r=c.groups)||void 0===r?void 0:r.min)?parseFloat(c.groups.min):void 0,a=void 0!==(null===(i=c.groups)||void 0===i?void 0:i.max)?parseFloat(c.groups.max):void 0,n=e.currency?Jt:ea;void 0!==t&&void 0!==a?o=t===a?n(t,0):`${n(t,0)} - ${n(a,0)}`:void 0!==t?o=`${n(t,0)} and up`:void 0!==a&&(o=`${n(a,0)} and below`)}a.push({field:e.field,title:e.title,selectionTitle:o,selectionValue:t.value,excluded:t.excluded})}))})),a.sort(((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title))),e({facets:this.data,selections:a})}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-facet-field"),n=t.getAttribute("hawksearch-facet-value");a&&n&&Qt.removeFacetValue(a,n)}))}))}}),customElements.define("hawksearch-size-facet",class extends va{constructor(){super(...arguments),this.customTemplatePropertyName="colorFacet",this.defaultHtml='<div class="size-facet">\n <div class="row row--tight size-facet__items">\n {{#each values}}\n {{#if visible}}\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\n {{title}}\n </div>\n </div>\n <span class="size-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="Include">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="Exclude">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{toggleText}}</span>\n {{/if}}\n</div>'}getContentHtml(e){var t,a,n,s;if(!this.data)return"";const r=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return e({values:null!==(a=null===(t=this.data.values)||void 0===t?void 0:t.map(((e,t)=>{var a;return Object.assign(Object.assign({},e),{visible:!r&&(this.state.toggled||!this.data.truncateThreshold||t<this.data.truncateThreshold)||!!r&&r.test(null!==(a=e.title)&&void 0!==a?a:"")})})))&&void 0!==a?a:[],showToggle:!!this.data.truncateThreshold&&(null!==(s=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==s?s:0)>this.data.truncateThreshold&&!this.state.filter,toggleText:this.state.toggled?"Show fewer":"Show more",expanded:this.state.toggled})}}),customElements.define("hawksearch-sorting",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-sorting",this.customTemplatePropertyName="sorting",this.defaultHtml='<div class="sorting">\n <select hawksearch-sort>\n {{#each options}}\n {{#if selected}}\n <option value="{{value}}" selected>{{title}}</option>\n {{else}}\n <option value="{{value}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.options)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-sort]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value;Qt.sort(t)}))}))}}),customElements.define("hawksearch-tabs",class extends Kt{constructor(){super(...arguments),this.bindEvent="hawksearch:bind-tabs",this.customTemplatePropertyName="tabs",this.defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt values.length 4)}}">\n {{#each values}}\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">{{title}} ({{count}})</li>\n {{/each}}\n</ul>'}getContentHtml(e){var t,a;return(null===(a=null===(t=this.data)||void 0===t?void 0:t.values)||void 0===a?void 0:a.length)?e(this.data):""}bindChildElements(){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll("[hawksearch-tab-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");Qt.selectTab(null!=t?t:void 0)}))}))}}),customElements.define("hawksearch-tooltip",class extends Kt{constructor(){super(...arguments),this.bindEvent=void 0,this.customTemplatePropertyName="tooltip",this.defaultHtml='<span class="tooltip" hawksearch-tooltip>\n <span class="tooltip__icon">\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\n </span>\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\n</span>'}getContentHtml(e){const t=this.getAttribute("text");return t?e({text:t}):""}bindChildElements(){var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("[hawksearch-tooltip]"))||void 0===t||t.addEventListener("mouseover",(e=>{var t;const a=e.currentTarget,n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("[hawksearch-tooltip-content]");if(!n)return;n.style.removeProperty("top"),n.style.removeProperty("right");const s=window.innerWidth,r=a.getBoundingClientRect(),i=r.x+r.width;n.style.top=`${r.top}px`,s-i<370&&(n.style.right="20px")}))}}),addEventListener("popstate",(e=>{const t=e.state;Hawksearch.searchRequest=t.searchRequest,Hawksearch.searchResponse=t.searchResponse,Qt.bindComponents(t.searchResponse)})),dispatchEvent(new CustomEvent("hawksearch:initialized")),document.querySelector("hawksearch-search-results")){zt.trackPageLoad(r.Custom);const e=Qt.getRequestFromUrl();Qt.search(e)}})()})();
3
3
  //# sourceMappingURL=hawksearch-handlebars-ui.js.map