pb-sxp-ui 1.20.12 → 1.20.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var wt=require("lodash"),qo=require("uuid"),Yo=require("pako"),n=require("react"),Hn=require("qs"),Go=require("eventemitter3"),Fe=require("@emotion/css"),zn=require("react-dom");function Zo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Un=Zo(zn);function rt(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function ht(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(g){s(g)}}function r(d){try{u(o.throw(d))}catch(g){s(g)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ko=/:\w+/g;var Xn=(t,e)=>ht(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:g,body:A}=e[a];let p=c;r&&Object.entries(r).forEach(([m,f])=>{p=p.replace(Ko,S=>S===m?f:S)}),d&&(p+=d),o[l]=u;try{const m=yield fetch(p,{method:s,headers:Object.assign({"Content-Type":"application/json"},g),body:JSON.stringify(A)}).then(f=>f.json());i[l]=m}catch(m){console.error("DataSource request error: ",m),i[l]={}}}return{$store:i,idMapName:o}});const qn="SXP_TOKEN_INFO",Jo=(t,e)=>ht(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(qn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(qn,JSON.stringify(c))}}return c});function zi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const Qo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},$o=()=>{const t=qo.v4();return t?.replaceAll?t.replaceAll("-",""):Qo(32)},De=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=A=>{const p=A.search(s),m=A.search(c);return p!==-1&&m!==-1&&p<m&&(i+=`<span style="${r}">${A.substring(p,m)}</span>`,l=A.substring(m,A?.length)),p!==-1&&m!==-1&&p>m&&(i+=`<span style="${u}">${A.substring(m,p)}</span>`,l=A.substring(p,A?.length)),p===-1?(i+=`<span style="${u}">${A.substring(m,A?.length)}</span>`,l="",!1):m===-1?(i+=`<span style="${r}">${A.substring(p,A?.length)}</span>`,l="",!1):!0};let g=!0;for(;g;)g=d(l);return i};function an(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function sn(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function hi(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function el(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Xt(t){var e,i;const o=location.search.slice(1),a={};(e=hi(o.replace(/\+/g,"%2B")))===null||e===void 0||e.map(l=>{const s=l.split("=")[0],c=l.split("=")[1];a[s]=c});for(const l in a)a[l]=a[l].replace(/%2B/g,"+");return(i=a[t])!==null&&i!==void 0?i:""}function Yn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Yo.inflate(o,{to:"string"});return JSON.parse(a)}let rn=null;const tl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class il{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,rn)return rn;rn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?tl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Rt=null;const nl={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Rt||(Rt=new il),o&&Rt.setApiUrl(o),Rt.setAppId(t),Rt.setTenantId(e),Rt.setEnv(i)},getDetail:t=>{if(!Rt)return;const e=Rt.getTenantId(),i=Rt.getAppId(),o=Rt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>ht(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Yn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield Xn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>ht(void 0,void 0,void 0,function*(){if(!Rt)return;const e=Rt.getTenantId(),i=Rt.getAppId(),o=Rt.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>ht(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Yn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ht(void 0,void 0,void 0,function*(){if(!Rt)return;const e=yield Jo(Rt,t),i=zi(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");wt.isEmpty(o)&&(o=zi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ui(){return n.useContext(so)}function ol(){return n.useContext(ao)}const dn="feRealSessionIdKey",Gn=()=>{const t=$o();return`${Date.now()}${t}`},ll=()=>{let t=al();return t||(t=Gn(),window.localStorage.setItem(dn,t)),t},cn=()=>{const t=Gn();window.localStorage.setItem(dn,t)},al=()=>window.localStorage.getItem(dn),Zn="SXP_FAKE_USER_ID",Kn="FAKE_USER_STATE",Jn="AGREE_POLICY",Qn="SLIDE_SKIP_STATE",$n="CCONTSENT_STATE",eo="USER_CONSENT_RESULT",sl=()=>{let t=window.localStorage.getItem(Zn);return wt.isEmpty(t)&&(t=zi(36,62),window.localStorage.setItem(Zn,t)),t},rl=()=>{const t=window.localStorage.getItem(Kn);return wt.isEmpty(t)&&window.localStorage.setItem(Kn,"true"),wt.isEmpty(t)},dl=()=>{const t=window.localStorage.getItem(Qn);return wt.isEmpty(t)},cl=()=>{window.localStorage.setItem(Qn,"true")},ul=()=>{const t=window.localStorage.getItem($n);return wt.isEmpty(t)&&window.localStorage.setItem($n,"true"),wt.isEmpty(t)},to=()=>window.localStorage.getItem(eo)==="true",io=()=>{window.localStorage.setItem(eo,"true")};function Nt(t,e){const{appDomain:i}=Ue();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new Go;var vt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(vt||(vt={}));const vl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Ue(),r=n.useMemo(()=>{var g;const A=location.search.slice(1),p={};(g=hi(A.replace(/\+/g,"%2B")))===null||g===void 0||g.map(m=>{const f=m.split("=")[0],S=m.split("=")[1];p[f]=S});for(const m in p)p[m]=p[m].replace(/%2B/g,"+");return p},[]),u=g=>{var A;return(A=r[g])!==null&&A!==void 0?A:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Jn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var pl=n.memo(vl);const no=n.createContext({rtcList:[],tagList:[]});var un;(function(t){t[t.BFF=5]="BFF"})(un||(un={}));const Ui="FOR U",ml=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:g=!1,enabledMetaConversionApi:A=!1,consentHeight:p,consentWidth:m,isOpenConsent:f=!1,isEditor:S=!1,utmParameter:v,channelQueryList:y,data:b,dataList:w,isDiyH5:E,onUpdateSchema:k,onUpdateChannel:M})=>{var D,x,T,V,C;const[j,O]=n.useState([]),[h,W]=n.useState([]),[R,B]=n.useState(!0),[I,L]=n.useState({rtc:"",requestId:""}),P=n.useRef(null),q=n.useRef(!1),[z,X]=n.useState(()=>!!window.localStorage.getItem(Jn)),[ee,re]=n.useState(),[Ae,Q]=n.useState(),[le,ye]=n.useState(g),[Be,ce]=n.useState([]),[Me,Ee]=n.useState(0),[We,ze]=n.useState(!1),[$e,tt]=n.useState(null),et=n.useRef(),Oe=n.useRef(),dt=n.useRef(),[bt,Ct]=n.useState(Ui),Re=n.useRef(-1),He=n.useRef(null),[J,K]=n.useState(!1),[Y,ue]=n.useState((x=(D=b?.data)===null||D===void 0?void 0:D.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[pe,ke]=n.useState(),[U,F]=n.useState(!1),[je,qe]=n.useState(),[nt,pt]=n.useState(),[Ze,_e]=n.useState([]),[mt,gt]=n.useState(),[Tt,Jt]=n.useState(),_t=n.useMemo(()=>pe??b,[pe,b]),Pt=n.useRef(!1);n.useEffect(()=>{var H,_;ue((_=(H=b?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||_===void 0?void 0:_.globalConfig)},[b]);const Ot=n.useMemo(()=>{var H,_,te,he;return(((he=(te=(_=(H=Y?.consent)===null||H===void 0?void 0:H[0])===null||_===void 0?void 0:_.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!z&&!S||f)&&U},[z,Y,f,S,U]),ei=n.useCallback(H=>{M?.(H),pt(H)},[]),It=n.useCallback(H=>{var _;const te=H?.recList;return(_=te?.map(be=>{var ge,Te,Ne,Pe,Ve,N;if(!((ge=be?.video)===null||ge===void 0)&&ge.bindProducts&&((Ne=(Te=be?.video)===null||Te===void 0?void 0:Te.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0){const G=(N=(Ve=(Pe=be?.video)===null||Pe===void 0?void 0:Pe.bindProducts)===null||Ve===void 0?void 0:Ve.filter(Z=>!!Z?.bindCta))!==null&&N!==void 0?N:[];return Object.assign(Object.assign({},be),{video:Object.assign(Object.assign({},be?.video),{bindProducts:G})})}return be}))!==null&&_!==void 0?_:[]},[]);n.useEffect(()=>{let H;return Ze.length>0&&(H=setInterval(()=>{const te=new Date,he=15*1e3;_e(be=>be.filter(ge=>te-ge.time<=he))},1e3)),()=>{clearInterval(H)}},[Ze]),n.useEffect(()=>{const H=_=>{et.current=_};return At.on(vt.CHANGE_THEME_TAG,H),()=>{At.off(vt.CHANGE_THEME_TAG,H)}},[]),n.useEffect(()=>{ye(g)},[g]);const Ye=n.useMemo(()=>e?.find(H=>H.type===un.BFF),[e]),xe=n.useMemo(()=>{var H;return((H=Ye?.headers)===null||H===void 0?void 0:H["x-app-id"])+sl()},[Ye]),se=()=>{var H,_;function te(ge){const Te=ge.match(/groups=([^&]+)/);if(!Te||!Te[1])return!1;const Pe=Te[1].split(",");for(const Ve of Pe){const[N,G]=Ve.split(":");if(N==="4")return G==="0"}return!1}function he(ge){var Te;const Pe=`; ${document.cookie}`.split(`; ${ge}=`);return Pe.length===2?(Te=Pe.pop())===null||Te===void 0?void 0:Te.split(";").shift():""}const be=decodeURIComponent((H=he("OptanonConsent"))!==null&&H!==void 0?H:"");return!!(window?.OnetrustActiveGroups&&((_=window?.OnetrustActiveGroups)===null||_===void 0?void 0:_.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(be))},me=n.useCallback((H,_,te=!0)=>{var he;if(!Ye)return;const be=Ye.url;if(_?.query){const Te=Hn.stringify(_.query);H=`${H}?${Te}`}const ge=location.search.slice(1);return(he=hi(ge))===null||he===void 0||he.forEach(Te=>{Te.split("=")[0],Te.split("=")[1]}),window.fetch(`${be}/api/${H}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":xe},Ye.headers),method:_.method,body:_.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},_.body),Ye.headers),{"x-user-id":xe}))))}):JSON.stringify(_.body)},_.type==="beacon"&&{keepalive:!0})).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[Ye,xe]),Ke=n.useCallback(H=>{var _;if(se())return Promise.resolve();const te={eventName:H?.eventName,eventSource:H?.eventSource};return me?.(`v1/data/collect/${(_=Ye?.headers)===null||_===void 0?void 0:_["x-app-id"]}/${H?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[me,Ye]);n.useEffect(()=>{const H=window.Image;window.Image=function(){const _=new H,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(_,"src",{set(he){if(!(se()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const be=new URL(he),ge=Object.fromEntries(be.searchParams.entries());Ke({eventName:ge?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),_}},[Ke]),n.useEffect(()=>{const H=navigator;if(!H.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const _=H.sendBeacon.bind(H);return H.sendBeacon=function(te,he){const be=te instanceof URL?te.href:te.toString();if(se()&&(be.includes("https://tr.snapchat.com/p")||be.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ge=_(te,he);function Te(Ne){return ht(this,void 0,void 0,function*(){return typeof Ne=="string"?JSON.parse(Ne):Ne instanceof Blob?JSON.parse(yield Ne.text()):Ne instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Ne)):null})}return ge&&Promise.resolve().then(()=>ht(this,void 0,void 0,function*(){var Ne,Pe;try{const Ve=yield Te(he);be.includes("https://tr.snapchat.com/p")?(Pe=(Ne=Ve?.req)===null||Ne===void 0?void 0:Ne.forEach)===null||Pe===void 0||Pe.call(Ne,N=>{var G,Z;!((G=N?.t)===null||G===void 0)&&G.ev&&Ke({eventName:(Z=N?.t)===null||Z===void 0?void 0:Z.ev,eventSource:"Snapchat Pixel"})}):be.includes("https://analytics.tiktok.com/api/v2/pixel")&&Ve?.event&&Ke({eventName:Ve.event,eventSource:"TikTok Pixel"})}catch(Ve){console.error("\u76D1\u63A7\u5931\u8D25:",Ve)}})),ge},()=>{H.sendBeacon=_}},[Ke]),n.useEffect(()=>{const H=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){const _=this;if(_.action.includes("facebook.com/tr")){const te=new FormData(_),he={};for(const[be,ge]of te.entries())he[be]=ge;return Ke({eventName:he?.ev,eventSource:"Meta Pixel"}),H.call(_)}return H.call(_)}},[]),n.useEffect(()=>{const H=window.fetch;window.fetch=function(_,te){var he=arguments;return ht(this,void 0,void 0,function*(){var be;let ge;try{ge=typeof _=="string"?_:_ instanceof URL?_.href:_.url}catch(Te){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Te),H.apply(this,he)}try{if(se()&&(ge.includes("https://www.google-analytics.com/g/collect")||ge.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Te=H.apply(this,he);if(ge.includes("https://www.google-analytics.com/g/collect")){const Ne=new URL(ge),Pe=Object.fromEntries(Ne.searchParams.entries()),Ve=(be=he[1])===null||be===void 0?void 0:be.body;if(Pe?.en)Ke({eventName:Pe?.en,eventSource:"Google Analytics"});else if(Ve){const G=function(Z){if(typeof Z!="string")return[];const ie=[],ae=/en=([^&\r\n]*)/g;let $;for(;($=ae.exec(Z))!==null;)ie.push(decodeURIComponent($[1]));return ie}(Ve);G?.forEach(Z=>{Ke({eventName:Z,eventSource:"Google Analytics"})})}}return Te}catch(Te){throw console.error(Te),Te}})}},[]),n.useEffect(()=>{const H=XMLHttpRequest.prototype.open,_=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,H.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(se()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const be=JSON.parse(te);if(be&&Array.isArray(be.data)){const ge=be.data[((he=be.data)===null||he===void 0?void 0:he.length)-1];ge&&ge.e&&Ke({eventName:ge.e,eventSource:"Northbeam Pixel"})}}catch(be){console.error("Failed to parse Northbeam event from XHR",be)}_.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=H,XMLHttpRequest.prototype.send=_}},[Ke]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const jt=n.useCallback((H,_)=>{if(!Ye)return;const te=Ye.url;if(_?.query){const he=Hn.stringify(_.query);H=`${H}?${he}`}return window.fetch(`${te}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},Ye.headers),method:_.method,body:JSON.stringify(_.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Ye]),Zt=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie,ae;if(H=Object.assign(Object.assign({maxSize:(_=H?.maxSize)!==null&&_!==void 0?_:a,defaultSize:(te=H?.defaultSize)!==null&&te!==void 0?te:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Tt&&{chatlabsId:Tt}),E&&{type:"story"}),nt)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(nt)});else if(i){const oe=(ge=(be=(he=hi(i))===null||he===void 0?void 0:he.filter(fe=>{var de,Se;const ne=fe.split("=")[0];return(Se=(de=v?.channels)!==null&&de!==void 0?de:[])===null||Se===void 0?void 0:Se.includes(ne)}))===null||be===void 0?void 0:be.join("&"))!==null&&ge!==void 0?ge:"";oe&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(oe)}))}if(S){let oe=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&y&&y?.length>0&&{channel:y?.[0]}),!H?.channel||q.current)return;q.current=!0;let fe=[],de=null;const Se=ne=>ht(void 0,void 0,void 0,function*(){var Ie,at,ot,ct,lt,it;if(ne.pageNum=oe,de=yield jt?.("recommend/direct_page",{method:"POST",body:ne}),!de?.success)return;B(!1),fe=fe.concat((ct=(ot=(at=(Ie=de?.data)===null||Ie===void 0?void 0:Ie.recList)===null||at===void 0?void 0:at.filter)===null||ot===void 0?void 0:ot.call(at,Ge=>Ge?.product||Ge?.video))!==null&&ct!==void 0?ct:[]),j?.length===0&&(O(It(Object.assign(Object.assign({},de?.data),{recList:fe}))),ce(It(Object.assign(Object.assign({},de?.data),{recList:fe})))),((it=(lt=de?.data)===null||lt===void 0?void 0:lt.recList)===null||it===void 0?void 0:it.some(Ge=>Ge?.product||Ge?.video))&&(oe=oe+1,yield Se(ne))});return yield Se(H),!H?.hashTag&&de&&L({rtc:(Te=de?.data)===null||Te===void 0?void 0:Te.rtc,requestId:(Ne=de?.data)===null||Ne===void 0?void 0:Ne.requestId}),Object.assign(Object.assign({},de?.data),{recList:fe})}Y?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(Pe=H?.pageNum)!==null&&Pe!==void 0?Pe:1}));const $=yield me?.("v1/recommend/list",{method:"POST",body:H});if(!$?.success)return;H?.hashTag||L({rtc:$.data.rtc,requestId:$.data.requestId}),Y?.enablePreview&&!S&&(!((N=(Ve=$?.data)===null||Ve===void 0?void 0:Ve.recList)===null||N===void 0)&&N.some(fe=>fe?.product||fe?.video)||K(!0));let ve=[];return ve=ve.concat((ae=(ie=(Z=(G=$?.data)===null||G===void 0?void 0:G.recList)===null||Z===void 0?void 0:Z.filter)===null||ie===void 0?void 0:ie.call(Z,oe=>oe?.product||oe?.video))!==null&&ae!==void 0?ae:[]),Object.assign(Object.assign({},$.data),{recList:ve})}),[me,i,a,l,y,nt,Tt,jt]),nn=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be;if(j.length<=0)return;const ge=j?.[j?.length-1],Te=yield Zt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:Ae?.hashTag},((_=ge?.product)===null||_===void 0?void 0:_.itemId)&&{productFilter:[(te=ge?.product)===null||te===void 0?void 0:te.itemId]}),((he=ge?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(be=ge?.video)===null||be===void 0?void 0:be.itemId]}),{themeTag:et.current}),Y?.enablePreview&&!S&&{pageNum:H}));return O(j.concat(It(Te))),ce(Be.concat(It(Te))),Te}),[Zt,j,Ae,Be]),bi=n.useCallback((H,_)=>{var te,he,be,ge,Te;let Ne=!1;const Pe=(he=(te=b?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((be=Pe?.session)===null||be===void 0)&&be.enable){const Ve=localStorage.getItem("sessionStartTime"),N=Ve?JSON.parse(Ve):new Date().getTime();Math.floor((new Date().getTime()-N)/1e3/60)>=((Te=(ge=Pe?.session)===null||ge===void 0?void 0:ge.expires)!==null&&Te!==void 0?Te:30)&&(_?.("sessionTimeOut"),cn(),Oe.current=new Date,Ne=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&cn();return Ne},[b]),xt=n.useCallback(({userInfo:H,eventInfo:_,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var be,ge;if(!o||Y?.enablePreview||he&&se())return;H||(H={});const Te=ll(),Ne={},Pe=location.search.slice(1);(be=hi(Pe))===null||be===void 0||be.forEach(ie=>{const ae=ie.split("=")[0],$=ie.split("=")[1];Ne[ae]=$});const Ve=Ne?.cl_source,N=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:I.rtc,requestId:I.requestId},{playbookType:mt}),je&&te&&{layoutVariantId:je}),_),_?.position&&nt&&{position:Number(_?.position)+1+""}),Ve&&{clSource:Ve}),G=Object.entries(H).map(([ie,ae])=>({name:ie,value:ae})),Z=Object.entries(N).map(([ie,ae])=>ae&&{name:ie,value:ae}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",N),console.log("========= \u7ED3\u675F ========="),me?.(`v2/cld/${(ge=Ye?.headers)===null||ge===void 0?void 0:ge["x-app-id"]}/${_?.eventSubject}${Ve?`/${decodeURIComponent(Ve)}`:""}`,{method:"POST",body:{userInfo:G,eventInfo:Z},type:"beacon"})},[me,I,o,Y?.enablePreview,je,Y,mt,Ye]),mi=n.useCallback(H=>{var _,te,he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie,ae,$,ve,oe,fe,{json:de,product:Se=[],rec:ne,contentType:Ie="post",position:at,eventName:ot}=H,ct=rt(H,["json","product","rec","contentType","position","eventName"]);const lt=wt.cloneDeep(de),it=new URLSearchParams(window.location.search),ft=it?.get("fbclid"),Ge={event_source_url:(_=window?.location)===null||_===void 0?void 0:_.href,external_id:xe,client_user_agent:(he=(te=window?.navigator)===null||te===void 0?void 0:te.userAgent)!==null&&he!==void 0?he:"",fbc:ft?`fb.2.${new Date().getTime()}.${ft}`:"",fbp:an("_fbp")?`${an("_fbp")}`:"",time:Math.floor(Date.now()/1e3)};let ut=Object.assign({content_ids:[(be=ne?.video)===null||be===void 0?void 0:be.itemId,...(ge=Se?.map(Ce=>Ce?.itemId))!==null&&ge!==void 0?ge:[]],content_type:Ie,content_name:(Te=ne?.video)===null||Te===void 0?void 0:Te.title,total_posts:j?.length,position:at,currency:(Ve=(Pe=(Ne=Se?.[0])===null||Ne===void 0?void 0:Ne.currency)===null||Pe===void 0?void 0:Pe.split("-"))===null||Ve===void 0?void 0:Ve[0],value:Se?.reduce((Ce,Xe)=>Ce+Xe?.price,0),contents:(N=Se?.map(Ce=>({id:Ce?.itemId,item_price:Ce?.price})))!==null&&N!==void 0?N:[],image_urls:(Z=(G=ne?.video)===null||G===void 0?void 0:G.imgUrls)!==null&&Z!==void 0?Z:[],video_urls:(ie=ne?.video)===null||ie===void 0?void 0:ie.url,headline:Xt("headline"),scene:Xt("scene"),campaign_id:Xt("campaign_id"),ad_id:Xt("ad_id"),utm_source:Xt("utm_source"),utm_medium:Xt("utm_medium"),utm_campaign:Xt("utm_campaign"),utm_content:Xt("utm_content")},ct);if(!(!((ae=ne?.video)===null||ae===void 0)&&ae.url)&&!(!((ve=($=ne?.video)===null||$===void 0?void 0:$.imgUrls)===null||ve===void 0)&&ve.length)&&ne?.product&&Array.isArray(Y?.productPost)&&((oe=Y?.productPost)===null||oe===void 0?void 0:oe.length)>0){const Ce=ne?.product,Xe={content_ids:[Ce?.itemId],content_type:"product",content_name:"",contents:[{id:Ce?.itemId,item_price:Ce?.price}],image_urls:(fe=Ce.homePage)!==null&&fe!==void 0?fe:[]};ut=Object.assign(Object.assign({},ut),Xe)}(ot==="ContentSwipe"||ot==="Engagement"||ot==="ExitFeed")&&["content_ids","content_category","currency","contents","image_urls","video_urls","prompt"].forEach(Xe=>{ut?.[Xe]&&delete ut[Xe]});const Et=/\{\{(.*?)\}\}/g,yt=Ce=>{if(Ce){if(Ce instanceof Array)Ce?.map(Xe=>yt(Xe));else for(const Xe in Ce)if(Object.prototype.hasOwnProperty.call(Ce,Xe)){const kt=Ce?.[Xe];if(typeof kt=="object")Xe==="custom_data"&&(Ce[Xe]=ut??{}),yt(kt);else if(typeof kt=="string"){const Qe=kt?.match(Et);Qe&&Qe.forEach(Lt=>{var Ft;const we=Lt.substring(2,Lt.length-2);try{let st=new Function("fix_par","product",`return ${we}`)(Ge,Se?.[0]);st?(we?.indexOf("currency")!==-1&&st?.indexOf("-")!==-1&&typeof st=="string"&&(st=(Ft=st?.split("-"))===null||Ft===void 0?void 0:Ft[0]),Ce[Xe]=st):delete Ce[Xe]}catch(st){delete Ce[Xe],console.error("An error occurred:",st?.message)}})}}}};return yt(lt),console.log("capi event params:",lt),lt},[xe,Y,j]),Fi=n.useCallback(H=>{var _,te,he,be,ge,Te,Ne,Pe,Ve,N,{eventName:G}=H,Z=rt(H,["eventName"]);if(!o||Y?.enablePreview||se())return;let ie=!1;const ae=(_=Y?.pixel)===null||_===void 0?void 0:_[G];if(ae?.event_name&&typeof window?.fbq=="function"){let oe=function(fe,de,Se){const ne=new RegExp("([?&])"+de+"=.*?(&|$)","i"),Ie=fe.indexOf("?")!==-1?"&":"?";return fe.match(ne)?fe.replace(ne,"$1"+de+"="+Se+"$2"):fe+Ie+de+"="+Se};if(G==="PageView"&&ae?.event_name==="PageView")if(!Pt.current)Pt.current=!0;else{const fe=window.location.href,de=oe(fe,"timestamp",Date.now());history.pushState({path:de},"",de),ie=!0}else window?.fbq("track",ae?.event_name,mi(Object.assign({json:ae,eventName:G},Z)))}if(!ie){G==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(te=Y?.tiktokPixel)===null||te===void 0?void 0:te[G];oe?.event_name&&typeof window?.ttq=="object"&&typeof((he=window?.ttq)===null||he===void 0?void 0:he.track)=="function"&&((be=window?.ttq)===null||be===void 0||be.track(oe?.event_name,mi(Object.assign({json:oe,eventName:G},Z))))}const $=(ge=Y?.snapchatPixel)===null||ge===void 0?void 0:ge[G];$?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",$?.event_name,mi(Object.assign({json:$,eventName:G},Z))),G==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Te=window?.Northbeam)===null||Te===void 0?void 0:Te.trackPageView)=="function"&&((Ne=window?.Northbeam)===null||Ne===void 0||Ne.trackPageView());const ve=(Pe=Y?.converApi)===null||Pe===void 0?void 0:Pe[G];if(A&&ve){const oe=mi(Object.assign({json:ve,eventName:G},Z)),fe={},de=location.search.slice(1);(Ve=hi(de))===null||Ve===void 0||Ve.forEach(ne=>{const Ie=ne.split("=")[0],at=ne.split("=")[1];fe[Ie]=at});const Se=fe?.cl_source;me?.(`v2/fb/${(N=Ye?.headers)===null||N===void 0?void 0:N["x-app-id"]}/${G}${Se?`/${decodeURIComponent(Se)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[me,o,A,Y,Ye,mi]),di=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/recommend/like",{method:"POST",body:H});return _?.success}),[me]),gi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/recommend/unlike",{method:"POST",body:H});return _?.success}),[me]),oi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/customform",{method:"POST",body:H});return _?.success}),[me]),zt=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be,ge,Te,Ne,Pe;const Ve=!!(!((he=(te=(_=H?.data)===null||_===void 0?void 0:_.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Ve))try{const N=(Te=(ge=(be=hi(i))===null||be===void 0?void 0:be.filter(Z=>{var ie,ae;const $=Z.split("=")[0];return(ae=(ie=v?.channels)!==null&&ie!==void 0?ie:[])===null||ae===void 0?void 0:ae.includes($)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Te!==void 0?Te:"",G=yield me?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(N)}});W((Pe=(Ne=G?.data)===null||Ne===void 0?void 0:Ne.tags)!==null&&Pe!==void 0?Pe:[])}catch(N){console.log("e",N)}}),[me,i]),Qt=n.useCallback((H,_,te,he,be,ge,Te)=>{var Ne,Pe,Ve,N,G,Z,ie,ae,$,ve,oe,fe,de,Se,ne,Ie,at,ot,ct,lt,it,ft,Ge,ut,Et,yt,Ce,Xe,kt,Qe,Lt,Ft,we,st,ti,fi;const Ut=te?.bindCta,ki=((Ne=_?.video)===null||Ne===void 0?void 0:Ne.bindProduct)||((Pe=_?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((N=(Ve=_?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||N===void 0?void 0:N.length)>0;let ci="",Le=null;We?ci="hashTagPage":!((G=_?.video)===null||G===void 0)&&G.url?(ci="videoPage",Le="video"):!((ie=(Z=_?.video)===null||Z===void 0?void 0:Z.imgUrls)===null||ie===void 0)&&ie.length&&(ci="imagePage",Le="image");const Dt=(Se=(fe=(ae=te?.tags)!==null&&ae!==void 0?ae:(oe=(ve=($=_?.video)===null||$===void 0?void 0:$.bindProducts)===null||ve===void 0?void 0:ve[0])===null||oe===void 0?void 0:oe.tags)!==null&&fe!==void 0?fe:(de=_?.video)===null||de===void 0?void 0:de.tags)!==null&&Se!==void 0?Se:(ne=_?.product)===null||ne===void 0?void 0:ne.tags;xt?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Ie=Ut?.itemId)!==null&&Ie!==void 0?Ie:"",ctaName:(at=Ut?.title)!==null&&at!==void 0?at:"",contentTags:Dt?JSON.stringify(Dt):"",position:he+"",contentId:(ct=(ot=_?.video)===null||ot===void 0?void 0:ot.itemId)!==null&&ct!==void 0?ct:"",productId:ki?te?.itemId:"",traceInfo:(ti=(Ft=(Ce=(Ge=(lt=Ut?.traceInfo)!==null&&lt!==void 0?lt:(ft=(it=_?.video)===null||it===void 0?void 0:it.bindCta)===null||ft===void 0?void 0:ft.traceInfo)!==null&&Ge!==void 0?Ge:(yt=(Et=(ut=_?.video)===null||ut===void 0?void 0:ut.bindProduct)===null||Et===void 0?void 0:Et.bindCta)===null||yt===void 0?void 0:yt.traceInfo)!==null&&Ce!==void 0?Ce:(Lt=(Qe=(kt=(Xe=_?.video)===null||Xe===void 0?void 0:Xe.bindProducts)===null||kt===void 0?void 0:kt[0])===null||Qe===void 0?void 0:Qe.bindCta)===null||Lt===void 0?void 0:Lt.traceInfo)!==null&&Ft!==void 0?Ft:(st=(we=_?.product)===null||we===void 0?void 0:we.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&ti!==void 0?ti:"",fromKName:ci,fromKPage:(fi=location?.href)!==null&&fi!==void 0?fi:"",contentFormat:Le})})},[xt,We]),Mt=n.useCallback(()=>{var H,_;const te=new Date;Oe.current=te,xt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Xt("utm_source"),utmMedium:Xt("utm_medium"),utmCampaign:Xt("utm_campaign"),utmId:Xt("utm_id"),utmContent:Xt("utm_content"),enterTime:Math.floor(te/1e3)+"",requestId:null,enterUrl:(_=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&_!==void 0?_:""},reportLayId:!1})},[xt]),on=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){var H,_;const te=yield me?.("v1/account",{method:"GET"});return Jt((H=te?.data)===null||H===void 0?void 0:H.chatLabsId),((_=te?.data)===null||_===void 0?void 0:_.consentResult)==="true"}),[me]),Wi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return _?.success}),[me]);n.useEffect(()=>{Ot||Mt()},[Ot]),n.useEffect(()=>{if(Ot||s)return;B(!0);let H,_;Zt().then(te=>{var he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie;if(te){const ae=It(te);let $,ve;if(te?.layoutVariantId){H=te?.layoutVariantId,qe(te?.layoutVariantId);const oe=(be=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||be===void 0?void 0:be[1];oe&&($=w?.find(fe=>fe?.id===oe),$?(ke($),document.title=(ge=$?.name)!==null&&ge!==void 0?ge:"home",ve=(Ne=(Te=$?.data)===null||Te===void 0?void 0:Te.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig,ue(ve),k?.($?.data),!((G=(N=(Ve=(Pe=ve?.consent)===null||Pe===void 0?void 0:Pe[0])===null||Ve===void 0?void 0:Ve.item)===null||N===void 0?void 0:N.props)===null||G===void 0)&&G.privacy_necessity&&F(!0)):F(!0))}else F(!0);if(nt||(ve?.playbook==="organic menu"||!ve&&Y?.playbook==="organic menu"?(gt("organicMenu"),ae.unshift("organic menu"),_="organicMenu"):(gt("paidMedia"),_="paidMedia")),O(ae),ce(ae),zt($??_t),nt){const oe=ae?.[0],fe=((Z=oe?.video)===null||Z===void 0?void 0:Z.traceInfo)||((ie=oe?.product)===null||ie===void 0?void 0:ie.traceInfo)||"";xt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:fe,branchfeed:nt},H&&{layoutVariantId:H})}),xt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:fe,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-dt?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{xt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),_&&{playbookType:_})}),B(!1)})},[Ot,nt]),n.useEffect(()=>{s&&(B(!0),zt(b),Zt().then(H=>{if(H){const _=It(H);Y?.playbook==="organic menu"&&!nt&&_.unshift("organic menu"),O(_),ce(_)}}).finally(()=>{B(!1)}))},[Zt,zt,nt]);const _i=Nt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(no.Provider,{value:{rtcList:j,setRtcList:O,mutateLike:di,mutateUnlike:gi,submitForm:oi,popupDetailData:ee,loadVideos:nn,setPopupDetailData:re,getRecommendVideos:Zt,bffEventReport:xt,isPreview:s,loading:R,sxpParameter:c,waterFallData:Ae,setWaterFallData:Q,ctaEvent:Qt,swiperRef:P,openHashtag:le,setOpenHashtag:ye,cacheRtcList:Be,setCacheRtcList:ce,cacheActiveIndex:Me,setCacheActiveIndex:Ee,isFromHashtag:We,setIsFromHashtag:ze,appDomain:r,hashTagSize:u,loadingImage:d??_i,isOpenHashTag:g,tagList:h,setLoading:B,videoRef:$e,setVideoRef:tt,bffFbReport:Fi,isAgreePolicy:z,setIsAgreePolicy:X,curTime:Oe,h5EnterLink:Mt,themeTag:et,isShowConsent:Ot,selectTag:bt,setSelectTag:Ct,globalConfig:Y,popupCurTimeRef:He,checkCommodityIndexRef:Re,isEditor:S,isNoMoreData:J,updateChannel:ei,channel:nt,eventTimeList:Ze,setEventTimeList:_e,multiPostTimeRef:dt,refreshFeSession:bi,getAccount:on,accountSonsent:Wi,isDiyH5:E,pixelPvStatusRef:Pt}},Ot?n.createElement(pl,Object.assign({},(C=(V=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||C===void 0?void 0:C.props)):t({rtcList:j,mutateLike:di,mutateUnlike:gi,submitForm:oi,tagList:h,pageData:_t}))};var oo=n.memo(ml);function Ue(){return n.useContext(no)}var lo;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(lo||(lo={}));const ao=n.createContext({$store:{},options:[],configs:[]}),fl=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ui(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var A;e||wt.isEqual(r,l?.dataSource)||u((A=l?.dataSource)!==null&&A!==void 0?A:[])},[l?.dataSource,e]);const d=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){const{$store:A,idMapName:p}=yield Xn("",r);c(A),g(A,p)}),[r]),g=(A,p)=>{const m=[];Object.entries(A).forEach(([f,S])=>{Object.keys(S).forEach(v=>{const y={label:`${p[f]} - ${v}`,value:`{{ ${f}.${v} }}`};m.push(y)})}),a(m)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(ao.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var hl=n.memo(fl);const Xi={id:zi(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},vn={id:"",duration:0,name:"none"},so=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Xi],redoStack:[],popup:vn,setPopup:()=>{}}),ro=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Xi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[g,A]=n.useState([Xi]),[p,m]=n.useState([[Xi]]),[f,S]=n.useState([]),[v,y]=n.useState(vn);typeof window<"u"&&(window.sxpPopup=(M,D)=>{y(Object.assign(Object.assign(Object.assign({},vn),{id:M}),D))}),typeof window<"u"&&(window.getJointUtmLink=M=>(cl(),M?.indexOf("?")!==-1?M+(l?"&"+l:""):M+(l?"?"+l:""))),n.useEffect(()=>{m([u.pointData]),S([])},[u.type]);const b=n.useCallback(M=>{const D=wt.cloneDeep(u);D&&(D.dataSource=M,d?.(D))},[u]),[w,E]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(M){M&&(m([M.pointData]),d(M))},exportSchema(){return wt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(M){M&&E(M)}}));const k=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(so.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:b,prePiontData:g,setPrePiontData:A,pageInfoData:w,setPageInfoData:M=>E(Object.assign(Object.assign({},w),M)),undoStack:p,redoStack:f,setRedoStack:S,setUndoStack:m,getCurPageConf:k,popup:v,setPopup:y}},n.createElement(hl,{isSsr:i,enable:a},t))});var Al=Object.freeze({__proto__:null,EditorCore:ro}),bl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],gl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Wt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:a}=Ue(),l=n.useCallback((r,u,d,g,A,p)=>{var m,f,S,v,y,b,w,E,k,M,D,x,T,V,C,j,O,h,W,R,B,I,L,P,q,z,X,ee,re,Ae,Q,le,ye,Be,ce,Me,Ee,We;if(o?.findIndex(Oe=>Oe.target===r?.target)!==-1)return;r&&a?.(Oe=>[...Oe,{target:r?.target,time:new Date}]);let $e="";e&&(!((f=(m=u?.video)===null||m===void 0?void 0:m.bindProducts)===null||f===void 0)&&f.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?$e="videoPage":!((y=u?.video)===null||y===void 0)&&y.imgUrls&&(!((w=(b=u?.video)===null||b===void 0?void 0:b.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":u?.product&&($e="productPage");const tt=(V=(x=(E=d?.tags)!==null&&E!==void 0?E:(D=(M=(k=u?.video)===null||k===void 0?void 0:k.bindProducts)===null||M===void 0?void 0:M[0])===null||D===void 0?void 0:D.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(C=u?.product)===null||C===void 0?void 0:C.tags;let et=null;!((j=u?.video)===null||j===void 0)&&j.url?et="video":!((O=u?.video)===null||O===void 0)&&O.imgUrls&&(!((W=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||W===void 0)&&W.length)&&(et="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(I=d?.collection)!==null&&I!==void 0?I:"",fromKName:$e,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:A+"",contentId:(P=(L=u?.video)===null||L===void 0?void 0:L.itemId)!==null&&P!==void 0?P:"",ctatId:(q=g?.itemId)!==null&&q!==void 0?q:"",traceInfo:(We=(ce=(ye=(re=(z=p??d?.traceInfo)!==null&&z!==void 0?z:(ee=(X=u?.video)===null||X===void 0?void 0:X.bindProduct)===null||ee===void 0?void 0:ee.traceInfo)!==null&&re!==void 0?re:(le=(Q=(Ae=u?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Q===void 0?void 0:Q[0])===null||le===void 0?void 0:le.traceInfo)!==null&&ye!==void 0?ye:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ce!==void 0?ce:(Ee=(Me=u?.video)===null||Me===void 0?void 0:Me.bindCta)===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&We!==void 0?We:""},et&&{contentFormat:et})})},[t,e,i,o]),s=n.useCallback((r,u,d,g,A)=>{var p,m,f,S,v,y,b,w,E,k,M,D,x,T;let V="";e&&(!((m=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||m===void 0)&&m.length||!((f=r?.video)===null||f===void 0)&&f.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:A+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(D=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(b=(y=r?.video)===null||y===void 0?void 0:y.bindProduct)===null||b===void 0?void 0:b.traceInfo)!==null&&w!==void 0?w:(M=(k=(E=r?.video)===null||E===void 0?void 0:E.bindProducts)===null||k===void 0?void 0:k[0])===null||M===void 0?void 0:M.traceInfo)!==null&&D!==void 0?D:(x=r?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-g)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,g)=>{u&&u===Ui&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:g?`['${g}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const yl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var wl=n.memo(yl);const Sl=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:g,isPopup:A,onClick:p,onClose:m,submitButtonStyle:f}=t,S=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:y}=Ue(),{jumpToWeb:b}=Wt(),[w,E]=n.useState(!1),[k,M]=n.useState({}),[D,x]=n.useState(0),T=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),V=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=n.useMemo(()=>wt.cloneDeep(o)||T,[o,T]),j=n.useCallback(h=>{const{name:W,value:R}=h.target;M(Object.assign(Object.assign({},k),{[W]:R}))},[k]),O=wt.debounce(h=>ht(void 0,void 0,void 0,function*(){var W,R,B,I,L;const P=k;if(!P)return;const q=(R=(W=Object.keys(P))===null||W===void 0?void 0:W.map(X=>{var ee;return{name:X,value:(ee=P[X])!==null&&ee!==void 0?ee:""}}))===null||R===void 0?void 0:R.filter(X=>X?.value);if(!q||!q?.length)return;E(!0);const z=yield v?.({attributes:q});if(E(!1),z){if(g){const X=y,ee=(B=X?.video)===null||B===void 0?void 0:B.bindProduct,re=(L=(I=X?.video)===null||I===void 0?void 0:I.bindProduct)===null||L===void 0?void 0:L.bindCta,Ae=y?.index;b(h,X,ee,re,Ae)}A||m?.(),p?.()}}),1e3);return n.useEffect(()=>{const h=()=>{var W,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?x(50):x(0)};return window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Fe.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:De(l,s)}}),n.createElement("div",Object.assign({className:Fe.css(Object.assign(Object.assign({},a),{marginTop:D}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(wl,{columns:C,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:O,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},f),dangerouslySetInnerHTML:{__html:De(w?"loading...":u,f)}})))};var xl=n.memo(Sl);function St(t,e){return t.extend=e,t}const Tl=St(xl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:gl,bindableProps:[],interactionRender:bl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var El=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}],kl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function co(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function pn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:co(e[i])&&co(t[i])&&Object.keys(e[i]).length>0&&pn(t[i],e[i])})}const uo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ht(){const t=typeof document<"u"?document:{};return pn(t,uo),t}const Il={document:uo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Vt(){const t=typeof window<"u"?window:{};return pn(t,Il),t}function vi(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Cl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function yi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Kt(){return Date.now()}function Pl(t){const e=Vt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ol(t,e){e===void 0&&(e="x");const i=Vt();let o,a,l;const s=Pl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function qi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function jl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function qt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!jl(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(qi(t[c])&&qi(o[c])?o[c].__swiper__?t[c]=o[c]:qt(t[c],o[c]):!qi(t[c])&&qi(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:qt(t[c],o[c])):t[c]=o[c])}}}return t}function Yi(t,e,i){t.style.setProperty(e,i)}function vo(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Vt(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(A,p)=>u==="next"&&A>=p||u==="prev"&&A<=p,g=()=>{c=new Date().getTime(),s===null&&(s=c);const A=Math.max(Math.min((c-s)/r,1),0),p=.5-Math.cos(A*Math.PI)/2;let m=l+p*(i-l);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[o]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:m})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(g)};g()}function ii(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Gi(t){try{console.warn(t);return}catch{}}function wi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:vi(e)),i}function po(t){const e=Vt(),i=Ht(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}function Ll(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Ml(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function pi(t,e){return Vt().getComputedStyle(t,null).getPropertyValue(e)}function Ii(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Zi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function mn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function fn(t,e,i){const o=Vt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Je(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let hn;function Nl(){const t=Vt(),e=Ht();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function mo(){return hn||(hn=Nl()),hn}let An;function Dl(t){let{userAgent:e}=t===void 0?{}:t;const i=mo(),o=Vt(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const g=l.match(/(iPod)(.*OS\s([\d_]+))?/),A=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=a==="Win32";let m=a==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&f.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),u&&!p&&(s.os="android",s.android=!0),(d||A||g)&&(s.os="ios",s.ios=!0),s}function fo(t){return t===void 0&&(t={}),An||(An=Dl(t)),An}let bn;function Rl(){const t=Vt(),e=fo();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function Vl(){return bn||(bn=Rl()),bn}function Bl(t){let{swiper:e,on:i,emit:o}=t;const a=Vt();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(g=>{s=a.requestAnimationFrame(()=>{const{width:A,height:p}=e;let m=A,f=p;g.forEach(S=>{let{contentBoxSize:v,contentRect:y,target:b}=S;b&&b!==e.el||(m=y?y.width:(v[0]||v).inlineSize,f=y?y.height:(v[0]||v).blockSize)}),(m!==A||f!==p)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Fl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Vt(),c=function(d,g){g===void 0&&(g={});const A=s.MutationObserver||s.WebkitMutationObserver,p=new A(m=>{if(e.__preventObserver__)return;if(m.length===1){a("observerUpdate",m[0]);return}const f=function(){a("observerUpdate",m[0])};s.requestAnimationFrame?s.requestAnimationFrame(f):s.setTimeout(f,0)});p.observe(d,{attributes:typeof g.attributes>"u"?!0:g.attributes,childList:typeof g.childList>"u"?!0:g.childList,characterData:typeof g.characterData>"u"?!0:g.characterData}),l.push(p)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Zi(e.hostEl);for(let g=0;g<d.length;g+=1)c(d[g])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Wl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(o,i)})}),t}};function _l(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(pi(o,"padding-left")||0,10)-parseInt(pi(o,"padding-right")||0,10),i=i-parseInt(pi(o,"padding-top")||0,10)-parseInt(pi(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Hl(){const t=this;function e(T,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=ii(a,`.${t.params.slideClass}, swiper-slide`),g=r?t.virtual.slides.length:d.length;let A=[];const p=[],m=[];let f=i.slidesOffsetBefore;typeof f=="function"&&(f=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,y=t.slidesGrid.length;let b=i.spaceBetween,w=-f,E=0,k=0;if(typeof l>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*l:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Yi(o,"--swiper-centered-offset-before",""),Yi(o,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&t.grid;M?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let D;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<g;T+=1){D=0;let V;if(d[T]&&(V=d[T]),M&&t.grid.updateSlide(T,V,d),!(d[T]&&pi(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(V),j=V.style.transform,O=V.style.webkitTransform;if(j&&(V.style.transform="none"),O&&(V.style.webkitTransform="none"),i.roundLengths)D=t.isHorizontal()?fn(V,"width",!0):fn(V,"height",!0);else{const h=e(C,"width"),W=e(C,"padding-left"),R=e(C,"padding-right"),B=e(C,"margin-left"),I=e(C,"margin-right"),L=C.getPropertyValue("box-sizing");if(L&&L==="border-box")D=h+B+I;else{const{clientWidth:P,offsetWidth:q}=V;D=h+W+R+B+I+(q-P)}}j&&(V.style.transform=j),O&&(V.style.webkitTransform=O),i.roundLengths&&(D=Math.floor(D))}else D=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(D=Math.floor(D)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${D}px`);d[T]&&(d[T].swiperSlideSize=D),m.push(D),i.centeredSlides?(w=w+D/2+E/2+b,E===0&&T!==0&&(w=w-l/2-b),T===0&&(w=w-l/2-b),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),k%i.slidesPerGroup===0&&A.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&A.push(w),p.push(w),w=w+D+b),t.virtualSize+=D+b,E=D,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),M&&t.grid.updateWrapperSize(D,A),!i.centeredSlides){const T=[];for(let V=0;V<A.length;V+=1){let C=A[V];i.roundLengths&&(C=Math.floor(C)),A[V]<=t.virtualSize-l&&T.push(C)}A=T,Math.floor(t.virtualSize-l)-Math.floor(A[A.length-1])>1&&A.push(t.virtualSize-l)}if(r&&i.loop){const T=m[0]+b;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)A.push(A[A.length-1]+C)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=1)i.slidesPerGroup===1&&A.push(A[A.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(A.length===0&&(A=[0]),b!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(V=>{V.style[T]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const V=T-l;A=A.map(C=>C<=0?-f:C>V?V+S:C)}if(i.centerInsufficientSlides){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const C=(l-T-V)/2;A.forEach((j,O)=>{A[O]=j-C}),p.forEach((j,O)=>{p[O]=j+C})}}if(Object.assign(t,{slides:d,snapGrid:A,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Yi(o,"--swiper-centered-offset-before",`${-A[0]}px`),Yi(o,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+V)}if(g!==u&&t.emit("slidesLengthChange"),A.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==y&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);g<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function zl(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Ul(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const ho=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const g=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),A=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),m=p+e.slidesSizesGrid[r],f=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),ho(u,S,i.slideVisibleClass),ho(u,f,i.slideFullyVisibleClass),u.progress=a?-g:g,u.originalProgress=a?-A:A}}function ql(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,g=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=g||a>=1,d&&(a=0),g&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),g=e.getSlideIndexByData(e.slides.length-1),A=e.slidesGrid[d],p=e.slidesGrid[g],m=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=A?c=(f-A)/m:c=(f+m-p)/m,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const gn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Yl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=g=>ii(o,`.${i.slideClass}${g}, swiper-slide${g}`)[0];let r,u,d;if(l)if(i.loop){let g=a-t.virtual.slidesBefore;g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${g}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(g=>g.column===a)[0],d=e.filter(g=>g.column===a+1)[0],u=e.filter(g=>g.column===a-1)[0]):r=e[a];r&&(s||(d=Ml(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=Ll(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(g=>{gn(g,g===r,i.slideActiveClass),gn(g,g===d,i.slideNextClass),gn(g,g===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Ki=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},yn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},wn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&yn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&yn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&yn(t,s)};function Gl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Zl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof r>"u"&&(r=Gl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const g=e.grid&&a.grid&&a.grid.rows>1;let A;if(e.virtual&&a.virtual.enabled&&a.loop)A=d(r);else if(g){const p=e.slides.filter(f=>f.column===r)[0];let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),A=Math.floor(m/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?A=parseInt(p,10):A=r}else A=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:A,previousIndex:l,activeIndex:r}),e.initialized&&wn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==A&&e.emit("realIndexChange"),e.emit("slideChange"))}function Kl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Jl={updateSize:_l,updateSlides:Hl,updateAutoHeight:zl,updateSlidesOffset:Ul,updateSlidesProgress:Xl,updateProgress:ql,updateSlidesClasses:Yl,updateActiveIndex:Zl,updateClickedSlide:Kl};function Ql(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=Ol(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function $l(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const g=i.maxTranslate()-i.minTranslate();g===0?d=0:d=(t-i.minTranslate())/g,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function ea(){return-this.snapGrid[0]}function ta(){return-this.snapGrid[this.snapGrid.length-1]}function ia(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const g=l.isHorizontal();if(e===0)c[g?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return vo({swiper:l,targetPosition:-d,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(A){!l||l.destroyed||A.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var na={getTranslate:Ql,setTranslate:$l,minTranslate:ea,maxTranslate:ta,translateTo:ia};function oa(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function Ao(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function la(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),Ao({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function aa(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),Ao({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var sa={setTransition:oa,transitionStart:la,transitionEnd:aa};function ra(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:g,rtlTranslate:A,wrapperEl:p,enabled:m}=l;if(!m&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const f=Math.min(l.params.slidesPerGroupSkip,s);let S=f+Math.floor((s-f)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let b=0;b<u.length;b+=1){const w=-Math.floor(v*100),E=Math.floor(u[b]*100),k=Math.floor(u[b+1]*100);typeof u[b+1]<"u"?w>=E&&w<k-(k-E)/2?s=b:w>=E&&w<k&&(s=b+1):w>=E&&(s=b)}if(l.initialized&&s!==g&&(!l.allowSlideNext&&(A?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(g||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;if(s>g?y="next":s<g?y="prev":y="reset",A&&-v===l.translate||!A&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(i,y),l.transitionEnd(i,y)),!1;if(c.cssMode){const b=l.isHorizontal(),w=A?v:-v;if(e===0){const E=l.virtual&&l.params.virtual.enabled;E&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),E&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[b?"scrollLeft":"scrollTop"]=w})):p[b?"scrollLeft":"scrollTop"]=w,E&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return vo({swiper:l,targetPosition:w,side:b?"left":"top"}),!0;p.scrollTo({[b?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,y),e===0?l.transitionEnd(i,y):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,y))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function da(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const A=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let g=r-c<d;if(u&&(g=g||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(g=!1),g){const A=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:A,slideTo:!0,activeSlideIndex:A==="next"?c+1:c-r+1,slideRealIndex:A==="next"?a.realIndex:void 0})}if(l){const A=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function ca(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ua(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const g=c?o.translate:-o.translate;function A(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=A(g),m=l.map(v=>A(v));let f=l[m.indexOf(p)-1];if(typeof f>"u"&&a.cssMode){let v;l.forEach((y,b)=>{p>=y&&(v=b)}),typeof v<"u"&&(f=l[v>0?v-1:v])}let S=0;if(typeof f<"u"&&(S=s.indexOf(f),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function va(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function pa(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function ma(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(ii(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),yi(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(ii(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),yi(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var fa={slideTo:ra,slideToLoop:da,slideNext:ca,slidePrev:ua,slideReset:va,slideToClosest:pa,slideToClickedSlide:ma};function ha(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{ii(o,`.${i.slideClass}, swiper-slide`).forEach((g,A)=>{g.setAttribute("data-swiper-slide-index",A)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let g=0;g<d;g+=1){const A=e.isElement?wi("swiper-slide",[i.slideBlankClass]):wi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(A)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Gi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Gi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:g,slidesEl:A,params:p}=r,{centeredSlides:m}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=g,r.emit("loopFix");return}let f=p.slidesPerView;f==="auto"?f=r.slidesPerViewDynamic():(f=Math.ceil(parseFloat(p.slidesPerView,10)),m&&f%2===0&&(f=f+1));const S=p.slidesPerGroupAuto?f:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,r.loopedSlides=v;const y=r.grid&&p.grid&&p.grid.rows>1;u.length<f+v?Gi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&p.grid.fill==="row"&&Gi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let E=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):E=l;const k=o==="next"||!o,M=o==="prev"||!o;let D=0,x=0;const T=y?Math.ceil(u.length/p.grid.rows):u.length,C=(y?u[l].column:l)+(m&&typeof a>"u"?-f/2+.5:0);if(C<v){D=Math.max(v-C,S);for(let j=0;j<v-C;j+=1){const O=j-Math.floor(j/T)*T;if(y){const h=T-O-1;for(let W=u.length-1;W>=0;W-=1)u[W].column===h&&b.push(W)}else b.push(T-O-1)}}else if(C+f>T-v){x=Math.max(C-(T-v*2),S);for(let j=0;j<x;j+=1){const O=j-Math.floor(j/T)*T;y?u.forEach((h,W)=>{h.column===O&&w.push(W)}):w.push(O)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),M&&b.forEach(j=>{u[j].swiperLoopMoveDOM=!0,A.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,A.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():y&&(b.length>0&&M||w.length>0&&k)&&r.slides.forEach((j,O)=>{r.grid.updateSlide(O,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(b.length>0&&M){if(typeof e>"u"){const j=r.slidesGrid[E],h=r.slidesGrid[E+D]-j;c?r.setTranslate(r.translate-h):(r.slideTo(E+Math.ceil(D),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-h,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-h))}else if(a){const j=y?b.length/p.grid.rows:b.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&k)if(typeof e>"u"){const j=r.slidesGrid[E],h=r.slidesGrid[E-x]-j;c?r.setTranslate(r.translate-h):(r.slideTo(E-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-h,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-h))}else{const j=y?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=g,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...j,slideTo:O.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function ba(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ga={loopCreate:ha,loopFix:Aa,loopDestroy:ba};function ya(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function wa(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Sa={setGrabCursor:ya,unsetGrabCursor:wa};function xa(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Ht()||o===Vt())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function bo(t,e,i){const o=Vt(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Ta(t){const e=this,i=Ht();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){bo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,A=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(A?xa(g,r):r.closest(g))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,m=s.currentY;if(!bo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=m,a.touchStartTime=Kt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let f=!0;r.matches(a.focusableElements)&&(f=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=f&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function Ea(t){const e=Ht(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(k=>k.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,g=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=g;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:g,currentX:d,currentY:g}),o.touchStartTime=Kt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(g<l.startY&&i.translate<=i.maxTranslate()||g>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=g;const A=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(A**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let k;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:A*A+p*p>=25&&(k=Math.atan2(Math.abs(p),Math.abs(A))*180/Math.PI,o.isScrolling=i.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let m=i.isHorizontal()?A:p,f=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(m=Math.abs(m)*(s?1:-1),f=Math.abs(f)*(s?1:-1)),l.diff=m,m*=a.touchRatio,s&&(m=-m,f=-f);const S=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=f>0?"prev":"next";const v=i.params.loop&&!a.cssMode,y=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&y&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&y&&Math.abs(m)>=1){Object.assign(l,{startX:d,startY:g,currentX:d,currentY:g,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let w=!0,E=a.resistanceRatio;if(a.touchReleaseOnEdges&&(E=0),m>0?(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+m)**E))):m<0&&(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-m)**E))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(m)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function ka(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(E=>E.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=Kt(),A=g-i.touchStartTime;if(e.allowClick){const E=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(E&&E[0]||o.target,E),e.emit("tap click",o),A<300&&g-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Kt(),yi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let f=0,S=e.slidesSizesGrid[0];for(let E=0;E<u.length;E+=E<s.slidesPerGroupSkip?1:s.slidesPerGroup){const k=E<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[E+k]<"u"?(m||p>=u[E]&&p<u[E+k])&&(f=E,S=u[E+k]-u[E]):(m||p>=u[E])&&(f=E,S=u[u.length-1]-u[u.length-2])}let v=null,y=null;s.rewind&&(e.isBeginning?y=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const b=(p-u[f])/S,w=f<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(A>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:f+w):e.slideTo(f)),e.swipeDirection==="prev"&&(b>1-s.longSwipesRatio?e.slideTo(f+w):y!==null&&b<0&&Math.abs(b)>s.longSwipesRatio?e.slideTo(y):e.slideTo(f))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(f+w):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:f+w),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:f))}}function go(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ia(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ca(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Pa(t){const e=this;Ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Oa(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const yo=(t,e)=>{const i=Ht(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",go,!0):t[u]("observerUpdate",go,!0),a[r]("load",t.onLoad,{capture:!0}))};function ja(){const t=this,{params:e}=t;t.onTouchStart=Ta.bind(t),t.onTouchMove=Ea.bind(t),t.onTouchEnd=ka.bind(t),t.onDocumentTouchStart=Oa.bind(t),e.cssMode&&(t.onScroll=Ca.bind(t)),t.onClick=Ia.bind(t),t.onLoad=Pa.bind(t),yo(t,"on")}function La(){yo(this,"off")}var Ma={attachEvents:ja,detachEvents:La};const wo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Na(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=wo(t,o),d=wo(t,r),g=t.params.grabCursor,A=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!A?t.unsetGrabCursor():!g&&A&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof r[b]>"u")return;const w=o[b]&&o[b].enabled,E=r[b]&&r[b].enabled;w&&!E&&t[b].disable(),!w&&E&&t[b].enable()});const m=r.direction&&r.direction!==o.direction,f=o.loop&&(r.slidesPerView!==o.slidesPerView||m),S=o.loop;m&&i&&t.changeDirection(),qt(t.params,r);const v=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&y?(t.loopCreate(e),t.updateSlides()):S&&!y&&t.loopDestroy()),t.emit("breakpoint",r)}function Da(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Vt(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ra={setBreakpoint:Na,getBreakpoint:Da};function Va(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ba(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=Va(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Fa(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Wa={addClasses:Ba,removeClasses:Fa};function _a(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Ha={checkOverflow:_a},Sn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function za(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){qt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){qt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),qt(e,o)}}const xn={eventsEmitter:Wl,update:Jl,translate:na,transition:sa,slide:fa,loop:ga,grabCursor:Sa,events:Ma,breakpoints:Ra,checkOverflow:Ha,classes:Wa},Tn={};let En=class ri{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=qt({},i),e&&!i.el&&(i.el=e);const s=Ht();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(g=>{const A=qt({},i,{el:g});d.push(new ri(A))}),d}const c=this;c.__swiper__=!0,c.support=mo(),c.device=fo({userAgent:i.userAgent}),c.browser=Vl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:za(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=qt({},Sn,r);return c.params=qt({},u,Tn,i),c.originalParams=qt({},c.params),c.passedParams=qt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,a=ii(i,`.${o.slideClass}, swiper-slide`),l=Ii(a[0]);return Ii(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=ii(i,`.${o.slideClass}, swiper-slide`)}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,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let g=l[u]?Math.ceil(l[u].swiperSlideSize):0,A;for(let p=u+1;p<l.length;p+=1)l[p]&&!A&&(g+=Math.ceil(l[p].swiperSlideSize),d+=1,g>r&&(A=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!A&&(g+=l[p].swiperSlideSize,d+=1,g>r&&(A=!0))}else if(e==="current")for(let g=u+1;g<l.length;g+=1)(i?s[g]+c[g]-s[u]<r:s[g]-s[u]<r)&&(d+=1);else for(let g=u-1;g>=0;g-=1)s[u]-s[g]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Ki(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):ii(o,a())[0];return!s&&i.params.createElements&&(s=wi("div",i.params.wrapperClass),o.append(s),ii(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||pi(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||pi(o,"direction")==="rtl"),wrongRTL:pi(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Ki(i,l):l.addEventListener("load",s=>{Ki(i,s.target)})}),wn(i),i.initialized=!0,wn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Cl(o)),o.destroyed=!0),null}static extendDefaults(e){qt(Tn,e)}static get extendedDefaults(){return Tn}static get defaults(){return Sn}static installModule(e){ri.prototype.__modules__||(ri.prototype.__modules__=[]);const i=ri.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ri.installModule(i)),ri):(ri.installModule(e),ri)}};Object.keys(xn).forEach(t=>{Object.keys(xn[t]).forEach(e=>{En.prototype[e]=xn[t][e]})}),En.use([Bl,Fl]);const So=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ai(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Si(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Ai(e[o])&&Ai(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:Si(t[o],e[o]):t[o]=e[o]})}function xo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function To(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Eo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function ko(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Ua(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Xa(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:g,navigation:A,scrollbar:p,virtual:m,thumbs:f}=e;let S,v,y,b,w,E,k,M;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&g&&!g.el&&(y=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(b=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&A&&!A.prevEl&&!A.nextEl&&(w=!0);const D=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?E=!0:!d.loop&&o.loop?k=!0:M=!0),u.forEach(x=>{if(Ai(d[x])&&Ai(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&D(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&D(x):d[x]=o[x]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):a.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),a.includes("children")&&i&&d.loop&&(M=!0),S&&f.init()&&f.update(!0),v&&(e.controller.control=d.controller.control),y&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),g.init(),g.render(),g.update()),b&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),A.init(),A.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(E||M)&&e.loopDestroy(),(k||M)&&e.loopCreate(),e.update()}function qa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};Si(i,Sn),i._emitClasses=!0,i.init=!1;const l={},s=So.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?Ai(t[r])?(i[r]={},a[r]={},Si(i[r],t[r]),Si(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Ya(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;xo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),To(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),Eo(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Ga(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return So.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(Ai(t[r])&&Ai(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(g=>{t[r][g]!==e[r][g]&&s(r)}),d.forEach(g=>{t[r][g]!==e[r][g]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Za=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Ji(){return Ji=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Ji.apply(this,arguments)}function Io(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Co(t){const e=[];return n.Children.toArray(t).forEach(i=>{Io(i)?e.push(i):i.props&&i.props.children&&Co(i.props.children).forEach(o=>e.push(o))}),e}function Ka(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(Io(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=Co(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Ja(t,e,i){if(!i)return null;const o=d=>{let g=d;return d<0?g=e.length+d:g>=e.length&&(g=g-e.length),g},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,g)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${g}`}))}function Ci(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const kn=n.createContext(null),Pi=()=>n.useContext(kn),Qa=n.createContext(null),li=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[g,A]=n.useState(null),[p,m]=n.useState(!1),f=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),y=n.useRef(null),b=n.useRef(null),w=n.useRef(null),E=n.useRef(null),k=n.useRef(null),M=n.useRef(null),{params:D,passedParams:x,rest:T,events:V}=qa(c),{slides:C,slots:j}=Ka(l),O=()=>{m(!p)};Object.assign(D.on,{_containerClasses(I,L){d(L)}});const h=()=>{Object.assign(D.on,V),r=!0;const I={...D};if(delete I.wrapperClass,v.current=new En(I),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const L={cache:!1,slides:C,renderExternal:A,renderExternalUpdate:!1};Si(v.current.params.virtual,L),Si(v.current.originalParams.virtual,L)}};S.current||h(),v.current&&v.current.on("_beforeBreakpoint",O);const W=()=>{r||!V||!v.current||Object.keys(V).forEach(I=>{v.current.on(I,V[I])})},R=()=>{!V||!v.current||Object.keys(V).forEach(I=>{v.current.off(I,V[I])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",O)}),n.useEffect(()=>{!f.current&&v.current&&(v.current.emitSlidesClasses(),f.current=!0)}),Ci(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&h(),Ya({el:S.current,nextEl:w.current,prevEl:E.current,paginationEl:k.current,scrollbarEl:M.current,swiper:v.current},D),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ci(()=>{W();const I=Ga(x,y.current,C,b.current,L=>L.key);return y.current=x,b.current=C,I.length&&v.current&&!v.current.destroyed&&Xa({swiper:v.current,slides:C,passedParams:x,changedParams:I,nextEl:w.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:k.current}),()=>{R()}}),Ci(()=>{Za(v.current)},[g]);function B(){return D.virtual?Ja(v.current,C,g):C.map((I,L)=>n.cloneElement(I,{swiper:v.current,swiperSlideIndex:L}))}return n.createElement(o,Ji({ref:S,className:ko(`${u}${i?` ${i}`:""}`)},T),n.createElement(Qa.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:Ua(D.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),xo(D)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),Eo(D)&&n.createElement("div",{ref:M,className:"swiper-scrollbar"}),To(D)&&n.createElement("div",{ref:k,className:"swiper-pagination"}),j["container-end"]))});li.displayName="Swiper";const Yt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const g=n.useRef(null),[A,p]=n.useState("swiper-slide"),[m,f]=n.useState(!1);function S(w,E,k){E===g.current&&p(k)}Ci(()=>{if(typeof u<"u"&&(g.current.swiperSlideIndex=u),e&&(e.current=g.current),!(!g.current||!l)){if(l.destroyed){A!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),Ci(()=>{l&&g.current&&!l.destroyed&&p(l.getSlideClasses(g.current))},[l]);const v={isActive:A.indexOf("swiper-slide-active")>=0,isVisible:A.indexOf("swiper-slide-visible")>=0,isPrev:A.indexOf("swiper-slide-prev")>=0,isNext:A.indexOf("swiper-slide-next")>=0},y=()=>typeof o=="function"?o(v):o,b=()=>{f(!0)};return n.createElement(i,Ji({ref:g,className:ko(`${A}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:b},d),s&&n.createElement(kn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},y(),c&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(kn.Provider,{value:v},y(),c&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Yt.displayName="SwiperSlide";function In(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ht(),s=Vt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:g}=e;let A=d;A.originalEvent&&(A=A.originalEvent);const p=A.keyCode||A.charCode,m=e.params.keyboard.pageUpDown,f=m&&p===33,S=m&&p===34,v=p===37,y=p===39,b=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&b||f))return!1;if(!(A.shiftKey||A.altKey||A.ctrlKey||A.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(f||S||v||y||b||w)){let E=!1;if(Zi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Zi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,M=k.clientWidth,D=k.clientHeight,x=s.innerWidth,T=s.innerHeight,V=po(k);g&&(V.left-=k.scrollLeft);const C=[[V.left,V.top],[V.left+M,V.top],[V.left,V.top+D],[V.left+M,V.top+D]];for(let j=0;j<C.length;j+=1){const O=C[j];if(O[0]>=0&&O[0]<=x&&O[1]>=0&&O[1]<=T){if(O[0]===0&&O[1]===0)continue;E=!0}}if(!E)return}e.isHorizontal()?((f||S||v||y)&&(A.preventDefault?A.preventDefault():A.returnValue=!1),((S||y)&&!g||(f||v)&&g)&&e.slideNext(),((f||v)&&!g||(S||y)&&g)&&e.slidePrev()):((f||S||b||w)&&(A.preventDefault?A.preventDefault():A.returnValue=!1),(S||w)&&e.slideNext(),(f||b)&&e.slidePrev()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Qi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Vt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Kt(),r;const u=[];function d(b){let M=0,D=0,x=0,T=0;return"detail"in b&&(D=b.detail),"wheelDelta"in b&&(D=-b.wheelDelta/120),"wheelDeltaY"in b&&(D=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(M=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(M=D,D=0),x=M*10,T=D*10,"deltaY"in b&&(T=b.deltaY),"deltaX"in b&&(x=b.deltaX),b.shiftKey&&!x&&(x=T,T=0),(x||T)&&b.deltaMode&&(b.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!M&&(M=x<1?-1:1),T&&!D&&(D=T<1?-1:1),{spinX:M,spinY:D,pixelX:x,pixelY:T}}function g(){e.enabled&&(e.mouseEntered=!0)}function A(){e.enabled&&(e.mouseEntered=!1)}function p(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Kt()-c<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&Kt()-c<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",b.raw)),c=new l.Date().getTime(),!1)}function m(b){const w=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function f(b){let w=b,E=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let M=e.el;e.params.mousewheel.eventsTarget!=="container"&&(M=document.querySelector(e.params.mousewheel.eventsTarget));const D=M&&M.contains(w.target);if(!e.mouseEntered&&!D&&!k.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,V=d(w);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.pixelY;if(x===0)return!0;k.invert&&(x=-x);let C=e.getTranslate()+x*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),E=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),E&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Kt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};u.length>=2&&u.shift();const O=u.length?u[u.length-1]:void 0;if(u.push(j),O?(j.direction!==O.direction||j.delta>O.delta||j.time>O.time+150)&&p(j):p(j),m(j))return!0}else{const j={time:Kt(),delta:Math.abs(x),direction:Math.sign(x)},O=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!O){r=void 0;let h=e.getTranslate()+x*k.sensitivity;const W=e.isBeginning,R=e.isEnd;if(h>=e.minTranslate()&&(h=e.minTranslate()),h<=e.maxTranslate()&&(h=e.maxTranslate()),e.setTransition(0),e.setTranslate(h),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,I=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const L=x>0?.8:.2;r=j,u.splice(0),s=yi(()=>{e.slideToClosest(e.params.speed,!0,void 0,L)},0)}s||(s=yi(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(h===e.minTranslate()||h===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(b){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[b]("mouseenter",g),w[b]("mouseleave",A),w[b]("wheel",f)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:v,disable:y})}function Cn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=ii(t.el,`.${o[a]}`)[0];l||(l=wi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Pn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function l(m){let f;return m&&typeof m=="string"&&e.isElement&&(f=e.el.querySelector(m),f)?f:(m&&(typeof m=="string"&&(f=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&f&&f.length>1&&e.el.querySelectorAll(m).length===1?f=e.el.querySelector(m):f&&f.length===1&&(f=f[0])),m&&!f?m:f)}function s(m,f){const S=e.params.navigation;m=Je(m),m.forEach(v=>{v&&(v.classList[f?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=f),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){s(f,!1),s(m,!1);return}s(f,e.isBeginning&&!e.params.rewind),s(m,e.isEnd&&!e.params.rewind)}function r(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const m=e.params.navigation;if(e.params.navigation=Cn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let f=l(m.nextEl),S=l(m.prevEl);Object.assign(e.navigation,{nextEl:f,prevEl:S}),f=Je(f),S=Je(S);const v=(y,b)=>{y&&y.addEventListener("click",b==="next"?u:r),!e.enabled&&y&&y.classList.add(...m.lockClass.split(" "))};f.forEach(y=>v(y,"next")),S.forEach(y=>v(y,"prev"))}function g(){let{nextEl:m,prevEl:f}=e.navigation;m=Je(m),f=Je(f);const S=(v,y)=>{v.removeEventListener("click",y==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(v=>S(v,"next")),f.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{g()}),o("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;if(m=Je(m),f=Je(f),e.enabled){c();return}[...m,...f].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(m,f)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Je(S),v=Je(v);const y=f.target;let b=v.includes(y)||S.includes(y);if(e.isElement&&!b){const w=f.path||f.composedPath&&f.composedPath();w&&(b=w.find(E=>S.includes(E)||v.includes(E)))}if(e.params.navigation.hideOnClick&&!b){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(E=>!!E).forEach(E=>E.classList.toggle(e.params.navigation.hiddenClass))}});const A=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:A,disable:p,update:c,init:d,destroy:g})}function ai(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Oi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l="swiper-pagination";i({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:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,y){const{bulletActiveClass:b}=e.params.pagination;v&&(v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${b}-${y}`),v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${b}-${y}-${y}`)))}function d(v){const y=v.target.closest(ai(e.params.pagination.bulletClass));if(!y)return;v.preventDefault();const b=Ii(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function g(){const v=e.rtl,y=e.params.pagination;if(r())return;let b=e.pagination.el;b=Je(b);let w,E;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(E=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,E=e.previousSnapIndex):(E=e.previousIndex||0,w=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const D=e.pagination.bullets;let x,T,V;if(y.dynamicBullets&&(s=fn(D[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&E!==void 0&&(c+=w-(E||0),c>y.dynamicMainBullets-1?c=y.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(D.length,y.dynamicMainBullets)-1),V=(T+x)/2),D.forEach(C=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(O=>`${y.bulletActiveClass}${O}`)].map(O=>typeof O=="string"&&O.includes(" ")?O.split(" "):O).flat();C.classList.remove(...j)}),b.length>1)D.forEach(C=>{const j=Ii(C);j===w?C.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),y.dynamicBullets&&(j>=x&&j<=T&&C.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),j===x&&u(C,"prev"),j===T&&u(C,"next"))});else{const C=D[w];if(C&&C.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&D.forEach((j,O)=>{j.setAttribute("part",O===w?"bullet-active":"bullet")}),y.dynamicBullets){const j=D[x],O=D[T];for(let h=x;h<=T;h+=1)D[h]&&D[h].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(O,"next")}}if(y.dynamicBullets){const C=Math.min(D.length,y.dynamicMainBullets+4),j=(s*C-s)/2-V*s,O=v?"right":"left";D.forEach(h=>{h.style[e.isHorizontal()?O:"top"]=`${j}px`})}}b.forEach((D,x)=>{if(y.type==="fraction"&&(D.querySelectorAll(ai(y.currentClass)).forEach(T=>{T.textContent=y.formatFractionCurrent(w+1)}),D.querySelectorAll(ai(y.totalClass)).forEach(T=>{T.textContent=y.formatFractionTotal(M)})),y.type==="progressbar"){let T;y.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/M;let C=1,j=1;T==="horizontal"?C=V:j=V,D.querySelectorAll(ai(y.progressbarFillClass)).forEach(O=>{O.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${j})`,O.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(D.innerHTML=y.renderCustom(e,w+1,M),x===0&&a("paginationRender",D)):(x===0&&a("paginationRender",D),a("paginationUpdate",D)),e.params.watchOverflow&&e.enabled&&D.classList[e.isLocked?"add":"remove"](y.lockClass)})}function A(){const v=e.params.pagination;if(r())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let b=e.pagination.el;b=Je(b);let w="";if(v.type==="bullets"){let E=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&E>y&&(E=y);for(let k=0;k<E;k+=1)v.renderBullet?w+=v.renderBullet.call(e,k,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],b.forEach(E=>{v.type!=="custom"&&(E.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...E.querySelectorAll(ai(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",b[0])}function p(){e.params.pagination=Cn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let y;typeof v.el=="string"&&e.isElement&&(y=e.el.querySelector(v.el)),!y&&typeof v.el=="string"&&(y=[...document.querySelectorAll(v.el)]),y||(y=v.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(v.el)],y.length>1&&(y=y.filter(b=>Zi(b,".swiper")[0]===e.el)[0])),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=Je(y),y.forEach(b=>{v.type==="bullets"&&v.clickable&&b.classList.add(...(v.clickableClass||"").split(" ")),b.classList.add(v.modifierClass+v.type),b.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(b.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&b.classList.add(v.progressbarOppositeClass),v.clickable&&b.addEventListener("click",d),e.enabled||b.classList.add(v.lockClass)}))}function m(){const v=e.params.pagination;if(r())return;let y=e.pagination.el;y&&(y=Je(y),y.forEach(b=>{b.classList.remove(v.hiddenClass),b.classList.remove(v.modifierClass+v.type),b.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(b.classList.remove(...(v.clickableClass||"").split(" ")),b.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:y}=e.pagination;y=Je(y),y.forEach(b=>{b.classList.remove(v.horizontalClass,v.verticalClass),b.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),A(),g())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&g()}),o("snapIndexChange",()=>{g()}),o("snapGridLengthChange",()=>{A(),g()}),o("destroy",()=>{m()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{g()}),o("click",(v,y)=>{const b=y.target,w=Je(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const E=w[0].classList.contains(e.params.pagination.hiddenClass);a(E===!0?"paginationShow":"paginationHide"),w.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),p(),A(),g()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:f,disable:S,render:A,update:g,init:p,destroy:m})}function $a(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ht();let s=!1,c=null,r=null,u,d,g,A;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:j}=e,{dragEl:O,el:h}=C,W=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,I=(g-d)*R;j?(I=-I,I>0?(B=d-I,I=0):-I+d>g&&(B=g+I)):I<0?(B=d+I,I=0):I+d>g&&(B=g-I),e.isHorizontal()?(O.style.transform=`translate3d(${I}px, 0, 0)`,O.style.width=`${B}px`):(O.style.transform=`translate3d(0px, ${I}px, 0)`,O.style.height=`${B}px`),W.hide&&(clearTimeout(c),h.style.opacity=1,c=setTimeout(()=>{h.style.opacity=0,h.style.transitionDuration="400ms"},1e3))}function m(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:j,el:O}=C;j.style.width="",j.style.height="",g=e.isHorizontal()?O.offsetWidth:O.offsetHeight,A=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=g*A:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,A>=1?O.style.display="none":O.style.display="",e.params.scrollbar.hide&&(O.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:j,rtlTranslate:O}=e,{el:h}=j;let W;W=(S(C)-po(h)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(g-d),W=Math.max(Math.min(W,1),0),O&&(W=1-W);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function y(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:W,dragEl:R}=O;s=!0,u=C.target===R?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),h.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(C),clearTimeout(r),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function b(C){const{scrollbar:j,wrapperEl:O}=e,{el:h,dragEl:W}=j;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),O.style.transitionDuration="0ms",h.style.transitionDuration="0ms",W.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function w(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:W}=O;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",h.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=yi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),j.snapOnRelease&&e.slideToClosest())}function E(C){const{scrollbar:j,params:O}=e,h=j.el;if(!h)return;const W=h,R=O.passiveListeners?{passive:!1,capture:!1}:!1,B=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const I=C==="on"?"addEventListener":"removeEventListener";W[I]("pointerdown",y,R),l[I]("pointermove",b,R),l[I]("pointerup",w,B)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||E("on")}function M(){!e.params.scrollbar.el||!e.scrollbar.el||E("off")}function D(){const{scrollbar:C,el:j}=e;e.params.scrollbar=Cn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const O=e.params.scrollbar;if(!O.el)return;let h;if(typeof O.el=="string"&&e.isElement&&(h=e.el.querySelector(O.el)),!h&&typeof O.el=="string"){if(h=l.querySelectorAll(O.el),!h.length)return}else h||(h=O.el);e.params.uniqueNavElements&&typeof O.el=="string"&&h.length>1&&j.querySelectorAll(O.el).length===1&&(h=j.querySelector(O.el)),h.length>0&&(h=h[0]),h.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass);let W;h&&(W=h.querySelector(ai(e.params.scrollbar.dragClass)),W||(W=wi("div",e.params.scrollbar.dragClass),h.append(W))),Object.assign(C,{el:h,dragEl:W}),O.draggable&&k(),h&&h.classList[e.enabled?"remove":"add"](...vi(e.params.scrollbar.lockClass))}function x(){const C=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...vi(e.isHorizontal()?C.horizontalClass:C.verticalClass)),M()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:j}=e.scrollbar;j=Je(j),j.forEach(O=>{O.classList.remove(C.horizontalClass,C.verticalClass),O.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?V():(D(),f(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{f()}),o("setTranslate",()=>{p()}),o("setTransition",(C,j)=>{m(j)}),o("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...vi(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...vi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...vi(e.params.scrollbar.scrollbarDisabledClass)),D(),f(),p()},V=()=>{e.el.classList.add(...vi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...vi(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:f,setTranslate:p,init:D,destroy:x})}function On(t){let{swiper:e,extendParams:i,on:o}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Je(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function g(R){R=Je(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function A(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("role",B)})}function p(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-roledescription",B)})}function m(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-controls",B)})}function f(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-label",B)})}function S(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("id",B)})}function v(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-live",B)})}function y(R){R=Je(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function b(R){R=Je(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,I=R.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(ai(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const L=Je(e.navigation.prevEl);Je(e.navigation.nextEl).includes(I)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(B.lastSlideMessage):r(B.nextSlideMessage)),L.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&I.matches(ai(e.params.pagination.bulletClass))&&I.click()}}function E(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(y(B),g(B)):(b(B),d(B))),R&&(e.isEnd?(y(R),g(R)):(b(R),d(R)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return k()&&e.params.pagination.clickable}function D(){const R=e.params.a11y;k()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(A(B,"button"),f(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(B)+1)))),B.matches(ai(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,I)=>{d(R),R.tagName!=="BUTTON"&&(A(R,"button"),R.addEventListener("keydown",w)),f(R,I),m(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const I=e.slides.indexOf(B)===e.activeIndex,L=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);I||L||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},O=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&A(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((I,L)=>{const P=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):L,q=R.slideLabelMessage.replace(/\{\{index\}\}/,P+1).replace(/\{\{slidesLength\}\}/,B);f(I,q)})},h=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&f(B,R.containerMessage);const I=e.wrapperEl,L=R.id||I.getAttribute("id")||`swiper-wrapper-${u(16)}`,P=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(I,L),v(I,P),O();let{nextEl:q,prevEl:z}=e.navigation?e.navigation:{};q=Je(q),z=Je(z),q&&q.forEach(ee=>x(ee,L,R.nextSlideMessage)),z&&z.forEach(ee=>x(ee,L,R.prevSlideMessage)),M()&&Je(e.pagination.el).forEach(re=>{re.addEventListener("keydown",w)}),Ht().addEventListener("visibilitychange",C),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",V,!0)};function W(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Je(R),B=Je(B),R&&R.forEach(L=>L.removeEventListener("keydown",w)),B&&B.forEach(L=>L.removeEventListener("keydown",w)),M()&&Je(e.pagination.el).forEach(P=>{P.removeEventListener("keydown",w)}),Ht().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",V,!0))}o("beforeInit",()=>{a=wi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&h()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&E()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&D()}),o("destroy",()=>{e.params.a11y.enabled&&W()})}function ji(t){let{swiper:e,extendParams:i,on:o,emit:a,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,g=new Date().getTime(),A,p,m,f,S,v,y;function b(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(y||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?A=!0:A&&(u=d,A=!1);const B=e.autoplay.paused?d:g+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},E=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(L=>L.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},k=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let I=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const L=E();!Number.isNaN(L)&&L>0&&typeof B>"u"&&(I=L,r=L,u=L),d=I;const P=e.params.speed,q=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(P,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,P,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(P,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,P,!0,!0),a("autoplay")),e.params.cssMode&&(g=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return I>0?(clearTimeout(s),s=setTimeout(()=>{q()},I)):requestAnimationFrame(()=>{q()}),I},M=()=>{g=new Date().getTime(),e.autoplay.running=!0,k(),a("autoplayStart")},D=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const L=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):T()};if(e.autoplay.paused=!0,I){S&&(d=e.params.autoplay.delay),S=!1,L();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-g),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),L())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ht();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},C=B=>{B.pointerType==="mouse"&&(v=!0,y=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.pointerType==="mouse"&&(y=!1,e.autoplay.paused&&T())},O=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",j))},h=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",j))},W=()=>{Ht().addEventListener("visibilitychange",V)},R=()=>{Ht().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(O(),W(),M())}),o("destroy",()=>{h(),R(),e.autoplay.running&&D()}),o("_freeModeStaticRelease",()=>{(m||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?D():x(!0,!0)}),o("beforeTransitionStart",(B,I,L)=>{e.destroyed||!e.autoplay.running||(L||!e.params.autoplay.disableOnInteraction?x(!0,!0):D())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){D();return}p=!0,m=!1,v=!1,f=setTimeout(()=>{v=!0,m=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(f),clearTimeout(s),e.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&e.params.cssMode&&T(),m=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:M,stop:D,pause:x,resume:T})}function es(t){let{swiper:e,extendParams:i,emit:o,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Kt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:g,rtlTranslate:A,snapGrid:p,touchEventsData:m}=e,S=Kt()-m.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(m.velocities.length>1){const D=m.velocities.pop(),x=m.velocities.pop(),T=D.position-x.position,V=D.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>150||Kt()-D.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,m.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const y=e.velocity*v;let b=e.translate+y;A&&(b=-b);let w=!1,E;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let M;if(b<e.maxTranslate())d.freeMode.momentumBounce?(b+e.maxTranslate()<-k&&(b=e.maxTranslate()-k),E=e.maxTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.maxTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(b>e.minTranslate())d.freeMode.momentumBounce?(b-e.minTranslate()>k&&(b=e.minTranslate()+k),E=e.minTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.minTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(d.freeMode.sticky){let D;for(let x=0;x<p.length;x+=1)if(p[x]>-b){D=x;break}Math.abs(p[D]-b)<Math.abs(p[D-1]-b)||e.swipeDirection==="next"?b=p[D]:b=p[D-1],b=-b}if(M&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(A?v=Math.abs((-b-e.translate)/e.velocity):v=Math.abs((b-e.translate)/e.velocity),d.freeMode.sticky){const D=Math.abs((A?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];D<x?v=d.speed:D<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(E),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,mn(g,()=>{!e||e.destroyed||!m.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(E),mn(g,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,mn(g,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}const ts=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=Ue();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(li,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[es,$a,Qi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=n.memo(ts);const is=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[g,A]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!g&&d.current&&(d.current.src="",d.current.src=i)};return At.on(vt.PAGE_DID_SHOW,p),()=>{At.off(vt.PAGE_DID_SHOW,p)}},[i,g]),n.createElement(n.Fragment,null,!g&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{A(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{A(!0),o?.(p.target)},alt:c}))});var Bt=n.memo(is);const ns=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Wt(),{popupCurTimeRef:u}=Ue(),d=(g,A)=>{if(s===A)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(A)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((g,A)=>{var p,m,f;return n.createElement(n.Fragment,null,g?.bindCta?n.createElement(Yt,{className:Fe.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(g,A)},key:A},n.createElement(Bt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===A?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(f=(p=g?.cover)!==null&&p!==void 0?p:(m=g?.homePage)===null||m===void 0?void 0:m[0])!==null&&f!==void 0?f:i})):null)})))};var Po=n.memo(ns);function Oo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),g=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!g){e(c);return}const A=c/r,p=.9,m=r>=900?r*.8:r*.79,f=A>=p&&A!==1,S=f?Math.round(m):c,v=r-Math.round(m);if(f){const y=document.querySelector("#onetrust-banner-sdk");y&&(y.style.bottom=`${v}px`);const b=document.createElement("style");b.id="onetrust-pc-sdk",b.setAttribute("type","text/css"),document.head.appendChild(b);const w=`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var wt=require("lodash"),qo=require("uuid"),Yo=require("pako"),n=require("react"),Hn=require("qs"),Go=require("eventemitter3"),Fe=require("@emotion/css"),zn=require("react-dom");function Zo(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var Un=Zo(zn);function rt(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function ht(t,e,i,o){function a(l){return l instanceof i?l:new i(function(s){s(l)})}return new(i||(i=Promise))(function(l,s){function c(d){try{u(o.next(d))}catch(g){s(g)}}function r(d){try{u(o.throw(d))}catch(g){s(g)}}function u(d){d.done?l(d.value):a(d.value).then(c,r)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ko=/:\w+/g;var Xn=(t,e)=>ht(void 0,void 0,void 0,function*(){const i={},o={};for(let a=0;a<e?.length;a++){const{id:l,method:s,url:c,urlParams:r,name:u,queryString:d,headers:g,body:A}=e[a];let p=c;r&&Object.entries(r).forEach(([m,f])=>{p=p.replace(Ko,S=>S===m?f:S)}),d&&(p+=d),o[l]=u;try{const m=yield fetch(p,{method:s,headers:Object.assign({"Content-Type":"application/json"},g),body:JSON.stringify(A)}).then(f=>f.json());i[l]=m}catch(m){console.error("DataSource request error: ",m),i[l]={}}}return{$store:i,idMapName:o}});const qn="SXP_TOKEN_INFO",Jo=(t,e)=>ht(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),a=t.getAppId(),l=t.getApiUrl(),s=window.localStorage.getItem(qn);let c=JSON.parse(s||"{}");if(Date.now()>((i=c?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":a||""}}).then(d=>d.json());if(u.success){const d=u.data;c=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(qn,JSON.stringify(c))}}return c});function zi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let a;if(e=e||i.length,t)for(a=0;a<t;a++)o[a]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(l=0|Math.random()*16,o[a]=i[a===19?l&3|8:l])}return o.join("")}const Qo=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let a=0;for(;a<t;)e+=i.charAt(Math.floor(Math.random()*o)),a+=1;return e},$o=()=>{const t=qo.v4();return t?.replaceAll?t.replaceAll("-",""):Qo(32)},De=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],a=e?.["fontFamily-en"];if(!o&&!a)return t;let l=t;const s=/[\u4e00-\u9fa5]/g,c=/[^\u4e00-\u9fa5]/g,r=`font-family:${o??"inherit"}`,u=`font-family:${a??"inherit"}`,d=A=>{const p=A.search(s),m=A.search(c);return p!==-1&&m!==-1&&p<m&&(i+=`<span style="${r}">${A.substring(p,m)}</span>`,l=A.substring(m,A?.length)),p!==-1&&m!==-1&&p>m&&(i+=`<span style="${u}">${A.substring(m,p)}</span>`,l=A.substring(p,A?.length)),p===-1?(i+=`<span style="${u}">${A.substring(m,A?.length)}</span>`,l="",!1):m===-1?(i+=`<span style="${r}">${A.substring(p,A?.length)}</span>`,l="",!1):!0};let g=!0;for(;g;)g=d(l);return i};function an(t){const i=document.cookie.split(";");let o=null;return i.forEach(a=>{const[l,s]=a.trim().split("=");l===t&&(o=s)}),o??""}function sn(){const t=self.navigator.userAgent;return t?/TalkBack/i.test(t)||/Funtouch/i.test(t)||/VoiceOver/i.test(t)||/NVDA/i.test(t)||/JAWS/i.test(t)||/ChromeVox/i.test(t):!1}function hi(t){if(!t)return;const e=[];for(let a=0;a<t.length;a++){const l=t[a],s=t.substring(a+1,t.length);l==="&"&&s?.indexOf("=")!==-1&&(s?.indexOf("=")<s?.indexOf("&")||s?.indexOf("&")===-1)&&e.push(a)}const i=e.length>0?[]:[t];let o=0;return e?.map(a=>{i?.push(t.substring(o,a)),o=a+1,a===e[e.length-1]&&a<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function el(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",a=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${a}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Xt(t){var e,i;const o=location.search.slice(1),a={};(e=hi(o.replace(/\+/g,"%2B")))===null||e===void 0||e.map(l=>{const s=l.split("=")[0],c=l.split("=")[1];a[s]=c});for(const l in a)a[l]=a[l].replace(/%2B/g,"+");return(i=a[t])!==null&&i!==void 0?i:""}function Yn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),a=Yo.inflate(o,{to:"string"});return JSON.parse(a)}let rn=null;const tl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class il{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,rn)return rn;rn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?tl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Rt=null;const nl={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Rt||(Rt=new il),o&&Rt.setApiUrl(o),Rt.setAppId(t),Rt.setTenantId(e),Rt.setEnv(i)},getDetail:t=>{if(!Rt)return;const e=Rt.getTenantId(),i=Rt.getAppId(),o=Rt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>ht(void 0,void 0,void 0,function*(){var l,s;const c=yield a.json(),r=Yn((l=c?.data)===null||l===void 0?void 0:l.data);if(r){const{$store:u}=yield Xn(o,(s=r?.dataSource)!==null&&s!==void 0?s:[]);c.data.data=r,Object.assign(c.data.data,{__STORE__:u})}return c}))},getSxpDetailByPageId:t=>ht(void 0,void 0,void 0,function*(){if(!Rt)return;const e=Rt.getTenantId(),i=Rt.getAppId(),o=Rt.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(a=>ht(void 0,void 0,void 0,function*(){var l;const s=yield a.json();return s.success?(l=s?.data)===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{data:Yn(r?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ht(void 0,void 0,void 0,function*(){if(!Rt)return;const e=yield Jo(Rt,t),i=zi(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");wt.isEmpty(o)&&(o=zi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const a=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:o,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return a?.data||null})};function ui(){return n.useContext(so)}function ol(){return n.useContext(ao)}const dn="feRealSessionIdKey",Gn=()=>{const t=$o();return`${Date.now()}${t}`},ll=()=>{let t=al();return t||(t=Gn(),window.localStorage.setItem(dn,t)),t},cn=()=>{const t=Gn();window.localStorage.setItem(dn,t)},al=()=>window.localStorage.getItem(dn),Zn="SXP_FAKE_USER_ID",Kn="FAKE_USER_STATE",Jn="AGREE_POLICY",Qn="SLIDE_SKIP_STATE",$n="CCONTSENT_STATE",eo="USER_CONSENT_RESULT",sl=()=>{let t=window.localStorage.getItem(Zn);return wt.isEmpty(t)&&(t=zi(36,62),window.localStorage.setItem(Zn,t)),t},rl=()=>{const t=window.localStorage.getItem(Kn);return wt.isEmpty(t)&&window.localStorage.setItem(Kn,"true"),wt.isEmpty(t)},dl=()=>{const t=window.localStorage.getItem(Qn);return wt.isEmpty(t)},cl=()=>{window.localStorage.setItem(Qn,"true")},ul=()=>{const t=window.localStorage.getItem($n);return wt.isEmpty(t)&&window.localStorage.setItem($n,"true"),wt.isEmpty(t)},to=()=>window.localStorage.getItem(eo)==="true",io=()=>{window.localStorage.setItem(eo,"true")};function Nt(t,e){const{appDomain:i}=Ue();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new Go;var vt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(vt||(vt={}));const vl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:a,privacy_policy_title:l})=>{const{setIsAgreePolicy:s,bffEventReport:c}=Ue(),r=n.useMemo(()=>{var g;const A=location.search.slice(1),p={};(g=hi(A.replace(/\+/g,"%2B")))===null||g===void 0||g.map(m=>{const f=m.split("=")[0],S=m.split("=")[1];p[f]=S});for(const m in p)p[m]=p[m].replace(/%2B/g,"+");return p},[]),u=g=>{var A;return(A=r[g])!==null&&A!==void 0?A:null};n.useEffect(()=>{c?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{c?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),s?.(!0),window.localStorage.setItem(Jn,"yes")};return n.createElement("div",{className:"consent-bg"},n.createElement("div",{className:"consent"},n.createElement("div",{className:"consent-col"},n.createElement("div",{className:"consent-title"},i??"Privacy Policy"),n.createElement("div",{className:"consent-content"},o??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),n.createElement("div",{className:"consent-col"},n.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:a?`https://${a}`:void 0},l??"More information"))))};var pl=n.memo(vl);const no=n.createContext({rtcList:[],tagList:[]});var un;(function(t){t[t.BFF=5]="BFF"})(un||(un={}));const Ui="FOR U",ml=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:a,defaultSize:l,isPreview:s=!1,sxpParameter:c,appDomain:r,hashTagSize:u,loadingImage:d,isOpenHashTag:g=!1,enabledMetaConversionApi:A=!1,consentHeight:p,consentWidth:m,isOpenConsent:f=!1,isEditor:S=!1,utmParameter:v,channelQueryList:y,data:b,dataList:w,isDiyH5:E,onUpdateSchema:k,onUpdateChannel:M})=>{var D,x,T,V,C;const[j,O]=n.useState([]),[h,W]=n.useState([]),[R,B]=n.useState(!0),[I,L]=n.useState({rtc:"",requestId:""}),P=n.useRef(null),q=n.useRef(!1),[z,X]=n.useState(()=>!!window.localStorage.getItem(Jn)),[ee,re]=n.useState(),[Ae,Q]=n.useState(),[le,ye]=n.useState(g),[Be,ce]=n.useState([]),[Me,Ee]=n.useState(0),[We,ze]=n.useState(!1),[$e,tt]=n.useState(null),et=n.useRef(),Oe=n.useRef(),dt=n.useRef(),[bt,Ct]=n.useState(Ui),Re=n.useRef(-1),He=n.useRef(null),[J,K]=n.useState(!1),[Y,ue]=n.useState((x=(D=b?.data)===null||D===void 0?void 0:D.sxpPageConf)===null||x===void 0?void 0:x.globalConfig),[pe,ke]=n.useState(),[U,F]=n.useState(!1),[je,qe]=n.useState(),[nt,pt]=n.useState(),[Ze,_e]=n.useState([]),[mt,gt]=n.useState(),[Tt,Jt]=n.useState(),_t=n.useMemo(()=>pe??b,[pe,b]),Pt=n.useRef(!1);n.useEffect(()=>{var H,_;ue((_=(H=b?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||_===void 0?void 0:_.globalConfig)},[b]);const Ot=n.useMemo(()=>{var H,_,te,he;return(((he=(te=(_=(H=Y?.consent)===null||H===void 0?void 0:H[0])===null||_===void 0?void 0:_.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!z&&!S||f)&&U},[z,Y,f,S,U]),ei=n.useCallback(H=>{M?.(H),pt(H)},[]),It=n.useCallback(H=>{var _;const te=H?.recList;return(_=te?.map(be=>{var ge,Te,Ne,Pe,Ve,N;if(!((ge=be?.video)===null||ge===void 0)&&ge.bindProducts&&((Ne=(Te=be?.video)===null||Te===void 0?void 0:Te.bindProducts)===null||Ne===void 0?void 0:Ne.length)>0){const G=(N=(Ve=(Pe=be?.video)===null||Pe===void 0?void 0:Pe.bindProducts)===null||Ve===void 0?void 0:Ve.filter(Z=>!!Z?.bindCta))!==null&&N!==void 0?N:[];return Object.assign(Object.assign({},be),{video:Object.assign(Object.assign({},be?.video),{bindProducts:G})})}return be}))!==null&&_!==void 0?_:[]},[]);n.useEffect(()=>{let H;return Ze.length>0&&(H=setInterval(()=>{const te=new Date,he=15*1e3;_e(be=>be.filter(ge=>te-ge.time<=he))},1e3)),()=>{clearInterval(H)}},[Ze]),n.useEffect(()=>{const H=_=>{et.current=_};return At.on(vt.CHANGE_THEME_TAG,H),()=>{At.off(vt.CHANGE_THEME_TAG,H)}},[]),n.useEffect(()=>{ye(g)},[g]);const Ye=n.useMemo(()=>e?.find(H=>H.type===un.BFF),[e]),xe=n.useMemo(()=>{var H;return((H=Ye?.headers)===null||H===void 0?void 0:H["x-app-id"])+sl()},[Ye]),se=()=>{var H,_;function te(ge){const Te=ge.match(/groups=([^&]+)/);if(!Te||!Te[1])return!1;const Pe=Te[1].split(",");for(const Ve of Pe){const[N,G]=Ve.split(":");if(N==="4")return G==="0"}return!1}function he(ge){var Te;const Pe=`; ${document.cookie}`.split(`; ${ge}=`);return Pe.length===2?(Te=Pe.pop())===null||Te===void 0?void 0:Te.split(";").shift():""}const be=decodeURIComponent((H=he("OptanonConsent"))!==null&&H!==void 0?H:"");return!!(window?.OnetrustActiveGroups&&((_=window?.OnetrustActiveGroups)===null||_===void 0?void 0:_.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(be))},me=n.useCallback((H,_,te=!0)=>{var he;if(!Ye)return;const be=Ye.url;if(_?.query){const Te=Hn.stringify(_.query);H=`${H}?${Te}`}const ge=location.search.slice(1);return(he=hi(ge))===null||he===void 0||he.forEach(Te=>{Te.split("=")[0],Te.split("=")[1]}),window.fetch(`${be}/api/${H}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":xe},Ye.headers),method:_.method,body:_.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},_.body),Ye.headers),{"x-user-id":xe}))))}):JSON.stringify(_.body)},_.type==="beacon"&&{keepalive:!0})).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[Ye,xe]),Ke=n.useCallback(H=>{var _;if(se())return Promise.resolve();const te={eventName:H?.eventName,eventSource:H?.eventSource};return me?.(`v1/data/collect/${(_=Ye?.headers)===null||_===void 0?void 0:_["x-app-id"]}/${H?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[me,Ye]);n.useEffect(()=>{const H=window.Image;window.Image=function(){const _=new H,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(_,"src",{set(he){if(!(se()&&(he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/")||he.includes("https://www.facebook.com/tr")))&&(te.set.call(this,he),he.includes("https://www.facebook.com/privacy_sandbox/pixel/register/trigger/"))){const be=new URL(he),ge=Object.fromEntries(be.searchParams.entries());Ke({eventName:ge?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),_}},[Ke]),n.useEffect(()=>{const H=navigator;if(!H.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const _=H.sendBeacon.bind(H);return H.sendBeacon=function(te,he){const be=te instanceof URL?te.href:te.toString();if(se()&&(be.includes("https://tr.snapchat.com/p")||be.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ge=_(te,he);function Te(Ne){return ht(this,void 0,void 0,function*(){return typeof Ne=="string"?JSON.parse(Ne):Ne instanceof Blob?JSON.parse(yield Ne.text()):Ne instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(Ne)):null})}return ge&&Promise.resolve().then(()=>ht(this,void 0,void 0,function*(){var Ne,Pe;try{const Ve=yield Te(he);be.includes("https://tr.snapchat.com/p")?(Pe=(Ne=Ve?.req)===null||Ne===void 0?void 0:Ne.forEach)===null||Pe===void 0||Pe.call(Ne,N=>{var G,Z;!((G=N?.t)===null||G===void 0)&&G.ev&&Ke({eventName:(Z=N?.t)===null||Z===void 0?void 0:Z.ev,eventSource:"Snapchat Pixel"})}):be.includes("https://analytics.tiktok.com/api/v2/pixel")&&Ve?.event&&Ke({eventName:Ve.event,eventSource:"TikTok Pixel"})}catch(Ve){console.error("\u76D1\u63A7\u5931\u8D25:",Ve)}})),ge},()=>{H.sendBeacon=_}},[Ke]),n.useEffect(()=>{const H=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){const _=this;if(_.action.includes("facebook.com/tr")){const te=new FormData(_),he={};for(const[be,ge]of te.entries())he[be]=ge;return Ke({eventName:he?.ev,eventSource:"Meta Pixel"}),H.call(_)}return H.call(_)}},[]),n.useEffect(()=>{const H=window.fetch;window.fetch=function(_,te){var he=arguments;return ht(this,void 0,void 0,function*(){var be;let ge;try{ge=typeof _=="string"?_:_ instanceof URL?_.href:_.url}catch(Te){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Te),H.apply(this,he)}try{if(se()&&(ge.includes("https://www.google-analytics.com/g/collect")||ge.includes("https://arms-retcode.aliyuncs.com/r.png")))return Promise.resolve(new Response(""));const Te=H.apply(this,he);if(ge.includes("https://www.google-analytics.com/g/collect")){const Ne=new URL(ge),Pe=Object.fromEntries(Ne.searchParams.entries()),Ve=(be=he[1])===null||be===void 0?void 0:be.body;if(Pe?.en)Ke({eventName:Pe?.en,eventSource:"Google Analytics"});else if(Ve){const G=function(Z){if(typeof Z!="string")return[];const ie=[],ae=/en=([^&\r\n]*)/g;let $;for(;($=ae.exec(Z))!==null;)ie.push(decodeURIComponent($[1]));return ie}(Ve);G?.forEach(Z=>{Ke({eventName:Z,eventSource:"Google Analytics"})})}}return Te}catch(Te){throw console.error(Te),Te}})}},[]),n.useEffect(()=>{const H=XMLHttpRequest.prototype.open,_=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,H.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(se()&&this._url&&typeof this._url=="string"&&(this._url.includes("https://rumcollector.uptime.com")||this._url.includes("https://arms-retcode.aliyuncs.com/r.png")||this._url.includes("https://i.giesswein.com/nb-collector")))){if(this._url&&typeof this._url=="string"&&this._url.includes("https://i.giesswein.com/nb-collector")&&te&&typeof te=="string")try{const be=JSON.parse(te);if(be&&Array.isArray(be.data)){const ge=be.data[((he=be.data)===null||he===void 0?void 0:he.length)-1];ge&&ge.e&&Ke({eventName:ge.e,eventSource:"Northbeam Pixel"})}}catch(be){console.error("Failed to parse Northbeam event from XHR",be)}_.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=H,XMLHttpRequest.prototype.send=_}},[Ke]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const jt=n.useCallback((H,_)=>{if(!Ye)return;const te=Ye.url;if(_?.query){const he=Hn.stringify(_.query);H=`${H}?${he}`}return window.fetch(`${te}/admin/${H}`,{headers:Object.assign({"Content-Type":"application/json"},Ye.headers),method:_.method,body:JSON.stringify(_.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Ye]),Zt=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie,ae;if(H=Object.assign(Object.assign({maxSize:(_=H?.maxSize)!==null&&_!==void 0?_:a,defaultSize:(te=H?.defaultSize)!==null&&te!==void 0?te:l,hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag,pageNum:H?.pageNum,contentFilter:H?.contentFilter,productFilter:H?.productFilter},Tt&&{chatlabsId:Tt}),E&&{type:"story"}),nt)H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(nt)});else if(i){const oe=(ge=(be=(he=hi(i))===null||he===void 0?void 0:he.filter(fe=>{var de,Se;const ne=fe.split("=")[0];return(Se=(de=v?.channels)!==null&&de!==void 0?de:[])===null||Se===void 0?void 0:Se.includes(ne)}))===null||be===void 0?void 0:be.join("&"))!==null&&ge!==void 0?ge:"";oe&&(H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(oe)}))}if(S){let oe=1;if(H=Object.assign(Object.assign(Object.assign({},H),{directPage:!0,level:1}),!i&&y&&y?.length>0&&{channel:y?.[0]}),!H?.channel||q.current)return;q.current=!0;let fe=[],de=null;const Se=ne=>ht(void 0,void 0,void 0,function*(){var Ie,at,ot,ct,lt,it;if(ne.pageNum=oe,de=yield jt?.("recommend/direct_page",{method:"POST",body:ne}),!de?.success)return;B(!1),fe=fe.concat((ct=(ot=(at=(Ie=de?.data)===null||Ie===void 0?void 0:Ie.recList)===null||at===void 0?void 0:at.filter)===null||ot===void 0?void 0:ot.call(at,Ge=>Ge?.product||Ge?.video))!==null&&ct!==void 0?ct:[]),j?.length===0&&(O(It(Object.assign(Object.assign({},de?.data),{recList:fe}))),ce(It(Object.assign(Object.assign({},de?.data),{recList:fe})))),((it=(lt=de?.data)===null||lt===void 0?void 0:lt.recList)===null||it===void 0?void 0:it.some(Ge=>Ge?.product||Ge?.video))&&(oe=oe+1,yield Se(ne))});return yield Se(H),!H?.hashTag&&de&&L({rtc:(Te=de?.data)===null||Te===void 0?void 0:Te.rtc,requestId:(Ne=de?.data)===null||Ne===void 0?void 0:Ne.requestId}),Object.assign(Object.assign({},de?.data),{recList:fe})}Y?.enablePreview&&(H=Object.assign(Object.assign({},H),{directPage:!0,level:1,pageNum:(Pe=H?.pageNum)!==null&&Pe!==void 0?Pe:1}));const $=yield me?.("v1/recommend/list",{method:"POST",body:H});if(!$?.success)return;H?.hashTag||L({rtc:$.data.rtc,requestId:$.data.requestId}),Y?.enablePreview&&!S&&(!((N=(Ve=$?.data)===null||Ve===void 0?void 0:Ve.recList)===null||N===void 0)&&N.some(fe=>fe?.product||fe?.video)||K(!0));let ve=[];return ve=ve.concat((ae=(ie=(Z=(G=$?.data)===null||G===void 0?void 0:G.recList)===null||Z===void 0?void 0:Z.filter)===null||ie===void 0?void 0:ie.call(Z,oe=>oe?.product||oe?.video))!==null&&ae!==void 0?ae:[]),Object.assign(Object.assign({},$.data),{recList:ve})}),[me,i,a,l,y,nt,Tt,jt]),nn=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be;if(j.length<=0)return;const ge=j?.[j?.length-1],Te=yield Zt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:Ae?.hashTag},((_=ge?.product)===null||_===void 0?void 0:_.itemId)&&{productFilter:[(te=ge?.product)===null||te===void 0?void 0:te.itemId]}),((he=ge?.video)===null||he===void 0?void 0:he.itemId)&&{contentFilter:[(be=ge?.video)===null||be===void 0?void 0:be.itemId]}),{themeTag:et.current}),Y?.enablePreview&&!S&&{pageNum:H}));return O(j.concat(It(Te))),ce(Be.concat(It(Te))),Te}),[Zt,j,Ae,Be]),bi=n.useCallback((H,_)=>{var te,he,be,ge,Te;let Ne=!1;const Pe=(he=(te=b?.data)===null||te===void 0?void 0:te.sxpPageConf)===null||he===void 0?void 0:he.globalConfig;if(!((be=Pe?.session)===null||be===void 0)&&be.enable){const Ve=localStorage.getItem("sessionStartTime"),N=Ve?JSON.parse(Ve):new Date().getTime();Math.floor((new Date().getTime()-N)/1e3/60)>=((Te=(ge=Pe?.session)===null||ge===void 0?void 0:ge.expires)!==null&&Te!==void 0?Te:30)&&(_?.("sessionTimeOut"),cn(),Oe.current=new Date,Ne=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else H&&cn();return Ne},[b]),xt=n.useCallback(({userInfo:H,eventInfo:_,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var be,ge;if(!o||Y?.enablePreview||he&&se())return;H||(H={});const Te=ll(),Ne={},Pe=location.search.slice(1);(be=hi(Pe))===null||be===void 0||be.forEach(ie=>{const ae=ie.split("=")[0],$=ie.split("=")[1];Ne[ae]=$});const Ve=Ne?.cl_source,N=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:I.rtc,requestId:I.requestId},{playbookType:mt}),je&&te&&{layoutVariantId:je}),_),_?.position&&nt&&{position:Number(_?.position)+1+""}),Ve&&{clSource:Ve}),G=Object.entries(H).map(([ie,ae])=>({name:ie,value:ae})),Z=Object.entries(N).map(([ie,ae])=>ae&&{name:ie,value:ae}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",N),console.log("========= \u7ED3\u675F ========="),me?.(`v2/cld/${(ge=Ye?.headers)===null||ge===void 0?void 0:ge["x-app-id"]}/${_?.eventSubject}${Ve?`/${decodeURIComponent(Ve)}`:""}`,{method:"POST",body:{userInfo:G,eventInfo:Z},type:"beacon"})},[me,I,o,Y?.enablePreview,je,Y,mt,Ye]),mi=n.useCallback(H=>{var _,te,he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie,ae,$,ve,oe,fe,{json:de,product:Se=[],rec:ne,contentType:Ie="post",position:at,eventName:ot}=H,ct=rt(H,["json","product","rec","contentType","position","eventName"]);const lt=wt.cloneDeep(de),it=new URLSearchParams(window.location.search),ft=it?.get("fbclid"),Ge={event_source_url:(_=window?.location)===null||_===void 0?void 0:_.href,external_id:xe,client_user_agent:(he=(te=window?.navigator)===null||te===void 0?void 0:te.userAgent)!==null&&he!==void 0?he:"",fbc:ft?`fb.2.${new Date().getTime()}.${ft}`:"",fbp:an("_fbp")?`${an("_fbp")}`:"",time:Math.floor(Date.now()/1e3)};let ut=Object.assign({content_ids:[(be=ne?.video)===null||be===void 0?void 0:be.itemId,...(ge=Se?.map(Ce=>Ce?.itemId))!==null&&ge!==void 0?ge:[]],content_type:Ie,content_name:(Te=ne?.video)===null||Te===void 0?void 0:Te.title,total_posts:j?.length,position:at,currency:(Ve=(Pe=(Ne=Se?.[0])===null||Ne===void 0?void 0:Ne.currency)===null||Pe===void 0?void 0:Pe.split("-"))===null||Ve===void 0?void 0:Ve[0],value:Se?.reduce((Ce,Xe)=>Ce+Xe?.price,0),contents:(N=Se?.map(Ce=>({id:Ce?.itemId,item_price:Ce?.price})))!==null&&N!==void 0?N:[],image_urls:(Z=(G=ne?.video)===null||G===void 0?void 0:G.imgUrls)!==null&&Z!==void 0?Z:[],video_urls:(ie=ne?.video)===null||ie===void 0?void 0:ie.url,headline:Xt("headline"),scene:Xt("scene"),campaign_id:Xt("campaign_id"),ad_id:Xt("ad_id"),utm_source:Xt("utm_source"),utm_medium:Xt("utm_medium"),utm_campaign:Xt("utm_campaign"),utm_content:Xt("utm_content")},ct);if(!(!((ae=ne?.video)===null||ae===void 0)&&ae.url)&&!(!((ve=($=ne?.video)===null||$===void 0?void 0:$.imgUrls)===null||ve===void 0)&&ve.length)&&ne?.product&&Array.isArray(Y?.productPost)&&((oe=Y?.productPost)===null||oe===void 0?void 0:oe.length)>0){const Ce=ne?.product,Xe={content_ids:[Ce?.itemId],content_type:"product",content_name:"",contents:[{id:Ce?.itemId,item_price:Ce?.price}],image_urls:(fe=Ce.homePage)!==null&&fe!==void 0?fe:[]};ut=Object.assign(Object.assign({},ut),Xe)}(ot==="ContentSwipe"||ot==="Engagement"||ot==="ExitFeed")&&["content_ids","content_category","currency","contents","image_urls","video_urls","prompt","value"].forEach(Xe=>{ut?.[Xe]&&delete ut[Xe]});const Et=/\{\{(.*?)\}\}/g,yt=Ce=>{if(Ce){if(Ce instanceof Array)Ce?.map(Xe=>yt(Xe));else for(const Xe in Ce)if(Object.prototype.hasOwnProperty.call(Ce,Xe)){const kt=Ce?.[Xe];if(typeof kt=="object")Xe==="custom_data"&&(Ce[Xe]=ut??{}),yt(kt);else if(typeof kt=="string"){const Qe=kt?.match(Et);Qe&&Qe.forEach(Lt=>{var Ft;const we=Lt.substring(2,Lt.length-2);try{let st=new Function("fix_par","product",`return ${we}`)(Ge,Se?.[0]);st?(we?.indexOf("currency")!==-1&&st?.indexOf("-")!==-1&&typeof st=="string"&&(st=(Ft=st?.split("-"))===null||Ft===void 0?void 0:Ft[0]),Ce[Xe]=st):delete Ce[Xe]}catch(st){delete Ce[Xe],console.error("An error occurred:",st?.message)}})}}}};return yt(lt),console.log("capi event params:",lt),lt},[xe,Y,j]),Fi=n.useCallback(H=>{var _,te,he,be,ge,Te,Ne,Pe,Ve,N,{eventName:G}=H,Z=rt(H,["eventName"]);if(!o||Y?.enablePreview||se())return;let ie=!1;const ae=(_=Y?.pixel)===null||_===void 0?void 0:_[G];if(ae?.event_name&&typeof window?.fbq=="function"){let oe=function(fe,de,Se){const ne=new RegExp("([?&])"+de+"=.*?(&|$)","i"),Ie=fe.indexOf("?")!==-1?"&":"?";return fe.match(ne)?fe.replace(ne,"$1"+de+"="+Se+"$2"):fe+Ie+de+"="+Se};if(G==="PageView"&&ae?.event_name==="PageView")if(!Pt.current)Pt.current=!0;else{const fe=window.location.href,de=oe(fe,"timestamp",Date.now());history.pushState({path:de},"",de),ie=!0}else window?.fbq("track",ae?.event_name,mi(Object.assign({json:ae,eventName:G},Z)))}if(!ie){G==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(te=Y?.tiktokPixel)===null||te===void 0?void 0:te[G];oe?.event_name&&typeof window?.ttq=="object"&&typeof((he=window?.ttq)===null||he===void 0?void 0:he.track)=="function"&&((be=window?.ttq)===null||be===void 0||be.track(oe?.event_name,mi(Object.assign({json:oe,eventName:G},Z))))}const $=(ge=Y?.snapchatPixel)===null||ge===void 0?void 0:ge[G];$?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",$?.event_name,mi(Object.assign({json:$,eventName:G},Z))),G==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Te=window?.Northbeam)===null||Te===void 0?void 0:Te.trackPageView)=="function"&&((Ne=window?.Northbeam)===null||Ne===void 0||Ne.trackPageView());const ve=(Pe=Y?.converApi)===null||Pe===void 0?void 0:Pe[G];if(A&&ve){const oe=mi(Object.assign({json:ve,eventName:G},Z)),fe={},de=location.search.slice(1);(Ve=hi(de))===null||Ve===void 0||Ve.forEach(ne=>{const Ie=ne.split("=")[0],at=ne.split("=")[1];fe[Ie]=at});const Se=fe?.cl_source;me?.(`v2/fb/${(N=Ye?.headers)===null||N===void 0?void 0:N["x-app-id"]}/${G}${Se?`/${decodeURIComponent(Se)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[me,o,A,Y,Ye,mi]),di=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/recommend/like",{method:"POST",body:H});return _?.success}),[me]),gi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/recommend/unlike",{method:"POST",body:H});return _?.success}),[me]),oi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/customform",{method:"POST",body:H});return _?.success}),[me]),zt=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){var _,te,he,be,ge,Te,Ne,Pe;const Ve=!!(!((he=(te=(_=H?.data)===null||_===void 0?void 0:_.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Ve))try{const N=(Te=(ge=(be=hi(i))===null||be===void 0?void 0:be.filter(Z=>{var ie,ae;const $=Z.split("=")[0];return(ae=(ie=v?.channels)!==null&&ie!==void 0?ie:[])===null||ae===void 0?void 0:ae.includes($)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Te!==void 0?Te:"",G=yield me?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(N)}});W((Pe=(Ne=G?.data)===null||Ne===void 0?void 0:Ne.tags)!==null&&Pe!==void 0?Pe:[])}catch(N){console.log("e",N)}}),[me,i]),Qt=n.useCallback((H,_,te,he,be,ge,Te)=>{var Ne,Pe,Ve,N,G,Z,ie,ae,$,ve,oe,fe,de,Se,ne,Ie,at,ot,ct,lt,it,ft,Ge,ut,Et,yt,Ce,Xe,kt,Qe,Lt,Ft,we,st,ti,fi;const Ut=te?.bindCta,ki=((Ne=_?.video)===null||Ne===void 0?void 0:Ne.bindProduct)||((Pe=_?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((N=(Ve=_?.video)===null||Ve===void 0?void 0:Ve.bindProducts)===null||N===void 0?void 0:N.length)>0;let ci="",Le=null;We?ci="hashTagPage":!((G=_?.video)===null||G===void 0)&&G.url?(ci="videoPage",Le="video"):!((ie=(Z=_?.video)===null||Z===void 0?void 0:Z.imgUrls)===null||ie===void 0)&&ie.length&&(ci="imagePage",Le="image");const Dt=(Se=(fe=(ae=te?.tags)!==null&&ae!==void 0?ae:(oe=(ve=($=_?.video)===null||$===void 0?void 0:$.bindProducts)===null||ve===void 0?void 0:ve[0])===null||oe===void 0?void 0:oe.tags)!==null&&fe!==void 0?fe:(de=_?.video)===null||de===void 0?void 0:de.tags)!==null&&Se!==void 0?Se:(ne=_?.product)===null||ne===void 0?void 0:ne.tags;xt?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(Ie=Ut?.itemId)!==null&&Ie!==void 0?Ie:"",ctaName:(at=Ut?.title)!==null&&at!==void 0?at:"",contentTags:Dt?JSON.stringify(Dt):"",position:he+"",contentId:(ct=(ot=_?.video)===null||ot===void 0?void 0:ot.itemId)!==null&&ct!==void 0?ct:"",productId:ki?te?.itemId:"",traceInfo:(ti=(Ft=(Ce=(Ge=(lt=Ut?.traceInfo)!==null&&lt!==void 0?lt:(ft=(it=_?.video)===null||it===void 0?void 0:it.bindCta)===null||ft===void 0?void 0:ft.traceInfo)!==null&&Ge!==void 0?Ge:(yt=(Et=(ut=_?.video)===null||ut===void 0?void 0:ut.bindProduct)===null||Et===void 0?void 0:Et.bindCta)===null||yt===void 0?void 0:yt.traceInfo)!==null&&Ce!==void 0?Ce:(Lt=(Qe=(kt=(Xe=_?.video)===null||Xe===void 0?void 0:Xe.bindProducts)===null||kt===void 0?void 0:kt[0])===null||Qe===void 0?void 0:Qe.bindCta)===null||Lt===void 0?void 0:Lt.traceInfo)!==null&&Ft!==void 0?Ft:(st=(we=_?.product)===null||we===void 0?void 0:we.bindCta)===null||st===void 0?void 0:st.traceInfo)!==null&&ti!==void 0?ti:"",fromKName:ci,fromKPage:(fi=location?.href)!==null&&fi!==void 0?fi:"",contentFormat:Le})})},[xt,We]),Mt=n.useCallback(()=>{var H,_;const te=new Date;Oe.current=te,xt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Xt("utm_source"),utmMedium:Xt("utm_medium"),utmCampaign:Xt("utm_campaign"),utmId:Xt("utm_id"),utmContent:Xt("utm_content"),enterTime:Math.floor(te/1e3)+"",requestId:null,enterUrl:(_=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&_!==void 0?_:""},reportLayId:!1})},[xt]),on=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){var H,_;const te=yield me?.("v1/account",{method:"GET"});return Jt((H=te?.data)===null||H===void 0?void 0:H.chatLabsId),((_=te?.data)===null||_===void 0?void 0:_.consentResult)==="true"}),[me]),Wi=n.useCallback(H=>ht(void 0,void 0,void 0,function*(){const _=yield me?.("v1/account/consent",{method:"POST",body:{consentResult:H}});return _?.success}),[me]);n.useEffect(()=>{Ot||Mt()},[Ot]),n.useEffect(()=>{if(Ot||s)return;B(!0);let H,_;Zt().then(te=>{var he,be,ge,Te,Ne,Pe,Ve,N,G,Z,ie;if(te){const ae=It(te);let $,ve;if(te?.layoutVariantId){H=te?.layoutVariantId,qe(te?.layoutVariantId);const oe=(be=(he=te?.layoutVariantId)===null||he===void 0?void 0:he.split("-"))===null||be===void 0?void 0:be[1];oe&&($=w?.find(fe=>fe?.id===oe),$?(ke($),document.title=(ge=$?.name)!==null&&ge!==void 0?ge:"home",ve=(Ne=(Te=$?.data)===null||Te===void 0?void 0:Te.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig,ue(ve),k?.($?.data),!((G=(N=(Ve=(Pe=ve?.consent)===null||Pe===void 0?void 0:Pe[0])===null||Ve===void 0?void 0:Ve.item)===null||N===void 0?void 0:N.props)===null||G===void 0)&&G.privacy_necessity&&F(!0)):F(!0))}else F(!0);if(nt||(ve?.playbook==="organic menu"||!ve&&Y?.playbook==="organic menu"?(gt("organicMenu"),ae.unshift("organic menu"),_="organicMenu"):(gt("paidMedia"),_="paidMedia")),O(ae),ce(ae),zt($??_t),nt){const oe=ae?.[0],fe=((Z=oe?.video)===null||Z===void 0?void 0:Z.traceInfo)||((ie=oe?.product)===null||ie===void 0?void 0:ie.traceInfo)||"";xt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:fe,branchfeed:nt},H&&{layoutVariantId:H})}),xt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:fe,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-dt?.current)/1e3)+""},H&&{layoutVariantId:H})})}}}).finally(()=>{xt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},H&&{layoutVariantId:H}),_&&{playbookType:_})}),B(!1)})},[Ot,nt]),n.useEffect(()=>{s&&(B(!0),zt(b),Zt().then(H=>{if(H){const _=It(H);Y?.playbook==="organic menu"&&!nt&&_.unshift("organic menu"),O(_),ce(_)}}).finally(()=>{B(!1)}))},[Zt,zt,nt]);const _i=Nt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return n.createElement(no.Provider,{value:{rtcList:j,setRtcList:O,mutateLike:di,mutateUnlike:gi,submitForm:oi,popupDetailData:ee,loadVideos:nn,setPopupDetailData:re,getRecommendVideos:Zt,bffEventReport:xt,isPreview:s,loading:R,sxpParameter:c,waterFallData:Ae,setWaterFallData:Q,ctaEvent:Qt,swiperRef:P,openHashtag:le,setOpenHashtag:ye,cacheRtcList:Be,setCacheRtcList:ce,cacheActiveIndex:Me,setCacheActiveIndex:Ee,isFromHashtag:We,setIsFromHashtag:ze,appDomain:r,hashTagSize:u,loadingImage:d??_i,isOpenHashTag:g,tagList:h,setLoading:B,videoRef:$e,setVideoRef:tt,bffFbReport:Fi,isAgreePolicy:z,setIsAgreePolicy:X,curTime:Oe,h5EnterLink:Mt,themeTag:et,isShowConsent:Ot,selectTag:bt,setSelectTag:Ct,globalConfig:Y,popupCurTimeRef:He,checkCommodityIndexRef:Re,isEditor:S,isNoMoreData:J,updateChannel:ei,channel:nt,eventTimeList:Ze,setEventTimeList:_e,multiPostTimeRef:dt,refreshFeSession:bi,getAccount:on,accountSonsent:Wi,isDiyH5:E,pixelPvStatusRef:Pt}},Ot?n.createElement(pl,Object.assign({},(C=(V=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||V===void 0?void 0:V.item)===null||C===void 0?void 0:C.props)):t({rtcList:j,mutateLike:di,mutateUnlike:gi,submitForm:oi,tagList:h,pageData:_t}))};var oo=n.memo(ml);function Ue(){return n.useContext(no)}var lo;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(lo||(lo={}));const ao=n.createContext({$store:{},options:[],configs:[]}),fl=({children:t,isSsr:e,enable:i})=>{const[o,a]=n.useState([]),{schema:l}=ui(),[s,c]=n.useState(l.__STORE__||{}),[r,u]=n.useState([]);n.useEffect(()=>{var A;e||wt.isEqual(r,l?.dataSource)||u((A=l?.dataSource)!==null&&A!==void 0?A:[])},[l?.dataSource,e]);const d=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){const{$store:A,idMapName:p}=yield Xn("",r);c(A),g(A,p)}),[r]),g=(A,p)=>{const m=[];Object.entries(A).forEach(([f,S])=>{Object.keys(S).forEach(v=>{const y={label:`${p[f]} - ${v}`,value:`{{ ${f}.${v} }}`};m.push(y)})}),a(m)};return n.useEffect(()=>{e||d()},[d,e,l]),i?n.createElement(ao.Provider,{value:{$store:l.__STORE__||s,options:o,configs:r}},t):t};var hl=n.memo(fl);const Xi={id:zi(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},vn={id:"",duration:0,name:"none"},so=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Xi],redoStack:[],popup:vn,setPopup:()=>{}}),ro=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:a=!0,utmVal:l},s)=>{const[c,r]=n.useState(null),[u,d]=n.useState(o||{pointData:[Xi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[g,A]=n.useState([Xi]),[p,m]=n.useState([[Xi]]),[f,S]=n.useState([]),[v,y]=n.useState(vn);typeof window<"u"&&(window.sxpPopup=(M,D)=>{y(Object.assign(Object.assign(Object.assign({},vn),{id:M}),D))}),typeof window<"u"&&(window.getJointUtmLink=M=>(cl(),M?.indexOf("?")!==-1?M+(l?"&"+l:""):M+(l?"?"+l:""))),n.useEffect(()=>{m([u.pointData]),S([])},[u.type]);const b=n.useCallback(M=>{const D=wt.cloneDeep(u);D&&(D.dataSource=M,d?.(D))},[u]),[w,E]=n.useState();n.useImperativeHandle(s,()=>({loadSchema(M){M&&(m([M.pointData]),d(M))},exportSchema(){return wt.cloneDeep(u)},getPageInfoData(){return w},initPageInfoData(M){M&&E(M)}}));const k=n.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return n.createElement(so.Provider,{value:{resolver:e,currentNode:c,schema:u,setCurrentNode:r,setSchema:d,saveDataSource:b,prePiontData:g,setPrePiontData:A,pageInfoData:w,setPageInfoData:M=>E(Object.assign(Object.assign({},w),M)),undoStack:p,redoStack:f,setRedoStack:S,setUndoStack:m,getCurPageConf:k,popup:v,setPopup:y}},n.createElement(hl,{isSsr:i,enable:a},t))});var Al=Object.freeze({__proto__:null,EditorCore:ro}),bl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],gl=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["textStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["textStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["textStyle","color"]},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u6807\u9898\u95F4\u8DDD",type:"TextSpace",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Select",name:["props","submitButtonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","submitButtonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C\u6837\u5F0F",type:"TextStyle",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u5BF9\u9F50",type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]},{label:"\u63D0\u4EA4\u6309\u94AE\u95F4\u8DDD",type:"TextSpace",name:["props","submitButtonStyle"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Wt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:a}=Ue(),l=n.useCallback((r,u,d,g,A,p)=>{var m,f,S,v,y,b,w,E,k,M,D,x,T,V,C,j,O,h,W,R,B,I,L,P,q,z,X,ee,re,Ae,Q,le,ye,Be,ce,Me,Ee,We;if(o?.findIndex(Oe=>Oe.target===r?.target)!==-1)return;r&&a?.(Oe=>[...Oe,{target:r?.target,time:new Date}]);let $e="";e&&(!((f=(m=u?.video)===null||m===void 0?void 0:m.bindProducts)===null||f===void 0)&&f.length||!((S=u?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=u?.video)===null||v===void 0)&&v.url?$e="videoPage":!((y=u?.video)===null||y===void 0)&&y.imgUrls&&(!((w=(b=u?.video)===null||b===void 0?void 0:b.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":u?.product&&($e="productPage");const tt=(V=(x=(E=d?.tags)!==null&&E!==void 0?E:(D=(M=(k=u?.video)===null||k===void 0?void 0:k.bindProducts)===null||M===void 0?void 0:M[0])===null||D===void 0?void 0:D.tags)!==null&&x!==void 0?x:(T=u?.video)===null||T===void 0?void 0:T.tags)!==null&&V!==void 0?V:(C=u?.product)===null||C===void 0?void 0:C.tags;let et=null;!((j=u?.video)===null||j===void 0)&&j.url?et="video":!((O=u?.video)===null||O===void 0)&&O.imgUrls&&(!((W=(h=u?.video)===null||h===void 0?void 0:h.imgUrls)===null||W===void 0)&&W.length)&&(et="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(R=d?.itemId)!==null&&R!==void 0?R:"",productName:(B=d?.title)!==null&&B!==void 0?B:"",price:d?.price?d?.price+"":"0",productCollection:(I=d?.collection)!==null&&I!==void 0?I:"",fromKName:$e,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:A+"",contentId:(P=(L=u?.video)===null||L===void 0?void 0:L.itemId)!==null&&P!==void 0?P:"",ctatId:(q=g?.itemId)!==null&&q!==void 0?q:"",traceInfo:(We=(ce=(ye=(re=(z=p??d?.traceInfo)!==null&&z!==void 0?z:(ee=(X=u?.video)===null||X===void 0?void 0:X.bindProduct)===null||ee===void 0?void 0:ee.traceInfo)!==null&&re!==void 0?re:(le=(Q=(Ae=u?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||Q===void 0?void 0:Q[0])===null||le===void 0?void 0:le.traceInfo)!==null&&ye!==void 0?ye:(Be=u?.product)===null||Be===void 0?void 0:Be.traceInfo)!==null&&ce!==void 0?ce:(Ee=(Me=u?.video)===null||Me===void 0?void 0:Me.bindCta)===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&We!==void 0?We:""},et&&{contentFormat:et})})},[t,e,i,o]),s=n.useCallback((r,u,d,g,A)=>{var p,m,f,S,v,y,b,w,E,k,M,D,x,T;let V="";e&&(!((m=(p=r?.video)===null||p===void 0?void 0:p.bindProducts)===null||m===void 0)&&m.length||!((f=r?.video)===null||f===void 0)&&f.bindProduct)?V="pdpPage":r?.product&&(V="productPage"),t?.({eventInfo:{productId:u?.itemId,productName:u?.title,price:u?.price?u?.price+"":"0",productCollection:u?.collection,fromKName:V,fromKPage:location?.href,contentTags:JSON.stringify(u?.tags),position:A+"",contentId:(S=r?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(D=(w=(v=u?.traceInfo)!==null&&v!==void 0?v:(b=(y=r?.video)===null||y===void 0?void 0:y.bindProduct)===null||b===void 0?void 0:b.traceInfo)!==null&&w!==void 0?w:(M=(k=(E=r?.video)===null||E===void 0?void 0:E.bindProducts)===null||k===void 0?void 0:k[0])===null||M===void 0?void 0:M.traceInfo)!==null&&D!==void 0?D:(x=r?.product)===null||x===void 0?void 0:x.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-g)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),c=n.useCallback((r,u,d,g)=>{u&&u===Ui&&t?.({eventInfo:{lastFeed:r,themeTags:d?`['${d}']`:"",hashTags:g?`['${g}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:c}}const yl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,a)=>n.createElement("div",{key:a,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&n.createElement("label",{className:"pb-appoint-form-container-label"},o?.title),o?.valueType==="text"&&n.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?o?.title:"\u8BF7\u8F93\u5165",name:o?.dataIndex},i&&{onChange:i})))));var wl=n.memo(yl);const Sl=t=>{var e,i,{columns:o,style:a,title:l,textStyle:s,submitBgColor:c,submitColor:r,submitText:u,layoutType:d="inline",isExternalLink:g,isPopup:A,onClick:p,onClose:m,submitButtonStyle:f}=t,S=rt(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:y}=Ue(),{jumpToWeb:b}=Wt(),[w,E]=n.useState(!1),[k,M]=n.useState({}),[D,x]=n.useState(0),T=n.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),V=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=n.useMemo(()=>wt.cloneDeep(o)||T,[o,T]),j=n.useCallback(h=>{const{name:W,value:R}=h.target;M(Object.assign(Object.assign({},k),{[W]:R}))},[k]),O=wt.debounce(h=>ht(void 0,void 0,void 0,function*(){var W,R,B,I,L;const P=k;if(!P)return;const q=(R=(W=Object.keys(P))===null||W===void 0?void 0:W.map(X=>{var ee;return{name:X,value:(ee=P[X])!==null&&ee!==void 0?ee:""}}))===null||R===void 0?void 0:R.filter(X=>X?.value);if(!q||!q?.length)return;E(!0);const z=yield v?.({attributes:q});if(E(!1),z){if(g){const X=y,ee=(B=X?.video)===null||B===void 0?void 0:B.bindProduct,re=(L=(I=X?.video)===null||I===void 0?void 0:I.bindProduct)===null||L===void 0?void 0:L.bindCta,Ae=y?.index;b(h,X,ee,re,Ae)}A||m?.(),p?.()}}),1e3);return n.useEffect(()=>{const h=()=>{var W,R;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((R=document?.body)===null||R===void 0?void 0:R.clientHeight))<V?x(50):x(0)};return window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}},[]),n.createElement("div",{className:"pb-appoint-form"},n.createElement("div",{className:`pb-appoint-form-title ${Fe.css(Object.assign({},s))}`,dangerouslySetInnerHTML:{__html:De(l,s)}}),n.createElement("div",Object.assign({className:Fe.css(Object.assign(Object.assign({},a),{marginTop:D}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(wl,{columns:C,layout:d,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":u,onClick:O,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:c},f),dangerouslySetInnerHTML:{__html:De(w?"loading...":u,f)}})))};var xl=n.memo(Sl);function St(t,e){return t.extend=e,t}const Tl=St(xl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:gl,bindableProps:[],interactionRender:bl},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var El=[{title:"\u5F39\u7A97\u80CC\u666F",child:[{type:"Number",label:"\u5DE6\u53F3\u8FB9\u8DDD",name:["props","popupBg","horizontalMargin"]},{type:"Number",label:"\u4E0B\u8FB9\u8DDD",name:["props","popupBg","bottomMargin"]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","popupBg","borderRadius"],max:100},{type:"Number",name:["props","popupBg","borderRadius"],addonAfter:"px",max:100}]}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5BBD\u9AD8\u6BD4",child:[{type:"Number",name:["props","commodityImgRatio","w"],addonAfter:"w"},{type:"Number",name:["props","commodityImgRatio","h"],addonAfter:"h"}]},{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"},{label:"\u5C45\u53F3",value:"right"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u591A\u5546\u54C1\u5207\u6362\u5668",child:[{type:"Switch",name:["props","commodityGroup","open"],label:"\u5FEB\u901F\u5207\u6362\u5F00\u5173"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","commodityGroup","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",name:["props","commodityGroup","style","marginTop"],type:"Number",addonAfter:"px",initialValue:20},{label:"\u4E0B\u8FB9\u8DDD",name:["props","commodityGroup","style","marginBottom"],type:"Number",addonAfter:"px"}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Select",name:["fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["color"]},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]},{label:"\u95F4\u8DDD",type:"TextSpace"},{label:"\u4EF7\u683C\u5343\u5206\u7B26\u5C55\u793A",type:"Switch",name:["enableFormattedPrice"],initialValue:!0,belong:"price"}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{label:"\u82F1\u6587\u5927\u5C0F\u5199",type:"Select",name:["props","buttonStyle","textTransform"],options:[{label:"\u9ED8\u8BA4",value:"unset"},{label:"\u5C0F\u5199",value:"lowercase"},{label:"\u5927\u5199",value:"uppercase"}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Select",name:["props","buttonStyle","fontFamily-cn"],bottomText:"\u4E2D\u6587\u5B57\u4F53"},{type:"Select",name:["props","buttonStyle","fontFamily-en"],bottomText:"\u82F1\u6587/\u5176\u4ED6\u5B57\u4F53"}]},{type:"Group",label:"",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","buttonStyle"]}]},{title:"Iframe\u5546\u54C1\u5F39\u7A97",child:[{label:"\u5F39\u7A97\u6309\u94AE",type:"Upload",name:["props","iframeIcon"],text:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A72 * 30"},{label:"\u80CC\u666F\u8272",type:"Color",name:["props","iframeBgColor"]}]},{title:"\u8F6E\u64AD\u6307\u793A\u5668",child:[{label:"\u80CC\u666F\u8272",name:["props","swiper","dotsBgColor"],type:"Color",initialValue:"rgba(0,0,0,.2)"},{label:"\u9009\u4E2D\u8272",name:["props","swiper","dotsActiveColor"],type:"Color",initialValue:"rgba(0,0,0,1)"},{label:"\u5E95\u8FB9\u8DDD",name:["props","swiper","dotsMarginBottom"],type:"Number",addonAfter:"px"}]},{title:"\u5173\u95ED\u6309\u94AE",child:[{label:"\u8DDF\u968F\u5F39\u7A97\u6EDA\u52A8",type:"Switch",name:["props","enableFixedCloseButton"]}]}],kl=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function co(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function pn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:co(e[i])&&co(t[i])&&Object.keys(e[i]).length>0&&pn(t[i],e[i])})}const uo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ht(){const t=typeof document<"u"?document:{};return pn(t,uo),t}const Il={document:uo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Vt(){const t=typeof window<"u"?window:{};return pn(t,Il),t}function vi(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Cl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function yi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Kt(){return Date.now()}function Pl(t){const e=Vt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Ol(t,e){e===void 0&&(e="x");const i=Vt();let o,a,l;const s=Pl(t);return i.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(c=>c.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(a==="none"?"":a)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?a=l.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?a=l.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function qi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function jl(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function qt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const o=i<0||arguments.length<=i?void 0:arguments[i];if(o!=null&&!jl(o)){const a=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,s=a.length;l<s;l+=1){const c=a[l],r=Object.getOwnPropertyDescriptor(o,c);r!==void 0&&r.enumerable&&(qi(t[c])&&qi(o[c])?o[c].__swiper__?t[c]=o[c]:qt(t[c],o[c]):!qi(t[c])&&qi(o[c])?(t[c]={},o[c].__swiper__?t[c]=o[c]:qt(t[c],o[c])):t[c]=o[c])}}}return t}function Yi(t,e,i){t.style.setProperty(e,i)}function vo(t){let{swiper:e,targetPosition:i,side:o}=t;const a=Vt(),l=-e.translate;let s=null,c;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);const u=i>l?"next":"prev",d=(A,p)=>u==="next"&&A>=p||u==="prev"&&A<=p,g=()=>{c=new Date().getTime(),s===null&&(s=c);const A=Math.max(Math.min((c-s)/r,1),0),p=.5-Math.cos(A*Math.PI)/2;let m=l+p*(i-l);if(d(m,i)&&(m=i),e.wrapperEl.scrollTo({[o]:m}),d(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:m})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(g)};g()}function ii(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Gi(t){try{console.warn(t);return}catch{}}function wi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:vi(e)),i}function po(t){const e=Vt(),i=Ht(),o=t.getBoundingClientRect(),a=i.body,l=t.clientTop||a.clientTop||0,s=t.clientLeft||a.clientLeft||0,c=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:o.top+c-l,left:o.left+r-s}}function Ll(t,e){const i=[];for(;t.previousElementSibling;){const o=t.previousElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function Ml(t,e){const i=[];for(;t.nextElementSibling;){const o=t.nextElementSibling;e?o.matches(e)&&i.push(o):i.push(o),t=o}return i}function pi(t,e){return Vt().getComputedStyle(t,null).getPropertyValue(e)}function Ii(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Zi(t,e){const i=[];let o=t.parentElement;for(;o;)e?o.matches(e)&&i.push(o):i.push(o),o=o.parentElement;return i}function mn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function fn(t,e,i){const o=Vt();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Je(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let hn;function Nl(){const t=Vt(),e=Ht();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function mo(){return hn||(hn=Nl()),hn}let An;function Dl(t){let{userAgent:e}=t===void 0?{}:t;const i=mo(),o=Vt(),a=o.navigator.platform,l=e||o.navigator.userAgent,s={ios:!1,android:!1},c=o.screen.width,r=o.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let d=l.match(/(iPad).*OS\s([\d_]+)/);const g=l.match(/(iPod)(.*OS\s([\d_]+))?/),A=!d&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=a==="Win32";let m=a==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&i.touch&&f.indexOf(`${c}x${r}`)>=0&&(d=l.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),u&&!p&&(s.os="android",s.android=!0),(d||A||g)&&(s.os="ios",s.ios=!0),s}function fo(t){return t===void 0&&(t={}),An||(An=Dl(t)),An}let bn;function Rl(){const t=Vt(),e=fo();let i=!1;function o(){const c=t.navigator.userAgent.toLowerCase();return c.indexOf("safari")>=0&&c.indexOf("chrome")<0&&c.indexOf("android")<0}if(o()){const c=String(t.navigator.userAgent);if(c.includes("Version/")){const[r,u]=c.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),s=l||a&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:s,isWebView:a}}function Vl(){return bn||(bn=Rl()),bn}function Bl(t){let{swiper:e,on:i,emit:o}=t;const a=Vt();let l=null,s=null;const c=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(g=>{s=a.requestAnimationFrame(()=>{const{width:A,height:p}=e;let m=A,f=p;g.forEach(S=>{let{contentBoxSize:v,contentRect:y,target:b}=S;b&&b!==e.el||(m=y?y.width:(v[0]||v).inlineSize,f=y?y.height:(v[0]||v).blockSize)}),(m!==A||f!==p)&&c()})}),l.observe(e.el))},u=()=>{s&&a.cancelAnimationFrame(s),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},d=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){r();return}a.addEventListener("resize",c),a.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),a.removeEventListener("resize",c),a.removeEventListener("orientationchange",d)})}function Fl(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=[],s=Vt(),c=function(d,g){g===void 0&&(g={});const A=s.MutationObserver||s.WebkitMutationObserver,p=new A(m=>{if(e.__preventObserver__)return;if(m.length===1){a("observerUpdate",m[0]);return}const f=function(){a("observerUpdate",m[0])};s.requestAnimationFrame?s.requestAnimationFrame(f):s.setTimeout(f,0)});p.observe(d,{attributes:typeof g.attributes>"u"?!0:g.attributes,childList:typeof g.childList>"u"?!0:g.childList,characterData:typeof g.characterData>"u"?!0:g.characterData}),l.push(p)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Zi(e.hostEl);for(let g=0;g<d.length;g+=1)c(d[g])}c(e.hostEl,{childList:e.params.observeSlideChildren}),c(e.wrapperEl,{attributes:!1})}},u=()=>{l.forEach(d=>{d.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",r),o("destroy",u)}var Wl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];e.apply(o,s)}return a.__emitterProxy=e,o.on(t,a,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const o=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[o](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(o=>{typeof e>"u"?i.eventsListeners[o]=[]:i.eventsListeners[o]&&i.eventsListeners[o].forEach((a,l)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[o].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,o;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),o=t):(e=l[0].events,i=l[0].data,o=l[0].context||t),i.unshift(o),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(o,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(o,i)})}),t}};function _l(){const t=this;let e,i;const o=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=o.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=o.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(pi(o,"padding-left")||0,10)-parseInt(pi(o,"padding-right")||0,10),i=i-parseInt(pi(o,"padding-top")||0,10)-parseInt(pi(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Hl(){const t=this;function e(T,V){return parseFloat(T.getPropertyValue(t.getDirectionLabel(V))||0)}const i=t.params,{wrapperEl:o,slidesEl:a,size:l,rtlTranslate:s,wrongRTL:c}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,d=ii(a,`.${t.params.slideClass}, swiper-slide`),g=r?t.virtual.slides.length:d.length;let A=[];const p=[],m=[];let f=i.slidesOffsetBefore;typeof f=="function"&&(f=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,y=t.slidesGrid.length;let b=i.spaceBetween,w=-f,E=0,k=0;if(typeof l>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*l:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,d.forEach(T=>{s?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Yi(o,"--swiper-centered-offset-before",""),Yi(o,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&t.grid;M?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let D;const x=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<g;T+=1){D=0;let V;if(d[T]&&(V=d[T]),M&&t.grid.updateSlide(T,V,d),!(d[T]&&pi(V,"display")==="none")){if(i.slidesPerView==="auto"){x&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(V),j=V.style.transform,O=V.style.webkitTransform;if(j&&(V.style.transform="none"),O&&(V.style.webkitTransform="none"),i.roundLengths)D=t.isHorizontal()?fn(V,"width",!0):fn(V,"height",!0);else{const h=e(C,"width"),W=e(C,"padding-left"),R=e(C,"padding-right"),B=e(C,"margin-left"),I=e(C,"margin-right"),L=C.getPropertyValue("box-sizing");if(L&&L==="border-box")D=h+B+I;else{const{clientWidth:P,offsetWidth:q}=V;D=h+W+R+B+I+(q-P)}}j&&(V.style.transform=j),O&&(V.style.webkitTransform=O),i.roundLengths&&(D=Math.floor(D))}else D=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(D=Math.floor(D)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${D}px`);d[T]&&(d[T].swiperSlideSize=D),m.push(D),i.centeredSlides?(w=w+D/2+E/2+b,E===0&&T!==0&&(w=w-l/2-b),T===0&&(w=w-l/2-b),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),k%i.slidesPerGroup===0&&A.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&A.push(w),p.push(w),w=w+D+b),t.virtualSize+=D+b,E=D,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+S,s&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(o.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(o.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),M&&t.grid.updateWrapperSize(D,A),!i.centeredSlides){const T=[];for(let V=0;V<A.length;V+=1){let C=A[V];i.roundLengths&&(C=Math.floor(C)),A[V]<=t.virtualSize-l&&T.push(C)}A=T,Math.floor(t.virtualSize-l)-Math.floor(A[A.length-1])>1&&A.push(t.virtualSize-l)}if(r&&i.loop){const T=m[0]+b;if(i.slidesPerGroup>1){const V=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let j=0;j<V;j+=1)A.push(A[A.length-1]+C)}for(let V=0;V<t.virtual.slidesBefore+t.virtual.slidesAfter;V+=1)i.slidesPerGroup===1&&A.push(A[A.length-1]+T),p.push(p[p.length-1]+T),t.virtualSize+=T}if(A.length===0&&(A=[0]),b!==0){const T=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");d.filter((V,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(V=>{V.style[T]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const V=T-l;A=A.map(C=>C<=0?-f:C>V?V+S:C)}if(i.centerInsufficientSlides){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const V=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+V<l){const C=(l-T-V)/2;A.forEach((j,O)=>{A[O]=j-C}),p.forEach((j,O)=>{p[O]=j+C})}}if(Object.assign(t,{slides:d,snapGrid:A,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Yi(o,"--swiper-centered-offset-before",`${-A[0]}px`),Yi(o,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const T=-t.snapGrid[0],V=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+V)}if(g!==u&&t.emit("slidesLengthChange"),A.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==y&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,V=t.el.classList.contains(T);g<=i.maxBackfaceHiddenSlides?V||t.el.classList.add(T):V&&t.el.classList.remove(T)}}function zl(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let a=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const s=c=>o?e.slides[e.getSlideIndexByData(c)]:e.slides[c];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(c=>{i.push(c)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const c=e.activeIndex+l;if(c>e.slides.length&&!o)break;i.push(s(c))}else i.push(s(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const c=i[l].offsetHeight;a=c>a?c:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Ul(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let o=0;o<e.length;o+=1)e[o].swiperSlideOffset=(t.isHorizontal()?e[o].offsetLeft:e[o].offsetTop)-i-t.cssOverflowAdjustment()}const ho=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Xl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:a,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;a&&(s=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let c=i.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c));for(let r=0;r<o.length;r+=1){const u=o[r];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=o[0].swiperSlideOffset);const g=(s+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),A=(s-l[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+c),p=-(s-d),m=p+e.slidesSizesGrid[r],f=p>=0&&p<=e.size-e.slidesSizesGrid[r],S=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;S&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r)),ho(u,S,i.slideVisibleClass),ho(u,f,i.slideFullyVisibleClass),u.progress=a?-g:g,u.originalProgress=a?-A:A}}function ql(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:l,isEnd:s,progressLoop:c}=e;const r=l,u=s;if(o===0)a=0,l=!0,s=!0;else{a=(t-e.minTranslate())/o;const d=Math.abs(t-e.minTranslate())<1,g=Math.abs(t-e.maxTranslate())<1;l=d||a<=0,s=g||a>=1,d&&(a=0),g&&(a=1)}if(i.loop){const d=e.getSlideIndexByData(0),g=e.getSlideIndexByData(e.slides.length-1),A=e.slidesGrid[d],p=e.slidesGrid[g],m=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=A?c=(f-A)/m:c=(f+m-p)/m,c>1&&(c-=1)}Object.assign(e,{progress:a,progressLoop:c,isBeginning:l,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!r&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(r&&!l||u&&!s)&&e.emit("fromEdge"),e.emit("progress",a)}const gn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Yl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:a}=t,l=t.virtual&&i.virtual.enabled,s=t.grid&&i.grid&&i.grid.rows>1,c=g=>ii(o,`.${i.slideClass}${g}, swiper-slide${g}`)[0];let r,u,d;if(l)if(i.loop){let g=a-t.virtual.slidesBefore;g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),r=c(`[data-swiper-slide-index="${g}"]`)}else r=c(`[data-swiper-slide-index="${a}"]`);else s?(r=e.filter(g=>g.column===a)[0],d=e.filter(g=>g.column===a+1)[0],u=e.filter(g=>g.column===a-1)[0]):r=e[a];r&&(s||(d=Ml(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),u=Ll(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]))),e.forEach(g=>{gn(g,g===r,i.slideActiveClass),gn(g,g===d,i.slideNextClass),gn(g,g===u,i.slidePrevClass)}),t.emitSlidesClasses()}const Ki=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,o=e.closest(i());if(o){let a=o.querySelector(`.${t.params.lazyPreloaderClass}`);!a&&t.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},yn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},wn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const o=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=a,c=[s-e];c.push(...Array.from({length:e}).map((r,u)=>s+o+u)),t.slides.forEach((r,u)=>{c.includes(r.column)&&yn(t,u)});return}const l=a+o-1;if(t.params.rewind||t.params.loop)for(let s=a-e;s<=l+e;s+=1){const c=(s%i+i)%i;(c<a||c>l)&&yn(t,c)}else for(let s=Math.max(a-e,0);s<=Math.min(l+e,i-1);s+=1)s!==a&&(s>l||s<a)&&yn(t,s)};function Gl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let a;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?o>=e[l]&&o<e[l+1]-(e[l+1]-e[l])/2?a=l:o>=e[l]&&o<e[l+1]&&(a=l+1):o>=e[l]&&(a=l);return i.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Zl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:s,snapIndex:c}=e;let r=t,u;const d=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof r>"u"&&(r=Gl(e)),o.indexOf(i)>=0)u=o.indexOf(i);else{const p=Math.min(a.slidesPerGroupSkip,r);u=p+Math.floor((r-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),r===l&&!e.params.loop){u!==c&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const g=e.grid&&a.grid&&a.grid.rows>1;let A;if(e.virtual&&a.virtual.enabled&&a.loop)A=d(r);else if(g){const p=e.slides.filter(f=>f.column===r)[0];let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),A=Math.floor(m/a.grid.rows)}else if(e.slides[r]){const p=e.slides[r].getAttribute("data-swiper-slide-index");p?A=parseInt(p,10):A=r}else A=r;Object.assign(e,{previousSnapIndex:c,snapIndex:u,previousRealIndex:s,realIndex:A,previousIndex:l,activeIndex:r}),e.initialized&&wn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(s!==A&&e.emit("realIndexChange"),e.emit("slideChange"))}function Kl(t,e){const i=this,o=i.params;let a=t.closest(`.${o.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(c=>{!a&&c.matches&&c.matches(`.${o.slideClass}, swiper-slide`)&&(a=c)});let l=!1,s;if(a){for(let c=0;c<i.slides.length;c+=1)if(i.slides[c]===a){l=!0,s=c;break}}if(a&&l)i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=s;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Jl={updateSize:_l,updateSlides:Hl,updateAutoHeight:zl,updateSlidesOffset:Ul,updateSlidesProgress:Xl,updateProgress:ql,updateSlidesClasses:Yl,updateActiveIndex:Zl,updateClickedSlide:Kl};function Ql(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:a,wrapperEl:l}=e;if(i.virtualTranslate)return o?-a:a;if(i.cssMode)return a;let s=Ol(l,t);return s+=e.cssOverflowAdjustment(),o&&(s=-s),s||0}function $l(t,e){const i=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:s}=i;let c=0,r=0;const u=0;i.isHorizontal()?c=o?-t:t:r=t,a.roundLengths&&(c=Math.floor(c),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:r,a.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-r:a.virtualTranslate||(i.isHorizontal()?c-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${c}px, ${r}px, ${u}px)`);let d;const g=i.maxTranslate()-i.minTranslate();g===0?d=0:d=(t-i.minTranslate())/g,d!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function ea(){return-this.snapGrid[0]}function ta(){return-this.snapGrid[this.snapGrid.length-1]}function ia(t,e,i,o,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),o===void 0&&(o=!0);const l=this,{params:s,wrapperEl:c}=l;if(l.animating&&s.preventInteractionOnTransition)return!1;const r=l.minTranslate(),u=l.maxTranslate();let d;if(o&&t>r?d=r:o&&t<u?d=u:d=t,l.updateProgress(d),s.cssMode){const g=l.isHorizontal();if(e===0)c[g?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return vo({swiper:l,targetPosition:-d,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(d),i&&(l.emit("beforeTransitionStart",e,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(A){!l||l.destroyed||A.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var na={getTranslate:Ql,setTranslate:$l,minTranslate:ea,maxTranslate:ta,translateTo:ia};function oa(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function Ao(t){let{swiper:e,runCallbacks:i,direction:o,step:a}=t;const{activeIndex:l,previousIndex:s}=e;let c=o;if(c||(l>s?c="next":l<s?c="prev":c="reset"),e.emit(`transition${a}`),i&&l!==s){if(c==="reset"){e.emit(`slideResetTransition${a}`);return}e.emit(`slideChangeTransition${a}`),c==="next"?e.emit(`slideNextTransition${a}`):e.emit(`slidePrevTransition${a}`)}}function la(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),Ao({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function aa(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),Ao({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var sa={setTransition:oa,transitionStart:la,transitionEnd:aa};function ra(t,e,i,o,a){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let s=t;s<0&&(s=0);const{params:c,snapGrid:r,slidesGrid:u,previousIndex:d,activeIndex:g,rtlTranslate:A,wrapperEl:p,enabled:m}=l;if(!m&&!o&&!a||l.destroyed||l.animating&&c.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const f=Math.min(l.params.slidesPerGroupSkip,s);let S=f+Math.floor((s-f)/l.params.slidesPerGroup);S>=r.length&&(S=r.length-1);const v=-r[S];if(c.normalizeSlideIndex)for(let b=0;b<u.length;b+=1){const w=-Math.floor(v*100),E=Math.floor(u[b]*100),k=Math.floor(u[b+1]*100);typeof u[b+1]<"u"?w>=E&&w<k-(k-E)/2?s=b:w>=E&&w<k&&(s=b+1):w>=E&&(s=b)}if(l.initialized&&s!==g&&(!l.allowSlideNext&&(A?v>l.translate&&v>l.minTranslate():v<l.translate&&v<l.minTranslate())||!l.allowSlidePrev&&v>l.translate&&v>l.maxTranslate()&&(g||0)!==s))return!1;s!==(d||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;if(s>g?y="next":s<g?y="prev":y="reset",A&&-v===l.translate||!A&&v===l.translate)return l.updateActiveIndex(s),c.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),c.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(i,y),l.transitionEnd(i,y)),!1;if(c.cssMode){const b=l.isHorizontal(),w=A?v:-v;if(e===0){const E=l.virtual&&l.params.virtual.enabled;E&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),E&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[b?"scrollLeft":"scrollTop"]=w})):p[b?"scrollLeft":"scrollTop"]=w,E&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return vo({swiper:l,targetPosition:w,side:b?"left":"top"}),!0;p.scrollTo({[b?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(v),l.updateActiveIndex(s),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,o),l.transitionStart(i,y),e===0?l.transitionEnd(i,y):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,y))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function da(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let c;if(l){const A=s*a.params.grid.rows;c=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else c=a.getSlideIndexByData(s);const r=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u}=a.params;let d=a.params.slidesPerView;d==="auto"?d=a.slidesPerViewDynamic():(d=Math.ceil(parseFloat(a.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let g=r-c<d;if(u&&(g=g||c<Math.ceil(d/2)),o&&u&&a.params.slidesPerView!=="auto"&&!l&&(g=!1),g){const A=u?c<a.activeIndex?"prev":"next":c-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:A,slideTo:!0,activeSlideIndex:A==="next"?c+1:c-r+1,slideRealIndex:A==="next"?a.realIndex:void 0})}if(l){const A=s*a.params.grid.rows;s=a.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,e,i,o)}),a}function ca(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:a,params:l,animating:s}=o;if(!a||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let c=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(c=Math.max(o.slidesPerViewDynamic("current",!0),1));const r=o.activeIndex<l.slidesPerGroupSkip?1:c,u=o.virtual&&l.virtual.enabled;if(l.loop){if(s&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+r,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+r,t,e,i)}function ua(t,e,i){e===void 0&&(e=!0);const o=this,{params:a,snapGrid:l,slidesGrid:s,rtlTranslate:c,enabled:r,animating:u}=o;if(!r||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const g=c?o.translate:-o.translate;function A(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=A(g),m=l.map(v=>A(v));let f=l[m.indexOf(p)-1];if(typeof f>"u"&&a.cssMode){let v;l.forEach((y,b)=>{p>=y&&(v=b)}),typeof v<"u"&&(f=l[v>0?v-1:v])}let S=0;if(typeof f<"u"&&(S=s.indexOf(f),S<0&&(S=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),a.rewind&&o.isBeginning){const v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,t,e,i)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function va(t,e,i){e===void 0&&(e=!0);const o=this;if(!o.destroyed)return typeof t>"u"&&(t=o.params.speed),o.slideTo(o.activeIndex,t,e,i)}function pa(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);let l=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,l),c=s+Math.floor((l-s)/a.params.slidesPerGroup),r=a.rtlTranslate?a.translate:-a.translate;if(r>=a.snapGrid[c]){const u=a.snapGrid[c],d=a.snapGrid[c+1];r-u>(d-u)*o&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[c-1],d=a.snapGrid[c];r-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,t,e,i)}function ma(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,l;const s=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;l=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=t.getSlideIndex(ii(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),yi(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=t.getSlideIndex(ii(i,`${s}[data-swiper-slide-index="${l}"]`)[0]),yi(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var fa={slideTo:ra,slideToLoop:da,slideNext:ca,slidePrev:ua,slideReset:va,slideToClosest:pa,slideToClickedSlide:ma};function ha(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const a=()=>{ii(o,`.${i.slideClass}, swiper-slide`).forEach((g,A)=>{g.setAttribute("data-swiper-slide-index",A)})},l=e.grid&&i.grid&&i.grid.rows>1,s=i.slidesPerGroup*(l?i.grid.rows:1),c=e.slides.length%s!==0,r=l&&e.slides.length%i.grid.rows!==0,u=d=>{for(let g=0;g<d;g+=1){const A=e.isElement?wi("swiper-slide",[i.slideBlankClass]):wi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(A)}};if(c){if(i.loopAddBlankSlides){const d=s-e.slides.length%s;u(d),e.recalcSlides(),e.updateSlides()}else Gi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(r){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else Gi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Aa(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:a,activeSlideIndex:l,byController:s,byMousewheel:c}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:g,slidesEl:A,params:p}=r,{centeredSlides:m}=p;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):p.centeredSlides&&r.snapIndex<p.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=d,r.allowSlideNext=g,r.emit("loopFix");return}let f=p.slidesPerView;f==="auto"?f=r.slidesPerViewDynamic():(f=Math.ceil(parseFloat(p.slidesPerView,10)),m&&f%2===0&&(f=f+1));const S=p.slidesPerGroupAuto?f:p.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=p.loopAdditionalSlides,r.loopedSlides=v;const y=r.grid&&p.grid&&p.grid.rows>1;u.length<f+v?Gi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&p.grid.fill==="row"&&Gi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let E=r.activeIndex;typeof l>"u"?l=r.getSlideIndex(u.filter(j=>j.classList.contains(p.slideActiveClass))[0]):E=l;const k=o==="next"||!o,M=o==="prev"||!o;let D=0,x=0;const T=y?Math.ceil(u.length/p.grid.rows):u.length,C=(y?u[l].column:l)+(m&&typeof a>"u"?-f/2+.5:0);if(C<v){D=Math.max(v-C,S);for(let j=0;j<v-C;j+=1){const O=j-Math.floor(j/T)*T;if(y){const h=T-O-1;for(let W=u.length-1;W>=0;W-=1)u[W].column===h&&b.push(W)}else b.push(T-O-1)}}else if(C+f>T-v){x=Math.max(C-(T-v*2),S);for(let j=0;j<x;j+=1){const O=j-Math.floor(j/T)*T;y?u.forEach((h,W)=>{h.column===O&&w.push(W)}):w.push(O)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),M&&b.forEach(j=>{u[j].swiperLoopMoveDOM=!0,A.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{u[j].swiperLoopMoveDOM=!0,A.append(u[j]),u[j].swiperLoopMoveDOM=!1}),r.recalcSlides(),p.slidesPerView==="auto"?r.updateSlides():y&&(b.length>0&&M||w.length>0&&k)&&r.slides.forEach((j,O)=>{r.grid.updateSlide(O,j,r.slides)}),p.watchSlidesProgress&&r.updateSlidesOffset(),i){if(b.length>0&&M){if(typeof e>"u"){const j=r.slidesGrid[E],h=r.slidesGrid[E+D]-j;c?r.setTranslate(r.translate-h):(r.slideTo(E+Math.ceil(D),0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-h,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-h))}else if(a){const j=y?b.length/p.grid.rows:b.length;r.slideTo(r.activeIndex+j,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(w.length>0&&k)if(typeof e>"u"){const j=r.slidesGrid[E],h=r.slidesGrid[E-x]-j;c?r.setTranslate(r.translate-h):(r.slideTo(E-x,0,!1,!0),a&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-h,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-h))}else{const j=y?w.length/p.grid.rows:w.length;r.slideTo(r.activeIndex-j,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=g,r.controller&&r.controller.control&&!s){const j={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:l,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...j,slideTo:O.params.slidesPerView===p.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...j,slideTo:r.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}r.emit("loopFix")}function ba(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const o=[];t.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ga={loopCreate:ha,loopFix:Aa,loopDestroy:ba};function ya(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function wa(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Sa={setGrabCursor:ya,unsetGrabCursor:wa};function xa(t,e){e===void 0&&(e=this);function i(o){if(!o||o===Ht()||o===Vt())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(t);return!a&&!o.getRootNode?null:a||i(o.getRootNode().host)}return i(e)}function bo(t,e,i){const o=Vt(),{params:a}=t,l=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return l&&(i<=s||i>=o.innerWidth-s)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Ta(t){const e=this,i=Ht();let o=t;o.originalEvent&&(o=o.originalEvent);const a=e.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){bo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:s,enabled:c}=e;if(!c||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let r=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(r=d[0]);const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,A=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(A?xa(g,r):r.closest(g))){e.allowClick=!0;return}if(l.swipeHandler&&!r.closest(l.swipeHandler))return;s.currentX=o.pageX,s.currentY=o.pageY;const p=s.currentX,m=s.currentY;if(!bo(e,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=m,a.touchStartTime=Kt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let f=!0;r.matches(a.focusableElements)&&(f=!1,r.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const S=f&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!r.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function Ea(t){const e=Ht(),i=this,o=i.touchEventsData,{params:a,touches:l,rtlTranslate:s,enabled:c}=i;if(!c||!a.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(o.touchId!==null||r.pointerId!==o.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(k=>k.identifier===o.touchId)[0],!u||u.identifier!==o.touchId)return}else u=r;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=u.pageX,g=u.pageY;if(r.preventedByNestedSwiper){l.startX=d,l.startY=g;return}if(!i.allowTouchMove){r.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:g,currentX:d,currentY:g}),o.touchStartTime=Kt());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(g<l.startY&&i.translate<=i.maxTranslate()||g>l.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(d<l.startX&&i.translate<=i.maxTranslate()||d>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",r),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=g;const A=l.currentX-l.startX,p=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(A**2+p**2)<i.params.threshold)return;if(typeof o.isScrolling>"u"){let k;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:A*A+p*p>=25&&(k=Math.atan2(Math.abs(p),Math.abs(A))*180/Math.PI,o.isScrolling=i.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",r),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||r.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&r.cancelable&&r.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&r.stopPropagation();let m=i.isHorizontal()?A:p,f=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(m=Math.abs(m)*(s?1:-1),f=Math.abs(f)*(s?1:-1)),l.diff=m,m*=a.touchRatio,s&&(m=-m,f=-f);const S=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=f>0?"prev":"next";const v=i.params.loop&&!a.cssMode,y=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!o.isMoved){if(v&&y&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}o.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&y&&Math.abs(m)>=1){Object.assign(l,{startX:d,startY:g,currentX:d,currentY:g,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",r),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let w=!0,E=a.resistanceRatio;if(a.touchReleaseOnEdges&&(E=0),m>0?(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+m)**E))):m<0&&(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-m)**E))),w&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(m)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function ka(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].filter(E=>E.identifier===i.touchId)[0],!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:s,touches:c,rtlTranslate:r,slidesGrid:u,enabled:d}=e;if(!d||!s.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=Kt(),A=g-i.touchStartTime;if(e.allowClick){const E=o.path||o.composedPath&&o.composedPath();e.updateClickedSlide(E&&E[0]||o.target,E),e.emit("tap click",o),A<300&&g-i.lastClickTime<300&&e.emit("doubleTap doubleClick",o)}if(i.lastClickTime=Kt(),yi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let p;if(s.followFinger?p=r?e.translate:-e.translate:p=-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let f=0,S=e.slidesSizesGrid[0];for(let E=0;E<u.length;E+=E<s.slidesPerGroupSkip?1:s.slidesPerGroup){const k=E<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof u[E+k]<"u"?(m||p>=u[E]&&p<u[E+k])&&(f=E,S=u[E+k]-u[E]):(m||p>=u[E])&&(f=E,S=u[u.length-1]-u[u.length-2])}let v=null,y=null;s.rewind&&(e.isBeginning?y=s.virtual&&s.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const b=(p-u[f])/S,w=f<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(A>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?v:f+w):e.slideTo(f)),e.swipeDirection==="prev"&&(b>1-s.longSwipesRatio?e.slideTo(f+w):y!==null&&b<0&&Math.abs(b)>s.longSwipesRatio?e.slideTo(y):e.slideTo(f))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(o.target===e.navigation.nextEl||o.target===e.navigation.prevEl)?o.target===e.navigation.nextEl?e.slideTo(f+w):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:f+w),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:f))}}function go(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const c=s&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!c?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ia(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ca(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:o}=t;if(!o)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a;const l=t.maxTranslate()-t.minTranslate();l===0?a=0:a=(t.translate-t.minTranslate())/l,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Pa(t){const e=this;Ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Oa(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const yo=(t,e)=>{const i=Ht(),{params:o,el:a,wrapperEl:l,device:s}=t,c=!!o.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;!a||typeof a=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:c}),a[r]("touchstart",t.onTouchStart,{passive:!1}),a[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:c}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:c}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[r]("click",t.onClick,!0),o.cssMode&&l[r]("scroll",t.onScroll),o.updateOnWindowResize?t[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",go,!0):t[u]("observerUpdate",go,!0),a[r]("load",t.onLoad,{capture:!0}))};function ja(){const t=this,{params:e}=t;t.onTouchStart=Ta.bind(t),t.onTouchMove=Ea.bind(t),t.onTouchEnd=ka.bind(t),t.onDocumentTouchStart=Oa.bind(t),e.cssMode&&(t.onScroll=Ca.bind(t)),t.onClick=Ia.bind(t),t.onLoad=Pa.bind(t),yo(t,"on")}function La(){yo(this,"off")}var Ma={attachEvents:ja,detachEvents:La};const wo=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Na(){const t=this,{realIndex:e,initialized:i,params:o,el:a}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const s=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const r=(s in l?l[s]:void 0)||t.originalParams,u=wo(t,o),d=wo(t,r),g=t.params.grabCursor,A=r.grabCursor,p=o.enabled;u&&!d?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&d&&(a.classList.add(`${o.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!A?t.unsetGrabCursor():!g&&A&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof r[b]>"u")return;const w=o[b]&&o[b].enabled,E=r[b]&&r[b].enabled;w&&!E&&t[b].disable(),!w&&E&&t[b].enable()});const m=r.direction&&r.direction!==o.direction,f=o.loop&&(r.slidesPerView!==o.slidesPerView||m),S=o.loop;m&&i&&t.changeDirection(),qt(t.params,r);const v=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",r),i&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&y?(t.loopCreate(e),t.updateSlides()):S&&!y&&t.loopDestroy()),t.emit("breakpoint",r)}function Da(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const a=Vt(),l=e==="window"?a.innerHeight:i.clientHeight,s=Object.keys(t).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const r=parseFloat(c.substr(1));return{value:l*r,point:c}}return{value:c,point:c}});s.sort((c,r)=>parseInt(c.value,10)-parseInt(r.value,10));for(let c=0;c<s.length;c+=1){const{point:r,value:u}=s[c];e==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=r):u<=i.clientWidth&&(o=r)}return o||"max"}var Ra={setBreakpoint:Na,getBreakpoint:Da};function Va(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&i.push(e+a)}):typeof o=="string"&&i.push(e+o)}),i}function Ba(){const t=this,{classNames:e,params:i,rtl:o,el:a,device:l}=t,s=Va(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:o},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...s),a.classList.add(...e),t.emitContainerClasses()}function Fa(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Wa={addClasses:Ba,removeClasses:Fa};function _a(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const a=t.slides.length-1,l=t.slidesGrid[a]+t.slidesSizesGrid[a]+o*2;t.isLocked=t.size>l}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Ha={checkOverflow:_a},Sn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function za(t,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){qt(e,o);return}if(t[a]===!0&&(t[a]={enabled:!0}),a==="navigation"&&t[a]&&t[a].enabled&&!t[a].prevEl&&!t[a].nextEl&&(t[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&t[a]&&t[a].enabled&&!t[a].el&&(t[a].auto=!0),!(a in t&&"enabled"in l)){qt(e,o);return}typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),qt(e,o)}}const xn={eventsEmitter:Wl,update:Jl,translate:na,transition:sa,slide:fa,loop:ga,grabCursor:Sa,events:Ma,breakpoints:Ra,checkOverflow:Ha,classes:Wa},Tn={};let En=class ri{constructor(){let e,i;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?i=a[0]:[e,i]=a,i||(i={}),i=qt({},i),e&&!i.el&&(i.el=e);const s=Ht();if(i.el&&typeof i.el=="string"&&s.querySelectorAll(i.el).length>1){const d=[];return s.querySelectorAll(i.el).forEach(g=>{const A=qt({},i,{el:g});d.push(new ri(A))}),d}const c=this;c.__swiper__=!0,c.support=mo(),c.device=fo({userAgent:i.userAgent}),c.browser=Vl(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],i.modules&&Array.isArray(i.modules)&&c.modules.push(...i.modules);const r={};c.modules.forEach(d=>{d({params:i,swiper:c,extendParams:za(i,r),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const u=qt({},Sn,r);return c.params=qt({},u,Tn,i),c.originalParams=qt({},c.params),c.passedParams=qt({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach(d=>{c.on(d,c.params.on[d])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:i,params:o}=this,a=ii(i,`.${o.slideClass}, swiper-slide`),l=Ii(a[0]);return Ii(e)-l}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:o}=e;e.slides=ii(i,`.${o.slideClass}, swiper-slide`)}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,i){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),s=(o.maxTranslate()-a)*e+a;o.translateTo(s,typeof i>"u"?0:i),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);i.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:a,slides:l,slidesGrid:s,slidesSizesGrid:c,size:r,activeIndex:u}=o;let d=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let g=l[u]?Math.ceil(l[u].swiperSlideSize):0,A;for(let p=u+1;p<l.length;p+=1)l[p]&&!A&&(g+=Math.ceil(l[p].swiperSlideSize),d+=1,g>r&&(A=!0));for(let p=u-1;p>=0;p-=1)l[p]&&!A&&(g+=l[p].swiperSlideSize,d+=1,g>r&&(A=!0))}else if(e==="current")for(let g=u+1;g<l.length;g+=1)(i?s[g]+c[g]-s[u]<r:s[g]-s[u]<r)&&(d+=1);else for(let g=u-1;g>=0;g-=1)s[u]-s[g]<r&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:o}=e;o.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Ki(e,s)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const s=e.rtlTranslate?e.translate*-1:e.translate,c=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const s=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(s.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||a()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),o.emit("changeDirection"),i&&o.update()),o}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let o=e||i.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=i,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):ii(o,a())[0];return!s&&i.params.createElements&&(s=wi("div",i.params.wrapperClass),o.append(s),ii(o,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:o,wrapperEl:s,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:s,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||pi(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||pi(o,"direction")==="rtl"),wrongRTL:pi(s,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const a=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&a.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?Ki(i,l):l.addEventListener("load",s=>{Ki(i,s.target)})}),wn(i),i.initialized=!0,wn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const o=this,{params:a,el:l,wrapperEl:s,slides:c}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),s&&s.removeAttribute("style"),c&&c.length&&c.forEach(r=>{r.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(r=>{o.off(r)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Cl(o)),o.destroyed=!0),null}static extendDefaults(e){qt(Tn,e)}static get extendedDefaults(){return Tn}static get defaults(){return Sn}static installModule(e){ri.prototype.__modules__||(ri.prototype.__modules__=[]);const i=ri.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ri.installModule(i)),ri):(ri.installModule(e),ri)}};Object.keys(xn).forEach(t=>{Object.keys(xn[t]).forEach(e=>{En.prototype[e]=xn[t][e]})}),En.use([Bl,Fl]);const So=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ai(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Si(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>i.indexOf(o)<0).forEach(o=>{typeof t[o]>"u"?t[o]=e[o]:Ai(e[o])&&Ai(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:Si(t[o],e[o]):t[o]=e[o]})}function xo(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function To(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Eo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function ko(t){t===void 0&&(t="");const e=t.split(" ").map(o=>o.trim()).filter(o=>!!o),i=[];return e.forEach(o=>{i.indexOf(o)<0&&i.push(o)}),i.join(" ")}function Ua(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Xa(t){let{swiper:e,slides:i,passedParams:o,changedParams:a,nextEl:l,prevEl:s,scrollbarEl:c,paginationEl:r}=t;const u=a.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:g,navigation:A,scrollbar:p,virtual:m,thumbs:f}=e;let S,v,y,b,w,E,k,M;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),a.includes("controller")&&o.controller&&o.controller.control&&d.controller&&!d.controller.control&&(v=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||r)&&(d.pagination||d.pagination===!1)&&g&&!g.el&&(y=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||c)&&(d.scrollbar||d.scrollbar===!1)&&p&&!p.el&&(b=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||s)&&(o.navigation.nextEl||l)&&(d.navigation||d.navigation===!1)&&A&&!A.prevEl&&!A.nextEl&&(w=!0);const D=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};a.includes("loop")&&e.isElement&&(d.loop&&!o.loop?E=!0:!d.loop&&o.loop?k=!0:M=!0),u.forEach(x=>{if(Ai(d[x])&&Ai(o[x]))Object.assign(d[x],o[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in o[x]&&!o[x].enabled&&D(x);else{const T=o[x];(T===!0||T===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?T===!1&&D(x):d[x]=o[x]}}),u.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),a.includes("children")&&i&&m&&d.virtual.enabled?(m.slides=i,m.update(!0)):a.includes("virtual")&&m&&d.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),a.includes("children")&&i&&d.loop&&(M=!0),S&&f.init()&&f.update(!0),v&&(e.controller.control=d.controller.control),y&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),g.init(),g.render(),g.update()),b&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),e.el.appendChild(c)),c&&(d.scrollbar.el=c),p.init(),p.updateSize(),p.setTranslate()),w&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=e.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),e.el.appendChild(l)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=e.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),e.el.appendChild(s))),l&&(d.navigation.nextEl=l),s&&(d.navigation.prevEl=s),A.init(),A.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(E||M)&&e.loopDestroy(),(k||M)&&e.loopCreate(),e.update()}function qa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},a={};Si(i,Sn),i._emitClasses=!0,i.init=!1;const l={},s=So.map(r=>r.replace(/_/,"")),c=Object.assign({},t);return Object.keys(c).forEach(r=>{typeof t[r]>"u"||(s.indexOf(r)>=0?Ai(t[r])?(i[r]={},a[r]={},Si(i[r],t[r]),Si(a[r],t[r])):(i[r]=t[r],a[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?o[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:l[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:a,rest:l,events:o}}function Ya(t,e){let{el:i,nextEl:o,prevEl:a,paginationEl:l,scrollbarEl:s,swiper:c}=t;xo(e)&&o&&a&&(c.params.navigation.nextEl=o,c.originalParams.navigation.nextEl=o,c.params.navigation.prevEl=a,c.originalParams.navigation.prevEl=a),To(e)&&l&&(c.params.pagination.el=l,c.originalParams.pagination.el=l),Eo(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(i)}function Ga(t,e,i,o,a){const l=[];if(!e)return l;const s=r=>{l.indexOf(r)<0&&l.push(r)};if(i&&o){const r=o.map(a),u=i.map(a);r.join("")!==u.join("")&&s("children"),o.length!==i.length&&s("children")}return So.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(Ai(t[r])&&Ai(e[r])){const u=Object.keys(t[r]),d=Object.keys(e[r]);u.length!==d.length?s(r):(u.forEach(g=>{t[r][g]!==e[r][g]&&s(r)}),d.forEach(g=>{t[r][g]!==e[r][g]&&s(r)}))}else t[r]!==e[r]&&s(r)}),l}const Za=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Ji(){return Ji=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Ji.apply(this,arguments)}function Io(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Co(t){const e=[];return n.Children.toArray(t).forEach(i=>{Io(i)?e.push(i):i.props&&i.props.children&&Co(i.props.children).forEach(o=>e.push(o))}),e}function Ka(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(Io(o))e.push(o);else if(o.props&&o.props.slot&&i[o.props.slot])i[o.props.slot].push(o);else if(o.props&&o.props.children){const a=Co(o.props.children);a.length>0?a.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Ja(t,e,i){if(!i)return null;const o=d=>{let g=d;return d<0?g=e.length+d:g>=e.length&&(g=g-e.length),g},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:s}=i,c=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let d=c;d<r;d+=1)d>=l&&d<=s&&u.push(e[o(d)]);return u.map((d,g)=>n.cloneElement(d,{swiper:t,style:a,key:d.props.virtualIndex||d.key||`slide-${g}`}))}function Ci(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const kn=n.createContext(null),Pi=()=>n.useContext(kn),Qa=n.createContext(null),li=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:a="div",children:l,onSwiper:s,...c}=t===void 0?{}:t,r=!1;const[u,d]=n.useState("swiper"),[g,A]=n.useState(null),[p,m]=n.useState(!1),f=n.useRef(!1),S=n.useRef(null),v=n.useRef(null),y=n.useRef(null),b=n.useRef(null),w=n.useRef(null),E=n.useRef(null),k=n.useRef(null),M=n.useRef(null),{params:D,passedParams:x,rest:T,events:V}=qa(c),{slides:C,slots:j}=Ka(l),O=()=>{m(!p)};Object.assign(D.on,{_containerClasses(I,L){d(L)}});const h=()=>{Object.assign(D.on,V),r=!0;const I={...D};if(delete I.wrapperClass,v.current=new En(I),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const L={cache:!1,slides:C,renderExternal:A,renderExternalUpdate:!1};Si(v.current.params.virtual,L),Si(v.current.originalParams.virtual,L)}};S.current||h(),v.current&&v.current.on("_beforeBreakpoint",O);const W=()=>{r||!V||!v.current||Object.keys(V).forEach(I=>{v.current.on(I,V[I])})},R=()=>{!V||!v.current||Object.keys(V).forEach(I=>{v.current.off(I,V[I])})};n.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",O)}),n.useEffect(()=>{!f.current&&v.current&&(v.current.emitSlidesClasses(),f.current=!0)}),Ci(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&h(),Ya({el:S.current,nextEl:w.current,prevEl:E.current,paginationEl:k.current,scrollbarEl:M.current,swiper:v.current},D),s&&!v.current.destroyed&&s(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ci(()=>{W();const I=Ga(x,y.current,C,b.current,L=>L.key);return y.current=x,b.current=C,I.length&&v.current&&!v.current.destroyed&&Xa({swiper:v.current,slides:C,passedParams:x,changedParams:I,nextEl:w.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:k.current}),()=>{R()}}),Ci(()=>{Za(v.current)},[g]);function B(){return D.virtual?Ja(v.current,C,g):C.map((I,L)=>n.cloneElement(I,{swiper:v.current,swiperSlideIndex:L}))}return n.createElement(o,Ji({ref:S,className:ko(`${u}${i?` ${i}`:""}`)},T),n.createElement(Qa.Provider,{value:v.current},j["container-start"],n.createElement(a,{className:Ua(D.wrapperClass)},j["wrapper-start"],B(),j["wrapper-end"]),xo(D)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),Eo(D)&&n.createElement("div",{ref:M,className:"swiper-scrollbar"}),To(D)&&n.createElement("div",{ref:k,className:"swiper-pagination"}),j["container-end"]))});li.displayName="Swiper";const Yt=n.forwardRef(function(t,e){let{tag:i="div",children:o,className:a="",swiper:l,zoom:s,lazy:c,virtualIndex:r,swiperSlideIndex:u,...d}=t===void 0?{}:t;const g=n.useRef(null),[A,p]=n.useState("swiper-slide"),[m,f]=n.useState(!1);function S(w,E,k){E===g.current&&p(k)}Ci(()=>{if(typeof u<"u"&&(g.current.swiperSlideIndex=u),e&&(e.current=g.current),!(!g.current||!l)){if(l.destroyed){A!=="swiper-slide"&&p("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),Ci(()=>{l&&g.current&&!l.destroyed&&p(l.getSlideClasses(g.current))},[l]);const v={isActive:A.indexOf("swiper-slide-active")>=0,isVisible:A.indexOf("swiper-slide-visible")>=0,isPrev:A.indexOf("swiper-slide-prev")>=0,isNext:A.indexOf("swiper-slide-next")>=0},y=()=>typeof o=="function"?o(v):o,b=()=>{f(!0)};return n.createElement(i,Ji({ref:g,className:ko(`${A}${a?` ${a}`:""}`),"data-swiper-slide-index":r,onLoad:b},d),s&&n.createElement(kn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},y(),c&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(kn.Provider,{value:v},y(),c&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Yt.displayName="SwiperSlide";function In(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ht(),s=Vt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function c(d){if(!e.enabled)return;const{rtlTranslate:g}=e;let A=d;A.originalEvent&&(A=A.originalEvent);const p=A.keyCode||A.charCode,m=e.params.keyboard.pageUpDown,f=m&&p===33,S=m&&p===34,v=p===37,y=p===39,b=p===38,w=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&w||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&b||f))return!1;if(!(A.shiftKey||A.altKey||A.ctrlKey||A.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(f||S||v||y||b||w)){let E=!1;if(Zi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Zi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,M=k.clientWidth,D=k.clientHeight,x=s.innerWidth,T=s.innerHeight,V=po(k);g&&(V.left-=k.scrollLeft);const C=[[V.left,V.top],[V.left+M,V.top],[V.left,V.top+D],[V.left+M,V.top+D]];for(let j=0;j<C.length;j+=1){const O=C[j];if(O[0]>=0&&O[0]<=x&&O[1]>=0&&O[1]<=T){if(O[0]===0&&O[1]===0)continue;E=!0}}if(!E)return}e.isHorizontal()?((f||S||v||y)&&(A.preventDefault?A.preventDefault():A.returnValue=!1),((S||y)&&!g||(f||v)&&g)&&e.slideNext(),((f||v)&&!g||(S||y)&&g)&&e.slidePrev()):((f||S||b||w)&&(A.preventDefault?A.preventDefault():A.returnValue=!1),(S||w)&&e.slideNext(),(f||b)&&e.slidePrev()),a("keyPress",p)}}function r(){e.keyboard.enabled||(l.addEventListener("keydown",c),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(l.removeEventListener("keydown",c),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&r()}),o("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:r,disable:u})}function Qi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Vt();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let s,c=Kt(),r;const u=[];function d(b){let M=0,D=0,x=0,T=0;return"detail"in b&&(D=b.detail),"wheelDelta"in b&&(D=-b.wheelDelta/120),"wheelDeltaY"in b&&(D=-b.wheelDeltaY/120),"wheelDeltaX"in b&&(M=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(M=D,D=0),x=M*10,T=D*10,"deltaY"in b&&(T=b.deltaY),"deltaX"in b&&(x=b.deltaX),b.shiftKey&&!x&&(x=T,T=0),(x||T)&&b.deltaMode&&(b.deltaMode===1?(x*=40,T*=40):(x*=800,T*=800)),x&&!M&&(M=x<1?-1:1),T&&!D&&(D=T<1?-1:1),{spinX:M,spinY:D,pixelX:x,pixelY:T}}function g(){e.enabled&&(e.mouseEntered=!0)}function A(){e.enabled&&(e.mouseEntered=!1)}function p(b){return e.params.mousewheel.thresholdDelta&&b.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Kt()-c<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&Kt()-c<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",b.raw)),c=new l.Date().getTime(),!1)}function m(b){const w=e.params.mousewheel;if(b.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function f(b){let w=b,E=!0;if(!e.enabled||b.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let M=e.el;e.params.mousewheel.eventsTarget!=="container"&&(M=document.querySelector(e.params.mousewheel.eventsTarget));const D=M&&M.contains(w.target);if(!e.mouseEntered&&!D&&!k.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let x=0;const T=e.rtlTranslate?-1:1,V=d(w);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(V.pixelX)>Math.abs(V.pixelY))x=-V.pixelX*T;else return!0;else if(Math.abs(V.pixelY)>Math.abs(V.pixelX))x=-V.pixelY;else return!0;else x=Math.abs(V.pixelX)>Math.abs(V.pixelY)?-V.pixelX*T:-V.pixelY;if(x===0)return!0;k.invert&&(x=-x);let C=e.getTranslate()+x*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),E=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),E&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const j={time:Kt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};u.length>=2&&u.shift();const O=u.length?u[u.length-1]:void 0;if(u.push(j),O?(j.direction!==O.direction||j.delta>O.delta||j.time>O.time+150)&&p(j):p(j),m(j))return!0}else{const j={time:Kt(),delta:Math.abs(x),direction:Math.sign(x)},O=r&&j.time<r.time+500&&j.delta<=r.delta&&j.direction===r.direction;if(!O){r=void 0;let h=e.getTranslate()+x*k.sensitivity;const W=e.isBeginning,R=e.isEnd;if(h>=e.minTranslate()&&(h=e.minTranslate()),h<=e.maxTranslate()&&(h=e.maxTranslate()),e.setTransition(0),e.setTranslate(h),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!R&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(s),s=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,I=u[0];if(u.push(j),B&&(j.delta>B.delta||j.direction!==B.direction))u.splice(0);else if(u.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const L=x>0?.8:.2;r=j,u.splice(0),s=yi(()=>{e.slideToClosest(e.params.speed,!0,void 0,L)},0)}s||(s=yi(()=>{r=j,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||a("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(h===e.minTranslate()||h===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function S(b){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[b]("mouseenter",g),w[b]("mouseleave",A),w[b]("wheel",f)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&v()}),o("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&y()}),Object.assign(e.mousewheel,{enable:v,disable:y})}function Cn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(a=>{if(!i[a]&&i.auto===!0){let l=ii(t.el,`.${o[a]}`)[0];l||(l=wi("div",o[a]),l.className=o[a],t.el.append(l)),i[a]=l,e[a]=l}}),i}function Pn(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function l(m){let f;return m&&typeof m=="string"&&e.isElement&&(f=e.el.querySelector(m),f)?f:(m&&(typeof m=="string"&&(f=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&f&&f.length>1&&e.el.querySelectorAll(m).length===1?f=e.el.querySelector(m):f&&f.length===1&&(f=f[0])),m&&!f?m:f)}function s(m,f){const S=e.params.navigation;m=Je(m),m.forEach(v=>{v&&(v.classList[f?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=f),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function c(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){s(f,!1),s(m,!1);return}s(f,e.isBeginning&&!e.params.rewind),s(m,e.isEnd&&!e.params.rewind)}function r(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function u(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function d(){const m=e.params.navigation;if(e.params.navigation=Cn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let f=l(m.nextEl),S=l(m.prevEl);Object.assign(e.navigation,{nextEl:f,prevEl:S}),f=Je(f),S=Je(S);const v=(y,b)=>{y&&y.addEventListener("click",b==="next"?u:r),!e.enabled&&y&&y.classList.add(...m.lockClass.split(" "))};f.forEach(y=>v(y,"next")),S.forEach(y=>v(y,"prev"))}function g(){let{nextEl:m,prevEl:f}=e.navigation;m=Je(m),f=Je(f);const S=(v,y)=>{v.removeEventListener("click",y==="next"?u:r),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(v=>S(v,"next")),f.forEach(v=>S(v,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?p():(d(),c())}),o("toEdge fromEdge lock unlock",()=>{c()}),o("destroy",()=>{g()}),o("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;if(m=Je(m),f=Je(f),e.enabled){c();return}[...m,...f].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),o("click",(m,f)=>{let{nextEl:S,prevEl:v}=e.navigation;S=Je(S),v=Je(v);const y=f.target;let b=v.includes(y)||S.includes(y);if(e.isElement&&!b){const w=f.path||f.composedPath&&f.composedPath();w&&(b=w.find(E=>S.includes(E)||v.includes(E)))}if(e.params.navigation.hideOnClick&&!b){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let w;S.length?w=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...S,...v].filter(E=>!!E).forEach(E=>E.classList.toggle(e.params.navigation.hiddenClass))}});const A=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),c()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:A,disable:p,update:c,init:d,destroy:g})}function ai(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Oi(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l="swiper-pagination";i({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:v=>v,formatFractionTotal:v=>v,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let s,c=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(v,y){const{bulletActiveClass:b}=e.params.pagination;v&&(v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${b}-${y}`),v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${b}-${y}-${y}`)))}function d(v){const y=v.target.closest(ai(e.params.pagination.bulletClass));if(!y)return;v.preventDefault();const b=Ii(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===b)return;e.slideToLoop(b)}else e.slideTo(b)}function g(){const v=e.rtl,y=e.params.pagination;if(r())return;let b=e.pagination.el;b=Je(b);let w,E;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(E=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,E=e.previousSnapIndex):(E=e.previousIndex||0,w=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const D=e.pagination.bullets;let x,T,V;if(y.dynamicBullets&&(s=fn(D[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${s*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&E!==void 0&&(c+=w-(E||0),c>y.dynamicMainBullets-1?c=y.dynamicMainBullets-1:c<0&&(c=0)),x=Math.max(w-c,0),T=x+(Math.min(D.length,y.dynamicMainBullets)-1),V=(T+x)/2),D.forEach(C=>{const j=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(O=>`${y.bulletActiveClass}${O}`)].map(O=>typeof O=="string"&&O.includes(" ")?O.split(" "):O).flat();C.classList.remove(...j)}),b.length>1)D.forEach(C=>{const j=Ii(C);j===w?C.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),y.dynamicBullets&&(j>=x&&j<=T&&C.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),j===x&&u(C,"prev"),j===T&&u(C,"next"))});else{const C=D[w];if(C&&C.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&D.forEach((j,O)=>{j.setAttribute("part",O===w?"bullet-active":"bullet")}),y.dynamicBullets){const j=D[x],O=D[T];for(let h=x;h<=T;h+=1)D[h]&&D[h].classList.add(...`${y.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(O,"next")}}if(y.dynamicBullets){const C=Math.min(D.length,y.dynamicMainBullets+4),j=(s*C-s)/2-V*s,O=v?"right":"left";D.forEach(h=>{h.style[e.isHorizontal()?O:"top"]=`${j}px`})}}b.forEach((D,x)=>{if(y.type==="fraction"&&(D.querySelectorAll(ai(y.currentClass)).forEach(T=>{T.textContent=y.formatFractionCurrent(w+1)}),D.querySelectorAll(ai(y.totalClass)).forEach(T=>{T.textContent=y.formatFractionTotal(M)})),y.type==="progressbar"){let T;y.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/M;let C=1,j=1;T==="horizontal"?C=V:j=V,D.querySelectorAll(ai(y.progressbarFillClass)).forEach(O=>{O.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${j})`,O.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(D.innerHTML=y.renderCustom(e,w+1,M),x===0&&a("paginationRender",D)):(x===0&&a("paginationRender",D),a("paginationUpdate",D)),e.params.watchOverflow&&e.enabled&&D.classList[e.isLocked?"add":"remove"](y.lockClass)})}function A(){const v=e.params.pagination;if(r())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let b=e.pagination.el;b=Je(b);let w="";if(v.type==="bullets"){let E=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&E>y&&(E=y);for(let k=0;k<E;k+=1)v.renderBullet?w+=v.renderBullet.call(e,k,v.bulletClass):w+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?w=v.renderFraction.call(e,v.currentClass,v.totalClass):w=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?w=v.renderProgressbar.call(e,v.progressbarFillClass):w=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],b.forEach(E=>{v.type!=="custom"&&(E.innerHTML=w||""),v.type==="bullets"&&e.pagination.bullets.push(...E.querySelectorAll(ai(v.bulletClass)))}),v.type!=="custom"&&a("paginationRender",b[0])}function p(){e.params.pagination=Cn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let y;typeof v.el=="string"&&e.isElement&&(y=e.el.querySelector(v.el)),!y&&typeof v.el=="string"&&(y=[...document.querySelectorAll(v.el)]),y||(y=v.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(v.el)],y.length>1&&(y=y.filter(b=>Zi(b,".swiper")[0]===e.el)[0])),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=Je(y),y.forEach(b=>{v.type==="bullets"&&v.clickable&&b.classList.add(...(v.clickableClass||"").split(" ")),b.classList.add(v.modifierClass+v.type),b.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(b.classList.add(`${v.modifierClass}${v.type}-dynamic`),c=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&b.classList.add(v.progressbarOppositeClass),v.clickable&&b.addEventListener("click",d),e.enabled||b.classList.add(v.lockClass)}))}function m(){const v=e.params.pagination;if(r())return;let y=e.pagination.el;y&&(y=Je(y),y.forEach(b=>{b.classList.remove(v.hiddenClass),b.classList.remove(v.modifierClass+v.type),b.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(b.classList.remove(...(v.clickableClass||"").split(" ")),b.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(b=>b.classList.remove(...v.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:y}=e.pagination;y=Je(y),y.forEach(b=>{b.classList.remove(v.horizontalClass,v.verticalClass),b.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?S():(p(),A(),g())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&g()}),o("snapIndexChange",()=>{g()}),o("snapGridLengthChange",()=>{A(),g()}),o("destroy",()=>{m()}),o("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{g()}),o("click",(v,y)=>{const b=y.target,w=Je(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!b.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&b===e.navigation.nextEl||e.navigation.prevEl&&b===e.navigation.prevEl))return;const E=w[0].classList.contains(e.params.pagination.hiddenClass);a(E===!0?"paginationShow":"paginationHide"),w.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),p(),A(),g()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Je(v),v.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:f,disable:S,render:A,update:g,init:p,destroy:m})}function $a(t){let{swiper:e,extendParams:i,on:o,emit:a}=t;const l=Ht();let s=!1,c=null,r=null,u,d,g,A;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:j}=e,{dragEl:O,el:h}=C,W=e.params.scrollbar,R=e.params.loop?e.progressLoop:e.progress;let B=d,I=(g-d)*R;j?(I=-I,I>0?(B=d-I,I=0):-I+d>g&&(B=g+I)):I<0?(B=d+I,I=0):I+d>g&&(B=g-I),e.isHorizontal()?(O.style.transform=`translate3d(${I}px, 0, 0)`,O.style.width=`${B}px`):(O.style.transform=`translate3d(0px, ${I}px, 0)`,O.style.height=`${B}px`),W.hide&&(clearTimeout(c),h.style.opacity=1,c=setTimeout(()=>{h.style.opacity=0,h.style.transitionDuration="400ms"},1e3))}function m(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:j,el:O}=C;j.style.width="",j.style.height="",g=e.isHorizontal()?O.offsetWidth:O.offsetHeight,A=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=g*A:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${d}px`:j.style.height=`${d}px`,A>=1?O.style.display="none":O.style.display="",e.params.scrollbar.hide&&(O.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:j,rtlTranslate:O}=e,{el:h}=j;let W;W=(S(C)-po(h)[e.isHorizontal()?"left":"top"]-(u!==null?u:d/2))/(g-d),W=Math.max(Math.min(W,1),0),O&&(W=1-W);const R=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(R),e.setTranslate(R),e.updateActiveIndex(),e.updateSlidesClasses()}function y(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:W,dragEl:R}=O;s=!0,u=C.target===R?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),h.style.transitionDuration="100ms",R.style.transitionDuration="100ms",v(C),clearTimeout(r),W.style.transitionDuration="0ms",j.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",C)}function b(C){const{scrollbar:j,wrapperEl:O}=e,{el:h,dragEl:W}=j;s&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),O.style.transitionDuration="0ms",h.style.transitionDuration="0ms",W.style.transitionDuration="0ms",a("scrollbarDragMove",C))}function w(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:W}=O;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",h.style.transitionDuration=""),j.hide&&(clearTimeout(r),r=yi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",C),j.snapOnRelease&&e.slideToClosest())}function E(C){const{scrollbar:j,params:O}=e,h=j.el;if(!h)return;const W=h,R=O.passiveListeners?{passive:!1,capture:!1}:!1,B=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const I=C==="on"?"addEventListener":"removeEventListener";W[I]("pointerdown",y,R),l[I]("pointermove",b,R),l[I]("pointerup",w,B)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||E("on")}function M(){!e.params.scrollbar.el||!e.scrollbar.el||E("off")}function D(){const{scrollbar:C,el:j}=e;e.params.scrollbar=Cn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const O=e.params.scrollbar;if(!O.el)return;let h;if(typeof O.el=="string"&&e.isElement&&(h=e.el.querySelector(O.el)),!h&&typeof O.el=="string"){if(h=l.querySelectorAll(O.el),!h.length)return}else h||(h=O.el);e.params.uniqueNavElements&&typeof O.el=="string"&&h.length>1&&j.querySelectorAll(O.el).length===1&&(h=j.querySelector(O.el)),h.length>0&&(h=h[0]),h.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass);let W;h&&(W=h.querySelector(ai(e.params.scrollbar.dragClass)),W||(W=wi("div",e.params.scrollbar.dragClass),h.append(W))),Object.assign(C,{el:h,dragEl:W}),O.draggable&&k(),h&&h.classList[e.enabled?"remove":"add"](...vi(e.params.scrollbar.lockClass))}function x(){const C=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...vi(e.isHorizontal()?C.horizontalClass:C.verticalClass)),M()}o("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:j}=e.scrollbar;j=Je(j),j.forEach(O=>{O.classList.remove(C.horizontalClass,C.verticalClass),O.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),o("init",()=>{e.params.scrollbar.enabled===!1?V():(D(),f(),p())}),o("update resize observerUpdate lock unlock changeDirection",()=>{f()}),o("setTranslate",()=>{p()}),o("setTransition",(C,j)=>{m(j)}),o("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...vi(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...vi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...vi(e.params.scrollbar.scrollbarDisabledClass)),D(),f(),p()},V=()=>{e.el.classList.add(...vi(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...vi(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:V,updateSize:f,setTranslate:p,init:D,destroy:x})}function On(t){let{swiper:e,extendParams:i,on:o}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null,l,s,c=new Date().getTime();function r(R){const B=a;B.length!==0&&(B.innerHTML="",B.innerHTML=R)}function u(R){R===void 0&&(R=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(R).replace(/x/g,B)}function d(R){R=Je(R),R.forEach(B=>{B.setAttribute("tabIndex","0")})}function g(R){R=Je(R),R.forEach(B=>{B.setAttribute("tabIndex","-1")})}function A(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("role",B)})}function p(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-roledescription",B)})}function m(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-controls",B)})}function f(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-label",B)})}function S(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("id",B)})}function v(R,B){R=Je(R),R.forEach(I=>{I.setAttribute("aria-live",B)})}function y(R){R=Je(R),R.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function b(R){R=Je(R),R.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function w(R){if(R.keyCode!==13&&R.keyCode!==32)return;const B=e.params.a11y,I=R.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(R.target))&&!R.target.matches(ai(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const L=Je(e.navigation.prevEl);Je(e.navigation.nextEl).includes(I)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(B.lastSlideMessage):r(B.nextSlideMessage)),L.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(B.firstSlideMessage):r(B.prevSlideMessage))}e.pagination&&I.matches(ai(e.params.pagination.bulletClass))&&I.click()}}function E(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:R,prevEl:B}=e.navigation;B&&(e.isBeginning?(y(B),g(B)):(b(B),d(B))),R&&(e.isEnd?(y(R),g(R)):(b(R),d(R)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return k()&&e.params.pagination.clickable}function D(){const R=e.params.a11y;k()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(d(B),e.params.pagination.renderBullet||(A(B,"button"),f(B,R.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(B)+1)))),B.matches(ai(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const x=(R,B,I)=>{d(R),R.tagName!=="BUTTON"&&(A(R,"button"),R.addEventListener("keydown",w)),f(R,I),m(R,B)},T=R=>{s&&s!==R.target&&!s.contains(R.target)&&(l=!0),e.a11y.clicked=!0},V=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=R=>{c=new Date().getTime()},j=R=>{if(e.a11y.clicked||new Date().getTime()-c<100)return;const B=R.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;s=B;const I=e.slides.indexOf(B)===e.activeIndex,L=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);I||L||R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),l=!1)}))},O=()=>{const R=e.params.a11y;R.itemRoleDescriptionMessage&&p(e.slides,R.itemRoleDescriptionMessage),R.slideRole&&A(e.slides,R.slideRole);const B=e.slides.length;R.slideLabelMessage&&e.slides.forEach((I,L)=>{const P=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):L,q=R.slideLabelMessage.replace(/\{\{index\}\}/,P+1).replace(/\{\{slidesLength\}\}/,B);f(I,q)})},h=()=>{const R=e.params.a11y;e.el.append(a);const B=e.el;R.containerRoleDescriptionMessage&&p(B,R.containerRoleDescriptionMessage),R.containerMessage&&f(B,R.containerMessage);const I=e.wrapperEl,L=R.id||I.getAttribute("id")||`swiper-wrapper-${u(16)}`,P=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(I,L),v(I,P),O();let{nextEl:q,prevEl:z}=e.navigation?e.navigation:{};q=Je(q),z=Je(z),q&&q.forEach(ee=>x(ee,L,R.nextSlideMessage)),z&&z.forEach(ee=>x(ee,L,R.prevSlideMessage)),M()&&Je(e.pagination.el).forEach(re=>{re.addEventListener("keydown",w)}),Ht().addEventListener("visibilitychange",C),e.el.addEventListener("focus",j,!0),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",V,!0)};function W(){a&&a.remove();let{nextEl:R,prevEl:B}=e.navigation?e.navigation:{};R=Je(R),B=Je(B),R&&R.forEach(L=>L.removeEventListener("keydown",w)),B&&B.forEach(L=>L.removeEventListener("keydown",w)),M()&&Je(e.pagination.el).forEach(P=>{P.removeEventListener("keydown",w)}),Ht().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",V,!0))}o("beforeInit",()=>{a=wi("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&h()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&E()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&D()}),o("destroy",()=>{e.params.a11y.enabled&&W()})}function ji(t){let{swiper:e,extendParams:i,on:o,emit:a,params:l}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,c,r=l&&l.autoplay?l.autoplay.delay:3e3,u=l&&l.autoplay?l.autoplay.delay:3e3,d,g=new Date().getTime(),A,p,m,f,S,v,y;function b(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(y||B.detail&&B.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?A=!0:A&&(u=d,A=!1);const B=e.autoplay.paused?d:g+u-new Date().getTime();e.autoplay.timeLeft=B,a("autoplayTimeLeft",B,B/r),c=requestAnimationFrame(()=>{w()})},E=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(L=>L.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},k=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(c),w();let I=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const L=E();!Number.isNaN(L)&&L>0&&typeof B>"u"&&(I=L,r=L,u=L),d=I;const P=e.params.speed,q=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(P,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,P,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(P,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,P,!0,!0),a("autoplay")),e.params.cssMode&&(g=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return I>0?(clearTimeout(s),s=setTimeout(()=>{q()},I)):requestAnimationFrame(()=>{q()}),I},M=()=>{g=new Date().getTime(),e.autoplay.running=!0,k(),a("autoplayStart")},D=()=>{e.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(c),a("autoplayStop")},x=(B,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(s),B||(v=!0);const L=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):T()};if(e.autoplay.paused=!0,I){S&&(d=e.params.autoplay.delay),S=!1,L();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-g),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),L())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,a("autoplayResume"))},V=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ht();B.visibilityState==="hidden"&&(v=!0,x(!0)),B.visibilityState==="visible"&&T()},C=B=>{B.pointerType==="mouse"&&(v=!0,y=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=B=>{B.pointerType==="mouse"&&(y=!1,e.autoplay.paused&&T())},O=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",j))},h=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",j))},W=()=>{Ht().addEventListener("visibilitychange",V)},R=()=>{Ht().removeEventListener("visibilitychange",V)};o("init",()=>{e.params.autoplay.enabled&&(O(),W(),M())}),o("destroy",()=>{h(),R(),e.autoplay.running&&D()}),o("_freeModeStaticRelease",()=>{(m||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?D():x(!0,!0)}),o("beforeTransitionStart",(B,I,L)=>{e.destroyed||!e.autoplay.running||(L||!e.params.autoplay.disableOnInteraction?x(!0,!0):D())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){D();return}p=!0,m=!1,v=!1,f=setTimeout(()=>{v=!0,m=!0,x(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(f),clearTimeout(s),e.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&e.params.cssMode&&T(),m=!1,p=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:M,stop:D,pause:x,resume:T})}function es(t){let{swiper:e,extendParams:i,emit:o,once:a}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Kt()})}function c(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:d,wrapperEl:g,rtlTranslate:A,snapGrid:p,touchEventsData:m}=e,S=Kt()-m.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(m.velocities.length>1){const D=m.velocities.pop(),x=m.velocities.pop(),T=D.position-x.position,V=D.time-x.time;e.velocity=T/V,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(V>150||Kt()-D.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,m.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const y=e.velocity*v;let b=e.translate+y;A&&(b=-b);let w=!1,E;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let M;if(b<e.maxTranslate())d.freeMode.momentumBounce?(b+e.maxTranslate()<-k&&(b=e.maxTranslate()-k),E=e.maxTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.maxTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(b>e.minTranslate())d.freeMode.momentumBounce?(b-e.minTranslate()>k&&(b=e.minTranslate()+k),E=e.minTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.minTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(d.freeMode.sticky){let D;for(let x=0;x<p.length;x+=1)if(p[x]>-b){D=x;break}Math.abs(p[D]-b)<Math.abs(p[D-1]-b)||e.swipeDirection==="next"?b=p[D]:b=p[D-1],b=-b}if(M&&a("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(A?v=Math.abs((-b-e.translate)/e.velocity):v=Math.abs((b-e.translate)/e.velocity),d.freeMode.sticky){const D=Math.abs((A?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];D<x?v=d.speed:D<2*x?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&w?(e.updateProgress(E),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,mn(g,()=>{!e||e.destroyed||!m.allowMomentumBounce||(o("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(E),mn(g,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(b),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,mn(g,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&o("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:s,onTouchEnd:c}})}const ts=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const a=n.useRef(),{popupDetailData:l}=Ue();return n.useEffect(()=>{var s,c;o&&((s=a?.current)===null||s===void 0||s.swiper.slideTo((c=l?.multiCheckIndex)!==null&&c!==void 0?c:0))},[l,o]),n.createElement(li,{role:"list",tag:"ul",ref:a,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[es,$a,Qi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=n.memo(ts);const is=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:a,className:l,loading:s,alt:c="image"}=t,[r,u]=n.useState(i),d=n.useRef(null),[g,A]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&u(p)}})),n.useEffect(()=>{i&&u(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!g&&d.current&&(d.current.src="",d.current.src=i)};return At.on(vt.PAGE_DID_SHOW,p),()=>{At.off(vt.PAGE_DID_SHOW,p)}},[i,g]),n.createElement(n.Fragment,null,!g&&!r&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),r?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:r}),n.createElement("source",{type:"image/webp",srcSet:`${r}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${r}?imageMogr2/format/jpg`}),n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{A(!0),o?.(p.target)},alt:c})):n.createElement("img",{ref:d,className:l,src:r,style:Object.assign({},a),loading:s,onLoad:p=>{A(!0),o?.(p.target)},alt:c}))});var Bt=n.memo(is);const ns=({products:t,data:e,defImg:i,style:o,onCLick:a,popupDetailData:l,check:s})=>{var c;const{productView:r}=Wt(),{popupCurTimeRef:u}=Ue(),d=(g,A)=>{if(s===A)return;const p=t?.[s];r(l,p,p?.bindCta,u.current,l?.index),a?.(A)};return n.createElement(n.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&n.createElement(Li,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},o),e?.style)},(c=l?t:[0,1,2,3])===null||c===void 0?void 0:c.map((g,A)=>{var p,m,f;return n.createElement(n.Fragment,null,g?.bindCta?n.createElement(Yt,{className:Fe.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{d(g,A)},key:A},n.createElement(Bt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:s===A?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(f=(p=g?.cover)!==null&&p!==void 0?p:(m=g?.homePage)===null||m===void 0?void 0:m[0])!==null&&f!==void 0?f:i})):null)})))};var Po=n.memo(ns);function Oo(){const[t,e]=n.useState(0),[i,o]=n.useState(0),a=()=>{if(typeof window>"u")return 0;let s=window.innerHeight;return window.visualViewport&&(s=window.visualViewport.height),(s<=0||s>window.screen.height)&&(s=window.innerHeight),s<=0&&(s=document.documentElement.clientHeight),s},l=n.useCallback(()=>{var s;const c=a(),r=(s=window.screen)===null||s===void 0?void 0:s.height,u=navigator.userAgent,d=/Instagram/i.test(u),g=/FBAV|FBAN|FBSN/i.test(u);if(!r||c<=0||!d&&!g){e(c);return}const A=c/r,p=.9,m=r>=900?r*.8:r*.79,f=A>=p&&A!==1,S=f?Math.round(m):c,v=r-Math.round(m);if(f){const y=document.querySelector("#onetrust-banner-sdk");y&&(y.style.bottom=`${v}px`);const b=document.createElement("style");b.id="onetrust-pc-sdk",b.setAttribute("type","text/css"),document.head.appendChild(b);const w=`
2
2
  #onetrust-pc-sdk {
3
3
  height: ${S}px !important;
4
4
  }