PageSourceSearch

https://bro-depot.com/_next/static/chunks/pages/catalog/[companyName]-52d4742068d1b6b1.js

js bro-depot.com collected 2026-10-04 02:40:09 UTC 183,351 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8834,5188],{41002:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/catalog/[companyName]",function(){return n(10062)}])},33251:function(e,t,n){"use strict";n.d(t,{L:function(){return l},X:function(){return o}});var r=n(29815),i=n(85893),s=n(67294),a=s.createContext(void 0),o=function(e){var t=e.children,n=e.renderActions,o=e.newColumns,l=e.newExpandedColumns,c=e.renderExpandedColumns,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t||0===t.length)return e;var n=(0,r.Z)(e);return t.forEach((function(t){var r;-1===(r=e.findIndex((function(e){return e.field===t.field})))&&(r=e.findIndex((function(e){return e.headerName===t.headerName}))),n[r]=t})),n},u=(0,s.useMemo)((function(){return{renderActions:n,newColumns:o,newExpandedColumns:l,renderExpandedColumns:c,replaceColumns:d}}),[n,o,l,c]);return(0,i.jsx)(a.Provider,{value:u,children:t})},l=function(){var e=(0,s.useContext)(a);if(void 0===e)throw new Error("useSelect can only be used inside SelectProvider");return e}},75097:function(e,t,n){"use strict";var r=n(14924),i=n(26042),s=n(69396),a=n(85893),o=n(91781),l=n(19668),c=n(94062),d=n(49837),u=n(39410),p=n(25836),f=n(67294),h=n(3105),g=n(66549),m=n(33251);t.Z=function(e){var t=(0,g.iB)(),n=t.page,v=t.pageSize,b=(t.selectedIds,t.setPage),y=t.setPageSize,w=(t.setSelectedIds,t.rows),x=t.totalRows,C=t.loading,S=t.filters,E=t.setFilters,T=t.sortType,P=t.setSortType,k=(0,m.L)(),M=k.replaceColumns,O=k.newColumns,N=(k.newExpandedColumns,(0,f.useCallback)((function(){return"auto"}),[])),j=O&&M?M(h.E,O):h.E;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",onClick:function(e){e.stopPropagation()},children:[(0,a.jsx)(d.Z,{className:"mb-4",children:(0,a.jsx)(o.Z,{filters:S,handleFilter:function(e,t){E((0,s.Z)((0,i.Z)({},S),(0,r.Z)({},e,t)))},sortType:T,setSortType:P})}),(0,a.jsx)(p.s,{pagination:!0,page:n,pageSize:v,rowCount:x,columns:j,rows:w,loading:C,getRowSpacing:l.ab,sx:l.Dr,paginationMode:"server",onPageSizeChange:function(e){return y(e)},onPageChange:function(e){return b(e)},getRowHeight:N,getDetailPanelHeight:N,autoHeight:!0,components:{Pagination:c.Z},componentsProps:{pagination:{page:n,setPage:b,pageSize:v,setPageSize:y,totalRows:x}},rowsPerPageOptions:[10,25,50,100],initialState:{pinnedColumns:{left:[u.n.field],right:["actions"]}},disableSelectionOnClick:!0})]})}},57951:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(85893),i=n(20986),s=n(54225),a=(n(96486),function(e){return[{headerName:"Actions",field:"actions",minWidth:150,renderCell:function(t){var n=t.row;return(0,r.jsx)("div",{className:"mx-auto flex flex-wrap gap-2",children:(0,r.jsxs)(s.Z,{variant:"outlined",size:"small",onClick:function(){return e({product:n})},children:["Select",(0,r.jsx)(i.sG,{className:"ml-1 text-lg",id:"click-me"})]})})}}]})},52714:function(e,t,n){"use strict";n.d(t,{_M:function(){return p},vZ:function(){return u}});var r=n(26042),i=n(85893),s=n(96277),a=n(4451),o=n(78142),l=n(96486),c=n(67294),d=(0,c.createContext)(void 0),u=function(e){var t,n=e.children,u=e.defaultFilters,p=e.skipQuery,f=void 0!==p&&p,h=e.companyId,g=(0,a.a)().user,m=(0,o._Y)(),v=null===g||void 0===g||null===(t=g.currentUc)||void 0===t?void 0:t.company.name,b=(0,c.useState)((function(){return 0})),y=b[0],w=b[1],x=(0,c.useState)((function(){return 0})),C=x[0],S=x[1],E=(0,c.useState)((function(){return(0,r.Z)({},u)})),T=E[0],P=E[1],k=(0,c.useState)((function(){return"index"})),M=k[0],O=k[1],N=(0,c.useState)(s.Asd.Asc),j=N[0],D=N[1],I=(0,c.useState)([]),L=I[0],R=I[1],A=(0,c.useState)([]),$=A[0],_=A[1],z=(0,s.nK7)({variables:{page:y,perPage:C,filter:T,sortField:M,sortOrder:j,companyId:h},skip:f}),F=z.refetch,B=z.loading,G=z.data,Z=(0,c.useMemo)((function(){return{rows:(null===G||void 0===G?void 0:G.allCatalogPosters.posters)||[],totalRows:(null===G||void 0===G?void 0:G.allCatalogPosters.total)||0}}),[G]),H=Z.rows,W=Z.totalRows,V=(0,c.useMemo)((function(){var e=H.map((function(e){var t,n,r,i=e.product,s=null===i||void 0===i?void 0:i.id,a=null===i||void 0===i||null===(t=i.productVariants)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.sku;return{id:e.id,title:e.title,imageUrl:e.file.content,href:{pathname:"/catalog/[companyName]/view/[skuOrProductId]",query:{companyName:m||v,skuOrProductId:a||s}},isActive:e.isActive,file:e.file,productId:null===(r=e.product)||void 0===r?void 0:r.id}}));return e}),[H,v,m]);(0,c.useEffect)((function(){var e=null!==$&&void 0!==$?$:[],t=H.filter((function(e){return L.includes(e.id)}
1)),n=e.concat(t).filter((function(e){return L.includes(e.id)})),r=(0,l.uniqBy)(n,"id");_(r)}),[L]);var Y=(0,c.useMemo)((function(){return{queryResult:z,catalogPosters:V,rows:H,totalRows:W,filter:T,setFilter:P,page:y,setPage:w,pageSize:C,setPageSize:S,selectedIds:L,setSelectedIds:R,selectedRows:$,loading:B,refetch:F,sortField:M,setSortField:O,sortOrder:j,setSortOrder:D}}),[z,H,V,T,W,y,C,L,$,B,F,M,j]);return(0,i.jsx)(d.Provider,{value:Y,children:n})},p=(d.Consumer,function(){var e=(0,c.useContext)(d);if(!e)throw new Error("No CatalogPosterProvider found when calling useCatalogPoster");return e})},96814:function(e,t,n){"use strict";n.d(t,{Z:function(){return zi}});var r=n(14924),i=n(26042),s=n(69396),a=n(85893),o=n(86035),l=n(47018),c=n(63121),d=n(4451),u=n(78142),p=n(29630),f=n(67294),h=n(52714),g=n(29815),m=n(1757),v=n(23837),b=n(41664),y=n.n(b),w=function(e){var t=e.catalogPoster,n=(t.id,t.title),r=t.imageUrl,i=t.href;t.isActive;return(0,a.jsx)(y(),{href:i,children:(0,a.jsxs)("a",{title:null!==n&&void 0!==n?n:"",className:"group/overlay relative h-52 w-full overflow-hidden bg-black lg:h-40",children:[(0,a.jsx)("img",{className:"h-52 w-full object-fill transition lg:h-40",src:null!==r&&void 0!==r?r:"/asset/images/noImage.png",alt:"Catalog Poster Image"}),(0,a.jsx)("div",{className:"absolute top-0 hidden h-full w-full bg-black/40 group-hover/overlay:block",children:(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center text-lg font-bold text-white/80",children:"HOT Product"})})]})})},x=n(57412);var C=function(e){return(0,a.jsx)("div",{children:(0,a.jsx)(x.Z,{animation:"wave",variant:"rectangular",height:"160px"})})};n(30933),n(68770);function S(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function E(e={},t={}){Object.keys(t).forEach((n=>{"undefined"===typeof e[n]?e[n]=t[n]:S(t[n])&&S(e[n])&&Object.keys(t[n]).length>0&&E(e[n],t[n])}))}const T={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function P(){const e="undefined"!==typeof document?document:{};return E(e,T),e}const k={document:T,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!==typeof setTimeout&&clearTimeout(e)}};function M(){const e="undefined"!==typeof window?window:{};return E(e,k),e}class O extends Array{constructor(e){"number"===typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function N(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...N(e)):t.push(e)})),t}function j(e,t){return Array.prototype.filter.call(e,t)}function D(e,t){const n=M(),r=P();let i=[];if(!t&&e instanceof O)return e;if(!e)return new O(i);if("string"===typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=r.createElement(e);t.innerHTML=n;for(let n=0;n<t.childNodes.length;n+=1)i.push(t.childNodes[n])}else i=function(e,t){if("string"!==typeof e)return[e];const n=[],r=t.querySelectorAll(e);for(let i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof O)return e;i=e}return new O(function(e){const t=[];for(let n=0;n<e.length;
1n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}D.fn=O.prototype;const I="resize scroll".split(" ");function L(e){return function(...t){if("undefined"===typeof t[0]){for(let t=0;t<this.length;t+=1)I.indexOf(e)<0&&(e in this[t]?this[t][e]():D(this[t]).trigger(e));return this}return this.on(e,...t)}}L("click"),L("blur"),L("focus"),L("focusin"),L("focusout"),L("keyup"),L("keydown"),L("keypress"),L("submit"),L("change"),L("mousedown"),L("mousemove"),L("mouseup"),L("mouseenter"),L("mouseleave"),L("mouseout"),L("mouseover"),L("touchstart"),L("touchend"),L("touchmove"),L("resize"),L("scroll");const R={addClass:function(...e){const t=N(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=N(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=N(e.map((e=>e.split(" "))));return j(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=N(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(const t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!==typeof e?`${e}ms`:e;return this},on:function(...e){let[t,n,r,i]=e;function s(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),D(t).is(n))r.apply(t,i);else{const e=D(t).parents();for(let t=0;t<e.length;t+=1)D(e[t]).is(n)&&r.apply(e[t],i)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"===typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);const o=t.split(" ");let l;for(let c=0;c<this.length;c+=1){const e=this[c];if(n)for(l=0;l<o.length;l+=1){const t=o[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:s}),e.addEventListener(t,s,i)}else for(l=0;l<o.length;l+=1){const t=o[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:a}),e.addEventListener(t,a,i)}}return this},off:function(...e){let[t,n,r,i]=e;"function"===typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);const s=t.split(" ");for(let a=0;a<s.length;a+=1){const e=s[a];for(let t=0;t<this.length;t+=1){const s=this[t];let a;if(!n&&s.dom7Listeners?a=s.dom7Listeners[e]:n&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const n=a[t];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(s.removeEventListener(e,n.proxyListener,i),a.splice(t,1)):r||(s.removeEventListener(e,n.proxyListener,i),a.splice(t,1))}}}return this},trigger:function(...e){const t=M(),n=e[0].split(" "),r=e[1];for(let i=0;i<n.length;i+=1){const s=n[i];for(let n=0;n<this.length;n+=1){const i=this[n];if(t.CustomEvent){const n=new t.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0});i.dom7EventData=e.filter(((e,t)=>t>0)),i.dispatchEvent(n),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=M();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=M(),t=P(),n=this[0],r=n.getBoundingClientRect(),i=t.body,s=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,o=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+o-s,left:r.left+l-a}}return null},css:function(e,t){const n=M();let r;if(1===arguments.length){if("string"!==typeof e){for(r=0;r<this.length;r+=1)for(const t in e)this[r].style[t]=e[t];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,n)=>{e.apply(t,[t,n])})),this):this},html:function(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=M(),n=P(),r=this[0];let i,s;if(!r||"undefined"===typeof e)return!1;if("string"===typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);
vendor: 6,373 bytes, line 1
1if(r.msMatchesSelector)return r.msMatchesSelector(e);for(i=D(e),s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof O){for(i=e.nodeType?[e]:e,s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if("undefined"===typeof e)return this;const t=this.length;if(e>t-1)return D([]);if(e<0){const n=t+e;return D(n<0?[]:[this[n]])}return D([this[e]])},append:function(...e){let t;const n=P();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"===typeof t){const r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof O)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){const t=P();let n,r;for(n=0;n<this.length;n+=1)if("string"===typeof e){const i=t.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof O)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&D(this[0].nextElementSibling).is(e)?D([this[0].nextElementSibling]):D([]):this[0].nextElementSibling?D([this[0].nextElementSibling]):D([]):D([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return D([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;e?D(r).is(e)&&t.push(r):t.push(r),n=r}return D(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&D(t.previousElementSibling).is(e)?D([t.previousElementSibling]):D([]):t.previousElementSibling?D([t.previousElementSibling]):D([])}return D([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return D([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;e?D(r).is(e)&&t.push(r):t.push(r),n=r}return D(t)},parent:function(e){const t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?D(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return D(t)},parents:function(e){const t=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)e?D(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return D(t)},closest:function(e){let t=this;return"undefined"===typeof e?D([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(e);for(let e=0;e<r.length;e+=1)t.push(r[e])}return D(t)},children:function(e){const t=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let n=0;n<r.length;n+=1)e&&!D(r[n]).is(e)||t.push(r[n])}return D(t)},filter:function(e){return D(j(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(R).forEach((e=>{Object.defineProperty(D.fn,e,{value:R[e],writable:!0})}));var A=D;function $(e,t=0){return setTimeout(e,t)}function _(){return Date.now()}function z(e,t="x"){const n=M();let r,i,s;const a=function(e){const t=M();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),s=new n.WebKitCSSMatrix("none"===i?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?s.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?s.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}function F(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function B(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const s=e[i];if(void 0!==s&&null!==s&&(r=s,!("undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement?r instanceof HTMLElement:r&&(1===r.nodeType||11===r.nodeType)))){const e=Object.keys(Object(s)).filter((e=>n.indexOf(e)<0));for(let n=0,r=e.length;n<r;n+=1){const r=e[n],i=Object.getOwnPropertyDescriptor(s,r);void 0!==i&&i.enumerable&&(F(t[r])&&F(s[r])?s[r].__swiper__?t[r]=s[r]:B(t[r],s[r]):!F(t[r])&&F(s[r])?(t[r]={},s[r].__swiper__?t[r]=s[r]:B(t[r],s[r])):t[r]=s[r])}}}var r;return t}function G(e,t,n){e.style.setProperty(t,n)}function Z({swiper:e,targetPosition:t,side:n}){const r=M(),i=-e.translate;let s,a=null;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,d=()=>{s=(new Date).getTime(),null===a&&(a=s);const l=Math.max(Math.min((s-a)/o,1),0),u=.5-Math.cos(l*Math.PI)/2;let p=i+u*(t-i);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})})),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(d)};d()}let H,W,V;function Y(){return H||(H=function(){const e=M(),t=P();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(n){}return t}(),gestures:"ongesturestart"in e}}()),H}function q(e={}){return W||(W=function({userAgent:e}={}){const t=Y(),n=M(),r=n.navigator.platform,i=e||n.navigator.userAgent,s={ios:!1,android:!1},a=n.screen.width,o=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const d=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===r;let f="MacIntel"===r;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>
1=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(s.os="android",s.android=!0),(c||u||d)&&(s.os="ios",s.ios=!0),s}(e)),W}function U(){return V||(V=function(){const e=M();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),V}var X={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!==typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{"undefined"===typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;"string"===typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i);return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(i,[e,...r])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(i,r)}))})),t}};var K={updateSize:function(){const e=this;let t,n;const r=e.$el;t="undefined"!==typeof e.params.width&&null!==e.params.width?e.params.width:r[0].clientWidth,n="undefined"!==typeof e.params.height&&null!==e.params.height?e.params.height:r[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),n=n-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const r=e.params,{$wrapperEl:i,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&r.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=i.children(`.${e.params.slideClass}`),u=l?e.virtual.slides.length:d.length;let p=[];const f=[],h=[];let g=r.slidesOffsetBefore;"function"===typeof g&&(g=r.slidesOffsetBefore.call(e));let m=r.slidesOffsetAfter;"function"===typeof m&&(m=r.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=r.spaceBetween,w=-g,x=0,C=0;if("undefined"===typeof s)return;"string"===typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),e.virtualSize=-y,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(G(e.wrapperEl,"--swiper-centered-offset-before",""),G(e.wrapperEl,"--swiper-centered-offset-after",""));const S=r.grid&&r.grid.rows>1&&e.grid;let E;S&&e.grid.initSlides(u);const T="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter((e=>"undefined"!==typeof r.breakpoints[e].slidesPerView)).length>0;for(let P=0;P<u;P+=1){E=0;const i=d.eq(P);if(S&&e.grid.updateSlide(P,i,u,t),"none"!==i.css("display")){if("auto"===r.slidesPerView){T&&(d[P].style[t("width")]="");const s=getComputedStyle(i[0]),a=i[0].style.transform,o=i[0].style.webkitTransform;if(a&&(i[0].style.transform="none"),o&&(i[0].style.webkitTransform="none"),r.roundLengths)E=e.isHorizontal()?i.outerWidth(!0):i.outerHeight(!0);else{const e=n(s,"width"),t=n(s,"padding-left"),r=n(s,"padding-right"),a=n(s,"margin-left"),o=n(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+a+o;else{const{clientWidth:n,offsetWidth:s}=i[0];E=e+t+r+a+o+(s-n)}}a&&(i[0].style.transform=a),o&&(i[0].style.webkitTransform=o),r.roundLengths&&(E=Math.floor(E))}else E=(s-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(E=Math.floor(E)),d[P]&&(d[P].style[t("width")]=`${E}px`);d[P]&&(d[P].swiperSlideSize=E),h.push(E),r.centeredSlides?(w=w+E/2+x/2+y,0===x&&0!==P&&(w=w-s/2-y),0===P&&(w=w-s/2-y),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),C%r.slidesPerGroup===0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(w),f.push(w),w=w+E+y),e.virtualSize+=E+y,x=E,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+m,a&&o&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:`${e.virtualSize+r.spaceBetween}px`}),r.setWrapperSize&&i.css({[t("width")]:`${e.virtualSize+r.spaceBetween}px`}),S&&e.grid.updateWrapperSize(E,p,t),!r.centeredSlides){const t=[];for(let n=0;n<p.length;n+=1){let i=p[n];r.roundLengths&&(i=Math.floor(i)),p[n]<=e.virtualSize-s&&t.push(i)}p=t,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){const n=e.isHorizontal()&&a?"marginLeft":t("marginRight");d.filter(((e,t)=>!r.cssMode||t!==d.length-1)).css({[n]:`${y}px`})}
vendor: 4,280 bytes, line 1
1if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(r.spaceBetween?r.spaceBetween:0)})),e-=r.spaceBetween;const t=e-s;p=p.map((e=>e<0?-g:e>t?t+m:e))}if(r.centerInsufficientSlides){let e=0;if(h.forEach((t=>{e+=t+(r.spaceBetween?r.spaceBetween:0)})),e-=r.spaceBetween,e<s){const t=(s-e)/2;p.forEach(((e,n)=>{p[n]=e-t})),f.forEach(((e,n)=>{f[n]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){G(e.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),G(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(u!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==b&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!l&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){const t=`${r.containerModifierClass}backface-hidden`,n=e.$el.hasClass(t);u<=r.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,s=0;"number"===typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||A([])).each((e=>{n.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if("undefined"!==typeof n[i]){const e=n[i].offsetHeight;s=e>s?e:s}(s||0===s)&&t.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(0===r.length)return;"undefined"===typeof r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let o=0;o<r.length;o+=1){const e=r[o];let l=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-l)/(e.swiperSlideSize+n.spaceBetween),d=(a-s[0]+(n.centeredSlides?t.minTranslate():0)-l)/(e.swiperSlideSize+n.spaceBetween),u=-(a-l),p=u+t.slidesSizesGrid[o];(u>=0&&u<t.size-1||p>1&&p<=t.size||u<=0&&p>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass)),e.progress=i?-c:c,e.originalProgress=i?-d:d}t.visibleSlides=A(t.visibleSlides)},updateProgress:function(e){const t=this;if("undefined"===typeof e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:a}=t;const o=s,l=a;0===r?(i=0,s=!0,a=!0):(i=(e-t.minTranslate())/r,s=i<=0,a=i>=1),Object.assign(t,{progress:i,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,$wrapperEl:r,activeIndex:i,realIndex:s}=e,a=e.virtual&&n.virtual.enabled;let o;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),o=a?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),o.addClass(n.slideActiveClass),n.loop&&(o.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass));let l=o.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);
vendor: 15,106 bytes, line 1
1n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));let c=o.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=t.eq(-1),c.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:r,snapGrid:i,params:s,activeIndex:a,realIndex:o,snapIndex:l}=t;let c,d=e;if("undefined"===typeof d){for(let e=0;e<r.length;e+=1)"undefined"!==typeof r[e+1]?n>=r[e]&&n<r[e+1]-(r[e+1]-r[e])/2?d=e:n>=r[e]&&n<r[e+1]&&(d=e+1):n>=r[e]&&(d=e);s.normalizeSlideIndex&&(d<0||"undefined"===typeof d)&&(d=0)}if(i.indexOf(n)>=0)c=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/s.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),d===a)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const u=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:u,previousIndex:a,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,r=A(e).closest(`.${n.slideClass}`)[0];let i,s=!1;if(r)for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===r){s=!0,i=a;break}if(!r||!s)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(A(r).attr("data-swiper-slide-index"),10):t.clickedIndex=i,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var J={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,$wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let s=z(i[0],e);return n&&(s=-s),s||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,$wrapperEl:s,wrapperEl:a,progress:o}=n;let l,c=0,d=0;n.isHorizontal()?c=r?-e:e:d=e,i.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),i.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-d:i.virtualTranslate||s.transform(`translate3d(${c}px, ${d}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:d;const u=n.maxTranslate()-n.minTranslate();l=0===u?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(d=r&&e>l?l:r&&e<c?c:e,s.updateProgress(d),a.cssMode){const e=s.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return Z({swiper:s,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function Q({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:s}=e;let a=n;if(a||(a=i>s?"next":i<s?"prev":"reset"),e.emit(`transition${r}`),t&&i!==s){if("reset"===a)return void e.emit(`slideResetTransition${r}`);e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}var ee={slideTo:function(e=0,t=this.params.speed,n=!0,r,i){if("number"!==typeof e&&"string"!==typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"===typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:f,enabled:h}=s;if(s.animating&&o.preventInteractionOnTransition||!h&&!r&&!i)return!1;const g=Math.min(s.params.slidesPerGroupSkip,a);let m=g+Math.floor((a-g)/s.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const v=-l[m];if(o.normalizeSlideIndex)for(let y=0;y<c.length;y+=1){const e=-Math.floor(100*v),t=Math.floor(100*c[y]),n=Math.floor(100*c[y+1]);"undefined"!==typeof c[y+1]?e>=t&&e<n-(n-t)/2?a=y:e>=t&&e<n&&(a=y+1):e>=t&&(a=y)}if(s.initialized&&a!==u){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(u||0)!==a)return!1}let b;if(a!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(v),b=a>u?"next":a<u?"prev":"reset",p&&-v===s.translate||!p&&v===s.translate)return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(v),"reset"!==b&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(o.cssMode){const e=s.isHorizontal(),n=p?v:-v;if(0===t){const t=s.virtual&&s.params.virtual.enabled;t&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return Z({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,b),0===t?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,r){if("string"===typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const i=this;let s=e;return i.params.loop&&(s+=i.loopedSlides),i.slideTo(s,t,n,r)},slideNext:function(e=this.params.speed,t=!0,n){const r=this,{animating:i,enabled:s,params:a}=r;if(!s)return r;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(i&&a.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const r=this,{params:i,animating:s,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:c}=r;if(!c)return r;if(i.loop){if(s&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=d(l?r.translate:-r.translate),p=a.map((e=>d(e)));let f=a[p.indexOf(u)-1];if("undefined"===typeof f&&i.cssMode){let e;a.forEach(((t,n)=>{u>=t&&(e=n)})),"undefined"!==typeof e&&(f=a[e>0?e-1:e])}let h=0;if("undefined"!==typeof f&&(h=o.indexOf(f),h<0&&(h=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(h=h-r.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return r.slideTo(h,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,r=.5){const i=this;let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const e=i.snapGrid[o];l-e>(i.snapGrid[o+1]-e)*r&&(s+=i.params.slidesPerGroup)}else{const e=i.snapGrid[o-1];l-e<=(i.snapGrid[o]-e)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,s=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(A(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),$((()=>{e.slideTo(s)}))):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),$((()=>{e.slideTo(s)}))):e.slideTo(s)}else e.slideTo(s)}};var te={loopCreate:function(){const e=this,t=P(),{params:n,$wrapperEl:r}=e,i=r.children().length>0?A(r.children()[0].parentNode):r;i.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let s=i.children(`.${n.slideClass}`);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-s.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let r=0;r<e;r+=1){const e=A(t.createElement("div")).addClass(`${n.slideClass} ${n.slideBlankClass}`);i.append(e)}s=i.children(`.${n.slideClass}`)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=s.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>s.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=s.length);const a=[],o=[];s.each(((e,t)=>{A(e).attr("data-swiper-slide-index",t)}));for(let l=0;l<e.loopedSlides;l+=1){const e=l-Math.floor(l/s.length)*s.length;o.push(s.eq(e)[0]),a.unshift(s.eq(s.length-e-1)[0])}for(let l=0;l<o.length;l+=1)i.append(A(o[l].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let l=a.length-1;l>=0;l-=1)i.prepend(A(a[l].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();if(t<r){l=n.length-3*r+t,l+=r;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)}else if(t>=n.length-r){l=-n.length+t+r,l+=r;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)}e.allowSlidePrev=i,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};function ne(e){const t=this,n=P(),r=M(),i=t.touchEventsData,{params:s,touches:a,enabled:o}=t;if(!o)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=A(l.target);if("wrapper"===s.touchEventsTarget&&!c.closest(t.wrapperEl).length)return;if(i.isTouchEvent="touchstart"===l.type,!i.isTouchEvent&&"which"in l&&3===l.which)return;if(!i.isTouchEvent&&"button"in l&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const d=!!s.noSwipingClass&&""!==s.noSwipingClass,u=e.composedPath?e.composedPath():e.path;d&&l.target&&l.target.shadowRoot&&u&&(c=A(u[0]));const p=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!(!l.target||!l.target.shadowRoot);if(s.noSwiping&&(f?function(e,t=this){return function t(n){if(!n||n===P()||n===M())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(p,c[0]):c.closest(p)[0]))return void(t.allowClick=!0);if(s.swipeHandler&&!c.closest(s.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const h=a.currentX,g=a.currentY,m=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(m&&(h<=v||h>=r.innerWidth-v)){if("prevent"!==m)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=g,i.touchStartTime=_(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;c.is(i.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),n.activeElement&&A(n.activeElement).is(i.focusableElements)&&n.activeElement!==c[0]&&n.activeElement.blur();const r=e&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!r||c[0].isContentEditable||l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function re(e){const t=P(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=n;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l));if(r.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d="touchmove"===l.type?c.pageX:l.pageX,u="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);
vendor: 8,068 bytes, line 1
1if(!n.allowTouchMove)return A(l.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),r.touchStartTime=_()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(u<s.startY&&n.translate<=n.maxTranslate()||u>s.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&A(l.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=d,s.currentY=u;const p=s.currentX-s.startX,f=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+f**2)<n.params.threshold)return;if("undefined"===typeof r.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),"undefined"===typeof r.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),r.isMoved=!0;let h=n.isHorizontal()?p:f;s.diff=h,h*=i.touchRatio,a&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;let g=!0,m=i.resistanceRatio;if(i.touchReleaseOnEdges&&(m=0),h>0&&r.currentTranslate>n.minTranslate()?(g=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**m)):h<0&&r.currentTranslate<n.maxTranslate()&&(g=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-h)**m)),g&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ie(e){const t=this,n=t.touchEventsData,{params:r,touches:i,rtlTranslate:s,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=_(),d=c-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=_(),$((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?s?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});let p=0,f=t.slidesSizesGrid[0];for(let b=0;b<a.length;b+=b<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=b<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;"undefined"!==typeof a[b+e]?u>=a[b]&&u<a[b+e]&&(p=b,f=a[b+e]-a[b]):u>=a[b]&&(p=b,f=a[a.length-1]-a[a.length-2])}let h=null,g=null;r.rewind&&(t.isBeginning?g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));const m=(u-a[p])/f,v=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(d>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(m>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?h:p+v):t.slideTo(p)),"prev"===t.swipeDirection&&(m>1-r.longSwipesRatio?t.slideTo(p+v):null!==g&&m<0&&Math.abs(m)>r.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):("next"===t.swipeDirection&&t.slideTo(null!==h?h:p+v),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p))}}function se(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function ae(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function oe(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();i=0===s?0:(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let le=!1;function ce(){}const de=(e,t)=>{const n=P(),{params:r,touchEvents:i,el:s,wrapperEl:a,device:o,support:l}=e,c=!!r.nested,d="on"===t?"addEventListener":"removeEventListener",u=t;if(l.touch){const t=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};s[d](i.start,e.onTouchStart,t),s[d](i.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),s[d](i.end,e.onTouchEnd,t),i.cancel&&s[d](i.cancel,e.onTouchEnd,t)}else s[d](i.start,e.onTouchStart,!1),n[d](i.move,e.onTouchMove,c),n[d](i.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&s[d]("click",e.onClick,!0),r.cssMode&&a[d]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",se,!0):e[u]("observerUpdate",se,!0)};var ue={attachEvents:function(){const e=this,t=P(),{params:n,support:r}=e;e.onTouchStart=ne.bind(e),e.onTouchMove=re.bind(e),e.onTouchEnd=ie.bind(e),n.cssMode&&(e.onScroll=oe.bind(e)),e.onClick=ae.bind(e),r.touch&&!le&&(t.addEventListener("touchstart",ce),le=!0),de(e,"on")},detachEvents:function(){de(this,"off")}};const pe=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var fe={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:r=0,params:i,$el:s}=e,a=i.breakpoints;if(!a||a&&0===Object.keys(a).length)return;
1const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||e.originalParams,c=pe(e,i),d=pe(e,l),u=i.enabled;c&&!d?(s.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(s.addClass(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&s.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=i[t]&&i[t].enabled,r=l[t]&&l[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()}));const p=l.direction&&l.direction!==i.direction,f=i.loop&&(l.slidesPerView!==i.slidesPerView||p);p&&n&&e.changeDirection(),B(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!h?e.disable():!u&&h&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),f&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i=M(),s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"===typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let o=0;o<a.length;o+=1){const{point:e,value:s}=a[o];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=e):s<=n.clientWidth&&(r=e)}return r||"max"}};var he={addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,$el:i,device:s,support:a}=e,o=function(e,t){const n=[];return e.forEach((e=>{"object"===typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"===typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var ge={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function me(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"===typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===e[r]&&(e[r]={auto:!0}),r in e&&"enabled"in i?(!0===e[r]&&(e[r]={enabled:!0}),"object"!==typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}
vendor: 2,943 bytes, line 1
1),B(t,n)):B(t,n)):B(t,n)}}const ve={eventsEmitter:X,update:K,translate:J,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Q({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),Q({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:ee,loop:te,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:ue,breakpoints:fe,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:he,images:{loadImage:function(e,t,n,r,i,s){const a=M();let o;function l(){s&&s()}A(e).parent("picture")[0]||e.complete&&i?l():t?(o=new a.Image,o.onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),t&&(o.src=t)):l()},preloadImages:function(){const e=this;function t(){"undefined"!==typeof e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){const r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},be={};class ye{constructor(...e){let t,n;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=B({},n),t&&!n.el&&(n.el=t),n.el&&A(n.el).length>1){const e=[];return A(n.el).each((t=>{const r=B({},n,{el:t});e.push(new ye(r))})),e}const r=this;r.__swiper__=!0,r.support=Y(),r.device=q({userAgent:n.userAgent}),r.browser=U(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&r.modules.push(...n.modules);const i={};r.modules.forEach((e=>{e({swiper:r,extendParams:me(n,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const s=B({},ge,i);return r.params=B({},s,be,n),r.originalParams=B({},r.params),r.passedParams=B({}
vendor: 4,379 bytes, line 1
1,n),r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=A,Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:A(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},r.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:_(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,"undefined"===typeof t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(n.centeredSlides){let e,t=r[o].swiperSlideSize;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let c=o+1;c<r.length;c+=1){(t?i[c]+s[c]-i[o]<a:i[c]-i[o]<a)&&(l+=1)}else for(let c=o-1;c>=0;c-=1){i[o]-i[c]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||r()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${r}`).addClass(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}
1rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const n=A(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=A(e.shadowRoot.querySelector(r()));return t.children=e=>n.children(e),t}return n.children?n.children(r()):A(n).children(r())})();if(0===i.length&&t.params.createElements){const e=P().createElement("div");i=A(e),e.className=t.params.wrapperClass,n.append(e),n.children(`.${t.params.slideClass}`).each((e=>{i.append(e)}))}return Object.assign(t,{$el:n,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const n=this,{params:r,$el:i,$wrapperEl:s,slides:a}=n;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){B(be,e)}static get extendedDefaults(){return be}static get defaults(){return ge}static installModule(e){ye.prototype.__modules__||(ye.prototype.__modules__=[]);const t=ye.prototype.__modules__;"function"===typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ye.installModule(e))),ye):(ye.installModule(e),ye)}}Object.keys(ve).forEach((e=>{Object.keys(ve[e]).forEach((t=>{ye.prototype[t]=ve[e][t]}))})),ye.use([function({swiper:e,on:t,emit:n}){const r=M();let i=null,s=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",(()=>{e.params.resizeObserver&&"undefined"!==typeof r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver((t=>{s=r.requestAnimationFrame((()=>{const{width:n,height:r}=e;let i=n,s=r;t.forEach((({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,s=n?n.height:(t[0]||t).blockSize)})),i===n&&s===r||a()}))})),i.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",o))})),t("destroy",(()=>{s&&r.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",o)}))},function({swiper:e,extendParams:t,on:n,emit:r}){const i=[],s=M(),a=(e,t={})=>{const n=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(1===e.length)return void r("observerUpdate",e[0]);const t=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(t):s.setTimeout(t,0)}));n.observe(e,{attributes:"undefined"===typeof t.attributes||t.attributes,childList:"undefined"===typeof t.childList||t.childList,characterData:"undefined"===typeof t.characterData||t.characterData}),i.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>
1{i.forEach((e=>{e.disconnect()})),i.splice(0,i.length)}))}]);var we=ye;function xe(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Ce(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Se(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{"undefined"===typeof e[n]?e[n]=t[n]:Ce(t[n])&&Ce(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Se(e[n],t[n]):e[n]=t[n]}))}function Ee(e={}){return e.navigation&&"undefined"===typeof e.navigation.nextEl&&"undefined"===typeof e.navigation.prevEl}function Te(e={}){return e.pagination&&"undefined"===typeof e.pagination.el}function Pe(e={}){return e.scrollbar&&"undefined"===typeof e.scrollbar.el}function ke(e=""){const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}const Me=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];const Oe=(e,t)=>{let n=t.slidesPerView;if(t.breakpoints){const e=we.prototype.getBreakpoint(t.breakpoints),r=e in t.breakpoints?t.breakpoints[e]:void 0;r&&r.slidesPerView&&(n=r.slidesPerView)}let r=Math.ceil(parseFloat(t.loopedSlides||n,10));return r+=t.loopAdditionalSlides,r>e.length&&t.loopedSlidesLimit&&(r=e.length),r};function Ne(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function je(e){const t=[];return f.Children.toArray(e).forEach((e=>{Ne(e)?t.push(e):e.props&&e.props.children&&je(e.props.children).forEach((e=>t.push(e)))})),t}function De(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return f.Children.toArray(e).forEach((e=>{if(Ne(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=je(e.props.children);r.length>0?r.forEach((e=>t.push(e))):n["container-end"].push(e)}else n["container-end"].push(e)})),{slides:t,slots:n}}function Ie({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:s,scrollbarEl:a,paginationEl:o}){const l=r.filter((e=>"children"!==e&&"direction"!==e)),{params:c,pagination:d,navigation:u,scrollbar:p,virtual:f,thumbs:h}=e;let g,m,v,b,y;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(m=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(v=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&p&&!p.el&&(b=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&u&&!u.prevEl&&!u.nextEl&&(y=!0);if(l.forEach((t=>{if(Ce(c[t])&&Ce(n[t]))Se(c[t],n[t]);else{const i=n[t];!0!==i&&!1!==i||"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t?c[t]=n[t]:!1===i&&e[r=t]&&(e[r].destroy(),"navigation"===r?(c[r].prevEl=void 0,c[r].nextEl=void 0,e[r].prevEl=void 0,e[r].nextEl=void 0):(c[r].el=void 0,e[r].el=void 0))}var r})),l.includes("controller")&&!m&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&f&&c.virtual.enabled?(f.slides=t,f.update(!0)):r.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),g){h.init()&&h.update(!0)}m&&(e.controller.control=c.controller.control),v&&(o&&(c.pagination.el=o),d.init(),d.render(),d.update()),b&&(a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),y&&(i&&(c.navigation.nextEl=i),s&&(c.navigation.prevEl=s),u.init(
1),u.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),e.update()}function Le(e,t){return"undefined"===typeof window?(0,f.useEffect)(e,t):(0,f.useLayoutEffect)(e,t)}const Re=(0,f.createContext)(null),Ae=(0,f.createContext)(null);function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(this,arguments)}const _e=(0,f.forwardRef)((function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:a,...o}=void 0===e?{}:e,l=!1;const[c,d]=(0,f.useState)("swiper"),[u,p]=(0,f.useState)(null),[h,g]=(0,f.useState)(!1),m=(0,f.useRef)(!1),v=(0,f.useRef)(null),b=(0,f.useRef)(null),y=(0,f.useRef)(null),w=(0,f.useRef)(null),x=(0,f.useRef)(null),C=(0,f.useRef)(null),S=(0,f.useRef)(null),E=(0,f.useRef)(null),{params:T,passedParams:P,rest:k,events:M}=function(e={},t=!0){const n={on:{}},r={},i={};Se(n,we.defaults),Se(n,we.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},a=Me.map((e=>e.replace(/_/,""))),o=Object.assign({},e);return Object.keys(o).forEach((o=>{"undefined"!==typeof e[o]&&(a.indexOf(o)>=0?Ce(e[o])?(n[o]={},i[o]={},Se(n[o],e[o]),Se(i[o],e[o])):(n[o]=e[o],i[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"===typeof e[o]?t?r[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:n.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:s[o]=e[o])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:s,events:r}}(o),{slides:O,slots:N}=De(s),j=()=>{g(!h)};Object.assign(T.on,{_containerClasses(e,t){d(t)}});const D=()=>{if(Object.assign(T.on,M),l=!0,b.current=new we(T),b.current.loopCreate=()=>{},b.current.loopDestroy=()=>{},T.loop&&(b.current.loopedSlides=Oe(O,T)),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=O;const e={cache:!1,slides:O,renderExternal:p,renderExternalUpdate:!1};Se(b.current.params.virtual,e),Se(b.current.originalParams.virtual,e)}};v.current||D(),b.current&&b.current.on("_beforeBreakpoint",j);return(0,f.useEffect)((()=>()=>{b.current&&b.current.off("_beforeBreakpoint",j)})),(0,f.useEffect)((()=>{!m.current&&b.current&&(b.current.emitSlidesClasses(),m.current=!0)})),Le((()=>{if(t&&(t.current=v.current),v.current)return b.current.destroyed&&D(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:s},a){Ee(a)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),Te(a)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),Pe(a)&&i&&(s.params.scrollbar.el=i,s.originalParams.scrollbar.el=i),s.init(e)}({el:v.current,nextEl:x.current,prevEl:C.current,paginationEl:S.current,scrollbarEl:E.current,swiper:b.current},T),a&&a(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}}),[]),Le((()=>{!l&&M&&b.current&&Object.keys(M).forEach((e=>{b.current.on(e,M[e])}));const e=function(e,t,n,r,i){const s=[];if(!t)return s;const a=e=>{s.indexOf(e)<0&&s.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}const o=Me.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,"")));return o.forEach((n=>{if(n in e&&n in t)if(Ce(e[n])&&Ce(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})),i.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})))}else e[n]!==t[n]&&a(n)})),s}(P,y.current,O,w.current,(e=>e.key));return y.current=P,w.current=O,e.length&&b.current&&!b.current.destroyed&&Ie({swiper:b.current,slides:O,passedParams:P,changedParams:e,nextEl:x.current,prevEl:C.current,scrollbarEl:E.current,paginationEl:S.current}),()=>{M&&b.current&&Object.keys(M).forEach((e=>{b.current.off(e,M[e])}))}})),Le((()=>{var e;!(e=b.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[u]),f.createElement(r,$e({ref:v,className:ke(`${c}${n?` ${n}`:""}`)},k),f.createElement(Ae.Provider,{value:b.current},N["container-start"],f.createElement(i,{className:"swiper-wrapper"},N["wrapper-start"],T.virtual?function(e,t,n){if(!n)return null;const r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`};return t.filter(((e,t)=>t>=n.from&&t<=n.to)).map((t=>f.cloneElement(t,{swiper:e,style:r})))}(b.current,O,u):!T.loop||b.current&&b.current.destroyed?O.map((e=>f.cloneElement(e,{swiper:b.current}))):function(e,t,n){const r=t.map(((t,n)=>f.cloneElement(t,{swiper:e,"data-swiper-slide-index":n})));function i(e,t,r){return f.cloneElement(e,{key:`${e.key}-duplicate-${t}-${r}`,className:`${e.props.className||""} ${n.slideDuplicateClass}`})}if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-r.length%n.slidesPerGroup;if(e!==n.slidesPerGroup)for(let t=0;t<e;t+=1){const e=f.createElement("div",{className:`${n.slideClass} ${n.slideBlankClass}`});
1r.push(e)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length);const s=Oe(r,n),a=[],o=[];for(let l=0;l<s;l+=1){const e=l-Math.floor(l/r.length)*r.length;o.push(i(r[e],l,"append")),a.unshift(i(r[r.length-e-1],l,"prepend"))}return e&&(e.loopedSlides=s),[...a,...r,...o]}(b.current,O,T),N["wrapper-end"]),Ee(T)&&f.createElement(f.Fragment,null,f.createElement("div",{ref:C,className:"swiper-button-prev"}),f.createElement("div",{ref:x,className:"swiper-button-next"})),Pe(T)&&f.createElement("div",{ref:E,className:"swiper-scrollbar"}),Te(T)&&f.createElement("div",{ref:S,className:"swiper-pagination"}),N["container-end"]))}));function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(this,arguments)}_e.displayName="Swiper";const Fe=(0,f.forwardRef)((function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:a,virtualIndex:o,...l}=void 0===e?{}:e;const c=(0,f.useRef)(null),[d,u]=(0,f.useState)("swiper-slide");function p(e,t,n){t===c.current&&u(n)}Le((()=>{if(t&&(t.current=c.current),c.current&&s){if(!s.destroyed)return s.on("_slideClass",p),()=>{s&&s.off("_slideClass",p)};"swiper-slide"!==d&&u("swiper-slide")}})),Le((()=>{s&&c.current&&!s.destroyed&&u(s.getSlideClasses(c.current))}),[s]);const h={isActive:d.indexOf("swiper-slide-active")>=0||d.indexOf("swiper-slide-duplicate-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isDuplicate:d.indexOf("swiper-slide-duplicate")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0||d.indexOf("swiper-slide-duplicate-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0||d.indexOf("swiper-slide-duplicate-next")>=0},g=()=>"function"===typeof r?r(h):r;return f.createElement(n,ze({ref:c,className:ke(`${d}${i?` ${i}`:""}`),"data-swiper-slide-index":o},l),f.createElement(Re.Provider,{value:h},a?f.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"===typeof a?a:void 0},g()):g()))}));Fe.displayName="SwiperSlide";var Be=n(66910),Ge=n.n(Be),Ze={clickable:!0},He={delay:2e3,disableOnInteraction:!1},We=[function({swiper:e,extendParams:t,on:n,emit:r}){let i;function s(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(i),i=$((()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),r("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?o():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),r("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),r("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),r("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?o():(t=e.slideTo(0,e.params.speed,!0,!0),r("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),r("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&s()}),n)}function a(){return"undefined"===typeof i&&(!e.autoplay.running&&(e.autoplay.running=!0,r("autoplayStart"),s(),!0))}function o(){return!!e.autoplay.running&&("undefined"!==typeof i&&(i&&(clearTimeout(i),i=void 0),e.autoplay.running=!1,r("autoplayStop"),!0))}function l(t){e.autoplay.running&&(e.autoplay.paused||(i&&clearTimeout(i),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,d)})):(e.autoplay.paused=!1,s())))}function c(){const t=P();"hidden"===t.visibilityState&&e.autoplay.running&&l(),"visible"===t.visibilityState&&e.autoplay.paused&&(s(),e.autoplay.paused=!1)}function d(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,d)})),e.autoplay.paused=!1,e.autoplay.running?s():o())}function u(){e.params.autoplay.disableOnInteraction?o():(r("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,d)}))}function p(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,r("autoplayResume"),s())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",(()=>{if(e.params.autoplay.enabled){a();P().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",u),e.$el.on("mouseleave",p))}})),n("beforeTransitionStart",((t,n,r)=>{e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(n):o())})),n("sliderFirstMove",(()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?o():l())})),n("touchEnd",(()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&s()})),n("destroy",(()=>{e.$el.off("mouseenter",u),e.$el.off("mouseleave",p),e.autoplay.running&&o();P().removeEventListener("visibilitychange",c)})),Object.assign(e.autoplay,{pause:l,run:s,start:a,stop:o})},function({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";let s;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,n){const{bulletActiveClass:r}=e.params.pagination;t[n]().addClass(`${r}-${n}`)[n]().addClass(`${r}-${n}-${n}`)}function c(){const t=e.rtl,n=e.params.pagination;if(o())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let d;
1const u=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),d>i-1-2*e.loopedSlides&&(d-=i-2*e.loopedSlides),d>u-1&&(d-=u),d<0&&"bullets"!==e.params.paginationType&&(d=u+d)):d="undefined"!==typeof e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const r=e.pagination.bullets;let i,o,u;if(n.dynamicBullets&&(s=r.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",s*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=d-(e.previousIndex-e.loopedSlides||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),i=Math.max(d-a,0),o=i+(Math.min(r.length,n.dynamicMainBullets)-1),u=(o+i)/2),r.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`)).join(" ")),c.length>1)r.each((e=>{const t=A(e),r=t.index();r===d&&t.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=i&&r<=o&&t.addClass(`${n.bulletActiveClass}-main`),r===i&&l(t,"prev"),r===o&&l(t,"next"))}));else{const t=r.eq(d),s=t.index();if(t.addClass(n.bulletActiveClass),n.dynamicBullets){const t=r.eq(i),a=r.eq(o);for(let e=i;e<=o;e+=1)r.eq(e).addClass(`${n.bulletActiveClass}-main`);if(e.params.loop)if(s>=r.length){for(let e=n.dynamicMainBullets;e>=0;e-=1)r.eq(r.length-e).addClass(`${n.bulletActiveClass}-main`);r.eq(r.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else l(t,"prev"),l(a,"next");else l(t,"prev"),l(a,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),a=(s*i-s)/2-u*s,o=t?"right":"left";r.css(e.isHorizontal()?o:"top",`${a}px`)}}if("fraction"===n.type&&(c.find(xe(n.currentClass)).text(n.formatFractionCurrent(d+1)),c.find(xe(n.totalClass)).text(n.formatFractionTotal(u))),"progressbar"===n.type){let t;t=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(d+1)/u;let i=1,s=1;"horizontal"===t?i=r:s=r,c.find(xe(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${s})`).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(e,d+1,u)),r("paginationRender",c[0])):r("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](n.lockClass)}function d(){const t=e.params.pagination;if(o())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let s="";if("bullets"===t.type){let r=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?s+=t.renderBullet.call(e,n,t.bulletClass):s+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;i.html(s),e.pagination.bullets=i.find(xe(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,i.html(s)),"custom"!==t.type&&r("paginationRender",e.pagination.$el[0])}function u(){e.params.pagination=function(e,t,n,r){const i=P();return e.params.createElements&&Object.keys(r).forEach((s=>{if(!n[s]&&!0===n.auto){let a=e.$el.children(`.${r[s]}`)[0];a||(a=i.createElement("div"),a.className=r[s],e.$el.append(a)),n[s]=a,t[s]=a}})),n}(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n=A(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&n.length>1&&(n=e.$el.find(t.el),n.length>1&&(n=n.filter((t=>A(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),n.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",xe(t.bulletClass),(function(t){t.preventDefault();let n=A(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),Object.assign(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}function p(){const t=e.params.pagination;if(o())return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),n.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",xe(t.bulletClass))}n("init",(()=>{!1===e.params.pagination.enabled?f():(u(),d(),c())})),n("activeIndexChange",(()=>{(e.params.loop||"undefined"===typeof e.snapIndex)&&c()})),n("snapIndexChange",(()=>{e.params.loop||c()})),n("slidesLengthChange",(()=>{e.params.loop&&(d(),c())})),n("snapGridLengthChange",(()=>{e.params.loop||(d(),c())})),n("destroy",(()=>{p()})),n("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((t,n)=>{const i=n.target,{$el:s}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s&&s.length>0&&!A(i).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=s.hasClass(e.params.pagination.hiddenClass);r(!0===t?"paginationShow":"paginationHide"),s.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),p()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),u(),d(),c()},disable:f,render:d,update:c,init:u,destroy:p})}];var Ve=function(e){var t=e.catalogPosters;return(0,a.jsx)("div",{className:"".concat(Ge().sliderWrapper," -mx-4"),children:(0,a.jsx)(_e,{slidesPerView:1,spaceBetween:10,pagination:Ze,autoplay:He,loop:!0,modules:We,className:"",children:t.map((function(e){return(0,a.jsx)(Fe,{children:(0,a.jsx)(w,{catalogPoster:e})},e.id)}))})})};Array.from({length:8},(function(e,t){return{id:"da369a96-7876-488f-8919-6d5e9d7dcf8f-".concat(t),title:"Test edit poster title ".concat(t),imageUrl:2===t?"https://cdn.shopify.com/s/files/1/0487/1828/2905/files/20230309_TotalCover_Chi_D_6c37a0b2-82ef-425c-b2b0-646ae19168b3_600x.jpg?v=1678356931":"https://cdn.ab2c.xyz/iHVw7pe6ZsoMYGtt3zBFmc.png",href:{pathname:"/catalog/[companyName]/view/[skuOrProductId]",query:{companyName:"\u9738\u738b\u8336\u59ec",skuOrProductId:"da369a96-7876-488f-8919-6d5e9d7dcf8f"}},isActive:!0}}));var Ye=function(e){var t,n,r,i=e.catalogPosters,s=(0,u._Y)(),l=(0,d.a)().user,c="admin"===s&&null!==(r=null===(t=(0,v.b)(l))||void 0===t||null===(n=t.company)||void 0===n?void 0:n.name)&&void 0!==r?r:s,p=(0,m.Z)().isSmallScreen,f=(0,o.uj)(),h=f.catalogProductList,b=f.loading,y=f.queryResult;return p?(0,a.jsx)(Ve,{catalogPosters:i}):i.length||!b&&y.called?i.length||h.length?(0,a.jsxs)("div",{className:"grid w-full grid-cols-2 gap-2 md:grid-cols-3 lg:grid-cols-4",children:[i.map((function(e){return(0,a.jsx)("div",{children:(0,a.jsx)(w,{catalogPoster:e})},e.id)})),h.map((function(e){var t,n,r,i=e.product,s=null===i||void 0===i?void 0:i.id,o=null===i||void 0===i||null===(t=i.productVariants)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.sku,l=null===(r=i.details.images)||void 0===r?void 0:r[0],d=null===l||void 0===l?void 0:l.content,u={productId:i.id,title:i.name,imageUrl:d,href:{pathname:"/catalog/[companyName]/view/[skuOrProductId]",query:{companyName:c,skuOrProductId:o||s}},id:i.id,isActive:e.isActive,file:l};return(0,a.jsx)("div",{children:(0,a.jsx)(w,{catalogPoster:u})},e.id)}))]}):null:(0,a.jsx)("div",{className:"grid w-full grid-cols-2 gap-2 md:grid-cols-3 lg:grid-cols-4",children:(0,g.Z)(Array(4)).map((function(e,t){return(0,a.jsx)(C,{},t)}))})},qe=n(47568),Ue=n(828),Xe=n(70655),Ke=n(73935);const Je="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function Qe(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function et(e){return"nodeType"in e}function tt(e){var t,n;return e?Qe(e)?e:et(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function nt(e){const{Document:t}=tt(e);return e instanceof t}function rt(e){return!Qe(e)&&e instanceof tt(e).HTMLElement}function it(e){return e?Qe(e)?e.document:et(e)?nt(e)?e:rt(e)?e.ownerDocument:document:document:document}const st=Je?f.useLayoutEffect:f.useEffect;function at(e){const t=(0,f.useRef)(e);return st((()=>{t.current=e})),(0,f.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function ot(e,t){void 0===t&&(t=[e]);const n=(0,f.useRef)(e);return st((()=>{n.current!==e&&(n.current=e)}),t),n}function lt(e,t){const n=(0,f.useRef)();return(0,f.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function ct(e){const t=at(e),n=(0,f.useRef)(null),r=(0,f.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function dt(e){const t=(0,f.useRef)();return(0,f.useEffect)((()=>{t.current=e}),[e]),t.current}let ut={};function pt(e,t){return(0,f.useMemo)((()=>
vendor: 35,515 bytes, line 1
1{if(t)return t;const n=null==ut[e]?0:ut[e]+1;return ut[e]=n,e+"-"+n}),[e,t])}function ft(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[i,s]of r){const n=t[i];null!=n&&(t[i]=n+e*s)}return t}),{...t})}}const ht=ft(1),gt=ft(-1);function mt(e){if(!e)return!1;const{KeyboardEvent:t}=tt(e.target);return t&&e instanceof t}function vt(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=tt(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const bt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[bt.Translate.toString(e),bt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),yt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function wt(e){return e.matches(yt)?e:e.querySelector(yt)}const xt={display:"none"};function Ct(e){let{id:t,value:n}=e;return f.createElement("div",{id:t,style:xt},n)}const St={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function Et(e){let{id:t,announcement:n}=e;return f.createElement("div",{id:t,style:St,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const Tt=(0,f.createContext)(null);const Pt={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},kt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Mt(e){let{announcements:t=kt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Pt}=e;const{announce:s,announcement:a}=function(){const[e,t]=(0,f.useState)(""),n=(0,f.useCallback)((e=>{null!=e&&t(e)}),[]);return{announce:n,announcement:e}}(),o=pt("DndLiveRegion"),[l,c]=(0,f.useState)(!1);if((0,f.useEffect)((()=>{c(!0)}),[]),function(e){const t=(0,f.useContext)(Tt);(0,f.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,f.useMemo)((()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}})),[s,t])),!l)return null;const d=f.createElement(f.Fragment,null,f.createElement(Ct,{id:r,value:i.draggable}),f.createElement(Et,{id:o,announcement:a}));return n?(0,Ke.createPortal)(d,n):d}var Ot;function Nt(){}function jt(e,t){return(0,f.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Ot||(Ot={}));const Dt=Object.freeze({x:0,y:0});function It(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Lt(e,t){const n=vt(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Rt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function At(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $t(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function _t(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function zt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),a=i-r,o=s-n;if(r<i&&n<s){const n=t.width*t.height,r=e.width*e.height,i=a*o;return Number((i/(n+r-i)).toFixed(4))}return 0}const Ft=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:e}=s,r=n.get(e);if(r){const n=zt(r,t);n>0&&i.push({id:e,data:{droppableContainer:s,value:n}})}}return i.sort(At)};function Bt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Dt}function Gt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Zt=Gt(1);function Ht(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Wt={ignoreTransform:!1};function Vt(e,t){void 0===t&&(t=Wt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=tt(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Ht(t);if(!r)return e;const{scaleX:i,scaleY:s,x:a,y:o}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-o-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,u=s?e.height/s:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(n,t,r))}const{top:r,left:i,width:s,height:a,bottom:o,right:l}=n;return{top:r,left:i,width:s,height:a,bottom:o,right:l}}function Yt(e){return Vt(e,{ignoreTransform:!0})}function qt(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(nt(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!rt(i)||function(e){return e instanceof tt(e).SVGElement}(i))return n;if(n.includes(i))return n;const s=tt(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=tt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"===typeof r&&n.test(r)}))}(i,s)&&n.push(i),function(e,t){return void 0===t&&(t=tt(e).getComputedStyle(e)),"fixed"===t.position}(i,s)?n:r(i.parentNode)}(e):n}function Ut(e){const[t]=qt(e,1);return null!=t?t:null}function Xt(e){return Je&&e?Qe(e)?e:et(e)?nt(e)||e===it(e).scrollingElement?window:rt(e)?e:null:null:null}function Kt(e){return Qe(e)?e.scrollX:e.scrollLeft}function Jt(e){return Qe(e)?e.scrollY:e.scrollTop}function Qt(e){return{x:Kt(e),y:Jt(e)}}var en;function tn(e){return!(!Je||!e)&&e===document.scrollingElement}function nn(e){const t={x:0,y:0},n=tn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(en||(en={}));const rn={x:.2,y:.2};function sn(e,t,n,r,i){let{top:s,left:a,right:o,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=rn);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=nn(e),f={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!c&&s<=t.top+g?(f.y=en.Backward,h.y=r*Math.abs((t.top+g-s)/g)):!d&&l>=t.bottom-g&&(f.y=en.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!p&&o>=t.right-m?(f.x=en.Forward,h.x=r*Math.abs((t.right-m-o)/m)):!u&&a<=t.left+m&&(f.x=en.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:f,speed:h}}function an(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function on(e){return e.reduce(((e,t)=>ht(e,Qt(t))),Dt)}function ln(e,t){if(void 0===t&&(t=Vt),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Ut(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const cn=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Kt(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Jt(t)),0)}]];class dn{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=qt(t),r=on(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,s,a]of cn)for(const e of s)Object.defineProperty(this,e,{get:()=>{const t=a(n),s=r[i]-t;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class un{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function pn(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var fn,hn;function gn(e){e.preventDefault()}function mn(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(fn||(fn={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(hn||(hn={}));const vn={start:[hn.Space,hn.Enter],cancel:[hn.Esc],end:[hn.Space,hn.Enter]},bn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case hn.Right:return{...n,x:n.x+25};case hn.Left:return{...n,x:n.x-25};case hn.Down:return{...n,y:n.y+25};case hn.Up:return{...n,y:n.y-25}}};class yn{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new un(it(t)),this.windowListeners=new un(tt(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(fn.Resize,this.handleCancel),this.windowListeners.add(fn.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(fn.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ln(n),t(Dt)}handleKeyDown(e){if(mt(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=vn,coordinateGetter:s=bn,scrollBehavior:a="smooth"}=r,{code:o}=e;if(i.end.includes(o))return void this.handleEnd(e);if(i.cancel.includes(o))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:Dt;this.referenceCoordinates||(this.referenceCoordinates=c);const d=s(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=gt(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:s,isRight:o,isLeft:l,isBottom:c,maxScroll:u,minScroll:p}=nn(n),f=an(n),h={x:Math.min(i===hn.Right?f.right-f.width/2:f.right,Math.max(i===hn.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(i===hn.Down?f.bottom-f.height/2:f.bottom,Math.max(i===hn.Down?f.top:f.top+f.height/2,d.y))},g=i===hn.Right&&!o||i===hn.Left&&!l,m=i===hn.Down&&!c||i===hn.Up&&!s;if(g&&h.x!==d.x){const e=n.scrollLeft+t.x,s=i===hn.Right&&e<=u.x||i===hn.Left&&e>=p.x;if(s&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=s?n.scrollLeft-e:i===hn.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==d.y){const e=n.scrollTop+t.y,s=i===hn.Down&&e<=u.y||i===hn.Up&&e>=p.y;if(s&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=s?n.scrollTop-e:i===hn.Down?n.scrollTop-u.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,ht(gt(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function wn(e){return Boolean(e&&"distance"in e)}function xn(e){return Boolean(e&&"delay"in e)}yn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=vn,onActivation:i}=t,{active:s}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=s.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Cn{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=tt(e);return e instanceof t?e:it(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:s}=i;this.props=e,this.events=t,this.document=it(s),this.documentListeners=new un(this.document),this.listeners=new un(n),this.windowListeners=new un(tt(s)),this.initialCoordinates=null!=(r=vt(i))?r:Dt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(fn.Resize,this.handleCancel),this.windowListeners.add(fn.DragStart,gn),this.windowListeners.add(fn.VisibilityChange,this.handleCancel),this.windowListeners.add(fn.ContextMenu,gn),this.documentListeners.add(fn.Keydown,this.handleKeydown),t){if(wn(t))return;if(xn(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(fn.Click,mn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(fn.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const o=null!=(t=vt(e))?t:Dt,l=gt(r,o);if(!n&&a){if(xn(a))return pn(l,a.tolerance)?this.handleCancel():void 0;if(wn(a))return null!=a.tolerance&&pn(l,a.tolerance)?this.handleCancel():pn(l,a.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),s(o)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===hn.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Sn={move:{name:"pointermove"},end:{name:"pointerup"}};class En extends Cn{constructor(e){const{event:t}=e,n=it(t.target);super(e,Sn,n)}}En.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const Tn={move:{name:"mousemove"},end:{name:"mouseup"}};var Pn;!function(e){e[e.RightClick=2]="RightClick"}(Pn||(Pn={}));(class extends Cn{constructor(e){super(e,Tn,it(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Pn.RightClick&&(null==r||r({event:n}),!0)}}];const kn={move:{name:"touchmove"},end:{name:"touchend"}};var Mn,On;function Nn(e){let{acceleration:t,activator:n=Mn.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:a=5,order:o=On.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=dt(t);return lt((e=>{if(n||!r||!e)return jn;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[en.Backward]:e.x[en.Backward]||-1===i.x,[en.Forward]:e.x[en.Forward]||1===i.x},y:{[en.Backward]:e.y[en.Backward]||-1===i.y,[en.Forward]:e.y[en.Forward]||1===i.y}}}),[n,t,r])}({delta:u,disabled:!s}),[g,m]=function(){const e=(0,f.useRef)(null);return[(0,f.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,f.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),v=(0,f.useRef)({x:0,y:0}),b=(0,f.useRef)({x:0,y:0}),y=(0,f.useMemo)((()=>{switch(n){case Mn.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Mn.DraggableRect:return i}}),[n,i,l]),w=(0,f.useRef)(null),x=(0,f.useCallback)((()=>{const e=w.current;if(!e)return;const t=v.current.x*b.current.x,n=v.current.y*b.current.y;e.scrollBy(t,n)}),[]),C=(0,f.useMemo)((()=>o===On.TreeOrder?[...c].reverse():c),[o,c]);(0,f.useEffect)((()=>{if(s&&c.length&&y){for(const e of C){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),i=d[n];if(!i)continue;const{direction:s,speed:o}=sn(e,i,y,t,p);for(const e of["x","y"])h[e][s[e]]||(o[e]=0,s[e]=0);if(o.x>0||o.y>0)return m(),w.current=e,g(x,a),v.current=o,void(b.current=s)}v.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[t,x,r,m,s,a,JSON.stringify(y),JSON.stringify(h),g,c,C,d,JSON.stringify(p)])}(class extends Cn{constructor(e){super(e,kn)}static setup(){return window.addEventListener(kn.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(kn.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Mn||(Mn={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(On||(On={}));const jn={x:{[en.Backward]:!1,[en.Forward]:!1},y:{[en.Backward]:!1,[en.Forward]:!1}};var Dn,In;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Dn||(Dn={})),function(e){e.Optimized="optimized"}(In||(In={}));const Ln=new Map;function Rn(e,t){return lt((n=>e?n||("function"===typeof t?t(e):e):null),[t,e])}function An(e){let{callback:t,disabled:n}=e;const r=at(t),i=(0,f.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,f.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function $n(e){return new dn(Vt(e),e)}function _n(e,t,n){void 0===t&&(t=$n);const[r,i]=(0,f.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const s=t(e);if(JSON.stringify(r)===JSON.stringify(s))return r;return s}),null),s=function(e){let{callback:t,disabled:n}=e;const r=at(t),i=(0,f.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,f.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=An({callback:i});return st((()=>{i(),e?(null==a||a.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==s||s.disconnect())}),[e]),r}const zn=[];function Fn(e,t){void 0===t&&(t=[]);const n=(0,f.useRef)(null);return(0,f.useEffect)((()=>{n.current=null}),t),(0,f.useEffect)((()=>{const t=e!==Dt;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?gt(e,n.current):Dt}function Bn(e){return(0,f.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Gn=[];function Zn(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return rt(t)?t:e}const Hn=[{sensor:En,options:{}},{sensor:yn,options:{}}],Wn={current:{}},Vn={draggable:{measure:Yt},droppable:{measure:Yt,strategy:Dn.WhileDragging,frequency:In.Optimized},dragOverlay:{measure:Vt}};class Yn extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const qn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Nt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Vn,measureDroppableContainers:Nt,windowRect:null,measuringScheduled:!1},Un={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nt,draggableNodes:new Map,over:null,measureDroppableContainers:Nt},Xn=(0,f.createContext)(Un),Kn=(0,f.createContext)(qn);function Jn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yn}}}function Qn(e,t){switch(t.type){case Ot.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ot.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Ot.DragEnd:case Ot.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ot.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Yn(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Ot.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const a=new Yn(e.droppable.containers);return a.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Ot.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Yn(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function er(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,f.useContext)(Xn),s=dt(r),a=dt(null==n?void 0:n.id);return(0,f.useEffect)((()=>{if(!t&&!r&&s&&null!=a){if(!mt(s))return;if(document.activeElement===s.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=wt(e);if(t){t.focus();break}}}))}}),[r,t,i,a,s]),null}function tr(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const nr=(0,f.createContext)({...Dt,scaleX:1,scaleY:1});var rr;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(rr||(rr={}));const ir=(0,f.memo)((function(e){var t,n,r,i;let{id:s,accessibility:a,autoScroll:o=!0,children:l,sensors:c=Hn,collisionDetection:d=Ft,measuring:u,modifiers:p,...h}=e;const g=(0,f.useReducer)(Qn,void 0,Jn),[m,v]=g,[b,y]=function(){const[e]=(0,f.useState)((()=>new Set)),t=(0,f.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,f.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[w,x]=(0,f.useState)(rr.Uninitialized),C=w===rr.Initialized,{draggable:{active:S,nodes:E,translate:T},droppable:{containers:P}}=m,k=S?E.get(S):null,M=(0,f.useRef)({initial:null,translated:null}),O=(0,f.useMemo)((()=>{var e;return null!=S?{id:S,data:null!=(e=null==k?void 0:k.data)?e:Wn,rect:M}:null}),[S,k]),N=(0,f.useRef)(null),[j,D]=(0,f.useState)(null),[I,L]=(0,f.useState)(null),R=ot(h,Object.values(h)),A=pt("DndDescribedBy",s),$=(0,f.useMemo)((()=>P.getEnabled()),[P]),_=(z=u,(0,f.useMemo)((()=>({draggable:{...Vn.draggable,...null==z?void 0:z.draggable},droppable:{...Vn.droppable,...null==z?void 0:z.droppable},dragOverlay:{...Vn.dragOverlay,...null==z?void 0:z.dragOverlay}})),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:F,measureDroppableContainers:B,measuringScheduled:G}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,a]=(0,f.useState)(null),{frequency:o,measure:l,strategy:c}=i,d=(0,f.useRef)(e),u=function(){switch(c){case Dn.Always:return!1;case Dn.BeforeDragging:return n;default:return!n}}(),p=ot(u),h=(0,f.useCallback)((function(e){void 0===e&&(e=[]),p.current||a((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,f.useRef)(null),m=lt((t=>{if(u&&!n)return Ln;if(!t||t===Ln||d.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new dn(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,u,l]);return(0,f.useEffect)((()=>{d.current=e}),[e]),(0,f.useEffect)((()=>{u||h()}),[n,u]),(0,f.useEffect)((()=>{s&&s.length>0&&a(null)}),[JSON.stringify(s)]),(0,f.useEffect)((()=>{u||"number"!==typeof o||null!==g.current||(g.current=setTimeout((()=>{h(),g.current=null}),o))}),[o,u,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=s}}($,{dragging:C,dependencies:[T.x,T.y],config:_.droppable}),Z=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return lt((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(E,S),H=(0,f.useMemo)((()=>I?vt(I):null),[I]),W=function(){const e=!1===(null==j?void 0:j.autoScrollEnabled),t="object"===typeof o?!1===o.enabled:!1===o,n=C&&!e&&!t;if("object"===typeof o)return{...o,enabled:n};return{enabled:n}}(),V=function(e,t){return Rn(e,t)}(Z,_.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=(0,f.useRef)(!1),{x:a,y:o}="boolean"===typeof i?{x:i,y:i}:i;st((()=>{if(!a&&!o||!t)return void(s.current=!1);if(s.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=Bt(n(e),r);if(a||(i.x=0),o||(i.y=0),s.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=Ut(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,a,o,r,n])}({activeNode:S?E.get(S):null,config:W.layoutShiftCompensation,initialRect:V,measure:_.draggable.measure});const Y=_n(Z,_.draggable.measure,V),q=_n(Z?Z.parentElement:null),U=(0,f.useRef)({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=P.getNodeFor(null==(t=U.current.over)?void 0:t.id),K=function(e){let{measure:t}=e;const[n,r]=(0,f.useState)(null),i=(0,f.useCallback)((e=>{for(const{target:n}of e)if(rt(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t]),s=An({callback:i}),a=(0,f.useCallback)((e=>{const n=Zn(e);null==s||s.disconnect(),n&&(null==s||s.observe(n)),r(n?t(n):null)}),[t,s]),[o,l]=ct(a);return(0,f.useMemo)((()=>({nodeRef:o,rect:n,setRef:l})),[n,o,l])}({measure:_.dragOverlay.measure}),J=null!=(n=K.nodeRef.current)?n:Z,Q=C?null!=(r=K.rect)?r:Y:null,ee=Boolean(K.nodeRef.current&&K.rect),te=Bt(ne=ee?null:Y,Rn(ne));var ne;const re=Bn(J?tt(J):null),ie=function(e){const t=(0,f.useRef)(e),n=lt((n=>e?n&&n!==zn&&e&&t.current&&e.parentNode===t.current.parentNode?n:qt(e):zn),[e]);return(0,f.useEffect)((()=>{t.current=e}),[e]),n}(C?null!=X?X:Z:null),se=function(e,t){void 0===t&&(t=Vt);const[n]=e,r=Bn(n?tt(n):null),[i,s]=(0,f.useReducer)((function(){return e.length?e.map((e=>tn(e)?r:new dn(t(e),e))):Gn}),Gn),a=An({callback:s});return e.length>0&&i===Gn&&s(),st((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),s())}),[e]),i}(ie),ae=tr(p,{transform:{x:T.x-te.x,y:T.y-te.y,scaleX:1,scaleY:1},activatorEvent:I,active:O,activeNodeRect:Y,containerNodeRect:q,draggingNodeRect:Q,over:U.current.over,overlayNodeRect:K.rect,scrollableAncestors:ie,scrollableAncestorRects:se,windowRect:re}),oe=H?ht(H,T):null,le=function(e){const[t,n]=(0,f.useState)(null),r=(0,f.useRef)(e),i=(0,f.useCallback)((e=>{const t=Xt(e.target);t&&n((e=>e?(e.set(t,Qt(t)),new Map(e)):null))}),[]);return(0,f.useEffect)((()=>{const t=r.current;if(e!==t){s(t);const a=e.map((e=>{const t=Xt(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Qt(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(t)};function s(e){e.forEach((e=>{const t=Xt(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,f.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>ht(e,t)),Dt):on(e):Dt),[e,t])}(ie),ce=Fn(le),de=Fn(le,[Y]),ue=ht(ae,ce),pe=Q?Zt(Q,ae):null,fe=O&&pe?d({active:O,collisionRect:pe,droppableRects:F,droppableContainers:$,pointerCoordinates:oe}):null,he=_t(fe,"id"),[ge,me]=(0,f.useState)(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:ht(ae,de),null!=(i=null==ge?void 0:ge.rect)?i:null,Y),be=(0,f.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==N.current)return;const i=E.get(N.current);if(!i)return;const s=e.nativeEvent,a=new n({active:N.current,activeNode:i,event:s,options:r,context:U,onStart(e){const t=N.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=R.current,i={active:{id:t,data:n.data,rect:M}};(0,Ke.unstable_batchedUpdates)((()=>{null==r||r(i),x(rr.Initializing),v({type:Ot.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){v({type:Ot.DragMove,coordinates:e})},onEnd:o(Ot.DragEnd),onCancel:o(Ot.DragCancel)});function o(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=U.current;let a=null;if(t&&i){const{cancelDrop:o}=R.current;if(a={activatorEvent:s,active:t,collisions:n,delta:i,over:r},e===Ot.DragEnd&&"function"===typeof o){await Promise.resolve(o(a))&&(e=Ot.DragCancel)}}N.current=null,(0,Ke.unstable_batchedUpdates)((()=>{v({type:e}),x(rr.Uninitialized),me(null),D(null),L(null);const t=e===Ot.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=R.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,Ke.unstable_batchedUpdates)((()=>{D(a),L(e.nativeEvent)}))}),[E]),ye=(0,f.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,s=E.get(r);if(null!==N.current||!s||i.dndKit||i.defaultPrevented)return;const a={active:s};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},N.current=r,be(n,t))}),[E,be]),we=function(e,t){return(0,f.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(c,ye);!function(e){(0,f.useEffect)((()=>{if(!Je)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(c),st((()=>{Y&&w===rr.Initializing&&x(rr.Initialized)}),[Y,w]),(0,f.useEffect)((()=>{const{onDragMove:e}=R.current,{active:t,activatorEvent:n,collisions:r,over:i}=U.current;if(!t||!n)return;const s={active:t,activatorEvent:n,collisions:r,delta:{x:ue.x,y:ue.y},over:i};(0,Ke.unstable_batchedUpdates)((()=>{null==e||e(s),b({type:"onDragMove",event:s})}))}),[ue.x,ue.y]),(0,f.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=U.current;if(!e||null==N.current||!t||!i)return;const{onDragOver:s}=R.current,a=r.get(he),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,Ke.unstable_batchedUpdates)((()=>{me(o),null==s||s(l),b({type:"onDragOver",event:l})}))}),[he]),st((()=>{U.current={activatorEvent:I,active:O,activeNode:Z,collisionRect:pe,collisions:fe,droppableRects:F,draggableNodes:E,draggingNode:J,draggingNodeRect:Q,droppableContainers:P,over:ge,scrollableAncestors:ie,scrollAdjustedTranslate:ue},M.current={initial:Q,translated:pe}}),[O,Z,fe,pe,E,J,Q,F,P,ge,ie,ue]),Nn({...W,delta:T,draggingRect:pe,pointerCoordinates:oe,scrollableAncestors:ie,scrollableAncestorRects:se});const xe=(0,f.useMemo)((()=>({active:O,activeNode:Z,activeNodeRect:Y,activatorEvent:I,collisions:fe,containerNodeRect:q,dragOverlay:K,draggableNodes:E,droppableContainers:P,droppableRects:F,over:ge,measureDroppableContainers:B,scrollableAncestors:ie,scrollableAncestorRects:se,measuringConfiguration:_,measuringScheduled:G,windowRect:re})),[O,Z,Y,I,fe,q,K,E,P,F,ge,B,ie,se,_,G,re]),Ce=(0,f.useMemo)((()=>({activatorEvent:I,activators:we,active:O,activeNodeRect:Y,ariaDescribedById:{draggable:A},dispatch:v,draggableNodes:E,over:ge,measureDroppableContainers:B})),[I,we,O,Y,v,A,E,ge,B]);return f.createElement(Tt.Provider,{value:y},f.createElement(Xn.Provider,{value:Ce},f.createElement(Kn.Provider,{value:xe},f.createElement(nr.Provider,{value:ve},l)),f.createElement(er,{disabled:!1===(null==a?void 0:a.restoreFocus)})),f.createElement(Mt,{...a,hiddenTextDescribedById:A}))})),sr=(0,f.createContext)(null),ar="button";function or(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=pt("Droppable"),{activators:a,activatorEvent:o,active:l,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:p}=(0,f.useContext)(Xn),{role:h=ar,roleDescription:g="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,b=(0,f.useContext)(v?nr:sr),[y,w]=ct(),[x,C]=ct(),S=function(e,t){return(0,f.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),E=ot(n);st((()=>(u.set(t,{id:t,key:s,node:y,activatorNode:x,data:E}),()=>{const e=u.get(t);e&&e.key===s&&u.delete(t)})),[u,t]);return{active:l,activatorEvent:o,activeNodeRect:c,attributes:(0,f.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||h!==ar)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[r,h,m,v,g,d.draggable]),isDragging:v,listeners:r?void 0:S,node:y,over:p,setNodeRef:w,setActivatorNodeRef:C,transform:b}}function lr(){return(0,f.useContext)(Kn)}const cr={timeout:25};function dr(e){let{animation:t,children:n}=e;const[r,i]=(0,f.useState)(null),[s,a]=(0,f.useState)(null),o=dt(n);return n||r||!o||i(o),st((()=>
1{if(!s)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{i(null)})):i(null)}),[t,r,s]),f.createElement(f.Fragment,null,n,r?(0,f.cloneElement)(r,{ref:a}):null)}const ur={x:0,y:0,scaleX:1,scaleY:1};function pr(e){let{children:t}=e;return f.createElement(Xn.Provider,{value:Un},f.createElement(nr.Provider,{value:ur},t))}const fr={position:"fixed",touchAction:"none"},hr=e=>mt(e)?"transform 250ms ease":void 0,gr=(0,f.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:a,rect:o,style:l,transform:c,transition:d=hr}=e;if(!o)return null;const u=i?c:{...c,scaleX:1,scaleY:1},p={...fr,width:o.width,height:o.height,top:o.top,left:o.left,transform:bt.Transform.toString(u),transformOrigin:i&&r?Lt(r,o):void 0,transition:"function"===typeof d?d(r):d,...l};return f.createElement(n,{className:a,style:p,ref:t},s)})),mr=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:s,className:a}=e;if(null!=s&&s.active)for(const[e,o]of Object.entries(s.active))void 0!==o&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,o));if(null!=s&&s.dragOverlay)for(const[e,o]of Object.entries(s.dragOverlay))void 0!==o&&r.node.style.setProperty(e,o);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},vr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:bt.Transform.toString(t)},{transform:bt.Transform.toString(n)}]},sideEffects:mr({styles:{active:{opacity:"0"}}})};function br(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return at(((e,s)=>{if(null===t)return;const a=n.get(e);if(!a)return;const o=a.node.current;if(!o)return;const l=Zn(s);if(!l)return;const{transform:c}=tt(s).getComputedStyle(s),d=Ht(c);if(!d)return;const u="function"===typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...vr,...e};return e=>{let{active:s,dragOverlay:a,transform:o,...l}=e;if(!t)return;const c={x:a.rect.left-s.rect.left,y:a.rect.top-s.rect.top},d={scaleX:1!==o.scaleX?s.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?s.rect.height*o.scaleY/a.rect.height:1},u={x:o.x-c.x,y:o.y-c.y,...d},p=i({...l,active:s,dragOverlay:a,transform:{initial:o,final:u}}),[f]=p,h=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(h))return;const g=null==r?void 0:r({active:s,dragOverlay:a,...l}),m=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{m.onfinish=()=>{null==g||g(),e()}}))}}(t);return ln(o,i.draggable.measure),u({active:{id:e,data:a.data,node:o,rect:i.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:s,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}let yr=0;function wr(e){return(0,f.useMemo)((()=>{if(null!=e)return yr++,yr}),[e])}const xr=f.memo((e=>
1{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:a,wrapperElement:o="div",className:l,zIndex:c=999}=e;const{activatorEvent:d,active:u,activeNodeRect:p,containerNodeRect:h,draggableNodes:g,droppableContainers:m,dragOverlay:v,over:b,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:C}=lr(),S=(0,f.useContext)(nr),E=wr(null==u?void 0:u.id),T=tr(a,{activatorEvent:d,active:u,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:v.rect,over:b,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:S,windowRect:C}),P=Rn(p),k=br({config:r,draggableNodes:g,droppableContainers:m,measuringConfiguration:y}),M=P?v.setRef:void 0;return f.createElement(pr,null,f.createElement(dr,{animation:k},u&&E?f.createElement(gr,{key:E,id:u.id,ref:M,as:o,activatorEvent:d,adjustScale:t,className:l,transition:s,rect:P,style:{zIndex:c,...i},transform:T},n):null))}));function Cr(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Sr(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function Er(e){return null!==e&&e>=0}const Tr=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const s=Cr(t,r,n),a=t[i],o=s[i];return o&&a?{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}:null};const Pr="Sortable",kr=f.createContext({activeIndex:-1,containerId:Pr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Tr,disabled:{draggable:!1,droppable:!1}});function Mr(e){let{children:t,id:n,items:r,strategy:i=Tr,disabled:s=!1}=e;const{active:a,dragOverlay:o,droppableRects:l,over:c,measureDroppableContainers:d}=lr(),u=pt(Pr,n),p=Boolean(null!==o.rect),h=(0,f.useMemo)((()=>r.map((e=>"object"===typeof e&&"id"in e?e.id:e))),[r]),g=null!=a,m=a?h.indexOf(a.id):-1,v=c?h.indexOf(c.id):-1,b=(0,f.useRef)(h),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),w=-1!==v&&-1===m||y,x=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(s);st((()=>{y&&g&&d(h)}),[y,h,g,d]),(0,f.useEffect)((()=>{b.current=h}),[h]);const C=(0,f.useMemo)((()=>({activeIndex:m,containerId:u,disabled:x,disableTransforms:w,items:h,overIndex:v,useDragOverlay:p,sortedRects:Sr(h,l),strategy:i})),[m,u,x.draggable,x.droppable,w,h,v,l,p,i]);return f.createElement(kr.Provider,{value:C},t)}const Or=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Cr(n,r,i).indexOf(t)},Nr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((o===s||i!==a)&&(!!n||a!==i&&t===l))},jr={duration:200,easing:"ease"},Dr="transform",Ir=bt.Transition.toString({property:Dr,duration:0,easing:"linear"}),Lr={roleDescription:"sortable"};function Rr(e){let{animateLayoutChanges:t=Nr,attributes:n,disabled:r,data:i,getNewIndex:s=Or,id:a,strategy:o,resizeObserverConfig:l,transition:c=jr}=e;const{items:d,containerId:u,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:b,strategy:y}=(0,f.useContext)(kr),w=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,h),x=d.indexOf(a),C=(0,f.useMemo)((()=>({sortable:{containerId:u,index:x,items:d},...i})),[u,i,x,d]),S=(0,f.useMemo)((()=>d.slice(d.indexOf(a))),[d,a]),{rect:E,node:T,isOver:P,setNodeRef:k}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const s=pt("Droppable"),{active:a,dispatch:o,over:l,measureDroppableContainers:c}=(0,f.useContext)(Xn),d=(0,f.useRef)({disabled:n}),u=(0,f.useRef)(!1),p=(0,f.useRef)(null),h=(0,f.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...cr,...i},b=ot(null!=m?m:r),y=An({callback:(0,f.useCallback)((()=>{u.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{c(Array.isArray(b.current)?b.current:[b.current]),h.current=null}),v)):u.current=!0}),[v]),disabled:g||!a}),w=(0,f.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),u.current=!1),e&&y.observe(e))}),[y]),[x,C]=ct(w),S=ot(t);return(0,f.useEffect)((()=>{y&&x.current&&(y.disconnect(),u.current=!1,y.observe(x.current))}),[x,y]),st((()=>(o({type:Ot.RegisterDroppable,element:{id:r,key:s,disabled:n,node:x,rect:p,data:S}}),()=>o({type:Ot.UnregisterDroppable,key:s,id:r}))),[r]),(0,f.useEffect)((()=>{n!==d.current.disabled&&(o({type:Ot.SetDroppableDisabled,id:r,key:s,disabled:n}),d.current.disabled=n)}
1),[r,s,n,o]),{active:a,rect:p,isOver:(null==l?void 0:l.id)===r,node:x,over:l,setNodeRef:C}}({id:a,data:C,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:M,activatorEvent:O,activeNodeRect:N,attributes:j,setNodeRef:D,listeners:I,isDragging:L,over:R,setActivatorNodeRef:A,transform:$}=or({id:a,data:C,attributes:{...Lr,...n},disabled:w.draggable}),_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,f.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(k,D),z=Boolean(M),F=z&&!g&&Er(p)&&Er(v),B=!b&&L,G=B&&F?$:null,Z=F?null!=G?G:(null!=o?o:y)({rects:m,activeNodeRect:N,activeIndex:p,overIndex:v,index:x}):null,H=Er(p)&&Er(v)?s({id:a,items:d,activeIndex:p,overIndex:v}):x,W=null==M?void 0:M.id,V=(0,f.useRef)({activeId:W,items:d,newIndex:H,containerId:u}),Y=d!==V.current.items,q=t({active:M,containerId:u,isDragging:L,isSorting:z,id:a,index:x,items:d,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:c,wasDragging:null!=V.current.activeId}),U=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[s,a]=(0,f.useState)(null),o=(0,f.useRef)(n);return st((()=>{if(!t&&n!==o.current&&r.current){const e=i.current;if(e){const t=Vt(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==o.current&&(o.current=n)}),[t,n,r,i]),(0,f.useEffect)((()=>{s&&a(null)}),[s]),s}({disabled:!q,index:x,node:T,rect:E});return(0,f.useEffect)((()=>{z&&V.current.newIndex!==H&&(V.current.newIndex=H),u!==V.current.containerId&&(V.current.containerId=u),d!==V.current.items&&(V.current.items=d)}),[z,H,u,d]),(0,f.useEffect)((()=>{if(W===V.current.activeId)return;if(W&&!V.current.activeId)return void(V.current.activeId=W);const e=setTimeout((()=>{V.current.activeId=W}),50);return()=>clearTimeout(e)}),[W]),{active:M,activeIndex:p,attributes:j,data:C,rect:E,index:x,newIndex:H,items:d,isOver:P,isSorting:z,isDragging:L,listeners:I,node:T,overIndex:v,over:R,setNodeRef:_,setActivatorNodeRef:A,setDroppableNodeRef:k,setDraggableNodeRef:D,transform:null!=U?U:Z,transition:function(){if(U||Y&&V.current.newIndex===x)return Ir;if(B&&!mt(O)||!c)return;if(z||q)return bt.Transition.toString({...c,property:Dr});return}()}}function Ar(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const $r=[hn.Down,hn.Right,hn.Up,hn.Left],_r=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:s,over:a,scrollableAncestors:o}}=t;if($r.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const s=i.get(n.id);if(s)switch(e.code){case hn.Down:r.top<s.top&&t.push(n);break;case hn.Up:r.top>s.top&&t.push(n);break;case hn.Left:r.left>s.left&&t.push(n);break;case hn.Right:r.left<s.left&&t.push(n)}}));const l=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=$t(t),s=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=$t(t),r=i.reduce(((e,t,r)=>e+It(n[r],t)),0),o=Number((r/4).toFixed(4));s.push({id:e,data:{droppableContainer:a,value:o}})}}return s.sort(Rt)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let c=_t(l,"id");if(c===(null==a?void 0:a.id)&&l.length>1&&(c=l[1].id),null!=c){const e=s.get(n.id),t=s.get(c),a=t?i.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=qt(l).some(((e,t)=>o[t]!==e)),i=zr(e,t),s=function(e,t){if(!Ar(e)||!Ar(t))return!1;if(!zr(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!i?{x:0,y:0}:{x:s?r.width-a.width:0,y:s?r.height-a.height:0},d={x:a.left,y:a.top};return c.x&&c.y?d:gt(d,c)}}}};function zr(e,t){return!(!Ar(e)||!Ar(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Fr=n(51649).tHF,Br=n(58969),Gr=n.n(Br),Zr=(0,f.createContext)({attributes:{},listeners:void 0,ref:function(){}});var Hr={sideEffects:mr({styles:{active:{opacity:"0.4"}}})};function Wr(e){var t=e.children;return(0,a.jsx)(xr,{dropAnimation:Hr,children:t})}var Vr=n(572),Yr=n.n(Vr);
1function qr(e){var t=e.items,n=e.onChange,r=e.renderItem,i=(0,f.useState)(null),s=i[0],o=i[1],l=(0,f.useMemo)((function(){return t.find((function(e){return e.id===(null===s||void 0===s?void 0:s.id)}))}),[s,t]),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,f.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(jt(En),jt(yn,{coordinateGetter:_r}));return(0,a.jsxs)(ir,{sensors:c,onDragStart:function(e){var t=e.active;o(t)},onDragEnd:function(e){var r=e.active,i=e.over;if(i&&r.id!==(null===i||void 0===i?void 0:i.id)){var s=t.findIndex((function(e){return e.id===r.id})),a=t.findIndex((function(e){return e.id===i.id}));n(Cr(t,s,a))}o(null)},onDragCancel:function(){o(null)},children:[(0,a.jsx)(Mr,{items:t,children:(0,a.jsx)("ul",{className:Yr().SortableList,role:"application",children:t.map((function(e){return(0,a.jsx)(f.Fragment,{children:r(e)},e.id)}))})}),(0,a.jsx)(Wr,{children:l?r(l):null})]})}qr.Item=function(e){var t=e.children,n=Rr({id:e.id}),r=n.attributes,i=n.isDragging,s=n.listeners,o=n.setNodeRef,l=n.setActivatorNodeRef,c=n.transform,d=n.transition,u=(0,f.useMemo)((function(){return{attributes:r,listeners:s,ref:l}}),[r,s,l]),p={opacity:i?.4:void 0,transform:bt.Translate.toString(c),transition:d};return(0,a.jsx)(Zr.Provider,{value:u,children:(0,a.jsx)("li",{className:Gr().SortableItem,ref:o,style:p,children:t})})},qr.DragHandle=function(){var e=(0,f.useContext)(Zr),t=e.attributes,n=e.listeners,r
1=e.ref;return(0,a.jsx)("button",(0,s.Z)((0,i.Z)({type:"button",className:Gr().DragHandle},t,n),{ref:r,children:(0,a.jsx)(Fr,{})}))};var Ur=n(96277),Xr=n(43085),Kr=n(96486),Jr=n(35386),Qr=n(53722),ei=n(94805),ti=n(3032),ni=n(20986),ri=n(17575),ii=n(19343),si=n(40873),ai=n(89479),oi=n(66549),li=n(57951),ci=n(75097),di=n(33251),ui=n(51655),pi=n(8132),fi=n(1427),hi=n(76366),gi=n(47533),mi=n(31812),vi=n(91359),bi=n(79072),yi=n(44373),wi=n(54225),xi=n(70754),Ci=n(87536),Si=n(74231),Ei={file:null,productId:"",title:""},Ti=Si.Ry().shape({title:Si.Z_().required()}),Pi=function(e){var t=e.defaultValues,n=e.onSubmit,r=e.mode,o=(0,f.useMemo)((function(){return(0,Kr.merge)({},Ei,t)}),[t]),l=(0,Ci.cI)({defaultValues:o,resolver:(0,gi.X)(Ti)}),c=(l.control,l.handleSubmit),d=l.reset,u=l.formState,p=(u.errors,u.isSubmitting);(0,f.useEffect)((function(){var e=(0,Kr.merge)({},Ei,t);d(e)}),[t]);var h=(0,f.useState)(null),g=h[0],m=h[1],v=(0,Ue.Z)((0,Ur.l19)(),2),b=v[0],y=v[1],w=y.loading;y.called;(0,f.useEffect)((function(){o.productId&&b({variables:{filter:{id:o.productId}},onCompleted:function(e){var t=e.allProducts,n=null===t||void 0===t?void 0:t.products[0];n&&m(n)}})}),[o.productId]);var x,C=function(){var e=(0,qe.Z)((function(e){var t;return(0,Xe.__generator)(this,(function(r){switch(r.label){case 0:return(t=null===g||void 0===g?void 0:g.id)?[4,n((0,s.Z)((0,i.Z)({},e),{productId:t}))]:((0,Xr._N)("Please select a product"),[2]);case 1:return r.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),S="update"===r;return(0,a.jsx)(hi.e,{methods:l,onSubmit:c(C),defaultValues:o,children:(0,a.jsx)(vi.Z,{children:(0,a.jsxs)(bi.ZP,{container:!0,spacing:2,children:[(0,a.jsx)(bi.ZP,{item:!0,xs:S?10:12,children:(0,a.jsx)(fi.Z,{name:"title",label:"Poster Title",textFieldProps:{placeholder:"Enter Poster Title"},defaultValues:o})}),S&&(0,a.jsx)(bi.ZP,{item:!0,xs:2,children:(0,a.jsx)(pi.Z,{label:"Active ? ",name:"isActive",defaultValues:o,hasLabel:!0,formControlProps:{sx:{width:"auto"}}})}),(0,a.jsx)(bi.ZP,{item:!0,xs:12,children:(0,a.jsx)("div",{className:"py-4",children:(0,a.jsx)(yi.Z,{})})}),(0,a.jsx)(bi.ZP,{item:!0,xs:g||w?7:12,className:"",children:(0,a.jsx)(di.X,{newColumns:(0,li.u)((function(e){var t=e.product;m(t)})),children:(0,a.jsx)(oi.GW,{defaultFilters:{isOnCatalog:!0},children:(0,a.jsx)("div",{onClick:ai.UW,className:"mx-2 w-full",children:g?(0,a.jsxs)("div",{className:"m-2 grid h-full gap-2",children:[(0,a.jsx)("div",{className:"my-2 border-b p-2 text-center text-xs font-bold",children:"Product Linked to Poster"}),(0,a.jsx)(si.Z,{row:g}),(0,a.jsx)(ii.Z,{row:g}),(0,a.jsx)("div",{children:(0,a.jsx)(wi.Z,{fullWidth:!0,size:"small",onClick:function(){return m(null)},variant:"outlined",color:"error",children:"Remove Product"})})]}):w?(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,a.jsx)(xi.Z,{}),"Loading..."]}):(0,a.jsx)(ci.Z,{})})})})}),(0,a.jsx)(bi.ZP,{item:!0,xs:5,children:(0,a.jsx)(ui.Z,{name:"file",defaultValue:null!==(x=o.file)&&void 0!==x?x:null,defaultValues:o})}),(0,a.jsx)(bi.ZP,{item:!0,xs:12,sx:{pt:function(e){return"".concat(e.spacing(7)," !important")}},children:(0,a.jsx)(mi.Z,{type:"submit",variant:"contained",loading:p,sx:{mr:2},children:"Save Changes"})})]})})})};var ki=function(e){var t=(0,ti.k)(),n=t.isOpen,r=t.setIsOpen,i=t.o
1penModal,s=t.closeModal,o="Add New Catalog Poster",l=(0,Ue.Z)((0,Ur.ZO7)(),2),c=l[0],d=l[1],u=d.loading,p=(d.client,(0,h._M)().refetch),g=(0,f.useCallback)(function(){var e=(0,qe.Z)((function(e){var t,n,r;return(0,Xe.__generator)(this,(function(i){switch(i.label){case 0:return e.file?(n={createCatalogPosterDto:{file:e.file,productId:e.productId,title:e.title}},[4,c({variables:n})]):((0,Xr._N)("Please upload a Poster Image"),[2]);case 1:return r=i.sent(),(null===(t=r.data)||void 0===t?void 0:t.createCatalogPoster.id)&&((0,Xr.x9)("Catalog Poster added"),s(),p()),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[]);return(0,a.jsx)(ei.Z,{isOpen:n,setIsOpen:r,dialogProps:{maxWidth:"lg",open:n,onClose:function(){return s()}},button:(0,a.jsx)(ri.Z,{title:o,placement:"top",children:(0,a.jsx)("div",{onClick:i,className:"group flex h-40 cursor-pointer items-center justify-center border hover:border-catalog-primary",children:(0,a.jsx)(ni.dt,{className:"group-hover:text-catalog-primary"})})}),title:o,children:(0,a.jsxs)("div",{children:[(0,a.jsx)(Qr.Z,{open:u}),(0,a.jsx)(Pi,{onSubmit:g,mode:"create"})]})})};var Mi=function(e){return e.catalogPosterId,(0,a.jsx)("div",{})};var Oi=function(e){var t=e.catalogPoster,n=(0,ti.k)(),r=n.isOpen,i=n.setIsOpen,s=n.openModal,o=n.closeModal,l="Update Catalog Poster",c=(0,Ue.Z)((0,Ur.U$1)(),2),d=c[0],u=c[1],p=u.loading,g=(u.client,(0,h._M)().refetch),m=(0,f.useCallback)(function(){var e=(0,qe.Z)((function(e){var n,r,i;return(0,Xe.__generator)(this,(function(s){switch(s.label){case 0:return e.file?(r={updateCatalogPoterDto:{file:e.file,productId:e.productId,title:e.title,id:t.id,isActive:e.isActive}},[4,d({variables:r})]):((0,Xr._N)("Please upload a Poster Image"),[2]);case 1:return i=s.sent(),(null===(n=i.data)||void 0===n?void 0:n.updateCatalogPoster.id)&&((0,Xr.x9)("Catalog Poster Updated"),o(),g()),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[]),v=(0,f.useMemo)((function(){var e,n,r;return{file:{content:(null===(e=t.file)||void 0===e?void 0:e.content)||"",type:(null===(n=t.file)||void 0===n?void 0:n.type)||Ur.Tv5.Image,thumbnail:(null===(r=t.file)||void 0===r?void 0:r.thumbnail)||""},productId:t.productId||"",title:t.title||"",isActive:t.isActive||!1}}),[t]);return(0,a.jsx)(ei.Z,{isOpen:r,setIsOpen:i,dialogProps:{maxWidth:"lg",open:r,onClose:function(){return o()}},button:(0,a.jsx)("div",{onClick:s,className:"absolute right-0 top-0 z-10 ",children:(0,a.jsx)("div",{className:"flex h-10 w-10 cursor-pointer items-center justify-center bg-black bg-opacity-50 text-white backdrop-blur-sm",children:(0,a.jsx)(ri.Z,{title:l,placement:"top",children:(0,a.jsx)("div",{children:(0,a.jsx)(ni.dY,{})})})})}),title:l,children:(0,a.jsxs)("div",{children:[(0,a.jsx)(Qr.Z,{open:p}),(0,a.jsx)(Pi,{onSubmit:m,defaultValues:v,mode:"update"})]})})};var Ni=function(e){return!0===e.isActive?null:(0,a.jsx)("div",{className:"absolute left-0 top-0 z-10",children:(0,a.jsx)("div",{className:"bg-red-500 p-2 text-base font-bold text-white",children:"Inactive"})})};var ji=function(e){var t=e.catalogPosters,n=(0,f.useState)(t),r=n[0],i=n[1];(0,f.useEffect)((function(){(0,Kr.isEqual)(t,r)||i(t)}),[t]);var s=(0,Ue.Z)((0,Ur.EAE)(),2),o=s[0],l=s[1],c=(l.loading,l.client,(0,h._M)().refetch),d=(0,f.useCallback)(function(){var e=(0,qe.Z)((function(e){var t,n,r;return(0,Xe.__generator)(this,(function(i){switch(i.label){case 0:return n=e.map((function(e){return e.id})),[4,o({variables:{catalogPosterIds:n}})];case 1:return r=i.sent(),(null===(t=r.data)||void 0===t?void 0:t.updateCatalogPosterIndices.length)?(0,Xr.x9)("Catalog Poster Sequence Updated"):(0,Xr._N)("Error updating Catalog Poster Sequence"),c(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[o]);return(0,Jr.Z)((function(){!(0,Kr.isEqual)(r,t)&&r.length>0&&d(r)}),2e3,[r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(qr,{items:r,onChange:function(e){return i(e)},renderItem:function(e){return(0,a.jsx)(qr.Item,{id:e.id,children:(0,a.jsx)(Di,{catalogPoster:e},e.id)})}}
1),(0,a.jsx)("div",{className:"grid w-full grid-cols-4 gap-5",children:(0,a.jsx)(ki,{})})]})},Di=function(e){var t=e.catalogPoster;return(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsx)(Ni,{isActive:t.isActive}),(0,a.jsx)(Mi,{catalogPosterId:t.id}),(0,a.jsx)(Oi,{catalogPoster:t}),(0,a.jsx)(w,{catalogPoster:t}),(0,a.jsx)("div",{className:"absolute left-0 top-0 ",children:(0,a.jsx)("div",{className:"flex h-10 w-10 items-center justify-center bg-black bg-opacity-30 text-white backdrop-blur-sm",children:(0,a.jsx)(qr.DragHandle,{})})})]})},Ii=n(81719),Li=n(16056),Ri=n(22841),Ai=(0,Ii.ZP)(Li.Z)((function(e){e.theme;return{padding:8,"& .MuiSwitch-track":{borderRadius:11,"&:before, &:after":{content:'""',position:"absolute",top:"50%",transform:"translateY(-50%)",width:16,height:16},"&:before":{backgroundImage:"v1",left:12},"&:after":{backgroundImage:"v2",right:12}},"& .MuiSwitch-thumb":{boxShadow:"none",width:16,height:16,margin:2}}}));var $i=function(e){var t=e.label,n=e.checked,r=e.setChecked;return(0,a.jsx)("div",{children:(0,a.jsx)(Ri.Z,{checked:n,control:(0,a.jsx)(Ai,{onChange:function(e){r(e.target.checked)},sx:{m:1}}),label:t})})};var _i=function(e){var t=e.filters,n=e.handleFilter,r=!!t.isActive;return(0,a.jsx)("div",{children:(0,a.jsx)($i,{checked:r,setChecked:function(e){n("isActive",e)},label:r?"Active":"Inactive"})})};var zi=function(e){var t=e.mode,n=(0,h._M)(),g=n.filter,m=n.setFilter,v=(n.totalRows,n.catalogPosters),b=n.loading,y=n.queryResult,w=(0,d.a)().catalogUcId,x=(0,u._Y)(),C=(0,c.w)({companyName:x}),S=(0,f.useMemo)((function(){var e;return{filter:{companyId:null!==(e=null===C||void 0===C?void 0:C.id)&&void 0!==e?e:""},page:0,perPage:4,userCompanyId:w}}),[w,null===C||void 0===C?void 0:C.id]),E=(0,f.useCallback)((function(e,t){m((0,s.Z)((0,i.Z)({},g),(0,r.Z)({},e,t)))}),[]);return"manage"===t?(0,a.jsxs)("div",{children:[(0,a.jsx)(l.Z,{title:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(p.Z,{variant:"h5",children:"Catalog Posters"}),(0,a.jsx)("div",{children:(0,a.jsx)(_i,{filters:g,handleFilter:E})})]}),subtitle:(0,a.jsx)(p.Z,{variant:"body2",children:"Find all posters displayed on Catalog Page"})}),(0,a.jsx)("div",{className:"my-5 w-full border-b border-slate-500"}),(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(ji,{catalogPosters:v})}),(0,a.jsx)("div",{className:"my-5 w-full border-b border-slate-500"})]}):(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(o.CF,{companyDetails:C,companyId:null===C||void 0===C?void 0:C.id,overrideVariables:S,skipQuery:v.length>0||b||!y.called,children:(0,a.jsx)(Ye,{catalogPosters:v})})})}},33201:function(e,t,n){"use strict";var r=n(85893),i=n(57412);t.Z=function(e){var t=e.skeletonAnimation,n=void 0===t?"wave":t;return(0,r.jsxs)("div",{children:[(0,r.jsx)(i.Z,{animation:n,variant:"rectangular",height:"14rem"}),(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem",maxWidth:"5rem"}}),(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem"}}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-3",children:[(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem"}}),(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem"}}),(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem"}}),(0,r.jsx)(i.Z,{animation:n,variant:"text",sx:{fontSize:"1rem"}})]})]})}},37642:function(e,t,n){"use strict";var r=n(85893),i=n(41664),s=n.n(i);t.Z=function(e){var t=e.header,n=e.href,i=e.placeholderLink,a=void 0!==i&&i;return(0,r.jsxs)("div",{className:"mb-3 flex items-end justify-between border-b-2 border-black",children:[(0,r.jsx)("div",{className:"border-b-[12px] border-black text-3xl font-bold",children:t}),a?(0,r.jsx)("div",{className:"cursor-pointer text-catalog-primary hover:underline",children:"MORE..."}):(0,r.jsx)(s(),{href:n,children:(0,r.jsx)("a",{children:(0,r.jsx)("div",{className:"cursor-pointer text-catalog-primary hover:underline",children:"MORE..."})})})]})}},73978:function(e,t,n){"use strict";n.d(t,{o:function(){return a},s:function(){return s}});var r=n(85893),i=n(70754),s=function(e){var t=e.children;return(0,r.jsx)("div",{className:"fixed inset-0 m-auto flex h-3/4 items-center justify-center rounded-sm md:w-1/2",children:t})},a=function(e){var t=e.color;return(0,r.jsx)(s,{children:(0,r.jsx)(i.Z,{sx:function(e){return{color:t||e.palette["catalog-primary"].main}}})})}},34548:function(e,t,n){"use strict";var r=n(828),i=n(85893),s=n(1757),a=n(32958),o=n(62683),l=n(83674),
1c=n(63121),d=n(4451),u=n(78142),p=n(81719),f=n(13642),h=n(41664),g=n.n(h),m=n(11163),v=n.n(m),b=n(67294),y=((0,p.ZP)("div")((function(e){e.theme;return{position:"fixed",width:"50vw",height:"200px",top:"45%",marginLeft:"5vw",marginRight:"5vw",left:"0",right:"0",marginTop:"-100px"}})),(0,p.ZP)("div")((function(e){e.theme;var t,n,r=e.isSmallScreen,i=r?84:60,s=i/2;return e.isSidebarVisible&&!r?(t="calc(".concat(i,"vw)"),n="calc(-".concat(s,"vw + 150px)")):(t="".concat(i,"vw"),n="-".concat(s,"vw")),{position:"fixed",width:t,height:"400px",top:"45%",left:"50%",marginTop:"-100px",marginLeft:n}})));t.Z=function(e){var t=(0,d.a)(),n=t.user,r=t.loading,a=Boolean(n),o=(0,s.Z)().isSmallScreen,c=(0,l.q)().isSidebarVisible;return a||r?null:(0,i.jsx)(y,{isSmallScreen:o,isSidebarVisible:c,className:"z-10",children:(0,i.jsx)("div",{className:"h-full w-full rounded bg-black bg-opacity-60 drop-shadow-lg backdrop-blur-sm",children:(0,i.jsx)(w,{isSmallScreen:o})})})};var w=function(e){e.isSmallScreen;var t,n,s,l,d=(0,r.Z)((0,o.s)({action:f.Ot.setIsLoginOpen,selector:f.xb}),2),p=(d[0],d[1]),h=(0,r.Z)((0,o.s)({action:f.Ot.setIsRegisterOpen,selector:f.id}),2),m=(h[0],h[1]),y=(0,u.Yp)({router:v(),key:"companyName"}),w=(0,c.w)({companyName:y}),x=null!==(l=null!==(s=null===w||void 0===w||null===(t=w.catalogLogo)||void 0===t?void 0:t.content)&&void 0!==s?s:null===w||void 0===w||null===(n=w.logo)||void 0===n?void 0:n.content)&&void 0!==l?l:"/assets/images/noImage.png",C=(0,b.useMemo)((function(){return(0,a.Gg)({companyName:y})}),[y]);return(0,i.jsxs)("div",{className:"flex h-full flex-col items-center justify-center p-5 text-white",children:[(0,i.jsx)("div",{className:"my-5",children:(0,i.jsx)(g(),{href:C,children:(0,i.jsx)("a",{className:"mx-2 flex cursor-pointer \n                    select-none items-center justify-center gap-2 text-white",children:(0,i.jsx)("img",{src:x,alt:"company logo",className:"h-20 w-20 object-contain"})})})}),(0,i.jsx)("div",{className:"mb-3 text-center text-lg font-bold text-catalog-light",children:"Thank you for your interest in our products."}),(0,i.jsx)("div",{className:"text-center text-lg font-bold text-catalog-light",children:"Please Login / Register to view wholesale price and B2B Catalog"}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-5 font-bold",children:[(0,i.jsx)("button",{className:"mt-4 rounded-lg bg-catalog-primary px-4 py-2",onClick:function(){p(!0)},children:"Login"}),(0,i.jsx)("button",{className:"mt-4 rounded-lg bg-catalog-primary px-4 py-2",onClick:function(){m(!0)},children:"Register"})]})]})}},61977:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(67294),i=function(e){var t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var n=t.current;if(n&&e){var r=function(e){if(0!==e.deltaY&&!(n.scrollWidth<=n.clientWidth)){var t=n.scrollLeft+n.clientWidth>=n.scrollWidth,r=0===n.scrollLeft;t&&e.deltaY>10||r&&e.deltaY<-10||(e.preventDefault(),n.scrollLeft+=e.deltaY)}};return n.addEventListener("wheel",r,{passive:!1}),function(){return n.removeEventListener("wheel",r)}}return function(){}}),[e]),t}},10062:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return L},default:function(){return R}});var r=n(85893),i=n(26042),s=n(69396),a=n(52714),o=n(96814),l=n(35886),c=n(63121),d=n(96277),u=n(4451),p=n(78142),f=n(45135),h=n(38391),g=n(65820),m=n(15734),v=n(67294),b=n(86035),y=n(29815),w=n(17240),x=n(61977),C=n(96486),S=n(41664),E=n.n(S),T=n(32357),P=n(33201),k=n(37642);var M=function(e){var t=e.header,n=e.overrideFilter,a=(0,b.uj)(),o=(a.catalogProductCount,a.catalogProductList),l=(a.page,a.pageSize,a.setPage,a.loading),c=a.queryResult,d=(a.prefetchNextPageData,l||!c.called),u=!d&&0===o.length,f=(0,p._Y)(),h=(0,v.useMemo)((function(){var e={pathname:"/catalog/[companyName]/products",query:{companyName:f}},t=(0,C.omit)(n,"companyId");return(0,C.isEmpty)(t)?e:(0,s.Z)((0,i.Z)({},e),{query:(0,s.Z)((0,i.Z)({},e.query),{filters:JSON.stringify(t)})})}),[f,n]),g=(0,x.m)(!0);return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(k.Z,{href:h,header:t}),(0,r.jsx)("div",{ref:g,className:"max-w-[min(90vw,1080px)] overflow-auto",children:(0,r.jsxs)("div",{className:"grid grid-cols-11 gap-4 px-1 py-4 lg:gap-5 ".concat(u?"w-[90vw] lg:w-[75vw]":"w-[2600px]"),children:[o.map((function(e){return(0,r.jsx)(v.Fragment,{children:(0,r.jsx)(w.Il,{children:(0,r.jsx)(T.Z,{catalogProduct:e})})},e.id)})),!u&&(0,y.Z)(Array(1)).map((function(e,t){return(0,r.jsx)(E(),{href:h,children:(0,r.jsx)("a",{className:"group relative flex cursor-pointer items-center justify-center rounded border border-gray-300 hover:border-catalog-primary/50",children:(0,r.jsx)("div",{className:"text-gray-300 transition group-hover:text-catalog-primary",children:"More Products..."})})},t)})),u&&(0,r.jsxs)("div",{className:"col-span-11 flex h-[320px] flex-col items-center justify-center",children:[(0,r.jsx)("div",{className:"text-2xl font-bold",children:"No product found"}),(0,r.jsx)("div",{className:"text-gray-500",children:"Please check back later"})]}),d&&(0,y.Z)(Array(4)).map((function(e,t){return(0,r.jsx)(P.Z,{},t)}))]})})]})};var O=function(e){var t,n=(0,p._Y)(),y=(0,c.w)({companyName:n}),w=null!==(t=null===y||void 0===y?void 0:y.id)&&void 0!==t?t:"",x=(0,d.Ax_)({fetchPolicy:"cache-first",variables:{companyId:w},skip:!w}
1).data,C=(0,u.a)().catalogUcId,S=(0,v.useMemo)((function(){var e={filter:{companyId:w},page:0,perPage:10,userCompanyId:C},t=null===x||void 0===x?void 0:x.getCompanyCatalogDetails.grouping,n=[{label:"Up to Date",variables:(0,i.Z)({},e)}];if(!t||!t.length)return n;var r=null===t||void 0===t?void 0:t.map((function(t){var n=t.label,r=t.refId,a=t.refType,o=t.value,l={};return a===d.mBb.Brand?l={brandId:r}:a===d.mBb.Attribute&&(l={attributesSearch:[{attributeId:r,options:[o]}]}),{label:n,variables:(0,s.Z)((0,i.Z)({},e),{filter:(0,s.Z)((0,i.Z)({},l),{companyId:w})})}}));return n.concat(r)}),[C,w,x]),E=(0,v.useMemo)((function(){return{isActive:!0}}),[]);return(0,r.jsxs)("div",{"data-testid":"catalog-product-overview",className:"mx-auto grid max-w-[min(90vw,1080px)] gap-5",children:[(0,r.jsx)(a.vZ,{defaultFilters:E,companyId:null===y||void 0===y?void 0:y.id,skipQuery:!(null===y||void 0===y?void 0:y.id),children:(0,r.jsx)(o.Z,{mode:"view"})}),(0,r.jsxs)(f.Z,{severity:"warning",variant:"filled",className:"shadow-lg",sx:{alignItems:"center",borderRadius:2,border:"2px solid",borderColor:"warning.dark","& .MuiAlert-icon":{fontSize:"2rem"},"& .MuiAlert-message":{width:"100%"}},children:[(0,r.jsx)(h.Z,{sx:{fontWeight:800,fontSize:"1.05rem",mb:.5},children:"We will be obsoleting this page by Oct 1st, 2026"}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2 font-medium",children:[(0,r.jsx)("span",{children:"Please contact our CS via WhatsApp for further arrangement:"}),(0,r.jsxs)("a",{href:"https://wa.me/85292642614",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-lg bg-[#6FAA41] px-3 py-1.5 font-semibold text-white shadow transition hover:shadow-lg",children:[(0,r.jsx)(l.ud,{className:"text-lg"}),"+852 9264 2614"]})]})]}),S.map((function(e,t){return(0,r.jsx)("div",{children:(0,r.jsx)(g.M,{mode:"wait",children:(0,r.jsx)(m.E.div,{initial:{y:0,opacity:0},exit:{y:0,opacity:0},animate:{y:0,opacity:1},transition:{duration:1},children:(0,r.jsx)(b.CF,{companyDetails:y,companyId:null===y||void 0===y?void 0:y.id,overrideVariables:e.variables,children:(0,r.jsx)(M,{header:e.label,overrideFilter:e.variables.filter})})})})},e.label)}))]})},N=n(73978),j=n(34548),D=n(85769),I=function(){var e=(0,p._Y)(),t=(0,c.L)({companyName:e}),n=t.companyDetails;return t.loading?(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(N.o,{})}):e&&!n?(0,r.jsxs)("div",{className:"relative flex h-[60vh] flex-col items-center justify-center gap-3 px-6 text-center",children:[(0,r.jsx)("div",{className:"text-xl font-semibold",children:"We couldn\u2019t load this catalog"}),(0,r.jsx)("div",{className:"text-gray-500",children:"Please refresh to try again."}),(0,r.jsx)("button",{type:"button",onClick:function(){return window.location.reload()},className:"mt-2 rounded border border-gray-300 px-4 py-2 hover:border-catalog-primary/50",children:"Refresh"})]}):(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(j.Z,{}),(0,r.jsx)(O,{})]})};I.getLayout=function(e){return(0,r.jsx)(D.Z,{children:e})},I.guestGuard=!1,I.authGuard=!1,I.setConfig=function(){return{mode:"light"}};var L=!0,R=I},66910:function(e){e.exports={sliderWrapper:"CatalogPosterSlider_sliderWrapper__ceBRI"}},572:function(e){e.exports={SortableList:"SortableList_SortableList__29HqQ"}},58969:function(e){e.exports={SortableItem:"SortableItem_SortableItem__R7rni",DragHandle:"SortableItem_DragHandle__7n1Hx"}},68770:function(){},30933:function(){},35386:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);function i(e,t,n){void 0===t&&(t=0),void 0===n&&(n=[]);var i=function(e,t){void 0===t&&(t=0);var n=(0,r.useRef)(!1),i=(0,r.useRef)(),s=(0,r.useRef)(e),a=(0,r.useCallback)((function(){return n.current}),[]),o=(0,r.useCallback)((function(){n.current=!1,i.current&&clearTimeout(i.current),i.current=setTimeout((function(){n.current=!0,s.current()}),t)}),[t]),l=(0,r.useCallback)((function(){n.current=null,i.current&&clearTimeout(i.current)}),[]);return(0,r.useEffect)((function(){s.current=e}),[e]),(0,r.useEffect)((function(){return o(),l}),[t]),[a,l,o]}(e,t),s=i[0],a=i[1],o=i[2];return(0,r.useEffect)(o,n),[s,a]}},86085:function(e,t,n){"use strict";n.d(t,{E:function(){return se}});var r=n(67294);function i(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,i),r}var s=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(s||{}),a=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(a||{});function o({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:s,visible:a=!0,name:o}){let d=c(t,e);if(a)return l(d,n,r,o);let u=null!=s?s:0;if(2&u){let{static:e=!1,...t}=d;if(e)return l(t,n,r,o)}if(1&u){let{unmount:e=!0,...t}=d;return i(e?0:1,{0:()=>null,1:()=>l({...t,hidden:!0,style:{display:"none"}},n,r,o)})}return l(d,n,r,o)}function l(e,t={},n,i){let{as:s=n,children:a,refName:o="ref",...l}=p(e,["unmount","static"]),d=void 0!==e.ref?{[o]:e.ref}:{},f="function"==typeof a?a(t):a;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let h={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(h["data-headlessui-state"]=n.join(" "))}if(s===r.Fragment&&Object.keys(u(l)).length>0){if(!(0,r.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));return(0,r.cloneElement)(f,Object.assign({},c(f.props,u(p(l,["ref"]))),h,d,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(f.ref,d.ref)))}return(0,r.createElement)(s,Object.assign({},p(l,["ref"]),s!==r.Fragment&&d,s!==r.Fragment&&h),f)}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function d(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function u(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function p(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}const f="undefined"==typeof window||"undefined"==typeof document;let h=f?r.useEffect:r.useLayoutEffect,g={serverHandoffComplete:!1};var m;let v=0;function b(){return++v}let y=null!=(m=r.useId)?m:function(){let e=function(){let[e,t]=(0,r.useState)(g.serverHandoffComplete);return(0,r.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,r.useEffect)((()=>{!1===g.serverHandoffComplete&&(g.serverHandoffComplete=!0)}),[]),e}(),[t,n]=r.useState(e?b:null);return h((()=>{null===t&&n(b())}),[t]),null!=t?""+t:void 0};var w=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(w||{});let x=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var C,S,E=((S=E||{})[S.First=1]="First",S[S.Previous=2]="Previous",S[S.Next=4]="Next",S[S.Last=8]="Last",S[S.WrapAround=16]="WrapAround",S[S.NoScroll=32]="NoScroll",S),T=((C=T||{})[C.Error=0]="Error",C[C.Overflow=1]="Overflow",C[C.Success=2]="Success",C[C.Underflow=3]="Underflow",C),P=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(P||{});function k(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(x))}var M=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M||{});let O=["textarea","input"].join(",");function N(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function j(e,t,n=!0,r=null){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?N(e):e:k(e);r=null!=r?r:i.activeElement;let a,o=(()=>
vendor: 5,911 bytes, line 1
1{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},d=0,u=s.length;do{if(d>=u||d+u<=0)return 0;let e=l+d;if(16&t)e=(e+u)%u;else{if(e<0)return 3;if(e>=u)return 1}a=s[e],null==a||a.focus(c),d+=o}while(a!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,O))&&n}(a)&&a.select(),a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"),2}let D=function(e){let t=function(e){let t=(0,r.useRef)(e);return h((()=>{t.current=e}),[e]),t}(e);return r.useCallback(((...e)=>t.current(...e)),[t])},I=Symbol();function L(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=D((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[I])))?void 0:n}let R=(0,r.createContext)(null);function A(){let e=(0,r.useContext)(R);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,A),e}return e}function $(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=D((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),i=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(R.Provider,{value:i},e.children)}),[t])]}let _=d((function(e,t){let{passive:n=!1,...r}=e,i=A(),s=`headlessui-label-${y()}`,a=L(t);h((()=>i.register(s)),[s,i.register]);let l={ref:a,...i.props,id:s};return n&&("onClick"in l&&delete l.onClick,"onClick"in r&&delete r.onClick),o({ourProps:l,theirProps:r,slot:i.slot||{},defaultTag:"label",name:i.name||"Label"})})),z=(0,r.createContext)(null);function F(){let e=(0,r.useContext)(z);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,F),e}return e}function B(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=D((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),i=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(z.Provider,{value:i},e.children)}),[t])]}let G=d((function(e,t){let n=F(),r=`headlessui-description-${y()}`,i=L(t);h((()=>n.register(r)),[r,n.register]);let s=e;return o({ourProps:{ref:i,...n.props,id:r},theirProps:s,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}));function Z(e){return f?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var H=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(H||{});let W=d((function(e,t){let{features:n=1,...r}=e;return o({ourProps:{ref:t,"aria-hidden":2===(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&n)&&2!==(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function V(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))q(n,Y(t,r),i);return n}function Y(e,t){return e?e+"["+t+"]":t}function q(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())q(e,Y(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):V(n,t,e)}function U(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var X,K=((X=K||{})[X.RegisterOption=0]="RegisterOption",X[X.UnregisterOption=1]="UnregisterOption",X);let J={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:N(n,(e=>e.element.current))}},1(e,t){let n=e.options.slice(),r=e.options.findIndex((e=>e.id===t.id));return-1===r?e:(n.splice(r,1),{...e,options:n})}},Q=(0,r.createContext)(null);function ee(e){let t=(0,r.useContext)(Q);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ee),t}return t}function te(e,t){return i(t.type,J,e,t)}Q.displayName="RadioGroupContext";let ne=d((function(e,t){let{value:n,defaultValue:i,name:s,onChange:a,by:l=((e,t)=>e===t),disabled:c=!1,...d}=e,p=D("string"==typeof l?(e,t)=>{let n=l;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:l),[f,g]=(0,r.useReducer)(te,{options:[]}),m=f.options,[v,b]=$(),[x,C]=B(),S=`headlessui-radiogroup-${y()}`,P=(0,r.useRef)(null),k=L(P,t),[M,O]=function(e,t,n){let[i,s]=(0,r.useState)(n),a=void 0!==e;return[a?e:i,D((e=>(a||s(e),null==t?void 0:t(e))))]}(n,a,i),N=(0,r.useMemo)((()=>m.find((e=>!e.propsRef.current.disabled))),[m]),I=(0,r.useMemo)((()=>m.some((e=>p(e.propsRef.current.value,M)))),[m,M]),R=D((e=>{var t;if(c||p(e,M))return!1;let n=null==(t=m.find((t=>p(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==O||O(e),!0)}));!function({container:e,accept:t,walk:n,enabled:i=!0}){let s=(0,r.useRef)(t),a=(0,r.useRef)(n);(0,r.useEffect)((()=>{s.current=t,a.current=n}),[t,n]),h((()=>
1{if(!e||!i)return;let t=Z(e);if(!t)return;let n=s.current,r=a.current,o=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1);for(;l.nextNode();)r(l.currentNode)}),[e,i,s,a])}({container:P.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let A=D((e=>{let t=P.current;if(!t)return;let n=Z(t),r=m.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case w.Enter:!function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let r of n.elements)if("INPUT"===r.tagName&&"submit"===r.type||"BUTTON"===r.tagName&&"submit"===r.type||"INPUT"===r.nodeName&&"image"===r.type)return void r.click()}(e.currentTarget);break;case w.ArrowLeft:case w.ArrowUp:if(e.preventDefault(),e.stopPropagation(),j(r,E.Previous|E.WrapAround)===T.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&R(e.propsRef.current.value)}break;case w.ArrowRight:case w.ArrowDown:if(e.preventDefault(),e.stopPropagation(),j(r,E.Next|E.WrapAround)===T.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&R(e.propsRef.current.value)}break;case w.Space:{e.preventDefault(),e.stopPropagation();let t=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));t&&R(t.propsRef.current.value)}}})),_=D((e=>(g({type:0,...e}),()=>g({type:1,id:e.id})))),z=(0,r.useMemo)((()=>({registerOption:_,firstOption:N,containsCheckedOption:I,change:R,disabled:c,value:M,compare:p})),[_,N,I,R,c,M,p]),F={ref:k,id:S,role:"radiogroup","aria-labelledby":v,"aria-describedby":x,onKeyDown:A},G=(0,r.useMemo)((()=>({value:M})),[M]);return r.createElement(C,{name:"RadioGroup.Description"},r.createElement(b,{name:"RadioGroup.Label"},r.createElement(Q.Provider,{value:z},null!=s&&null!=M&&V({[s]:M}).map((([e,t])=>r.createElement(W,{features:H.Hidden,...u({key:e,as:"input",type:"radio",checked:null!=t,hidden:!0,readOnly:!0,name:e,value:t})}))),o({ourProps:F,theirProps:d,slot:G,defaultTag:"div",name:"RadioGroup"}))))}));var re=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(re||{});let ie=d((function(e,t){let n=(0,r.useRef)(null),i=L(n,t),s=`headlessui-radiogroup-option-${y()}`,[a,l]=$(),[c,d]=B(),{addFlag:u,removeFlag:p,hasFlag:f}=function(e=0){let[t,n]=(0,r.useState)(e),i=(0,r.useCallback)((e=>n((t=>t|e))),[t]),s=(0,r.useCallback)((e=>Boolean(t&e)),[t]),a=(0,r.useCallback)((e=>n((t=>t&~e))),[n]),o=(0,r.useCallback)((e=>n((t=>t^e))),[n]);return{addFlag:i,hasFlag:s,removeFlag:a,toggleFlag:o}}(1),{value:g,disabled:m=!1,...v}=e,b=(0,r.useRef)({value:g,disabled:m});h((()=>{b.current.value=g}),[g,b]),h((()=>{b.current.disabled=m}),[m,b]);let{registerOption:w,disabled:x,change:C,firstOption:S,containsCheckedOption:E,value:T,compare:P}=ee("RadioGroup.Option");h((()=>w({id:s,element:n,propsRef:b})),[s,w,n,e]);let k=D((e=>{var t;if(U(e.currentTarget))return e.preventDefault();!C(g)||(u(2),null==(t=n.current)||t.focus())})),M=D((e=>{if(U(e.currentTarget))return e.preventDefault();u(2)})),O=D((()=>p(2))),N=(null==S?void 0:S.id)===s,j=x||m,I=P(T,g),R={ref:i,id:s,role:"radio","aria-checked":I?"true":"false","aria-labelledby":a,"aria-describedby":c,"aria-disabled":!!j||void 0,tabIndex:j?-1:I||!E&&N?0:-1,onClick:j?void 0:k,onFocus:j?void 0:M,onBlur:j?void 0:O},A=(0,r.useMemo)((()=>({checked:I,disabled:j,active:f(2)})),[I,j,f]);return r.createElement(d,{name:"RadioGroup.Description"},r.createElement(l,{name:"RadioGroup.Label"},o({ourProps:R,theirProps:v,slot:A,defaultTag:"div",name:"RadioGroup.Option"})))})),se=Object.assign(ne,{Option:ie,Label:_,Description:G})},87146:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(82222);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}}},function(e){e.O(0,[2876,630,4980,4577,7536,1524,4231,5428,1718,5836,5734,3747,1717,2268,9591,2512,1090,7247,5
1780,1280,2020,8507,3021,1115,7384,4738,5686,9495,6732,5646,9714,2068,6778,1039,4503,6446,2180,7297,309,7545,9329,9721,1197,7302,4015,5992,5769,3105,9774,2888,179],(function(){return t=41002,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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