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.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +2 -1
- package/lib/core/context/SxpDataSourceProvider.js +2 -1
- package/package.json +1 -1
package/dist/pb-ui.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(wt,pt){typeof exports=="object"&&typeof module<"u"?pt(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],pt):(wt=typeof globalThis<"u"?globalThis:wt||self,pt(wt.PUI={},wt.lodash,wt.uuid$1,wt.pako,wt.React,wt.qs,wt.EventEmitter,wt.css,wt.ReactDOM))})(this,function(wt,pt,Go,Zo,n,Fn,Ko,We,Wn){"use strict";function Jo(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 _n=Jo(Wn);function st(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 s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}function ht(t,e,i,o){function s(l){return l instanceof i?l:new i(function(r){r(l)})}return new(i||(i=Promise))(function(l,r){function u(a){try{c(o.next(a))}catch(g){r(g)}}function d(a){try{c(o.throw(a))}catch(g){r(g)}}function c(a){a.done?l(a.value):s(a.value).then(u,d)}c((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Qo=/:\w+/g;var Hn=(t,e)=>ht(void 0,void 0,void 0,function*(){const i={},o={};for(let s=0;s<e?.length;s++){const{id:l,method:r,url:u,urlParams:d,name:c,queryString:a,headers:g,body:A}=e[s];let p=u;d&&Object.entries(d).forEach(([m,f])=>{p=p.replace(Qo,S=>S===m?f:S)}),a&&(p+=a),o[l]=c;try{const m=yield fetch(p,{method:r,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 zn="SXP_TOKEN_INFO",Ro=(t,e)=>ht(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),s=t.getAppId(),l=t.getApiUrl(),r=window.localStorage.getItem(zn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":s||""}}).then(a=>a.json());if(c.success){const a=c.data;u=Object.assign(Object.assign({},a),{expireTime:Date.now()+a.expire*1e3}),window.localStorage.setItem(zn,JSON.stringify(u))}}return u});function _i(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)o[s]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",s=0;s<36;s++)o[s]||(l=0|Math.random()*16,o[s]=i[s===19?l&3|8:l])}return o.join("")}const $o=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*o)),s+=1;return e},el=()=>{const t=Go.v4();return t?.replaceAll?t.replaceAll("-",""):$o(32)},Me=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!o&&!s)return t;let l=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,d=`font-family:${o??"inherit"}`,c=`font-family:${s??"inherit"}`,a=A=>{const p=A.search(r),m=A.search(u);return p!==-1&&m!==-1&&p<m&&(i+=`<span style="${d}">${A.substring(p,m)}</span>`,l=A.substring(m,A?.length)),p!==-1&&m!==-1&&p>m&&(i+=`<span style="${c}">${A.substring(m,p)}</span>`,l=A.substring(p,A?.length)),p===-1?(i+=`<span style="${c}">${A.substring(m,A?.length)}</span>`,l="",!1):m===-1?(i+=`<span style="${d}">${A.substring(p,A?.length)}</span>`,l="",!1):!0};let g=!0;for(;g;)g=a(l);return i};function on(t){const i=document.cookie.split(";");let o=null;return i.forEach(s=>{const[l,r]=s.trim().split("=");l===t&&(o=r)}),o??""}function ln(){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 fi(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const l=t[s],r=t.substring(s+1,t.length);l==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let o=0;return e?.map(s=>{i?.push(t.substring(o,s)),o=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function tl(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",s=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${s}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Xt(t){var e,i;const o=location.search.slice(1),s={};(e=fi(o.replace(/\+/g,"%2B")))===null||e===void 0||e.map(l=>{const r=l.split("=")[0],u=l.split("=")[1];s[r]=u});for(const l in s)s[l]=s[l].replace(/%2B/g,"+");return(i=s[t])!==null&&i!==void 0?i:""}function Un(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),s=Zo.inflate(o,{to:"string"});return JSON.parse(s)}let sn=null;const il={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class nl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,sn)return sn;sn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?il[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Vt=null;const ol={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Vt||(Vt=new nl),o&&Vt.setApiUrl(o),Vt.setAppId(t),Vt.setTenantId(e),Vt.setEnv(i)},getDetail:t=>{if(!Vt)return;const e=Vt.getTenantId(),i=Vt.getAppId(),o=Vt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ht(void 0,void 0,void 0,function*(){var l,r;const u=yield s.json(),d=Un((l=u?.data)===null||l===void 0?void 0:l.data);if(d){const{$store:c}=yield Hn(o,(r=d?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=d,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>ht(void 0,void 0,void 0,function*(){if(!Vt)return;const e=Vt.getTenantId(),i=Vt.getAppId(),o=Vt.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ht(void 0,void 0,void 0,function*(){var l;const r=yield s.json();return r.success?(l=r?.data)===null||l===void 0?void 0:l.map(d=>Object.assign(Object.assign({},d),{data:Un(d?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ht(void 0,void 0,void 0,function*(){if(!Vt)return;const e=yield Ro(Vt,t),i=_i(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");pt.isEmpty(o)&&(o=_i(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const s=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 s?.data||null})};function ui(){return n.useContext(no)}function ll(){return n.useContext(io)}const rn="feRealSessionIdKey",Xn=()=>{const t=el();return`${Date.now()}${t}`},sl=()=>{let t=rl();return t||(t=Xn(),window.localStorage.setItem(rn,t)),t},dn=()=>{const t=Xn();window.localStorage.setItem(rn,t)},rl=()=>window.localStorage.getItem(rn),qn="SXP_FAKE_USER_ID",Yn="FAKE_USER_STATE",Gn="AGREE_POLICY",Zn="SLIDE_SKIP_STATE",Kn="CCONTSENT_STATE",Jn="USER_CONSENT_RESULT",dl=()=>{let t=window.localStorage.getItem(qn);return pt.isEmpty(t)&&(t=_i(36,62),window.localStorage.setItem(qn,t)),t},al=()=>{const t=window.localStorage.getItem(Yn);return pt.isEmpty(t)&&window.localStorage.setItem(Yn,"true"),pt.isEmpty(t)},ul=()=>{const t=window.localStorage.getItem(Zn);return pt.isEmpty(t)},cl=()=>{window.localStorage.setItem(Zn,"true")},vl=()=>{const t=window.localStorage.getItem(Kn);return pt.isEmpty(t)&&window.localStorage.setItem(Kn,"true"),pt.isEmpty(t)},Qn=()=>window.localStorage.getItem(Jn)==="true",Rn=()=>{window.localStorage.setItem(Jn,"true")};function Nt(t,e){const{appDomain:i}=Xe();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new Ko;var at;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(at||(at={}));const pl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:s,privacy_policy_title:l})=>{const{setIsAgreePolicy:r,bffEventReport:u}=Xe(),d=n.useMemo(()=>{var g;const A=location.search.slice(1),p={};(g=fi(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},[]),c=g=>{var A;return(A=d[g])!==null&&A!==void 0?A:null};n.useEffect(()=>{u?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const a=()=>{u?.({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}}),r?.(!0),window.localStorage.setItem(Gn,"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:a},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},l??"More information"))))};var ml=n.memo(pl);const $n=n.createContext({rtcList:[],tagList:[]});var an;(function(t){t[t.BFF=5]="BFF"})(an||(an={}));const Hi="FOR U",fl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:s,defaultSize:l,isPreview:r=!1,sxpParameter:u,appDomain:d,hashTagSize:c,loadingImage:a,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,B,C;const[j,O]=n.useState([]),[h,_]=n.useState([]),[V,F]=n.useState(!0),[I,L]=n.useState({rtc:"",requestId:""}),P=n.useRef(null),Y=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Gn)),[ee,de]=n.useState(),[Ae,R]=n.useState(),[le,ye]=n.useState(g),[Fe,ue]=n.useState([]),[Ne,Ee]=n.useState(0),[_e,Ue]=n.useState(!1),[$e,tt]=n.useState(null),et=n.useRef(),Oe=n.useRef(),ut=n.useRef(),[gt,Pt]=n.useState(Hi),Ve=n.useRef(-1),ze=n.useRef(null),[Q,J]=n.useState(!1),[G,ce]=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(),[X,W]=n.useState(!1),[je,Ye]=n.useState(),[nt,mt]=n.useState(),[Ke,He]=n.useState([]),[ft,yt]=n.useState(),[Et,$t]=n.useState(),Ut=n.useMemo(()=>pe??b,[pe,b]),Ot=n.useRef(!1);n.useEffect(()=>{var z,H;ce((H=(z=b?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[b]);const jt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=G?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||f)&&X},[U,G,f,S,X]),ni=n.useCallback(z=>{M?.(z),mt(z)},[]),Ct=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(be=>{var ge,Te,De,Pe,Be,N;if(!((ge=be?.video)===null||ge===void 0)&&ge.bindProducts&&((De=(Te=be?.video)===null||Te===void 0?void 0:Te.bindProducts)===null||De===void 0?void 0:De.length)>0){const Z=(N=(Be=(Pe=be?.video)===null||Pe===void 0?void 0:Pe.bindProducts)===null||Be===void 0?void 0:Be.filter(K=>!!K?.bindCta))!==null&&N!==void 0?N:[];return Object.assign(Object.assign({},be),{video:Object.assign(Object.assign({},be?.video),{bindProducts:Z})})}return be}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Ke.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;He(be=>be.filter(ge=>te-ge.time<=he))},1e3)),()=>{clearInterval(z)}},[Ke]),n.useEffect(()=>{const z=H=>{et.current=H};return At.on(at.CHANGE_THEME_TAG,z),()=>{At.off(at.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{ye(g)},[g]);const Ge=n.useMemo(()=>e?.find(z=>z.type===an.BFF),[e]),xe=n.useMemo(()=>{var z;return((z=Ge?.headers)===null||z===void 0?void 0:z["x-app-id"])+dl()},[Ge]),re=()=>{var z,H;function te(ge){const Te=ge.match(/groups=([^&]+)/);if(!Te||!Te[1])return!1;const Pe=Te[1].split(",");for(const Be of Pe){const[N,Z]=Be.split(":");if(N==="4")return Z==="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((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(be))},me=n.useCallback((z,H,te=!0)=>{var he;if(!Ge)return;const be=Ge.url;if(H?.query){const Te=Fn.stringify(H.query);z=`${z}?${Te}`}const ge=location.search.slice(1);return(he=fi(ge))===null||he===void 0||he.forEach(Te=>{Te.split("=")[0],Te.split("=")[1]}),window.fetch(`${be}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":xe},Ge.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ge.headers),{"x-user-id":xe}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[Ge,xe]),Qe=n.useCallback(z=>{var H;if(re())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return me?.(`v1/data/collect/${(H=Ge?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[me,Ge]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(he){if(!(re()&&(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());Qe({eventName:ge?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[Qe]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const be=te instanceof URL?te.href:te.toString();if(re()&&(be.includes("https://tr.snapchat.com/p")||be.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ge=H(te,he);function Te(De){return ht(this,void 0,void 0,function*(){return typeof De=="string"?JSON.parse(De):De instanceof Blob?JSON.parse(yield De.text()):De instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(De)):null})}return ge&&Promise.resolve().then(()=>ht(this,void 0,void 0,function*(){var De,Pe;try{const Be=yield Te(he);be.includes("https://tr.snapchat.com/p")?(Pe=(De=Be?.req)===null||De===void 0?void 0:De.forEach)===null||Pe===void 0||Pe.call(De,N=>{var Z,K;!((Z=N?.t)===null||Z===void 0)&&Z.ev&&Qe({eventName:(K=N?.t)===null||K===void 0?void 0:K.ev,eventSource:"Snapchat Pixel"})}):be.includes("https://analytics.tiktok.com/api/v2/pixel")&&Be?.event&&Qe({eventName:Be.event,eventSource:"TikTok Pixel"})}catch(Be){console.error("\u76D1\u63A7\u5931\u8D25:",Be)}})),ge},()=>{z.sendBeacon=H}},[Qe]),n.useEffect(()=>{const z=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){const H=this;if(H.action.includes("facebook.com/tr")){const te=new FormData(H),he={};for(const[be,ge]of te.entries())he[be]=ge;return Qe({eventName:he?.ev,eventSource:"Meta Pixel"}),z.call(H)}return z.call(H)}},[]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return ht(this,void 0,void 0,function*(){var be;let ge;try{ge=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Te){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Te),z.apply(this,he)}try{if(re()&&(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=z.apply(this,he);if(ge.includes("https://www.google-analytics.com/g/collect")){const De=new URL(ge),Pe=Object.fromEntries(De.searchParams.entries()),Be=(be=he[1])===null||be===void 0?void 0:be.body;if(Pe?.en)Qe({eventName:Pe?.en,eventSource:"Google Analytics"});else if(Be){const Z=function(K){if(typeof K!="string")return[];const ie=[],se=/en=([^&\r\n]*)/g;let $;for(;($=se.exec(K))!==null;)ie.push(decodeURIComponent($[1]));return ie}(Be);Z?.forEach(K=>{Qe({eventName:K,eventSource:"Google Analytics"})})}}return Te}catch(Te){throw console.error(Te),Te}})}},[]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(re()&&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&&Qe({eventName:ge.e,eventSource:"Northbeam Pixel"})}}catch(be){console.error("Failed to parse Northbeam event from XHR",be)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[Qe]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Lt=n.useCallback((z,H)=>{if(!Ge)return;const te=Ge.url;if(H?.query){const he=Fn.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Ge.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Ge]),Qt=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be,ge,Te,De,Pe,Be,N,Z,K,ie,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:s,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},Et&&{chatlabsId:Et}),E&&{type:"story"}),nt)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(nt)});else if(i){const oe=(ge=(be=(he=fi(i))===null||he===void 0?void 0:he.filter(fe=>{var ae,Se;const ne=fe.split("=")[0];return(Se=(ae=v?.channels)!==null&&ae!==void 0?ae:[])===null||Se===void 0?void 0:Se.includes(ne)}))===null||be===void 0?void 0:be.join("&"))!==null&&ge!==void 0?ge:"";oe&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(oe)}))}if(S){let oe=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&y&&y?.length>0&&{channel:y?.[0]}),!z?.channel||Y.current)return;Y.current=!0;let fe=[],ae=null;const Se=ne=>ht(void 0,void 0,void 0,function*(){var Ie,rt,ot,ct,lt,it;if(ne.pageNum=oe,ae=yield Lt?.("recommend/direct_page",{method:"POST",body:ne}),!ae?.success)return;F(!1),fe=fe.concat((ct=(ot=(rt=(Ie=ae?.data)===null||Ie===void 0?void 0:Ie.recList)===null||rt===void 0?void 0:rt.filter)===null||ot===void 0?void 0:ot.call(rt,Ze=>Ze?.product||Ze?.video))!==null&&ct!==void 0?ct:[]),j?.length===0&&(O(Ct(Object.assign(Object.assign({},ae?.data),{recList:fe}))),ue(Ct(Object.assign(Object.assign({},ae?.data),{recList:fe})))),((it=(lt=ae?.data)===null||lt===void 0?void 0:lt.recList)===null||it===void 0?void 0:it.some(Ze=>Ze?.product||Ze?.video))&&(oe=oe+1,yield Se(ne))});return yield Se(z),!z?.hashTag&&ae&&L({rtc:(Te=ae?.data)===null||Te===void 0?void 0:Te.rtc,requestId:(De=ae?.data)===null||De===void 0?void 0:De.requestId}),Object.assign(Object.assign({},ae?.data),{recList:fe})}G?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Pe=z?.pageNum)!==null&&Pe!==void 0?Pe:1}));const $=yield me?.("v1/recommend/list",{method:"POST",body:z});if(!$?.success)return;z?.hashTag||L({rtc:$.data.rtc,requestId:$.data.requestId}),G?.enablePreview&&!S&&(!((N=(Be=$?.data)===null||Be===void 0?void 0:Be.recList)===null||N===void 0)&&N.some(fe=>fe?.product||fe?.video)||J(!0));let ve=[];return ve=ve.concat((se=(ie=(K=(Z=$?.data)===null||Z===void 0?void 0:Z.recList)===null||K===void 0?void 0:K.filter)===null||ie===void 0?void 0:ie.call(K,oe=>oe?.product||oe?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},$.data),{recList:ve})}),[me,i,s,l,y,nt,Et,Lt]),Dn=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be;if(j.length<=0)return;const ge=j?.[j?.length-1],Te=yield Qt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:Ae?.hashTag},((H=ge?.product)===null||H===void 0?void 0:H.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}),G?.enablePreview&&!S&&{pageNum:z}));return O(j.concat(Ct(Te))),ue(Fe.concat(Ct(Te))),Te}),[Qt,j,Ae,Fe]),Ei=n.useCallback((z,H)=>{var te,he,be,ge,Te;let De=!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 Be=localStorage.getItem("sessionStartTime"),N=Be?JSON.parse(Be):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)&&(H?.("sessionTimeOut"),dn(),Oe.current=new Date,De=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&dn();return De},[b]),Tt=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var be,ge;if(!o||G?.enablePreview||he&&re())return;z||(z={});const Te=sl(),De={},Pe=location.search.slice(1);(be=fi(Pe))===null||be===void 0||be.forEach(ie=>{const se=ie.split("=")[0],$=ie.split("=")[1];De[se]=$});const Be=De?.cl_source,N=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:I.rtc,requestId:I.requestId},{playbookType:ft}),je&&te&&{layoutVariantId:je}),H),H?.position&&nt&&{position:Number(H?.position)+1+""}),Be&&{clSource:Be}),Z=Object.entries(z).map(([ie,se])=>({name:ie,value:se})),K=Object.entries(N).map(([ie,se])=>se&&{name:ie,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",N),console.log("========= \u7ED3\u675F ========="),me?.(`v2/cld/${(ge=Ge?.headers)===null||ge===void 0?void 0:ge["x-app-id"]}/${H?.eventSubject}${Be?`/${decodeURIComponent(Be)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[me,I,o,G?.enablePreview,je,G,ft,Ge]),Ai=n.useCallback(z=>{var H,te,he,be,ge,Te,De,Pe,Be,N,Z,K,ie,se,$,ve,oe,fe,{json:ae,product:Se=[],rec:ne,contentType:Ie="post",position:rt,eventName:ot}=z,ct=st(z,["json","product","rec","contentType","position","eventName"]);const lt=pt.cloneDeep(ae),it=new URLSearchParams(window.location.search),bt=it?.get("fbclid"),Ze={event_source_url:(H=window?.location)===null||H===void 0?void 0:H.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:bt?`fb.2.${new Date().getTime()}.${bt}`:"",fbp:on("_fbp")?`${on("_fbp")}`:"",time:Math.floor(Date.now()/1e3)};let vt=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:rt,currency:(Be=(Pe=(De=Se?.[0])===null||De===void 0?void 0:De.currency)===null||Pe===void 0?void 0:Pe.split("-"))===null||Be===void 0?void 0:Be[0],value:Se?.reduce((Ce,qe)=>Ce+qe?.price,0),contents:(N=Se?.map(Ce=>({id:Ce?.itemId,item_price:Ce?.price})))!==null&&N!==void 0?N:[],image_urls:(K=(Z=ne?.video)===null||Z===void 0?void 0:Z.imgUrls)!==null&&K!==void 0?K:[],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(!(!((se=ne?.video)===null||se===void 0)&&se.url)&&!(!((ve=($=ne?.video)===null||$===void 0?void 0:$.imgUrls)===null||ve===void 0)&&ve.length)&&ne?.product&&Array.isArray(G?.productPost)&&((oe=G?.productPost)===null||oe===void 0?void 0:oe.length)>0){const Ce=ne?.product,qe={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:[]};vt=Object.assign(Object.assign({},vt),qe)}(ot==="ContentSwipe"||ot==="Engagement"||ot==="ExitFeed")&&["content_ids","content_category","currency","contents","image_urls","video_urls","prompt"].forEach(qe=>{vt?.[qe]&&delete vt[qe]});const kt=/\{\{(.*?)\}\}/g,xt=Ce=>{if(Ce){if(Ce instanceof Array)Ce?.map(qe=>xt(qe));else for(const qe in Ce)if(Object.prototype.hasOwnProperty.call(Ce,qe)){const It=Ce?.[qe];if(typeof It=="object")qe==="custom_data"&&(Ce[qe]=vt??{}),xt(It);else if(typeof It=="string"){const Re=It?.match(kt);Re&&Re.forEach(Mt=>{var Ht;const we=Mt.substring(2,Mt.length-2);try{let dt=new Function("fix_par","product",`return ${we}`)(Ze,Se?.[0]);dt?(we?.indexOf("currency")!==-1&&dt?.indexOf("-")!==-1&&typeof dt=="string"&&(dt=(Ht=dt?.split("-"))===null||Ht===void 0?void 0:Ht[0]),Ce[qe]=dt):delete Ce[qe]}catch(dt){delete Ce[qe],console.error("An error occurred:",dt?.message)}})}}}};return xt(lt),console.log("capi event params:",lt),lt},[xe,G,j]),$i=n.useCallback(z=>{var H,te,he,be,ge,Te,De,Pe,Be,N,{eventName:Z}=z,K=st(z,["eventName"]);if(!o||G?.enablePreview||re())return;let ie=!1;const se=(H=G?.pixel)===null||H===void 0?void 0:H[Z];if(se?.event_name&&typeof window?.fbq=="function"){let oe=function(fe,ae,Se){const ne=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),Ie=fe.indexOf("?")!==-1?"&":"?";return fe.match(ne)?fe.replace(ne,"$1"+ae+"="+Se+"$2"):fe+Ie+ae+"="+Se};if(Z==="PageView"&&se?.event_name==="PageView")if(!Ot.current)Ot.current=!0;else{const fe=window.location.href,ae=oe(fe,"timestamp",Date.now());history.pushState({path:ae},"",ae),ie=!0}else window?.fbq("track",se?.event_name,Ai(Object.assign({json:se,eventName:Z},K)))}if(!ie){Z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(te=G?.tiktokPixel)===null||te===void 0?void 0:te[Z];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,Ai(Object.assign({json:oe,eventName:Z},K))))}const $=(ge=G?.snapchatPixel)===null||ge===void 0?void 0:ge[Z];$?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",$?.event_name,Ai(Object.assign({json:$,eventName:Z},K))),Z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Te=window?.Northbeam)===null||Te===void 0?void 0:Te.trackPageView)=="function"&&((De=window?.Northbeam)===null||De===void 0||De.trackPageView());const ve=(Pe=G?.converApi)===null||Pe===void 0?void 0:Pe[Z];if(A&&ve){const oe=Ai(Object.assign({json:ve,eventName:Z},K)),fe={},ae=location.search.slice(1);(Be=fi(ae))===null||Be===void 0||Be.forEach(ne=>{const Ie=ne.split("=")[0],rt=ne.split("=")[1];fe[Ie]=rt});const Se=fe?.cl_source;me?.(`v2/fb/${(N=Ge?.headers)===null||N===void 0?void 0:N["x-app-id"]}/${Z}${Se?`/${decodeURIComponent(Se)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[me,o,A,G,Ge,Ai]),pi=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[me]),ki=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[me]),di=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/customform",{method:"POST",body:z});return H?.success}),[me]),Zt=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be,ge,Te,De,Pe;const Be=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Be))try{const N=(Te=(ge=(be=fi(i))===null||be===void 0?void 0:be.filter(K=>{var ie,se;const $=K.split("=")[0];return(se=(ie=v?.channels)!==null&&ie!==void 0?ie:[])===null||se===void 0?void 0:se.includes($)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Te!==void 0?Te:"",Z=yield me?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(N)}});_((Pe=(De=Z?.data)===null||De===void 0?void 0:De.tags)!==null&&Pe!==void 0?Pe:[])}catch(N){console.log("e",N)}}),[me,i]),ei=n.useCallback((z,H,te,he,be,ge,Te)=>{var De,Pe,Be,N,Z,K,ie,se,$,ve,oe,fe,ae,Se,ne,Ie,rt,ot,ct,lt,it,bt,Ze,vt,kt,xt,Ce,qe,It,Re,Mt,Ht,we,dt,oi,bi;const Kt=te?.bindCta,Wi=((De=H?.video)===null||De===void 0?void 0:De.bindProduct)||((Pe=H?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((N=(Be=H?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||N===void 0?void 0:N.length)>0;let mi="",Le=null;_e?mi="hashTagPage":!((Z=H?.video)===null||Z===void 0)&&Z.url?(mi="videoPage",Le="video"):!((ie=(K=H?.video)===null||K===void 0?void 0:K.imgUrls)===null||ie===void 0)&&ie.length&&(mi="imagePage",Le="image");const Wt=(Se=(fe=(se=te?.tags)!==null&&se!==void 0?se:(oe=(ve=($=H?.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:(ae=H?.video)===null||ae===void 0?void 0:ae.tags)!==null&&Se!==void 0?Se:(ne=H?.product)===null||ne===void 0?void 0:ne.tags;Tt?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Ie=Kt?.itemId)!==null&&Ie!==void 0?Ie:"",ctaName:(rt=Kt?.title)!==null&&rt!==void 0?rt:"",contentTags:Wt?JSON.stringify(Wt):"",position:he+"",contentId:(ct=(ot=H?.video)===null||ot===void 0?void 0:ot.itemId)!==null&&ct!==void 0?ct:"",productId:Wi?te?.itemId:"",traceInfo:(oi=(Ht=(Ce=(Ze=(lt=Kt?.traceInfo)!==null&<!==void 0?lt:(bt=(it=H?.video)===null||it===void 0?void 0:it.bindCta)===null||bt===void 0?void 0:bt.traceInfo)!==null&&Ze!==void 0?Ze:(xt=(kt=(vt=H?.video)===null||vt===void 0?void 0:vt.bindProduct)===null||kt===void 0?void 0:kt.bindCta)===null||xt===void 0?void 0:xt.traceInfo)!==null&&Ce!==void 0?Ce:(Mt=(Re=(It=(qe=H?.video)===null||qe===void 0?void 0:qe.bindProducts)===null||It===void 0?void 0:It[0])===null||Re===void 0?void 0:Re.bindCta)===null||Mt===void 0?void 0:Mt.traceInfo)!==null&&Ht!==void 0?Ht:(dt=(we=H?.product)===null||we===void 0?void 0:we.bindCta)===null||dt===void 0?void 0:dt.traceInfo)!==null&&oi!==void 0?oi:"",fromKName:mi,fromKPage:(bi=location?.href)!==null&&bi!==void 0?bi:"",contentFormat:Le})})},[Tt,_e]),Dt=n.useCallback(()=>{var z,H;const te=new Date;Oe.current=te,Tt?.({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=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:""},reportLayId:!1})},[Tt]),Vn=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){var z,H;const te=yield me?.("v1/account",{method:"GET"});return $t((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[me]),en=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[me]);n.useEffect(()=>{jt||Dt()},[jt]),n.useEffect(()=>{if(jt||r)return;F(!0);let z,H;Qt().then(te=>{var he,be,ge,Te,De,Pe,Be,N,Z,K,ie;if(te){const se=Ct(te);let $,ve;if(te?.layoutVariantId){z=te?.layoutVariantId,Ye(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=(De=(Te=$?.data)===null||Te===void 0?void 0:Te.sxpPageConf)===null||De===void 0?void 0:De.globalConfig,ce(ve),k?.($?.data),!((Z=(N=(Be=(Pe=ve?.consent)===null||Pe===void 0?void 0:Pe[0])===null||Be===void 0?void 0:Be.item)===null||N===void 0?void 0:N.props)===null||Z===void 0)&&Z.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(nt||(ve?.playbook==="organic menu"||!ve&&G?.playbook==="organic menu"?(yt("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(yt("paidMedia"),H="paidMedia")),O(se),ue(se),Zt($??Ut),nt){const oe=se?.[0],fe=((K=oe?.video)===null||K===void 0?void 0:K.traceInfo)||((ie=oe?.product)===null||ie===void 0?void 0:ie.traceInfo)||"";Tt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:fe,branchfeed:nt},z&&{layoutVariantId:z})}),Tt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:fe,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ut?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{Tt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),F(!1)})},[jt,nt]),n.useEffect(()=>{r&&(F(!0),Zt(b),Qt().then(z=>{if(z){const H=Ct(z);G?.playbook==="organic menu"&&!nt&&H.unshift("organic menu"),O(H),ue(H)}}).finally(()=>{F(!1)}))},[Qt,Zt,nt]);const tn=Nt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",d);return n.createElement($n.Provider,{value:{rtcList:j,setRtcList:O,mutateLike:pi,mutateUnlike:ki,submitForm:di,popupDetailData:ee,loadVideos:Dn,setPopupDetailData:de,getRecommendVideos:Qt,bffEventReport:Tt,isPreview:r,loading:V,sxpParameter:u,waterFallData:Ae,setWaterFallData:R,ctaEvent:ei,swiperRef:P,openHashtag:le,setOpenHashtag:ye,cacheRtcList:Fe,setCacheRtcList:ue,cacheActiveIndex:Ne,setCacheActiveIndex:Ee,isFromHashtag:_e,setIsFromHashtag:Ue,appDomain:d,hashTagSize:c,loadingImage:a??tn,isOpenHashTag:g,tagList:h,setLoading:F,videoRef:$e,setVideoRef:tt,bffFbReport:$i,isAgreePolicy:U,setIsAgreePolicy:q,curTime:Oe,h5EnterLink:Dt,themeTag:et,isShowConsent:jt,selectTag:gt,setSelectTag:Pt,globalConfig:G,popupCurTimeRef:ze,checkCommodityIndexRef:Ve,isEditor:S,isNoMoreData:Q,updateChannel:ni,channel:nt,eventTimeList:Ke,setEventTimeList:He,multiPostTimeRef:ut,refreshFeSession:Ei,getAccount:Vn,accountSonsent:en,isDiyH5:E,pixelPvStatusRef:Ot}},jt?n.createElement(ml,Object.assign({},(C=(B=(T=G?.consent)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||C===void 0?void 0:C.props)):t({rtcList:j,mutateLike:pi,mutateUnlike:ki,submitForm:di,tagList:h,pageData:Ut}))};var eo=n.memo(fl);function Xe(){return n.useContext($n)}var to;(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"})(to||(to={}));const io=n.createContext({$store:{},options:[],configs:[]}),hl=({children:t,isSsr:e,enable:i})=>{const[o,s]=n.useState([]),{schema:l}=ui(),[r,u]=n.useState(l.__STORE__||{}),[d,c]=n.useState([]);n.useEffect(()=>{var A;e||pt.isEqual(d,l?.dataSource)||c((A=l?.dataSource)!==null&&A!==void 0?A:[])},[l?.dataSource,e]);const a=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){const{$store:A,idMapName:p}=yield Hn("",d);u(A),g(A,p)}),[d]),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)})}),s(m)};return n.useEffect(()=>{e||a()},[a,e,l]),i?n.createElement(io.Provider,{value:{$store:l.__STORE__||r,options:o,configs:d}},t):t};var Al=n.memo(hl);const zi={id:_i(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},un={id:"",duration:0,name:"none"},no=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[zi],redoStack:[],popup:un,setPopup:()=>{}}),oo=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:s=!0,utmVal:l},r)=>{const[u,d]=n.useState(null),[c,a]=n.useState(o||{pointData:[zi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[g,A]=n.useState([zi]),[p,m]=n.useState([[zi]]),[f,S]=n.useState([]),[v,y]=n.useState(un);typeof window<"u"&&(window.sxpPopup=(M,D)=>{y(Object.assign(Object.assign(Object.assign({},un),{id:M}),D))}),typeof window<"u"&&(window.getJointUtmLink=M=>(cl(),M?.indexOf("?")!==-1?M+(l?"&"+l:""):M+(l?"?"+l:""))),n.useEffect(()=>{m([c.pointData]),S([])},[c.type]);const b=n.useCallback(M=>{const D=pt.cloneDeep(c);D&&(D.dataSource=M,a?.(D))},[c]),[w,E]=n.useState();n.useImperativeHandle(r,()=>({loadSchema(M){M&&(m([M.pointData]),a(M))},exportSchema(){return pt.cloneDeep(c)},getPageInfoData(){return w},initPageInfoData(M){M&&E(M)}}));const k=n.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return n.createElement(no.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:d,setSchema:a,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(Al,{isSsr:i,enable:s},t))});var bl=Object.freeze({__proto__:null,EditorCore:oo}),gl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],yl=[{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 _t(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:s}=Xe(),l=n.useCallback((d,c,a,g,A,p)=>{var m,f,S,v,y,b,w,E,k,M,D,x,T,B,C,j,O,h,_,V,F,I,L,P,Y,U,q,ee,de,Ae,R,le,ye,Fe,ue,Ne,Ee,_e;if(o?.findIndex(Oe=>Oe.target===d?.target)!==-1)return;d&&s?.(Oe=>[...Oe,{target:d?.target,time:new Date}]);let $e="";e&&(!((f=(m=c?.video)===null||m===void 0?void 0:m.bindProducts)===null||f===void 0)&&f.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?$e="videoPage":!((y=c?.video)===null||y===void 0)&&y.imgUrls&&(!((w=(b=c?.video)===null||b===void 0?void 0:b.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":c?.product&&($e="productPage");const tt=(B=(x=(E=a?.tags)!==null&&E!==void 0?E:(D=(M=(k=c?.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=c?.video)===null||T===void 0?void 0:T.tags)!==null&&B!==void 0?B:(C=c?.product)===null||C===void 0?void 0:C.tags;let et=null;!((j=c?.video)===null||j===void 0)&&j.url?et="video":!((O=c?.video)===null||O===void 0)&&O.imgUrls&&(!((_=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||_===void 0)&&_.length)&&(et="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(V=a?.itemId)!==null&&V!==void 0?V:"",productName:(F=a?.title)!==null&&F!==void 0?F:"",price:a?.price?a?.price+"":"0",productCollection:(I=a?.collection)!==null&&I!==void 0?I:"",fromKName:$e,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:A+"",contentId:(P=(L=c?.video)===null||L===void 0?void 0:L.itemId)!==null&&P!==void 0?P:"",ctatId:(Y=g?.itemId)!==null&&Y!==void 0?Y:"",traceInfo:(_e=(ue=(ye=(de=(U=p??a?.traceInfo)!==null&&U!==void 0?U:(ee=(q=c?.video)===null||q===void 0?void 0:q.bindProduct)===null||ee===void 0?void 0:ee.traceInfo)!==null&&de!==void 0?de:(le=(R=(Ae=c?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||R===void 0?void 0:R[0])===null||le===void 0?void 0:le.traceInfo)!==null&&ye!==void 0?ye:(Fe=c?.product)===null||Fe===void 0?void 0:Fe.traceInfo)!==null&&ue!==void 0?ue:(Ee=(Ne=c?.video)===null||Ne===void 0?void 0:Ne.bindCta)===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&_e!==void 0?_e:""},et&&{contentFormat:et})})},[t,e,i,o]),r=n.useCallback((d,c,a,g,A)=>{var p,m,f,S,v,y,b,w,E,k,M,D,x,T;let B="";e&&(!((m=(p=d?.video)===null||p===void 0?void 0:p.bindProducts)===null||m===void 0)&&m.length||!((f=d?.video)===null||f===void 0)&&f.bindProduct)?B="pdpPage":d?.product&&(B="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:B,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:A+"",contentId:(S=d?.video)===null||S===void 0?void 0:S.itemId,ctatId:a?.itemId,traceInfo:(T=(D=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(b=(y=d?.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=d?.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=d?.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]),u=n.useCallback((d,c,a,g)=>{c&&c===Hi&&t?.({eventInfo:{lastFeed:d,themeTags:a?`['${a}']`:"",hashTags:g?`['${g}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:r,backMainFeed:u}}const wl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,s)=>n.createElement("div",{key:s,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 Sl=n.memo(wl);const xl=t=>{var e,i,{columns:o,style:s,title:l,textStyle:r,submitBgColor:u,submitColor:d,submitText:c,layoutType:a="inline",isExternalLink:g,isPopup:A,onClick:p,onClose:m,submitButtonStyle:f}=t,S=st(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:y}=Xe(),{jumpToWeb:b}=_t(),[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"}],[]),B=((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(()=>pt.cloneDeep(o)||T,[o,T]),j=n.useCallback(h=>{const{name:_,value:V}=h.target;M(Object.assign(Object.assign({},k),{[_]:V}))},[k]),O=pt.debounce(h=>ht(void 0,void 0,void 0,function*(){var _,V,F,I,L;const P=k;if(!P)return;const Y=(V=(_=Object.keys(P))===null||_===void 0?void 0:_.map(q=>{var ee;return{name:q,value:(ee=P[q])!==null&&ee!==void 0?ee:""}}))===null||V===void 0?void 0:V.filter(q=>q?.value);if(!Y||!Y?.length)return;E(!0);const U=yield v?.({attributes:Y});if(E(!1),U){if(g){const q=y,ee=(F=q?.video)===null||F===void 0?void 0:F.bindProduct,de=(L=(I=q?.video)===null||I===void 0?void 0:I.bindProduct)===null||L===void 0?void 0:L.bindCta,Ae=y?.index;b(h,q,ee,de,Ae)}A||m?.(),p?.()}}),1e3);return n.useEffect(()=>{const h=()=>{var _,V;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((_=document?.documentElement)===null||_===void 0?void 0:_.clientHeight)||((V=document?.body)===null||V===void 0?void 0:V.clientHeight))<B?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 ${We.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Me(l,r)}}),n.createElement("div",Object.assign({className:We.css(Object.assign(Object.assign({},s),{marginTop:D}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(Sl,{columns:C,layout:a,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":c,onClick:O,className:"pb-appoint-form-btn",style:Object.assign({color:d,background:u},f),dangerouslySetInnerHTML:{__html:Me(w?"loading...":c,f)}})))};var Tl=n.memo(xl);function St(t,e){return t.extend=e,t}const El=St(Tl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:yl,bindableProps:[],interactionRender:gl},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 kl=[{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"]}]}],Il=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function lo(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function cn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:lo(e[i])&&lo(t[i])&&Object.keys(e[i]).length>0&&cn(t[i],e[i])})}const so={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 zt(){const t=typeof document<"u"?document:{};return cn(t,so),t}const Cl={document:so,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 Bt(){const t=typeof window<"u"?window:{};return cn(t,Cl),t}function ci(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Pl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function gi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Jt(){return Date.now()}function Ol(t){const e=Bt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function jl(t,e){e===void 0&&(e="x");const i=Bt();let o,s,l;const r=Ol(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(s==="none"?"":s)):(l=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=l.m41:o.length===16?s=parseFloat(o[12]):s=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?s=l.m42:o.length===16?s=parseFloat(o[13]):s=parseFloat(o[5])),s||0}function Ui(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Ll(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&&!Ll(o)){const s=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,r=s.length;l<r;l+=1){const u=s[l],d=Object.getOwnPropertyDescriptor(o,u);d!==void 0&&d.enumerable&&(Ui(t[u])&&Ui(o[u])?o[u].__swiper__?t[u]=o[u]:qt(t[u],o[u]):!Ui(t[u])&&Ui(o[u])?(t[u]={},o[u].__swiper__?t[u]=o[u]:qt(t[u],o[u])):t[u]=o[u])}}}return t}function Xi(t,e,i){t.style.setProperty(e,i)}function ro(t){let{swiper:e,targetPosition:i,side:o}=t;const s=Bt(),l=-e.translate;let r=null,u;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",a=(A,p)=>c==="next"&&A>=p||c==="prev"&&A<=p,g=()=>{u=new Date().getTime(),r===null&&(r=u);const A=Math.max(Math.min((u-r)/d,1),0),p=.5-Math.cos(A*Math.PI)/2;let m=l+p*(i-l);if(a(m,i)&&(m=i),e.wrapperEl.scrollTo({[o]:m}),a(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(g)};g()}function ti(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function qi(t){try{console.warn(t);return}catch{}}function yi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ci(e)),i}function ao(t){const e=Bt(),i=zt(),o=t.getBoundingClientRect(),s=i.body,l=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,d=t===e?e.scrollX:t.scrollLeft;return{top:o.top+u-l,left:o.left+d-r}}function Ml(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 Nl(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 vi(t,e){return Bt().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 Yi(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 vn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pn(t,e,i){const o=Bt();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 mn;function Dl(){const t=Bt(),e=zt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function uo(){return mn||(mn=Dl()),mn}let fn;function Vl(t){let{userAgent:e}=t===void 0?{}:t;const i=uo(),o=Bt(),s=o.navigator.platform,l=e||o.navigator.userAgent,r={ios:!1,android:!1},u=o.screen.width,d=o.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let a=l.match(/(iPad).*OS\s([\d_]+)/);const g=l.match(/(iPod)(.*OS\s([\d_]+))?/),A=!a&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let m=s==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!a&&m&&i.touch&&f.indexOf(`${u}x${d}`)>=0&&(a=l.match(/(Version)\/([\d.]+)/),a||(a=[0,1,"13_0_0"]),m=!1),c&&!p&&(r.os="android",r.android=!0),(a||A||g)&&(r.os="ios",r.ios=!0),r}function co(t){return t===void 0&&(t={}),fn||(fn=Vl(t)),fn}let hn;function Bl(){const t=Bt(),e=co();let i=!1;function o(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(o()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[d,c]=u.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));i=d<16||d===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),r=l||s&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function Fl(){return hn||(hn=Bl()),hn}function Wl(t){let{swiper:e,on:i,emit:o}=t;const s=Bt();let l=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(g=>{r=s.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)&&u()})}),l.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},a=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){d();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",a)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",a)})}function _l(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=[],r=Bt(),u=function(a,g){g===void 0&&(g={});const A=r.MutationObserver||r.WebkitMutationObserver,p=new A(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const f=function(){s("observerUpdate",m[0])};r.requestAnimationFrame?r.requestAnimationFrame(f):r.setTimeout(f,0)});p.observe(a,{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)},d=()=>{if(e.params.observer){if(e.params.observeParents){const a=Yi(e.hostEl);for(let g=0;g<a.length;g+=1)u(a[g])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(a=>{a.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",c)}var Hl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const s=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][s](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function s(){o.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var l=arguments.length,r=new Array(l),u=0;u<l;u++)r[u]=arguments[u];e.apply(o,r)}return s.__emitterProxy=e,o.on(t,s,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((s,l)=>{(s===e||s.__emitterProxy&&s.__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 s=arguments.length,l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];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(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(o,[d,...i])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(c=>{c.apply(o,i)})}),t}};function zl(){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(vi(o,"padding-left")||0,10)-parseInt(vi(o,"padding-right")||0,10),i=i-parseInt(vi(o,"padding-top")||0,10)-parseInt(vi(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 Ul(){const t=this;function e(T,B){return parseFloat(T.getPropertyValue(t.getDirectionLabel(B))||0)}const i=t.params,{wrapperEl:o,slidesEl:s,size:l,rtlTranslate:r,wrongRTL:u}=t,d=t.virtual&&i.virtual.enabled,c=d?t.virtual.slides.length:t.slides.length,a=ti(s,`.${t.params.slideClass}, swiper-slide`),g=d?t.virtual.slides.length:a.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,a.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Xi(o,"--swiper-centered-offset-before",""),Xi(o,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&t.grid;M?t.grid.initSlides(a):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 B;if(a[T]&&(B=a[T]),M&&t.grid.updateSlide(T,B,a),!(a[T]&&vi(B,"display")==="none")){if(i.slidesPerView==="auto"){x&&(a[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(B),j=B.style.transform,O=B.style.webkitTransform;if(j&&(B.style.transform="none"),O&&(B.style.webkitTransform="none"),i.roundLengths)D=t.isHorizontal()?pn(B,"width",!0):pn(B,"height",!0);else{const h=e(C,"width"),_=e(C,"padding-left"),V=e(C,"padding-right"),F=e(C,"margin-left"),I=e(C,"margin-right"),L=C.getPropertyValue("box-sizing");if(L&&L==="border-box")D=h+F+I;else{const{clientWidth:P,offsetWidth:Y}=B;D=h+_+V+F+I+(Y-P)}}j&&(B.style.transform=j),O&&(B.style.webkitTransform=O),i.roundLengths&&(D=Math.floor(D))}else D=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(D=Math.floor(D)),a[T]&&(a[T].style[t.getDirectionLabel("width")]=`${D}px`);a[T]&&(a[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,r&&u&&(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 B=0;B<A.length;B+=1){let C=A[B];i.roundLengths&&(C=Math.floor(C)),A[B]<=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(d&&i.loop){const T=m[0]+b;if(i.slidesPerGroup>1){const B=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let j=0;j<B;j+=1)A.push(A[A.length-1]+C)}for(let B=0;B<t.virtual.slidesBefore+t.virtual.slidesAfter;B+=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()&&r?"marginLeft":t.getDirectionLabel("marginRight");a.filter((B,C)=>!i.cssMode||i.loop?!0:C!==a.length-1).forEach(B=>{B.style[T]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const B=T-l;A=A.map(C=>C<=0?-f:C>B?B+S:C)}if(i.centerInsufficientSlides){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const B=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+B<l){const C=(l-T-B)/2;A.forEach((j,O)=>{A[O]=j-C}),p.forEach((j,O)=>{p[O]=j+C})}}if(Object.assign(t,{slides:a,snapGrid:A,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Xi(o,"--swiper-centered-offset-before",`${-A[0]}px`),Xi(o,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const T=-t.snapGrid[0],B=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+B)}if(g!==c&&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"),!d&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,B=t.el.classList.contains(T);g<=i.maxBackfaceHiddenSlides?B||t.el.classList.add(T):B&&t.el.classList.remove(T)}}function Xl(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let s=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>o?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const u=e.activeIndex+l;if(u>e.slides.length&&!o)break;i.push(r(u))}else i.push(r(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const u=i[l].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function ql(){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 vo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Yl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:s,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let d=0;d<o.length;d+=1){const c=o[d];let a=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(a-=o[0].swiperSlideOffset);const g=(r+(i.centeredSlides?e.minTranslate():0)-a)/(c.swiperSlideSize+u),A=(r-l[0]+(i.centeredSlides?e.minTranslate():0)-a)/(c.swiperSlideSize+u),p=-(r-a),m=p+e.slidesSizesGrid[d],f=p>=0&&p<=e.size-e.slidesSizesGrid[d],S=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(d)),vo(c,S,i.slideVisibleClass),vo(c,f,i.slideFullyVisibleClass),c.progress=s?-g:g,c.originalProgress=s?-A:A}}function Gl(t){const e=this;if(typeof t>"u"){const a=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*a||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:l,isEnd:r,progressLoop:u}=e;const d=l,c=r;if(o===0)s=0,l=!0,r=!0;else{s=(t-e.minTranslate())/o;const a=Math.abs(t-e.minTranslate())<1,g=Math.abs(t-e.maxTranslate())<1;l=a||s<=0,r=g||s>=1,a&&(s=0),g&&(s=1)}if(i.loop){const a=e.getSlideIndexByData(0),g=e.getSlideIndexByData(e.slides.length-1),A=e.slidesGrid[a],p=e.slidesGrid[g],m=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=A?u=(f-A)/m:u=(f+m-p)/m,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:l,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!d&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(d&&!l||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Zl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:s}=t,l=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=g=>ti(o,`.${i.slideClass}${g}, swiper-slide${g}`)[0];let d,c,a;if(l)if(i.loop){let g=s-t.virtual.slidesBefore;g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),d=u(`[data-swiper-slide-index="${g}"]`)}else d=u(`[data-swiper-slide-index="${s}"]`);else r?(d=e.filter(g=>g.column===s)[0],a=e.filter(g=>g.column===s+1)[0],c=e.filter(g=>g.column===s-1)[0]):d=e[s];d&&(r||(a=Nl(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!a&&(a=e[0]),c=Ml(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(g=>{An(g,g===d,i.slideActiveClass),An(g,g===a,i.slideNextClass),An(g,g===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Gi=(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 s=o.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(o.shadowRoot?s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},bn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},gn=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),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((d,c)=>r+o+c)),t.slides.forEach((d,c)=>{u.includes(d.column)&&bn(t,c)});return}const l=s+o-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=l+e;r+=1){const u=(r%i+i)%i;(u<s||u>l)&&bn(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(l+e,i-1);r+=1)r!==s&&(r>l||r<s)&&bn(t,r)};function Kl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let s;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?s=l:o>=e[l]&&o<e[l+1]&&(s=l+1):o>=e[l]&&(s=l);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Jl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:s,activeIndex:l,realIndex:r,snapIndex:u}=e;let d=t,c;const a=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 d>"u"&&(d=Kl(e)),o.indexOf(i)>=0)c=o.indexOf(i);else{const p=Math.min(s.slidesPerGroupSkip,d);c=p+Math.floor((d-p)/s.slidesPerGroup)}if(c>=o.length&&(c=o.length-1),d===l&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(d===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=a(d);return}const g=e.grid&&s.grid&&s.grid.rows>1;let A;if(e.virtual&&s.virtual.enabled&&s.loop)A=a(d);else if(g){const p=e.slides.filter(f=>f.column===d)[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/s.grid.rows)}else if(e.slides[d]){const p=e.slides[d].getAttribute("data-swiper-slide-index");p?A=parseInt(p,10):A=d}else A=d;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:A,previousIndex:l,activeIndex:d}),e.initialized&&gn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==A&&e.emit("realIndexChange"),e.emit("slideChange"))}function Ql(t,e){const i=this,o=i.params;let s=t.closest(`.${o.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${o.slideClass}, swiper-slide`)&&(s=u)});let l=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){l=!0,r=u;break}}if(s&&l)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Rl={updateSize:zl,updateSlides:Ul,updateAutoHeight:Xl,updateSlidesOffset:ql,updateSlidesProgress:Yl,updateProgress:Gl,updateSlidesClasses:Zl,updateActiveIndex:Jl,updateClickedSlide:Ql};function $l(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:s,wrapperEl:l}=e;if(i.virtualTranslate)return o?-s:s;if(i.cssMode)return s;let r=jl(l,t);return r+=e.cssOverflowAdjustment(),o&&(r=-r),r||0}function es(t,e){const i=this,{rtlTranslate:o,params:s,wrapperEl:l,progress:r}=i;let u=0,d=0;const c=0;i.isHorizontal()?u=o?-t:t:d=t,s.roundLengths&&(u=Math.floor(u),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:d,s.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-d:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${u}px, ${d}px, ${c}px)`);let a;const g=i.maxTranslate()-i.minTranslate();g===0?a=0:a=(t-i.minTranslate())/g,a!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function ts(){return-this.snapGrid[0]}function is(){return-this.snapGrid[this.snapGrid.length-1]}function ns(t,e,i,o,s){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:r,wrapperEl:u}=l;if(l.animating&&r.preventInteractionOnTransition)return!1;const d=l.minTranslate(),c=l.maxTranslate();let a;if(o&&t>d?a=d:o&&t<c?a=c:a=t,l.updateProgress(a),r.cssMode){const g=l.isHorizontal();if(e===0)u[g?"scrollLeft":"scrollTop"]=-a;else{if(!l.support.smoothScroll)return ro({swiper:l,targetPosition:-a,side:g?"left":"top"}),!0;u.scrollTo({[g?"left":"top"]:-a,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(a),i&&(l.emit("beforeTransitionStart",e,s),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(a),i&&(l.emit("beforeTransitionStart",e,s),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 os={getTranslate:$l,setTranslate:es,minTranslate:ts,maxTranslate:is,translateTo:ns};function ls(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 po(t){let{swiper:e,runCallbacks:i,direction:o,step:s}=t;const{activeIndex:l,previousIndex:r}=e;let u=o;if(u||(l>r?u="next":l<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&l!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function ss(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),po({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function rs(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),po({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var ds={setTransition:ls,transitionStart:ss,transitionEnd:rs};function as(t,e,i,o,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:d,slidesGrid:c,previousIndex:a,activeIndex:g,rtlTranslate:A,wrapperEl:p,enabled:m}=l;if(!m&&!o&&!s||l.destroyed||l.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const f=Math.min(l.params.slidesPerGroupSkip,r);let S=f+Math.floor((r-f)/l.params.slidesPerGroup);S>=d.length&&(S=d.length-1);const v=-d[S];if(u.normalizeSlideIndex)for(let b=0;b<c.length;b+=1){const w=-Math.floor(v*100),E=Math.floor(c[b]*100),k=Math.floor(c[b+1]*100);typeof c[b+1]<"u"?w>=E&&w<k-(k-E)/2?r=b:w>=E&&w<k&&(r=b+1):w>=E&&(r=b)}if(l.initialized&&r!==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)!==r))return!1;r!==(a||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;if(r>g?y="next":r<g?y="prev":y="reset",A&&-v===l.translate||!A&&v===l.translate)return l.updateActiveIndex(r),u.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),u.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(i,y),l.transitionEnd(i,y)),!1;if(u.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 ro({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(r),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 us(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const l=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(l){const A=r*s.params.grid.rows;u=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else u=s.getSlideIndexByData(r);const d=l?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let a=s.params.slidesPerView;a==="auto"?a=s.slidesPerViewDynamic():(a=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&a%2===0&&(a=a+1));let g=d-u<a;if(c&&(g=g||u<Math.ceil(a/2)),o&&c&&s.params.slidesPerView!=="auto"&&!l&&(g=!1),g){const A=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:A,slideTo:!0,activeSlideIndex:A==="next"?u+1:u-d+1,slideRealIndex:A==="next"?s.realIndex:void 0})}if(l){const A=r*s.params.grid.rows;r=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,o)}),s}function cs(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:s,params:l,animating:r}=o;if(!s||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let u=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(u=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex<l.slidesPerGroupSkip?1:u,c=o.virtual&&l.virtual.enabled;if(l.loop){if(r&&!c&&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+d,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+d,t,e,i)}function vs(t,e,i){e===void 0&&(e=!0);const o=this,{params:s,snapGrid:l,slidesGrid:r,rtlTranslate:u,enabled:d,animating:c}=o;if(!d||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const a=o.virtual&&s.virtual.enabled;if(s.loop){if(c&&!a&&s.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const g=u?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"&&s.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=r.indexOf(f),S<0&&(S=o.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.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(s.loop&&o.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ps(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 ms(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let l=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,l),u=r+Math.floor((l-r)/s.params.slidesPerGroup),d=s.rtlTranslate?s.translate:-s.translate;if(d>=s.snapGrid[u]){const c=s.snapGrid[u],a=s.snapGrid[u+1];d-c>(a-c)*o&&(l+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],a=s.snapGrid[u];d-c<=(a-c)*o&&(l-=s.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,s.slidesGrid.length-1),s.slideTo(l,t,e,i)}function fs(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,l;const r=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?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=t.getSlideIndex(ti(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),gi(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=t.getSlideIndex(ti(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),gi(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var hs={slideTo:as,slideToLoop:us,slideNext:cs,slidePrev:vs,slideReset:ps,slideToClosest:ms,slideToClickedSlide:fs};function As(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{ti(o,`.${i.slideClass}, swiper-slide`).forEach((g,A)=>{g.setAttribute("data-swiper-slide-index",A)})},l=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(l?i.grid.rows:1),u=e.slides.length%r!==0,d=l&&e.slides.length%i.grid.rows!==0,c=a=>{for(let g=0;g<a;g+=1){const A=e.isElement?yi("swiper-slide",[i.slideBlankClass]):yi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(A)}};if(u){if(i.loopAddBlankSlides){const a=r-e.slides.length%r;c(a),e.recalcSlides(),e.updateSlides()}else qi("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)");s()}else if(d){if(i.loopAddBlankSlides){const a=i.grid.rows-e.slides.length%i.grid.rows;c(a),e.recalcSlides(),e.updateSlides()}else qi("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)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function bs(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:s,activeSlideIndex:l,byController:r,byMousewheel:u}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:a,allowSlideNext:g,slidesEl:A,params:p}=d,{centeredSlides:m}=p;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):p.centeredSlides&&d.snapIndex<p.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=a,d.allowSlideNext=g,d.emit("loopFix");return}let f=p.slidesPerView;f==="auto"?f=d.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,d.loopedSlides=v;const y=d.grid&&p.grid&&p.grid.rows>1;c.length<f+v?qi("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"&&qi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let E=d.activeIndex;typeof l>"u"?l=d.getSlideIndex(c.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(c.length/p.grid.rows):c.length,C=(y?c[l].column:l)+(m&&typeof s>"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 _=c.length-1;_>=0;_-=1)c[_].column===h&&b.push(_)}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?c.forEach((h,_)=>{h.column===O&&w.push(_)}):w.push(O)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),M&&b.forEach(j=>{c[j].swiperLoopMoveDOM=!0,A.prepend(c[j]),c[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{c[j].swiperLoopMoveDOM=!0,A.append(c[j]),c[j].swiperLoopMoveDOM=!1}),d.recalcSlides(),p.slidesPerView==="auto"?d.updateSlides():y&&(b.length>0&&M||w.length>0&&k)&&d.slides.forEach((j,O)=>{d.grid.updateSlide(O,j,d.slides)}),p.watchSlidesProgress&&d.updateSlidesOffset(),i){if(b.length>0&&M){if(typeof e>"u"){const j=d.slidesGrid[E],h=d.slidesGrid[E+D]-j;u?d.setTranslate(d.translate-h):(d.slideTo(E+Math.ceil(D),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-h,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-h))}else if(s){const j=y?b.length/p.grid.rows:b.length;d.slideTo(d.activeIndex+j,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(w.length>0&&k)if(typeof e>"u"){const j=d.slidesGrid[E],h=d.slidesGrid[E-x]-j;u?d.setTranslate(d.translate-h):(d.slideTo(E-x,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-h,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-h))}else{const j=y?w.length/p.grid.rows:w.length;d.slideTo(d.activeIndex-j,0,!1,!0)}}if(d.allowSlidePrev=a,d.allowSlideNext=g,d.controller&&d.controller.control&&!r){const j={slideRealIndex:e,direction:o,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...j,slideTo:O.params.slidesPerView===p.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...j,slideTo:d.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}d.emit("loopFix")}function gs(){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(s=>{const l=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;o[l]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),o.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ys={loopCreate:As,loopFix:bs,loopDestroy:gs};function ws(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 Ss(){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 xs={setGrabCursor:ws,unsetGrabCursor:Ss};function Ts(t,e){e===void 0&&(e=this);function i(o){if(!o||o===zt()||o===Bt())return null;o.assignedSlot&&(o=o.assignedSlot);const s=o.closest(t);return!s&&!o.getRootNode?null:s||i(o.getRootNode().host)}return i(e)}function mo(t,e,i){const o=Bt(),{params:s}=t,l=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return l&&(i<=r||i>=o.innerWidth-r)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Es(t){const e=this,i=zt();let o=t;o.originalEvent&&(o=o.originalEvent);const s=e.touchEventsData;if(o.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==o.pointerId)return;s.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(s.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){mo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:r,enabled:u}=e;if(!u||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let d=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in o&&o.which===3||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",a=o.composedPath?o.composedPath():o.path;c&&o.target&&o.target.shadowRoot&&a&&(d=a[0]);const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,A=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(A?Ts(g,d):d.closest(g))){e.allowClick=!0;return}if(l.swipeHandler&&!d.closest(l.swipeHandler))return;r.currentX=o.pageX,r.currentY=o.pageY;const p=r.currentX,m=r.currentY;if(!mo(e,o,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=m,s.touchStartTime=Jt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(s.allowThresholdMove=!1);let f=!0;d.matches(s.focusableElements)&&(f=!1,d.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==d&&i.activeElement.blur();const S=f&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!d.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ks(t){const e=zt(),i=this,o=i.touchEventsData,{params:s,touches:l,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let d=t;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(o.touchId!==null||d.pointerId!==o.pointerId))return;let c;if(d.type==="touchmove"){if(c=[...d.changedTouches].filter(k=>k.identifier===o.touchId)[0],!c||c.identifier!==o.touchId)return}else c=d;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",d);return}const a=c.pageX,g=c.pageY;if(d.preventedByNestedSwiper){l.startX=a,l.startY=g;return}if(!i.allowTouchMove){d.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:a,startY:g,currentX:a,currentY:g}),o.touchStartTime=Jt());return}if(s.touchReleaseOnEdges&&!s.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(a<l.startX&&i.translate<=i.maxTranslate()||a>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",d),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=a,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>s.touchAngle:90-k>s.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||d.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let m=i.isHorizontal()?A:p,f=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;s.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),l.diff=m,m*=s.touchRatio,r&&(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&&!s.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,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&y&&Math.abs(m)>=1){Object.assign(l,{startX:a,startY:g,currentX:a,currentY:g,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let w=!0,E=s.resistanceRatio;if(s.touchReleaseOnEdges&&(E=0),m>0?(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+m)**E))):m<0&&(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-m)**E))),w&&(d.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),s.threshold>0)if(Math.abs(m)>s.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}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function Is(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let s;if(o.type==="touchend"||o.type==="touchcancel"){if(s=[...o.changedTouches].filter(E=>E.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;s=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:r,touches:u,rtlTranslate:d,slidesGrid:c,enabled:a}=e;if(!a||!r.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=Jt(),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=Jt(),gi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.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(r.followFinger?p=d?e.translate:-e.translate:p=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.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<c.length;E+=E<r.slidesPerGroupSkip?1:r.slidesPerGroup){const k=E<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[E+k]<"u"?(m||p>=c[E]&&p<c[E+k])&&(f=E,S=c[E+k]-c[E]):(m||p>=c[E])&&(f=E,S=c[c.length-1]-c[c.length-2])}let v=null,y=null;r.rewind&&(e.isBeginning?y=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const b=(p-c[f])/S,w=f<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(A>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:f+w):e.slideTo(f)),e.swipeDirection==="prev"&&(b>1-r.longSwipesRatio?e.slideTo(f+w):y!==null&&b<0&&Math.abs(b)>r.longSwipesRatio?e.slideTo(y):e.slideTo(f))}else{if(!r.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 fo(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:s,snapGrid:l}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?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=s,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Cs(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ps(){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 s;const l=t.maxTranslate()-t.minTranslate();l===0?s=0:s=(t.translate-t.minTranslate())/l,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Os(t){const e=this;Gi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function js(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ho=(t,e)=>{const i=zt(),{params:o,el:s,wrapperEl:l,device:r}=t,u=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[d]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[d]("touchstart",t.onTouchStart,{passive:!1}),s[d]("pointerdown",t.onTouchStart,{passive:!1}),i[d]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[d]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[d]("touchend",t.onTouchEnd,{passive:!0}),i[d]("pointerup",t.onTouchEnd,{passive:!0}),i[d]("pointercancel",t.onTouchEnd,{passive:!0}),i[d]("touchcancel",t.onTouchEnd,{passive:!0}),i[d]("pointerout",t.onTouchEnd,{passive:!0}),i[d]("pointerleave",t.onTouchEnd,{passive:!0}),i[d]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&s[d]("click",t.onClick,!0),o.cssMode&&l[d]("scroll",t.onScroll),o.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",fo,!0):t[c]("observerUpdate",fo,!0),s[d]("load",t.onLoad,{capture:!0}))};function Ls(){const t=this,{params:e}=t;t.onTouchStart=Es.bind(t),t.onTouchMove=ks.bind(t),t.onTouchEnd=Is.bind(t),t.onDocumentTouchStart=js.bind(t),e.cssMode&&(t.onScroll=Ps.bind(t)),t.onClick=Cs.bind(t),t.onLoad=Os.bind(t),ho(t,"on")}function Ms(){ho(this,"off")}var Ns={attachEvents:Ls,detachEvents:Ms};const Ao=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ds(){const t=this,{realIndex:e,initialized:i,params:o,el:s}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const r=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const d=(r in l?l[r]:void 0)||t.originalParams,c=Ao(t,o),a=Ao(t,d),g=t.params.grabCursor,A=d.grabCursor,p=o.enabled;c&&!a?(s.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&a&&(s.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&s.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!A?t.unsetGrabCursor():!g&&A&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof d[b]>"u")return;const w=o[b]&&o[b].enabled,E=d[b]&&d[b].enabled;w&&!E&&t[b].disable(),!w&&E&&t[b].enable()});const m=d.direction&&d.direction!==o.direction,f=o.loop&&(d.slidesPerView!==o.slidesPerView||m),S=o.loop;m&&i&&t.changeDirection(),qt(t.params,d);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=r,t.emit("_beforeBreakpoint",d),i&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&y?(t.loopCreate(e),t.updateSlides()):S&&!y&&t.loopDestroy()),t.emit("breakpoint",d)}function Vs(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const s=Bt(),l=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const d=parseFloat(u.substr(1));return{value:l*d,point:u}}return{value:u,point:u}});r.sort((u,d)=>parseInt(u.value,10)-parseInt(d.value,10));for(let u=0;u<r.length;u+=1){const{point:d,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(o=d):c<=i.clientWidth&&(o=d)}return o||"max"}var Bs={setBreakpoint:Ds,getBreakpoint:Vs};function Fs(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(s=>{o[s]&&i.push(e+s)}):typeof o=="string"&&i.push(e+o)}),i}function Ws(){const t=this,{classNames:e,params:i,rtl:o,el:s,device:l}=t,r=Fs(["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(...r),s.classList.add(...e),t.emitContainerClasses()}function _s(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Hs={addClasses:Ws,removeClasses:_s};function zs(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const s=t.slides.length-1,l=t.slidesGrid[s]+t.slidesSizesGrid[s]+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 Us={checkOverflow:zs},yn={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 Xs(t,e){return function(o){o===void 0&&(o={});const s=Object.keys(o)[0],l=o[s];if(typeof l!="object"||l===null){qt(e,o);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in l)){qt(e,o);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),qt(e,o)}}const wn={eventsEmitter:Hl,update:Rl,translate:os,transition:ds,slide:hs,loop:ys,grabCursor:xs,events:Ns,breakpoints:Bs,checkOverflow:Us,classes:Hs},Sn={};let xn=class ai{constructor(){let e,i;for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=qt({},i),e&&!i.el&&(i.el=e);const r=zt();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const a=[];return r.querySelectorAll(i.el).forEach(g=>{const A=qt({},i,{el:g});a.push(new ai(A))}),a}const u=this;u.__swiper__=!0,u.support=uo(),u.device=co({userAgent:i.userAgent}),u.browser=Fl(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const d={};u.modules.forEach(a=>{a({params:i,swiper:u,extendParams:Xs(i,d),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=qt({},yn,d);return u.params=qt({},c,Sn,i),u.originalParams=qt({},u.params),u.passedParams=qt({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(a=>{u.on(a,u.params.on[a])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.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:u.params.allowSlideNext,allowSlidePrev:u.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:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}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,s=ti(i,`.${o.slideClass}, swiper-slide`),l=Ii(s[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=ti(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 s=o.minTranslate(),r=(o.maxTranslate()-s)*e+s;o.translateTo(r,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 s=e.getSlideClasses(o);i.push({slideEl:o,classNames:s}),e.emit("_slideClass",o,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:s,slides:l,slidesGrid:r,slidesSizesGrid:u,size:d,activeIndex:c}=o;let a=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let g=l[c]?Math.ceil(l[c].swiperSlideSize):0,A;for(let p=c+1;p<l.length;p+=1)l[p]&&!A&&(g+=Math.ceil(l[p].swiperSlideSize),a+=1,g>d&&(A=!0));for(let p=c-1;p>=0;p-=1)l[p]&&!A&&(g+=l[p].swiperSlideSize,a+=1,g>d&&(A=!0))}else if(e==="current")for(let g=c+1;g<l.length;g+=1)(i?r[g]+u[g]-r[c]<d:r[g]-r[c]<d)&&(a+=1);else for(let g=c-1;g>=0;g-=1)r[c]-r[g]<d&&(a+=1);return a}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(r=>{r.complete&&Gi(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)s(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const r=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(r.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||s()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,s=o.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${s}`),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 s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(s()):ti(o,s())[0];return!r&&i.params.createElements&&(r=yi("div",i.params.wrapperClass),o.append(r),ti(o,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:o,wrapperEl:r,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:r,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||vi(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||vi(o,"direction")==="rtl"),wrongRTL:vi(r,"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 s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(l=>{l.complete?Gi(i,l):l.addEventListener("load",r=>{Gi(i,r.target)})}),gn(i),i.initialized=!0,gn(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:s,el:l,wrapperEl:r,slides:u}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),s.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(d=>{d.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Pl(o)),o.destroyed=!0),null}static extendDefaults(e){qt(Sn,e)}static get extendedDefaults(){return Sn}static get defaults(){return yn}static installModule(e){ai.prototype.__modules__||(ai.prototype.__modules__=[]);const i=ai.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ai.installModule(i)),ai):(ai.installModule(e),ai)}};Object.keys(wn).forEach(t=>{Object.keys(wn[t]).forEach(e=>{xn.prototype[e]=wn[t][e]})}),xn.use([Wl,_l]);const bo=["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 hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wi(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]:hi(e[o])&&hi(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:wi(t[o],e[o]):t[o]=e[o]})}function go(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function yo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function wo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function So(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 qs(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ys(t){let{swiper:e,slides:i,passedParams:o,changedParams:s,nextEl:l,prevEl:r,scrollbarEl:u,paginationEl:d}=t;const c=s.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:a,pagination:g,navigation:A,scrollbar:p,virtual:m,thumbs:f}=e;let S,v,y,b,w,E,k,M;s.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&a.thumbs&&!a.thumbs.swiper&&(S=!0),s.includes("controller")&&o.controller&&o.controller.control&&a.controller&&!a.controller.control&&(v=!0),s.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(a.pagination||a.pagination===!1)&&g&&!g.el&&(y=!0),s.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||u)&&(a.scrollbar||a.scrollbar===!1)&&p&&!p.el&&(b=!0),s.includes("navigation")&&o.navigation&&(o.navigation.prevEl||r)&&(o.navigation.nextEl||l)&&(a.navigation||a.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()),a[x].prevEl=void 0,a[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),a[x].el=void 0,e[x].el=void 0))};s.includes("loop")&&e.isElement&&(a.loop&&!o.loop?E=!0:!a.loop&&o.loop?k=!0:M=!0),c.forEach(x=>{if(hi(a[x])&&hi(o[x]))Object.assign(a[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):a[x]=o[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&a.controller&&a.controller.control&&(e.controller.control=a.controller.control),s.includes("children")&&i&&m&&a.virtual.enabled?(m.slides=i,m.update(!0)):s.includes("virtual")&&m&&a.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),s.includes("children")&&i&&a.loop&&(M=!0),S&&f.init()&&f.update(!0),v&&(e.controller.control=a.controller.control),y&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(a.pagination.el=d),g.init(),g.render(),g.update()),b&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(a.scrollbar.el=u),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)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),l&&(a.navigation.nextEl=l),r&&(a.navigation.prevEl=r),A.init(),A.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),s.includes("direction")&&e.changeDirection(o.direction,!1),(E||M)&&e.loopDestroy(),(k||M)&&e.loopCreate(),e.update()}function Gs(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},s={};wi(i,yn),i._emitClasses=!0,i.init=!1;const l={},r=bo.map(d=>d.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(d=>{typeof t[d]>"u"||(r.indexOf(d)>=0?hi(t[d])?(i[d]={},s[d]={},wi(i[d],t[d]),wi(s[d],t[d])):(i[d]=t[d],s[d]=t[d]):d.search(/on[A-Z]/)===0&&typeof t[d]=="function"?e?o[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:i.on[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:l[d]=t[d])}),["navigation","pagination","scrollbar"].forEach(d=>{i[d]===!0&&(i[d]={}),i[d]===!1&&delete i[d]}),{params:i,passedParams:s,rest:l,events:o}}function Zs(t,e){let{el:i,nextEl:o,prevEl:s,paginationEl:l,scrollbarEl:r,swiper:u}=t;go(e)&&o&&s&&(u.params.navigation.nextEl=o,u.originalParams.navigation.nextEl=o,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),yo(e)&&l&&(u.params.pagination.el=l,u.originalParams.pagination.el=l),wo(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Ks(t,e,i,o,s){const l=[];if(!e)return l;const r=d=>{l.indexOf(d)<0&&l.push(d)};if(i&&o){const d=o.map(s),c=i.map(s);d.join("")!==c.join("")&&r("children"),o.length!==i.length&&r("children")}return bo.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in t&&d in e)if(hi(t[d])&&hi(e[d])){const c=Object.keys(t[d]),a=Object.keys(e[d]);c.length!==a.length?r(d):(c.forEach(g=>{t[d][g]!==e[d][g]&&r(d)}),a.forEach(g=>{t[d][g]!==e[d][g]&&r(d)}))}else t[d]!==e[d]&&r(d)}),l}const Js=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 Zi(){return Zi=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},Zi.apply(this,arguments)}function xo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function To(t){const e=[];return n.Children.toArray(t).forEach(i=>{xo(i)?e.push(i):i.props&&i.props.children&&To(i.props.children).forEach(o=>e.push(o))}),e}function Qs(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(xo(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 s=To(o.props.children);s.length>0?s.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Rs(t,e,i){if(!i)return null;const o=a=>{let g=a;return a<0?g=e.length+a:g>=e.length&&(g=g-e.length),g},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:r}=i,u=t.params.loop?-e.length:0,d=t.params.loop?e.length*2:e.length,c=[];for(let a=u;a<d;a+=1)a>=l&&a<=r&&c.push(e[o(a)]);return c.map((a,g)=>n.cloneElement(a,{swiper:t,style:s,key:a.props.virtualIndex||a.key||`slide-${g}`}))}function Ci(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const Tn=n.createContext(null),Pi=()=>n.useContext(Tn),$s=n.createContext(null),li=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:s="div",children:l,onSwiper:r,...u}=t===void 0?{}:t,d=!1;const[c,a]=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:B}=Gs(u),{slides:C,slots:j}=Qs(l),O=()=>{m(!p)};Object.assign(D.on,{_containerClasses(I,L){a(L)}});const h=()=>{Object.assign(D.on,B),d=!0;const I={...D};if(delete I.wrapperClass,v.current=new xn(I),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const L={cache:!1,slides:C,renderExternal:A,renderExternalUpdate:!1};wi(v.current.params.virtual,L),wi(v.current.originalParams.virtual,L)}};S.current||h(),v.current&&v.current.on("_beforeBreakpoint",O);const _=()=>{d||!B||!v.current||Object.keys(B).forEach(I=>{v.current.on(I,B[I])})},V=()=>{!B||!v.current||Object.keys(B).forEach(I=>{v.current.off(I,B[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(),Zs({el:S.current,nextEl:w.current,prevEl:E.current,paginationEl:k.current,scrollbarEl:M.current,swiper:v.current},D),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ci(()=>{_();const I=Ks(x,y.current,C,b.current,L=>L.key);return y.current=x,b.current=C,I.length&&v.current&&!v.current.destroyed&&Ys({swiper:v.current,slides:C,passedParams:x,changedParams:I,nextEl:w.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:k.current}),()=>{V()}}),Ci(()=>{Js(v.current)},[g]);function F(){return D.virtual?Rs(v.current,C,g):C.map((I,L)=>n.cloneElement(I,{swiper:v.current,swiperSlideIndex:L}))}return n.createElement(o,Zi({ref:S,className:So(`${c}${i?` ${i}`:""}`)},T),n.createElement($s.Provider,{value:v.current},j["container-start"],n.createElement(s,{className:qs(D.wrapperClass)},j["wrapper-start"],F(),j["wrapper-end"]),go(D)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),wo(D)&&n.createElement("div",{ref:M,className:"swiper-scrollbar"}),yo(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:s="",swiper:l,zoom:r,lazy:u,virtualIndex:d,swiperSlideIndex:c,...a}=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 c<"u"&&(g.current.swiperSlideIndex=c),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,Zi({ref:g,className:So(`${A}${s?` ${s}`:""}`),"data-swiper-slide-index":d,onLoad:b},a),r&&n.createElement(Tn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},y(),u&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&n.createElement(Tn.Provider,{value:v},y(),u&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Yt.displayName="SwiperSlide";function En(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=zt(),r=Bt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(a){if(!e.enabled)return;const{rtlTranslate:g}=e;let A=a;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(Yi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Yi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,M=k.clientWidth,D=k.clientHeight,x=r.innerWidth,T=r.innerHeight,B=ao(k);g&&(B.left-=k.scrollLeft);const C=[[B.left,B.top],[B.left+M,B.top],[B.left,B.top+D],[B.left+M,B.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()),s("keyPress",p)}}function d(){e.keyboard.enabled||(l.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",u),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&d()}),o("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:d,disable:c})}function Ki(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=Bt();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 r,u=Jt(),d;const c=[];function a(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&&Jt()-u<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&Jt()-u<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",b.raw)),u=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,B=a(w);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(B.pixelX)>Math.abs(B.pixelY))x=-B.pixelX*T;else return!0;else if(Math.abs(B.pixelY)>Math.abs(B.pixelX))x=-B.pixelY;else return!0;else x=Math.abs(B.pixelX)>Math.abs(B.pixelY)?-B.pixelX*T:-B.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:Jt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};c.length>=2&&c.shift();const O=c.length?c[c.length-1]:void 0;if(c.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:Jt(),delta:Math.abs(x),direction:Math.sign(x)},O=d&&j.time<d.time+500&&j.delta<=d.delta&&j.direction===d.direction;if(!O){d=void 0;let h=e.getTranslate()+x*k.sensitivity;const _=e.isBeginning,V=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(),(!_&&e.isBeginning||!V&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const F=c.length?c[c.length-1]:void 0,I=c[0];if(c.push(j),F&&(j.delta>F.delta||j.direction!==F.direction))c.splice(0);else if(c.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const L=x>0?.8:.2;d=j,c.splice(0),r=gi(()=>{e.slideToClosest(e.params.speed,!0,void 0,L)},0)}r||(r=gi(()=>{d=j,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||s("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 kn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(s=>{if(!i[s]&&i.auto===!0){let l=ti(t.el,`.${o[s]}`)[0];l||(l=yi("div",o[s]),l.className=o[s],t.el.append(l)),i[s]=l,e[s]=l}}),i}function In(t){let{swiper:e,extendParams:i,on:o,emit:s}=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 r(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 u(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){r(f,!1),r(m,!1);return}r(f,e.isBeginning&&!e.params.rewind),r(m,e.isEnd&&!e.params.rewind)}function d(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function a(){const m=e.params.navigation;if(e.params.navigation=kn(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"?c:d),!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"?c:d),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():(a(),u())}),o("toEdge fromEdge lock unlock",()=>{u()}),o("destroy",()=>{g()}),o("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;if(m=Je(m),f=Je(f),e.enabled){u();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)),s(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(" ")),a(),u()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:A,disable:p,update:u,init:a,destroy:g})}function si(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Oi(t){let{swiper:e,extendParams:i,on:o,emit:s}=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 r,u=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(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 a(v){const y=v.target.closest(si(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(d())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,B;if(y.dynamicBullets&&(r=pn(D[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${r*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&E!==void 0&&(u+=w-(E||0),u>y.dynamicMainBullets-1?u=y.dynamicMainBullets-1:u<0&&(u=0)),x=Math.max(w-u,0),T=x+(Math.min(D.length,y.dynamicMainBullets)-1),B=(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&&c(C,"prev"),j===T&&c(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(" "));c(j,"prev"),c(O,"next")}}if(y.dynamicBullets){const C=Math.min(D.length,y.dynamicMainBullets+4),j=(r*C-r)/2-B*r,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(si(y.currentClass)).forEach(T=>{T.textContent=y.formatFractionCurrent(w+1)}),D.querySelectorAll(si(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 B=(w+1)/M;let C=1,j=1;T==="horizontal"?C=B:j=B,D.querySelectorAll(si(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&&s("paginationRender",D)):(x===0&&s("paginationRender",D),s("paginationUpdate",D)),e.params.watchOverflow&&e.enabled&&D.classList[e.isLocked?"add":"remove"](y.lockClass)})}function A(){const v=e.params.pagination;if(d())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(si(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",b[0])}function p(){e.params.pagination=kn(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=>Yi(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`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&b.classList.add(v.progressbarOppositeClass),v.clickable&&b.addEventListener("click",a),e.enabled||b.classList.add(v.lockClass)}))}function m(){const v=e.params.pagination;if(d())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",a))})),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);s(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 er(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=zt();let r=!1,u=null,d=null,c,a,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,_=e.params.scrollbar,V=e.params.loop?e.progressLoop:e.progress;let F=a,I=(g-a)*V;j?(I=-I,I>0?(F=a-I,I=0):-I+a>g&&(F=g+I)):I<0?(F=a+I,I=0):I+a>g&&(F=g-I),e.isHorizontal()?(O.style.transform=`translate3d(${I}px, 0, 0)`,O.style.width=`${F}px`):(O.style.transform=`translate3d(0px, ${I}px, 0)`,O.style.height=`${F}px`),_.hide&&(clearTimeout(u),h.style.opacity=1,u=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"?a=g*A:a=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${a}px`:j.style.height=`${a}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 _;_=(S(C)-ao(h)[e.isHorizontal()?"left":"top"]-(c!==null?c:a/2))/(g-a),_=Math.max(Math.min(_,1),0),O&&(_=1-_);const V=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*_;e.updateProgress(V),e.setTranslate(V),e.updateActiveIndex(),e.updateSlidesClasses()}function y(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:_,dragEl:V}=O;r=!0,c=C.target===V?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),h.style.transitionDuration="100ms",V.style.transitionDuration="100ms",v(C),clearTimeout(d),_.style.transitionDuration="0ms",j.hide&&(_.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",C)}function b(C){const{scrollbar:j,wrapperEl:O}=e,{el:h,dragEl:_}=j;r&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),O.style.transitionDuration="0ms",h.style.transitionDuration="0ms",_.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function w(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:_}=O;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",h.style.transitionDuration=""),j.hide&&(clearTimeout(d),d=gi(()=>{_.style.opacity=0,_.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),j.snapOnRelease&&e.slideToClosest())}function E(C){const{scrollbar:j,params:O}=e,h=j.el;if(!h)return;const _=h,V=O.passiveListeners?{passive:!1,capture:!1}:!1,F=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!_)return;const I=C==="on"?"addEventListener":"removeEventListener";_[I]("pointerdown",y,V),l[I]("pointermove",b,V),l[I]("pointerup",w,F)}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=kn(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 _;h&&(_=h.querySelector(si(e.params.scrollbar.dragClass)),_||(_=yi("div",e.params.scrollbar.dragClass),h.append(_))),Object.assign(C,{el:h,dragEl:_}),O.draggable&&k(),h&&h.classList[e.enabled?"remove":"add"](...ci(e.params.scrollbar.lockClass))}function x(){const C=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ci(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?B():(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"](...ci(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ci(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ci(e.params.scrollbar.scrollbarDisabledClass)),D(),f(),p()},B=()=>{e.el.classList.add(...ci(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ci(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:B,updateSize:f,setTranslate:p,init:D,destroy:x})}function Cn(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 s=null,l,r,u=new Date().getTime();function d(V){const F=s;F.length!==0&&(F.innerHTML="",F.innerHTML=V)}function c(V){V===void 0&&(V=16);const F=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(V).replace(/x/g,F)}function a(V){V=Je(V),V.forEach(F=>{F.setAttribute("tabIndex","0")})}function g(V){V=Je(V),V.forEach(F=>{F.setAttribute("tabIndex","-1")})}function A(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("role",F)})}function p(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-roledescription",F)})}function m(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-controls",F)})}function f(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-label",F)})}function S(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("id",F)})}function v(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-live",F)})}function y(V){V=Je(V),V.forEach(F=>{F.setAttribute("aria-disabled",!0)})}function b(V){V=Je(V),V.forEach(F=>{F.setAttribute("aria-disabled",!1)})}function w(V){if(V.keyCode!==13&&V.keyCode!==32)return;const F=e.params.a11y,I=V.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(V.target))&&!V.target.matches(si(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?d(F.lastSlideMessage):d(F.nextSlideMessage)),L.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?d(F.firstSlideMessage):d(F.prevSlideMessage))}e.pagination&&I.matches(si(e.params.pagination.bulletClass))&&I.click()}}function E(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:V,prevEl:F}=e.navigation;F&&(e.isBeginning?(y(F),g(F)):(b(F),a(F))),V&&(e.isEnd?(y(V),g(V)):(b(V),a(V)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return k()&&e.params.pagination.clickable}function D(){const V=e.params.a11y;k()&&e.pagination.bullets.forEach(F=>{e.params.pagination.clickable&&(a(F),e.params.pagination.renderBullet||(A(F,"button"),f(F,V.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(F)+1)))),F.matches(si(e.params.pagination.bulletActiveClass))?F.setAttribute("aria-current","true"):F.removeAttribute("aria-current")})}const x=(V,F,I)=>{a(V),V.tagName!=="BUTTON"&&(A(V,"button"),V.addEventListener("keydown",w)),f(V,I),m(V,F)},T=V=>{r&&r!==V.target&&!r.contains(V.target)&&(l=!0),e.a11y.clicked=!0},B=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=V=>{u=new Date().getTime()},j=V=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const F=V.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!F||!e.slides.includes(F))return;r=F;const I=e.slides.indexOf(F)===e.activeIndex,L=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(F);I||L||V.sourceCapabilities&&V.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(F.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(F),0),l=!1)}))},O=()=>{const V=e.params.a11y;V.itemRoleDescriptionMessage&&p(e.slides,V.itemRoleDescriptionMessage),V.slideRole&&A(e.slides,V.slideRole);const F=e.slides.length;V.slideLabelMessage&&e.slides.forEach((I,L)=>{const P=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):L,Y=V.slideLabelMessage.replace(/\{\{index\}\}/,P+1).replace(/\{\{slidesLength\}\}/,F);f(I,Y)})},h=()=>{const V=e.params.a11y;e.el.append(s);const F=e.el;V.containerRoleDescriptionMessage&&p(F,V.containerRoleDescriptionMessage),V.containerMessage&&f(F,V.containerMessage);const I=e.wrapperEl,L=V.id||I.getAttribute("id")||`swiper-wrapper-${c(16)}`,P=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(I,L),v(I,P),O();let{nextEl:Y,prevEl:U}=e.navigation?e.navigation:{};Y=Je(Y),U=Je(U),Y&&Y.forEach(ee=>x(ee,L,V.nextSlideMessage)),U&&U.forEach(ee=>x(ee,L,V.prevSlideMessage)),M()&&Je(e.pagination.el).forEach(de=>{de.addEventListener("keydown",w)}),zt().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",B,!0)};function _(){s&&s.remove();let{nextEl:V,prevEl:F}=e.navigation?e.navigation:{};V=Je(V),F=Je(F),V&&V.forEach(L=>L.removeEventListener("keydown",w)),F&&F.forEach(L=>L.removeEventListener("keydown",w)),M()&&Je(e.pagination.el).forEach(P=>{P.removeEventListener("keydown",w)}),zt().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",B,!0))}o("beforeInit",()=>{s=yi("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.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&&_()})}function ji(t){let{swiper:e,extendParams:i,on:o,emit:s,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 r,u,d=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,a,g=new Date().getTime(),A,p,m,f,S,v,y;function b(F){!e||e.destroyed||!e.wrapperEl||F.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(y||F.detail&&F.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?A=!0:A&&(c=a,A=!1);const F=e.autoplay.paused?a:g+c-new Date().getTime();e.autoplay.timeLeft=F,s("autoplayTimeLeft",F,F/d),u=requestAnimationFrame(()=>{w()})},E=()=>{let F;return e.virtual&&e.params.virtual.enabled?F=e.slides.filter(L=>L.classList.contains("swiper-slide-active"))[0]:F=e.slides[e.activeIndex],F?parseInt(F.getAttribute("data-swiper-autoplay"),10):void 0},k=F=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),w();let I=typeof F>"u"?e.params.autoplay.delay:F;d=e.params.autoplay.delay,c=e.params.autoplay.delay;const L=E();!Number.isNaN(L)&&L>0&&typeof F>"u"&&(I=L,d=L,c=L),a=I;const P=e.params.speed,Y=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(P,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,P,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(P,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,P,!0,!0),s("autoplay")),e.params.cssMode&&(g=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return I>0?(clearTimeout(r),r=setTimeout(()=>{Y()},I)):requestAnimationFrame(()=>{Y()}),I},M=()=>{g=new Date().getTime(),e.autoplay.running=!0,k(),s("autoplayStart")},D=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},x=(F,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),F||(v=!0);const L=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):T()};if(e.autoplay.paused=!0,I){S&&(a=e.params.autoplay.delay),S=!1,L();return}a=(a||e.params.autoplay.delay)-(new Date().getTime()-g),!(e.isEnd&&a<0&&!e.params.loop)&&(a<0&&(a=0),L())},T=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),v?(v=!1,k(a)):k(),e.autoplay.paused=!1,s("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const F=zt();F.visibilityState==="hidden"&&(v=!0,x(!0)),F.visibilityState==="visible"&&T()},C=F=>{F.pointerType==="mouse"&&(v=!0,y=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=F=>{F.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))},_=()=>{zt().addEventListener("visibilitychange",B)},V=()=>{zt().removeEventListener("visibilitychange",B)};o("init",()=>{e.params.autoplay.enabled&&(O(),_(),M())}),o("destroy",()=>{h(),V(),e.autoplay.running&&D()}),o("_freeModeStaticRelease",()=>{(m||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?D():x(!0,!0)}),o("beforeTransitionStart",(F,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(r),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 tr(t){let{swiper:e,extendParams:i,emit:o,once:s}=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 d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:d,touches:c}=e;d.velocities.length===0&&d.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Jt()})}function u(d){let{currentPos:c}=d;if(e.params.cssMode)return;const{params:a,wrapperEl:g,rtlTranslate:A,snapGrid:p,touchEventsData:m}=e,S=Jt()-m.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(a.freeMode.momentum){if(m.velocities.length>1){const D=m.velocities.pop(),x=m.velocities.pop(),T=D.position-x.position,B=D.time-x.time;e.velocity=T/B,e.velocity/=2,Math.abs(e.velocity)<a.freeMode.minimumVelocity&&(e.velocity=0),(B>150||Jt()-D.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=a.freeMode.momentumVelocityRatio,m.velocities.length=0;let v=1e3*a.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*a.freeMode.momentumBounceRatio;let M;if(b<e.maxTranslate())a.freeMode.momentumBounce?(b+e.maxTranslate()<-k&&(b=e.maxTranslate()-k),E=e.maxTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.maxTranslate(),a.loop&&a.centeredSlides&&(M=!0);else if(b>e.minTranslate())a.freeMode.momentumBounce?(b-e.minTranslate()>k&&(b=e.minTranslate()+k),E=e.minTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.minTranslate(),a.loop&&a.centeredSlides&&(M=!0);else if(a.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&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(A?v=Math.abs((-b-e.translate)/e.velocity):v=Math.abs((b-e.translate)/e.velocity),a.freeMode.sticky){const D=Math.abs((A?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];D<x?v=a.speed:D<2*x?v=a.speed*1.5:v=a.speed*2.5}}else if(a.freeMode.sticky){e.slideToClosest();return}a.freeMode.momentumBounce&&w?(e.updateProgress(E),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vn(g,()=>{!e||e.destroyed||!m.allowMomentumBounce||(o("momentumBounce"),e.setTransition(a.speed),setTimeout(()=>{e.setTranslate(E),vn(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,vn(g,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(a.freeMode.sticky){e.slideToClosest();return}else a.freeMode&&o("_freeModeNoMomentumRelease");(!a.freeMode.momentum||S>=a.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:r,onTouchEnd:u}})}const ir=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const s=n.useRef(),{popupDetailData:l}=Xe();return n.useEffect(()=>{var r,u;o&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=l?.multiCheckIndex)!==null&&u!==void 0?u:0))},[l,o]),n.createElement(li,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[tr,er,Ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=n.memo(ir);const nr=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:s,className:l,loading:r,alt:u="image"}=t,[d,c]=n.useState(i),a=n.useRef(null),[g,A]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&c(p)}})),n.useEffect(()=>{i&&c(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!g&&a.current&&(a.current.src="",a.current.src=i)};return At.on(at.PAGE_DID_SHOW,p),()=>{At.off(at.PAGE_DID_SHOW,p)}},[i,g]),n.createElement(n.Fragment,null,!g&&!d&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),d?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:d}),n.createElement("source",{type:"image/webp",srcSet:`${d}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${d}?imageMogr2/format/jpg`}),n.createElement("img",{ref:a,className:l,src:d,style:Object.assign({},s),loading:r,onLoad:p=>{A(!0),o?.(p.target)},alt:u})):n.createElement("img",{ref:a,className:l,src:d,style:Object.assign({},s),loading:r,onLoad:p=>{A(!0),o?.(p.target)},alt:u}))});var Ft=n.memo(nr);const or=({products:t,data:e,defImg:i,style:o,onCLick:s,popupDetailData:l,check:r})=>{var u;const{productView:d}=_t(),{popupCurTimeRef:c}=Xe(),a=(g,A)=>{if(r===A)return;const p=t?.[r];d(l,p,p?.bindCta,c.current,l?.index),s?.(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)},(u=l?t:[0,1,2,3])===null||u===void 0?void 0:u.map((g,A)=>{var p,m,f;return n.createElement(n.Fragment,null,g?.bindCta?n.createElement(Yt,{className:We.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{a(g,A)},key:A},n.createElement(Ft,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===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 Eo=n.memo(or);function ko(){const[t,e]=n.useState(0),[i,o]=n.useState(0),s=()=>{if(typeof window>"u")return 0;let r=window.innerHeight;return window.visualViewport&&(r=window.visualViewport.height),(r<=0||r>window.screen.height)&&(r=window.innerHeight),r<=0&&(r=document.documentElement.clientHeight),r},l=n.useCallback(()=>{var r;const u=s(),d=(r=window.screen)===null||r===void 0?void 0:r.height,c=navigator.userAgent,a=/Instagram/i.test(c),g=/FBAV|FBAN|FBSN/i.test(c);if(!d||u<=0||!a&&!g){e(u);return}const A=u/d,p=.9,m=d>=900?d*.8:d*.79,f=A>=p&&A!==1,S=f?Math.round(m):u,v=d-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
|
+
(function(wt,pt){typeof exports=="object"&&typeof module<"u"?pt(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],pt):(wt=typeof globalThis<"u"?globalThis:wt||self,pt(wt.PUI={},wt.lodash,wt.uuid$1,wt.pako,wt.React,wt.qs,wt.EventEmitter,wt.css,wt.ReactDOM))})(this,function(wt,pt,Go,Zo,n,Fn,Ko,We,Wn){"use strict";function Jo(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 _n=Jo(Wn);function st(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 s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}function ht(t,e,i,o){function s(l){return l instanceof i?l:new i(function(r){r(l)})}return new(i||(i=Promise))(function(l,r){function u(a){try{c(o.next(a))}catch(g){r(g)}}function d(a){try{c(o.throw(a))}catch(g){r(g)}}function c(a){a.done?l(a.value):s(a.value).then(u,d)}c((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Qo=/:\w+/g;var Hn=(t,e)=>ht(void 0,void 0,void 0,function*(){const i={},o={};for(let s=0;s<e?.length;s++){const{id:l,method:r,url:u,urlParams:d,name:c,queryString:a,headers:g,body:A}=e[s];let p=u;d&&Object.entries(d).forEach(([m,f])=>{p=p.replace(Qo,S=>S===m?f:S)}),a&&(p+=a),o[l]=c;try{const m=yield fetch(p,{method:r,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 zn="SXP_TOKEN_INFO",Ro=(t,e)=>ht(void 0,void 0,void 0,function*(){var i;const o=t.getTenantId(),s=t.getAppId(),l=t.getApiUrl(),r=window.localStorage.getItem(zn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":o||"","x-app-id":s||""}}).then(a=>a.json());if(c.success){const a=c.data;u=Object.assign(Object.assign({},a),{expireTime:Date.now()+a.expire*1e3}),window.localStorage.setItem(zn,JSON.stringify(u))}}return u});function _i(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)o[s]=i[0|Math.random()*e];else{let l;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",s=0;s<36;s++)o[s]||(l=0|Math.random()*16,o[s]=i[s===19?l&3|8:l])}return o.join("")}const $o=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*o)),s+=1;return e},el=()=>{const t=Go.v4();return t?.replaceAll?t.replaceAll("-",""):$o(32)},Me=(t,e)=>{if(!t)return"";let i="";const o=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!o&&!s)return t;let l=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,d=`font-family:${o??"inherit"}`,c=`font-family:${s??"inherit"}`,a=A=>{const p=A.search(r),m=A.search(u);return p!==-1&&m!==-1&&p<m&&(i+=`<span style="${d}">${A.substring(p,m)}</span>`,l=A.substring(m,A?.length)),p!==-1&&m!==-1&&p>m&&(i+=`<span style="${c}">${A.substring(m,p)}</span>`,l=A.substring(p,A?.length)),p===-1?(i+=`<span style="${c}">${A.substring(m,A?.length)}</span>`,l="",!1):m===-1?(i+=`<span style="${d}">${A.substring(p,A?.length)}</span>`,l="",!1):!0};let g=!0;for(;g;)g=a(l);return i};function on(t){const i=document.cookie.split(";");let o=null;return i.forEach(s=>{const[l,r]=s.trim().split("=");l===t&&(o=r)}),o??""}function ln(){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 fi(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const l=t[s],r=t.substring(s+1,t.length);l==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let o=0;return e?.map(s=>{i?.push(t.substring(o,s)),o=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(o,t.length))}),i??[]}function tl(t,e="/",i=""){const o="expires=Thu, 01 Jan 1970 00:00:00 GMT",s=e?`; path=${e}`:"",l=i?`; domain=${i}`:"";document.cookie=`${t}=; ${o}${s}${l}`,console.log(`\u5DF2\u5C1D\u8BD5\u5220\u9664Cookie: ${t}`)}function Xt(t){var e,i;const o=location.search.slice(1),s={};(e=fi(o.replace(/\+/g,"%2B")))===null||e===void 0||e.map(l=>{const r=l.split("=")[0],u=l.split("=")[1];s[r]=u});for(const l in s)s[l]=s[l].replace(/%2B/g,"+");return(i=s[t])!==null&&i!==void 0?i:""}function Un(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),o=new Uint8Array(i),s=Zo.inflate(o,{to:"string"});return JSON.parse(s)}let sn=null;const il={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class nl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,sn)return sn;sn=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?il[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Vt=null;const ol={init:({appId:t,tenantId:e,env:i="live",apiUrl:o})=>{Vt||(Vt=new nl),o&&Vt.setApiUrl(o),Vt.setAppId(t),Vt.setTenantId(e),Vt.setEnv(i)},getDetail:t=>{if(!Vt)return;const e=Vt.getTenantId(),i=Vt.getAppId(),o=Vt.getApiUrl();return fetch(`${o}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ht(void 0,void 0,void 0,function*(){var l,r;const u=yield s.json(),d=Un((l=u?.data)===null||l===void 0?void 0:l.data);if(d){const{$store:c}=yield Hn(o,(r=d?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=d,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>ht(void 0,void 0,void 0,function*(){if(!Vt)return;const e=Vt.getTenantId(),i=Vt.getAppId(),o=Vt.getApiUrl();return fetch(`${o}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>ht(void 0,void 0,void 0,function*(){var l;const r=yield s.json();return r.success?(l=r?.data)===null||l===void 0?void 0:l.map(d=>Object.assign(Object.assign({},d),{data:Un(d?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ht(void 0,void 0,void 0,function*(){if(!Vt)return;const e=yield Ro(Vt,t),i=_i(0,0);let o=window.localStorage.getItem("SXP_FAKE_SESSION_ID");pt.isEmpty(o)&&(o=_i(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",o));const s=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 s?.data||null})};function ui(){return n.useContext(no)}function ll(){return n.useContext(io)}const rn="feRealSessionIdKey",Xn=()=>{const t=el();return`${Date.now()}${t}`},sl=()=>{let t=rl();return t||(t=Xn(),window.localStorage.setItem(rn,t)),t},dn=()=>{const t=Xn();window.localStorage.setItem(rn,t)},rl=()=>window.localStorage.getItem(rn),qn="SXP_FAKE_USER_ID",Yn="FAKE_USER_STATE",Gn="AGREE_POLICY",Zn="SLIDE_SKIP_STATE",Kn="CCONTSENT_STATE",Jn="USER_CONSENT_RESULT",dl=()=>{let t=window.localStorage.getItem(qn);return pt.isEmpty(t)&&(t=_i(36,62),window.localStorage.setItem(qn,t)),t},al=()=>{const t=window.localStorage.getItem(Yn);return pt.isEmpty(t)&&window.localStorage.setItem(Yn,"true"),pt.isEmpty(t)},ul=()=>{const t=window.localStorage.getItem(Zn);return pt.isEmpty(t)},cl=()=>{window.localStorage.setItem(Zn,"true")},vl=()=>{const t=window.localStorage.getItem(Kn);return pt.isEmpty(t)&&window.localStorage.setItem(Kn,"true"),pt.isEmpty(t)},Qn=()=>window.localStorage.getItem(Jn)==="true",Rn=()=>{window.localStorage.setItem(Jn,"true")};function Nt(t,e){const{appDomain:i}=Xe();return n.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const At=new Ko;var at;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(at||(at={}));const pl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:o,privacy_policy_url:s,privacy_policy_title:l})=>{const{setIsAgreePolicy:r,bffEventReport:u}=Xe(),d=n.useMemo(()=>{var g;const A=location.search.slice(1),p={};(g=fi(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},[]),c=g=>{var A;return(A=d[g])!==null&&A!==void 0?A:null};n.useEffect(()=>{u?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const a=()=>{u?.({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}}),r?.(!0),window.localStorage.setItem(Gn,"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:a},"Agree"),n.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},l??"More information"))))};var ml=n.memo(pl);const $n=n.createContext({rtcList:[],tagList:[]});var an;(function(t){t[t.BFF=5]="BFF"})(an||(an={}));const Hi="FOR U",fl=({render:t,dataSources:e,utmVal:i,enableReportEvent:o=!0,maxSize:s,defaultSize:l,isPreview:r=!1,sxpParameter:u,appDomain:d,hashTagSize:c,loadingImage:a,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,B,C;const[j,O]=n.useState([]),[h,_]=n.useState([]),[V,F]=n.useState(!0),[I,L]=n.useState({rtc:"",requestId:""}),P=n.useRef(null),Y=n.useRef(!1),[U,q]=n.useState(()=>!!window.localStorage.getItem(Gn)),[ee,de]=n.useState(),[Ae,R]=n.useState(),[le,ye]=n.useState(g),[Fe,ue]=n.useState([]),[Ne,Ee]=n.useState(0),[_e,Ue]=n.useState(!1),[$e,tt]=n.useState(null),et=n.useRef(),Oe=n.useRef(),ut=n.useRef(),[gt,Pt]=n.useState(Hi),Ve=n.useRef(-1),ze=n.useRef(null),[Q,J]=n.useState(!1),[G,ce]=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(),[X,W]=n.useState(!1),[je,Ye]=n.useState(),[nt,mt]=n.useState(),[Ke,He]=n.useState([]),[ft,yt]=n.useState(),[Et,$t]=n.useState(),Ut=n.useMemo(()=>pe??b,[pe,b]),Ot=n.useRef(!1);n.useEffect(()=>{var z,H;ce((H=(z=b?.data)===null||z===void 0?void 0:z.sxpPageConf)===null||H===void 0?void 0:H.globalConfig)},[b]);const jt=n.useMemo(()=>{var z,H,te,he;return(((he=(te=(H=(z=G?.consent)===null||z===void 0?void 0:z[0])===null||H===void 0?void 0:H.item)===null||te===void 0?void 0:te.props)===null||he===void 0?void 0:he.privacy_necessity)&&!U&&!S||f)&&X},[U,G,f,S,X]),ni=n.useCallback(z=>{M?.(z),mt(z)},[]),Ct=n.useCallback(z=>{var H;const te=z?.recList;return(H=te?.map(be=>{var ge,Te,De,Pe,Be,N;if(!((ge=be?.video)===null||ge===void 0)&&ge.bindProducts&&((De=(Te=be?.video)===null||Te===void 0?void 0:Te.bindProducts)===null||De===void 0?void 0:De.length)>0){const Z=(N=(Be=(Pe=be?.video)===null||Pe===void 0?void 0:Pe.bindProducts)===null||Be===void 0?void 0:Be.filter(K=>!!K?.bindCta))!==null&&N!==void 0?N:[];return Object.assign(Object.assign({},be),{video:Object.assign(Object.assign({},be?.video),{bindProducts:Z})})}return be}))!==null&&H!==void 0?H:[]},[]);n.useEffect(()=>{let z;return Ke.length>0&&(z=setInterval(()=>{const te=new Date,he=15*1e3;He(be=>be.filter(ge=>te-ge.time<=he))},1e3)),()=>{clearInterval(z)}},[Ke]),n.useEffect(()=>{const z=H=>{et.current=H};return At.on(at.CHANGE_THEME_TAG,z),()=>{At.off(at.CHANGE_THEME_TAG,z)}},[]),n.useEffect(()=>{ye(g)},[g]);const Ge=n.useMemo(()=>e?.find(z=>z.type===an.BFF),[e]),xe=n.useMemo(()=>{var z;return((z=Ge?.headers)===null||z===void 0?void 0:z["x-app-id"])+dl()},[Ge]),re=()=>{var z,H;function te(ge){const Te=ge.match(/groups=([^&]+)/);if(!Te||!Te[1])return!1;const Pe=Te[1].split(",");for(const Be of Pe){const[N,Z]=Be.split(":");if(N==="4")return Z==="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((z=he("OptanonConsent"))!==null&&z!==void 0?z:"");return!!(window?.OnetrustActiveGroups&&((H=window?.OnetrustActiveGroups)===null||H===void 0?void 0:H.length)>2&&!window?.OnetrustActiveGroups.includes("4")&&te(be))},me=n.useCallback((z,H,te=!0)=>{var he;if(!Ge)return;const be=Ge.url;if(H?.query){const Te=Fn.stringify(H.query);z=`${z}?${Te}`}const ge=location.search.slice(1);return(he=fi(ge))===null||he===void 0||he.forEach(Te=>{Te.split("=")[0],Te.split("=")[1]}),window.fetch(`${be}/api/${z}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":xe},Ge.headers),method:H.method,body:H.type==="beacon"&&te?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ge.headers),{"x-user-id":xe}))))}):JSON.stringify(H.body)},H.type==="beacon"&&{keepalive:!0})).then(Te=>Te.json()).catch(Te=>Promise.reject(Te))},[Ge,xe]),Qe=n.useCallback(z=>{var H;if(re())return Promise.resolve();const te={eventName:z?.eventName,eventSource:z?.eventSource};return me?.(`v1/data/collect/${(H=Ge?.headers)===null||H===void 0?void 0:H["x-app-id"]}/${z?.eventName}`,{method:"POST",body:te,type:"beacon"},!1)},[me,Ge]);n.useEffect(()=>{const z=window.Image;window.Image=function(){const H=new z,te=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");return Object.defineProperty(H,"src",{set(he){if(!(re()&&(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());Qe({eventName:ge?.ev,eventSource:"Meta Pixel"})}},get(){return te.get.call(this)}}),H}},[Qe]),n.useEffect(()=>{const z=navigator;if(!z.sendBeacon){console.warn("navigator.sendBeacon is not supported");return}const H=z.sendBeacon.bind(z);return z.sendBeacon=function(te,he){const be=te instanceof URL?te.href:te.toString();if(re()&&(be.includes("https://tr.snapchat.com/p")||be.includes("https://analytics.tiktok.com/api/v2/pixel")))return!0;const ge=H(te,he);function Te(De){return ht(this,void 0,void 0,function*(){return typeof De=="string"?JSON.parse(De):De instanceof Blob?JSON.parse(yield De.text()):De instanceof ArrayBuffer?JSON.parse(new TextDecoder().decode(De)):null})}return ge&&Promise.resolve().then(()=>ht(this,void 0,void 0,function*(){var De,Pe;try{const Be=yield Te(he);be.includes("https://tr.snapchat.com/p")?(Pe=(De=Be?.req)===null||De===void 0?void 0:De.forEach)===null||Pe===void 0||Pe.call(De,N=>{var Z,K;!((Z=N?.t)===null||Z===void 0)&&Z.ev&&Qe({eventName:(K=N?.t)===null||K===void 0?void 0:K.ev,eventSource:"Snapchat Pixel"})}):be.includes("https://analytics.tiktok.com/api/v2/pixel")&&Be?.event&&Qe({eventName:Be.event,eventSource:"TikTok Pixel"})}catch(Be){console.error("\u76D1\u63A7\u5931\u8D25:",Be)}})),ge},()=>{z.sendBeacon=H}},[Qe]),n.useEffect(()=>{const z=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){const H=this;if(H.action.includes("facebook.com/tr")){const te=new FormData(H),he={};for(const[be,ge]of te.entries())he[be]=ge;return Qe({eventName:he?.ev,eventSource:"Meta Pixel"}),z.call(H)}return z.call(H)}},[]),n.useEffect(()=>{const z=window.fetch;window.fetch=function(H,te){var he=arguments;return ht(this,void 0,void 0,function*(){var be;let ge;try{ge=typeof H=="string"?H:H instanceof URL?H.href:H.url}catch(Te){return console.error("\u89E3\u6790\u8BF7\u6C42URL\u5931\u8D25:",Te),z.apply(this,he)}try{if(re()&&(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=z.apply(this,he);if(ge.includes("https://www.google-analytics.com/g/collect")){const De=new URL(ge),Pe=Object.fromEntries(De.searchParams.entries()),Be=(be=he[1])===null||be===void 0?void 0:be.body;if(Pe?.en)Qe({eventName:Pe?.en,eventSource:"Google Analytics"});else if(Be){const Z=function(K){if(typeof K!="string")return[];const ie=[],se=/en=([^&\r\n]*)/g;let $;for(;($=se.exec(K))!==null;)ie.push(decodeURIComponent($[1]));return ie}(Be);Z?.forEach(K=>{Qe({eventName:K,eventSource:"Google Analytics"})})}}return Te}catch(Te){throw console.error(Te),Te}})}},[]),n.useEffect(()=>{const z=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(te,he){this._url=he,z.apply(this,arguments)},XMLHttpRequest.prototype.send=function(te){var he;if(!(re()&&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&&Qe({eventName:ge.e,eventSource:"Northbeam Pixel"})}}catch(be){console.error("Failed to parse Northbeam event from XHR",be)}H.apply(this,arguments)}},()=>{XMLHttpRequest.prototype.open=z,XMLHttpRequest.prototype.send=H}},[Qe]),n.useEffect(()=>{typeof window?.fbq=="function"&&window?.fbq("track","PageView")},[]);const Lt=n.useCallback((z,H)=>{if(!Ge)return;const te=Ge.url;if(H?.query){const he=Fn.stringify(H.query);z=`${z}?${he}`}return window.fetch(`${te}/admin/${z}`,{headers:Object.assign({"Content-Type":"application/json"},Ge.headers),method:H.method,body:JSON.stringify(H.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Ge]),Qt=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be,ge,Te,De,Pe,Be,N,Z,K,ie,se;if(z=Object.assign(Object.assign({maxSize:(H=z?.maxSize)!==null&&H!==void 0?H:s,defaultSize:(te=z?.defaultSize)!==null&&te!==void 0?te:l,hashTag:z?.hashTag,traceInfo:z?.traceInfo,themeTag:z?.themeTag,pageNum:z?.pageNum,contentFilter:z?.contentFilter,productFilter:z?.productFilter},Et&&{chatlabsId:Et}),E&&{type:"story"}),nt)z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(nt)});else if(i){const oe=(ge=(be=(he=fi(i))===null||he===void 0?void 0:he.filter(fe=>{var ae,Se;const ne=fe.split("=")[0];return(Se=(ae=v?.channels)!==null&&ae!==void 0?ae:[])===null||Se===void 0?void 0:Se.includes(ne)}))===null||be===void 0?void 0:be.join("&"))!==null&&ge!==void 0?ge:"";oe&&(z=Object.assign(Object.assign({},z),{channel:decodeURIComponent(oe)}))}if(S){let oe=1;if(z=Object.assign(Object.assign(Object.assign({},z),{directPage:!0,level:1}),!i&&y&&y?.length>0&&{channel:y?.[0]}),!z?.channel||Y.current)return;Y.current=!0;let fe=[],ae=null;const Se=ne=>ht(void 0,void 0,void 0,function*(){var Ie,rt,ot,ct,lt,it;if(ne.pageNum=oe,ae=yield Lt?.("recommend/direct_page",{method:"POST",body:ne}),!ae?.success)return;F(!1),fe=fe.concat((ct=(ot=(rt=(Ie=ae?.data)===null||Ie===void 0?void 0:Ie.recList)===null||rt===void 0?void 0:rt.filter)===null||ot===void 0?void 0:ot.call(rt,Ze=>Ze?.product||Ze?.video))!==null&&ct!==void 0?ct:[]),j?.length===0&&(O(Ct(Object.assign(Object.assign({},ae?.data),{recList:fe}))),ue(Ct(Object.assign(Object.assign({},ae?.data),{recList:fe})))),((it=(lt=ae?.data)===null||lt===void 0?void 0:lt.recList)===null||it===void 0?void 0:it.some(Ze=>Ze?.product||Ze?.video))&&(oe=oe+1,yield Se(ne))});return yield Se(z),!z?.hashTag&&ae&&L({rtc:(Te=ae?.data)===null||Te===void 0?void 0:Te.rtc,requestId:(De=ae?.data)===null||De===void 0?void 0:De.requestId}),Object.assign(Object.assign({},ae?.data),{recList:fe})}G?.enablePreview&&(z=Object.assign(Object.assign({},z),{directPage:!0,level:1,pageNum:(Pe=z?.pageNum)!==null&&Pe!==void 0?Pe:1}));const $=yield me?.("v1/recommend/list",{method:"POST",body:z});if(!$?.success)return;z?.hashTag||L({rtc:$.data.rtc,requestId:$.data.requestId}),G?.enablePreview&&!S&&(!((N=(Be=$?.data)===null||Be===void 0?void 0:Be.recList)===null||N===void 0)&&N.some(fe=>fe?.product||fe?.video)||J(!0));let ve=[];return ve=ve.concat((se=(ie=(K=(Z=$?.data)===null||Z===void 0?void 0:Z.recList)===null||K===void 0?void 0:K.filter)===null||ie===void 0?void 0:ie.call(K,oe=>oe?.product||oe?.video))!==null&&se!==void 0?se:[]),Object.assign(Object.assign({},$.data),{recList:ve})}),[me,i,s,l,y,nt,Et,Lt]),Dn=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be;if(j.length<=0)return;const ge=j?.[j?.length-1],Te=yield Qt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:Ae?.hashTag},((H=ge?.product)===null||H===void 0?void 0:H.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}),G?.enablePreview&&!S&&{pageNum:z}));return O(j.concat(Ct(Te))),ue(Fe.concat(Ct(Te))),Te}),[Qt,j,Ae,Fe]),Ei=n.useCallback((z,H)=>{var te,he,be,ge,Te;let De=!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 Be=localStorage.getItem("sessionStartTime"),N=Be?JSON.parse(Be):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)&&(H?.("sessionTimeOut"),dn(),Oe.current=new Date,De=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else z&&dn();return De},[b]),Tt=n.useCallback(({userInfo:z,eventInfo:H,reportLayId:te=!0,isActiveTargetingCookie:he=!0})=>{var be,ge;if(!o||G?.enablePreview||he&&re())return;z||(z={});const Te=sl(),De={},Pe=location.search.slice(1);(be=fi(Pe))===null||be===void 0||be.forEach(ie=>{const se=ie.split("=")[0],$=ie.split("=")[1];De[se]=$});const Be=De?.cl_source,N=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:I.rtc,requestId:I.requestId},{playbookType:ft}),je&&te&&{layoutVariantId:je}),H),H?.position&&nt&&{position:Number(H?.position)+1+""}),Be&&{clSource:Be}),Z=Object.entries(z).map(([ie,se])=>({name:ie,value:se})),K=Object.entries(N).map(([ie,se])=>se&&{name:ie,value:se}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",z),console.log("eventInfo:",N),console.log("========= \u7ED3\u675F ========="),me?.(`v2/cld/${(ge=Ge?.headers)===null||ge===void 0?void 0:ge["x-app-id"]}/${H?.eventSubject}${Be?`/${decodeURIComponent(Be)}`:""}`,{method:"POST",body:{userInfo:Z,eventInfo:K},type:"beacon"})},[me,I,o,G?.enablePreview,je,G,ft,Ge]),Ai=n.useCallback(z=>{var H,te,he,be,ge,Te,De,Pe,Be,N,Z,K,ie,se,$,ve,oe,fe,{json:ae,product:Se=[],rec:ne,contentType:Ie="post",position:rt,eventName:ot}=z,ct=st(z,["json","product","rec","contentType","position","eventName"]);const lt=pt.cloneDeep(ae),it=new URLSearchParams(window.location.search),bt=it?.get("fbclid"),Ze={event_source_url:(H=window?.location)===null||H===void 0?void 0:H.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:bt?`fb.2.${new Date().getTime()}.${bt}`:"",fbp:on("_fbp")?`${on("_fbp")}`:"",time:Math.floor(Date.now()/1e3)};let vt=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:rt,currency:(Be=(Pe=(De=Se?.[0])===null||De===void 0?void 0:De.currency)===null||Pe===void 0?void 0:Pe.split("-"))===null||Be===void 0?void 0:Be[0],value:Se?.reduce((Ce,qe)=>Ce+qe?.price,0),contents:(N=Se?.map(Ce=>({id:Ce?.itemId,item_price:Ce?.price})))!==null&&N!==void 0?N:[],image_urls:(K=(Z=ne?.video)===null||Z===void 0?void 0:Z.imgUrls)!==null&&K!==void 0?K:[],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(!(!((se=ne?.video)===null||se===void 0)&&se.url)&&!(!((ve=($=ne?.video)===null||$===void 0?void 0:$.imgUrls)===null||ve===void 0)&&ve.length)&&ne?.product&&Array.isArray(G?.productPost)&&((oe=G?.productPost)===null||oe===void 0?void 0:oe.length)>0){const Ce=ne?.product,qe={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:[]};vt=Object.assign(Object.assign({},vt),qe)}(ot==="ContentSwipe"||ot==="Engagement"||ot==="ExitFeed")&&["content_ids","content_category","currency","contents","image_urls","video_urls","prompt","value"].forEach(qe=>{vt?.[qe]&&delete vt[qe]});const kt=/\{\{(.*?)\}\}/g,xt=Ce=>{if(Ce){if(Ce instanceof Array)Ce?.map(qe=>xt(qe));else for(const qe in Ce)if(Object.prototype.hasOwnProperty.call(Ce,qe)){const It=Ce?.[qe];if(typeof It=="object")qe==="custom_data"&&(Ce[qe]=vt??{}),xt(It);else if(typeof It=="string"){const Re=It?.match(kt);Re&&Re.forEach(Mt=>{var Ht;const we=Mt.substring(2,Mt.length-2);try{let dt=new Function("fix_par","product",`return ${we}`)(Ze,Se?.[0]);dt?(we?.indexOf("currency")!==-1&&dt?.indexOf("-")!==-1&&typeof dt=="string"&&(dt=(Ht=dt?.split("-"))===null||Ht===void 0?void 0:Ht[0]),Ce[qe]=dt):delete Ce[qe]}catch(dt){delete Ce[qe],console.error("An error occurred:",dt?.message)}})}}}};return xt(lt),console.log("capi event params:",lt),lt},[xe,G,j]),$i=n.useCallback(z=>{var H,te,he,be,ge,Te,De,Pe,Be,N,{eventName:Z}=z,K=st(z,["eventName"]);if(!o||G?.enablePreview||re())return;let ie=!1;const se=(H=G?.pixel)===null||H===void 0?void 0:H[Z];if(se?.event_name&&typeof window?.fbq=="function"){let oe=function(fe,ae,Se){const ne=new RegExp("([?&])"+ae+"=.*?(&|$)","i"),Ie=fe.indexOf("?")!==-1?"&":"?";return fe.match(ne)?fe.replace(ne,"$1"+ae+"="+Se+"$2"):fe+Ie+ae+"="+Se};if(Z==="PageView"&&se?.event_name==="PageView")if(!Ot.current)Ot.current=!0;else{const fe=window.location.href,ae=oe(fe,"timestamp",Date.now());history.pushState({path:ae},"",ae),ie=!0}else window?.fbq("track",se?.event_name,Ai(Object.assign({json:se,eventName:Z},K)))}if(!ie){Z==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const oe=(te=G?.tiktokPixel)===null||te===void 0?void 0:te[Z];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,Ai(Object.assign({json:oe,eventName:Z},K))))}const $=(ge=G?.snapchatPixel)===null||ge===void 0?void 0:ge[Z];$?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",$?.event_name,Ai(Object.assign({json:$,eventName:Z},K))),Z==="PageView"&&typeof window?.Northbeam=="object"&&typeof((Te=window?.Northbeam)===null||Te===void 0?void 0:Te.trackPageView)=="function"&&((De=window?.Northbeam)===null||De===void 0||De.trackPageView());const ve=(Pe=G?.converApi)===null||Pe===void 0?void 0:Pe[Z];if(A&&ve){const oe=Ai(Object.assign({json:ve,eventName:Z},K)),fe={},ae=location.search.slice(1);(Be=fi(ae))===null||Be===void 0||Be.forEach(ne=>{const Ie=ne.split("=")[0],rt=ne.split("=")[1];fe[Ie]=rt});const Se=fe?.cl_source;me?.(`v2/fb/${(N=Ge?.headers)===null||N===void 0?void 0:N["x-app-id"]}/${Z}${Se?`/${decodeURIComponent(Se)}`:""}`,{method:"POST",body:oe,type:"beacon"})}},[me,o,A,G,Ge,Ai]),pi=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/recommend/like",{method:"POST",body:z});return H?.success}),[me]),ki=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/recommend/unlike",{method:"POST",body:z});return H?.success}),[me]),di=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/customform",{method:"POST",body:z});return H?.success}),[me]),Zt=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){var H,te,he,be,ge,Te,De,Pe;const Be=!!(!((he=(te=(H=z?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||te===void 0?void 0:te.globalConfig)===null||he===void 0)&&he.isShowTag);if(!(!i||!Be))try{const N=(Te=(ge=(be=fi(i))===null||be===void 0?void 0:be.filter(K=>{var ie,se;const $=K.split("=")[0];return(se=(ie=v?.channels)!==null&&ie!==void 0?ie:[])===null||se===void 0?void 0:se.includes($)}))===null||ge===void 0?void 0:ge.join("&"))!==null&&Te!==void 0?Te:"",Z=yield me?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(N)}});_((Pe=(De=Z?.data)===null||De===void 0?void 0:De.tags)!==null&&Pe!==void 0?Pe:[])}catch(N){console.log("e",N)}}),[me,i]),ei=n.useCallback((z,H,te,he,be,ge,Te)=>{var De,Pe,Be,N,Z,K,ie,se,$,ve,oe,fe,ae,Se,ne,Ie,rt,ot,ct,lt,it,bt,Ze,vt,kt,xt,Ce,qe,It,Re,Mt,Ht,we,dt,oi,bi;const Kt=te?.bindCta,Wi=((De=H?.video)===null||De===void 0?void 0:De.bindProduct)||((Pe=H?.video)===null||Pe===void 0?void 0:Pe.bindProducts)&&((N=(Be=H?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||N===void 0?void 0:N.length)>0;let mi="",Le=null;_e?mi="hashTagPage":!((Z=H?.video)===null||Z===void 0)&&Z.url?(mi="videoPage",Le="video"):!((ie=(K=H?.video)===null||K===void 0?void 0:K.imgUrls)===null||ie===void 0)&&ie.length&&(mi="imagePage",Le="image");const Wt=(Se=(fe=(se=te?.tags)!==null&&se!==void 0?se:(oe=(ve=($=H?.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:(ae=H?.video)===null||ae===void 0?void 0:ae.tags)!==null&&Se!==void 0?Se:(ne=H?.product)===null||ne===void 0?void 0:ne.tags;Tt?.({eventInfo:Object.assign(Object.assign({},z),{ctaId:(Ie=Kt?.itemId)!==null&&Ie!==void 0?Ie:"",ctaName:(rt=Kt?.title)!==null&&rt!==void 0?rt:"",contentTags:Wt?JSON.stringify(Wt):"",position:he+"",contentId:(ct=(ot=H?.video)===null||ot===void 0?void 0:ot.itemId)!==null&&ct!==void 0?ct:"",productId:Wi?te?.itemId:"",traceInfo:(oi=(Ht=(Ce=(Ze=(lt=Kt?.traceInfo)!==null&<!==void 0?lt:(bt=(it=H?.video)===null||it===void 0?void 0:it.bindCta)===null||bt===void 0?void 0:bt.traceInfo)!==null&&Ze!==void 0?Ze:(xt=(kt=(vt=H?.video)===null||vt===void 0?void 0:vt.bindProduct)===null||kt===void 0?void 0:kt.bindCta)===null||xt===void 0?void 0:xt.traceInfo)!==null&&Ce!==void 0?Ce:(Mt=(Re=(It=(qe=H?.video)===null||qe===void 0?void 0:qe.bindProducts)===null||It===void 0?void 0:It[0])===null||Re===void 0?void 0:Re.bindCta)===null||Mt===void 0?void 0:Mt.traceInfo)!==null&&Ht!==void 0?Ht:(dt=(we=H?.product)===null||we===void 0?void 0:we.bindCta)===null||dt===void 0?void 0:dt.traceInfo)!==null&&oi!==void 0?oi:"",fromKName:mi,fromKPage:(bi=location?.href)!==null&&bi!==void 0?bi:"",contentFormat:Le})})},[Tt,_e]),Dt=n.useCallback(()=>{var z,H;const te=new Date;Oe.current=te,Tt?.({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=(z=window?.location)===null||z===void 0?void 0:z.href)!==null&&H!==void 0?H:""},reportLayId:!1})},[Tt]),Vn=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){var z,H;const te=yield me?.("v1/account",{method:"GET"});return $t((z=te?.data)===null||z===void 0?void 0:z.chatLabsId),((H=te?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[me]),en=n.useCallback(z=>ht(void 0,void 0,void 0,function*(){const H=yield me?.("v1/account/consent",{method:"POST",body:{consentResult:z}});return H?.success}),[me]);n.useEffect(()=>{jt||Dt()},[jt]),n.useEffect(()=>{if(jt||r)return;F(!0);let z,H;Qt().then(te=>{var he,be,ge,Te,De,Pe,Be,N,Z,K,ie;if(te){const se=Ct(te);let $,ve;if(te?.layoutVariantId){z=te?.layoutVariantId,Ye(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=(De=(Te=$?.data)===null||Te===void 0?void 0:Te.sxpPageConf)===null||De===void 0?void 0:De.globalConfig,ce(ve),k?.($?.data),!((Z=(N=(Be=(Pe=ve?.consent)===null||Pe===void 0?void 0:Pe[0])===null||Be===void 0?void 0:Be.item)===null||N===void 0?void 0:N.props)===null||Z===void 0)&&Z.privacy_necessity&&W(!0)):W(!0))}else W(!0);if(nt||(ve?.playbook==="organic menu"||!ve&&G?.playbook==="organic menu"?(yt("organicMenu"),se.unshift("organic menu"),H="organicMenu"):(yt("paidMedia"),H="paidMedia")),O(se),ue(se),Zt($??Ut),nt){const oe=se?.[0],fe=((K=oe?.video)===null||K===void 0?void 0:K.traceInfo)||((ie=oe?.product)===null||ie===void 0?void 0:ie.traceInfo)||"";Tt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:fe,branchfeed:nt},z&&{layoutVariantId:z})}),Tt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:fe,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ut?.current)/1e3)+""},z&&{layoutVariantId:z})})}}}).finally(()=>{Tt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},z&&{layoutVariantId:z}),H&&{playbookType:H})}),F(!1)})},[jt,nt]),n.useEffect(()=>{r&&(F(!0),Zt(b),Qt().then(z=>{if(z){const H=Ct(z);G?.playbook==="organic menu"&&!nt&&H.unshift("organic menu"),O(H),ue(H)}}).finally(()=>{F(!1)}))},[Qt,Zt,nt]);const tn=Nt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",d);return n.createElement($n.Provider,{value:{rtcList:j,setRtcList:O,mutateLike:pi,mutateUnlike:ki,submitForm:di,popupDetailData:ee,loadVideos:Dn,setPopupDetailData:de,getRecommendVideos:Qt,bffEventReport:Tt,isPreview:r,loading:V,sxpParameter:u,waterFallData:Ae,setWaterFallData:R,ctaEvent:ei,swiperRef:P,openHashtag:le,setOpenHashtag:ye,cacheRtcList:Fe,setCacheRtcList:ue,cacheActiveIndex:Ne,setCacheActiveIndex:Ee,isFromHashtag:_e,setIsFromHashtag:Ue,appDomain:d,hashTagSize:c,loadingImage:a??tn,isOpenHashTag:g,tagList:h,setLoading:F,videoRef:$e,setVideoRef:tt,bffFbReport:$i,isAgreePolicy:U,setIsAgreePolicy:q,curTime:Oe,h5EnterLink:Dt,themeTag:et,isShowConsent:jt,selectTag:gt,setSelectTag:Pt,globalConfig:G,popupCurTimeRef:ze,checkCommodityIndexRef:Ve,isEditor:S,isNoMoreData:Q,updateChannel:ni,channel:nt,eventTimeList:Ke,setEventTimeList:He,multiPostTimeRef:ut,refreshFeSession:Ei,getAccount:Vn,accountSonsent:en,isDiyH5:E,pixelPvStatusRef:Ot}},jt?n.createElement(ml,Object.assign({},(C=(B=(T=G?.consent)===null||T===void 0?void 0:T[0])===null||B===void 0?void 0:B.item)===null||C===void 0?void 0:C.props)):t({rtcList:j,mutateLike:pi,mutateUnlike:ki,submitForm:di,tagList:h,pageData:Ut}))};var eo=n.memo(fl);function Xe(){return n.useContext($n)}var to;(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"})(to||(to={}));const io=n.createContext({$store:{},options:[],configs:[]}),hl=({children:t,isSsr:e,enable:i})=>{const[o,s]=n.useState([]),{schema:l}=ui(),[r,u]=n.useState(l.__STORE__||{}),[d,c]=n.useState([]);n.useEffect(()=>{var A;e||pt.isEqual(d,l?.dataSource)||c((A=l?.dataSource)!==null&&A!==void 0?A:[])},[l?.dataSource,e]);const a=n.useCallback(()=>ht(void 0,void 0,void 0,function*(){const{$store:A,idMapName:p}=yield Hn("",d);u(A),g(A,p)}),[d]),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)})}),s(m)};return n.useEffect(()=>{e||a()},[a,e,l]),i?n.createElement(io.Provider,{value:{$store:l.__STORE__||r,options:o,configs:d}},t):t};var Al=n.memo(hl);const zi={id:_i(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},un={id:"",duration:0,name:"none"},no=n.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[zi],redoStack:[],popup:un,setPopup:()=>{}}),oo=n.forwardRef(({children:t,resolver:e,isSsr:i,schema:o,enableDataSource:s=!0,utmVal:l},r)=>{const[u,d]=n.useState(null),[c,a]=n.useState(o||{pointData:[zi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[g,A]=n.useState([zi]),[p,m]=n.useState([[zi]]),[f,S]=n.useState([]),[v,y]=n.useState(un);typeof window<"u"&&(window.sxpPopup=(M,D)=>{y(Object.assign(Object.assign(Object.assign({},un),{id:M}),D))}),typeof window<"u"&&(window.getJointUtmLink=M=>(cl(),M?.indexOf("?")!==-1?M+(l?"&"+l:""):M+(l?"?"+l:""))),n.useEffect(()=>{m([c.pointData]),S([])},[c.type]);const b=n.useCallback(M=>{const D=pt.cloneDeep(c);D&&(D.dataSource=M,a?.(D))},[c]),[w,E]=n.useState();n.useImperativeHandle(r,()=>({loadSchema(M){M&&(m([M.pointData]),a(M))},exportSchema(){return pt.cloneDeep(c)},getPageInfoData(){return w},initPageInfoData(M){M&&E(M)}}));const k=n.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return n.createElement(no.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:d,setSchema:a,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(Al,{isSsr:i,enable:s},t))});var bl=Object.freeze({__proto__:null,EditorCore:oo}),gl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],yl=[{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 _t(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:o,setEventTimeList:s}=Xe(),l=n.useCallback((d,c,a,g,A,p)=>{var m,f,S,v,y,b,w,E,k,M,D,x,T,B,C,j,O,h,_,V,F,I,L,P,Y,U,q,ee,de,Ae,R,le,ye,Fe,ue,Ne,Ee,_e;if(o?.findIndex(Oe=>Oe.target===d?.target)!==-1)return;d&&s?.(Oe=>[...Oe,{target:d?.target,time:new Date}]);let $e="";e&&(!((f=(m=c?.video)===null||m===void 0?void 0:m.bindProducts)===null||f===void 0)&&f.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?$e="pdpPage":i?$e="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?$e="videoPage":!((y=c?.video)===null||y===void 0)&&y.imgUrls&&(!((w=(b=c?.video)===null||b===void 0?void 0:b.imgUrls)===null||w===void 0)&&w.length)?$e="imagePage":c?.product&&($e="productPage");const tt=(B=(x=(E=a?.tags)!==null&&E!==void 0?E:(D=(M=(k=c?.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=c?.video)===null||T===void 0?void 0:T.tags)!==null&&B!==void 0?B:(C=c?.product)===null||C===void 0?void 0:C.tags;let et=null;!((j=c?.video)===null||j===void 0)&&j.url?et="video":!((O=c?.video)===null||O===void 0)&&O.imgUrls&&(!((_=(h=c?.video)===null||h===void 0?void 0:h.imgUrls)===null||_===void 0)&&_.length)&&(et="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(V=a?.itemId)!==null&&V!==void 0?V:"",productName:(F=a?.title)!==null&&F!==void 0?F:"",price:a?.price?a?.price+"":"0",productCollection:(I=a?.collection)!==null&&I!==void 0?I:"",fromKName:$e,fromKPage:location?.href,contentTags:tt?JSON.stringify(tt):"",position:A+"",contentId:(P=(L=c?.video)===null||L===void 0?void 0:L.itemId)!==null&&P!==void 0?P:"",ctatId:(Y=g?.itemId)!==null&&Y!==void 0?Y:"",traceInfo:(_e=(ue=(ye=(de=(U=p??a?.traceInfo)!==null&&U!==void 0?U:(ee=(q=c?.video)===null||q===void 0?void 0:q.bindProduct)===null||ee===void 0?void 0:ee.traceInfo)!==null&&de!==void 0?de:(le=(R=(Ae=c?.video)===null||Ae===void 0?void 0:Ae.bindProducts)===null||R===void 0?void 0:R[0])===null||le===void 0?void 0:le.traceInfo)!==null&&ye!==void 0?ye:(Fe=c?.product)===null||Fe===void 0?void 0:Fe.traceInfo)!==null&&ue!==void 0?ue:(Ee=(Ne=c?.video)===null||Ne===void 0?void 0:Ne.bindCta)===null||Ee===void 0?void 0:Ee.traceInfo)!==null&&_e!==void 0?_e:""},et&&{contentFormat:et})})},[t,e,i,o]),r=n.useCallback((d,c,a,g,A)=>{var p,m,f,S,v,y,b,w,E,k,M,D,x,T;let B="";e&&(!((m=(p=d?.video)===null||p===void 0?void 0:p.bindProducts)===null||m===void 0)&&m.length||!((f=d?.video)===null||f===void 0)&&f.bindProduct)?B="pdpPage":d?.product&&(B="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:B,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:A+"",contentId:(S=d?.video)===null||S===void 0?void 0:S.itemId,ctatId:a?.itemId,traceInfo:(T=(D=(w=(v=c?.traceInfo)!==null&&v!==void 0?v:(b=(y=d?.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=d?.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=d?.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]),u=n.useCallback((d,c,a,g)=>{c&&c===Hi&&t?.({eventInfo:{lastFeed:d,themeTags:a?`['${a}']`:"",hashTags:g?`['${g}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:r,backMainFeed:u}}const wl=({layout:t,columns:e,onChange:i})=>n.createElement(n.Fragment,null,e?.map((o,s)=>n.createElement("div",{key:s,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 Sl=n.memo(wl);const xl=t=>{var e,i,{columns:o,style:s,title:l,textStyle:r,submitBgColor:u,submitColor:d,submitText:c,layoutType:a="inline",isExternalLink:g,isPopup:A,onClick:p,onClose:m,submitButtonStyle:f}=t,S=st(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:y}=Xe(),{jumpToWeb:b}=_t(),[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"}],[]),B=((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(()=>pt.cloneDeep(o)||T,[o,T]),j=n.useCallback(h=>{const{name:_,value:V}=h.target;M(Object.assign(Object.assign({},k),{[_]:V}))},[k]),O=pt.debounce(h=>ht(void 0,void 0,void 0,function*(){var _,V,F,I,L;const P=k;if(!P)return;const Y=(V=(_=Object.keys(P))===null||_===void 0?void 0:_.map(q=>{var ee;return{name:q,value:(ee=P[q])!==null&&ee!==void 0?ee:""}}))===null||V===void 0?void 0:V.filter(q=>q?.value);if(!Y||!Y?.length)return;E(!0);const U=yield v?.({attributes:Y});if(E(!1),U){if(g){const q=y,ee=(F=q?.video)===null||F===void 0?void 0:F.bindProduct,de=(L=(I=q?.video)===null||I===void 0?void 0:I.bindProduct)===null||L===void 0?void 0:L.bindCta,Ae=y?.index;b(h,q,ee,de,Ae)}A||m?.(),p?.()}}),1e3);return n.useEffect(()=>{const h=()=>{var _,V;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((_=document?.documentElement)===null||_===void 0?void 0:_.clientHeight)||((V=document?.body)===null||V===void 0?void 0:V.clientHeight))<B?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 ${We.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Me(l,r)}}),n.createElement("div",Object.assign({className:We.css(Object.assign(Object.assign({},s),{marginTop:D}))},S),n.createElement("div",{className:"pb-appoint-form-container"},n.createElement(Sl,{columns:C,layout:a,onChange:j}))),n.createElement("div",{className:"pb-appoint-form-btn-wrapper"},n.createElement("button",{"aria-label":c,onClick:O,className:"pb-appoint-form-btn",style:Object.assign({color:d,background:u},f),dangerouslySetInnerHTML:{__html:Me(w?"loading...":c,f)}})))};var Tl=n.memo(xl);function St(t,e){return t.extend=e,t}const El=St(Tl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:yl,bindableProps:[],interactionRender:gl},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 kl=[{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"]}]}],Il=[{title:"\u6ED1\u52A8\u4E8B\u4EF6",child:[{type:"Switch",label:"\u6ED1\u52A8\u94FA\u6EE1\u5168\u5C4F",name:["isScrollFullScreen"]}]}];function lo(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function cn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:lo(e[i])&&lo(t[i])&&Object.keys(e[i]).length>0&&cn(t[i],e[i])})}const so={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 zt(){const t=typeof document<"u"?document:{};return cn(t,so),t}const Cl={document:so,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 Bt(){const t=typeof window<"u"?window:{};return cn(t,Cl),t}function ci(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Pl(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function gi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Jt(){return Date.now()}function Ol(t){const e=Bt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function jl(t,e){e===void 0&&(e="x");const i=Bt();let o,s,l;const r=Ol(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(s==="none"?"":s)):(l=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=l.m41:o.length===16?s=parseFloat(o[12]):s=parseFloat(o[4])),e==="y"&&(i.WebKitCSSMatrix?s=l.m42:o.length===16?s=parseFloat(o[13]):s=parseFloat(o[5])),s||0}function Ui(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Ll(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&&!Ll(o)){const s=Object.keys(Object(o)).filter(l=>e.indexOf(l)<0);for(let l=0,r=s.length;l<r;l+=1){const u=s[l],d=Object.getOwnPropertyDescriptor(o,u);d!==void 0&&d.enumerable&&(Ui(t[u])&&Ui(o[u])?o[u].__swiper__?t[u]=o[u]:qt(t[u],o[u]):!Ui(t[u])&&Ui(o[u])?(t[u]={},o[u].__swiper__?t[u]=o[u]:qt(t[u],o[u])):t[u]=o[u])}}}return t}function Xi(t,e,i){t.style.setProperty(e,i)}function ro(t){let{swiper:e,targetPosition:i,side:o}=t;const s=Bt(),l=-e.translate;let r=null,u;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",a=(A,p)=>c==="next"&&A>=p||c==="prev"&&A<=p,g=()=>{u=new Date().getTime(),r===null&&(r=u);const A=Math.max(Math.min((u-r)/d,1),0),p=.5-Math.cos(A*Math.PI)/2;let m=l+p*(i-l);if(a(m,i)&&(m=i),e.wrapperEl.scrollTo({[o]:m}),a(m,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(g)};g()}function ti(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function qi(t){try{console.warn(t);return}catch{}}function yi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ci(e)),i}function ao(t){const e=Bt(),i=zt(),o=t.getBoundingClientRect(),s=i.body,l=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,d=t===e?e.scrollX:t.scrollLeft;return{top:o.top+u-l,left:o.left+d-r}}function Ml(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 Nl(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 vi(t,e){return Bt().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 Yi(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 vn(t,e){function i(o){o.target===t&&(e.call(t,o),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function pn(t,e,i){const o=Bt();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 mn;function Dl(){const t=Bt(),e=zt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function uo(){return mn||(mn=Dl()),mn}let fn;function Vl(t){let{userAgent:e}=t===void 0?{}:t;const i=uo(),o=Bt(),s=o.navigator.platform,l=e||o.navigator.userAgent,r={ios:!1,android:!1},u=o.screen.width,d=o.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let a=l.match(/(iPad).*OS\s([\d_]+)/);const g=l.match(/(iPod)(.*OS\s([\d_]+))?/),A=!a&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let m=s==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!a&&m&&i.touch&&f.indexOf(`${u}x${d}`)>=0&&(a=l.match(/(Version)\/([\d.]+)/),a||(a=[0,1,"13_0_0"]),m=!1),c&&!p&&(r.os="android",r.android=!0),(a||A||g)&&(r.os="ios",r.ios=!0),r}function co(t){return t===void 0&&(t={}),fn||(fn=Vl(t)),fn}let hn;function Bl(){const t=Bt(),e=co();let i=!1;function o(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(o()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[d,c]=u.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));i=d<16||d===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=o(),r=l||s&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function Fl(){return hn||(hn=Bl()),hn}function Wl(t){let{swiper:e,on:i,emit:o}=t;const s=Bt();let l=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(g=>{r=s.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)&&u()})}),l.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},a=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){d();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",a)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",a)})}function _l(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=[],r=Bt(),u=function(a,g){g===void 0&&(g={});const A=r.MutationObserver||r.WebkitMutationObserver,p=new A(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const f=function(){s("observerUpdate",m[0])};r.requestAnimationFrame?r.requestAnimationFrame(f):r.setTimeout(f,0)});p.observe(a,{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)},d=()=>{if(e.params.observer){if(e.params.observeParents){const a=Yi(e.hostEl);for(let g=0;g<a.length;g+=1)u(a[g])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(a=>{a.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",c)}var Hl={on(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const s=i?"unshift":"push";return t.split(" ").forEach(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][s](e)}),o},once(t,e,i){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function s(){o.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var l=arguments.length,r=new Array(l),u=0;u<l;u++)r[u]=arguments[u];e.apply(o,r)}return s.__emitterProxy=e,o.on(t,s,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((s,l)=>{(s===e||s.__emitterProxy&&s.__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 s=arguments.length,l=new Array(s),r=0;r<s;r++)l[r]=arguments[r];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(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(o,[d,...i])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(c=>{c.apply(o,i)})}),t}};function zl(){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(vi(o,"padding-left")||0,10)-parseInt(vi(o,"padding-right")||0,10),i=i-parseInt(vi(o,"padding-top")||0,10)-parseInt(vi(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 Ul(){const t=this;function e(T,B){return parseFloat(T.getPropertyValue(t.getDirectionLabel(B))||0)}const i=t.params,{wrapperEl:o,slidesEl:s,size:l,rtlTranslate:r,wrongRTL:u}=t,d=t.virtual&&i.virtual.enabled,c=d?t.virtual.slides.length:t.slides.length,a=ti(s,`.${t.params.slideClass}, swiper-slide`),g=d?t.virtual.slides.length:a.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,a.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Xi(o,"--swiper-centered-offset-before",""),Xi(o,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&t.grid;M?t.grid.initSlides(a):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 B;if(a[T]&&(B=a[T]),M&&t.grid.updateSlide(T,B,a),!(a[T]&&vi(B,"display")==="none")){if(i.slidesPerView==="auto"){x&&(a[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(B),j=B.style.transform,O=B.style.webkitTransform;if(j&&(B.style.transform="none"),O&&(B.style.webkitTransform="none"),i.roundLengths)D=t.isHorizontal()?pn(B,"width",!0):pn(B,"height",!0);else{const h=e(C,"width"),_=e(C,"padding-left"),V=e(C,"padding-right"),F=e(C,"margin-left"),I=e(C,"margin-right"),L=C.getPropertyValue("box-sizing");if(L&&L==="border-box")D=h+F+I;else{const{clientWidth:P,offsetWidth:Y}=B;D=h+_+V+F+I+(Y-P)}}j&&(B.style.transform=j),O&&(B.style.webkitTransform=O),i.roundLengths&&(D=Math.floor(D))}else D=(l-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(D=Math.floor(D)),a[T]&&(a[T].style[t.getDirectionLabel("width")]=`${D}px`);a[T]&&(a[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,r&&u&&(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 B=0;B<A.length;B+=1){let C=A[B];i.roundLengths&&(C=Math.floor(C)),A[B]<=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(d&&i.loop){const T=m[0]+b;if(i.slidesPerGroup>1){const B=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let j=0;j<B;j+=1)A.push(A[A.length-1]+C)}for(let B=0;B<t.virtual.slidesBefore+t.virtual.slidesAfter;B+=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()&&r?"marginLeft":t.getDirectionLabel("marginRight");a.filter((B,C)=>!i.cssMode||i.loop?!0:C!==a.length-1).forEach(B=>{B.style[T]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const B=T-l;A=A.map(C=>C<=0?-f:C>B?B+S:C)}if(i.centerInsufficientSlides){let T=0;m.forEach(C=>{T+=C+(b||0)}),T-=b;const B=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+B<l){const C=(l-T-B)/2;A.forEach((j,O)=>{A[O]=j-C}),p.forEach((j,O)=>{p[O]=j+C})}}if(Object.assign(t,{slides:a,snapGrid:A,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Xi(o,"--swiper-centered-offset-before",`${-A[0]}px`),Xi(o,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const T=-t.snapGrid[0],B=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+B)}if(g!==c&&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"),!d&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,B=t.el.classList.contains(T);g<=i.maxBackfaceHiddenSlides?B||t.el.classList.add(T):B&&t.el.classList.remove(T)}}function Xl(t){const e=this,i=[],o=e.virtual&&e.params.virtual.enabled;let s=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>o?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const u=e.activeIndex+l;if(u>e.slides.length&&!o)break;i.push(r(u))}else i.push(r(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const u=i[l].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function ql(){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 vo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Yl(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:o,rtlTranslate:s,snapGrid:l}=e;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let d=0;d<o.length;d+=1){const c=o[d];let a=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(a-=o[0].swiperSlideOffset);const g=(r+(i.centeredSlides?e.minTranslate():0)-a)/(c.swiperSlideSize+u),A=(r-l[0]+(i.centeredSlides?e.minTranslate():0)-a)/(c.swiperSlideSize+u),p=-(r-a),m=p+e.slidesSizesGrid[d],f=p>=0&&p<=e.size-e.slidesSizesGrid[d],S=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(d)),vo(c,S,i.slideVisibleClass),vo(c,f,i.slideFullyVisibleClass),c.progress=s?-g:g,c.originalProgress=s?-A:A}}function Gl(t){const e=this;if(typeof t>"u"){const a=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*a||0}const i=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:l,isEnd:r,progressLoop:u}=e;const d=l,c=r;if(o===0)s=0,l=!0,r=!0;else{s=(t-e.minTranslate())/o;const a=Math.abs(t-e.minTranslate())<1,g=Math.abs(t-e.maxTranslate())<1;l=a||s<=0,r=g||s>=1,a&&(s=0),g&&(s=1)}if(i.loop){const a=e.getSlideIndexByData(0),g=e.getSlideIndexByData(e.slides.length-1),A=e.slidesGrid[a],p=e.slidesGrid[g],m=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=A?u=(f-A)/m:u=(f+m-p)/m,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:l,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!d&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(d&&!l||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const An=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Zl(){const t=this,{slides:e,params:i,slidesEl:o,activeIndex:s}=t,l=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=g=>ti(o,`.${i.slideClass}${g}, swiper-slide${g}`)[0];let d,c,a;if(l)if(i.loop){let g=s-t.virtual.slidesBefore;g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),d=u(`[data-swiper-slide-index="${g}"]`)}else d=u(`[data-swiper-slide-index="${s}"]`);else r?(d=e.filter(g=>g.column===s)[0],a=e.filter(g=>g.column===s+1)[0],c=e.filter(g=>g.column===s-1)[0]):d=e[s];d&&(r||(a=Nl(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!a&&(a=e[0]),c=Ml(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(g=>{An(g,g===d,i.slideActiveClass),An(g,g===a,i.slideNextClass),An(g,g===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Gi=(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 s=o.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(o.shadowRoot?s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(s=o.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},bn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},gn=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),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((d,c)=>r+o+c)),t.slides.forEach((d,c)=>{u.includes(d.column)&&bn(t,c)});return}const l=s+o-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=l+e;r+=1){const u=(r%i+i)%i;(u<s||u>l)&&bn(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(l+e,i-1);r+=1)r!==s&&(r>l||r<s)&&bn(t,r)};function Kl(t){const{slidesGrid:e,params:i}=t,o=t.rtlTranslate?t.translate:-t.translate;let s;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?s=l:o>=e[l]&&o<e[l+1]&&(s=l+1):o>=e[l]&&(s=l);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Jl(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:s,activeIndex:l,realIndex:r,snapIndex:u}=e;let d=t,c;const a=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 d>"u"&&(d=Kl(e)),o.indexOf(i)>=0)c=o.indexOf(i);else{const p=Math.min(s.slidesPerGroupSkip,d);c=p+Math.floor((d-p)/s.slidesPerGroup)}if(c>=o.length&&(c=o.length-1),d===l&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(d===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=a(d);return}const g=e.grid&&s.grid&&s.grid.rows>1;let A;if(e.virtual&&s.virtual.enabled&&s.loop)A=a(d);else if(g){const p=e.slides.filter(f=>f.column===d)[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/s.grid.rows)}else if(e.slides[d]){const p=e.slides[d].getAttribute("data-swiper-slide-index");p?A=parseInt(p,10):A=d}else A=d;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:A,previousIndex:l,activeIndex:d}),e.initialized&&gn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==A&&e.emit("realIndexChange"),e.emit("slideChange"))}function Ql(t,e){const i=this,o=i.params;let s=t.closest(`.${o.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${o.slideClass}, swiper-slide`)&&(s=u)});let l=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){l=!0,r=u;break}}if(s&&l)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}o.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Rl={updateSize:zl,updateSlides:Ul,updateAutoHeight:Xl,updateSlidesOffset:ql,updateSlidesProgress:Yl,updateProgress:Gl,updateSlidesClasses:Zl,updateActiveIndex:Jl,updateClickedSlide:Ql};function $l(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:o,translate:s,wrapperEl:l}=e;if(i.virtualTranslate)return o?-s:s;if(i.cssMode)return s;let r=jl(l,t);return r+=e.cssOverflowAdjustment(),o&&(r=-r),r||0}function es(t,e){const i=this,{rtlTranslate:o,params:s,wrapperEl:l,progress:r}=i;let u=0,d=0;const c=0;i.isHorizontal()?u=o?-t:t:d=t,s.roundLengths&&(u=Math.floor(u),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:d,s.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-d:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${u}px, ${d}px, ${c}px)`);let a;const g=i.maxTranslate()-i.minTranslate();g===0?a=0:a=(t-i.minTranslate())/g,a!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function ts(){return-this.snapGrid[0]}function is(){return-this.snapGrid[this.snapGrid.length-1]}function ns(t,e,i,o,s){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:r,wrapperEl:u}=l;if(l.animating&&r.preventInteractionOnTransition)return!1;const d=l.minTranslate(),c=l.maxTranslate();let a;if(o&&t>d?a=d:o&&t<c?a=c:a=t,l.updateProgress(a),r.cssMode){const g=l.isHorizontal();if(e===0)u[g?"scrollLeft":"scrollTop"]=-a;else{if(!l.support.smoothScroll)return ro({swiper:l,targetPosition:-a,side:g?"left":"top"}),!0;u.scrollTo({[g?"left":"top"]:-a,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(a),i&&(l.emit("beforeTransitionStart",e,s),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(a),i&&(l.emit("beforeTransitionStart",e,s),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 os={getTranslate:$l,setTranslate:es,minTranslate:ts,maxTranslate:is,translateTo:ns};function ls(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 po(t){let{swiper:e,runCallbacks:i,direction:o,step:s}=t;const{activeIndex:l,previousIndex:r}=e;let u=o;if(u||(l>r?u="next":l<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&l!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function ss(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;o.cssMode||(o.autoHeight&&i.updateAutoHeight(),po({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function rs(t,e){t===void 0&&(t=!0);const i=this,{params:o}=i;i.animating=!1,!o.cssMode&&(i.setTransition(0),po({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var ds={setTransition:ls,transitionStart:ss,transitionEnd:rs};function as(t,e,i,o,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:d,slidesGrid:c,previousIndex:a,activeIndex:g,rtlTranslate:A,wrapperEl:p,enabled:m}=l;if(!m&&!o&&!s||l.destroyed||l.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const f=Math.min(l.params.slidesPerGroupSkip,r);let S=f+Math.floor((r-f)/l.params.slidesPerGroup);S>=d.length&&(S=d.length-1);const v=-d[S];if(u.normalizeSlideIndex)for(let b=0;b<c.length;b+=1){const w=-Math.floor(v*100),E=Math.floor(c[b]*100),k=Math.floor(c[b+1]*100);typeof c[b+1]<"u"?w>=E&&w<k-(k-E)/2?r=b:w>=E&&w<k&&(r=b+1):w>=E&&(r=b)}if(l.initialized&&r!==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)!==r))return!1;r!==(a||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(v);let y;if(r>g?y="next":r<g?y="prev":y="reset",A&&-v===l.translate||!A&&v===l.translate)return l.updateActiveIndex(r),u.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),u.effect!=="slide"&&l.setTranslate(v),y!=="reset"&&(l.transitionStart(i,y),l.transitionEnd(i,y)),!1;if(u.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 ro({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(r),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 us(t,e,i,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const l=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(l){const A=r*s.params.grid.rows;u=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else u=s.getSlideIndexByData(r);const d=l?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let a=s.params.slidesPerView;a==="auto"?a=s.slidesPerViewDynamic():(a=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&a%2===0&&(a=a+1));let g=d-u<a;if(c&&(g=g||u<Math.ceil(a/2)),o&&c&&s.params.slidesPerView!=="auto"&&!l&&(g=!1),g){const A=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:A,slideTo:!0,activeSlideIndex:A==="next"?u+1:u-d+1,slideRealIndex:A==="next"?s.realIndex:void 0})}if(l){const A=r*s.params.grid.rows;r=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===A)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,o)}),s}function cs(t,e,i){e===void 0&&(e=!0);const o=this,{enabled:s,params:l,animating:r}=o;if(!s||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);let u=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(u=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex<l.slidesPerGroupSkip?1:u,c=o.virtual&&l.virtual.enabled;if(l.loop){if(r&&!c&&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+d,t,e,i)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,t,e,i):o.slideTo(o.activeIndex+d,t,e,i)}function vs(t,e,i){e===void 0&&(e=!0);const o=this,{params:s,snapGrid:l,slidesGrid:r,rtlTranslate:u,enabled:d,animating:c}=o;if(!d||o.destroyed)return o;typeof t>"u"&&(t=o.params.speed);const a=o.virtual&&s.virtual.enabled;if(s.loop){if(c&&!a&&s.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const g=u?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"&&s.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=r.indexOf(f),S<0&&(S=o.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-o.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.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(s.loop&&o.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{o.slideTo(S,t,e,i)}),!0;return o.slideTo(S,t,e,i)}function ps(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 ms(t,e,i,o){e===void 0&&(e=!0),o===void 0&&(o=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let l=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,l),u=r+Math.floor((l-r)/s.params.slidesPerGroup),d=s.rtlTranslate?s.translate:-s.translate;if(d>=s.snapGrid[u]){const c=s.snapGrid[u],a=s.snapGrid[u+1];d-c>(a-c)*o&&(l+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],a=s.snapGrid[u];d-c<=(a-c)*o&&(l-=s.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,s.slidesGrid.length-1),s.slideTo(l,t,e,i)}function fs(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,o=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,l;const r=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?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=t.getSlideIndex(ti(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),gi(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=t.getSlideIndex(ti(i,`${r}[data-swiper-slide-index="${l}"]`)[0]),gi(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var hs={slideTo:as,slideToLoop:us,slideNext:cs,slidePrev:vs,slideReset:ps,slideToClosest:ms,slideToClickedSlide:fs};function As(t){const e=this,{params:i,slidesEl:o}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{ti(o,`.${i.slideClass}, swiper-slide`).forEach((g,A)=>{g.setAttribute("data-swiper-slide-index",A)})},l=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(l?i.grid.rows:1),u=e.slides.length%r!==0,d=l&&e.slides.length%i.grid.rows!==0,c=a=>{for(let g=0;g<a;g+=1){const A=e.isElement?yi("swiper-slide",[i.slideBlankClass]):yi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(A)}};if(u){if(i.loopAddBlankSlides){const a=r-e.slides.length%r;c(a),e.recalcSlides(),e.updateSlides()}else qi("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)");s()}else if(d){if(i.loopAddBlankSlides){const a=i.grid.rows-e.slides.length%i.grid.rows;c(a),e.recalcSlides(),e.updateSlides()}else qi("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)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function bs(t){let{slideRealIndex:e,slideTo:i=!0,direction:o,setTranslate:s,activeSlideIndex:l,byController:r,byMousewheel:u}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:a,allowSlideNext:g,slidesEl:A,params:p}=d,{centeredSlides:m}=p;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&p.virtual.enabled){i&&(!p.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):p.centeredSlides&&d.snapIndex<p.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=a,d.allowSlideNext=g,d.emit("loopFix");return}let f=p.slidesPerView;f==="auto"?f=d.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,d.loopedSlides=v;const y=d.grid&&p.grid&&p.grid.rows>1;c.length<f+v?qi("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"&&qi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let E=d.activeIndex;typeof l>"u"?l=d.getSlideIndex(c.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(c.length/p.grid.rows):c.length,C=(y?c[l].column:l)+(m&&typeof s>"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 _=c.length-1;_>=0;_-=1)c[_].column===h&&b.push(_)}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?c.forEach((h,_)=>{h.column===O&&w.push(_)}):w.push(O)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),M&&b.forEach(j=>{c[j].swiperLoopMoveDOM=!0,A.prepend(c[j]),c[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{c[j].swiperLoopMoveDOM=!0,A.append(c[j]),c[j].swiperLoopMoveDOM=!1}),d.recalcSlides(),p.slidesPerView==="auto"?d.updateSlides():y&&(b.length>0&&M||w.length>0&&k)&&d.slides.forEach((j,O)=>{d.grid.updateSlide(O,j,d.slides)}),p.watchSlidesProgress&&d.updateSlidesOffset(),i){if(b.length>0&&M){if(typeof e>"u"){const j=d.slidesGrid[E],h=d.slidesGrid[E+D]-j;u?d.setTranslate(d.translate-h):(d.slideTo(E+Math.ceil(D),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-h,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-h))}else if(s){const j=y?b.length/p.grid.rows:b.length;d.slideTo(d.activeIndex+j,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(w.length>0&&k)if(typeof e>"u"){const j=d.slidesGrid[E],h=d.slidesGrid[E-x]-j;u?d.setTranslate(d.translate-h):(d.slideTo(E-x,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-h,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-h))}else{const j=y?w.length/p.grid.rows:w.length;d.slideTo(d.activeIndex-j,0,!1,!0)}}if(d.allowSlidePrev=a,d.allowSlideNext=g,d.controller&&d.controller.control&&!r){const j={slideRealIndex:e,direction:o,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...j,slideTo:O.params.slidesPerView===p.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...j,slideTo:d.controller.control.params.slidesPerView===p.slidesPerView?i:!1})}d.emit("loopFix")}function gs(){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(s=>{const l=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;o[l]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),o.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ys={loopCreate:As,loopFix:bs,loopDestroy:gs};function ws(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 Ss(){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 xs={setGrabCursor:ws,unsetGrabCursor:Ss};function Ts(t,e){e===void 0&&(e=this);function i(o){if(!o||o===zt()||o===Bt())return null;o.assignedSlot&&(o=o.assignedSlot);const s=o.closest(t);return!s&&!o.getRootNode?null:s||i(o.getRootNode().host)}return i(e)}function mo(t,e,i){const o=Bt(),{params:s}=t,l=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return l&&(i<=r||i>=o.innerWidth-r)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Es(t){const e=this,i=zt();let o=t;o.originalEvent&&(o=o.originalEvent);const s=e.touchEventsData;if(o.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==o.pointerId)return;s.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(s.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){mo(e,o,o.targetTouches[0].pageX);return}const{params:l,touches:r,enabled:u}=e;if(!u||!l.simulateTouch&&o.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let d=o.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in o&&o.which===3||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",a=o.composedPath?o.composedPath():o.path;c&&o.target&&o.target.shadowRoot&&a&&(d=a[0]);const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,A=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(A?Ts(g,d):d.closest(g))){e.allowClick=!0;return}if(l.swipeHandler&&!d.closest(l.swipeHandler))return;r.currentX=o.pageX,r.currentY=o.pageY;const p=r.currentX,m=r.currentY;if(!mo(e,o,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=m,s.touchStartTime=Jt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(s.allowThresholdMove=!1);let f=!0;d.matches(s.focusableElements)&&(f=!1,d.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==d&&i.activeElement.blur();const S=f&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!d.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",o)}function ks(t){const e=zt(),i=this,o=i.touchEventsData,{params:s,touches:l,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let d=t;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(o.touchId!==null||d.pointerId!==o.pointerId))return;let c;if(d.type==="touchmove"){if(c=[...d.changedTouches].filter(k=>k.identifier===o.touchId)[0],!c||c.identifier!==o.touchId)return}else c=d;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",d);return}const a=c.pageX,g=c.pageY;if(d.preventedByNestedSwiper){l.startX=a,l.startY=g;return}if(!i.allowTouchMove){d.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:a,startY:g,currentX:a,currentY:g}),o.touchStartTime=Jt());return}if(s.touchReleaseOnEdges&&!s.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(a<l.startX&&i.translate<=i.maxTranslate()||a>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",d),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=a,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>s.touchAngle:90-k>s.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(o.startMoving=!0),o.isScrolling||d.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let m=i.isHorizontal()?A:p,f=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;s.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),l.diff=m,m*=s.touchRatio,r&&(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&&!s.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,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}let b;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&S!==i.touchesDirection&&v&&y&&Math.abs(m)>=1){Object.assign(l,{startX:a,startY:g,currentX:a,currentY:g,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let w=!0,E=s.resistanceRatio;if(s.touchReleaseOnEdges&&(E=0),m>0?(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+m)**E))):m<0&&(v&&y&&!b&&o.allowThresholdMove&&o.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,s.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-m)**E))),w&&(d.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),s.threshold>0)if(Math.abs(m)>s.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}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function Is(t){const e=this,i=e.touchEventsData;let o=t;o.originalEvent&&(o=o.originalEvent);let s;if(o.type==="touchend"||o.type==="touchcancel"){if(s=[...o.changedTouches].filter(E=>E.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||o.pointerId!==i.pointerId)return;s=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:r,touches:u,rtlTranslate:d,slidesGrid:c,enabled:a}=e;if(!a||!r.simulateTouch&&o.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=Jt(),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=Jt(),gi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.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(r.followFinger?p=d?e.translate:-e.translate:p=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.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<c.length;E+=E<r.slidesPerGroupSkip?1:r.slidesPerGroup){const k=E<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[E+k]<"u"?(m||p>=c[E]&&p<c[E+k])&&(f=E,S=c[E+k]-c[E]):(m||p>=c[E])&&(f=E,S=c[c.length-1]-c[c.length-2])}let v=null,y=null;r.rewind&&(e.isBeginning?y=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const b=(p-c[f])/S,w=f<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(A>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:f+w):e.slideTo(f)),e.swipeDirection==="prev"&&(b>1-r.longSwipesRatio?e.slideTo(f+w):y!==null&&b<0&&Math.abs(b)>r.longSwipesRatio?e.slideTo(y):e.slideTo(f))}else{if(!r.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 fo(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:s,snapGrid:l}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?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=s,t.allowSlideNext=o,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Cs(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ps(){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 s;const l=t.maxTranslate()-t.minTranslate();l===0?s=0:s=(t.translate-t.minTranslate())/l,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Os(t){const e=this;Gi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function js(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ho=(t,e)=>{const i=zt(),{params:o,el:s,wrapperEl:l,device:r}=t,u=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[d]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[d]("touchstart",t.onTouchStart,{passive:!1}),s[d]("pointerdown",t.onTouchStart,{passive:!1}),i[d]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[d]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[d]("touchend",t.onTouchEnd,{passive:!0}),i[d]("pointerup",t.onTouchEnd,{passive:!0}),i[d]("pointercancel",t.onTouchEnd,{passive:!0}),i[d]("touchcancel",t.onTouchEnd,{passive:!0}),i[d]("pointerout",t.onTouchEnd,{passive:!0}),i[d]("pointerleave",t.onTouchEnd,{passive:!0}),i[d]("contextmenu",t.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&s[d]("click",t.onClick,!0),o.cssMode&&l[d]("scroll",t.onScroll),o.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",fo,!0):t[c]("observerUpdate",fo,!0),s[d]("load",t.onLoad,{capture:!0}))};function Ls(){const t=this,{params:e}=t;t.onTouchStart=Es.bind(t),t.onTouchMove=ks.bind(t),t.onTouchEnd=Is.bind(t),t.onDocumentTouchStart=js.bind(t),e.cssMode&&(t.onScroll=Ps.bind(t)),t.onClick=Cs.bind(t),t.onLoad=Os.bind(t),ho(t,"on")}function Ms(){ho(this,"off")}var Ns={attachEvents:Ls,detachEvents:Ms};const Ao=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ds(){const t=this,{realIndex:e,initialized:i,params:o,el:s}=t,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const r=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const d=(r in l?l[r]:void 0)||t.originalParams,c=Ao(t,o),a=Ao(t,d),g=t.params.grabCursor,A=d.grabCursor,p=o.enabled;c&&!a?(s.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&a&&(s.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&s.classList.add(`${o.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!A?t.unsetGrabCursor():!g&&A&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(b=>{if(typeof d[b]>"u")return;const w=o[b]&&o[b].enabled,E=d[b]&&d[b].enabled;w&&!E&&t[b].disable(),!w&&E&&t[b].enable()});const m=d.direction&&d.direction!==o.direction,f=o.loop&&(d.slidesPerView!==o.slidesPerView||m),S=o.loop;m&&i&&t.changeDirection(),qt(t.params,d);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=r,t.emit("_beforeBreakpoint",d),i&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&y?(t.loopCreate(e),t.updateSlides()):S&&!y&&t.loopDestroy()),t.emit("breakpoint",d)}function Vs(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let o=!1;const s=Bt(),l=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const d=parseFloat(u.substr(1));return{value:l*d,point:u}}return{value:u,point:u}});r.sort((u,d)=>parseInt(u.value,10)-parseInt(d.value,10));for(let u=0;u<r.length;u+=1){const{point:d,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(o=d):c<=i.clientWidth&&(o=d)}return o||"max"}var Bs={setBreakpoint:Ds,getBreakpoint:Vs};function Fs(t,e){const i=[];return t.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(s=>{o[s]&&i.push(e+s)}):typeof o=="string"&&i.push(e+o)}),i}function Ws(){const t=this,{classNames:e,params:i,rtl:o,el:s,device:l}=t,r=Fs(["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(...r),s.classList.add(...e),t.emitContainerClasses()}function _s(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Hs={addClasses:Ws,removeClasses:_s};function zs(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:o}=i;if(o){const s=t.slides.length-1,l=t.slidesGrid[s]+t.slidesSizesGrid[s]+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 Us={checkOverflow:zs},yn={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 Xs(t,e){return function(o){o===void 0&&(o={});const s=Object.keys(o)[0],l=o[s];if(typeof l!="object"||l===null){qt(e,o);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in l)){qt(e,o);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),qt(e,o)}}const wn={eventsEmitter:Hl,update:Rl,translate:os,transition:ds,slide:hs,loop:ys,grabCursor:xs,events:Ns,breakpoints:Bs,checkOverflow:Us,classes:Hs},Sn={};let xn=class ai{constructor(){let e,i;for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=qt({},i),e&&!i.el&&(i.el=e);const r=zt();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const a=[];return r.querySelectorAll(i.el).forEach(g=>{const A=qt({},i,{el:g});a.push(new ai(A))}),a}const u=this;u.__swiper__=!0,u.support=uo(),u.device=co({userAgent:i.userAgent}),u.browser=Fl(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const d={};u.modules.forEach(a=>{a({params:i,swiper:u,extendParams:Xs(i,d),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=qt({},yn,d);return u.params=qt({},c,Sn,i),u.originalParams=qt({},u.params),u.passedParams=qt({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(a=>{u.on(a,u.params.on[a])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.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:u.params.allowSlideNext,allowSlidePrev:u.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:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}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,s=ti(i,`.${o.slideClass}, swiper-slide`),l=Ii(s[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=ti(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 s=o.minTranslate(),r=(o.maxTranslate()-s)*e+s;o.translateTo(r,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 s=e.getSlideClasses(o);i.push({slideEl:o,classNames:s}),e.emit("_slideClass",o,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const o=this,{params:s,slides:l,slidesGrid:r,slidesSizesGrid:u,size:d,activeIndex:c}=o;let a=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let g=l[c]?Math.ceil(l[c].swiperSlideSize):0,A;for(let p=c+1;p<l.length;p+=1)l[p]&&!A&&(g+=Math.ceil(l[p].swiperSlideSize),a+=1,g>d&&(A=!0));for(let p=c-1;p>=0;p-=1)l[p]&&!A&&(g+=l[p].swiperSlideSize,a+=1,g>d&&(A=!0))}else if(e==="current")for(let g=c+1;g<l.length;g+=1)(i?r[g]+u[g]-r[c]<d:r[g]-r[c]<d)&&(a+=1);else for(let g=c-1;g>=0;g-=1)r[c]-r[g]<d&&(a+=1);return a}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(r=>{r.complete&&Gi(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)s(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const r=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(r.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||s()}o.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const o=this,s=o.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${s}`),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 s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(s()):ti(o,s())[0];return!r&&i.params.createElements&&(r=yi("div",i.params.wrapperClass),o.append(r),ti(o,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:o,wrapperEl:r,slidesEl:i.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:r,hostEl:i.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||vi(o,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||vi(o,"direction")==="rtl"),wrongRTL:vi(r,"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 s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(l=>{l.complete?Gi(i,l):l.addEventListener("load",r=>{Gi(i,r.target)})}),gn(i),i.initialized=!0,gn(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:s,el:l,wrapperEl:r,slides:u}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),s.loop&&o.loopDestroy(),i&&(o.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(d=>{d.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),Pl(o)),o.destroyed=!0),null}static extendDefaults(e){qt(Sn,e)}static get extendedDefaults(){return Sn}static get defaults(){return yn}static installModule(e){ai.prototype.__modules__||(ai.prototype.__modules__=[]);const i=ai.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>ai.installModule(i)),ai):(ai.installModule(e),ai)}};Object.keys(wn).forEach(t=>{Object.keys(wn[t]).forEach(e=>{xn.prototype[e]=wn[t][e]})}),xn.use([Wl,_l]);const bo=["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 hi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wi(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]:hi(e[o])&&hi(t[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?t[o]=e[o]:wi(t[o],e[o]):t[o]=e[o]})}function go(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function yo(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function wo(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function So(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 qs(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ys(t){let{swiper:e,slides:i,passedParams:o,changedParams:s,nextEl:l,prevEl:r,scrollbarEl:u,paginationEl:d}=t;const c=s.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:a,pagination:g,navigation:A,scrollbar:p,virtual:m,thumbs:f}=e;let S,v,y,b,w,E,k,M;s.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&a.thumbs&&!a.thumbs.swiper&&(S=!0),s.includes("controller")&&o.controller&&o.controller.control&&a.controller&&!a.controller.control&&(v=!0),s.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(a.pagination||a.pagination===!1)&&g&&!g.el&&(y=!0),s.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||u)&&(a.scrollbar||a.scrollbar===!1)&&p&&!p.el&&(b=!0),s.includes("navigation")&&o.navigation&&(o.navigation.prevEl||r)&&(o.navigation.nextEl||l)&&(a.navigation||a.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()),a[x].prevEl=void 0,a[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),a[x].el=void 0,e[x].el=void 0))};s.includes("loop")&&e.isElement&&(a.loop&&!o.loop?E=!0:!a.loop&&o.loop?k=!0:M=!0),c.forEach(x=>{if(hi(a[x])&&hi(o[x]))Object.assign(a[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):a[x]=o[x]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&a.controller&&a.controller.control&&(e.controller.control=a.controller.control),s.includes("children")&&i&&m&&a.virtual.enabled?(m.slides=i,m.update(!0)):s.includes("virtual")&&m&&a.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),s.includes("children")&&i&&a.loop&&(M=!0),S&&f.init()&&f.update(!0),v&&(e.controller.control=a.controller.control),y&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(a.pagination.el=d),g.init(),g.render(),g.update()),b&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(a.scrollbar.el=u),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)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),l&&(a.navigation.nextEl=l),r&&(a.navigation.prevEl=r),A.init(),A.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),s.includes("direction")&&e.changeDirection(o.direction,!1),(E||M)&&e.loopDestroy(),(k||M)&&e.loopCreate(),e.update()}function Gs(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},o={},s={};wi(i,yn),i._emitClasses=!0,i.init=!1;const l={},r=bo.map(d=>d.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(d=>{typeof t[d]>"u"||(r.indexOf(d)>=0?hi(t[d])?(i[d]={},s[d]={},wi(i[d],t[d]),wi(s[d],t[d])):(i[d]=t[d],s[d]=t[d]):d.search(/on[A-Z]/)===0&&typeof t[d]=="function"?e?o[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:i.on[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:l[d]=t[d])}),["navigation","pagination","scrollbar"].forEach(d=>{i[d]===!0&&(i[d]={}),i[d]===!1&&delete i[d]}),{params:i,passedParams:s,rest:l,events:o}}function Zs(t,e){let{el:i,nextEl:o,prevEl:s,paginationEl:l,scrollbarEl:r,swiper:u}=t;go(e)&&o&&s&&(u.params.navigation.nextEl=o,u.originalParams.navigation.nextEl=o,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),yo(e)&&l&&(u.params.pagination.el=l,u.originalParams.pagination.el=l),wo(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Ks(t,e,i,o,s){const l=[];if(!e)return l;const r=d=>{l.indexOf(d)<0&&l.push(d)};if(i&&o){const d=o.map(s),c=i.map(s);d.join("")!==c.join("")&&r("children"),o.length!==i.length&&r("children")}return bo.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in t&&d in e)if(hi(t[d])&&hi(e[d])){const c=Object.keys(t[d]),a=Object.keys(e[d]);c.length!==a.length?r(d):(c.forEach(g=>{t[d][g]!==e[d][g]&&r(d)}),a.forEach(g=>{t[d][g]!==e[d][g]&&r(d)}))}else t[d]!==e[d]&&r(d)}),l}const Js=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 Zi(){return Zi=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},Zi.apply(this,arguments)}function xo(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function To(t){const e=[];return n.Children.toArray(t).forEach(i=>{xo(i)?e.push(i):i.props&&i.props.children&&To(i.props.children).forEach(o=>e.push(o))}),e}function Qs(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(t).forEach(o=>{if(xo(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 s=To(o.props.children);s.length>0?s.forEach(l=>e.push(l)):i["container-end"].push(o)}else i["container-end"].push(o)}),{slides:e,slots:i}}function Rs(t,e,i){if(!i)return null;const o=a=>{let g=a;return a<0?g=e.length+a:g>=e.length&&(g=g-e.length),g},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:r}=i,u=t.params.loop?-e.length:0,d=t.params.loop?e.length*2:e.length,c=[];for(let a=u;a<d;a+=1)a>=l&&a<=r&&c.push(e[o(a)]);return c.map((a,g)=>n.cloneElement(a,{swiper:t,style:s,key:a.props.virtualIndex||a.key||`slide-${g}`}))}function Ci(t,e){return typeof window>"u"?n.useEffect(t,e):n.useLayoutEffect(t,e)}const Tn=n.createContext(null),Pi=()=>n.useContext(Tn),$s=n.createContext(null),li=n.forwardRef(function(t,e){let{className:i,tag:o="div",wrapperTag:s="div",children:l,onSwiper:r,...u}=t===void 0?{}:t,d=!1;const[c,a]=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:B}=Gs(u),{slides:C,slots:j}=Qs(l),O=()=>{m(!p)};Object.assign(D.on,{_containerClasses(I,L){a(L)}});const h=()=>{Object.assign(D.on,B),d=!0;const I={...D};if(delete I.wrapperClass,v.current=new xn(I),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const L={cache:!1,slides:C,renderExternal:A,renderExternalUpdate:!1};wi(v.current.params.virtual,L),wi(v.current.originalParams.virtual,L)}};S.current||h(),v.current&&v.current.on("_beforeBreakpoint",O);const _=()=>{d||!B||!v.current||Object.keys(B).forEach(I=>{v.current.on(I,B[I])})},V=()=>{!B||!v.current||Object.keys(B).forEach(I=>{v.current.off(I,B[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(),Zs({el:S.current,nextEl:w.current,prevEl:E.current,paginationEl:k.current,scrollbarEl:M.current,swiper:v.current},D),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ci(()=>{_();const I=Ks(x,y.current,C,b.current,L=>L.key);return y.current=x,b.current=C,I.length&&v.current&&!v.current.destroyed&&Ys({swiper:v.current,slides:C,passedParams:x,changedParams:I,nextEl:w.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:k.current}),()=>{V()}}),Ci(()=>{Js(v.current)},[g]);function F(){return D.virtual?Rs(v.current,C,g):C.map((I,L)=>n.cloneElement(I,{swiper:v.current,swiperSlideIndex:L}))}return n.createElement(o,Zi({ref:S,className:So(`${c}${i?` ${i}`:""}`)},T),n.createElement($s.Provider,{value:v.current},j["container-start"],n.createElement(s,{className:qs(D.wrapperClass)},j["wrapper-start"],F(),j["wrapper-end"]),go(D)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:"swiper-button-prev"}),n.createElement("div",{ref:w,className:"swiper-button-next"})),wo(D)&&n.createElement("div",{ref:M,className:"swiper-scrollbar"}),yo(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:s="",swiper:l,zoom:r,lazy:u,virtualIndex:d,swiperSlideIndex:c,...a}=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 c<"u"&&(g.current.swiperSlideIndex=c),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,Zi({ref:g,className:So(`${A}${s?` ${s}`:""}`),"data-swiper-slide-index":d,onLoad:b},a),r&&n.createElement(Tn.Provider,{value:v},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},y(),u&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&n.createElement(Tn.Provider,{value:v},y(),u&&!m&&n.createElement("div",{className:"swiper-lazy-preloader"})))});Yt.displayName="SwiperSlide";function En(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=zt(),r=Bt();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(a){if(!e.enabled)return;const{rtlTranslate:g}=e;let A=a;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(Yi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Yi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,M=k.clientWidth,D=k.clientHeight,x=r.innerWidth,T=r.innerHeight,B=ao(k);g&&(B.left-=k.scrollLeft);const C=[[B.left,B.top],[B.left+M,B.top],[B.left,B.top+D],[B.left+M,B.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()),s("keyPress",p)}}function d(){e.keyboard.enabled||(l.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",u),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&d()}),o("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:d,disable:c})}function Ki(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=Bt();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 r,u=Jt(),d;const c=[];function a(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&&Jt()-u<e.params.mousewheel.thresholdTime?!1:b.delta>=6&&Jt()-u<60?!0:(b.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",b.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",b.raw)),u=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,B=a(w);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(B.pixelX)>Math.abs(B.pixelY))x=-B.pixelX*T;else return!0;else if(Math.abs(B.pixelY)>Math.abs(B.pixelX))x=-B.pixelY;else return!0;else x=Math.abs(B.pixelX)>Math.abs(B.pixelY)?-B.pixelX*T:-B.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:Jt(),delta:Math.abs(x),direction:Math.sign(x),raw:b};c.length>=2&&c.shift();const O=c.length?c[c.length-1]:void 0;if(c.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:Jt(),delta:Math.abs(x),direction:Math.sign(x)},O=d&&j.time<d.time+500&&j.delta<=d.delta&&j.direction===d.direction;if(!O){d=void 0;let h=e.getTranslate()+x*k.sensitivity;const _=e.isBeginning,V=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(),(!_&&e.isBeginning||!V&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:j.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const F=c.length?c[c.length-1]:void 0,I=c[0];if(c.push(j),F&&(j.delta>F.delta||j.direction!==F.direction))c.splice(0);else if(c.length>=15&&j.time-I.time<500&&I.delta-j.delta>=1&&j.delta<=6){const L=x>0?.8:.2;d=j,c.splice(0),r=gi(()=>{e.slideToClosest(e.params.speed,!0,void 0,L)},0)}r||(r=gi(()=>{d=j,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||s("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 kn(t,e,i,o){return t.params.createElements&&Object.keys(o).forEach(s=>{if(!i[s]&&i.auto===!0){let l=ti(t.el,`.${o[s]}`)[0];l||(l=yi("div",o[s]),l.className=o[s],t.el.append(l)),i[s]=l,e[s]=l}}),i}function In(t){let{swiper:e,extendParams:i,on:o,emit:s}=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 r(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 u(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){r(f,!1),r(m,!1);return}r(f,e.isBeginning&&!e.params.rewind),r(m,e.isEnd&&!e.params.rewind)}function d(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function a(){const m=e.params.navigation;if(e.params.navigation=kn(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"?c:d),!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"?c:d),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():(a(),u())}),o("toEdge fromEdge lock unlock",()=>{u()}),o("destroy",()=>{g()}),o("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;if(m=Je(m),f=Je(f),e.enabled){u();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)),s(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(" ")),a(),u()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:A,disable:p,update:u,init:a,destroy:g})}function si(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Oi(t){let{swiper:e,extendParams:i,on:o,emit:s}=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 r,u=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(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 a(v){const y=v.target.closest(si(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(d())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,B;if(y.dynamicBullets&&(r=pn(D[0],e.isHorizontal()?"width":"height",!0),b.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${r*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&E!==void 0&&(u+=w-(E||0),u>y.dynamicMainBullets-1?u=y.dynamicMainBullets-1:u<0&&(u=0)),x=Math.max(w-u,0),T=x+(Math.min(D.length,y.dynamicMainBullets)-1),B=(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&&c(C,"prev"),j===T&&c(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(" "));c(j,"prev"),c(O,"next")}}if(y.dynamicBullets){const C=Math.min(D.length,y.dynamicMainBullets+4),j=(r*C-r)/2-B*r,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(si(y.currentClass)).forEach(T=>{T.textContent=y.formatFractionCurrent(w+1)}),D.querySelectorAll(si(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 B=(w+1)/M;let C=1,j=1;T==="horizontal"?C=B:j=B,D.querySelectorAll(si(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&&s("paginationRender",D)):(x===0&&s("paginationRender",D),s("paginationUpdate",D)),e.params.watchOverflow&&e.enabled&&D.classList[e.isLocked?"add":"remove"](y.lockClass)})}function A(){const v=e.params.pagination;if(d())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(si(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",b[0])}function p(){e.params.pagination=kn(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=>Yi(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`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&b.classList.add(v.progressbarOppositeClass),v.clickable&&b.addEventListener("click",a),e.enabled||b.classList.add(v.lockClass)}))}function m(){const v=e.params.pagination;if(d())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",a))})),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);s(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 er(t){let{swiper:e,extendParams:i,on:o,emit:s}=t;const l=zt();let r=!1,u=null,d=null,c,a,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,_=e.params.scrollbar,V=e.params.loop?e.progressLoop:e.progress;let F=a,I=(g-a)*V;j?(I=-I,I>0?(F=a-I,I=0):-I+a>g&&(F=g+I)):I<0?(F=a+I,I=0):I+a>g&&(F=g-I),e.isHorizontal()?(O.style.transform=`translate3d(${I}px, 0, 0)`,O.style.width=`${F}px`):(O.style.transform=`translate3d(0px, ${I}px, 0)`,O.style.height=`${F}px`),_.hide&&(clearTimeout(u),h.style.opacity=1,u=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"?a=g*A:a=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?j.style.width=`${a}px`:j.style.height=`${a}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 _;_=(S(C)-ao(h)[e.isHorizontal()?"left":"top"]-(c!==null?c:a/2))/(g-a),_=Math.max(Math.min(_,1),0),O&&(_=1-_);const V=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*_;e.updateProgress(V),e.setTranslate(V),e.updateActiveIndex(),e.updateSlidesClasses()}function y(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:_,dragEl:V}=O;r=!0,c=C.target===V?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),h.style.transitionDuration="100ms",V.style.transitionDuration="100ms",v(C),clearTimeout(d),_.style.transitionDuration="0ms",j.hide&&(_.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",C)}function b(C){const{scrollbar:j,wrapperEl:O}=e,{el:h,dragEl:_}=j;r&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),O.style.transitionDuration="0ms",h.style.transitionDuration="0ms",_.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function w(C){const j=e.params.scrollbar,{scrollbar:O,wrapperEl:h}=e,{el:_}=O;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",h.style.transitionDuration=""),j.hide&&(clearTimeout(d),d=gi(()=>{_.style.opacity=0,_.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),j.snapOnRelease&&e.slideToClosest())}function E(C){const{scrollbar:j,params:O}=e,h=j.el;if(!h)return;const _=h,V=O.passiveListeners?{passive:!1,capture:!1}:!1,F=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!_)return;const I=C==="on"?"addEventListener":"removeEventListener";_[I]("pointerdown",y,V),l[I]("pointermove",b,V),l[I]("pointerup",w,F)}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=kn(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 _;h&&(_=h.querySelector(si(e.params.scrollbar.dragClass)),_||(_=yi("div",e.params.scrollbar.dragClass),h.append(_))),Object.assign(C,{el:h,dragEl:_}),O.draggable&&k(),h&&h.classList[e.enabled?"remove":"add"](...ci(e.params.scrollbar.lockClass))}function x(){const C=e.params.scrollbar,j=e.scrollbar.el;j&&j.classList.remove(...ci(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?B():(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"](...ci(e.params.scrollbar.lockClass))}),o("destroy",()=>{x()});const T=()=>{e.el.classList.remove(...ci(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ci(e.params.scrollbar.scrollbarDisabledClass)),D(),f(),p()},B=()=>{e.el.classList.add(...ci(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ci(e.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(e.scrollbar,{enable:T,disable:B,updateSize:f,setTranslate:p,init:D,destroy:x})}function Cn(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 s=null,l,r,u=new Date().getTime();function d(V){const F=s;F.length!==0&&(F.innerHTML="",F.innerHTML=V)}function c(V){V===void 0&&(V=16);const F=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(V).replace(/x/g,F)}function a(V){V=Je(V),V.forEach(F=>{F.setAttribute("tabIndex","0")})}function g(V){V=Je(V),V.forEach(F=>{F.setAttribute("tabIndex","-1")})}function A(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("role",F)})}function p(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-roledescription",F)})}function m(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-controls",F)})}function f(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-label",F)})}function S(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("id",F)})}function v(V,F){V=Je(V),V.forEach(I=>{I.setAttribute("aria-live",F)})}function y(V){V=Je(V),V.forEach(F=>{F.setAttribute("aria-disabled",!0)})}function b(V){V=Je(V),V.forEach(F=>{F.setAttribute("aria-disabled",!1)})}function w(V){if(V.keyCode!==13&&V.keyCode!==32)return;const F=e.params.a11y,I=V.target;if(!(e.pagination&&e.pagination.el&&(I===e.pagination.el||e.pagination.el.contains(V.target))&&!V.target.matches(si(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?d(F.lastSlideMessage):d(F.nextSlideMessage)),L.includes(I)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?d(F.firstSlideMessage):d(F.prevSlideMessage))}e.pagination&&I.matches(si(e.params.pagination.bulletClass))&&I.click()}}function E(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:V,prevEl:F}=e.navigation;F&&(e.isBeginning?(y(F),g(F)):(b(F),a(F))),V&&(e.isEnd?(y(V),g(V)):(b(V),a(V)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return k()&&e.params.pagination.clickable}function D(){const V=e.params.a11y;k()&&e.pagination.bullets.forEach(F=>{e.params.pagination.clickable&&(a(F),e.params.pagination.renderBullet||(A(F,"button"),f(F,V.paginationBulletMessage.replace(/\{\{index\}\}/,Ii(F)+1)))),F.matches(si(e.params.pagination.bulletActiveClass))?F.setAttribute("aria-current","true"):F.removeAttribute("aria-current")})}const x=(V,F,I)=>{a(V),V.tagName!=="BUTTON"&&(A(V,"button"),V.addEventListener("keydown",w)),f(V,I),m(V,F)},T=V=>{r&&r!==V.target&&!r.contains(V.target)&&(l=!0),e.a11y.clicked=!0},B=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=V=>{u=new Date().getTime()},j=V=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const F=V.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!F||!e.slides.includes(F))return;r=F;const I=e.slides.indexOf(F)===e.activeIndex,L=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(F);I||L||V.sourceCapabilities&&V.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(F.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(F),0),l=!1)}))},O=()=>{const V=e.params.a11y;V.itemRoleDescriptionMessage&&p(e.slides,V.itemRoleDescriptionMessage),V.slideRole&&A(e.slides,V.slideRole);const F=e.slides.length;V.slideLabelMessage&&e.slides.forEach((I,L)=>{const P=e.params.loop?parseInt(I.getAttribute("data-swiper-slide-index"),10):L,Y=V.slideLabelMessage.replace(/\{\{index\}\}/,P+1).replace(/\{\{slidesLength\}\}/,F);f(I,Y)})},h=()=>{const V=e.params.a11y;e.el.append(s);const F=e.el;V.containerRoleDescriptionMessage&&p(F,V.containerRoleDescriptionMessage),V.containerMessage&&f(F,V.containerMessage);const I=e.wrapperEl,L=V.id||I.getAttribute("id")||`swiper-wrapper-${c(16)}`,P=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(I,L),v(I,P),O();let{nextEl:Y,prevEl:U}=e.navigation?e.navigation:{};Y=Je(Y),U=Je(U),Y&&Y.forEach(ee=>x(ee,L,V.nextSlideMessage)),U&&U.forEach(ee=>x(ee,L,V.prevSlideMessage)),M()&&Je(e.pagination.el).forEach(de=>{de.addEventListener("keydown",w)}),zt().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",B,!0)};function _(){s&&s.remove();let{nextEl:V,prevEl:F}=e.navigation?e.navigation:{};V=Je(V),F=Je(F),V&&V.forEach(L=>L.removeEventListener("keydown",w)),F&&F.forEach(L=>L.removeEventListener("keydown",w)),M()&&Je(e.pagination.el).forEach(P=>{P.removeEventListener("keydown",w)}),zt().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",B,!0))}o("beforeInit",()=>{s=yi("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.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&&_()})}function ji(t){let{swiper:e,extendParams:i,on:o,emit:s,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 r,u,d=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,a,g=new Date().getTime(),A,p,m,f,S,v,y;function b(F){!e||e.destroyed||!e.wrapperEl||F.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(y||F.detail&&F.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?A=!0:A&&(c=a,A=!1);const F=e.autoplay.paused?a:g+c-new Date().getTime();e.autoplay.timeLeft=F,s("autoplayTimeLeft",F,F/d),u=requestAnimationFrame(()=>{w()})},E=()=>{let F;return e.virtual&&e.params.virtual.enabled?F=e.slides.filter(L=>L.classList.contains("swiper-slide-active"))[0]:F=e.slides[e.activeIndex],F?parseInt(F.getAttribute("data-swiper-autoplay"),10):void 0},k=F=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),w();let I=typeof F>"u"?e.params.autoplay.delay:F;d=e.params.autoplay.delay,c=e.params.autoplay.delay;const L=E();!Number.isNaN(L)&&L>0&&typeof F>"u"&&(I=L,d=L,c=L),a=I;const P=e.params.speed,Y=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(P,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,P,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(P,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,P,!0,!0),s("autoplay")),e.params.cssMode&&(g=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return I>0?(clearTimeout(r),r=setTimeout(()=>{Y()},I)):requestAnimationFrame(()=>{Y()}),I},M=()=>{g=new Date().getTime(),e.autoplay.running=!0,k(),s("autoplayStart")},D=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},x=(F,I)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),F||(v=!0);const L=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):T()};if(e.autoplay.paused=!0,I){S&&(a=e.params.autoplay.delay),S=!1,L();return}a=(a||e.params.autoplay.delay)-(new Date().getTime()-g),!(e.isEnd&&a<0&&!e.params.loop)&&(a<0&&(a=0),L())},T=()=>{e.isEnd&&a<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),v?(v=!1,k(a)):k(),e.autoplay.paused=!1,s("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const F=zt();F.visibilityState==="hidden"&&(v=!0,x(!0)),F.visibilityState==="visible"&&T()},C=F=>{F.pointerType==="mouse"&&(v=!0,y=!0,!(e.animating||e.autoplay.paused)&&x(!0))},j=F=>{F.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))},_=()=>{zt().addEventListener("visibilitychange",B)},V=()=>{zt().removeEventListener("visibilitychange",B)};o("init",()=>{e.params.autoplay.enabled&&(O(),_(),M())}),o("destroy",()=>{h(),V(),e.autoplay.running&&D()}),o("_freeModeStaticRelease",()=>{(m||v)&&T()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?D():x(!0,!0)}),o("beforeTransitionStart",(F,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(r),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 tr(t){let{swiper:e,extendParams:i,emit:o,once:s}=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 d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:d,touches:c}=e;d.velocities.length===0&&d.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Jt()})}function u(d){let{currentPos:c}=d;if(e.params.cssMode)return;const{params:a,wrapperEl:g,rtlTranslate:A,snapGrid:p,touchEventsData:m}=e,S=Jt()-m.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<p.length?e.slideTo(p.length-1):e.slideTo(e.slides.length-1);return}if(a.freeMode.momentum){if(m.velocities.length>1){const D=m.velocities.pop(),x=m.velocities.pop(),T=D.position-x.position,B=D.time-x.time;e.velocity=T/B,e.velocity/=2,Math.abs(e.velocity)<a.freeMode.minimumVelocity&&(e.velocity=0),(B>150||Jt()-D.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=a.freeMode.momentumVelocityRatio,m.velocities.length=0;let v=1e3*a.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*a.freeMode.momentumBounceRatio;let M;if(b<e.maxTranslate())a.freeMode.momentumBounce?(b+e.maxTranslate()<-k&&(b=e.maxTranslate()-k),E=e.maxTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.maxTranslate(),a.loop&&a.centeredSlides&&(M=!0);else if(b>e.minTranslate())a.freeMode.momentumBounce?(b-e.minTranslate()>k&&(b=e.minTranslate()+k),E=e.minTranslate(),w=!0,m.allowMomentumBounce=!0):b=e.minTranslate(),a.loop&&a.centeredSlides&&(M=!0);else if(a.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&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(A?v=Math.abs((-b-e.translate)/e.velocity):v=Math.abs((b-e.translate)/e.velocity),a.freeMode.sticky){const D=Math.abs((A?-b:b)-e.translate),x=e.slidesSizesGrid[e.activeIndex];D<x?v=a.speed:D<2*x?v=a.speed*1.5:v=a.speed*2.5}}else if(a.freeMode.sticky){e.slideToClosest();return}a.freeMode.momentumBounce&&w?(e.updateProgress(E),e.setTransition(v),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,vn(g,()=>{!e||e.destroyed||!m.allowMomentumBounce||(o("momentumBounce"),e.setTransition(a.speed),setTimeout(()=>{e.setTranslate(E),vn(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,vn(g,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(a.freeMode.sticky){e.slideToClosest();return}else a.freeMode&&o("_freeModeNoMomentumRelease");(!a.freeMode.momentum||S>=a.longSwipesMs)&&(o("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:r,onTouchEnd:u}})}const ir=({children:t,isPadding:e=!0,style:i,enableSlideActive:o=!1})=>{const s=n.useRef(),{popupDetailData:l}=Xe();return n.useEffect(()=>{var r,u;o&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=l?.multiCheckIndex)!==null&&u!==void 0?u:0))},[l,o]),n.createElement(li,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[tr,er,Ki],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Li=n.memo(ir);const nr=n.forwardRef((t,e)=>{const{src:i,onLoad:o,style:s,className:l,loading:r,alt:u="image"}=t,[d,c]=n.useState(i),a=n.useRef(null),[g,A]=n.useState(!1);return n.useImperativeHandle(e,()=>({setSrc:p=>{p&&c(p)}})),n.useEffect(()=>{i&&c(i)},[i]),n.useEffect(()=>{const p=()=>{i&&!g&&a.current&&(a.current.src="",a.current.src=i)};return At.on(at.PAGE_DID_SHOW,p),()=>{At.off(at.PAGE_DID_SHOW,p)}},[i,g]),n.createElement(n.Fragment,null,!g&&!d&&n.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),d?.includes(".avif")?n.createElement("picture",null,n.createElement("source",{type:"image/avif",srcSet:d}),n.createElement("source",{type:"image/webp",srcSet:`${d}?imageMogr2/format/webp`}),n.createElement("source",{type:"image/jpeg",srcSet:`${d}?imageMogr2/format/jpg`}),n.createElement("img",{ref:a,className:l,src:d,style:Object.assign({},s),loading:r,onLoad:p=>{A(!0),o?.(p.target)},alt:u})):n.createElement("img",{ref:a,className:l,src:d,style:Object.assign({},s),loading:r,onLoad:p=>{A(!0),o?.(p.target)},alt:u}))});var Ft=n.memo(nr);const or=({products:t,data:e,defImg:i,style:o,onCLick:s,popupDetailData:l,check:r})=>{var u;const{productView:d}=_t(),{popupCurTimeRef:c}=Xe(),a=(g,A)=>{if(r===A)return;const p=t?.[r];d(l,p,p?.bindCta,c.current,l?.index),s?.(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)},(u=l?t:[0,1,2,3])===null||u===void 0?void 0:u.map((g,A)=>{var p,m,f;return n.createElement(n.Fragment,null,g?.bindCta?n.createElement(Yt,{className:We.css({width:"50px",height:"50px",marginInlineEnd:"10px"}),onClick:()=>{a(g,A)},key:A},n.createElement(Ft,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===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 Eo=n.memo(or);function ko(){const[t,e]=n.useState(0),[i,o]=n.useState(0),s=()=>{if(typeof window>"u")return 0;let r=window.innerHeight;return window.visualViewport&&(r=window.visualViewport.height),(r<=0||r>window.screen.height)&&(r=window.innerHeight),r<=0&&(r=document.documentElement.clientHeight),r},l=n.useCallback(()=>{var r;const u=s(),d=(r=window.screen)===null||r===void 0?void 0:r.height,c=navigator.userAgent,a=/Instagram/i.test(c),g=/FBAV|FBAN|FBSN/i.test(c);if(!d||u<=0||!a&&!g){e(u);return}const A=u/d,p=.9,m=d>=900?d*.8:d*.79,f=A>=p&&A!==1,S=f?Math.round(m):u,v=d-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
|
}
|