import{c as A}from"./299afbea.js";import{u as se}from"./219dcfd8.js";import ce from"./b63dd2f8.js";import{Link as le}from"./484c2b8a.js";import{j as i,f as R,R as x1,r as N,F as ue}from"./index.00979935.js";import{I as b1}from"./7b8fadb9.js";import{d as fe}from"./754a85d3.js";import"./9b6f90f6.js";import"./bf7618d2.js";import"./330888ed.js";import"./b4e1d7a1.js";import{D as de}from"./ee6ece13.js";import{u as me}from"./3aa906ac.js";import{f as g1,e as v1,g as y1,h as Le,n as l1,m as Ce,i as M1,T as O1,j as P1,k as pe,I as he,s as ge,C as be,d as J1,a as Q,u as ve,b as ye,c as Me,P as _e}from"./360e961f.js";import{BookCard as N1}from"./600750ac.js";import we from"./5b008aaa.js";import{C as Y}from"./27e3cd1b.js";import{C as Y1}from"./eb936fa0.js";import{C as X1,B as Re}from"./0b509314.js";import{f as T1}from"./c68048ca.js";import{A as R1}from"./e5b4b169.js";import{m as $}from"./2baa0748.js";import"./88db0e4c.js";import"./ee4b83b9.js";import"./af9dddda.js";import"./5a0f1f8c.js";import"./597e71d8.js";import"./ccba9d03.js";import"./cc9718ab.js";import"./490baf47.js";import"./92add5bc.js";import"./d8bf9054.js";import"./bf8ec3a3.js";import"./c13af59e.js";import"./67fa99b1.js";import"./69a2acc2.js";import"./1911b778.js";import"./5c83b284.js";import"./a1be6a2c.js";import"./10c53df4.js";function A1(e){var t=e.helper,r=e.attributesToClear,n=r===void 0?[]:r,o=t.state.setPage(0);return o=n.reduce(function(c,a){return o.isNumericRefined(a)?c.removeNumericRefinement(a):o.isHierarchicalFacet(a)?c.removeHierarchicalFacetRefinement(a):o.isDisjunctiveFacet(a)?c.removeDisjunctiveFacetRefinement(a):o.isConjunctiveFacet(a)?c.removeFacetRefinement(a):c},o),n.indexOf("query")!==-1&&(o=o.setQuery("")),o}function Se(e,t,r){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,r):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,r):e.state.isDisjunctiveFacetRefined(t,r)}function V1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V1(Object(r),!0).forEach(function(n){Ie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(e,t,r){return t=xe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e){var t=Ee(e,"string");return n1(t)==="symbol"?t:String(t)}function Ee(e,t){if(n1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(n1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n1(e){return n1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n1(e)}function Oe(e,t){return Ae(e)||Te(e,t)||Ne(e,t)||Pe()}function Pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e,t){if(!!e){if(typeof e=="string")return F1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F1(e,t)}}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Te(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,c,a,s=[],u=!0,h=!1;try{if(c=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=c.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){h=!0,o=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw o}}return s}}function Ae(e){if(Array.isArray(e))return e}function Ve(e){var t=e.instantSearchInstance,r=e.helper,n=e.attribute,o=e.widgetType,c=function(){for(var s=arguments.length,u=new Array(s),h=0;h<s;h++)u[h]=arguments[h];var f=u[1],l=u[2],m=l===void 0?"Filter Applied":l,p=u[3],g=p===void 0?{}:p,v=u[0].split(":"),C=Oe(v,2),b=C[0],L=C[1],d=typeof n=="string"?n:n(f);u.length===1&&n1(u[0])==="object"?t.sendEventToInsights(u[0]):b==="click"&&u.length>=2&&u.length<=4&&(Se(r,d,f)||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:o,eventType:b,eventModifier:L,payload:Ze({eventName:m,index:r.getIndex(),filters:["".concat(d,":").concat(f)]},g),attribute:d}))};return c}function Fe(e){return typeof e=="string"?e.replace(/^\\-/,"-"):e}function ke(e){return typeof e=="number"&&e<0||typeof e=="string"?String(e).replace(/^-/,"\\-"):e}function S1(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],c={type:t,attribute:r,name:n,escapedValue:ke(n)},a=g1(o,function(p){return p.name===r}),s;if(t==="hierarchical"){for(var u=e.getHierarchicalFacetByName(r),h=n.split(u.separator),f=function(g){return function(v){return g[v]}},l=function(g){a=a&&a.data&&g1(Object.keys(a.data).map(f(a.data)),function(v){return v.name===h[g]})},m=0;a!==void 0&&m<h.length;++m)l(m);s=a&&a.count}else s=a&&a.data&&a.data[c.name];return s!==void 0&&(c.count=s),a&&a.exhaustive!==void 0&&(c.exhaustive=a.exhaustive),c}function je(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=[],o=t.facetsRefinements,c=o===void 0?{}:o,a=t.facetsExcludes,s=a===void 0?{}:a,u=t.disjunctiveFacetsRefinements,h=u===void 0?{}:u,f=t.hierarchicalFacetsRefinements,l=f===void 0?{}:f,m=t.numericRefinements,p=m===void 0?{}:m,g=t.tagRefinements,v=g===void 0?[]:g;return Object.keys(c).forEach(function(C){var b=c[C];b.forEach(function(L){n.push(S1(t,"facet",C,L,e.facets))})}),Object.keys(s).forEach(function(C){var b=s[C];b.forEach(function(L){n.push({type:"exclude",attribute:C,name:L,exclude:!0})})}),Object.keys(h).forEach(function(C){var b=h[C];b.forEach(function(L){n.push(S1(t,"disjunctive",C,Fe(L),e.disjunctiveFacets))})}),Object.keys(l).forEach(function(C){var b=l[C];b.forEach(function(L){n.push(S1(t,"hierarchical",C,L,e.hierarchicalFacets))})}),Object.keys(p).forEach(function(C){var b=p[C];Object.keys(b).forEach(function(L){var d=L,y=b[d],S=Array.isArray(y)?y:[y];S.forEach(function(M){n.push({type:"numeric",attribute:C,name:"".concat(M),numericValue:M,operator:d})})})}),v.forEach(function(C){n.push({type:"tag",attribute:"_tags",name:C})}),r&&t.query&&t.query.trim()&&n.push({attribute:"query",type:"query",name:t.query,query:t.query}),n}function E(e){return typeof e=="number"&&isFinite(e)}function u1(e){return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function Ue(e){return He(e)||$e(e)||De(e)||Be()}function Be(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){if(!!e){if(typeof e=="string")return E1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E1(e,t)}}function $e(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function He(e){if(Array.isArray(e))return E1(e)}function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function e1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k1(Object(r),!0).forEach(function(n){We(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function We(e,t,r){return t=Ge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e){var t=ze(e,"string");return u1(t)==="symbol"?t:String(t)}function ze(e,t){if(u1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j1=v1({name:"clear-refinements",connector:!0}),qe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l1;return y1(t,j1()),function(n){var o=n||{},c=o.includedAttributes,a=c===void 0?[]:c,s=o.excludedAttributes,u=s===void 0?["query"]:s,h=o.transformItems,f=h===void 0?function(g){return g}:h;if(n&&n.includedAttributes&&n.excludedAttributes)throw new Error(j1("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var l={refine:l1,createURL:function(){return""},attributesToClear:[]},m=function(){return l.refine()},p=function(){return l.createURL()};return{$$type:"ais.clearRefinements",init:function(v){var C=v.instantSearchInstance;t(e1(e1({},this.getWidgetRenderState(v)),{},{instantSearchInstance:C}),!0)},render:function(v){var C=v.instantSearchInstance;t(e1(e1({},this.getWidgetRenderState(v)),{},{instantSearchInstance:C}),!1)},dispose:function(){r()},getRenderState:function(v,C){return e1(e1({},v),{},{clearRefinements:this.getWidgetRenderState(C)})},getWidgetRenderState:function(v){var C=v.createURL,b=v.scopedResults,L=v.results;l.attributesToClear=b.reduce(function(y,S){return y.concat(Ke({scopedResult:S,includedAttributes:a,excludedAttributes:u,transformItems:f,results:L}))},[]),l.refine=function(){l.attributesToClear.forEach(function(y){var S=y.helper,M=y.items;S.setState(A1({helper:S,attributesToClear:M})).search()})},l.createURL=function(){return C(Ce.apply(void 0,Ue(l.attributesToClear.map(function(y){var S=y.helper,M=y.items;return A1({helper:S,attributesToClear:M})}))))};var d=l.attributesToClear.some(function(y){return y.items.length>0});return{canRefine:d,hasRefinements:d,refine:m,createURL:p,widgetParams:n}}}}};function Ke(e){var t=e.scopedResult,r=e.includedAttributes,n=e.excludedAttributes,o=e.transformItems,c=e.results,a=r.indexOf("query")!==-1||n.indexOf("query")===-1;return{helper:t.helper,items:o(Le(je(t.results,t.helper.state,a).map(function(s){return s.attribute}).filter(function(s){return r.length===0||r.indexOf(s)!==-1}).filter(function(s){return s==="query"&&a||n.indexOf(s)===-1})),{results:c})}}var Qe=qe;function i1(e,t){return M1(Qe,e,t)}function f1(e){return f1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f1(e)}function U1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U1(Object(r),!0).forEach(function(n){h1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h1(e,t,r){return t=Je(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Je(e){var t=Ye(e,"string");return f1(t)==="symbol"?t:String(t)}function Ye(e,t){if(f1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(f1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t1(e,t){return rt(e)||tt(e,t)||et(e,t)||Xe()}function Xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function et(e,t){if(!!e){if(typeof e=="string")return B1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B1(e,t)}}function B1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,c,a,s=[],u=!0,h=!1;try{if(c=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=c.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){h=!0,o=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw o}}return s}}function rt(e){if(Array.isArray(e))return e}var Z1=v1({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),nt="ais.range";function D1(e){var t=e.min,r=e.max,n=e.precision,o=Math.pow(10,n);return{min:t&&Math.floor(t*o)/o,max:r&&Math.ceil(r*o)/o}}var it=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l1;return y1(t,Z1()),function(n){var o=n||{},c=o.attribute,a=c===void 0?"":c,s=o.min,u=o.max,h=o.precision,f=h===void 0?0:h;if(!a)throw new Error(Z1("The `attribute` option is required."));if(E(s)&&E(u)&&s>u)throw new Error(Z1("The `max` option can't be lower than `min`."));var l=function(d){return Number(Number(d).toFixed(f))},m={from:function(d){return d.toLocaleString()},to:function(d){return l(d).toLocaleString()}},p=function(d,y,S,M){var Z=d.state,w=y.min,x=y.max,I=Z.getNumericRefinement(a,">=")||[],U=t1(I,1),J=U[0],a1=Z.getNumericRefinement(a,"<=")||[],o1=t1(a1,1),X=o1[0],L1=S===void 0||S==="",k=M===void 0||M==="",_=D1({min:L1?void 0:parseFloat(S),max:k?void 0:parseFloat(M),precision:f}),V=_.min,T=_.max,P;!E(s)&&w===V?P=void 0:E(s)&&L1?P=s:P=V;var F;!E(u)&&x===T?F=void 0:E(u)&&k?F=u:F=T;var q=P===void 0,H=E(w)&&w<=P,D=q||E(P)&&(!E(w)||H),B=F===void 0,W=E(F)&&x>=F,G=B||E(F)&&(!E(x)||W),z=J!==P,s1=X!==F;return(z||s1)&&D&&G?(Z=Z.removeNumericRefinement(a),E(P)&&(Z=Z.addNumericRefinement(a,">=",P)),E(F)&&(Z=Z.addNumericRefinement(a,"<=",F)),Z.resetPage()):null},g=function(d){return function(){if(arguments.length===1){d.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function v(L){var d;E(s)?d=s:E(L.min)?d=L.min:d=0;var y;return E(u)?y=u:E(L.max)?y=L.max:y=0,D1({min:d,max:y,precision:f})}function C(L){var d=L.getNumericRefinement(a,">=")||[],y=t1(d,1),S=y[0],M=L.getNumericRefinement(a,"<=")||[],Z=t1(M,1),w=Z[0],x=E(S)?S:-1/0,I=E(w)?w:1/0;return[x,I]}function b(L,d){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],S=t1(y,2),M=S[0],Z=S[1],w=p(L,d,M,Z);w&&L.setState(w).search()}}return{$$type:nt,init:function(d){t(j(j({},this.getWidgetRenderState(d)),{},{instantSearchInstance:d.instantSearchInstance}),!0)},render:function(d){t(j(j({},this.getWidgetRenderState(d)),{},{instantSearchInstance:d.instantSearchInstance}),!1)},getRenderState:function(d,y){return j(j({},d),{},{range:j(j({},d.range),{},h1({},a,this.getWidgetRenderState(y)))})},getWidgetRenderState:function(d){var y=d.results,S=d.helper,M=d.instantSearchInstance,Z=y&&y.disjunctiveFacets||[],w=g1(Z,function(a1){return a1.name===a}),x=w&&w.stats||{min:void 0,max:void 0},I=v(x),U=C(S),J;return y?J=b(S,I):J=b(S,{min:void 0,max:void 0}),{refine:J,canRefine:I.min!==I.max,format:m,range:I,sendEvent:g(M),widgetParams:j(j({},n),{},{precision:f}),start:U}},dispose:function(d){var y=d.state;return r(),y.removeDisjunctiveFacet(a).removeNumericRefinement(a)},getWidgetUiState:function(d,y){var S=y.searchParameters,M=S.getNumericRefinements(a),Z=M[">="],w=Z===void 0?[]:Z,x=M["<="],I=x===void 0?[]:x;return w.length===0&&I.length===0?d:j(j({},d),{},{range:j(j({},d.range),{},h1({},a,"".concat(w,":").concat(I)))})},getWidgetSearchParameters:function(d,y){var S=y.uiState,M=d.addDisjunctiveFacet(a).setQueryParameters({numericRefinements:j(j({},d.numericRefinements),{},h1({},a,{}))});E(s)&&(M=M.addNumericRefinement(a,">=",s)),E(u)&&(M=M.addNumericRefinement(a,"<=",u));var Z=S.range&&S.range[a];if(!Z||Z.indexOf(":")===-1)return M;var w=Z.split(":").map(parseFloat),x=t1(w,2),I=x[0],U=x[1];return E(I)&&(!E(s)||s<I)&&(M=M.removeNumericRefinement(a,">="),M=M.addNumericRefinement(a,">=",I)),E(U)&&(!E(u)||U<u)&&(M=M.removeNumericRefinement(a,"<="),M=M.addNumericRefinement(a,"<=",U)),M}}}},at=it;function ot(e,t){return M1(at,e,t)}function d1(e){return d1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d1(e)}var st=["name","escapedValue"],ct=["escapedValue","value"];function $1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(r),!0).forEach(function(n){c1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c1(e,t,r){return t=lt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e){var t=ut(e,"string");return d1(t)==="symbol"?t:String(t)}function ut(e,t){if(d1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(d1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H1(e,t){if(e==null)return{};var r=ft(e,t),n,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function ft(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,c;for(c=0;c<n.length;c++)o=n[c],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var p1=v1({name:"refinement-list",connector:!0}),W1=["isRefined","count:desc","name:asc"],dt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l1;return y1(t,p1()),function(n){var o=n||{},c=o.attribute,a=o.operator,s=a===void 0?"or":a,u=o.limit,h=u===void 0?10:u,f=o.showMore,l=f===void 0?!1:f,m=o.showMoreLimit,p=m===void 0?20:m,g=o.sortBy,v=g===void 0?W1:g,C=o.escapeFacetValues,b=C===void 0?!0:C,L=o.transformItems,d=L===void 0?function(k){return k}:L;if(!c)throw new Error(p1("The `attribute` option is required."));if(!/^(and|or)$/.test(s))throw new Error(p1('The `operator` must one of: `"and"`, `"or"` (got "'.concat(s,'").')));if(l===!0&&p<=h)throw new Error(p1("`showMoreLimit` should be greater than `limit`."));var y=function(_){var V=_.name,T=_.escapedValue,P=H1(_,st);return O(O({},P),{},{value:T,label:V,highlighted:V})},S,M=[],Z=!0,w,x,I=!1,U=function(){};function J(){U()}function a1(k,_){return function(){I=!I,_.render(k)}}function o1(){return I?p:h}var X=function(){return function(){}},L1=function(_,V){return function(T){return function(P){var F=T.instantSearchInstance,q=T.results;if(P===""&&M)t(O(O({},V.getWidgetRenderState(O(O({},T),{},{results:S}))),{},{instantSearchInstance:F}),!1);else{var H={highlightPreTag:b?O1.highlightPreTag:P1.highlightPreTag,highlightPostTag:b?O1.highlightPostTag:P1.highlightPostTag};_.searchForFacetValues(c,P,Math.min(o1(),100),H).then(function(D){var B=b?pe(D.facetHits):D.facetHits,W=d(B.map(function(G){var z=G.escapedValue,s1=G.value,w1=H1(G,ct);return O(O({},w1),{},{value:z,label:s1})}),{results:q});t(O(O({},V.getWidgetRenderState(O(O({},T),{},{results:S}))),{},{items:W,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:F}),!1)})}}}};return{$$type:"ais.refinementList",init:function(_){t(O(O({},this.getWidgetRenderState(_)),{},{instantSearchInstance:_.instantSearchInstance}),!0)},render:function(_){t(O(O({},this.getWidgetRenderState(_)),{},{instantSearchInstance:_.instantSearchInstance}),!1)},getRenderState:function(_,V){return O(O({},_),{},{refinementList:O(O({},_.refinementList),{},c1({},c,this.getWidgetRenderState(V)))})},getWidgetRenderState:function(_){var V=this,T=_.results,P=_.state,F=_.createURL,q=_.instantSearchInstance,H=_.helper,D=[],B=[];if((!x||!w||!X)&&(x=Ve({instantSearchInstance:q,helper:H,attribute:c,widgetType:this.$$type}),w=function(C1){x("click:internal",C1),H.toggleFacetRefinement(c,C1).search()},X=L1(H,this)),T){var W=T.getFacetValues(c,{sortBy:v,facetOrdering:v===W1});B=W&&Array.isArray(W)?W:[],D=d(B.slice(0,o1()).map(y),{results:T});var G=P.maxValuesPerFacet,z=o1();Z=G>z?B.length<=z:B.length<z,S=T,M=D,_.results&&(U=a1(_,this))}var s1=X&&X(_),w1=I&&M.length>h,ne=l&&!Z,ie=w1||ne;return{createURL:function(C1){return F(function(oe){return V.getWidgetUiState(oe,{searchParameters:P.resetPage().toggleFacetRefinement(c,C1),helper:H})})},items:D,refine:w,searchForItems:s1,isFromSearch:!1,canRefine:D.length>0,widgetParams:n,isShowingMore:I,canToggleShowMore:ie,toggleShowMore:J,sendEvent:x,hasExhaustiveItems:Z}},dispose:function(_){var V=_.state;r();var T=V.setQueryParameter("maxValuesPerFacet",void 0);return s==="and"?T.removeFacet(c):T.removeDisjunctiveFacet(c)},getWidgetUiState:function(_,V){var T=V.searchParameters,P=s==="or"?T.getDisjunctiveRefinements(c):T.getConjunctiveRefinements(c);return mt(O(O({},_),{},{refinementList:O(O({},_.refinementList),{},c1({},c,P))}),c)},getWidgetSearchParameters:function(_,V){var T=V.uiState,P=s==="or";if(_.isHierarchicalFacet(c)||P&&_.isConjunctiveFacet(c)||!P&&_.isDisjunctiveFacet(c))return _;var F=T.refinementList&&T.refinementList[c],q=P?_.addDisjunctiveFacet(c).removeDisjunctiveFacetRefinement(c):_.addFacet(c).removeFacetRefinement(c),H=q.maxValuesPerFacet||0,D=Math.max(H,l?p:h),B=q.setQueryParameter("maxValuesPerFacet",D);if(!F){var W=P?"disjunctiveFacetsRefinements":"facetsRefinements";return B.setQueryParameters(c1({},W,O(O({},B[W]),{},c1({},c,[]))))}return F.reduce(function(G,z){return P?G.addDisjunctiveFacetRefinement(c,z):G.addFacetRefinement(c,z)},B)}}}};function mt(e,t){return e.refinementList&&((!e.refinementList[t]||e.refinementList[t].length===0)&&delete e.refinementList[t],Object.keys(e.refinementList).length===0&&delete e.refinementList),e}var Lt=dt;function Ct(e,t){return M1(Lt,e,t)}function m1(e){return m1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m1(e)}function G1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G1(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pt(e,t,r){return t=ht(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e){var t=gt(e,"string");return m1(t)==="symbol"?t:String(t)}function gt(e,t){if(m1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(m1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z1=v1({name:"sort-by",connector:!0}),bt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l1;y1(t,z1());var n={};return function(o){var c=o||{},a=c.items,s=c.transformItems,u=s===void 0?function(h){return h}:s;if(!Array.isArray(a))throw new Error(z1("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(f){var l=f.instantSearchInstance,m=this.getWidgetRenderState(f),p=m.currentRefinement;g1(a,function(g){return g.value===p}),t(K(K({},m),{},{instantSearchInstance:l}),!0)},render:function(f){var l=f.instantSearchInstance;t(K(K({},this.getWidgetRenderState(f)),{},{instantSearchInstance:l}),!1)},dispose:function(f){var l=f.state;return r(),n.initialIndex?l.setIndex(n.initialIndex):l},getRenderState:function(f,l){return K(K({},f),{},{sortBy:this.getWidgetRenderState(l)})},getWidgetRenderState:function(f){var l=f.results,m=f.helper,p=f.state,g=f.parent;!n.initialIndex&&g&&(n.initialIndex=g.getIndexName()),n.setIndex||(n.setIndex=function(C){m.setIndex(C).search()});var v=l?l.nbHits===0:!0;return{currentRefinement:p.index,options:u(a,{results:l}),refine:n.setIndex,hasNoResults:v,canRefine:!v&&a.length>0,widgetParams:o}},getWidgetUiState:function(f,l){var m=l.searchParameters,p=m.index;return K(K({},f),{},{sortBy:p!==n.initialIndex?p:void 0})},getWidgetSearchParameters:function(f,l){var m=l.uiState;return f.setQueryParameter("index",m.sortBy||n.initialIndex||f.index)}}}},vt=bt;function yt(e,t){return M1(vt,e,t)}function ee(){return i("svg",{className:"h-full w-full",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.74405 3.11859C1.8642 4.02534 1.16623 5.08992 0.693844 6.25923C-0.0561018 8.11558 -0.202073 10.1482 0.275239 12.0864C0.276834 12.0929 0.278524 12.0994 0.280307 12.1058C1.41923 16.2146 5.56503 18.8412 9.72302 19.0322C11.8157 19.1323 13.8864 18.5846 15.6331 17.4694C15.7595 17.3887 15.8837 17.3053 16.0057 17.2194L20.293 21.692L20.2944 21.6934C20.4894 21.8979 20.7647 22.0155 21.0625 21.9984C21.3367 21.9826 21.5591 21.8575 21.7076 21.7121C21.9955 21.4303 22.1779 20.8511 21.7305 20.3937L17.4716 15.9507C18.3233 15.0493 18.9918 13.9924 19.4329 12.8343L19.437 12.8231C20.1243 10.9214 20.1811 8.86047 19.5995 6.92625C19.018 4.99198 17.8268 3.27967 16.1903 2.02736C16.1839 2.02247 16.1774 2.01769 16.1709 2.013C14.2702 0.65404 11.9529 -0.0535925 9.58695 0.00316677C7.22213 0.0598999 4.94524 0.877038 3.11738 2.32413C2.84063 2.54028 2.73278 2.84422 2.74405 3.11859ZM11.363 17.0558C12.9937 16.8172 14.5048 16.0862 15.6792 14.9667C16.8533 13.8475 17.6305 12.3976 17.8984 10.8249C18.1489 9.22698 17.8806 7.59354 17.1306 6.14905C16.382 4.70734 15.1905 3.52491 13.72 2.76282C12.2111 2.05464 10.5236 1.77911 8.8576 1.9688C7.82458 2.08642 6.82658 2.37985 5.90812 2.83087C5.84697 2.99314 5.73374 3.14843 5.54965 3.2731C2.36961 5.46978 0.853352 9.59156 2.6877 12.9605C3.54032 14.4045 4.82301 15.567 6.36848 16.2973C7.91674 17.029 9.65721 17.2932 11.363 17.0558Z",fill:"black"})})}function Mt(){return R("svg",{className:"h-full w-full",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.1125 4.68356C10.1428 4.68362 10.1749 4.68369 10.2101 4.68369C10.4565 5.52604 11.0809 5.87185 11.9022 5.89328C12.8212 5.91721 13.506 5.54977 13.7673 4.64867C13.8937 4.63986 14.0185 4.63151 14.1422 4.62322C14.4512 4.60253 14.7533 4.5823 15.0549 4.55668C15.1959 4.54689 15.3348 4.51948 15.4683 4.4752C15.5576 4.44688 15.6345 4.39106 15.687 4.31647C15.7395 4.2419 15.7646 4.15277 15.7584 4.0631C15.7521 3.97342 15.7149 3.88827 15.6525 3.82098C15.5902 3.7537 15.5062 3.70809 15.4137 3.69131C15.275 3.66685 15.1336 3.65889 14.9927 3.66758C14.7139 3.67633 14.4352 3.6896 14.1552 3.70293C14.0438 3.70824 13.9322 3.71355 13.8202 3.7186C13.8075 3.682 13.7959 3.6481 13.785 3.61606C13.7618 3.54852 13.7415 3.48927 13.7199 3.43055C13.466 2.74748 13.0041 2.45518 12.2447 2.50553C11.8034 2.53476 11.3942 2.68202 11.0017 2.86278C10.7348 2.98985 10.5253 3.20515 10.4121 3.46866C10.38 3.53804 10.3453 3.60633 10.3076 3.68053C10.2894 3.71631 10.2706 3.75347 10.251 3.7928C10.194 3.7928 10.1378 3.79263 10.0821 3.79247C9.9722 3.79214 9.86435 3.79183 9.75645 3.7928C9.45436 3.79554 9.15226 3.79806 8.85016 3.80057C6.33922 3.82147 3.82823 3.84238 1.32081 3.99618C1.19083 4.00438 1.06194 4.02412 0.935801 4.05516C0.859605 4.06868 0.790843 4.10744 0.741618 4.16462C0.692393 4.2218 0.665859 4.29373 0.666683 4.36776C0.661265 4.51735 0.778931 4.64654 0.968371 4.68916C1.08531 4.71456 1.20451 4.72932 1.32437 4.73325C1.55329 4.7421 1.78221 4.74565 2.01112 4.74395C4.66053 4.72406 7.3101 4.70398 9.95972 4.68369C10.0085 4.68334 10.0573 4.68344 10.1125 4.68356ZM11.8293 5.06719C11.3706 5.08169 10.9426 4.63267 11.0118 4.21427C11.0167 3.66143 11.4111 3.28954 12.0143 3.31627C12.6499 3.34446 12.9213 3.64064 12.9213 4.18983C12.9215 4.67831 12.5135 5.04558 11.8293 5.06719ZM6.4281 8.11978C6.52953 8.11978 6.62763 8.12047 6.72346 8.12114H6.7235C6.92438 8.12254 7.11529 8.12387 7.30605 8.11868C8.63609 8.08244 9.96631 8.04374 11.2966 8.00262C12.0128 7.97963 12.7289 7.95372 13.4449 7.92782C13.9498 7.90955 14.4547 7.89128 14.9597 7.87404C15.1119 7.86356 15.2647 7.86646 15.4164 7.88269C15.5263 7.89394 15.6284 7.9421 15.7045 8.01859C15.7806 8.09506 15.8258 8.19488 15.832 8.30023C15.8341 8.49038 15.6926 8.65299 15.4533 8.71424C15.3477 8.73908 15.2394 8.75193 15.1307 8.75236C13.1568 8.79437 11.1829 8.83522 9.20913 8.87492C8.54388 8.88922 7.87874 8.90764 7.21359 8.92605L6.55922 8.94402C6.5245 8.94497 6.48986 8.94949 6.44763 8.955L6.44763 8.955L6.4476 8.95501C6.42503 8.95795 6.40028 8.96118 6.3722 8.9643C6.16376 9.9292 5.44495 10.3342 4.50278 10.3403C3.66138 10.346 3.02353 9.9493 2.75409 9.13118C2.63229 9.12595 2.51147 9.12117 2.39137 9.11642L2.39127 9.11642C2.09252 9.10461 1.79823 9.09297 1.50436 9.07486C1.35267 9.06403 1.20257 9.03809 1.05651 8.99748C0.991776 8.98238 0.934856 8.94554 0.89606 8.89379C0.857264 8.84204 0.839159 8.77872 0.845017 8.71528C0.844681 8.65159 0.868989 8.58997 0.91328 8.54232C0.95757 8.49467 1.01872 8.46432 1.08501 8.45709C1.2028 8.43716 1.32236 8.42843 1.44196 8.43108C1.75082 8.42899 2.05972 8.42933 2.37023 8.42966L2.71883 8.42991C2.73407 8.38741 2.74829 8.3495 2.76142 8.3145L2.76143 8.31447L2.76143 8.31446C2.78674 8.247 2.80799 8.19035 2.82465 8.13251C2.92204 7.78795 3.12227 7.4779 3.40094 7.24016C3.58097 7.09067 3.79861 6.98846 4.03249 6.94358C4.3758 6.88715 4.72457 6.867 5.0725 6.8835C5.72943 6.90554 6.13062 7.26794 6.34683 7.83941C6.369 7.89846 6.38511 7.95958 6.40208 8.02395L6.40209 8.02397C6.4103 8.0551 6.41871 8.087 6.4281 8.11978ZM4.43107 7.75658C4.3946 7.7644 4.35026 7.76985 4.30169 7.77582C4.17852 7.79096 4.02815 7.80944 3.90998 7.87835C3.51357 8.10971 3.52396 8.97903 3.9145 9.22592C4.27044 9.4512 4.65429 9.44109 5.03273 9.27152C5.37317 9.11901 5.41015 8.79662 5.41614 8.5062C5.42462 8.09541 5.31753 7.82898 4.76693 7.78667C4.7143 7.78258 4.66151 7.7777 4.59133 7.7712L4.59121 7.77119C4.54641 7.76705 4.49452 7.76225 4.43107 7.75658ZM13.0079 13.567L13.0079 13.5671C12.9835 13.6469 12.9611 13.7202 12.9338 13.7918C12.6755 14.4693 12.1259 14.7995 11.4199 14.9326C10.8569 15.0398 10.2724 14.9328 9.79082 14.6343C9.31875 14.3559 9.09119 13.9357 9.04504 13.39C9.01531 13.3875 8.98554 13.3845 8.95574 13.3814C8.89213 13.3749 8.82838 13.3684 8.76458 13.3679C8.07894 13.3628 7.39329 13.3582 6.70764 13.3536H6.70763C5.35467 13.3446 4.00172 13.3355 2.64882 13.3225C2.20308 13.3182 1.75707 13.2895 1.31247 13.2566C1.19301 13.2499 1.07895 13.2068 0.986945 13.1338C0.910992 13.0513 0.867097 12.9463 0.862647 12.8365C0.854679 12.7087 0.961703 12.6357 1.09053 12.6086C1.15398 12.5951 1.21866 12.5873 1.28366 12.5856L1.81951 12.5753L1.8196 12.5753C2.4467 12.5631 3.07378 12.5509 3.70094 12.5443C5.23802 12.5281 6.77506 12.5149 8.31208 12.5048C8.53804 12.503 8.76404 12.5035 8.977 12.504H8.97733H8.9774C9.07175 12.5042 9.16354 12.5044 9.25163 12.5044C9.32447 12.4232 9.39298 12.3428 9.45991 12.2642L9.45993 12.2642C9.60239 12.0969 9.73766 11.938 9.89217 11.7986C10.4486 11.2965 11.12 11.1893 11.8376 11.3837C12.3393 11.5197 12.7015 11.8181 12.8064 12.3387C12.813 12.371 12.8245 12.4024 12.8403 12.4454C12.8493 12.4697 12.8596 12.4977 12.8711 12.5317L12.9746 12.5314C13.0488 12.5311 13.127 12.5308 13.2053 12.5317C13.3669 12.5337 13.5285 12.5356 13.6901 12.5374L13.6903 12.5374C14.2154 12.5434 14.7405 12.5494 15.2654 12.5619C15.4174 12.5662 15.5677 12.5923 15.7116 12.6391C15.8009 12.6668 15.8778 12.7226 15.9299 12.7973C15.9819 12.8719 16.0061 12.9612 15.9984 13.0505C16.0004 13.135 15.9734 13.2179 15.9216 13.2863C15.8697 13.3548 15.7958 13.4053 15.7112 13.4299C15.5662 13.4724 15.415 13.4926 15.2634 13.4899C14.836 13.484 14.4087 13.4722 13.9813 13.4604C13.7875 13.4551 13.5936 13.4497 13.3997 13.4449C13.3288 13.4433 13.2577 13.4437 13.1786 13.4442H13.1784C13.1369 13.4445 13.093 13.4448 13.0458 13.4448C13.0321 13.4875 13.0198 13.528 13.0079 13.567ZM12.0591 13.0186C12.0575 12.7142 11.9826 12.4111 11.8355 12.2246C11.7787 12.1532 11.6984 12.102 11.6075 12.0793C10.9644 11.9558 10.277 12.4221 10.1122 12.9665C9.96911 13.4393 10.126 13.7384 10.6094 13.907C11.4041 14.1841 12.0633 13.7804 12.0591 13.0187V13.0186Z",fill:"black"}),i("path",{d:"M10.2101 4.68369L10.3541 4.64158L10.3225 4.53369H10.2101V4.68369ZM10.1125 4.68356L10.1129 4.53356L10.1125 4.68356ZM11.9022 5.89328L11.8983 6.04323L11.8983 6.04323L11.9022 5.89328ZM13.7673 4.64867L13.7569 4.49903L13.6524 4.50632L13.6233 4.60689L13.7673 4.64867ZM14.1422 4.62322L14.1321 4.47356L14.1422 4.62322ZM15.0549 4.55668L15.0445 4.40703L15.0422 4.40722L15.0549 4.55668ZM15.4683 4.4752L15.4229 4.33221L15.4211 4.33283L15.4683 4.4752ZM15.687 4.31647L15.5644 4.2301L15.5643 4.23018L15.687 4.31647ZM15.7584 4.0631L15.908 4.05267L15.7584 4.0631ZM15.6525 3.82098L15.5425 3.92293L15.5425 3.92298L15.6525 3.82098ZM15.4137 3.69131L15.4405 3.54372L15.4398 3.54358L15.4137 3.69131ZM14.9927 3.66758L14.9974 3.81757L15.0019 3.81729L14.9927 3.66758ZM14.1552 3.70293L14.1481 3.5531L14.1552 3.70293ZM13.8202 3.7186L13.6785 3.76776L13.7152 3.87348L13.827 3.86844L13.8202 3.7186ZM13.785 3.61606L13.6431 3.66467L13.6431 3.66467L13.785 3.61606ZM13.7199 3.43055L13.8607 3.37873L13.8605 3.37828L13.7199 3.43055ZM12.2447 2.50553L12.2546 2.6552L12.2546 2.6552L12.2447 2.50553ZM11.0017 2.86278L10.9389 2.72653L10.9372 2.72735L11.0017 2.86278ZM10.4121 3.46866L10.5483 3.53171L10.5499 3.52787L10.4121 3.46866ZM10.3076 3.68053L10.4414 3.74844V3.74844L10.3076 3.68053ZM10.251 3.7928V3.9428H10.3437L10.3852 3.85976L10.251 3.7928ZM10.0821 3.79247L10.0816 3.94247L10.0821 3.79247ZM9.75645 3.7928L9.7551 3.6428L9.75508 3.6428L9.75645 3.7928ZM8.85016 3.80057L8.84892 3.65058L8.85016 3.80057ZM1.32081 3.99618L1.31162 3.84646L1.31135 3.84647L1.32081 3.99618ZM0.935801 4.05516L0.962068 4.20317L0.971642 4.20081L0.935801 4.05516ZM0.741618 4.16462L0.627942 4.06675H0.627942L0.741618 4.16462ZM0.666683 4.36776L0.816753 4.37319L0.816674 4.36609L0.666683 4.36776ZM0.968371 4.68916L0.935447 4.83551L0.936532 4.83574L0.968371 4.68916ZM1.32437 4.73325L1.33016 4.58335L1.32927 4.58333L1.32437 4.73325ZM2.01112 4.74395L2.01224 4.89394H2.01225L2.01112 4.74395ZM9.95972 4.68369L9.95863 4.5337L9.95857 4.5337L9.95972 4.68369ZM11.0118 4.21427L11.1598 4.23873L11.1617 4.22724L11.1618 4.2156L11.0118 4.21427ZM11.8293 5.06719L11.8245 4.91727H11.8245L11.8293 5.06719ZM12.0143 3.31627L12.021 3.16642L12.0209 3.16642L12.0143 3.31627ZM12.9213 4.18983H12.7713V4.18991L12.9213 4.18983ZM6.72346 8.12114L6.72241 8.27114H6.72346V8.12114ZM6.4281 8.11978L6.2839 8.16109L6.31503 8.26978H6.4281V8.11978ZM6.7235 8.12114L6.72455 7.97114H6.7235V8.12114ZM7.30605 8.11868L7.31013 8.26863H7.31013L7.30605 8.11868ZM11.2966 8.00262L11.3012 8.15255L11.3014 8.15254L11.2966 8.00262ZM13.4449 7.92782L13.4503 8.07772L13.4449 7.92782ZM14.9597 7.87404L14.9648 8.02404L14.97 8.02368L14.9597 7.87404ZM15.4164 7.88269L15.4005 8.03184L15.4011 8.03191L15.4164 7.88269ZM15.7045 8.01859L15.5982 8.12439L15.5982 8.12439L15.7045 8.01859ZM15.832 8.30023L15.9821 8.29852L15.9817 8.29145L15.832 8.30023ZM15.4533 8.71424L15.4877 8.86028L15.4905 8.85955L15.4533 8.71424ZM15.1307 8.75236L15.1302 8.60233L15.1276 8.60239L15.1307 8.75236ZM9.20913 8.87492L9.20611 8.72495L9.2059 8.72495L9.20913 8.87492ZM7.21359 8.92605L7.21771 9.07599L7.21774 9.07599L7.21359 8.92605ZM6.55922 8.94402L6.56333 9.09397L6.56333 9.09397L6.55922 8.94402ZM6.44763 8.955L6.42818 8.80592L6.41822 8.80791L6.44763 8.955ZM6.44763 8.955L6.46425 9.10465L6.47704 9.10209L6.44763 8.955ZM6.4476 8.95501L6.43103 8.8059L6.42819 8.80627L6.4476 8.95501ZM6.3722 8.9643L6.35565 8.81521L6.24837 8.82712L6.22558 8.93262L6.3722 8.9643ZM4.50278 10.3403L4.50181 10.1903H4.50176L4.50278 10.3403ZM2.75409 9.13118L2.89656 9.08426L2.86413 8.98578L2.76053 8.98132L2.75409 9.13118ZM2.39137 9.11642L2.3849 9.26628L2.38545 9.2663L2.39137 9.11642ZM2.39127 9.11642L2.39774 8.96656L2.3972 8.96654L2.39127 9.11642ZM1.50436 9.07486L1.49367 9.22449L1.49513 9.22458L1.50436 9.07486ZM1.05651 8.99748L1.09673 8.85283L1.09058 8.8514L1.05651 8.99748ZM0.89606 8.89379L1.01608 8.80382L1.01608 8.80382L0.89606 8.89379ZM0.845017 8.71528L0.994382 8.72907L0.995054 8.72179L0.995015 8.71448L0.845017 8.71528ZM0.91328 8.54232L1.02315 8.64444L0.91328 8.54232ZM1.08501 8.45709L1.10131 8.60646L1.11003 8.60499L1.08501 8.45709ZM1.44196 8.43108L1.43864 8.5811L1.44297 8.58107L1.44196 8.43108ZM2.37023 8.42966L2.37006 8.57966H2.37012L2.37023 8.42966ZM2.71883 8.42991L2.71873 8.57991L2.82438 8.57999L2.86003 8.48054L2.71883 8.42991ZM2.76142 8.3145L2.90187 8.36718L2.90214 8.36644L2.76142 8.3145ZM2.76143 8.31447L2.90219 8.36642L2.90328 8.36323L2.76143 8.31447ZM2.76143 8.31446L2.62093 8.26176L2.61958 8.2657L2.76143 8.31446ZM2.82465 8.13251L2.96879 8.17403L2.96899 8.17331L2.82465 8.13251ZM3.40094 7.24016L3.3051 7.12474L3.30358 7.12604L3.40094 7.24016ZM4.03249 6.94358L4.00815 6.79551L4.00422 6.79627L4.03249 6.94358ZM5.0725 6.8835L5.0654 7.03334L5.06747 7.03341L5.0725 6.8835ZM6.34683 7.83941L6.48726 7.78669L6.48712 7.78633L6.34683 7.83941ZM6.40208 8.02395L6.54762 7.98757L6.54713 7.98571L6.40208 8.02395ZM6.40209 8.02397L6.25656 8.06035L6.25705 8.06221L6.40209 8.02397ZM4.30169 7.77582L4.28339 7.62694L4.28339 7.62694L4.30169 7.77582ZM4.43107 7.75658L4.44441 7.60717L4.42181 7.60515L4.39963 7.60991L4.43107 7.75658ZM3.90998 7.87835L3.83442 7.74877L3.83437 7.7488L3.90998 7.87835ZM3.9145 9.22592L3.99472 9.09917L3.99466 9.09913L3.9145 9.22592ZM5.03273 9.27152L4.9714 9.13463L4.97139 9.13464L5.03273 9.27152ZM5.41614 8.5062L5.26617 8.50311V8.50311L5.41614 8.5062ZM4.76693 7.78667L4.75532 7.93622L4.75544 7.93623L4.76693 7.78667ZM4.59133 7.7712L4.57667 7.92049L4.57751 7.92057L4.59133 7.7712ZM4.59121 7.77119L4.60586 7.62191L4.60503 7.62183L4.59121 7.77119ZM13.0079 13.5671L13.1514 13.6109L13.1526 13.6065L13.0079 13.5671ZM13.0079 13.567L12.8643 13.5232L12.8631 13.5276L13.0079 13.567ZM12.9338 13.7918L12.7937 13.7383L12.7936 13.7384L12.9338 13.7918ZM11.4199 14.9326L11.3921 14.7852L11.3918 14.7852L11.4199 14.9326ZM9.79082 14.6343L9.86987 14.5068L9.86703 14.5051L9.79082 14.6343ZM9.04504 13.39L9.19451 13.3773L9.18381 13.2508L9.05725 13.2405L9.04504 13.39ZM8.95574 13.3814L8.97105 13.2322H8.97104L8.95574 13.3814ZM8.76458 13.3679L8.76575 13.2179H8.76569L8.76458 13.3679ZM6.70764 13.3536L6.70864 13.2036H6.70764V13.3536ZM6.70763 13.3536L6.70662 13.5036H6.70763V13.3536ZM2.64882 13.3225L2.64737 13.4725H2.64738L2.64882 13.3225ZM1.31247 13.2566L1.32354 13.107L1.32095 13.1069L1.31247 13.2566ZM0.986945 13.1338L0.876591 13.2354L0.884508 13.244L0.893662 13.2512L0.986945 13.1338ZM0.862647 12.8365L1.01256 12.8305L1.01236 12.8272L0.862647 12.8365ZM1.09053 12.6086L1.12133 12.7554L1.12191 12.7553L1.09053 12.6086ZM1.28366 12.5856L1.28078 12.4356L1.27973 12.4357L1.28366 12.5856ZM1.81951 12.5753L1.82239 12.7253L1.82415 12.7253L1.81951 12.5753ZM1.8196 12.5753L1.81669 12.4253L1.81496 12.4254L1.8196 12.5753ZM3.70094 12.5443L3.69936 12.3943H3.69936L3.70094 12.5443ZM8.31208 12.5048L8.31306 12.6548L8.31325 12.6548L8.31208 12.5048ZM8.977 12.504L8.97666 12.654H8.977V12.504ZM8.9774 12.504L8.97774 12.354H8.9774V12.504ZM9.25163 12.5044V12.6544H9.31857L9.36327 12.6046L9.25163 12.5044ZM9.45991 12.2642L9.34702 12.1654L9.34571 12.1669L9.45991 12.2642ZM9.45993 12.2642L9.57283 12.3629L9.57413 12.3614L9.45993 12.2642ZM9.89217 11.7986L9.79168 11.6873L9.79168 11.6873L9.89217 11.7986ZM11.8376 11.3837L11.8768 11.239L11.8768 11.239L11.8376 11.3837ZM12.8064 12.3387L12.6594 12.3683L12.6594 12.3683L12.8064 12.3387ZM12.8403 12.4454L12.9811 12.3937L12.8403 12.4454ZM12.8711 12.5317L12.729 12.5799L12.7637 12.682L12.8715 12.6817L12.8711 12.5317ZM12.9746 12.5314L12.975 12.6814L12.9752 12.6814L12.9746 12.5314ZM13.2053 12.5317L13.2072 12.3817L13.2069 12.3817L13.2053 12.5317ZM13.6901 12.5374L13.6921 12.3874L13.6918 12.3874L13.6901 12.5374ZM13.6903 12.5374L13.6883 12.6874L13.6886 12.6874L13.6903 12.5374ZM15.2654 12.5619L15.2697 12.4119L15.269 12.4119L15.2654 12.5619ZM15.7116 12.6391L15.6651 12.7818L15.6672 12.7824L15.7116 12.6391ZM15.9299 12.7973L15.8068 12.883L15.8068 12.8831L15.9299 12.7973ZM15.9984 13.0505L15.849 13.0378L15.8483 13.0459L15.8485 13.054L15.9984 13.0505ZM15.9216 13.2863L16.0411 13.3769L16.0412 13.3769L15.9216 13.2863ZM15.7112 13.4299L15.6692 13.2859L15.669 13.286L15.7112 13.4299ZM15.2634 13.4899L15.266 13.34L15.2655 13.34L15.2634 13.4899ZM13.9813 13.4604L13.9772 13.6104L13.9813 13.4604ZM13.3997 13.4449L13.4034 13.2949L13.4031 13.2949L13.3997 13.4449ZM13.1786 13.4442V13.5942L13.1795 13.5942L13.1786 13.4442ZM13.1784 13.4442V13.2942L13.1775 13.2942L13.1784 13.4442ZM13.0458 13.4448V13.2948H12.9363L12.9029 13.3991L13.0458 13.4448ZM11.8355 12.2246L11.9533 12.1317L11.953 12.1313L11.8355 12.2246ZM12.0591 13.0186H12.2091L12.2091 13.0178L12.0591 13.0186ZM11.6075 12.0793L11.6439 11.9335L11.6358 11.932L11.6075 12.0793ZM10.1122 12.9665L9.96864 12.9231L9.96864 12.9231L10.1122 12.9665ZM10.6094 13.907L10.6588 13.7653L10.6588 13.7653L10.6094 13.907ZM12.0591 13.0187H11.9091L11.9091 13.0195L12.0591 13.0187ZM10.2101 4.53369C10.1751 4.53369 10.1431 4.53362 10.1129 4.53356L10.1122 4.83356C10.1424 4.83362 10.1747 4.83369 10.2101 4.83369V4.53369ZM11.9061 5.74333C11.5145 5.73311 11.1834 5.64584 10.9242 5.47179C10.6673 5.2993 10.4687 5.03338 10.3541 4.64158L10.0661 4.7258C10.1979 5.17635 10.4347 5.5045 10.7569 5.72086C11.0768 5.93567 11.4686 6.03201 11.8983 6.04323L11.9061 5.74333ZM13.6233 4.60689C13.5014 5.02701 13.2851 5.31164 13.0012 5.49107C12.7148 5.67214 12.3458 5.75478 11.9061 5.74333L11.8983 6.04323C12.3776 6.05571 12.8105 5.96659 13.1616 5.74465C13.5152 5.52107 13.7719 5.17143 13.9114 4.69045L13.6233 4.60689ZM14.1321 4.47356C14.0085 4.48184 13.8835 4.49021 13.7569 4.49903L13.7778 4.79831C13.9039 4.78952 14.0285 4.78117 14.1522 4.77289L14.1321 4.47356ZM15.0422 4.40722C14.7422 4.4327 14.4414 4.45285 14.1321 4.47356L14.1522 4.77289C14.461 4.75221 14.7645 4.73189 15.0676 4.70615L15.0422 4.40722ZM15.4211 4.33283C15.2995 4.37315 15.173 4.39812 15.0445 4.40705L15.0653 4.70632C15.2188 4.69567 15.3701 4.66582 15.5155 4.61757L15.4211 4.33283ZM15.5643 4.23018C15.5313 4.27711 15.4819 4.31352 15.4229 4.33222L15.5136 4.61818C15.6333 4.58024 15.7378 4.50501 15.8097 4.40277L15.5643 4.23018ZM15.6087 4.07352C15.6126 4.12823 15.5973 4.18327 15.5644 4.2301L15.8096 4.40285C15.8817 4.30052 15.9167 4.17731 15.908 4.05267L15.6087 4.07352ZM15.5425 3.92298C15.5822 3.96572 15.6049 4.01875 15.6087 4.07352L15.908 4.05267C15.8993 3.9281 15.8477 3.81082 15.7625 3.71898L15.5425 3.92298ZM15.3869 3.83889C15.4483 3.85003 15.5028 3.88009 15.5425 3.92293L15.7625 3.71903C15.6775 3.6273 15.564 3.56615 15.4405 3.54372L15.3869 3.83889ZM15.0019 3.81729C15.1311 3.80933 15.2606 3.81663 15.3877 3.83903L15.4398 3.54358C15.2893 3.51707 15.1361 3.50845 14.9835 3.51786L15.0019 3.81729ZM14.1623 3.85276C14.4425 3.83942 14.72 3.82622 14.9974 3.81751L14.988 3.51765C14.7078 3.52645 14.4279 3.53978 14.1481 3.5531L14.1623 3.85276ZM13.827 3.86844C13.9391 3.86339 14.051 3.85807 14.1623 3.85276L14.1481 3.5531C14.0366 3.55841 13.9252 3.56371 13.8135 3.56875L13.827 3.86844ZM13.6431 3.66467C13.654 3.69668 13.6657 3.73085 13.6785 3.76776L13.962 3.66943C13.9494 3.63315 13.9379 3.59952 13.9269 3.56745L13.6431 3.66467ZM13.5792 3.48237C13.6001 3.5392 13.6198 3.59681 13.6431 3.66467L13.9269 3.56745C13.9038 3.50024 13.883 3.43933 13.8607 3.37873L13.5792 3.48237ZM12.2546 2.6552C12.6138 2.63139 12.8847 2.68973 13.092 2.82001C13.2987 2.94988 13.4603 3.16265 13.5793 3.48282L13.8605 3.37828C13.7256 3.01538 13.5293 2.74046 13.2517 2.566C12.9747 2.39196 12.635 2.32932 12.2348 2.35586L12.2546 2.6552ZM11.0645 2.99903C11.4502 2.82137 11.84 2.68266 12.2546 2.6552L12.2348 2.35586C11.7668 2.38685 11.3382 2.54267 10.939 2.72654L11.0645 2.99903ZM10.5499 3.52787C10.6483 3.29894 10.8311 3.11015 11.0662 2.99822L10.9372 2.72735C10.6386 2.86955 10.4023 3.11136 10.2743 3.40945L10.5499 3.52787ZM10.4414 3.74844C10.4788 3.6747 10.5147 3.60396 10.5482 3.53169L10.276 3.40564C10.2452 3.47212 10.2118 3.53795 10.1739 3.61261L10.4414 3.74844ZM10.3852 3.85976C10.4045 3.82099 10.4232 3.78428 10.4414 3.74844L10.1739 3.61261C10.1557 3.64834 10.1366 3.68596 10.1167 3.72583L10.3852 3.85976ZM10.0816 3.94247C10.1373 3.94263 10.1937 3.9428 10.251 3.9428V3.6428C10.1942 3.6428 10.1382 3.64263 10.0825 3.64247L10.0816 3.94247ZM9.7578 3.94279C9.86466 3.94183 9.97161 3.94214 10.0816 3.94247L10.0825 3.64247C9.9728 3.64214 9.86405 3.64182 9.7551 3.6428L9.7578 3.94279ZM8.85141 3.95057C9.1535 3.94805 9.45565 3.94554 9.75781 3.94279L9.75508 3.6428C9.45306 3.64555 9.15102 3.64806 8.84892 3.65058L8.85141 3.95057ZM1.32999 4.1459C3.83279 3.99238 6.33981 3.97147 8.85141 3.95057L8.84892 3.65058C6.33863 3.67147 3.82368 3.69237 1.31162 3.84646L1.32999 4.1459ZM0.971642 4.20081C1.08909 4.17191 1.20915 4.15353 1.33026 4.14588L1.31135 3.84647C1.17252 3.85524 1.03479 3.87632 0.899959 3.9095L0.971642 4.20081ZM0.855294 4.26249C0.881356 4.23222 0.918895 4.2105 0.962012 4.20285L0.909589 3.90746C0.800315 3.92686 0.700331 3.98267 0.627942 4.06675L0.855294 4.26249ZM0.816674 4.36609C0.816265 4.32931 0.82938 4.29259 0.855294 4.26249L0.627942 4.06675C0.555405 4.15101 0.515454 4.25816 0.516693 4.36943L0.816674 4.36609ZM1.00129 4.54282C0.857459 4.51046 0.814604 4.42789 0.816585 4.37319L0.516782 4.36233C0.507927 4.60681 0.700402 4.78262 0.935448 4.8355L1.00129 4.54282ZM1.32927 4.58333C1.21846 4.5797 1.10828 4.56605 1.00021 4.54258L0.936532 4.83574C1.06235 4.86307 1.19056 4.87895 1.31946 4.88317L1.32927 4.58333ZM2.01001 4.59395C1.78339 4.59564 1.55678 4.59212 1.33016 4.58336L1.31857 4.88313C1.5498 4.89208 1.78103 4.89567 2.01224 4.89394L2.01001 4.59395ZM9.95857 4.5337C7.30896 4.55399 4.6594 4.57407 2.01 4.59395L2.01225 4.89394C4.66167 4.87406 7.31124 4.85398 9.96087 4.83369L9.95857 4.5337ZM10.1129 4.53356C10.0577 4.53344 10.0082 4.53333 9.95863 4.5337L9.96081 4.83369C10.0087 4.83334 10.0568 4.83344 10.1122 4.83356L10.1129 4.53356ZM10.8638 4.1898C10.8195 4.45749 10.9353 4.7197 11.1142 4.90676C11.2939 5.09453 11.5548 5.22594 11.834 5.21712L11.8245 4.91727C11.6451 4.92294 11.4627 4.83708 11.331 4.69937C11.1986 4.56095 11.1349 4.38945 11.1598 4.23873L10.8638 4.1898ZM12.0209 3.16642C11.6868 3.15162 11.3965 3.24715 11.1878 3.43694C10.9785 3.62716 10.8646 3.9 10.8618 4.21294L11.1618 4.2156C11.1639 3.9757 11.2496 3.78618 11.3896 3.65892C11.53 3.53125 11.7385 3.4542 12.0077 3.46613L12.0209 3.16642ZM13.0713 4.18983C13.0713 3.8919 12.9974 3.63548 12.8118 3.45122C12.6277 3.26847 12.3583 3.18138 12.021 3.16642L12.0077 3.46613C12.3059 3.47935 12.49 3.55445 12.6005 3.66413C12.7094 3.77231 12.7713 3.93857 12.7713 4.18983H13.0713ZM11.834 5.21712C12.2009 5.20553 12.5087 5.1008 12.7278 4.91902C12.9492 4.73532 13.0714 4.47925 13.0713 4.18975L12.7713 4.18991C12.7714 4.38889 12.6898 4.5607 12.5362 4.68815C12.3803 4.81753 12.1419 4.90724 11.8245 4.91727L11.834 5.21712ZM6.72451 7.97114C6.62875 7.97047 6.53014 7.96978 6.4281 7.96978V8.26978C6.52892 8.26978 6.62651 8.27046 6.72241 8.27113L6.72451 7.97114ZM6.7235 7.97114H6.72346V8.27114H6.7235V7.97114ZM7.30197 7.96874C7.11421 7.97385 6.92589 7.97255 6.72455 7.97114L6.72245 8.27113C6.92287 8.27253 7.11637 8.2739 7.31013 8.26863L7.30197 7.96874ZM11.292 7.85269C9.96186 7.8938 8.63182 7.9325 7.30196 7.96874L7.31013 8.26863C8.64036 8.23238 9.97077 8.19367 11.3012 8.15255L11.292 7.85269ZM13.4395 7.77791C12.7234 7.80382 12.0076 7.82971 11.2918 7.8527L11.3014 8.15254C12.018 8.12954 12.7343 8.10362 13.4503 8.07772L13.4395 7.77791ZM14.9545 7.72413C14.4494 7.74138 13.9444 7.75965 13.4395 7.77791L13.4503 8.07772C13.9553 8.05945 14.46 8.04119 14.9648 8.02395L14.9545 7.72413ZM15.4324 7.73354C15.272 7.71638 15.1103 7.71331 14.9494 7.72439L14.97 8.02368C15.1134 8.01381 15.2575 8.01655 15.4005 8.03184L15.4324 7.73354ZM15.8108 7.91278C15.7097 7.81112 15.5751 7.74816 15.4317 7.73347L15.4011 8.03191C15.4774 8.03972 15.5471 8.07308 15.5982 8.12439L15.8108 7.91278ZM15.9817 8.29145C15.9733 8.14863 15.9121 8.01456 15.8108 7.91278L15.5982 8.12439C15.6491 8.17557 15.6782 8.24113 15.6822 8.30902L15.9817 8.29145ZM15.4905 8.85955C15.7762 8.78642 15.9851 8.57702 15.982 8.29852L15.682 8.30194C15.6831 8.40374 15.609 8.51956 15.4161 8.56893L15.4905 8.85955ZM15.1313 8.90235C15.2514 8.90188 15.3711 8.88769 15.4877 8.86026L15.419 8.56823C15.3244 8.59048 15.2274 8.60198 15.1302 8.60236L15.1313 8.90235ZM9.21214 9.02489C11.186 8.98519 13.1599 8.94433 15.1339 8.90232L15.1276 8.60239C13.1537 8.6444 11.1798 8.68525 9.20611 8.72495L9.21214 9.02489ZM7.21774 9.07599C7.88297 9.05758 8.54765 9.03918 9.21235 9.02488L9.2059 8.72495C8.54012 8.73927 7.87452 8.7577 7.20944 8.77611L7.21774 9.07599ZM6.56333 9.09397L7.21771 9.07599L7.20947 8.77611L6.5551 8.79408L6.56333 9.09397ZM6.46704 9.10374C6.51097 9.09801 6.53771 9.09467 6.56333 9.09397L6.5551 8.79408C6.51129 8.79528 6.46875 8.80098 6.42823 8.80626L6.46704 9.10374ZM6.47704 9.10209L6.47705 9.10209L6.41822 8.80791L6.41821 8.80792L6.47704 9.10209ZM6.46417 9.10409L6.46419 9.10409L6.43106 8.80592L6.43104 8.80592L6.46417 9.10409ZM6.38875 9.11338C6.41844 9.11008 6.4445 9.10668 6.46701 9.10374L6.42819 8.80627C6.40555 8.80922 6.38213 8.81227 6.35565 8.81521L6.38875 9.11338ZM4.50375 10.4903C4.99471 10.4871 5.44218 10.38 5.79767 10.1354C6.15618 9.88873 6.40747 9.51142 6.51882 8.99597L6.22558 8.93262C6.12849 9.38208 5.91616 9.68973 5.62761 9.88829C5.33604 10.0889 4.95301 10.1874 4.50181 10.1903L4.50375 10.4903ZM2.61162 9.1781C2.75548 9.61494 3.00105 9.94764 3.33021 10.1691C3.65842 10.39 4.05935 10.4933 4.5038 10.4903L4.50176 10.1903C4.10481 10.193 3.76612 10.1008 3.49769 9.92023C3.23022 9.74026 3.02213 9.46554 2.89656 9.08426L2.61162 9.1781ZM2.38545 9.2663C2.50558 9.27105 2.62615 9.27582 2.74765 9.28104L2.76053 8.98132C2.63843 8.97607 2.51735 8.97129 2.3973 8.96654L2.38545 9.2663ZM2.3848 9.26628L2.3849 9.26628L2.39784 8.96656L2.39774 8.96656L2.3848 9.26628ZM1.49513 9.22458C1.79093 9.24281 2.08687 9.2545 2.38535 9.2663L2.3972 8.96654C2.09816 8.95471 1.80553 8.94314 1.51359 8.92515L1.49513 9.22458ZM1.01633 9.142C1.17206 9.18529 1.33203 9.21293 1.49367 9.22448L1.51505 8.92525C1.3733 8.91512 1.23309 8.89088 1.09669 8.85296L1.01633 9.142ZM0.77604 8.98376C0.836561 9.0645 0.924277 9.12066 1.02244 9.14356L1.09058 8.8514C1.05928 8.8441 1.03315 8.82659 1.01608 8.80382L0.77604 8.98376ZM0.695653 8.70148C0.686317 8.80257 0.715313 8.90276 0.77604 8.98376L1.01608 8.80382C0.999216 8.78132 0.992 8.75486 0.994382 8.72907L0.695653 8.70148ZM0.803406 8.4402C0.733742 8.51516 0.694476 8.61335 0.695019 8.71607L0.995015 8.71448C0.994885 8.68983 1.00424 8.66479 1.02315 8.64444L0.803406 8.4402ZM1.06873 8.30797C0.967611 8.31901 0.872908 8.36542 0.803406 8.4402L1.02315 8.64444C1.04223 8.62391 1.06984 8.60963 1.10128 8.6062L1.06873 8.30797ZM1.44527 8.28111C1.31619 8.27826 1.18713 8.28768 1.05998 8.30919L1.11003 8.60499C1.21846 8.58664 1.32854 8.57861 1.43864 8.58104L1.44527 8.28111ZM2.37039 8.27966C2.05998 8.27933 1.75049 8.27899 1.44095 8.28108L1.44297 8.58107C1.75115 8.57899 2.05946 8.57933 2.37006 8.57966L2.37039 8.27966ZM2.71894 8.27991L2.37033 8.27966L2.37012 8.57966L2.71873 8.57991L2.71894 8.27991ZM2.62097 8.26182C2.60787 8.29676 2.59329 8.33563 2.57763 8.37929L2.86003 8.48054C2.87485 8.4392 2.88871 8.40224 2.90186 8.36718L2.62097 8.26182ZM2.62071 8.26254L2.6207 8.26257L2.90214 8.36644L2.90215 8.36641L2.62071 8.26254ZM2.61958 8.2657L2.61958 8.26571L2.90328 8.36323L2.90329 8.36322L2.61958 8.2657ZM2.68051 8.09099C2.66577 8.14215 2.64674 8.19312 2.62099 8.26178L2.90188 8.36714C2.92674 8.30087 2.9502 8.23855 2.96879 8.17403L2.68051 8.09099ZM3.30358 7.12604C3.0029 7.38257 2.78596 7.71792 2.6803 8.09171L2.96899 8.17331C3.05812 7.85799 3.24164 7.57323 3.49829 7.35427L3.30358 7.12604ZM4.00422 6.79627C3.74595 6.84583 3.50497 6.9588 3.30511 7.12476L3.49676 7.35556C3.65697 7.22253 3.85127 7.13109 4.06076 7.09089L4.00422 6.79627ZM5.0796 6.73367C4.72118 6.71668 4.36187 6.73743 4.00816 6.79557L4.05682 7.09159C4.38973 7.03687 4.72797 7.01733 5.0654 7.03333L5.0796 6.73367ZM6.48712 7.78633C6.37201 7.48207 6.20378 7.22329 5.96769 7.03753C5.73027 6.85073 5.43402 6.74554 5.07753 6.73358L5.06747 7.03341C5.36791 7.04349 5.60071 7.13052 5.78218 7.2733C5.96497 7.41712 6.10544 7.62528 6.20653 7.89249L6.48712 7.78633ZM6.54713 7.98571C6.53051 7.92268 6.51256 7.85408 6.48726 7.78669L6.2064 7.89213C6.22543 7.94283 6.23971 7.99648 6.25704 8.06219L6.54713 7.98571ZM6.54761 7.98759L6.54761 7.98757L6.25656 8.06033L6.25657 8.06035L6.54761 7.98759ZM6.5723 8.07848C6.56341 8.04745 6.5554 8.01706 6.54713 7.98572L6.25705 8.06221C6.2652 8.09314 6.274 8.12654 6.2839 8.16109L6.5723 8.07848ZM4.31999 7.9247C4.36643 7.91899 4.41813 7.91276 4.46251 7.90325L4.39963 7.60991C4.37107 7.61603 4.33409 7.62071 4.28339 7.62694L4.31999 7.9247ZM3.98553 8.00793C4.07233 7.95732 4.19021 7.94065 4.31999 7.9247L4.28339 7.62694C4.16683 7.64127 3.98397 7.66157 3.83442 7.74877L3.98553 8.00793ZM3.99466 9.09913C3.86215 9.01537 3.76884 8.79989 3.76713 8.5453C3.76541 8.28958 3.85616 8.08344 3.98559 8.0079L3.83437 7.7488C3.56738 7.90462 3.46513 8.24882 3.46714 8.54732C3.46915 8.84696 3.57631 9.18959 3.83435 9.35271L3.99466 9.09913ZM4.97139 9.13464C4.6285 9.28828 4.29939 9.292 3.99472 9.09917L3.83428 9.35267C4.24149 9.61039 4.68008 9.5939 5.09406 9.40841L4.97139 9.13464ZM5.26617 8.50311C5.26015 8.79505 5.2205 9.02304 4.9714 9.13463L5.09405 9.40841C5.52584 9.21497 5.56015 8.79819 5.56611 8.5093L5.26617 8.50311ZM4.75544 7.93623C5.01051 7.95583 5.12461 8.02451 5.18217 8.09955C5.24398 8.18013 5.27027 8.3047 5.26617 8.50311L5.56611 8.5093C5.57049 8.29692 5.54748 8.08288 5.42021 7.91696C5.2887 7.74552 5.07396 7.65982 4.77842 7.63711L4.75544 7.93623ZM4.57751 7.92057C4.64742 7.92703 4.70137 7.93203 4.75532 7.93622L4.77854 7.63712C4.72723 7.63313 4.6756 7.62836 4.60515 7.62184L4.57751 7.92057ZM4.57656 7.92047L4.57667 7.92049L4.60598 7.62192L4.60586 7.62191L4.57656 7.92047ZM4.41772 7.90598C4.48091 7.91163 4.53259 7.91641 4.57739 7.92055L4.60503 7.62183C4.56022 7.61768 4.50812 7.61286 4.44441 7.60717L4.41772 7.90598ZM13.1526 13.6065L13.1526 13.6065L12.8631 13.5276L12.8631 13.5276L13.1526 13.6065ZM13.0739 13.8453C13.1034 13.7681 13.1272 13.6898 13.1513 13.6108L12.8644 13.5233C12.8397 13.6041 12.8188 13.6724 12.7937 13.7383L13.0739 13.8453ZM11.4476 15.08C12.1864 14.9408 12.7912 14.5868 13.074 13.8453L12.7936 13.7384C12.5598 14.3518 12.0655 14.6583 11.3921 14.7852L11.4476 15.08ZM9.71179 14.7618C10.2257 15.0804 10.8485 15.1941 11.448 15.0799L11.3918 14.7852C10.8653 14.8855 10.3191 14.7853 9.86985 14.5068L9.71179 14.7618ZM8.89557 13.4026C8.94519 13.9894 9.19467 14.4568 9.71462 14.7635L9.86703 14.5051C9.44283 14.2549 9.23719 13.882 9.19451 13.3773L8.89557 13.4026ZM8.94043 13.5307C8.96997 13.5337 9.00129 13.5369 9.03283 13.5395L9.05725 13.2405C9.02933 13.2382 9.00111 13.2353 8.97105 13.2322L8.94043 13.5307ZM8.76341 13.5179C8.81894 13.5183 8.87562 13.524 8.94043 13.5307L8.97104 13.2322C8.90864 13.2258 8.83783 13.2184 8.76575 13.2179L8.76341 13.5179ZM6.70664 13.5036C7.3923 13.5082 8.07789 13.5128 8.76346 13.5179L8.76569 13.2179C8.07999 13.2128 7.39428 13.2082 6.70864 13.2036L6.70664 13.5036ZM6.70763 13.5036H6.70764V13.2036H6.70763V13.5036ZM2.64738 13.4725C4.00054 13.4855 5.35371 13.4946 6.70662 13.5036L6.70863 13.2036C5.35564 13.1946 4.00291 13.1855 2.65026 13.1725L2.64738 13.4725ZM1.30141 13.4062C1.74657 13.4391 2.19656 13.4681 2.64737 13.4725L2.65028 13.1725C2.20959 13.1682 1.76758 13.1399 1.32354 13.107L1.30141 13.4062ZM0.893662 13.2512C1.0104 13.3439 1.15423 13.3979 1.304 13.4064L1.32095 13.1069C1.23179 13.1018 1.14749 13.0697 1.08023 13.0163L0.893662 13.2512ZM0.71277 12.8426C0.718693 12.9887 0.777107 13.1273 0.876591 13.2354L1.0973 13.0322C1.04488 12.9752 1.0155 12.9039 1.01252 12.8305L0.71277 12.8426ZM1.05972 12.4618C0.979486 12.4787 0.892973 12.5122 0.82504 12.5732C0.752481 12.6384 0.705831 12.7318 0.712937 12.8459L1.01236 12.8272C1.01176 12.8177 1.01335 12.8129 1.01444 12.8104C1.01568 12.8075 1.01848 12.8027 1.02554 12.7964C1.04133 12.7822 1.07274 12.7656 1.12133 12.7554L1.05972 12.4618ZM1.27973 12.4357C1.20546 12.4376 1.13159 12.4465 1.05914 12.462L1.12191 12.7553C1.17638 12.7437 1.23186 12.737 1.28759 12.7356L1.27973 12.4357ZM1.81663 12.4254L1.28078 12.4357L1.28654 12.7356L1.82239 12.7253L1.81663 12.4254ZM1.81496 12.4254L1.81487 12.4254L1.82415 12.7253L1.82424 12.7252L1.81496 12.4254ZM3.69936 12.3943C3.07142 12.4009 2.44367 12.4131 1.81669 12.4253L1.82252 12.7253C2.44973 12.7131 3.07615 12.7009 3.70253 12.6943L3.69936 12.3943ZM8.31109 12.3548C6.77387 12.3649 5.23663 12.3781 3.69936 12.3943L3.70253 12.6943C5.2394 12.6781 6.77625 12.6649 8.31306 12.6548L8.31109 12.3548ZM8.97734 12.354C8.76449 12.3535 8.53775 12.353 8.3109 12.3548L8.31325 12.6548C8.53834 12.653 8.76359 12.6535 8.97666 12.654L8.97734 12.354ZM8.97733 12.354H8.977V12.654H8.97733V12.354ZM8.9774 12.354H8.97733V12.654H8.9774V12.354ZM9.25163 12.3544C9.16374 12.3544 9.07212 12.3542 8.97774 12.354L8.97706 12.654C9.07138 12.6542 9.16334 12.6544 9.25163 12.6544V12.3544ZM9.34571 12.1669C9.27861 12.2457 9.21133 12.3247 9.13999 12.4042L9.36327 12.6046C9.43761 12.5217 9.50736 12.4398 9.57411 12.3614L9.34571 12.1669ZM9.34705 12.1654L9.34703 12.1654L9.5728 12.363L9.57282 12.3629L9.34705 12.1654ZM9.79168 11.6873C9.6286 11.8344 9.48701 12.001 9.34573 12.1669L9.57413 12.3614C9.71776 12.1928 9.84673 12.0417 9.99266 11.91L9.79168 11.6873ZM11.8768 11.239C11.1186 11.0336 10.3922 11.1454 9.79168 11.6873L9.99266 11.91C10.5051 11.4476 11.1214 11.3451 11.7983 11.5285L11.8768 11.239ZM12.9535 12.309C12.8345 11.719 12.4184 11.3857 11.8768 11.239L11.7983 11.5285C12.2602 11.6537 12.5684 11.9172 12.6594 12.3683L12.9535 12.309ZM12.9811 12.3937C12.9642 12.3477 12.9573 12.3278 12.9535 12.309L12.6594 12.3683C12.6687 12.4142 12.6848 12.457 12.6996 12.4972L12.9811 12.3937ZM13.0131 12.4835C13.0009 12.4476 12.9901 12.418 12.9811 12.3937L12.6996 12.4972C12.7085 12.5215 12.7182 12.5479 12.729 12.5799L13.0131 12.4835ZM12.9742 12.3814L12.8707 12.3817L12.8715 12.6817L12.975 12.6814L12.9742 12.3814ZM13.2069 12.3817C13.1274 12.3808 13.048 12.3811 12.974 12.3814L12.9752 12.6814C13.0495 12.6811 13.1267 12.6808 13.2036 12.6817L13.2069 12.3817ZM13.6918 12.3874C13.5302 12.3856 13.3687 12.3837 13.2072 12.3817L13.2034 12.6817C13.3651 12.6837 13.5268 12.6855 13.6884 12.6874L13.6918 12.3874ZM13.6923 12.3874L13.6921 12.3874L13.6881 12.6874L13.6883 12.6874L13.6923 12.3874ZM15.269 12.4119C14.743 12.3994 14.217 12.3934 13.692 12.3874L13.6886 12.6874C14.2138 12.6934 14.738 12.6994 15.2619 12.7118L15.269 12.4119ZM15.7581 12.4965C15.6005 12.4452 15.4359 12.4167 15.2697 12.4119L15.2612 12.7118C15.3988 12.7157 15.535 12.7393 15.6651 12.7818L15.7581 12.4965ZM16.053 12.7116C15.9813 12.6086 15.8763 12.5332 15.7561 12.4959L15.6672 12.7824C15.7255 12.8005 15.7744 12.8365 15.8068 12.883L16.053 12.7116ZM16.1479 13.0633C16.1586 12.9385 16.1247 12.8144 16.0529 12.7114L15.8068 12.8831C15.8392 12.9294 15.8536 12.9839 15.849 13.0378L16.1479 13.0633ZM16.0412 13.3769C16.1131 13.2819 16.1512 13.1661 16.1484 13.047L15.8485 13.054C15.8497 13.104 15.8337 13.1538 15.802 13.1958L16.0412 13.3769ZM15.7531 13.5739C15.8678 13.5405 15.9693 13.4718 16.0411 13.3769L15.802 13.1958C15.7701 13.2379 15.7238 13.27 15.6692 13.2859L15.7531 13.5739ZM15.2607 13.6399C15.4275 13.6429 15.5937 13.6206 15.7533 13.5739L15.669 13.286C15.5386 13.3241 15.4026 13.3424 15.266 13.34L15.2607 13.6399ZM13.9772 13.6104C14.4043 13.6222 14.8327 13.634 15.2613 13.6399L15.2655 13.34C14.8392 13.3341 14.413 13.3223 13.9855 13.3105L13.9772 13.6104ZM13.396 13.5948C13.5896 13.5996 13.7833 13.605 13.9772 13.6104L13.9855 13.3105C13.7916 13.3051 13.5976 13.2998 13.4034 13.2949L13.396 13.5948ZM13.1795 13.5942C13.2591 13.5937 13.3279 13.5933 13.3963 13.5949L13.4031 13.2949C13.3296 13.2933 13.2564 13.2937 13.1776 13.2942L13.1795 13.5942ZM13.1784 13.5942H13.1786V13.2942H13.1784V13.5942ZM13.0458 13.5948C13.0936 13.5948 13.1378 13.5945 13.1794 13.5942L13.1775 13.2942C13.1359 13.2945 13.0925 13.2948 13.0458 13.2948V13.5948ZM13.1513 13.6108C13.1633 13.5717 13.1754 13.5321 13.1887 13.4905L12.9029 13.3991C12.8889 13.4428 12.8763 13.4844 12.8644 13.5233L13.1513 13.6108ZM11.7178 12.3175C11.8358 12.4672 11.9076 12.7319 11.9091 13.0194L12.2091 13.0178C12.2075 12.6964 12.1294 12.355 11.9533 12.1317L11.7178 12.3175ZM11.5711 12.2248C11.631 12.2398 11.6825 12.2731 11.7181 12.3179L11.953 12.1313C11.875 12.0332 11.7658 11.9642 11.6438 11.9338L11.5711 12.2248ZM10.2558 13.01C10.3255 12.7795 10.5111 12.554 10.7596 12.3999C11.0071 12.2464 11.3017 12.1733 11.5792 12.2266L11.6358 11.932C11.2702 11.8618 10.8996 11.9601 10.6015 12.145C10.3043 12.3292 10.0637 12.6091 9.96864 12.9231L10.2558 13.01ZM10.6588 13.7653C10.4359 13.6876 10.3157 13.5891 10.2585 13.4808C10.202 13.3736 10.1906 13.2252 10.2558 13.01L9.96864 12.9231C9.89069 13.1806 9.88626 13.4181 9.99322 13.6208C10.0996 13.8224 10.2995 13.9578 10.56 14.0486L10.6588 13.7653ZM11.9091 13.0195C11.911 13.3539 11.7694 13.5934 11.5555 13.7245C11.3383 13.8575 11.0235 13.8925 10.6588 13.7653L10.56 14.0486C10.99 14.1985 11.4021 14.1703 11.7122 13.9803C12.0254 13.7884 12.2115 13.4452 12.2091 13.0179L11.9091 13.0195ZM11.9091 13.0186V13.0187H12.2091V13.0186H11.9091Z",fill:"black"})]})}const q1=e=>{let t;const r=new Set,n=(f,l)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const p=t;t=(l!=null?l:typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(g=>g(t,p))}},o=()=>t,u={setState:n,getState:o,getInitialState:()=>h,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{r.clear()}},h=t=e(n,o,u);return u},_t=e=>e?q1(e):q1,{useDebugValue:wt}=x1,{useSyncExternalStoreWithSelector:Rt}=fe;const St=e=>e;function Zt(e,t=St,r){const n=Rt(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return wt(n),n}const K1=e=>{const t=typeof e=="function"?_t(e):e,r=(n,o)=>Zt(t,n,o);return Object.assign(r,t),r},It=e=>e?K1(e):K1,xt={collections:{nrOfSearchResults:0,filtersOpen:!1,activeCategoryIndex:null}},_1=It(e=>({...xt,collectionsActions:{setNumberOfSearchResults:t=>e(r=>({...r,collections:{...r.collections,nrOfSearchResults:t}})),setFiltersOpen:t=>e(r=>({...r,collections:{...r.collections,filtersOpen:t}})),setActiveCategoryIndex:t=>e(r=>({...r,collections:{...r.collections,activeCategoryIndex:t}}))}})),Q1=12,Et=480,Ot=400,Pt=e=>{var a;const t=_1(s=>s),[r,n]=N.exports.useState(!1);N.exports.useEffect(()=>{n((window==null?void 0:window.innerWidth)<1024),window==null||window.addEventListener("resize",()=>{n((window==null?void 0:window.innerWidth)<1024)})}),N.exports.useEffect(()=>{t.collectionsActions.setFiltersOpen(!r)},[r]);const o=`collections:${(a=e.currentCollection)==null?void 0:a.slug}`,c=`AND ${Re}`;return R(he,{searchClient:ge,indexName:"shopify_products",routing:!0,future:{preserveSharedStateOnUnmount:!0},children:[i(be,{hitsPerPage:24,filters:`${o} ${c}`}),R("div",{className:"col-start-1 col-end-15 mt-space-s grid grid-cols-2 items-center justify-between gap-5 px-gutter md:grid-cols-3 sticky top-0 py-3 bg-background z-30",id:"search-top",children:[i("div",{className:"col-span-2 w-full md:col-span-1",children:i(Nt,{})}),i("div",{className:"col-start-2 col-end-3 flex w-full justify-center",children:i("button",{onClick:()=>t.collectionsActions.setFiltersOpen(!t.collections.filtersOpen),className:"btn-standard !w-full !px-8 sm:!w-[fit-content]",children:i(R1,{mode:"wait",children:R($.div,{className:"flex items-center gap-x-2 ",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[i("div",{className:"h-4 w-4",children:t.collections.filtersOpen?i(Y1,{className:"h-full w-full"}):i(Mt,{})}),R("span",{className:"whitespace-nowrap",children:[t.collections.filtersOpen?"Hide":"Show"," Filters"]})]})})})}),i("div",{className:"col-start-1 col-end-2 row-start-2 flex w-full justify-end md:col-start-3 md:col-end-4 md:row-start-1",children:i(Tt,{items:[{label:"Latest",value:"shopify_products"},{label:"Price (Lowest)",value:"shopify_products_price_asc"},{label:"Price (Highest)",value:"shopify_products_price_desc"},{label:"Title: A-Z",value:"shopify_products_title_asc"},{label:"Title: Z-A",value:"shopify_products_title_desc"},{label:"Author: A-Z",value:"shopify_products_author_asc"},{label:"Author: Z-A",value:"shopify_products_author_desc"}]})})]}),R("div",{className:A(["col-start-1 col-end-15 mt-5 flex items-start pt-8 relative",t.collections.filtersOpen&&"md:gap-x-10"]),children:[i(R1,{mode:"wait",children:i($.div,{initial:{maxWidth:0,opacity:0},animate:t.collections.filtersOpen?{maxWidth:"300px",opacity:1,transition:{ease:"easeInOut"}}:{maxWidth:0,opacity:0,transition:{ease:"easeInOut"}},className:A(["hidden w-full lg:block overflow-hidden h-fit scroll-smooth mb-20",t.collections.filtersOpen&&"ml-gutter"]),children:i($.div,{initial:{opacity:0},animate:t.collections.filtersOpen?{opacity:1,transition:{ease:"easeInOut",delay:.3}}:{opacity:0,transition:{duration:0}},className:"w-full overflow-y-scroll h-full box-content scroll-smooth pr-4",children:i(te,{})})})}),i("div",{className:"w-full f-full",children:i(Dt,{city:e.city,featuredProducts:e.featuredProducts,isMobile:r})})]}),i(R1,{mode:"wait",children:r&&i(At,{filtersOpen:t.collections.filtersOpen,setFiltersOpen:t.collectionsActions.setFiltersOpen})})]})};function Nt(){const{nbHits:e}=J1();return R("h1",{className:"blockB1 font-semibold",children:["Shop All"," ",R("span",{className:"blockB4 ml-4 inline-block",children:["(",e.toLocaleString("en-NZ"),")"]})]})}function Tt(e){var a;const{currentRefinement:t,options:r,refine:n}=yt(e),[o,c]=N.exports.useState(!1);return R("div",{onClick:()=>c(s=>!s),className:"select blockB5 relative flex w-full cursor-pointer items-center justify-between gap-x-4 border-b pb-2 md:w-[300px]",children:[i("span",{className:"mr-2 font-bold inline-block",children:t==="shopify_products"?"Sort by":(a=r.find(s=>s.value===t))==null?void 0:a.label}),i("div",{className:"transition-standard absolute left-0 top-10 z-50 w-full overflow-hidden",children:o&&i("div",{className:" flex flex-col gap-y-2 rounded-lg bg-white px-gutter py-6 md:px-8",children:r.map(s=>{var u;return i("div",{children:i("a",{className:A([((u=r.find(h=>h.value===t))==null?void 0:u.value)===s.value?"font-bold":"font-display"]),onClick:h=>{h.preventDefault(),n(s.value)},children:s.label})},s.value)})})}),i("div",{className:"w-4",children:i(Y,{className:`transition-standard h-full w-full ${o?"rotate-180":"rotate-0"}`})})]})}function te(){const{status:e}=Q();return N.exports.useEffect(()=>{const t=localStorage.getItem("bookId"),r=localStorage.getItem("back-from-product");setTimeout(()=>{const n=document.getElementById(t!=null?t:"");n&&r==="true"&&e==="idle"&&n.scrollIntoView({block:"center",inline:"center"})},500)},[e]),R("div",{className:"flex flex-col gap-y-5 pb-4",children:[i(Vt,{}),i(Ft,{}),i(I1,{categoryId:0,webDepartment:"AOTEAROA NZ"},"AOTEAROA-NZ"),i(I1,{categoryId:1,webDepartment:"FICTION & POETRY"},"FICTION-POETRY"),i(I1,{categoryId:2,webDepartment:"CHILDREN & YOUNG ADULT"},"CHILDREN-YOUNG-ADULT"),i(Ut,{webDepartment:"NON FICTION",categoryId:3}),i(r1,{label:"Author",attribute:"meta.bookinfo_thorpe.author",limit:24,showMore:!0,showMoreLimit:999,searchable:!0}),i(r1,{label:"Publisher",attribute:"meta.bookinfo_thorpe.publisher",limit:24,showMore:!0,showMoreLimit:999,searchable:!0}),i(jt,{attribute:"meta.bookinfo_ebility.binding",label:"Format",items:[{label:"Hardback",value:"HB"},{label:"Paperback",value:"PB"},{label:"Trade Paper",value:"TP"},{label:"Board",value:"BO"},{label:"Rag Book",value:"CL"}]}),i(r1,{label:"Format",attribute:"meta.bookinfo_ebility.binding",limit:99,hidden:!0}),i(r1,{label:"Category Web Departments",attribute:"meta.categories.web_departments_merged",limit:9,hidden:!0}),i(r1,{label:"Category Sub Departments",attribute:"meta.categories.sub_merged",limit:9,hidden:!0}),i(r1,{label:"Category Main Departments",attribute:"meta.categories.main_merged",limit:9,hidden:!0}),i(Bt,{attribute:"price",min:0,max:9999})]})}function At(e){return R("div",{className:A(["fixed left-0 top-0 z-[9999] h-screen w-full lg:hidden",e.filtersOpen?"":"pointer-events-none"]),children:[i($.div,{onClick:()=>e.setFiltersOpen(!1),initial:{opacity:0},animate:e.filtersOpen?{opacity:1}:{opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"fixed left-0 top-0 h-full w-full bg-black/50"}),R($.div,{initial:{x:"-100%"},animate:e.filtersOpen?{x:0}:{x:"-100%"},transition:{duration:.3,ease:"easeInOut"},className:"fixed left-0 top-0 h-screen w-full max-w-[500px] overflow-y-scroll bg-background px-gutter",children:[R("button",{onClick:()=>e.setFiltersOpen(!1),className:"btn-standard ml-auto mt-4 mb-5 flex items-center gap-x-2",children:[i("div",{className:"h-3 w-3",children:i(Y1,{className:"h-full w-full"})}),i("span",{className:"whitespace-nowrap",children:"Hide Filters"})]}),i(te,{})]})]})}function Vt(e){var s,u;const{canRefine:t,refine:r}=i1(e),{uiState:n}=Q(),c=((s=n.shopify_products.range)==null?void 0:s.price)==="0:9999"&&!((u=n.shopify_products)!=null&&u.refinementList);if(!t||c)return null;function a(){r()}return R("button",{onClick:()=>a(),className:"mb-5 flex cursor-pointer space-x-2 lg:absolute -top-3 left-gutter",children:[i(b1,{className:"self-center",src:"/svg/cross.svg",alt:"cross",width:14,height:14}),i("span",{className:"pl-2",children:"Clear all filters"})]})}function Ft(e){const{query:t,refine:r}=ve(e),n=N.exports.useRef(null),[o,c]=kt(t,r);function a(s){c(s.target.value)}return R("div",{className:"relative text-[16px] leading-[1.52]",children:[i("label",{className:A(["transition-standard pointer-events-none absolute left-0 ",o?"-translate-x-7 -translate-y-5 scale-[.8] ":"scale-1 translate-x-0 translate-y-1"]),htmlFor:"search",children:"Search title, author or ISBN..."}),i("div",{className:"flex items-center gap-x-4 w-full border-b border-black pb-[10px]",children:i("form",{action:"",role:"search",noValidate:!0,onSubmit:s=>{s.preventDefault(),s.stopPropagation(),n.current&&n.current.blur()},onReset:s=>{s.preventDefault(),s.stopPropagation(),c(""),n.current&&n.current.focus()},className:"w-full",children:i("input",{ref:n,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:"",spellCheck:!1,maxLength:512,type:"search",value:o,onChange:a,autoFocus:!0,name:"search",className:" w-full border-0 p-0 px-0 focus:border-0 focus:outline-0 focus:ring-0 bg-background"})})}),i("div",{className:"absolute top-[10px] right-0 w-4 h-4 ",children:i(ee,{})})]})}function kt(e,t){const[r,n]=N.exports.useState(e);return N.exports.useEffect(()=>{const o=setTimeout(()=>{r!==e&&t(r)},800);return()=>clearTimeout(o)},[r,t]),[r,n]}function r1(e){var C,b;const{items:t,refine:r,searchForItems:n,canToggleShowMore:o,isShowingMore:c,toggleShowMore:a}=Ct(e),{uiState:s}=Q(),{refine:u}=i1({includedAttributes:["meta.bookinfo_thorpe.author"]}),f=!!((C=s.shopify_products.refinementList)==null?void 0:C["meta.bookinfo_thorpe.author"])&&e.label==="Author",m=!!((b=s.shopify_products.refinementList)==null?void 0:b["meta.bookinfo_thorpe.publisher"])&&e.label==="Publisher",[p,g]=N.exports.useState(f);N.exports.useEffect(()=>{(f||m)&&g(!0),!f&&!m&&g(!1)},[f,m]);function v(){g(L=>!L),p&&e.label==="Author"&&u()}return R("div",{className:e.hidden?"hidden":"",children:[R("button",{onClick:v,className:"blockB4 flex w-full items-center justify-between border-b border-black py-2 font-semibold",children:[i("span",{children:e.label}),i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",p?"rotate-180":"rotate-0"])})})]}),R($.div,{initial:{height:0},animate:p?{height:"auto"}:{height:0},className:"overflow-hidden",children:[R("div",{className:"flex flex-col gap-y-2 mt-5 mx-[10px]",children:[e.searchable&&R("div",{className:"relative border-b border-black mb-5",children:[i("input",{id:e.label.toLocaleLowerCase(),className:"block text-[16px] leading-[1.52] border-0 w-full px-0 bg-background appearance-none focus:outline-none peer focus:border-0 focus:outline-0 focus:ring-0",placeholder:" ",type:"search",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,maxLength:512,onChange:L=>n(L.currentTarget.value)}),R("label",{htmlFor:e.label.toLocaleLowerCase(),className:"absolute text-[16px] leading-[1.52] duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto",children:["Search ",e.label]}),i("div",{className:"absolute top-[10px] right-0 w-4 h-4 ",children:i(ee,{})})]}),i("ul",{className:"list-none flex flex-col gap-2",children:t.map(L=>i("li",{className:A(["blockB5 transition-standard group relative flex items-center justify-between",L.isRefined?"font-bold ":"font-display"]),children:R("label",{className:"flex gap-x-2 items-center",children:[i("div",{className:" border border-black h-4 w-4 min-w-4 min-h-4 rounded-sm relative flex-shrink-0 ",children:L.isRefined&&i(b1,{className:" absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 self-center ",src:"/svg/tick.svg",alt:"cross",width:10,height:10})}),i("input",{type:"checkbox",checked:L.isRefined,onChange:()=>r(L.value),className:"hidden"}),i("span",{className:"capitalize",children:L.label})]})},L.label))})]}),o&&i("button",{onClick:a,className:"mt-5",children:c?"Show less":"Show more"})]})]})}function jt({attribute:e,label:t,items:r}){var l;const{renderState:n,uiState:o}=Q(),{refine:c}=i1({includedAttributes:["meta.bookinfo_ebility.binding"]}),[a,s]=N.exports.useState(!1),u=(l=o.shopify_products.refinementList)==null?void 0:l[e];function h(){s(m=>!m),c()}function f(m){var p,g;(g=(p=n==null?void 0:n.shopify_products)==null?void 0:p.refinementList)==null||g[e].refine(m)}return N.exports.useEffect(()=>{u||s(!1)},[u]),N.exports.useEffect(()=>{u&&s(!0)},[]),R("div",{children:[R("button",{onClick:h,className:"blockB4 flex w-full items-center justify-between border-b border-black py-2 font-semibold",children:[i("span",{children:t}),i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",a?"rotate-180":"rotate-0"])})})]}),i($.div,{initial:{height:0},animate:a?{height:"auto"}:{height:0},className:"overflow-hidden",children:i("ul",{className:"list-none flex flex-col gap-2 mt-5",children:r.map(m=>i("li",{className:A(["blockB5 transition-standard group relative flex items-center justify-between",u!=null&&u.includes(m.value)?"font-bold":"font-display"]),children:R("label",{className:"flex gap-x-2 items-center",children:[i("div",{className:" border border-black h-4 w-4 min-w-4 min-h-4 rounded-sm relative flex-shrink-0 ",children:(u==null?void 0:u.includes(m.value))&&i(b1,{className:" absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 self-center ",src:"/svg/tick.svg",alt:"cross",width:10,height:10})}),i("input",{type:"checkbox",checked:u==null?void 0:u.includes(m.value),onChange:()=>f(m.value),className:"hidden"}),i("span",{className:"capitalize",children:m.label})]})},m.label))})})]})}function I1(e){var m,p,g,v;const{renderState:t,uiState:r}=Q(),{refine:n}=i1({includedAttributes:["meta.categories.sub_merged","meta.categories.web_departments_merged","meta.categories.main_merged"]}),o=(p=(m=r.shopify_products.refinementList)==null?void 0:m["meta.categories.web_departments_merged"])==null?void 0:p[0].toLowerCase().trim(),c=(v=(g=r.shopify_products.refinementList)==null?void 0:g["meta.categories.sub_merged"])==null?void 0:v[0].toLowerCase().trim(),a=_1(C=>C),[s,u]=N.exports.useState(o===e.webDepartment),h=re(X1,e.webDepartment),f=[];h.forEach(C=>C.subCategories.forEach(b=>{f.push({subCategory:b.name,ebilityCategoryCodes:b.ebilityCategories.map(L=>L.code)})}));function l(){var C,b;n(),o!==e.webDepartment.toLowerCase().trim()&&(a.collectionsActions.setActiveCategoryIndex(e.categoryId),(b=(C=t==null?void 0:t.shopify_products)==null?void 0:C.refinementList)==null||b["meta.categories.web_departments_merged"].refine(e.webDepartment))}return N.exports.useEffect(()=>{const C=a.collections.activeCategoryIndex===e.categoryId||a.collections.activeCategoryIndex===null,b=o===e.webDepartment.toLowerCase().trim(),L=f.find(d=>d.subCategory.toLowerCase().trim()===c);u(C&&!!(b||L))},[o,c]),R("div",{style:{scrollMarginBlockStart:"40px"},children:[R("button",{onClick:l,className:"blockB4 flex w-full items-center justify-between border-b border-black py-2 font-semibold",children:[i("span",{className:A("capitalize",{"font-bold":s}),children:e.webDepartment.toLowerCase().replace(" nz"," NZ")}),i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",s?"rotate-180":"rotate-0"])})})]}),i($.div,{initial:{height:0},animate:s?{height:"auto"}:{height:0},className:"overflow-hidden",children:i("div",{className:"flex flex-col gap-y-2 mt-5",children:i("ul",{className:"list-none flex flex-col gap-2",children:f.map((C,b)=>{const L=c===C.subCategory.toLowerCase().trim();return i("li",{className:A(["blockB5 transition-standard group relative flex items-center justify-between capitalize cursor-pointer",L&&"font-bold"]),onClick:()=>{var d,y;n(),(y=(d=t==null?void 0:t.shopify_products)==null?void 0:d.refinementList)==null||y["meta.categories.sub_merged"].refine(C.subCategory)},children:C.subCategory.toLowerCase().replace(" nz"," NZ")},b)})})})})]})}function Ut(e){var l,m,p,g,v,C;const{renderState:t,uiState:r}=Q(),{refine:n}=i1({includedAttributes:["meta.categories.sub_merged","meta.categories.web_departments_merged","meta.categories.main_merged"]}),o=((m=(l=r.shopify_products.refinementList)==null?void 0:l["meta.categories.main_merged"])==null?void 0:m[0])||((g=(p=r.shopify_products.refinementList)==null?void 0:p["meta.categories.web_departments_merged"])==null?void 0:g[0]),c=(C=(v=r.shopify_products.refinementList)==null?void 0:v["meta.categories.sub_merged"])==null?void 0:C[0],a=_1(b=>b),[s,u]=N.exports.useState(!1),h=re(X1,e.webDepartment);function f(){a.collectionsActions.setActiveCategoryIndex(e.categoryId),u(b=>!b),n()}return N.exports.useEffect(()=>{!o&&!c&&u(!1)},[o,c]),R("div",{id:`c-${e.categoryId}`,style:{scrollMarginBlockStart:"40px"},children:[R("button",{onClick:f,className:"blockB4 flex w-full items-center justify-between border-b border-black py-2 font-semibold",children:[i("span",{className:A("capitalize",{"font-bold":s}),children:e.webDepartment.toLowerCase().replace(" nz"," NZ")}),i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",s?"rotate-180":"rotate-0"])})})]}),i($.div,{initial:{height:0},animate:s?{height:"auto"}:{height:0},className:"overflow-hidden mx-[10px]",children:i("div",{className:"flex flex-col gap-y-2 mt-5",children:i("ul",{className:"list-none flex flex-col gap-2",children:h.map((b,L)=>{const d=b.subCategories.map(w=>({subCategory:w.name,ebilityCategoryCodes:w.ebilityCategories.map(x=>x.code)}));function y(){var w,x,I,U;a.collectionsActions.setActiveCategoryIndex(e.categoryId),n(),b.name==="NON FICTION"?(x=(w=t==null?void 0:t.shopify_products)==null?void 0:w.refinementList)==null||x["meta.categories.web_departments_merged"].refine(b.name):o!==b.name&&((U=(I=t==null?void 0:t.shopify_products)==null?void 0:I.refinementList)==null||U["meta.categories.main_merged"].refine(b.name))}function S(w){var x,I;n(),(I=(x=t==null?void 0:t.shopify_products)==null?void 0:x.refinementList)==null||I["meta.categories.sub_merged"].refine(w)}const M=o===b.name||d.find(w=>w.subCategory===c);N.exports.useEffect(()=>{(a.collections.activeCategoryIndex===e.categoryId||a.collections.activeCategoryIndex===null)&&M&&u(!0)},[a.collections.activeCategoryIndex]);const Z=d.length===1&&d[0].subCategory.toLowerCase()===b.name.toLowerCase();return R("li",{className:"cursor-pointer",id:`c-${e.categoryId}-sc-${L}`,style:{scrollMarginBlockStart:"40px"},children:[R("span",{className:A(["blockB5 capitalize border-b border-black py-2 flex items-center justify-between",M?"font-bold":"font-semibold"]),onClick:()=>{y()},children:[b.name.toLowerCase().replace(" nz"," NZ"),!Z&&i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",M?"rotate-180":"rotate-0"])})})]}),!Z&&i($.div,{initial:{height:0},animate:M?{height:"auto"}:{height:0},className:"overflow-hidden",children:i("ul",{className:"list-none flex flex-col gap-2 ml-4 mt-2",children:d.map((w,x)=>{const I=c===w.subCategory;return i("li",{className:A(["blockB5 transition-standard group relative flex items-center justify-between capitalize cursor-pointer",I&&"font-bold"]),onClick:()=>{S(w.subCategory)},children:w.subCategory.toLowerCase().replace(" nz"," NZ")},x)})})})]},L)})})})})]})}function Bt(e){var m;const{uiState:t}=Q(),{refine:r}=i1({includedAttributes:["price"]}),{refine:n}=ot(e),[o,c]=N.exports.useState(!1),a=(m=t.shopify_products.range)==null?void 0:m.price,s=a==="0:9999",u=a==null?void 0:a.split(":").map(Number),h=[{label:"Under $10",values:[0,10]},{label:"$10 - $25",values:[10,25]},{label:"$25 - $50",values:[25,50]},{label:"$50 - $100",values:[50,100]},{label:"$100+",values:[100,9999]}];N.exports.useEffect(()=>{a&&!s&&c(!0)},[a]);function f(){c(p=>!p)}function l(p){n([p[0],p[1]])}return N.exports.useEffect(()=>{o||r()},[o]),N.exports.useEffect(()=>{a||c(!1)},[a]),R("div",{children:[R("button",{onClick:f,className:"blockB4 flex w-full items-center justify-between border-b border-black py-2 font-semibold",children:[i("span",{className:"capitalize",children:"Price range"}),i("div",{className:"h-4 w-4",children:i(Y,{className:A(["transition-standard h-full w-full",o?"rotate-180":"rotate-0"])})})]}),i($.div,{initial:{height:0},animate:o?{height:"auto"}:{height:0},className:"overflow-hidden",children:i("div",{className:"flex flex-col gap-y-2 mt-5",children:i("ul",{className:"list-none flex flex-col gap-2",children:h.map((p,g)=>{const v=JSON.stringify(u,null,2)===JSON.stringify(p.values,null,2);return i("li",{className:A(["blockB5 transition-standard group relative flex items-center justify-between capitalize cursor-pointer",v&&"font-bold"]),onClick:()=>l(p.values),children:p.label},g)})})})})]})}function Dt(e){var f;const{hits:t}=ye(e),{nbPages:r}=J1(),{uiState:n}=Q(),o=_1(l=>l),a=!!n.shopify_products.refinementList;let s=[],u=[];if(a?s=t.slice(0,t.length):(s=t.slice(0,Q1),u=t.slice(Q1,t.length)),!t.length)return i("div",{className:"blockB1 mt-space-s w-full px-gutter text-center",children:"No books found..."});function h(l){const m=[],p=(g,v)=>{Object.keys(g).forEach(C=>{const b=g[C];typeof b=="object"&&b!==null&&!Array.isArray(b)?p(b,v):m.push({namespace:v,key:C,value:b||""})})};return Object.keys(l).forEach(g=>{const v=l[g];typeof v=="object"&&v!==null&&p(v,g)}),m}return R("div",{className:"transition-standard w-full @container overflow-y-scroll",children:[i("div",{className:A(["grid grid-cols-2 gap-x-4 gap-y-10 pb-space-s @3xl:grid-cols-3 @7xl:grid-cols-4 ",o.collections.filtersOpen?"pr-gutter":"px-gutter"]),children:s==null?void 0:s.map((l,m)=>{const p=T1(l.meta.bookinfo_ebility.title,l.title);return i(x1.Fragment,{children:i(N1,{small:o.collections.filtersOpen,storefrontProduct:{featuredImage:{url:l.product_image},handle:l.handle,id:`gid://shopify/Product/${l.id}`,metafields:h(l.meta),title:p||"",variants:{nodes:[{availableForSale:l.inventory_quantity>0,barcode:l.barcode,id:`gid://shopify/ProductVariant/${l.objectID}`,selectedOptions:[],priceV2:{currencyCode:"NZD",amount:`${l.price}`},compareAtPriceV2:l.compare_at_price?{currencyCode:"NZD",amount:`${l.compare_at_price}`}:null,image:{url:l.product_image}}]}},city:e.city})},m)})}),!!((f=e.featuredProducts)!=null&&f.length)&&!a&&i(we,{city:e.city,featuredProducts:e.featuredProducts,hideSide:o.collections.filtersOpen}),!!u.length&&i("div",{className:A(["grid grid-cols-2 gap-x-4 gap-y-10 pb-10 pt-space-s @3xl:grid-cols-3 @7xl:grid-cols-4 ",o.collections.filtersOpen?"pr-gutter":"px-gutter"]),children:u==null?void 0:u.map((l,m)=>{var g,v;const p=T1(l.meta.bookinfo_ebility.title,l.title);return i(x1.Fragment,{children:i(N1,{small:o.collections.filtersOpen,storefrontProduct:{featuredImage:{url:l.product_image},handle:l.handle,id:`gid://shopify/Product/${l.id}`,metafields:h(l.meta),title:p||"",variants:{nodes:[{availableForSale:!!l.inventory_available,barcode:l.barcode,id:`gid://shopify/ProductVariant/${l.objectID}`,selectedOptions:[],priceV2:{currencyCode:"NZD",amount:(g=l.price)==null?void 0:g.toLocaleString()},compareAtPriceV2:l.compare_at_price?{currencyCode:"NZD",amount:(v=l.compare_at_price)==null?void 0:v.toLocaleString()}:null,image:{url:l.product_image}}]}},city:e.city})},m)})}),r>1&&i($t,{isMobile:e.isMobile})]})}function $t(e){const{refine:t}=Me(e),r=me(),n=Number(r.searchParams.get("shopify_products[page]"));N.exports.useEffect(()=>{n&&t(n-1)},[n]);function o(){window.scrollTo({top:e.isMobile?Ot:Et,behavior:"smooth"})}return i(_e,{padding:2,onClick:o})}function re(e,t){return e.filter(r=>r.webDepartment.name===t).flatMap(r=>r.webDepartment.mainCategories)}function O3(e){const[t,r]=N.exports.useState(!1),[n,o]=se({align:"start",dragFree:!0,loop:!1,containScroll:"keepSnaps"}),c=e.allCollections.sort((a,s)=>a.title==="Shop All"?-1:s.title==="Shop All"?1:a.title==="Unity Staff Picks"?-1:s.title==="Unity Staff Picks"?1:a.title==="Unity Wellington"?-1:s.title==="Unity Wellington"?1:a.title==="Unity Auckland"?-1:s.title==="Unity Auckland"?1:a.title==="little Unity"?-1:s.title==="little Unity"?1:0);return i(ue,{children:R("div",{className:A("grid grid-cols-14 pt-space-h"),children:[i(ce,{...e.heading,className:"col-start-2 col-end-14 mx-auto"}),i("div",{className:"col-start-1 col-end-15",children:i("div",{className:" overflow-hidden pt-10",children:i(de,{isDisabled:t,children:i("div",{ref:n,className:"px-gutter md:px-[15vw] lg:px-[25vw]",children:i("div",{className:"flex flex-row items-start gap-x-5 md:gap-x-12 lg:gap-x-24",children:c==null?void 0:c.map((a,s)=>a.slug!==e.sanityCollection.slug&&a.slug&&i(Ht,{title:a.title,slug:a.slug,vector:a.vector,embla:o,setIsDisabled:r},s))})})})})}),i(Pt,{featuredProducts:e.featuredProducts,currentCollection:e.sanityCollection,city:e.city})]})})}const Ht=e=>R(le,{to:`/collections/${e.slug}`,prefetch:!1,reloadDocument:!0,className:"transition-standard hover:scale-105",children:[i("div",{className:"mx-auto flex w-min items-center justify-center rounded-full bg-yellow-light p-4",children:i("div",{className:"h-10 w-10 md:h-16 md:w-16",children:e.vector&&i(b1,{width:"100%",height:"auto",data:e.vector,alt:e.title||"Icon",className:"w-full"})})}),i("div",{className:"blockB4 mt-2 whitespace-nowrap text-center font-bold",children:e.title})]});export{O3 as default}; //# sourceMappingURL=a3ebfbf1.js.map