pb-sxp-ui 1.15.38 → 1.15.39
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- 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 +4 -2
- 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/components/SxpPageRender/ExpandableText.js +3 -2
- package/lib/core/components/SxpPageRender/ExpandableText.js +3 -2
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{isEmpty as ai,cloneDeep as vi,isEqual as Bn,debounce as wi,throttle as Fn,get as Wn}from"lodash";import{v4 as Xl}from"uuid";import ql from"pako";import v,{useContext as Si,useMemo as me,memo as Me,useEffect as ue,createContext as xi,useState as Z,useRef as de,useCallback as se,forwardRef as si,useImperativeHandle as Ti,useLayoutEffect as Yl}from"react";import zn from"qs";import Gl from"eventemitter3";import{css as Be}from"@emotion/css";import*as Un from"react-dom";import Zl from"react-dom";function at(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function ut(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function d(r){try{c(n.next(r))}catch(h){a(h)}}function s(r){try{c(n.throw(r))}catch(h){a(h)}}function c(r){r.done?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Kl=/:\w+/g;var Hn=(t,e)=>ut(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[o];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Kl,x=>x===y?g:x)}),r&&(m+=r),n[l]=c;try{const y=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Xn="SXP_TOKEN_INFO",_l=(t,e)=>ut(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Xn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Xn,JSON.stringify(d))}}return d});function Bi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const Jl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Ql=()=>{const t=Xl();return t?.replaceAll?t.replaceAll("-",""):Jl(32)},Ve=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"inherit"}`,r=f=>{const m=f.search(a),y=f.search(d);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${s}">${f.substring(m,y)}</span>`,l=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,l=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,l="",!1):!0};let h=!0;for(;h;)h=r(l);return i};function qn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function an(){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 ri(t){if(!t)return;const e=[];for(let o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function Yn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=ql.inflate(n,{to:"string"});return JSON.parse(o)}let sn=null;const $l={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class eo{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?$l[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let kt=null;const to={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{kt||(kt=new eo),n&&kt.setApiUrl(n),kt.setAppId(t),kt.setTenantId(e),kt.setEnv(i)},getDetail:t=>{if(!kt)return;const e=kt.getTenantId(),i=kt.getAppId(),n=kt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ut(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=Yn((l=d?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:c}=yield Hn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>ut(void 0,void 0,void 0,function*(){if(!kt)return;const e=kt.getTenantId(),i=kt.getAppId(),n=kt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ut(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.map(s=>Object.assign(Object.assign({},s),{data:Yn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ut(void 0,void 0,void 0,function*(){if(!kt)return;const e=yield _l(kt,t),i=Bi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");ai(n)&&(n=Bi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=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:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function ei(){return Si(al)}function io(){return Si(ol)}const rn="feRealSessionIdKey",Gn=()=>{const t=Ql();return`${Date.now()}${t}`},no=()=>{let t=lo();return t||(t=Gn(),window.localStorage.setItem(rn,t)),t},dn=()=>{const t=Gn();window.localStorage.setItem(rn,t)},lo=()=>window.localStorage.getItem(rn),Zn="SXP_FAKE_USER_ID",Kn="FAKE_USER_STATE",_n="AGREE_POLICY",Jn="SLIDE_SKIP_STATE",Qn="CCONTSENT_STATE",$n="USER_CONSENT_RESULT",oo=()=>{let t=window.localStorage.getItem(Zn);return ai(t)&&(t=Bi(36,62),window.localStorage.setItem(Zn,t)),t},ao=()=>{const t=window.localStorage.getItem(Kn);return ai(t)&&window.localStorage.setItem(Kn,"true"),ai(t)},so=()=>{const t=window.localStorage.getItem(Jn);return ai(t)},ro=()=>{window.localStorage.setItem(Jn,"true")},co=()=>{const t=window.localStorage.getItem(Qn);return ai(t)&&window.localStorage.setItem(Qn,"true"),ai(t)},el=()=>window.localStorage.getItem($n)==="true",tl=()=>{window.localStorage.setItem($n,"true")};function It(t,e){const{appDomain:i}=He();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const St=new Gl;var ht;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(ht||(ht={}));const uo=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=He(),s=me(()=>{var h;const f=location.search.slice(1),m={};(h=ri(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),c=h=>{var f;return(f=s[h])!==null&&f!==void 0?f:null};ue(()=>{d?.({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 r=()=>{d?.({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}}),a?.(!0),window.localStorage.setItem(_n,"yes")};return v.createElement("div",{className:"consent-bg"},v.createElement("div",{className:"consent"},v.createElement("div",{className:"consent-col"},v.createElement("div",{className:"consent-title"},i??"Privacy Policy"),v.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),v.createElement("div",{className:"consent-col"},v.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),v.createElement("a",{className:"consent-policy",target:"_blank",href:o?`https://${o}`:void 0},l??"More information"))))};var vo=Me(uo);const il=xi({rtcList:[],tagList:[]});var cn;(function(t){t[t.BFF=5]="BFF"})(cn||(cn={}));const Fi="FOR U",po=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var O,S,T,D,I;const[M,u]=Z([]),[B,W]=Z([]),[j,R]=Z(!0),[k,E]=Z({rtc:"",requestId:""}),N=de(null),F=de(!1),[U,G]=Z(()=>!!window.localStorage.getItem(_n)),[$,ae]=Z(),[re,_]=Z(),[Ce,Le]=Z(h),[Ue,ve]=Z([]),[fe,Ke]=Z(0),[qe,Ye]=Z(!1),[Pe,$e]=Z(null),Je=de(),Qe=de(),ct=de(),[Et,Fe]=Z(Fi),pe=de(-1),H=de(null),[K,we]=Z(!1),[Y,Ie]=Z((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[ke,te]=Z(),[z,ze]=Z(!1),[tt,ft]=Z(),[Ge,et]=Z(),[Re,it]=Z([]),[st,At]=Z(),[Vt,Rt]=Z(),xt=me(()=>ke??A,[ke,A]),Ot=de(!1),Lt=me(()=>{var q,X,ce,Ne;return(((Ne=(ce=(X=(q=Y?.consent)===null||q===void 0?void 0:q[0])===null||X===void 0?void 0:X.item)===null||ce===void 0?void 0:ce.props)===null||Ne===void 0?void 0:Ne.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),Ht=se(q=>{V?.(q),et(q)},[]),bt=se(q=>{var X;const ce=q?.recList;return(X=ce?.map(Te=>{var Ee,We,Xe,L,J,Q;if(!((Ee=Te?.video)===null||Ee===void 0)&&Ee.bindProducts&&((Xe=(We=Te?.video)===null||We===void 0?void 0:We.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0){const ie=(Q=(J=(L=Te?.video)===null||L===void 0?void 0:L.bindProducts)===null||J===void 0?void 0:J.filter(oe=>!!oe?.bindCta))!==null&&Q!==void 0?Q:[];return Object.assign(Object.assign({},Te),{video:Object.assign(Object.assign({},Te?.video),{bindProducts:ie})})}return Te}))!==null&&X!==void 0?X:[]},[]);ue(()=>{let q;return Re.length>0&&(q=setInterval(()=>{const ce=new Date,Ne=15*1e3;it(Te=>Te.filter(Ee=>ce-Ee.time<=Ne))},1e3)),()=>{clearInterval(q)}},[Re]),ue(()=>{const q=X=>{Je.current=X};return St.on(ht.CHANGE_THEME_TAG,q),()=>{St.off(ht.CHANGE_THEME_TAG,q)}},[]),ue(()=>{Le(h)},[h]);const he=me(()=>e?.find(q=>q.type===cn.BFF),[e]),Ae=me(()=>{var q;return((q=he?.headers)===null||q===void 0?void 0:q["x-app-id"])+oo()},[he]),Se=se((q,X)=>{var ce;if(!he)return;const Ne=he.url;if(X?.query){const Ee=zn.stringify(X.query);q=`${q}?${Ee}`}const Te=location.search.slice(1);return(ce=ri(Te))===null||ce===void 0||ce.forEach(Ee=>{Ee.split("=")[0],Ee.split("=")[1]}),window.fetch(`${Ne}/api/${q}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ae},he.headers),method:X.method,body:X.type==="beacon"?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),he.headers),{"x-user-id":Ae}))))}):JSON.stringify(X.body)},X.type==="beacon"&&{keepalive:!0})).then(Ee=>Ee.json()).catch(Ee=>Promise.reject(Ee))},[he,Ae]),yt=se((q,X)=>{if(!he)return;const ce=he.url;if(X?.query){const Ne=zn.stringify(X.query);q=`${q}?${Ne}`}return window.fetch(`${ce}/admin/${q}`,{headers:Object.assign({"Content-Type":"application/json"},he.headers),method:X.method,body:JSON.stringify(X.body)}).then(Ne=>Ne.json()).catch(Ne=>Promise.reject(Ne))},[he]),Wt=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te,Ee,We,Xe,L,J,Q,ie,oe,be,le;if(q=Object.assign(Object.assign({maxSize:(X=q?.maxSize)!==null&&X!==void 0?X:o,defaultSize:(ce=q?.defaultSize)!==null&&ce!==void 0?ce:l,hashTag:q?.hashTag,traceInfo:q?.traceInfo,themeTag:q?.themeTag,pageNum:q?.pageNum,contentFilter:q?.contentFilter,productFilter:q?.productFilter},Vt&&{chatlabsId:Vt}),C&&{type:"story"}),Ge)q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(Ge)});else if(i){const ge=(Ee=(Te=(Ne=ri(i))===null||Ne===void 0?void 0:Ne.filter(xe=>{var ee,ye;const Oe=xe.split("=")[0];return(ye=(ee=p?.channels)!==null&&ee!==void 0?ee:[])===null||ye===void 0?void 0:ye.includes(Oe)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&Ee!==void 0?Ee:"";ge&&(q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(ge)}))}if(x){let ge=1;if(q=Object.assign(Object.assign(Object.assign({},q),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!q?.channel||F.current)return;F.current=!0;let xe=[],ee=null;const ye=Oe=>ut(void 0,void 0,void 0,function*(){var rt,nt,lt,ot,vt,pt;if(Oe.pageNum=ge,ee=yield yt?.("recommend/direct_page",{method:"POST",body:Oe}),!ee?.success)return;R(!1),xe=xe.concat((ot=(lt=(nt=(rt=ee?.data)===null||rt===void 0?void 0:rt.recList)===null||nt===void 0?void 0:nt.filter)===null||lt===void 0?void 0:lt.call(nt,_e=>_e?.product||_e?.video))!==null&&ot!==void 0?ot:[]),M?.length===0&&(u(bt(Object.assign(Object.assign({},ee?.data),{recList:xe}))),ve(bt(Object.assign(Object.assign({},ee?.data),{recList:xe})))),((pt=(vt=ee?.data)===null||vt===void 0?void 0:vt.recList)===null||pt===void 0?void 0:pt.some(_e=>_e?.product||_e?.video))&&(ge=ge+1,yield ye(Oe))});return yield ye(q),!q?.hashTag&&ee&&E({rtc:(We=ee?.data)===null||We===void 0?void 0:We.rtc,requestId:(Xe=ee?.data)===null||Xe===void 0?void 0:Xe.requestId}),Object.assign(Object.assign({},ee?.data),{recList:xe})}Y?.enablePreview&&(q=Object.assign(Object.assign({},q),{directPage:!0,level:1,pageNum:(L=q?.pageNum)!==null&&L!==void 0?L:1}));const ne=yield Se?.("v1/recommend/list",{method:"POST",body:q});if(ne?.success){if(q?.hashTag||E({rtc:ne.data.rtc,requestId:ne.data.requestId}),Y?.enablePreview&&!x){let ge=[];return ge=ge.concat((oe=(ie=(Q=(J=ne?.data)===null||J===void 0?void 0:J.recList)===null||Q===void 0?void 0:Q.filter)===null||ie===void 0?void 0:ie.call(Q,ee=>ee?.product||ee?.video))!==null&&oe!==void 0?oe:[]),((le=(be=ne?.data)===null||be===void 0?void 0:be.recList)===null||le===void 0?void 0:le.some(ee=>ee?.product||ee?.video))||we(!0),Object.assign(Object.assign({},ne.data),{recList:ge})}return ne?.data}}),[Se,i,o,l,b,Ge,Vt,yt]),li=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te;if(M.length<=0)return;const Ee=M?.[M?.length-1],We=yield Wt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((X=Ee?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(ce=Ee?.product)===null||ce===void 0?void 0:ce.itemId]}),((Ne=Ee?.video)===null||Ne===void 0?void 0:Ne.itemId)&&{contentFilter:[(Te=Ee?.video)===null||Te===void 0?void 0:Te.itemId]}),{themeTag:Je.current}),Y?.enablePreview&&!x&&{pageNum:q}));return u(M.concat(bt(We))),ve(Ue.concat(bt(We))),We}),[Wt,M,re,Ue]),Ji=se((q,X)=>{var ce,Ne,Te,Ee,We;let Xe=!1;const L=(Ne=(ce=A?.data)===null||ce===void 0?void 0:ce.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig;if(!((Te=L?.session)===null||Te===void 0)&&Te.enable){const J=localStorage.getItem("sessionStartTime"),Q=J?JSON.parse(J):new Date().getTime();Math.floor((new Date().getTime()-Q)/1e3/60)>=((We=(Ee=L?.session)===null||Ee===void 0?void 0:Ee.expires)!==null&&We!==void 0?We:30)&&(X?.("sessionTimeOut"),dn(),Qe.current=new Date,Xe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else q&&dn();return Xe},[A]),wt=se(({userInfo:q,eventInfo:X,reportLayId:ce=!0})=>{var Ne,Te;if(!n||Y?.enablePreview)return;q||(q={});const Ee=no(),We={},Xe=location.search.slice(1);(Ne=ri(Xe))===null||Ne===void 0||Ne.forEach(oe=>{const be=oe.split("=")[0],le=oe.split("=")[1];We[be]=le});const L=We?.cl_source,J=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ee,rtc:k.rtc,requestId:k.requestId},{playbookType:st}),tt&&ce&&{layoutVariantId:tt}),X),X?.position&&Ge&&{position:Number(X?.position)+1+""}),L&&{clSource:L}),Q=Object.entries(q).map(([oe,be])=>({name:oe,value:be})),ie=Object.entries(J).map(([oe,be])=>be&&{name:oe,value:be}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",q),console.log("eventInfo:",J),console.log("========= \u7ED3\u675F ========="),Se?.(`v2/cld/${(Te=he?.headers)===null||Te===void 0?void 0:Te["x-app-id"]}/${X?.eventSubject}${L?`/${decodeURIComponent(L)}`:""}`,{method:"POST",body:{userInfo:Q,eventInfo:ie},type:"beacon"})},[Se,k,n,Y?.enablePreview,tt,Y,st,he]),Xt=se((q,X)=>{var ce,Ne,Te;const Ee=vi(q),We=new URLSearchParams(window.location.search),Xe=We?.get("fbclid"),L={event_source_url:(ce=window?.location)===null||ce===void 0?void 0:ce.href,external_id:Ae,client_user_agent:(Te=(Ne=window?.navigator)===null||Ne===void 0?void 0:Ne.userAgent)!==null&&Te!==void 0?Te:"",fbc:Xe?`fb.2.${new Date().getTime()}.${Xe}`:"",fbp:qn("_fbp")?`${qn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},J=/\{\{(.*?)\}\}/g,Q=ie=>{if(ie){if(ie instanceof Array)ie?.map(oe=>Q(oe));else for(const oe in ie)if(Object.prototype.hasOwnProperty.call(ie,oe)){const be=ie?.[oe];if(typeof be=="object")Q(be);else if(typeof be=="string"){const le=be?.match(J);le&&le.forEach(ne=>{var ge;const xe=ne.substring(2,ne.length-2);try{let ee=new Function("fix_par","product",`return ${xe}`)(L,X);ee?(xe?.indexOf("currency")!==-1&&ee?.indexOf("-")!==-1&&typeof ee=="string"&&(ee=(ge=ee?.split("-"))===null||ge===void 0?void 0:ge[0]),ie[oe]=ee):delete ie[oe]}catch(ee){delete ie[oe],console.error("An error occurred:",ee?.message)}})}}}};return Q(Ee),Ee},[Ae]),gi=se(({eventName:q,product:X})=>{var ce,Ne,Te,Ee,We,Xe,L,J;if(!n||Y?.enablePreview)return;let Q=!1;const ie=(ce=Y?.pixel)===null||ce===void 0?void 0:ce[q];if(ie?.event_name&&typeof window?.fbq=="function"){let le=function(ne,ge,xe){const ee=new RegExp("([?&])"+ge+"=.*?(&|$)","i"),ye=ne.indexOf("?")!==-1?"&":"?";return ne.match(ee)?ne.replace(ee,"$1"+ge+"="+xe+"$2"):ne+ye+ge+"="+xe};if(q==="PageView"&&ie?.event_name==="PageView")if(!Ot.current)Ot.current=!0;else{const ne=window.location.href,ge=le(ne,"timestamp",Date.now());history.pushState({path:ge},"",ge),Q=!0}else window?.fbq("track",ie?.event_name,Xt(ie,X))}if(!Q){q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const le=(Ne=Y?.tiktokPixel)===null||Ne===void 0?void 0:Ne[q];le?.event_name&&typeof window?.ttq=="object"&&typeof((Te=window?.ttq)===null||Te===void 0?void 0:Te.track)=="function"&&((Ee=window?.ttq)===null||Ee===void 0||Ee.track(le?.event_name,Xt(le,X)))}const oe=(We=Y?.snapchatPixel)===null||We===void 0?void 0:We[q];oe?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",oe?.event_name,Xt(oe,X));const be=(Xe=Y?.converApi)===null||Xe===void 0?void 0:Xe[q];if(f&&be){const le=Xt(be,X),ne={},ge=location.search.slice(1);(L=ri(ge))===null||L===void 0||L.forEach(ee=>{const ye=ee.split("=")[0],Oe=ee.split("=")[1];ne[ye]=Oe});const xe=ne?.cl_source;Se?.(`v2/fb/${(J=he?.headers)===null||J===void 0?void 0:J["x-app-id"]}/${q}${xe?`/${decodeURIComponent(xe)}`:""}`,{method:"POST",body:le,type:"beacon"})}},[Se,n,f,Y,he,Xt]),$t=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/recommend/like",{method:"POST",body:q});return X?.success}),[Se]),qt=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/recommend/unlike",{method:"POST",body:q});return X?.success}),[Se]),Yt=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/customform",{method:"POST",body:q});return X?.success}),[Se]),Tt=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te,Ee,We,Xe,L;const J=!!(!((Ne=(ce=(X=q?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||Ne===void 0)&&Ne.isShowTag);if(!(!i||!J))try{const Q=(We=(Ee=(Te=ri(i))===null||Te===void 0?void 0:Te.filter(oe=>{var be,le;const ne=oe.split("=")[0];return(le=(be=p?.channels)!==null&&be!==void 0?be:[])===null||le===void 0?void 0:le.includes(ne)}))===null||Ee===void 0?void 0:Ee.join("&"))!==null&&We!==void 0?We:"",ie=yield Se?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Q)}});W((L=(Xe=ie?.data)===null||Xe===void 0?void 0:Xe.tags)!==null&&L!==void 0?L:[])}catch(Q){console.log("e",Q)}}),[Se,i]),Qi=se((q,X,ce,Ne)=>{var Te,Ee,We,Xe,L,J,Q,ie,oe,be,le,ne,ge,xe,ee,ye,Oe,rt,nt,lt,ot,vt,pt,gt,_e,De,je,Nt,jt,ui,dt,oi,en,tn,nn,ln;const Kt=ce?.bindCta,Hl=((Te=X?.video)===null||Te===void 0?void 0:Te.bindProduct)||((Ee=X?.video)===null||Ee===void 0?void 0:Ee.bindProducts)&&((Xe=(We=X?.video)===null||We===void 0?void 0:We.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0;let Ri="",on=null;qe?Ri="hashTagPage":!((L=X?.video)===null||L===void 0)&&L.url?(Ri="videoPage",on="video"):!((Q=(J=X?.video)===null||J===void 0?void 0:J.imgUrls)===null||Q===void 0)&&Q.length&&(Ri="imagePage",on="image");const Rn=(xe=(ne=(ie=ce?.tags)!==null&&ie!==void 0?ie:(le=(be=(oe=X?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||be===void 0?void 0:be[0])===null||le===void 0?void 0:le.tags)!==null&&ne!==void 0?ne:(ge=X?.video)===null||ge===void 0?void 0:ge.tags)!==null&&xe!==void 0?xe:(ee=X?.product)===null||ee===void 0?void 0:ee.tags;wt?.({eventInfo:Object.assign(Object.assign({},q),{ctaId:(ye=Kt?.itemId)!==null&&ye!==void 0?ye:"",ctaName:(Oe=Kt?.title)!==null&&Oe!==void 0?Oe:"",contentTags:Rn?JSON.stringify(Rn):"",position:Ne+"",contentId:(nt=(rt=X?.video)===null||rt===void 0?void 0:rt.itemId)!==null&&nt!==void 0?nt:"",productId:Hl?ce?.itemId:"",traceInfo:(nn=(oi=(je=(pt=(lt=Kt?.traceInfo)!==null&<!==void 0?lt:(vt=(ot=X?.video)===null||ot===void 0?void 0:ot.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&pt!==void 0?pt:(De=(_e=(gt=X?.video)===null||gt===void 0?void 0:gt.bindProduct)===null||_e===void 0?void 0:_e.bindCta)===null||De===void 0?void 0:De.traceInfo)!==null&&je!==void 0?je:(dt=(ui=(jt=(Nt=X?.video)===null||Nt===void 0?void 0:Nt.bindProducts)===null||jt===void 0?void 0:jt[0])===null||ui===void 0?void 0:ui.bindCta)===null||dt===void 0?void 0:dt.traceInfo)!==null&&oi!==void 0?oi:(tn=(en=X?.product)===null||en===void 0?void 0:en.bindCta)===null||tn===void 0?void 0:tn.traceInfo)!==null&&nn!==void 0?nn:"",fromKName:Ri,fromKPage:(ln=location?.href)!==null&&ln!==void 0?ln:"",contentFormat:on})})},[wt,qe]),yi=se(()=>{var q,X,ce;const Ne=location.search.slice(1),Te={};(q=ri(Ne.replace(/\+/g,"%2B")))===null||q===void 0||q.map(Xe=>{const L=Xe.split("=")[0],J=Xe.split("=")[1];Te[L]=J});for(const Xe in Te)Te[Xe]=Te[Xe].replace(/%2B/g,"+");const Ee=Xe=>{var L;return(L=Te[Xe])!==null&&L!==void 0?L:""},We=new Date;Qe.current=We,wt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Ee("utm_source"),utmMedium:Ee("utm_medium"),utmCampaign:Ee("utm_campaign"),utmId:Ee("utm_id"),utmContent:Ee("utm_content"),enterTime:Math.floor(We/1e3)+"",requestId:null,enterUrl:(ce=(X=window?.location)===null||X===void 0?void 0:X.href)!==null&&ce!==void 0?ce:""},reportLayId:!1})},[wt]),Di=se(()=>ut(void 0,void 0,void 0,function*(){var q,X;const ce=yield Se?.("v1/account",{method:"GET"});return Rt((q=ce?.data)===null||q===void 0?void 0:q.chatLabsId),((X=ce?.data)===null||X===void 0?void 0:X.consentResult)==="true"}),[Se]),$i=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/account/consent",{method:"POST",body:{consentResult:q}});return X?.success}),[Se]);ue(()=>{Lt||yi()},[Lt]),ue(()=>{if(Lt||a)return;R(!0);let q,X;Wt().then(ce=>{var Ne,Te,Ee,We,Xe,L,J,Q,ie,oe,be;if(ce){const le=bt(ce);let ne,ge;if(ce?.layoutVariantId){q=ce?.layoutVariantId,ft(ce?.layoutVariantId);const xe=(Te=(Ne=ce?.layoutVariantId)===null||Ne===void 0?void 0:Ne.split("-"))===null||Te===void 0?void 0:Te[1];xe&&(ne=w?.find(ee=>ee?.id===xe),ne?(te(ne),document.title=(Ee=ne?.name)!==null&&Ee!==void 0?Ee:"home",ge=(Xe=(We=ne?.data)===null||We===void 0?void 0:We.sxpPageConf)===null||Xe===void 0?void 0:Xe.globalConfig,Ie(ge),P?.(ne?.data),!((ie=(Q=(J=(L=ge?.consent)===null||L===void 0?void 0:L[0])===null||J===void 0?void 0:J.item)===null||Q===void 0?void 0:Q.props)===null||ie===void 0)&&ie.privacy_necessity&&ze(!0)):ze(!0))}else ze(!0);if(Ge||(ge?.playbook==="organic menu"||!ge&&Y?.playbook==="organic menu"?(At("organicMenu"),le.unshift("organic menu"),X="organicMenu"):(At("paidMedia"),X="paidMedia")),u(le),ve(le),Tt(ne??xt),Ge){const xe=le?.[0],ee=((oe=xe?.video)===null||oe===void 0?void 0:oe.traceInfo)||((be=xe?.product)===null||be===void 0?void 0:be.traceInfo)||"";wt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:Ge},q&&{layoutVariantId:q})}),wt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ct?.current)/1e3)+""},q&&{layoutVariantId:q})})}}}).finally(()=>{wt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},q&&{layoutVariantId:q}),X&&{playbookType:X})}),R(!1)})},[Lt,Ge]),ue(()=>{a&&(R(!0),Tt(A),Wt().then(q=>{if(q){const X=bt(q);Y?.playbook==="organic menu"&&!Ge&&X.unshift("organic menu"),u(X),ve(X)}}).finally(()=>{R(!1)}))},[Wt,Tt,Ge]);const Vi=It("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(il.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:$t,mutateUnlike:qt,submitForm:Yt,popupDetailData:$,loadVideos:li,setPopupDetailData:ae,getRecommendVideos:Wt,bffEventReport:wt,isPreview:a,loading:j,sxpParameter:d,waterFallData:re,setWaterFallData:_,ctaEvent:Qi,swiperRef:N,openHashtag:Ce,setOpenHashtag:Le,cacheRtcList:Ue,setCacheRtcList:ve,cacheActiveIndex:fe,setCacheActiveIndex:Ke,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??Vi,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Pe,setVideoRef:$e,bffFbReport:gi,isAgreePolicy:U,setIsAgreePolicy:G,curTime:Qe,h5EnterLink:yi,themeTag:Je,isShowConsent:Lt,selectTag:Et,setSelectTag:Fe,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:pe,isEditor:x,isNoMoreData:K,updateChannel:Ht,channel:Ge,eventTimeList:Re,setEventTimeList:it,multiPostTimeRef:ct,refreshFeSession:Ji,getAccount:Di,accountSonsent:$i,isDiyH5:C}},Lt?v.createElement(vo,Object.assign({},(I=(D=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||D===void 0?void 0:D.item)===null||I===void 0?void 0:I.props)):t({rtcList:M,mutateLike:$t,mutateUnlike:qt,submitForm:Yt,tagList:B,pageData:xt}))};var nl=Me(po);function He(){return Si(il)}var ll;(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"})(ll||(ll={}));const ol=xi({$store:{},options:[],configs:[]}),mo=({children:t,isSsr:e,enable:i})=>{const[n,o]=Z([]),{schema:l}=ei(),[a,d]=Z(l.__STORE__||{}),[s,c]=Z([]);ue(()=>{var f;e||Bn(s,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const r=se(()=>ut(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Hn("",s);d(f),h(f,m)}),[s]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),o(y)};return ue(()=>{e||r()},[r,e,l]),i?v.createElement(ol.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var fo=Me(mo);const Wi={id:Bi(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"},al=v.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Wi],redoStack:[],popup:un,setPopup:()=>{}}),sl=si(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Wi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=Z([Wi]),[m,y]=Z([[Wi]]),[g,x]=Z([]),[p,b]=Z(un);typeof window<"u"&&(window.sxpPopup=(V,O)=>{b(Object.assign(Object.assign(Object.assign({},un),{id:V}),O))}),typeof window<"u"&&(window.getJointUtmLink=V=>(ro(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),ue(()=>{y([c.pointData]),x([])},[c.type]);const A=se(V=>{const O=vi(c);O&&(O.dataSource=V,r?.(O))},[c]),[w,C]=Z();Ti(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return vi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(al.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},v.createElement(fo,{isSsr:i,enable:o},t))});var ho=Object.freeze({__proto__:null,EditorCore:sl}),Ao=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],bo=[{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 Mt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=He(),l=se((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,G,$,ae,re,_,Ce,Le,Ue,ve,fe,Ke,qe;if(n?.findIndex(Qe=>Qe.target===s?.target)!==-1)return;s&&o?.(Qe=>[...Qe,{target:s?.target,time:new Date}]);let Pe="";e&&(!((g=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=c?.video)===null||x===void 0)&&x.bindProduct)?Pe="pdpPage":i?Pe="hashTagPage":!((p=c?.video)===null||p===void 0)&&p.url?Pe="videoPage":!((b=c?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=c?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?Pe="imagePage":c?.product&&(Pe="productPage");const $e=(D=(S=(C=r?.tags)!==null&&C!==void 0?C:(O=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&D!==void 0?D:(I=c?.product)===null||I===void 0?void 0:I.tags;let Je=null;!((M=c?.video)===null||M===void 0)&&M.url?Je="video":!((u=c?.video)===null||u===void 0)&&u.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Je="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(j=r?.itemId)!==null&&j!==void 0?j:"",productName:(R=r?.title)!==null&&R!==void 0?R:"",price:r?.price?r?.price+"":"0",productCollection:(k=r?.collection)!==null&&k!==void 0?k:"",fromKName:Pe,fromKPage:location?.href,contentTags:$e?JSON.stringify($e):"",position:f+"",contentId:(N=(E=c?.video)===null||E===void 0?void 0:E.itemId)!==null&&N!==void 0?N:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(qe=(ve=(Le=(ae=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(G=c?.video)===null||G===void 0?void 0:G.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(Ce=(_=(re=c?.video)===null||re===void 0?void 0:re.bindProducts)===null||_===void 0?void 0:_[0])===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&Le!==void 0?Le:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&ve!==void 0?ve:(Ke=(fe=c?.video)===null||fe===void 0?void 0:fe.bindCta)===null||Ke===void 0?void 0:Ke.traceInfo)!==null&&qe!==void 0?qe:""},Je&&{contentFormat:Je})})},[t,e,i,n]),a=se((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,O,S,T;let D="";e&&(!((y=(m=s?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=s?.video)===null||g===void 0)&&g.bindProduct)?D="pdpPage":s?.product&&(D="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:D,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(x=s?.video)===null||x===void 0?void 0:x.itemId,ctatId:r?.itemId,traceInfo:(T=(O=(w=(p=c?.traceInfo)!==null&&p!==void 0?p:(A=(b=s?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&O!==void 0?O:(S=s?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=se((s,c,r,h)=>{c&&c===Fi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:a,backMainFeed:d}}const go=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,o)=>v.createElement("div",{key:o,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&v.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&v.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var yo=Me(go);const wo=t=>{var e,i,{columns:n,style:o,title:l,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=at(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=He(),{jumpToWeb:A}=Mt(),[w,C]=Z(!1),[P,V]=Z({}),[O,S]=Z(0),T=me(()=>[{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"}],[]),D=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=me(()=>vi(n)||T,[n,T]),M=se(B=>{const{name:W,value:j}=B.target;V(Object.assign(Object.assign({},P),{[W]:j}))},[P]),u=wi(B=>ut(void 0,void 0,void 0,function*(){var W,j,R,k,E;const N=P;if(!N)return;const F=(j=(W=Object.keys(N))===null||W===void 0?void 0:W.map(G=>{var $;return{name:G,value:($=N[G])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,$=(R=G?.video)===null||R===void 0?void 0:R.bindProduct,ae=(E=(k=G?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,re=b?.index;A(B,G,$,ae,re)}f||y?.(),m?.()}}),1e3);return ue(()=>{const B=()=>{var W,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<D?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),v.createElement("div",{className:"pb-appoint-form"},v.createElement("div",{className:`pb-appoint-form-title ${Be(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Ve(l,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},o),{marginTop:O}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(yo,{columns:I,layout:r,onChange:M}))),v.createElement("div",{className:"pb-appoint-form-btn-wrapper"},v.createElement("button",{"aria-label":c,onClick:u,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},g),dangerouslySetInnerHTML:{__html:Ve(w?"loading...":c,g)}})))};var So=Me(wo);function mt(t,e){return t.extend=e,t}const xo=mt(So,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:bo,bindableProps:[],interactionRender:Ao},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 To=[{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:[{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"]}]}];function rl(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function vn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:rl(e[i])&&rl(t[i])&&Object.keys(e[i]).length>0&&vn(t[i],e[i])})}const dl={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 Dt(){const t=typeof document<"u"?document:{};return vn(t,dl),t}const Eo={document:dl,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 Ct(){const t=typeof window<"u"?window:{};return vn(t,Eo),t}function ti(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Io(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function pi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function zt(){return Date.now()}function ko(t){const e=Ct();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Co(t,e){e===void 0&&(e="x");const i=Ct();let n,o,l;const a=ko(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function zi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Po(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Bt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Po(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(zi(t[d])&&zi(n[d])?n[d].__swiper__?t[d]=n[d]:Bt(t[d],n[d]):!zi(t[d])&&zi(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Bt(t[d],n[d])):t[d]=n[d])}}}return t}function Ui(t,e,i){t.style.setProperty(e,i)}function cl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=Ct(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",r=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,h=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=l+m*(i-l);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(h)};h()}function Gt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Hi(t){try{console.warn(t);return}catch{}}function mi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ti(e)),i}function ul(t){const e=Ct(),i=Dt(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Oo(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Lo(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ii(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ei(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Xi(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function pn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function mn(t,e,i){const n=Ct();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let fn;function jo(){const t=Ct(),e=Dt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function vl(){return fn||(fn=jo()),fn}let hn;function Mo(t){let{userAgent:e}=t===void 0?{}:t;const i=vl(),n=Ct(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const h=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let y=o==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&g.indexOf(`${d}x${s}`)>=0&&(r=l.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!m&&(a.os="android",a.android=!0),(r||f||h)&&(a.os="ios",a.ios=!0),a}function pl(t){return t===void 0&&(t={}),hn||(hn=Mo(t)),hn}let An;function No(){const t=Ct(),e=pl();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function Do(){return An||(An=No()),An}function Vo(t){let{swiper:e,on:i,emit:n}=t;const o=Ct();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(h=>{a=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&d()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Ro(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=Ct(),d=function(r,h){h===void 0&&(h={});const f=a.MutationObserver||a.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){o("observerUpdate",y[0]);return}const g=function(){o("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});m.observe(r,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),l.push(m)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Xi(e.hostEl);for(let h=0;h<r.length;h+=1)d(r[h])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Bo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](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(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Fo(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ii(n,"padding-left")||0,10)-parseInt(ii(n,"padding-right")||0,10),i=i-parseInt(ii(n,"padding-top")||0,10)-parseInt(ii(n,"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 Wo(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Gt(o,`.${t.params.slideClass}, swiper-slide`),h=s?t.virtual.slides.length:r.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof l>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*l:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ui(n,"--swiper-centered-offset-before",""),Ui(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let D;if(r[T]&&(D=r[T]),V&&t.grid.updateSlide(T,D,r),!(r[T]&&ii(D,"display")==="none")){if(i.slidesPerView==="auto"){S&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(D),M=D.style.transform,u=D.style.webkitTransform;if(M&&(D.style.transform="none"),u&&(D.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?mn(D,"width",!0):mn(D,"height",!0);else{const B=e(I,"width"),W=e(I,"padding-left"),j=e(I,"padding-right"),R=e(I,"margin-left"),k=e(I,"margin-right"),E=I.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;O=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(O=Math.floor(O))}else O=(l-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${O}px`);r[T]&&(r[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-l/2-A),T===0&&(w=w-l/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),V&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let D=0;D<f.length;D+=1){let I=f[D];i.roundLengths&&(I=Math.floor(I)),f[D]<=t.virtualSize-l&&T.push(I)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(s&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let M=0;M<D;M+=1)f.push(f[f.length-1]+I)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((D,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(D=>{D.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=T-l;f=f.map(I=>I<=0?-g:I>D?D+x:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D<l){const I=(l-T-D)/2;f.forEach((M,u)=>{f[u]=M-I}),m.forEach((M,u)=>{m[u]=M+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ui(n,"--swiper-centered-offset-before",`${-f[0]}px`),Ui(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+D)}if(h!==c&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function zo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function Uo(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const ml=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Ho(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),m=-(a-r),y=m+e.slidesSizesGrid[s],g=m>=0&&m<=e.size-e.slidesSizesGrid[s],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),ml(c,x,i.slideVisibleClass),ml(c,g,i.slideFullyVisibleClass),c.progress=o?-h:h,c.originalProgress=o?-f:f}}function Xo(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=h||o>=1,r&&(o=0),h&&(o=1)}if(i.loop){const r=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?d=(g-f)/y:d=(g+y-m)/y,d>1&&(d-=1)}Object.assign(e,{progress:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const bn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function qo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=h=>Gt(n,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let s,c,r;if(l)if(i.loop){let h=o-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${h}"]`)}else s=d(`[data-swiper-slide-index="${o}"]`);else a?(s=e.filter(h=>h.column===o)[0],r=e.filter(h=>h.column===o+1)[0],c=e.filter(h=>h.column===o-1)[0]):s=e[o];s&&(a||(r=Lo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Oo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(h=>{bn(h,h===s,i.slideActiveClass),bn(h,h===r,i.slideNextClass),bn(h,h===c,i.slidePrevClass)}),t.emitSlidesClasses()}const qi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},gn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},yn=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 n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&gn(t,c)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&gn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&gn(t,a)};function Yo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function Go(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let s=t,c;const r=m=>{let y=m-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=Yo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(o.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&o.grid&&o.grid.rows>1;let f;if(e.virtual&&o.virtual.enabled&&o.loop)f=r(s);else if(h){const m=e.slides.filter(g=>g.column===s)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/o.grid.rows)}else if(e.slides[s]){const m=e.slides[s].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:l,activeIndex:s}),e.initialized&&yn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Zo(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Ko={updateSize:Fo,updateSlides:Wo,updateAutoHeight:zo,updateSlidesOffset:Uo,updateSlidesProgress:Ho,updateProgress:Xo,updateSlidesClasses:qo,updateActiveIndex:Go,updateClickedSlide:Zo};function _o(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=Co(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function Jo(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const h=i.maxTranslate()-i.minTranslate();h===0?r=0:r=(t-i.minTranslate())/h,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Qo(){return-this.snapGrid[0]}function $o(){return-this.snapGrid[this.snapGrid.length-1]}function ea(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const h=l.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return cl({swiper:l,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.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 ta={getTranslate:_o,setTranslate:Jo,minTranslate:Qo,maxTranslate:$o,translateTo:ea};function ia(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 fl(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function na(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),fl({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function la(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),fl({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var oa={setTransition:ia,transitionStart:na,transitionEnd:la};function aa(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const g=Math.min(l.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/l.params.slidesPerGroup);x>=s.length&&(x=s.length-1);const p=-s[x];if(d.normalizeSlideIndex)for(let A=0;A<c.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(c[A]*100),P=Math.floor(c[A+1]*100);typeof c[A+1]<"u"?w>=C&&w<P-(P-C)/2?a=A:w>=C&&w<P&&(a=A+1):w>=C&&(a=A)}if(l.initialized&&a!==h&&(!l.allowSlideNext&&(f?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===l.translate||!f&&p===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(p),b!=="reset"&&(l.transitionStart(i,b),l.transitionEnd(i,b)),!1;if(d.cssMode){const A=l.isHorizontal(),w=f?p:-p;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return cl({swiper:l,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,b),e===0?l.transitionEnd(i,b):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,b))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function sa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const f=a*o.params.grid.rows;d=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let h=s-d<r;if(c&&(h=h||d<Math.ceil(r/2)),n&&c&&o.params.slidesPerView!=="auto"&&!l&&(h=!1),h){const f=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?o.realIndex:void 0})}if(l){const f=a*o.params.grid.rows;a=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function ra(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function da(t,e,i){e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=d?n.translate:-n.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=l.map(p=>f(p));let g=l[y.indexOf(m)-1];if(typeof g>"u"&&o.cssMode){let p;l.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),o.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function ca(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function ua(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function va(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const a=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?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Gt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),pi(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Gt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),pi(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var pa={slideTo:aa,slideToLoop:sa,slideNext:ra,slidePrev:da,slideReset:ca,slideToClosest:ua,slideToClickedSlide:va};function ma(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Gt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&e.slides.length%i.grid.rows!==0,c=r=>{for(let h=0;h<r;h+=1){const f=e.isElement?mi("swiper-slide",[i.slideBlankClass]):mi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Hi("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)");o()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Hi("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)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function fa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:h,slidesEl:f,params:m}=s,{centeredSlides:y}=m;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):m.centeredSlides&&s.snapIndex<m.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=h,s.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,s.loopedSlides=p;const b=s.grid&&m.grid&&m.grid.rows>1;c.length<g+p?Hi("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"):b&&m.grid.fill==="row"&&Hi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=l;const P=n==="next"||!n,V=n==="prev"||!n;let O=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[l].column:l)+(y&&typeof o>"u"?-g/2+.5:0);if(I<p){O=Math.max(p-I,x);for(let M=0;M<p-I;M+=1){const u=M-Math.floor(M/T)*T;if(b){const B=T-u-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&A.push(W)}else A.push(T-u-1)}}else if(I+g>T-p){S=Math.max(I-(T-p*2),x);for(let M=0;M<S;M+=1){const u=M-Math.floor(M/T)*T;b?c.forEach((B,W)=>{B.column===u&&w.push(W)}):w.push(u)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&A.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),P&&w.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.append(c[M]),c[M].swiperLoopMoveDOM=!1}),s.recalcSlides(),m.slidesPerView==="auto"?s.updateSlides():b&&(A.length>0&&V||w.length>0&&P)&&s.slides.forEach((M,u)=>{s.grid.updateSlide(u,M,s.slides)}),m.watchSlidesProgress&&s.updateSlidesOffset(),i){if(A.length>0&&V){if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C+O]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(O),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(o){const M=b?A.length/m.grid.rows:A.length;s.slideTo(s.activeIndex+M,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C-S]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C-S,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else{const M=b?w.length/m.grid.rows:w.length;s.slideTo(s.activeIndex-M,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=h,s.controller&&s.controller.control&&!a){const M={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(u=>{!u.destroyed&&u.params.loop&&u.loopFix({...M,slideTo:u.params.slidesPerView===m.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...M,slideTo:s.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}s.emit("loopFix")}function ha(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Aa={loopCreate:ma,loopFix:fa,loopDestroy:ha};function ba(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 ga(){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 ya={setGrabCursor:ba,unsetGrabCursor:ga};function wa(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Dt()||n===Ct())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function hl(t,e,i){const n=Ct(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Sa(t){const e=this,i=Dt();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){hl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(f?wa(h,s):s.closest(h))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!hl(e,n,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,o.touchStartTime=zt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let g=!0;s.matches(o.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function xa(t){const e=Dt(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,h=c.pageY;if(s.preventedByNestedSwiper){l.startX=r,l.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=zt());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(h<l.startY&&i.translate<=i.maxTranslate()||h>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=h;const f=l.currentX-l.startX,m=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>o.touchAngle:90-P>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),l.diff=y,y*=o.touchRatio,a&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!o.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let A;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let w=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Ta(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=zt(),f=h-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=zt(),pi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.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 m;if(a.followFinger?m=s?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(y||m>=c[C]&&m<c[C+P])&&(g=C,x=c[C+P]-c[C]):(y||m>=c[C])&&(g=C,x=c[c.length-1]-c[c.length-2])}let p=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-c[g])/x,w=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-a.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>a.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function Al(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ea(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ia(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ka(t){const e=this;qi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ca(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const bl=(t,e)=>{const i=Dt(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Al,!0):t[c]("observerUpdate",Al,!0),o[s]("load",t.onLoad,{capture:!0}))};function Pa(){const t=this,{params:e}=t;t.onTouchStart=Sa.bind(t),t.onTouchMove=xa.bind(t),t.onTouchEnd=Ta.bind(t),t.onDocumentTouchStart=Ca.bind(t),e.cssMode&&(t.onScroll=Ia.bind(t)),t.onClick=Ea.bind(t),t.onLoad=ka.bind(t),bl(t,"on")}function Oa(){bl(this,"off")}var La={attachEvents:Pa,detachEvents:Oa};const gl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ja(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=gl(t,n),r=gl(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof s[A]>"u")return;const w=n[A]&&n[A].enabled,C=s[A]&&s[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=s.direction&&s.direction!==n.direction,g=n.loop&&(s.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),Bt(t.params,s);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",s)}function Ma(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=Ct(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Na={setBreakpoint:ja,getBreakpoint:Ma};function Da(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Va(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=Da(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{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(...a),o.classList.add(...e),t.emitContainerClasses()}function Ra(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ba={addClasses:Va,removeClasses:Ra};function Fa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*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 Wa={checkOverflow:Fa},wn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function za(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Bt(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Bt(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Bt(e,n)}}const Sn={eventsEmitter:Bo,update:Ko,translate:ta,transition:oa,slide:pa,loop:Aa,grabCursor:ya,events:La,breakpoints:Na,checkOverflow:Wa,classes:Ba},xn={};let Tn=class Qt{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=Bt({},i),e&&!i.el&&(i.el=e);const a=Dt();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(h=>{const f=Bt({},i,{el:h});r.push(new Qt(f))}),r}const d=this;d.__swiper__=!0,d.support=vl(),d.device=pl({userAgent:i.userAgent}),d.browser=Do(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:za(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Bt({},wn,s);return d.params=Bt({},c,xn,i),d.originalParams=Bt({},d.params),d.passedParams=Bt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}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:n}=this,o=Gt(i,`.${n.slideClass}, swiper-slide`),l=Ei(o[0]);return Ei(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:n}=e;e.slides=Gt(i,`.${n.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 n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let h=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let m=c+1;m<l.length;m+=1)l[m]&&!f&&(h+=Math.ceil(l[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)l[m]&&!f&&(h+=l[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<l.length;h+=1)(i?a[h]+d[h]-a[c]<s:a[h]-a[c]<s)&&(r+=1);else for(let h=c-1;h>=0;h-=1)a[c]-a[h]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&qi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}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 n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Gt(n,o())[0];return!a&&i.params.createElements&&(a=mi("div",i.params.wrapperClass),n.append(a),Gt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ii(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ii(n,"direction")==="rtl"),wrongRTL:ii(a,"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 o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?qi(i,l):l.addEventListener("load",a=>{qi(i,a.target)})}),yn(i),i.initialized=!0,yn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),Io(n)),n.destroyed=!0),null}static extendDefaults(e){Bt(xn,e)}static get extendedDefaults(){return xn}static get defaults(){return wn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(Sn).forEach(t=>{Object.keys(Sn[t]).forEach(e=>{Tn.prototype[e]=Sn[t][e]})}),Tn.use([Vo,Ro]);const yl=["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 di(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function fi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:di(e[n])&&di(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:fi(t[n],e[n]):t[n]=e[n]})}function wl(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Sl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function xl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Tl(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function Ua(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ha(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:r,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,V;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),r[S].prevEl=void 0,r[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),r[S].el=void 0,e[S].el=void 0))};o.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(S=>{if(di(r[S])&&di(n[S]))Object.assign(r[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&O(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):r[S]=n[S]}}),c.includes("controller")&&!p&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.includes("children")&&i&&r.loop&&(V=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=r.controller.control),b&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),h.init(),h.render(),h.update()),A&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),m.init(),m.updateSize(),m.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)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Xa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};fi(i,wn),i._emitClasses=!0,i.init=!1;const l={},a=yl.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?di(t[s])?(i[s]={},o[s]={},fi(i[s],t[s]),fi(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function qa(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;wl(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),Sl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),xl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Ya(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return yl.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(di(t[s])&&di(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}),r.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const Ga=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 Yi(){return Yi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Yi.apply(this,arguments)}function El(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Il(t){const e=[];return v.Children.toArray(t).forEach(i=>{El(i)?e.push(i):i.props&&i.props.children&&Il(i.props.children).forEach(n=>e.push(n))}),e}function Za(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return v.Children.toArray(t).forEach(n=>{if(El(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=Il(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ka(t,e,i){if(!i)return null;const n=r=>{let h=r;return r<0?h=e.length+r:h>=e.length&&(h=h-e.length),h},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function Ii(t,e){return typeof window>"u"?ue(t,e):Yl(t,e)}const En=xi(null),ki=()=>Si(En),_a=xi(null),_t=si(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[h,f]=Z(null),[m,y]=Z(!1),g=de(!1),x=de(null),p=de(null),b=de(null),A=de(null),w=de(null),C=de(null),P=de(null),V=de(null),{params:O,passedParams:S,rest:T,events:D}=Xa(d),{slides:I,slots:M}=Za(l),u=()=>{y(!m)};Object.assign(O.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(O.on,D),s=!0;const k={...O};if(delete k.wrapperClass,p.current=new Tn(k),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=I;const E={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};fi(p.current.params.virtual,E),fi(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",u);const W=()=>{s||!D||!p.current||Object.keys(D).forEach(k=>{p.current.on(k,D[k])})},j=()=>{!D||!p.current||Object.keys(D).forEach(k=>{p.current.off(k,D[k])})};ue(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ue(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),Ii(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),qa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:p.current},O),a&&!p.current.destroyed&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Ii(()=>{W();const k=Ya(S,b.current,I,A.current,E=>E.key);return b.current=S,A.current=I,k.length&&p.current&&!p.current.destroyed&&Ha({swiper:p.current,slides:I,passedParams:S,changedParams:k,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{j()}}),Ii(()=>{Ga(p.current)},[h]);function R(){return O.virtual?Ka(p.current,I,h):I.map((k,E)=>v.cloneElement(k,{swiper:p.current,swiperSlideIndex:E}))}return v.createElement(n,Yi({ref:x,className:Tl(`${c}${i?` ${i}`:""}`)},T),v.createElement(_a.Provider,{value:p.current},M["container-start"],v.createElement(o,{className:Ua(O.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),wl(O)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),xl(O)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),Sl(O)&&v.createElement("div",{ref:P,className:"swiper-pagination"}),M["container-end"]))});_t.displayName="Swiper";const Ft=si(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=de(null),[f,m]=Z("swiper-slide"),[y,g]=Z(!1);function x(w,C,P){C===h.current&&m(P)}Ii(()=>{if(typeof c<"u"&&(h.current.swiperSlideIndex=c),e&&(e.current=h.current),!(!h.current||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),Ii(()=>{l&&h.current&&!l.destroyed&&m(l.getSlideClasses(h.current))},[l]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof n=="function"?n(p):n,A=()=>{g(!0)};return v.createElement(i,Yi({ref:h,className:Tl(`${f}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:A},r),a&&v.createElement(En.Provider,{value:p},v.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&v.createElement(En.Provider,{value:p},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"})))});Ft.displayName="SwiperSlide";function In(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Dt(),a=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=r;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Xi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Xi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,O=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=ul(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+O],[D.left+V,D.top+O]];for(let M=0;M<I.length;M+=1){const u=I[M];if(u[0]>=0&&u[0]<=S&&u[1]>=0&&u[1]<=T){if(u[0]===0&&u[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),o("keyPress",m)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Gi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ct();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 a,d=zt(),s;const c=[];function r(A){let V=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=O,O=0),S=V*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!V&&(V=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:V,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&zt()-d<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&zt()-d<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",A.raw)),d=new l.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.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 g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const O=V&&V.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,D=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))S=-D.pixelX*T;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))S=-D.pixelY;else return!0;else S=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*T:-D.pixelY;if(S===0)return!0;P.invert&&(S=-S);let I=e.getTranslate()+S*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:zt(),delta:Math.abs(S),direction:Math.sign(S),raw:A};c.length>=2&&c.shift();const u=c.length?c[c.length-1]:void 0;if(c.push(M),u?(M.direction!==u.direction||M.delta>u.delta||M.time>u.time+150)&&m(M):m(M),y(M))return!0}else{const M={time:zt(),delta:Math.abs(S),direction:Math.sign(S)},u=s&&M.time<s.time+500&&M.delta<=s.delta&&M.direction===s.direction;if(!u){s=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,j=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const R=c.length?c[c.length-1]:void 0,k=c[0];if(c.push(M),R&&(M.delta>R.delta||M.direction!==R.direction))c.splice(0);else if(c.length>=15&&M.time-k.time<500&&k.delta-M.delta>=1&&M.delta<=6){const E=S>0?.8:.2;s=M,c.splice(0),a=pi(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}a||(a=pi(()=>{s=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(u||o("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function kn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Gt(t.el,`.${n[o]}`)[0];l||(l=mi("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function Cn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function a(y,g){const x=e.params.navigation;y=Ze(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function d(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(y,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=kn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=l(y.nextEl),x=l(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ze(g),x=Ze(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?c:s),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ze(y),g=Ze(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?c:s),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?m():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ze(y),g=Ze(g),e.enabled){d();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ze(x),p=Ze(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),o(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:d,init:r,destroy:h})}function Jt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ci(t){let{swiper:e,extendParams:i,on:n,emit:o}=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:p=>p,formatFractionTotal:p=>p,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 a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function r(p){const b=p.target.closest(Jt(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=Ei(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(s())return;let A=e.pagination.el;A=Ze(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=mn(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>b.dynamicMainBullets-1?d=b.dynamicMainBullets-1:d<0&&(d=0)),S=Math.max(w-d,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),D=(T+S)/2),O.forEach(I=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(u=>`${b.bulletActiveClass}${u}`)].map(u=>typeof u=="string"&&u.includes(" ")?u.split(" "):u).flat();I.classList.remove(...M)}),A.length>1)O.forEach(I=>{const M=Ei(I);M===w?I.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),b.dynamicBullets&&(M>=S&&M<=T&&I.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),M===S&&c(I,"prev"),M===T&&c(I,"next"))});else{const I=O[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=O[S],u=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(O.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(Jt(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(Jt(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(V)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(w+1)/V;let I=1,M=1;T==="horizontal"?I=D:M=D,O.querySelectorAll(Jt(b.progressbarFillClass)).forEach(u=>{u.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${M})`,u.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,V),S===0&&o("paginationRender",O)):(S===0&&o("paginationRender",O),o("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(s())return;const b=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 A=e.pagination.el;A=Ze(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Jt(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",A[0])}function m(){e.params.pagination=kn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Xi(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ze(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),d=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",r),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(s())return;let b=e.pagination.el;b&&(b=Ze(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ze(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),n("snapIndexChange",()=>{h()}),n("snapGridLengthChange",()=>{f(),h()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{h()}),n("click",(p,b)=>{const A=b.target,w=Ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function Ja(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Dt();let a=!1,d=null,s=null,c,r,h,f;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 m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:M}=e,{dragEl:u,el:B}=I,W=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let R=r,k=(h-r)*j;M?(k=-k,k>0?(R=r-k,k=0):-k+r>h&&(R=h+k)):k<0?(R=r+k,k=0):k+r>h&&(R=h-k),e.isHorizontal()?(u.style.transform=`translate3d(${k}px, 0, 0)`,u.style.width=`${R}px`):(u.style.transform=`translate3d(0px, ${k}px, 0)`,u.style.height=`${R}px`),W.hide&&(clearTimeout(d),B.style.opacity=1,d=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:M,el:u}=I;M.style.width="",M.style.height="",h=e.isHorizontal()?u.offsetWidth:u.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=h*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${r}px`:M.style.height=`${r}px`,f>=1?u.style.display="none":u.style.display="",e.params.scrollbar.hide&&(u.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(I){return e.isHorizontal()?I.clientX:I.clientY}function p(I){const{scrollbar:M,rtlTranslate:u}=e,{el:B}=M;let W;W=(x(I)-ul(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(h-r),W=Math.max(Math.min(W,1),0),u&&(W=1-W);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function b(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W,dragEl:j}=u;a=!0,c=I.target===j?x(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),B.style.transitionDuration="100ms",j.style.transitionDuration="100ms",p(I),clearTimeout(s),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",I)}function A(I){const{scrollbar:M,wrapperEl:u}=e,{el:B,dragEl:W}=M;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,p(I),u.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",o("scrollbarDragMove",I))}function w(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W}=u;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(s),s=pi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",I),M.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:M,params:u}=e,B=M.el;if(!B)return;const W=B,j=u.passiveListeners?{passive:!1,capture:!1}:!1,R=u.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const k=I==="on"?"addEventListener":"removeEventListener";W[k]("pointerdown",b,j),l[k]("pointermove",A,j),l[k]("pointerup",w,R)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:I,el:M}=e;e.params.scrollbar=kn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const u=e.params.scrollbar;if(!u.el)return;let B;if(typeof u.el=="string"&&e.isElement&&(B=e.el.querySelector(u.el)),!B&&typeof u.el=="string"){if(B=l.querySelectorAll(u.el),!B.length)return}else B||(B=u.el);e.params.uniqueNavElements&&typeof u.el=="string"&&B.length>1&&M.querySelectorAll(u.el).length===1&&(B=M.querySelector(u.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass);let W;B&&(W=B.querySelector(Jt(e.params.scrollbar.dragClass)),W||(W=mi("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(I,{el:B,dragEl:W}),u.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}function S(){const I=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...ti(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:M}=e.scrollbar;M=Ze(M),M.forEach(u=>{u.classList.remove(I.horizontalClass,I.verticalClass),u.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(I,M)=>{y(M)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},D=()=>{e.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:g,setTranslate:m,init:O,destroy:S})}function Pn(t){let{swiper:e,extendParams:i,on:n}=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 o=null,l,a,d=new Date().getTime();function s(j){const R=o;R.length!==0&&(R.innerHTML="",R.innerHTML=j)}function c(j){j===void 0&&(j=16);const R=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(j).replace(/x/g,R)}function r(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","0")})}function h(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","-1")})}function f(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("role",R)})}function m(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-roledescription",R)})}function y(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-controls",R)})}function g(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-label",R)})}function x(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("id",R)})}function p(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-live",R)})}function b(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!0)})}function A(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!1)})}function w(j){if(j.keyCode!==13&&j.keyCode!==32)return;const R=e.params.a11y,k=j.target;if(!(e.pagination&&e.pagination.el&&(k===e.pagination.el||e.pagination.el.contains(j.target))&&!j.target.matches(Jt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ze(e.navigation.prevEl);Ze(e.navigation.nextEl).includes(k)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(R.lastSlideMessage):s(R.nextSlideMessage)),E.includes(k)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(R.firstSlideMessage):s(R.prevSlideMessage))}e.pagination&&k.matches(Jt(e.params.pagination.bulletClass))&&k.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:j,prevEl:R}=e.navigation;R&&(e.isBeginning?(b(R),h(R)):(A(R),r(R))),j&&(e.isEnd?(b(j),h(j)):(A(j),r(j)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function O(){const j=e.params.a11y;P()&&e.pagination.bullets.forEach(R=>{e.params.pagination.clickable&&(r(R),e.params.pagination.renderBullet||(f(R,"button"),g(R,j.paginationBulletMessage.replace(/\{\{index\}\}/,Ei(R)+1)))),R.matches(Jt(e.params.pagination.bulletActiveClass))?R.setAttribute("aria-current","true"):R.removeAttribute("aria-current")})}const S=(j,R,k)=>{r(j),j.tagName!=="BUTTON"&&(f(j,"button"),j.addEventListener("keydown",w)),g(j,k),y(j,R)},T=j=>{a&&a!==j.target&&!a.contains(j.target)&&(l=!0),e.a11y.clicked=!0},D=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=j=>{d=new Date().getTime()},M=j=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const R=j.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!R||!e.slides.includes(R))return;a=R;const k=e.slides.indexOf(R)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(R);k||E||j.sourceCapabilities&&j.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),l=!1)}))},u=()=>{const j=e.params.a11y;j.itemRoleDescriptionMessage&&m(e.slides,j.itemRoleDescriptionMessage),j.slideRole&&f(e.slides,j.slideRole);const R=e.slides.length;j.slideLabelMessage&&e.slides.forEach((k,E)=>{const N=e.params.loop?parseInt(k.getAttribute("data-swiper-slide-index"),10):E,F=j.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,R);g(k,F)})},B=()=>{const j=e.params.a11y;e.el.append(o);const R=e.el;j.containerRoleDescriptionMessage&&m(R,j.containerRoleDescriptionMessage),j.containerMessage&&g(R,j.containerMessage);const k=e.wrapperEl,E=j.id||k.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(k,E),p(k,N),u();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ze(F),U=Ze(U),F&&F.forEach($=>S($,E,j.nextSlideMessage)),U&&U.forEach($=>S($,E,j.prevSlideMessage)),V()&&Ze(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",w)}),Dt().addEventListener("visibilitychange",I),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function W(){o&&o.remove();let{nextEl:j,prevEl:R}=e.navigation?e.navigation:{};j=Ze(j),R=Ze(R),j&&j.forEach(E=>E.removeEventListener("keydown",w)),R&&R.forEach(E=>E.removeEventListener("keydown",w)),V()&&Ze(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Dt().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!0))}n("beforeInit",()=>{o=mi("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&u()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:o,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 a,d,s=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,r,h=new Date().getTime(),f,m,y,g,x,p,b;function A(R){!e||e.destroyed||!e.wrapperEl||R.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||R.detail&&R.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=r,f=!1);const R=e.autoplay.paused?r:h+c-new Date().getTime();e.autoplay.timeLeft=R,o("autoplayTimeLeft",R,R/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let R;return e.virtual&&e.params.virtual.enabled?R=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:R=e.slides[e.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},P=R=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),w();let k=typeof R>"u"?e.params.autoplay.delay:R;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof R>"u"&&(k=E,s=E,c=E),r=k;const N=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),o("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return k>0?(clearTimeout(a),a=setTimeout(()=>{F()},k)):requestAnimationFrame(()=>{F()}),k},V=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),o("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,k){x&&(r=e.params.autoplay.delay),x=!1,E();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),E())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(r)):P(),e.autoplay.paused=!1,o("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const R=Dt();R.visibilityState==="hidden"&&(p=!0,S(!0)),R.visibilityState==="visible"&&T()},I=R=>{R.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},M=R=>{R.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},u=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",M))},W=()=>{Dt().addEventListener("visibilitychange",D)},j=()=>{Dt().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(u(),W(),V())}),n("destroy",()=>{B(),j(),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:V,stop:O,pause:S,resume:T})}function Qa(t){let{swiper:e,extendParams:i,emit:n,once:o}=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 s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:zt()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=zt()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,D=O.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||zt()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*r.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let V;if(A<e.maxTranslate())r.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(A>e.minTranslate())r.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(V&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),r.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=r.speed:O<2*S?p=r.speed*1.5:p=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,pn(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),pn(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,pn(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||x>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:d}})}const $a=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=de(),{popupDetailData:l}=He();return ue(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),v.createElement(_t,{role:"list",tag:"ul",ref:o,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Qa,Ja,Gi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Oi=Me($a);const es=si((t,e)=>{const{src:i,onLoad:n,style:o,className:l,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=de(null),[h,f]=Z(!1);return Ti(e,()=>({setSrc:m=>{m&&c(m)}})),ue(()=>{i&&c(i)},[i]),ue(()=>{const m=()=>{i&&!h&&r.current&&(r.current.src="",r.current.src=i)};return St.on(ht.PAGE_DID_SHOW,m),()=>{St.off(ht.PAGE_DID_SHOW,m)}},[i,h]),v.createElement(v.Fragment,null,!h&&!s&&v.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?v.createElement("picture",null,v.createElement("source",{type:"image/avif",srcSet:s}),v.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),v.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var Pt=Me(es);const ts=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Mt(),{popupCurTimeRef:c}=He(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(l,m,m?.bindCta,c.current,l?.index),o?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&v.createElement(Oi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?t:[0,1,2,3])===null||d===void 0?void 0:d.map((h,f)=>{var m,y,g;return v.createElement(v.Fragment,null,h?.bindCta?v.createElement(Ft,{className:Be({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(h,f)},key:f},v.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var kl=Me(ts);const is="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ns=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popup:l,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j;const R=de(null),k=de(null),E=de(null),N=de(null),F=de(null),U=d*.2,G=s?d:d*.8,[$,ae]=Z(U),[re,_]=Z(!1),Ce=de(null),{globalConfig:Le,popupDetailData:Ue}=He(),{schema:ve,popup:fe}=ei(),[Ke,qe]=Z(15);ue(()=>{const pe=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Ce.current=H:(Ce.current=document.createElement("div"),Ce.current.setAttribute("id","pb-modal"),pe?.appendChild(Ce.current))},[]);const Ye=me(()=>l?.id&&l?.id!==""||t,[t,l]),Pe=me(()=>{var pe,H,K;const we=a??ve;return(K=(H=(pe=we?.sxpPageConf)===null||pe===void 0?void 0:pe.globalConfig)===null||H===void 0?void 0:H.popupList)===null||K===void 0?void 0:K.find(Ie=>Ie?.id===l?.id)},[l,a,ve]),$e=me(()=>{var pe,H;return((H=(pe=Pe?.item)===null||pe===void 0?void 0:pe.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Pe]);ue(()=>{Ye?_(!0):setTimeout(()=>{_(!1),ae(U)},l?.duration)},[Ye,l]);const Je=se(()=>i,[fe,c,Le,a]);if(ue(()=>{const pe=H=>{var K=H?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),we=K?.[0],Y=K?.[K?.length-1],Ie=9;H.addEventListener("keydown",function(ke){(ke.key==="Escape"||ke.key==="Esc")&&(Qe(),ke.preventDefault());var te=ke.key==="Tab"||ke.keyCode===Ie;te&&(ke.shiftKey?document?.activeElement===we&&(Y?.focus(),ke.preventDefault()):document?.activeElement===Y&&(we?.focus(),ke.preventDefault()))}),we?.focus()};return F?.current&&pe(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",pe)}},[F,re,fe]),!Ce.current)return null;const Qe=wi(()=>{e?.()},300),ct=pe=>{R.current=pe.touches[0],k.current=pe.touches[0],E.current=!0},Et=pe=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const K=pe.touches[0].clientY,we=pe.touches[0].clientX,Y=R.current.clientY-K;R.current=pe.touches[0];const Ie=K-k.current.clientY,ke=we-k.current.clientX;if(Math.abs(ke)>Math.abs(Ie))return;const te=$-Y;te>0&&ae(te)}})},Fe=pe=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const K=pe.changedTouches[0].clientY-k.current.clientY,we=pe.changedTouches[0].clientX-k.current.clientX;if(Math.abs(we)>Math.abs(K))return;const Y=k.current.clientY-R.current.clientY;Y>0?ae(0):$<U&&Y<0?ae(U):$>=U&&Y<0&&e?.()}E.current=!1};return Un.createPortal(v.createElement(v.Fragment,null,re&&v.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Qe},v.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(r=Pe?.item)===null||r===void 0?void 0:r.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=Pe?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=Pe?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(V=(P=Pe?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},v.createElement("div",Object.assign({ref:F,className:`modal-container ${Ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Pe?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:o,animationDuration:((D=l?.duration)!==null&&D!==void 0?D:0)/1e3+"s"},$e&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(B=(u=(M=(I=Pe?.item)===null||I===void 0?void 0:I.props)===null||M===void 0?void 0:M.popupBg)===null||u===void 0?void 0:u.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:pe=>{pe.stopPropagation(),pe.preventDefault()}},$e&&{onTouchMove:Et,onTouchStart:ct,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:$e?d:G,overflow:$e&&$<=0||!$e?"auto":"hidden",zIndex:1}},((j=(W=Pe?.item)===null||W===void 0?void 0:W.props)===null||j===void 0?void 0:j.enableFixedCloseButton)&&{onScroll:pe=>{var H;qe(15-((H=pe?.target)===null||H===void 0?void 0:H.scrollTop))}}),Je()),v.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ke}},v.createElement("img",{src:Le?.popupCloseIcon||is,alt:"close button",className:"modal-icon"})))))),Ce.current)};var hi=Me(ns);const ls=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[h,f]=Z(!1),m=i||{},{lineClamp:y}=m,g=at(m,["lineClamp"]),x=Number(y||2),p=de(null),b=de(null),A=de(),w=()=>{r(!c)},C=se(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,O=P>V+1;f(O)})},[d,t,c]);return ue(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),v.createElement("div",{className:n,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},v.createElement("div",{ref:b,style:Object.assign(Object.assign({},!c&&d&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Ve(t?.replace(/\n/g,"</br>"),g)}}),v.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)",position:"absolute"},dangerouslySetInnerHTML:{__html:Ve(t?.replace(/\n/g,"</br>"),g)}}),t&&d&&h&&v.createElement("button",{"aria-label":c?a||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??w,dangerouslySetInnerHTML:{__html:Ve(c?a||"show less":l||"show more",g)}}))};var Li=Me(ls);const os=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},as=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",ji=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,a,d,s,c,r,h,f;let m="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(d=(a=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(s=b?.indexOf("."))!==null&&s!==void 0?s:-1;if(p){m=(c=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&h!==void 0?h:o?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=Ve(m,o),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},ss=t=>{var e,i,n,o,l,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,{content:S,style:T,bgImg:D,onClick:I,schema:M,isDefault:u,bottom_image:B,tipText:W,isPost:j,viewTime:R,rec:k,swiper:E,commodityStyles:N,buttonStyle:F,index:U,commodityGroup:G,popupBg:$,iframeIcon:ae,commodityImgRatio:re,isTel:_,iframeBgColor:Ce,isActive:Le=!0}=t,Ue=at(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:ve,popupDetailData:fe,isPreview:Ke,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Pe,globalConfig:$e}=He(),{jumpToWeb:Je,productView:Qe}=Mt(),ct=de(null),[Et,Fe]=Z(!1),[pe,H]=Z(!1),[K,we]=Z((e=fe?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=de(),[Ie,ke]=Z(0),te=j?k:fe;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=te?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[0],ze=j?(a=te?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=te?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(h=(r=te?.video)===null||r===void 0?void 0:r.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const tt=j?U:fe?.index;if(!j&&G?.open&&(!((m=te?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){Pe.current=K;const Ae=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[K];z=Ae,ze=Ae?.bindCta}const ft=Ae=>{z?.link&&(Je(Ae,te,z,ze,tt),j||Qe(te,z,ze,R||ct.current,tt),window.location.href=window.getJointUtmLink(z.link))};ue(()=>{Le&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Le,qe]),ue(()=>{const Ae=()=>{ct.current=new Date};return Ae(),window.addEventListener("pageshow",Ae),()=>{window.removeEventListener("pageshow",Ae)}},[]);const Ge=ji({product:z,enableFormattedPrice:(p=N?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:$e,style:N?.price}),et=(Ke?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=$?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Re=re?et*(re.h/re.w):et,it=({isPost:Ae})=>{var Se,yt,Wt,li;return v.createElement("div",null,v.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Ve((Se=z?.collection)!==null&&Se!==void 0?Se:"Tiffany Lock",N?.collection)}}),v.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Ve((yt=z?.title)!==null&&yt!==void 0?yt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),v.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:Ge??""}}),v.createElement("div",{hidden:!!z&&!z?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Ve((Wt=z?.taxInfo)!==null&&Wt!==void 0?Wt:"\u7A0E\u8D39",N?.taxInfo)}}),v.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},v.createElement(Li,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Fe(!0),isPost:Ae,text:(li=z?.info)!==null&&li!==void 0?li:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
import{isEmpty as ai,cloneDeep as vi,isEqual as Bn,debounce as wi,throttle as Fn,get as Wn}from"lodash";import{v4 as Xl}from"uuid";import ql from"pako";import v,{useContext as Si,useMemo as me,memo as Me,useEffect as ue,createContext as xi,useState as Z,useRef as de,useCallback as se,forwardRef as si,useImperativeHandle as Ti,useLayoutEffect as Yl}from"react";import zn from"qs";import Gl from"eventemitter3";import{css as Be}from"@emotion/css";import*as Un from"react-dom";import Zl from"react-dom";function at(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function ut(t,e,i,n){function o(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function d(r){try{c(n.next(r))}catch(h){a(h)}}function s(r){try{c(n.throw(r))}catch(h){a(h)}}function c(r){r.done?l(r.value):o(r.value).then(d,s)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Kl=/:\w+/g;var Hn=(t,e)=>ut(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:l,method:a,url:d,urlParams:s,name:c,queryString:r,headers:h,body:f}=e[o];let m=d;s&&Object.entries(s).forEach(([y,g])=>{m=m.replace(Kl,x=>x===y?g:x)}),r&&(m+=r),n[l]=c;try{const y=yield fetch(m,{method:a,headers:Object.assign({"Content-Type":"application/json"},h),body:JSON.stringify(f)}).then(g=>g.json());i[l]=y}catch(y){console.error("DataSource request error: ",y),i[l]={}}}return{$store:i,idMapName:n}});const Xn="SXP_TOKEN_INFO",_l=(t,e)=>ut(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),l=t.getApiUrl(),a=window.localStorage.getItem(Xn);let d=JSON.parse(a||"{}");if(Date.now()>((i=d?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${l}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(r=>r.json());if(c.success){const r=c.data;d=Object.assign(Object.assign({},r),{expireTime:Date.now()+r.expire*1e3}),window.localStorage.setItem(Xn,JSON.stringify(d))}}return d});function Bi(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let l;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(l=0|Math.random()*16,n[o]=i[o===19?l&3|8:l])}return n.join("")}const Jl=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},Ql=()=>{const t=Xl();return t?.replaceAll?t.replaceAll("-",""):Jl(32)},Ve=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],o=e?.["fontFamily-en"];if(!n&&!o)return t;let l=t;const a=/[\u4e00-\u9fa5]/g,d=/[^\u4e00-\u9fa5]/g,s=`font-family:${n??"inherit"}`,c=`font-family:${o??"inherit"}`,r=f=>{const m=f.search(a),y=f.search(d);return m!==-1&&y!==-1&&m<y&&(i+=`<span style="${s}">${f.substring(m,y)}</span>`,l=f.substring(y,f?.length)),m!==-1&&y!==-1&&m>y&&(i+=`<span style="${c}">${f.substring(y,m)}</span>`,l=f.substring(m,f?.length)),m===-1?(i+=`<span style="${c}">${f.substring(y,f?.length)}</span>`,l="",!1):y===-1?(i+=`<span style="${s}">${f.substring(m,f?.length)}</span>`,l="",!1):!0};let h=!0;for(;h;)h=r(l);return i};function qn(t){const i=document.cookie.split(";");let n=null;return i.forEach(o=>{const[l,a]=o.trim().split("=");l===t&&(n=a)}),n??""}function an(){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 ri(t){if(!t)return;const e=[];for(let o=0;o<t.length;o++){const l=t[o],a=t.substring(o+1,t.length);l==="&"&&a?.indexOf("=")!==-1&&(a?.indexOf("=")<a?.indexOf("&")||a?.indexOf("&")===-1)&&e.push(o)}const i=e.length>0?[]:[t];let n=0;return e?.map(o=>{i?.push(t.substring(n,o)),n=o+1,o===e[e.length-1]&&o<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function Yn(t){const i=atob(t).split("").map(function(l){return l.charCodeAt(0)}),n=new Uint8Array(i),o=ql.inflate(n,{to:"string"});return JSON.parse(o)}let sn=null;const $l={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class eo{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?$l[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let kt=null;const to={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{kt||(kt=new eo),n&&kt.setApiUrl(n),kt.setAppId(t),kt.setTenantId(e),kt.setEnv(i)},getDetail:t=>{if(!kt)return;const e=kt.getTenantId(),i=kt.getAppId(),n=kt.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ut(void 0,void 0,void 0,function*(){var l,a;const d=yield o.json(),s=Yn((l=d?.data)===null||l===void 0?void 0:l.data);if(s){const{$store:c}=yield Hn(n,(a=s?.dataSource)!==null&&a!==void 0?a:[]);d.data.data=s,Object.assign(d.data.data,{__STORE__:c})}return d}))},getSxpDetailByPageId:t=>ut(void 0,void 0,void 0,function*(){if(!kt)return;const e=kt.getTenantId(),i=kt.getAppId(),n=kt.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>ut(void 0,void 0,void 0,function*(){var l;const a=yield o.json();return a.success?(l=a?.data)===null||l===void 0?void 0:l.map(s=>Object.assign(Object.assign({},s),{data:Yn(s?.data)})):void 0}))}),getSxpRecommendVideoData:t=>ut(void 0,void 0,void 0,function*(){if(!kt)return;const e=yield _l(kt,t),i=Bi(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");ai(n)&&(n=Bi(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=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:n,channel:e.channel,maxRecs:10,requestId:i})}).then(l=>l.json());return o?.data||null})};function ei(){return Si(al)}function io(){return Si(ol)}const rn="feRealSessionIdKey",Gn=()=>{const t=Ql();return`${Date.now()}${t}`},no=()=>{let t=lo();return t||(t=Gn(),window.localStorage.setItem(rn,t)),t},dn=()=>{const t=Gn();window.localStorage.setItem(rn,t)},lo=()=>window.localStorage.getItem(rn),Zn="SXP_FAKE_USER_ID",Kn="FAKE_USER_STATE",_n="AGREE_POLICY",Jn="SLIDE_SKIP_STATE",Qn="CCONTSENT_STATE",$n="USER_CONSENT_RESULT",oo=()=>{let t=window.localStorage.getItem(Zn);return ai(t)&&(t=Bi(36,62),window.localStorage.setItem(Zn,t)),t},ao=()=>{const t=window.localStorage.getItem(Kn);return ai(t)&&window.localStorage.setItem(Kn,"true"),ai(t)},so=()=>{const t=window.localStorage.getItem(Jn);return ai(t)},ro=()=>{window.localStorage.setItem(Jn,"true")},co=()=>{const t=window.localStorage.getItem(Qn);return ai(t)&&window.localStorage.setItem(Qn,"true"),ai(t)},el=()=>window.localStorage.getItem($n)==="true",tl=()=>{window.localStorage.setItem($n,"true")};function It(t,e){const{appDomain:i}=He();return me(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const St=new Gl;var ht;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(ht||(ht={}));const uo=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:o,privacy_policy_title:l})=>{const{setIsAgreePolicy:a,bffEventReport:d}=He(),s=me(()=>{var h;const f=location.search.slice(1),m={};(h=ri(f.replace(/\+/g,"%2B")))===null||h===void 0||h.map(y=>{const g=y.split("=")[0],x=y.split("=")[1];m[g]=x});for(const y in m)m[y]=m[y].replace(/%2B/g,"+");return m},[]),c=h=>{var f;return(f=s[h])!==null&&f!==void 0?f:null};ue(()=>{d?.({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 r=()=>{d?.({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}}),a?.(!0),window.localStorage.setItem(_n,"yes")};return v.createElement("div",{className:"consent-bg"},v.createElement("div",{className:"consent"},v.createElement("div",{className:"consent-col"},v.createElement("div",{className:"consent-title"},i??"Privacy Policy"),v.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),v.createElement("div",{className:"consent-col"},v.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:r},"Agree"),v.createElement("a",{className:"consent-policy",target:"_blank",href:o?`https://${o}`:void 0},l??"More information"))))};var vo=Me(uo);const il=xi({rtcList:[],tagList:[]});var cn;(function(t){t[t.BFF=5]="BFF"})(cn||(cn={}));const Fi="FOR U",po=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:l,isPreview:a=!1,sxpParameter:d,appDomain:s,hashTagSize:c,loadingImage:r,isOpenHashTag:h=!1,enabledMetaConversionApi:f=!1,consentHeight:m,consentWidth:y,isOpenConsent:g=!1,isEditor:x=!1,utmParameter:p,channelQueryList:b,data:A,dataList:w,isDiyH5:C,onUpdateSchema:P,onUpdateChannel:V})=>{var O,S,T,D,I;const[M,u]=Z([]),[B,W]=Z([]),[j,R]=Z(!0),[k,E]=Z({rtc:"",requestId:""}),N=de(null),F=de(!1),[U,G]=Z(()=>!!window.localStorage.getItem(_n)),[$,ae]=Z(),[re,_]=Z(),[Ce,Le]=Z(h),[Ue,ve]=Z([]),[fe,Ke]=Z(0),[qe,Ye]=Z(!1),[Pe,$e]=Z(null),Je=de(),Qe=de(),ct=de(),[Et,Fe]=Z(Fi),pe=de(-1),H=de(null),[K,we]=Z(!1),[Y,Ie]=Z((S=(O=A?.data)===null||O===void 0?void 0:O.sxpPageConf)===null||S===void 0?void 0:S.globalConfig),[ke,te]=Z(),[z,ze]=Z(!1),[tt,ft]=Z(),[Ge,et]=Z(),[Re,it]=Z([]),[st,At]=Z(),[Vt,Rt]=Z(),xt=me(()=>ke??A,[ke,A]),Ot=de(!1),Lt=me(()=>{var q,X,ce,Ne;return(((Ne=(ce=(X=(q=Y?.consent)===null||q===void 0?void 0:q[0])===null||X===void 0?void 0:X.item)===null||ce===void 0?void 0:ce.props)===null||Ne===void 0?void 0:Ne.privacy_necessity)&&!U&&!x||g)&&z},[U,Y,g,x,z]),Ht=se(q=>{V?.(q),et(q)},[]),bt=se(q=>{var X;const ce=q?.recList;return(X=ce?.map(Te=>{var Ee,We,Xe,L,J,Q;if(!((Ee=Te?.video)===null||Ee===void 0)&&Ee.bindProducts&&((Xe=(We=Te?.video)===null||We===void 0?void 0:We.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0){const ie=(Q=(J=(L=Te?.video)===null||L===void 0?void 0:L.bindProducts)===null||J===void 0?void 0:J.filter(oe=>!!oe?.bindCta))!==null&&Q!==void 0?Q:[];return Object.assign(Object.assign({},Te),{video:Object.assign(Object.assign({},Te?.video),{bindProducts:ie})})}return Te}))!==null&&X!==void 0?X:[]},[]);ue(()=>{let q;return Re.length>0&&(q=setInterval(()=>{const ce=new Date,Ne=15*1e3;it(Te=>Te.filter(Ee=>ce-Ee.time<=Ne))},1e3)),()=>{clearInterval(q)}},[Re]),ue(()=>{const q=X=>{Je.current=X};return St.on(ht.CHANGE_THEME_TAG,q),()=>{St.off(ht.CHANGE_THEME_TAG,q)}},[]),ue(()=>{Le(h)},[h]);const he=me(()=>e?.find(q=>q.type===cn.BFF),[e]),Ae=me(()=>{var q;return((q=he?.headers)===null||q===void 0?void 0:q["x-app-id"])+oo()},[he]),Se=se((q,X)=>{var ce;if(!he)return;const Ne=he.url;if(X?.query){const Ee=zn.stringify(X.query);q=`${q}?${Ee}`}const Te=location.search.slice(1);return(ce=ri(Te))===null||ce===void 0||ce.forEach(Ee=>{Ee.split("=")[0],Ee.split("=")[1]}),window.fetch(`${Ne}/api/${q}`,Object.assign({headers:Object.assign({"Content-Type":"application/json","x-user-id":Ae},he.headers),method:X.method,body:X.type==="beacon"?JSON.stringify({body:btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({},X.body),he.headers),{"x-user-id":Ae}))))}):JSON.stringify(X.body)},X.type==="beacon"&&{keepalive:!0})).then(Ee=>Ee.json()).catch(Ee=>Promise.reject(Ee))},[he,Ae]),yt=se((q,X)=>{if(!he)return;const ce=he.url;if(X?.query){const Ne=zn.stringify(X.query);q=`${q}?${Ne}`}return window.fetch(`${ce}/admin/${q}`,{headers:Object.assign({"Content-Type":"application/json"},he.headers),method:X.method,body:JSON.stringify(X.body)}).then(Ne=>Ne.json()).catch(Ne=>Promise.reject(Ne))},[he]),Wt=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te,Ee,We,Xe,L,J,Q,ie,oe,be,le;if(q=Object.assign(Object.assign({maxSize:(X=q?.maxSize)!==null&&X!==void 0?X:o,defaultSize:(ce=q?.defaultSize)!==null&&ce!==void 0?ce:l,hashTag:q?.hashTag,traceInfo:q?.traceInfo,themeTag:q?.themeTag,pageNum:q?.pageNum,contentFilter:q?.contentFilter,productFilter:q?.productFilter},Vt&&{chatlabsId:Vt}),C&&{type:"story"}),Ge)q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(Ge)});else if(i){const ge=(Ee=(Te=(Ne=ri(i))===null||Ne===void 0?void 0:Ne.filter(xe=>{var ee,ye;const Oe=xe.split("=")[0];return(ye=(ee=p?.channels)!==null&&ee!==void 0?ee:[])===null||ye===void 0?void 0:ye.includes(Oe)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&Ee!==void 0?Ee:"";ge&&(q=Object.assign(Object.assign({},q),{channel:decodeURIComponent(ge)}))}if(x){let ge=1;if(q=Object.assign(Object.assign(Object.assign({},q),{directPage:!0,level:1}),!i&&b&&b?.length>0&&{channel:b?.[0]}),!q?.channel||F.current)return;F.current=!0;let xe=[],ee=null;const ye=Oe=>ut(void 0,void 0,void 0,function*(){var rt,nt,lt,ot,vt,pt;if(Oe.pageNum=ge,ee=yield yt?.("recommend/direct_page",{method:"POST",body:Oe}),!ee?.success)return;R(!1),xe=xe.concat((ot=(lt=(nt=(rt=ee?.data)===null||rt===void 0?void 0:rt.recList)===null||nt===void 0?void 0:nt.filter)===null||lt===void 0?void 0:lt.call(nt,_e=>_e?.product||_e?.video))!==null&&ot!==void 0?ot:[]),M?.length===0&&(u(bt(Object.assign(Object.assign({},ee?.data),{recList:xe}))),ve(bt(Object.assign(Object.assign({},ee?.data),{recList:xe})))),((pt=(vt=ee?.data)===null||vt===void 0?void 0:vt.recList)===null||pt===void 0?void 0:pt.some(_e=>_e?.product||_e?.video))&&(ge=ge+1,yield ye(Oe))});return yield ye(q),!q?.hashTag&&ee&&E({rtc:(We=ee?.data)===null||We===void 0?void 0:We.rtc,requestId:(Xe=ee?.data)===null||Xe===void 0?void 0:Xe.requestId}),Object.assign(Object.assign({},ee?.data),{recList:xe})}Y?.enablePreview&&(q=Object.assign(Object.assign({},q),{directPage:!0,level:1,pageNum:(L=q?.pageNum)!==null&&L!==void 0?L:1}));const ne=yield Se?.("v1/recommend/list",{method:"POST",body:q});if(ne?.success){if(q?.hashTag||E({rtc:ne.data.rtc,requestId:ne.data.requestId}),Y?.enablePreview&&!x){let ge=[];return ge=ge.concat((oe=(ie=(Q=(J=ne?.data)===null||J===void 0?void 0:J.recList)===null||Q===void 0?void 0:Q.filter)===null||ie===void 0?void 0:ie.call(Q,ee=>ee?.product||ee?.video))!==null&&oe!==void 0?oe:[]),((le=(be=ne?.data)===null||be===void 0?void 0:be.recList)===null||le===void 0?void 0:le.some(ee=>ee?.product||ee?.video))||we(!0),Object.assign(Object.assign({},ne.data),{recList:ge})}return ne?.data}}),[Se,i,o,l,b,Ge,Vt,yt]),li=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te;if(M.length<=0)return;const Ee=M?.[M?.length-1],We=yield Wt(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:re?.hashTag},((X=Ee?.product)===null||X===void 0?void 0:X.itemId)&&{productFilter:[(ce=Ee?.product)===null||ce===void 0?void 0:ce.itemId]}),((Ne=Ee?.video)===null||Ne===void 0?void 0:Ne.itemId)&&{contentFilter:[(Te=Ee?.video)===null||Te===void 0?void 0:Te.itemId]}),{themeTag:Je.current}),Y?.enablePreview&&!x&&{pageNum:q}));return u(M.concat(bt(We))),ve(Ue.concat(bt(We))),We}),[Wt,M,re,Ue]),Ji=se((q,X)=>{var ce,Ne,Te,Ee,We;let Xe=!1;const L=(Ne=(ce=A?.data)===null||ce===void 0?void 0:ce.sxpPageConf)===null||Ne===void 0?void 0:Ne.globalConfig;if(!((Te=L?.session)===null||Te===void 0)&&Te.enable){const J=localStorage.getItem("sessionStartTime"),Q=J?JSON.parse(J):new Date().getTime();Math.floor((new Date().getTime()-Q)/1e3/60)>=((We=(Ee=L?.session)===null||Ee===void 0?void 0:Ee.expires)!==null&&We!==void 0?We:30)&&(X?.("sessionTimeOut"),dn(),Qe.current=new Date,Xe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else q&&dn();return Xe},[A]),wt=se(({userInfo:q,eventInfo:X,reportLayId:ce=!0})=>{var Ne,Te;if(!n||Y?.enablePreview)return;q||(q={});const Ee=no(),We={},Xe=location.search.slice(1);(Ne=ri(Xe))===null||Ne===void 0||Ne.forEach(oe=>{const be=oe.split("=")[0],le=oe.split("=")[1];We[be]=le});const L=We?.cl_source,J=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Ee,rtc:k.rtc,requestId:k.requestId},{playbookType:st}),tt&&ce&&{layoutVariantId:tt}),X),X?.position&&Ge&&{position:Number(X?.position)+1+""}),L&&{clSource:L}),Q=Object.entries(q).map(([oe,be])=>({name:oe,value:be})),ie=Object.entries(J).map(([oe,be])=>be&&{name:oe,value:be}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",q),console.log("eventInfo:",J),console.log("========= \u7ED3\u675F ========="),Se?.(`v2/cld/${(Te=he?.headers)===null||Te===void 0?void 0:Te["x-app-id"]}/${X?.eventSubject}${L?`/${decodeURIComponent(L)}`:""}`,{method:"POST",body:{userInfo:Q,eventInfo:ie},type:"beacon"})},[Se,k,n,Y?.enablePreview,tt,Y,st,he]),Xt=se((q,X)=>{var ce,Ne,Te;const Ee=vi(q),We=new URLSearchParams(window.location.search),Xe=We?.get("fbclid"),L={event_source_url:(ce=window?.location)===null||ce===void 0?void 0:ce.href,external_id:Ae,client_user_agent:(Te=(Ne=window?.navigator)===null||Ne===void 0?void 0:Ne.userAgent)!==null&&Te!==void 0?Te:"",fbc:Xe?`fb.2.${new Date().getTime()}.${Xe}`:"",fbp:qn("_fbp")?`${qn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},J=/\{\{(.*?)\}\}/g,Q=ie=>{if(ie){if(ie instanceof Array)ie?.map(oe=>Q(oe));else for(const oe in ie)if(Object.prototype.hasOwnProperty.call(ie,oe)){const be=ie?.[oe];if(typeof be=="object")Q(be);else if(typeof be=="string"){const le=be?.match(J);le&&le.forEach(ne=>{var ge;const xe=ne.substring(2,ne.length-2);try{let ee=new Function("fix_par","product",`return ${xe}`)(L,X);ee?(xe?.indexOf("currency")!==-1&&ee?.indexOf("-")!==-1&&typeof ee=="string"&&(ee=(ge=ee?.split("-"))===null||ge===void 0?void 0:ge[0]),ie[oe]=ee):delete ie[oe]}catch(ee){delete ie[oe],console.error("An error occurred:",ee?.message)}})}}}};return Q(Ee),Ee},[Ae]),gi=se(({eventName:q,product:X})=>{var ce,Ne,Te,Ee,We,Xe,L,J;if(!n||Y?.enablePreview)return;let Q=!1;const ie=(ce=Y?.pixel)===null||ce===void 0?void 0:ce[q];if(ie?.event_name&&typeof window?.fbq=="function"){let le=function(ne,ge,xe){const ee=new RegExp("([?&])"+ge+"=.*?(&|$)","i"),ye=ne.indexOf("?")!==-1?"&":"?";return ne.match(ee)?ne.replace(ee,"$1"+ge+"="+xe+"$2"):ne+ye+ge+"="+xe};if(q==="PageView"&&ie?.event_name==="PageView")if(!Ot.current)Ot.current=!0;else{const ne=window.location.href,ge=le(ne,"timestamp",Date.now());history.pushState({path:ge},"",ge),Q=!0}else window?.fbq("track",ie?.event_name,Xt(ie,X))}if(!Q){q==="PageView"&&typeof window?.gtag=="function"&&window?.gtag("event","page_view");const le=(Ne=Y?.tiktokPixel)===null||Ne===void 0?void 0:Ne[q];le?.event_name&&typeof window?.ttq=="object"&&typeof((Te=window?.ttq)===null||Te===void 0?void 0:Te.track)=="function"&&((Ee=window?.ttq)===null||Ee===void 0||Ee.track(le?.event_name,Xt(le,X)))}const oe=(We=Y?.snapchatPixel)===null||We===void 0?void 0:We[q];oe?.event_name&&typeof window?.snaptr=="function"&&window?.snaptr("track",oe?.event_name,Xt(oe,X));const be=(Xe=Y?.converApi)===null||Xe===void 0?void 0:Xe[q];if(f&&be){const le=Xt(be,X),ne={},ge=location.search.slice(1);(L=ri(ge))===null||L===void 0||L.forEach(ee=>{const ye=ee.split("=")[0],Oe=ee.split("=")[1];ne[ye]=Oe});const xe=ne?.cl_source;Se?.(`v2/fb/${(J=he?.headers)===null||J===void 0?void 0:J["x-app-id"]}/${q}${xe?`/${decodeURIComponent(xe)}`:""}`,{method:"POST",body:le,type:"beacon"})}},[Se,n,f,Y,he,Xt]),$t=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/recommend/like",{method:"POST",body:q});return X?.success}),[Se]),qt=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/recommend/unlike",{method:"POST",body:q});return X?.success}),[Se]),Yt=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/customform",{method:"POST",body:q});return X?.success}),[Se]),Tt=se(q=>ut(void 0,void 0,void 0,function*(){var X,ce,Ne,Te,Ee,We,Xe,L;const J=!!(!((Ne=(ce=(X=q?.data)===null||X===void 0?void 0:X.sxpPageConf)===null||ce===void 0?void 0:ce.globalConfig)===null||Ne===void 0)&&Ne.isShowTag);if(!(!i||!J))try{const Q=(We=(Ee=(Te=ri(i))===null||Te===void 0?void 0:Te.filter(oe=>{var be,le;const ne=oe.split("=")[0];return(le=(be=p?.channels)!==null&&be!==void 0?be:[])===null||le===void 0?void 0:le.includes(ne)}))===null||Ee===void 0?void 0:Ee.join("&"))!==null&&We!==void 0?We:"",ie=yield Se?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Q)}});W((L=(Xe=ie?.data)===null||Xe===void 0?void 0:Xe.tags)!==null&&L!==void 0?L:[])}catch(Q){console.log("e",Q)}}),[Se,i]),Qi=se((q,X,ce,Ne)=>{var Te,Ee,We,Xe,L,J,Q,ie,oe,be,le,ne,ge,xe,ee,ye,Oe,rt,nt,lt,ot,vt,pt,gt,_e,De,je,Nt,jt,ui,dt,oi,en,tn,nn,ln;const Kt=ce?.bindCta,Hl=((Te=X?.video)===null||Te===void 0?void 0:Te.bindProduct)||((Ee=X?.video)===null||Ee===void 0?void 0:Ee.bindProducts)&&((Xe=(We=X?.video)===null||We===void 0?void 0:We.bindProducts)===null||Xe===void 0?void 0:Xe.length)>0;let Ri="",on=null;qe?Ri="hashTagPage":!((L=X?.video)===null||L===void 0)&&L.url?(Ri="videoPage",on="video"):!((Q=(J=X?.video)===null||J===void 0?void 0:J.imgUrls)===null||Q===void 0)&&Q.length&&(Ri="imagePage",on="image");const Rn=(xe=(ne=(ie=ce?.tags)!==null&&ie!==void 0?ie:(le=(be=(oe=X?.video)===null||oe===void 0?void 0:oe.bindProducts)===null||be===void 0?void 0:be[0])===null||le===void 0?void 0:le.tags)!==null&&ne!==void 0?ne:(ge=X?.video)===null||ge===void 0?void 0:ge.tags)!==null&&xe!==void 0?xe:(ee=X?.product)===null||ee===void 0?void 0:ee.tags;wt?.({eventInfo:Object.assign(Object.assign({},q),{ctaId:(ye=Kt?.itemId)!==null&&ye!==void 0?ye:"",ctaName:(Oe=Kt?.title)!==null&&Oe!==void 0?Oe:"",contentTags:Rn?JSON.stringify(Rn):"",position:Ne+"",contentId:(nt=(rt=X?.video)===null||rt===void 0?void 0:rt.itemId)!==null&&nt!==void 0?nt:"",productId:Hl?ce?.itemId:"",traceInfo:(nn=(oi=(je=(pt=(lt=Kt?.traceInfo)!==null&<!==void 0?lt:(vt=(ot=X?.video)===null||ot===void 0?void 0:ot.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&pt!==void 0?pt:(De=(_e=(gt=X?.video)===null||gt===void 0?void 0:gt.bindProduct)===null||_e===void 0?void 0:_e.bindCta)===null||De===void 0?void 0:De.traceInfo)!==null&&je!==void 0?je:(dt=(ui=(jt=(Nt=X?.video)===null||Nt===void 0?void 0:Nt.bindProducts)===null||jt===void 0?void 0:jt[0])===null||ui===void 0?void 0:ui.bindCta)===null||dt===void 0?void 0:dt.traceInfo)!==null&&oi!==void 0?oi:(tn=(en=X?.product)===null||en===void 0?void 0:en.bindCta)===null||tn===void 0?void 0:tn.traceInfo)!==null&&nn!==void 0?nn:"",fromKName:Ri,fromKPage:(ln=location?.href)!==null&&ln!==void 0?ln:"",contentFormat:on})})},[wt,qe]),yi=se(()=>{var q,X,ce;const Ne=location.search.slice(1),Te={};(q=ri(Ne.replace(/\+/g,"%2B")))===null||q===void 0||q.map(Xe=>{const L=Xe.split("=")[0],J=Xe.split("=")[1];Te[L]=J});for(const Xe in Te)Te[Xe]=Te[Xe].replace(/%2B/g,"+");const Ee=Xe=>{var L;return(L=Te[Xe])!==null&&L!==void 0?L:""},We=new Date;Qe.current=We,wt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Ee("utm_source"),utmMedium:Ee("utm_medium"),utmCampaign:Ee("utm_campaign"),utmId:Ee("utm_id"),utmContent:Ee("utm_content"),enterTime:Math.floor(We/1e3)+"",requestId:null,enterUrl:(ce=(X=window?.location)===null||X===void 0?void 0:X.href)!==null&&ce!==void 0?ce:""},reportLayId:!1})},[wt]),Di=se(()=>ut(void 0,void 0,void 0,function*(){var q,X;const ce=yield Se?.("v1/account",{method:"GET"});return Rt((q=ce?.data)===null||q===void 0?void 0:q.chatLabsId),((X=ce?.data)===null||X===void 0?void 0:X.consentResult)==="true"}),[Se]),$i=se(q=>ut(void 0,void 0,void 0,function*(){const X=yield Se?.("v1/account/consent",{method:"POST",body:{consentResult:q}});return X?.success}),[Se]);ue(()=>{Lt||yi()},[Lt]),ue(()=>{if(Lt||a)return;R(!0);let q,X;Wt().then(ce=>{var Ne,Te,Ee,We,Xe,L,J,Q,ie,oe,be;if(ce){const le=bt(ce);let ne,ge;if(ce?.layoutVariantId){q=ce?.layoutVariantId,ft(ce?.layoutVariantId);const xe=(Te=(Ne=ce?.layoutVariantId)===null||Ne===void 0?void 0:Ne.split("-"))===null||Te===void 0?void 0:Te[1];xe&&(ne=w?.find(ee=>ee?.id===xe),ne?(te(ne),document.title=(Ee=ne?.name)!==null&&Ee!==void 0?Ee:"home",ge=(Xe=(We=ne?.data)===null||We===void 0?void 0:We.sxpPageConf)===null||Xe===void 0?void 0:Xe.globalConfig,Ie(ge),P?.(ne?.data),!((ie=(Q=(J=(L=ge?.consent)===null||L===void 0?void 0:L[0])===null||J===void 0?void 0:J.item)===null||Q===void 0?void 0:Q.props)===null||ie===void 0)&&ie.privacy_necessity&&ze(!0)):ze(!0))}else ze(!0);if(Ge||(ge?.playbook==="organic menu"||!ge&&Y?.playbook==="organic menu"?(At("organicMenu"),le.unshift("organic menu"),X="organicMenu"):(At("paidMedia"),X="paidMedia")),u(le),ve(le),Tt(ne??xt),Ge){const xe=le?.[0],ee=((oe=xe?.video)===null||oe===void 0?void 0:oe.traceInfo)||((be=xe?.product)===null||be===void 0?void 0:be.traceInfo)||"";wt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:Ge},q&&{layoutVariantId:q})}),wt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-ct?.current)/1e3)+""},q&&{layoutVariantId:q})})}}}).finally(()=>{wt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},q&&{layoutVariantId:q}),X&&{playbookType:X})}),R(!1)})},[Lt,Ge]),ue(()=>{a&&(R(!0),Tt(A),Wt().then(q=>{if(q){const X=bt(q);Y?.playbook==="organic menu"&&!Ge&&X.unshift("organic menu"),u(X),ve(X)}}).finally(()=>{R(!1)}))},[Wt,Tt,Ge]);const Vi=It("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",s);return v.createElement(il.Provider,{value:{rtcList:M,setRtcList:u,mutateLike:$t,mutateUnlike:qt,submitForm:Yt,popupDetailData:$,loadVideos:li,setPopupDetailData:ae,getRecommendVideos:Wt,bffEventReport:wt,isPreview:a,loading:j,sxpParameter:d,waterFallData:re,setWaterFallData:_,ctaEvent:Qi,swiperRef:N,openHashtag:Ce,setOpenHashtag:Le,cacheRtcList:Ue,setCacheRtcList:ve,cacheActiveIndex:fe,setCacheActiveIndex:Ke,isFromHashtag:qe,setIsFromHashtag:Ye,appDomain:s,hashTagSize:c,loadingImage:r??Vi,isOpenHashTag:h,tagList:B,setLoading:R,videoRef:Pe,setVideoRef:$e,bffFbReport:gi,isAgreePolicy:U,setIsAgreePolicy:G,curTime:Qe,h5EnterLink:yi,themeTag:Je,isShowConsent:Lt,selectTag:Et,setSelectTag:Fe,globalConfig:Y,popupCurTimeRef:H,checkCommodityIndexRef:pe,isEditor:x,isNoMoreData:K,updateChannel:Ht,channel:Ge,eventTimeList:Re,setEventTimeList:it,multiPostTimeRef:ct,refreshFeSession:Ji,getAccount:Di,accountSonsent:$i,isDiyH5:C}},Lt?v.createElement(vo,Object.assign({},(I=(D=(T=Y?.consent)===null||T===void 0?void 0:T[0])===null||D===void 0?void 0:D.item)===null||I===void 0?void 0:I.props)):t({rtcList:M,mutateLike:$t,mutateUnlike:qt,submitForm:Yt,tagList:B,pageData:xt}))};var nl=Me(po);function He(){return Si(il)}var ll;(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"})(ll||(ll={}));const ol=xi({$store:{},options:[],configs:[]}),mo=({children:t,isSsr:e,enable:i})=>{const[n,o]=Z([]),{schema:l}=ei(),[a,d]=Z(l.__STORE__||{}),[s,c]=Z([]);ue(()=>{var f;e||Bn(s,l?.dataSource)||c((f=l?.dataSource)!==null&&f!==void 0?f:[])},[l?.dataSource,e]);const r=se(()=>ut(void 0,void 0,void 0,function*(){const{$store:f,idMapName:m}=yield Hn("",s);d(f),h(f,m)}),[s]),h=(f,m)=>{const y=[];Object.entries(f).forEach(([g,x])=>{Object.keys(x).forEach(p=>{const b={label:`${m[g]} - ${p}`,value:`{{ ${g}.${p} }}`};y.push(b)})}),o(y)};return ue(()=>{e||r()},[r,e,l]),i?v.createElement(ol.Provider,{value:{$store:l.__STORE__||a,options:n,configs:s}},t):t};var fo=Me(mo);const Wi={id:Bi(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"},al=v.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[Wi],redoStack:[],popup:un,setPopup:()=>{}}),sl=si(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:l},a)=>{const[d,s]=Z(null),[c,r]=Z(n||{pointData:[Wi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[h,f]=Z([Wi]),[m,y]=Z([[Wi]]),[g,x]=Z([]),[p,b]=Z(un);typeof window<"u"&&(window.sxpPopup=(V,O)=>{b(Object.assign(Object.assign(Object.assign({},un),{id:V}),O))}),typeof window<"u"&&(window.getJointUtmLink=V=>(ro(),V?.indexOf("?")!==-1?V+(l?"&"+l:""):V+(l?"?"+l:""))),ue(()=>{y([c.pointData]),x([])},[c.type]);const A=se(V=>{const O=vi(c);O&&(O.dataSource=V,r?.(O))},[c]),[w,C]=Z();Ti(a,()=>({loadSchema(V){V&&(y([V.pointData]),r(V))},exportSchema(){return vi(c)},getPageInfoData(){return w},initPageInfoData(V){V&&C(V)}}));const P=me(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return v.createElement(al.Provider,{value:{resolver:e,currentNode:d,schema:c,setCurrentNode:s,setSchema:r,saveDataSource:A,prePiontData:h,setPrePiontData:f,pageInfoData:w,setPageInfoData:V=>C(Object.assign(Object.assign({},w),V)),undoStack:m,redoStack:g,setRedoStack:x,setUndoStack:y,getCurPageConf:P,popup:p,setPopup:b}},v.createElement(fo,{isSsr:i,enable:o},t))});var ho=Object.freeze({__proto__:null,EditorCore:sl}),Ao=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],bo=[{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 Mt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:o}=He(),l=se((s,c,r,h,f,m)=>{var y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j,R,k,E,N,F,U,G,$,ae,re,_,Ce,Le,Ue,ve,fe,Ke,qe;if(n?.findIndex(Qe=>Qe.target===s?.target)!==-1)return;s&&o?.(Qe=>[...Qe,{target:s?.target,time:new Date}]);let Pe="";e&&(!((g=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0)&&g.length||!((x=c?.video)===null||x===void 0)&&x.bindProduct)?Pe="pdpPage":i?Pe="hashTagPage":!((p=c?.video)===null||p===void 0)&&p.url?Pe="videoPage":!((b=c?.video)===null||b===void 0)&&b.imgUrls&&(!((w=(A=c?.video)===null||A===void 0?void 0:A.imgUrls)===null||w===void 0)&&w.length)?Pe="imagePage":c?.product&&(Pe="productPage");const $e=(D=(S=(C=r?.tags)!==null&&C!==void 0?C:(O=(V=(P=c?.video)===null||P===void 0?void 0:P.bindProducts)===null||V===void 0?void 0:V[0])===null||O===void 0?void 0:O.tags)!==null&&S!==void 0?S:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&D!==void 0?D:(I=c?.product)===null||I===void 0?void 0:I.tags;let Je=null;!((M=c?.video)===null||M===void 0)&&M.url?Je="video":!((u=c?.video)===null||u===void 0)&&u.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Je="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(j=r?.itemId)!==null&&j!==void 0?j:"",productName:(R=r?.title)!==null&&R!==void 0?R:"",price:r?.price?r?.price+"":"0",productCollection:(k=r?.collection)!==null&&k!==void 0?k:"",fromKName:Pe,fromKPage:location?.href,contentTags:$e?JSON.stringify($e):"",position:f+"",contentId:(N=(E=c?.video)===null||E===void 0?void 0:E.itemId)!==null&&N!==void 0?N:"",ctatId:(F=h?.itemId)!==null&&F!==void 0?F:"",traceInfo:(qe=(ve=(Le=(ae=(U=m??r?.traceInfo)!==null&&U!==void 0?U:($=(G=c?.video)===null||G===void 0?void 0:G.bindProduct)===null||$===void 0?void 0:$.traceInfo)!==null&&ae!==void 0?ae:(Ce=(_=(re=c?.video)===null||re===void 0?void 0:re.bindProducts)===null||_===void 0?void 0:_[0])===null||Ce===void 0?void 0:Ce.traceInfo)!==null&&Le!==void 0?Le:(Ue=c?.product)===null||Ue===void 0?void 0:Ue.traceInfo)!==null&&ve!==void 0?ve:(Ke=(fe=c?.video)===null||fe===void 0?void 0:fe.bindCta)===null||Ke===void 0?void 0:Ke.traceInfo)!==null&&qe!==void 0?qe:""},Je&&{contentFormat:Je})})},[t,e,i,n]),a=se((s,c,r,h,f)=>{var m,y,g,x,p,b,A,w,C,P,V,O,S,T;let D="";e&&(!((y=(m=s?.video)===null||m===void 0?void 0:m.bindProducts)===null||y===void 0)&&y.length||!((g=s?.video)===null||g===void 0)&&g.bindProduct)?D="pdpPage":s?.product&&(D="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:D,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:f+"",contentId:(x=s?.video)===null||x===void 0?void 0:x.itemId,ctatId:r?.itemId,traceInfo:(T=(O=(w=(p=c?.traceInfo)!==null&&p!==void 0?p:(A=(b=s?.video)===null||b===void 0?void 0:b.bindProduct)===null||A===void 0?void 0:A.traceInfo)!==null&&w!==void 0?w:(V=(P=(C=s?.video)===null||C===void 0?void 0:C.bindProducts)===null||P===void 0?void 0:P[0])===null||V===void 0?void 0:V.traceInfo)!==null&&O!==void 0?O:(S=s?.product)===null||S===void 0?void 0:S.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-h)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=se((s,c,r,h)=>{c&&c===Fi&&t?.({eventInfo:{lastFeed:s,themeTags:r?`['${r}']`:"",hashTags:h?`['${h}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:a,backMainFeed:d}}const go=({layout:t,columns:e,onChange:i})=>v.createElement(v.Fragment,null,e?.map((n,o)=>v.createElement("div",{key:o,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&v.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&v.createElement("input",Object.assign({className:"pb-appoint-form-container-input",type:"text",placeholder:t==="inline"?n?.title:"\u8BF7\u8F93\u5165",name:n?.dataIndex},i&&{onChange:i})))));var yo=Me(go);const wo=t=>{var e,i,{columns:n,style:o,title:l,textStyle:a,submitBgColor:d,submitColor:s,submitText:c,layoutType:r="inline",isExternalLink:h,isPopup:f,onClick:m,onClose:y,submitButtonStyle:g}=t,x=at(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:p,popupDetailData:b}=He(),{jumpToWeb:A}=Mt(),[w,C]=Z(!1),[P,V]=Z({}),[O,S]=Z(0),T=me(()=>[{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"}],[]),D=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),I=me(()=>vi(n)||T,[n,T]),M=se(B=>{const{name:W,value:j}=B.target;V(Object.assign(Object.assign({},P),{[W]:j}))},[P]),u=wi(B=>ut(void 0,void 0,void 0,function*(){var W,j,R,k,E;const N=P;if(!N)return;const F=(j=(W=Object.keys(N))===null||W===void 0?void 0:W.map(G=>{var $;return{name:G,value:($=N[G])!==null&&$!==void 0?$:""}}))===null||j===void 0?void 0:j.filter(G=>G?.value);if(!F||!F?.length)return;C(!0);const U=yield p?.({attributes:F});if(C(!1),U){if(h){const G=b,$=(R=G?.video)===null||R===void 0?void 0:R.bindProduct,ae=(E=(k=G?.video)===null||k===void 0?void 0:k.bindProduct)===null||E===void 0?void 0:E.bindCta,re=b?.index;A(B,G,$,ae,re)}f||y?.(),m?.()}}),1e3);return ue(()=>{const B=()=>{var W,j;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((j=document?.body)===null||j===void 0?void 0:j.clientHeight))<D?S(50):S(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),v.createElement("div",{className:"pb-appoint-form"},v.createElement("div",{className:`pb-appoint-form-title ${Be(Object.assign({},a))}`,dangerouslySetInnerHTML:{__html:Ve(l,a)}}),v.createElement("div",Object.assign({className:Be(Object.assign(Object.assign({},o),{marginTop:O}))},x),v.createElement("div",{className:"pb-appoint-form-container"},v.createElement(yo,{columns:I,layout:r,onChange:M}))),v.createElement("div",{className:"pb-appoint-form-btn-wrapper"},v.createElement("button",{"aria-label":c,onClick:u,className:"pb-appoint-form-btn",style:Object.assign({color:s,background:d},g),dangerouslySetInnerHTML:{__html:Ve(w?"loading...":c,g)}})))};var So=Me(wo);function mt(t,e){return t.extend=e,t}const xo=mt(So,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:bo,bindableProps:[],interactionRender:Ao},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 To=[{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:[{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"]}]}];function rl(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function vn(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:rl(e[i])&&rl(t[i])&&Object.keys(e[i]).length>0&&vn(t[i],e[i])})}const dl={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 Dt(){const t=typeof document<"u"?document:{};return vn(t,dl),t}const Eo={document:dl,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 Ct(){const t=typeof window<"u"?window:{};return vn(t,Eo),t}function ti(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Io(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function pi(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function zt(){return Date.now()}function ko(t){const e=Ct();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Co(t,e){e===void 0&&(e="x");const i=Ct();let n,o,l;const a=ko(t);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(d=>d.replace(",",".")).join(", ")),l=new i.WebKitCSSMatrix(o==="none"?"":o)):(l=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=l.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=l.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=l.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function zi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Po(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Bt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Po(n)){const o=Object.keys(Object(n)).filter(l=>e.indexOf(l)<0);for(let l=0,a=o.length;l<a;l+=1){const d=o[l],s=Object.getOwnPropertyDescriptor(n,d);s!==void 0&&s.enumerable&&(zi(t[d])&&zi(n[d])?n[d].__swiper__?t[d]=n[d]:Bt(t[d],n[d]):!zi(t[d])&&zi(n[d])?(t[d]={},n[d].__swiper__?t[d]=n[d]:Bt(t[d],n[d])):t[d]=n[d])}}}return t}function Ui(t,e,i){t.style.setProperty(e,i)}function cl(t){let{swiper:e,targetPosition:i,side:n}=t;const o=Ct(),l=-e.translate;let a=null,d;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=i>l?"next":"prev",r=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,h=()=>{d=new Date().getTime(),a===null&&(a=d);const f=Math.max(Math.min((d-a)/s,1),0),m=.5-Math.cos(f*Math.PI)/2;let y=l+m*(i-l);if(r(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),r(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(h)};h()}function Gt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Hi(t){try{console.warn(t);return}catch{}}function mi(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ti(e)),i}function ul(t){const e=Ct(),i=Dt(),n=t.getBoundingClientRect(),o=i.body,l=t.clientTop||o.clientTop||0,a=t.clientLeft||o.clientLeft||0,d=t===e?e.scrollY:t.scrollTop,s=t===e?e.scrollX:t.scrollLeft;return{top:n.top+d-l,left:n.left+s-a}}function Oo(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Lo(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ii(t,e){return Ct().getComputedStyle(t,null).getPropertyValue(e)}function Ei(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Xi(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function pn(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function mn(t,e,i){const n=Ct();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Ze(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let fn;function jo(){const t=Ct(),e=Dt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function vl(){return fn||(fn=jo()),fn}let hn;function Mo(t){let{userAgent:e}=t===void 0?{}:t;const i=vl(),n=Ct(),o=n.navigator.platform,l=e||n.navigator.userAgent,a={ios:!1,android:!1},d=n.screen.width,s=n.screen.height,c=l.match(/(Android);?[\s\/]+([\d.]+)?/);let r=l.match(/(iPad).*OS\s([\d_]+)/);const h=l.match(/(iPod)(.*OS\s([\d_]+))?/),f=!r&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let y=o==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!r&&y&&i.touch&&g.indexOf(`${d}x${s}`)>=0&&(r=l.match(/(Version)\/([\d.]+)/),r||(r=[0,1,"13_0_0"]),y=!1),c&&!m&&(a.os="android",a.android=!0),(r||f||h)&&(a.os="ios",a.ios=!0),a}function pl(t){return t===void 0&&(t={}),hn||(hn=Mo(t)),hn}let An;function No(){const t=Ct(),e=pl();let i=!1;function n(){const d=t.navigator.userAgent.toLowerCase();return d.indexOf("safari")>=0&&d.indexOf("chrome")<0&&d.indexOf("android")<0}if(n()){const d=String(t.navigator.userAgent);if(d.includes("Version/")){const[s,c]=d.split("Version/")[1].split(" ")[0].split(".").map(r=>Number(r));i=s<16||s===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),l=n(),a=l||o&&e.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:a,isWebView:o}}function Do(){return An||(An=No()),An}function Vo(t){let{swiper:e,on:i,emit:n}=t;const o=Ct();let l=null,a=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(h=>{a=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let y=f,g=m;h.forEach(x=>{let{contentBoxSize:p,contentRect:b,target:A}=x;A&&A!==e.el||(y=b?b.width:(p[0]||p).inlineSize,g=b?b.height:(p[0]||p).blockSize)}),(y!==f||g!==m)&&d()})}),l.observe(e.el))},c=()=>{a&&o.cancelAnimationFrame(a),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},r=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",d),o.addEventListener("orientationchange",r)}),i("destroy",()=>{c(),o.removeEventListener("resize",d),o.removeEventListener("orientationchange",r)})}function Ro(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=[],a=Ct(),d=function(r,h){h===void 0&&(h={});const f=a.MutationObserver||a.WebkitMutationObserver,m=new f(y=>{if(e.__preventObserver__)return;if(y.length===1){o("observerUpdate",y[0]);return}const g=function(){o("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});m.observe(r,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:typeof h.childList>"u"?!0:h.childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),l.push(m)},s=()=>{if(e.params.observer){if(e.params.observeParents){const r=Xi(e.hostEl);for(let h=0;h<r.length;h+=1)d(r[h])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},c=()=>{l.forEach(r=>{r.disconnect()}),l.splice(0,l.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",c)}var Bo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(l=>{n.eventsListeners[l]||(n.eventsListeners[l]=[]),n.eventsListeners[l][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];e.apply(n,a)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](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(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,l)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(l,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return typeof l[0]=="string"||Array.isArray(l[0])?(e=l[0],i=l.slice(1,l.length),n=t):(e=l[0].events,i=l[0].data,n=l[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(n,i)})}),t}};function Fo(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ii(n,"padding-left")||0,10)-parseInt(ii(n,"padding-right")||0,10),i=i-parseInt(ii(n,"padding-top")||0,10)-parseInt(ii(n,"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 Wo(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:l,rtlTranslate:a,wrongRTL:d}=t,s=t.virtual&&i.virtual.enabled,c=s?t.virtual.slides.length:t.slides.length,r=Gt(o,`.${t.params.slideClass}, swiper-slide`),h=s?t.virtual.slides.length:r.length;let f=[];const m=[],y=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let x=i.slidesOffsetAfter;typeof x=="function"&&(x=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let A=i.spaceBetween,w=-g,C=0,P=0;if(typeof l>"u")return;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*l:typeof A=="string"&&(A=parseFloat(A)),t.virtualSize=-A,r.forEach(T=>{a?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ui(n,"--swiper-centered-offset-before",""),Ui(n,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(r):t.grid&&t.grid.unsetSlides();let O;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){O=0;let D;if(r[T]&&(D=r[T]),V&&t.grid.updateSlide(T,D,r),!(r[T]&&ii(D,"display")==="none")){if(i.slidesPerView==="auto"){S&&(r[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(D),M=D.style.transform,u=D.style.webkitTransform;if(M&&(D.style.transform="none"),u&&(D.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?mn(D,"width",!0):mn(D,"height",!0);else{const B=e(I,"width"),W=e(I,"padding-left"),j=e(I,"padding-right"),R=e(I,"margin-left"),k=e(I,"margin-right"),E=I.getPropertyValue("box-sizing");if(E&&E==="border-box")O=B+R+k;else{const{clientWidth:N,offsetWidth:F}=D;O=B+W+j+R+k+(F-N)}}M&&(D.style.transform=M),u&&(D.style.webkitTransform=u),i.roundLengths&&(O=Math.floor(O))}else O=(l-(i.slidesPerView-1)*A)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),r[T]&&(r[T].style[t.getDirectionLabel("width")]=`${O}px`);r[T]&&(r[T].swiperSlideSize=O),y.push(O),i.centeredSlides?(w=w+O/2+C/2+A,C===0&&T!==0&&(w=w-l/2-A),T===0&&(w=w-l/2-A),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),P%i.slidesPerGroup===0&&f.push(w),m.push(w)):(i.roundLengths&&(w=Math.floor(w)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+O+A),t.virtualSize+=O+A,C=O,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+x,a&&d&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+A}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+A}px`),V&&t.grid.updateWrapperSize(O,f),!i.centeredSlides){const T=[];for(let D=0;D<f.length;D+=1){let I=f[D];i.roundLengths&&(I=Math.floor(I)),f[D]<=t.virtualSize-l&&T.push(I)}f=T,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(s&&i.loop){const T=y[0]+A;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let M=0;M<D;M+=1)f.push(f[f.length-1]+I)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)i.slidesPerGroup===1&&f.push(f[f.length-1]+T),m.push(m[m.length-1]+T),t.virtualSize+=T}if(f.length===0&&(f=[0]),A!==0){const T=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");r.filter((D,I)=>!i.cssMode||i.loop?!0:I!==r.length-1).forEach(D=>{D.style[T]=`${A}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=T-l;f=f.map(I=>I<=0?-g:I>D?D+x:I)}if(i.centerInsufficientSlides){let T=0;y.forEach(I=>{T+=I+(A||0)}),T-=A;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D<l){const I=(l-T-D)/2;f.forEach((M,u)=>{f[u]=M-I}),m.forEach((M,u)=>{m[u]=M+I})}}if(Object.assign(t,{slides:r,snapGrid:f,slidesGrid:m,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ui(n,"--swiper-centered-offset-before",`${-f[0]}px`),Ui(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+D)}if(h!==c&&t.emit("slidesLengthChange"),f.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!s&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);h<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function zo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,l;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=d=>n?e.slides[e.getSlideIndexByData(d)]:e.slides[d];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(d=>{i.push(d)});else for(l=0;l<Math.ceil(e.params.slidesPerView);l+=1){const d=e.activeIndex+l;if(d>e.slides.length&&!n)break;i.push(a(d))}else i.push(a(e.activeIndex));for(l=0;l<i.length;l+=1)if(typeof i[l]<"u"){const d=i[l].offsetHeight;o=d>o?d:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function Uo(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const ml=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Ho(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:l}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;o&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let d=i.spaceBetween;typeof d=="string"&&d.indexOf("%")>=0?d=parseFloat(d.replace("%",""))/100*e.size:typeof d=="string"&&(d=parseFloat(d));for(let s=0;s<n.length;s+=1){const c=n[s];let r=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(r-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),f=(a-l[0]+(i.centeredSlides?e.minTranslate():0)-r)/(c.swiperSlideSize+d),m=-(a-r),y=m+e.slidesSizesGrid[s],g=m>=0&&m<=e.size-e.slidesSizesGrid[s],x=m>=0&&m<e.size-1||y>1&&y<=e.size||m<=0&&y>=e.size;x&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s)),ml(c,x,i.slideVisibleClass),ml(c,g,i.slideFullyVisibleClass),c.progress=o?-h:h,c.originalProgress=o?-f:f}}function Xo(t){const e=this;if(typeof t>"u"){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:l,isEnd:a,progressLoop:d}=e;const s=l,c=a;if(n===0)o=0,l=!0,a=!0;else{o=(t-e.minTranslate())/n;const r=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;l=r||o<=0,a=h||o>=1,r&&(o=0),h&&(o=1)}if(i.loop){const r=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[r],m=e.slidesGrid[h],y=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?d=(g-f)/y:d=(g+y-m)/y,d>1&&(d-=1)}Object.assign(e,{progress:o,progressLoop:d,isBeginning:l,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),l&&!s&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(s&&!l||c&&!a)&&e.emit("fromEdge"),e.emit("progress",o)}const bn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function qo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,l=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,d=h=>Gt(n,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let s,c,r;if(l)if(i.loop){let h=o-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),s=d(`[data-swiper-slide-index="${h}"]`)}else s=d(`[data-swiper-slide-index="${o}"]`);else a?(s=e.filter(h=>h.column===o)[0],r=e.filter(h=>h.column===o+1)[0],c=e.filter(h=>h.column===o-1)[0]):s=e[o];s&&(a||(r=Lo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=e[0]),c=Oo(s,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(h=>{bn(h,h===s,i.slideActiveClass),bn(h,h===r,i.slideNextClass),bn(h,h===c,i.slidePrevClass)}),t.emitSlidesClasses()}const qi=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},gn=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},yn=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 n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=o,d=[a-e];d.push(...Array.from({length:e}).map((s,c)=>a+n+c)),t.slides.forEach((s,c)=>{d.includes(s.column)&&gn(t,c)});return}const l=o+n-1;if(t.params.rewind||t.params.loop)for(let a=o-e;a<=l+e;a+=1){const d=(a%i+i)%i;(d<o||d>l)&&gn(t,d)}else for(let a=Math.max(o-e,0);a<=Math.min(l+e,i-1);a+=1)a!==o&&(a>l||a<o)&&gn(t,a)};function Yo(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let l=0;l<e.length;l+=1)typeof e[l+1]<"u"?n>=e[l]&&n<e[l+1]-(e[l+1]-e[l])/2?o=l:n>=e[l]&&n<e[l+1]&&(o=l+1):n>=e[l]&&(o=l);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function Go(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let s=t,c;const r=m=>{let y=m-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof s>"u"&&(s=Yo(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const m=Math.min(o.slidesPerGroupSkip,s);c=m+Math.floor((s-m)/o.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),s===l&&!e.params.loop){c!==d&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(s===l&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=r(s);return}const h=e.grid&&o.grid&&o.grid.rows>1;let f;if(e.virtual&&o.virtual.enabled&&o.loop)f=r(s);else if(h){const m=e.slides.filter(g=>g.column===s)[0];let y=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(m),0)),f=Math.floor(y/o.grid.rows)}else if(e.slides[s]){const m=e.slides[s].getAttribute("data-swiper-slide-index");m?f=parseInt(m,10):f=s}else f=s;Object.assign(e,{previousSnapIndex:d,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:l,activeIndex:s}),e.initialized&&yn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function Zo(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(d=>{!o&&d.matches&&d.matches(`.${n.slideClass}, swiper-slide`)&&(o=d)});let l=!1,a;if(o){for(let d=0;d<i.slides.length;d+=1)if(i.slides[d]===o){l=!0,a=d;break}}if(o&&l)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Ko={updateSize:Fo,updateSlides:Wo,updateAutoHeight:zo,updateSlidesOffset:Uo,updateSlidesProgress:Ho,updateProgress:Xo,updateSlidesClasses:qo,updateActiveIndex:Go,updateClickedSlide:Zo};function _o(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:l}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let a=Co(l,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function Jo(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:l,progress:a}=i;let d=0,s=0;const c=0;i.isHorizontal()?d=n?-t:t:s=t,o.roundLengths&&(d=Math.floor(d),s=Math.floor(s)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:s,o.cssMode?l[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-s:o.virtualTranslate||(i.isHorizontal()?d-=i.cssOverflowAdjustment():s-=i.cssOverflowAdjustment(),l.style.transform=`translate3d(${d}px, ${s}px, ${c}px)`);let r;const h=i.maxTranslate()-i.minTranslate();h===0?r=0:r=(t-i.minTranslate())/h,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Qo(){return-this.snapGrid[0]}function $o(){return-this.snapGrid[this.snapGrid.length-1]}function ea(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;const s=l.minTranslate(),c=l.maxTranslate();let r;if(n&&t>s?r=s:n&&t<c?r=c:r=t,l.updateProgress(r),a.cssMode){const h=l.isHorizontal();if(e===0)d[h?"scrollLeft":"scrollTop"]=-r;else{if(!l.support.smoothScroll)return cl({swiper:l,targetPosition:-r,side:h?"left":"top"}),!0;d.scrollTo({[h?"left":"top"]:-r,behavior:"smooth"})}return!0}return e===0?(l.setTransition(0),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionEnd"))):(l.setTransition(e),l.setTranslate(r),i&&(l.emit("beforeTransitionStart",e,o),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(f){!l||l.destroyed||f.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 ta={getTranslate:_o,setTranslate:Jo,minTranslate:Qo,maxTranslate:$o,translateTo:ea};function ia(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 fl(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:l,previousIndex:a}=e;let d=n;if(d||(l>a?d="next":l<a?d="prev":d="reset"),e.emit(`transition${o}`),i&&l!==a){if(d==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),d==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function na(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),fl({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function la(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),fl({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var oa={setTransition:ia,transitionStart:na,transitionEnd:la};function aa(t,e,i,n,o){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;let a=t;a<0&&(a=0);const{params:d,snapGrid:s,slidesGrid:c,previousIndex:r,activeIndex:h,rtlTranslate:f,wrapperEl:m,enabled:y}=l;if(!y&&!n&&!o||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=l.params.speed);const g=Math.min(l.params.slidesPerGroupSkip,a);let x=g+Math.floor((a-g)/l.params.slidesPerGroup);x>=s.length&&(x=s.length-1);const p=-s[x];if(d.normalizeSlideIndex)for(let A=0;A<c.length;A+=1){const w=-Math.floor(p*100),C=Math.floor(c[A]*100),P=Math.floor(c[A+1]*100);typeof c[A+1]<"u"?w>=C&&w<P-(P-C)/2?a=A:w>=C&&w<P&&(a=A+1):w>=C&&(a=A)}if(l.initialized&&a!==h&&(!l.allowSlideNext&&(f?p>l.translate&&p>l.minTranslate():p<l.translate&&p<l.minTranslate())||!l.allowSlidePrev&&p>l.translate&&p>l.maxTranslate()&&(h||0)!==a))return!1;a!==(r||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(p);let b;if(a>h?b="next":a<h?b="prev":b="reset",f&&-p===l.translate||!f&&p===l.translate)return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),d.effect!=="slide"&&l.setTranslate(p),b!=="reset"&&(l.transitionStart(i,b),l.transitionEnd(i,b)),!1;if(d.cssMode){const A=l.isHorizontal(),w=f?p:-p;if(e===0){const C=l.virtual&&l.params.virtual.enabled;C&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),C&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[A?"scrollLeft":"scrollTop"]=w})):m[A?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return cl({swiper:l,targetPosition:w,side:A?"left":"top"}),!0;m.scrollTo({[A?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(e),l.setTranslate(p),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",e,n),l.transitionStart(i,b),e===0?l.transitionEnd(i,b):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,b))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function sa(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);const l=o.grid&&o.params.grid&&o.params.grid.rows>1;let a=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)a=a+o.virtual.slidesBefore;else{let d;if(l){const f=a*o.params.grid.rows;d=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else d=o.getSlideIndexByData(a);const s=l?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let r=o.params.slidesPerView;r==="auto"?r=o.slidesPerViewDynamic():(r=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&r%2===0&&(r=r+1));let h=s-d<r;if(c&&(h=h||d<Math.ceil(r/2)),n&&c&&o.params.slidesPerView!=="auto"&&!l&&(h=!1),h){const f=c?d<o.activeIndex?"prev":"next":d-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?d+1:d-s+1,slideRealIndex:f==="next"?o.realIndex:void 0})}if(l){const f=a*o.params.grid.rows;a=o.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=o.getSlideIndexByData(a)}return requestAnimationFrame(()=>{o.slideTo(a,e,i,n)}),o}function ra(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:o,params:l,animating:a}=n;if(!o||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let d=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(d=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<l.slidesPerGroupSkip?1:d,c=n.virtual&&l.virtual.enabled;if(l.loop){if(a&&!c&&l.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+s,t,e,i)}),!0}return l.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+s,t,e,i)}function da(t,e,i){e===void 0&&(e=!0);const n=this,{params:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:s,animating:c}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const r=n.virtual&&o.virtual.enabled;if(o.loop){if(c&&!r&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=d?n.translate:-n.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(h),y=l.map(p=>f(p));let g=l[y.indexOf(m)-1];if(typeof g>"u"&&o.cssMode){let p;l.forEach((b,A)=>{m>=b&&(p=A)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let x=0;if(typeof g<"u"&&(x=a.indexOf(g),x<0&&(x=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(x=x-n.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),o.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(x,t,e,i)}),!0;return n.slideTo(x,t,e,i)}function ca(t,e,i){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function ua(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);let l=o.activeIndex;const a=Math.min(o.params.slidesPerGroupSkip,l),d=a+Math.floor((l-a)/o.params.slidesPerGroup),s=o.rtlTranslate?o.translate:-o.translate;if(s>=o.snapGrid[d]){const c=o.snapGrid[d],r=o.snapGrid[d+1];s-c>(r-c)*n&&(l+=o.params.slidesPerGroup)}else{const c=o.snapGrid[d-1],r=o.snapGrid[d];s-c<=(r-c)*n&&(l-=o.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,o.slidesGrid.length-1),o.slideTo(l,t,e,i)}function va(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,l;const a=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?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Gt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),pi(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Gt(i,`${a}[data-swiper-slide-index="${l}"]`)[0]),pi(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var pa={slideTo:aa,slideToLoop:sa,slideNext:ra,slidePrev:da,slideReset:ca,slideToClosest:ua,slideToClickedSlide:va};function ma(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Gt(n,`.${i.slideClass}, swiper-slide`).forEach((h,f)=>{h.setAttribute("data-swiper-slide-index",f)})},l=e.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(l?i.grid.rows:1),d=e.slides.length%a!==0,s=l&&e.slides.length%i.grid.rows!==0,c=r=>{for(let h=0;h<r;h+=1){const f=e.isElement?mi("swiper-slide",[i.slideBlankClass]):mi("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(f)}};if(d){if(i.loopAddBlankSlides){const r=a-e.slides.length%a;c(r),e.recalcSlides(),e.updateSlides()}else Hi("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)");o()}else if(s){if(i.loopAddBlankSlides){const r=i.grid.rows-e.slides.length%i.grid.rows;c(r),e.recalcSlides(),e.updateSlides()}else Hi("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)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function fa(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:l,byController:a,byMousewheel:d}=t===void 0?{}:t;const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:c,allowSlidePrev:r,allowSlideNext:h,slidesEl:f,params:m}=s,{centeredSlides:y}=m;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&m.virtual.enabled){i&&(!m.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):m.centeredSlides&&s.snapIndex<m.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=r,s.allowSlideNext=h,s.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=s.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),y&&g%2===0&&(g=g+1));const x=m.slidesPerGroupAuto?g:m.slidesPerGroup;let p=x;p%x!==0&&(p+=x-p%x),p+=m.loopAdditionalSlides,s.loopedSlides=p;const b=s.grid&&m.grid&&m.grid.rows>1;c.length<g+p?Hi("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"):b&&m.grid.fill==="row"&&Hi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const A=[],w=[];let C=s.activeIndex;typeof l>"u"?l=s.getSlideIndex(c.filter(M=>M.classList.contains(m.slideActiveClass))[0]):C=l;const P=n==="next"||!n,V=n==="prev"||!n;let O=0,S=0;const T=b?Math.ceil(c.length/m.grid.rows):c.length,I=(b?c[l].column:l)+(y&&typeof o>"u"?-g/2+.5:0);if(I<p){O=Math.max(p-I,x);for(let M=0;M<p-I;M+=1){const u=M-Math.floor(M/T)*T;if(b){const B=T-u-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&A.push(W)}else A.push(T-u-1)}}else if(I+g>T-p){S=Math.max(I-(T-p*2),x);for(let M=0;M<S;M+=1){const u=M-Math.floor(M/T)*T;b?c.forEach((B,W)=>{B.column===u&&w.push(W)}):w.push(u)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),V&&A.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),P&&w.forEach(M=>{c[M].swiperLoopMoveDOM=!0,f.append(c[M]),c[M].swiperLoopMoveDOM=!1}),s.recalcSlides(),m.slidesPerView==="auto"?s.updateSlides():b&&(A.length>0&&V||w.length>0&&P)&&s.slides.forEach((M,u)=>{s.grid.updateSlide(u,M,s.slides)}),m.watchSlidesProgress&&s.updateSlidesOffset(),i){if(A.length>0&&V){if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C+O]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C+Math.ceil(O),0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else if(o){const M=b?A.length/m.grid.rows:A.length;s.slideTo(s.activeIndex+M,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&P)if(typeof e>"u"){const M=s.slidesGrid[C],B=s.slidesGrid[C-S]-M;d?s.setTranslate(s.translate-B):(s.slideTo(C-S,0,!1,!0),o&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-B,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-B))}else{const M=b?w.length/m.grid.rows:w.length;s.slideTo(s.activeIndex-M,0,!1,!0)}}if(s.allowSlidePrev=r,s.allowSlideNext=h,s.controller&&s.controller.control&&!a){const M={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(u=>{!u.destroyed&&u.params.loop&&u.loopFix({...M,slideTo:u.params.slidesPerView===m.slidesPerView?i:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...M,slideTo:s.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}s.emit("loopFix")}function ha(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const l=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[l]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Aa={loopCreate:ma,loopFix:fa,loopDestroy:ha};function ba(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 ga(){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 ya={setGrabCursor:ba,unsetGrabCursor:ga};function wa(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Dt()||n===Ct())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function hl(t,e,i){const n=Ct(),{params:o}=t,l=o.edgeSwipeDetection,a=o.edgeSwipeThreshold;return l&&(i<=a||i>=n.innerWidth-a)?l==="prevent"?(e.preventDefault(),!0):!1:!0}function Sa(t){const e=this,i=Dt();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){hl(e,n,n.targetTouches[0].pageX);return}const{params:l,touches:a,enabled:d}=e;if(!d||!l.simulateTouch&&n.pointerType==="mouse"||e.animating&&l.preventInteractionOnTransition)return;!e.animating&&l.cssMode&&l.loop&&e.loopFix();let s=n.target;if(l.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(s)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const c=!!l.noSwipingClass&&l.noSwipingClass!=="",r=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&r&&(s=r[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(l.noSwiping&&(f?wa(h,s):s.closest(h))){e.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const m=a.currentX,y=a.currentY;if(!hl(e,n,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=y,o.touchStartTime=zt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let g=!0;s.matches(o.focusableElements)&&(g=!1,s.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();const x=g&&e.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||x)&&!s.isContentEditable&&n.preventDefault(),l.freeMode&&l.freeMode.enabled&&e.freeMode&&e.animating&&!l.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function xa(t){const e=Dt(),i=this,n=i.touchEventsData,{params:o,touches:l,rtlTranslate:a,enabled:d}=i;if(!d||!o.simulateTouch&&t.pointerType==="mouse")return;let s=t;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(n.touchId!==null||s.pointerId!==n.pointerId))return;let c;if(s.type==="touchmove"){if(c=[...s.changedTouches].filter(P=>P.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=s;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",s);return}const r=c.pageX,h=c.pageY;if(s.preventedByNestedSwiper){l.startX=r,l.startY=h;return}if(!i.allowTouchMove){s.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h}),n.touchStartTime=zt());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(h<l.startY&&i.translate<=i.maxTranslate()||h>l.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(r<l.startX&&i.translate<=i.maxTranslate()||r>l.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&s.target===e.activeElement&&s.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=r,l.currentY=h;const f=l.currentX-l.startX,m=l.currentY-l.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let P;i.isHorizontal()&&l.currentY===l.startY||i.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:f*f+m*m>=25&&(P=Math.atan2(Math.abs(m),Math.abs(f))*180/Math.PI,n.isScrolling=i.isHorizontal()?P>o.touchAngle:90-P>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||s.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&s.cancelable&&s.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&s.stopPropagation();let y=i.isHorizontal()?f:m,g=i.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;o.oneWayMovement&&(y=Math.abs(y)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),l.diff=y,y*=o.touchRatio,a&&(y=-y,g=-g);const x=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const p=i.params.loop&&!o.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(P)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}let A;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&x!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(l,{startX:r,startY:h,currentX:r,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let w=!0,C=o.resistanceRatio;if(o.touchReleaseOnEdges&&(C=0),y>0?(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**C))):y<0&&(p&&b&&!A&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**C))),w&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(y)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=i.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Ta(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(C=>C.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:a,touches:d,rtlTranslate:s,slidesGrid:c,enabled:r}=e;if(!r||!a.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=zt(),f=h-i.touchStartTime;if(e.allowClick){const C=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(C&&C[0]||n.target,C),e.emit("tap click",n),f<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=zt(),pi(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||d.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 m;if(a.followFinger?m=s?e.translate:-e.translate:m=-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const y=m>=-e.maxTranslate()&&!e.params.loop;let g=0,x=e.slidesSizesGrid[0];for(let C=0;C<c.length;C+=C<a.slidesPerGroupSkip?1:a.slidesPerGroup){const P=C<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[C+P]<"u"?(y||m>=c[C]&&m<c[C+P])&&(g=C,x=c[C+P]-c[C]):(y||m>=c[C])&&(g=C,x=c[c.length-1]-c[c.length-2])}let p=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const A=(m-c[g])/x,w=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(A>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:g+w):e.slideTo(g)),e.swipeDirection==="prev"&&(A>1-a.longSwipesRatio?e.slideTo(g+w):b!==null&&A<0&&Math.abs(A)>a.longSwipesRatio?e.slideTo(b):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+w):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:g+w),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:g))}}function Al(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:l}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const d=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!d?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?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=o,t.allowSlideNext=n,t.params.watchOverflow&&l!==t.snapGrid&&t.checkOverflow()}function Ea(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ia(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)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 o;const l=t.maxTranslate()-t.minTranslate();l===0?o=0:o=(t.translate-t.minTranslate())/l,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ka(t){const e=this;qi(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ca(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const bl=(t,e)=>{const i=Dt(),{params:n,el:o,wrapperEl:l,device:a}=t,d=!!n.nested,s=e==="on"?"addEventListener":"removeEventListener",c=e;!o||typeof o=="string"||(i[s]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:d}),o[s]("touchstart",t.onTouchStart,{passive:!1}),o[s]("pointerdown",t.onTouchStart,{passive:!1}),i[s]("touchmove",t.onTouchMove,{passive:!1,capture:d}),i[s]("pointermove",t.onTouchMove,{passive:!1,capture:d}),i[s]("touchend",t.onTouchEnd,{passive:!0}),i[s]("pointerup",t.onTouchEnd,{passive:!0}),i[s]("pointercancel",t.onTouchEnd,{passive:!0}),i[s]("touchcancel",t.onTouchEnd,{passive:!0}),i[s]("pointerout",t.onTouchEnd,{passive:!0}),i[s]("pointerleave",t.onTouchEnd,{passive:!0}),i[s]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[s]("click",t.onClick,!0),n.cssMode&&l[s]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Al,!0):t[c]("observerUpdate",Al,!0),o[s]("load",t.onLoad,{capture:!0}))};function Pa(){const t=this,{params:e}=t;t.onTouchStart=Sa.bind(t),t.onTouchMove=xa.bind(t),t.onTouchEnd=Ta.bind(t),t.onDocumentTouchStart=Ca.bind(t),e.cssMode&&(t.onScroll=Ia.bind(t)),t.onClick=Ea.bind(t),t.onLoad=ka.bind(t),bl(t,"on")}function Oa(){bl(this,"off")}var La={attachEvents:Pa,detachEvents:Oa};const gl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ja(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,l=n.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=t.getBreakpoint(l,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const s=(a in l?l[a]:void 0)||t.originalParams,c=gl(t,n),r=gl(t,s),h=t.params.grabCursor,f=s.grabCursor,m=n.enabled;c&&!r?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&r&&(o.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!f?t.unsetGrabCursor():!h&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof s[A]>"u")return;const w=n[A]&&n[A].enabled,C=s[A]&&s[A].enabled;w&&!C&&t[A].disable(),!w&&C&&t[A].enable()});const y=s.direction&&s.direction!==n.direction,g=n.loop&&(s.slidesPerView!==n.slidesPerView||y),x=n.loop;y&&i&&t.changeDirection(),Bt(t.params,s);const p=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!p?t.disable():!m&&p&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",s),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!x&&b?(t.loopCreate(e),t.updateSlides()):x&&!b&&t.loopDestroy()),t.emit("breakpoint",s)}function Ma(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=Ct(),l=e==="window"?o.innerHeight:i.clientHeight,a=Object.keys(t).map(d=>{if(typeof d=="string"&&d.indexOf("@")===0){const s=parseFloat(d.substr(1));return{value:l*s,point:d}}return{value:d,point:d}});a.sort((d,s)=>parseInt(d.value,10)-parseInt(s.value,10));for(let d=0;d<a.length;d+=1){const{point:s,value:c}=a[d];e==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(n=s):c<=i.clientWidth&&(n=s)}return n||"max"}var Na={setBreakpoint:ja,getBreakpoint:Ma};function Da(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function Va(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:l}=t,a=Da(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{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(...a),o.classList.add(...e),t.emitContainerClasses()}function Ra(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ba={addClasses:Va,removeClasses:Ra};function Fa(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,l=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*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 Wa={checkOverflow:Fa},wn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function za(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],l=n[o];if(typeof l!="object"||l===null){Bt(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in l)){Bt(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Bt(e,n)}}const Sn={eventsEmitter:Bo,update:Ko,translate:ta,transition:oa,slide:pa,loop:Aa,grabCursor:ya,events:La,breakpoints:Na,checkOverflow:Wa,classes:Ba},xn={};let Tn=class Qt{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=Bt({},i),e&&!i.el&&(i.el=e);const a=Dt();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){const r=[];return a.querySelectorAll(i.el).forEach(h=>{const f=Bt({},i,{el:h});r.push(new Qt(f))}),r}const d=this;d.__swiper__=!0,d.support=vl(),d.device=pl({userAgent:i.userAgent}),d.browser=Do(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],i.modules&&Array.isArray(i.modules)&&d.modules.push(...i.modules);const s={};d.modules.forEach(r=>{r({params:i,swiper:d,extendParams:za(i,s),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const c=Bt({},wn,s);return d.params=Bt({},c,xn,i),d.originalParams=Bt({},d.params),d.passedParams=Bt({},i),d.params&&d.params.on&&Object.keys(d.params.on).forEach(r=>{d.on(r,d.params.on[r])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return d.params.direction==="horizontal"},isVertical(){return d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}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:n}=this,o=Gt(i,`.${n.slideClass}, swiper-slide`),l=Ei(o[0]);return Ei(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:n}=e;e.slides=Gt(i,`.${n.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 n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),a=(n.maxTranslate()-o)*e+o;n.translateTo(a,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:l,slidesGrid:a,slidesSizesGrid:d,size:s,activeIndex:c}=n;let r=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let h=l[c]?Math.ceil(l[c].swiperSlideSize):0,f;for(let m=c+1;m<l.length;m+=1)l[m]&&!f&&(h+=Math.ceil(l[m].swiperSlideSize),r+=1,h>s&&(f=!0));for(let m=c-1;m>=0;m-=1)l[m]&&!f&&(h+=l[m].swiperSlideSize,r+=1,h>s&&(f=!0))}else if(e==="current")for(let h=c+1;h<l.length;h+=1)(i?a[h]+d[h]-a[c]<s:a[h]-a[c]<s)&&(r+=1);else for(let h=c-1;h>=0;h-=1)a[c]-a[h]<s&&(r+=1);return r}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&qi(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const a=e.rtlTranslate?e.translate*-1:e.translate,d=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(d),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(a.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(l=>{e==="vertical"?l.style.width="":l.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}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 n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Gt(n,o())[0];return!a&&i.params.createElements&&(a=mi("div",i.params.wrapperClass),n.append(a),Gt(n,`.${i.params.slideClass}`).forEach(d=>{a.append(d)})),Object.assign(i,{el:n,wrapperEl:a,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ii(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ii(n,"direction")==="rtl"),wrongRTL:ii(a,"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 o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(l=>{l.complete?qi(i,l):l.addEventListener("load",a=>{qi(i,a.target)})}),yn(i),i.initialized=!0,yn(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:l,wrapperEl:a,slides:d}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),a&&a.removeAttribute("style"),d&&d.length&&d.forEach(s=>{s.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(s=>{n.off(s)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),Io(n)),n.destroyed=!0),null}static extendDefaults(e){Bt(xn,e)}static get extendedDefaults(){return xn}static get defaults(){return wn}static installModule(e){Qt.prototype.__modules__||(Qt.prototype.__modules__=[]);const i=Qt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Qt.installModule(i)),Qt):(Qt.installModule(e),Qt)}};Object.keys(Sn).forEach(t=>{Object.keys(Sn[t]).forEach(e=>{Tn.prototype[e]=Sn[t][e]})}),Tn.use([Vo,Ro]);const yl=["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 di(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function fi(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:di(e[n])&&di(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:fi(t[n],e[n]):t[n]=e[n]})}function wl(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Sl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function xl(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Tl(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function Ua(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ha(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:l,prevEl:a,scrollbarEl:d,paginationEl:s}=t;const c=o.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:r,pagination:h,navigation:f,scrollbar:m,virtual:y,thumbs:g}=e;let x,p,b,A,w,C,P,V;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&r.thumbs&&!r.thumbs.swiper&&(x=!0),o.includes("controller")&&n.controller&&n.controller.control&&r.controller&&!r.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(r.pagination||r.pagination===!1)&&h&&!h.el&&(b=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(r.scrollbar||r.scrollbar===!1)&&m&&!m.el&&(A=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||l)&&(r.navigation||r.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const O=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),r[S].prevEl=void 0,r[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),r[S].el=void 0,e[S].el=void 0))};o.includes("loop")&&e.isElement&&(r.loop&&!n.loop?C=!0:!r.loop&&n.loop?P=!0:V=!0),c.forEach(S=>{if(di(r[S])&&di(n[S]))Object.assign(r[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&O(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&O(S):r[S]=n[S]}}),c.includes("controller")&&!p&&e.controller&&e.controller.control&&r.controller&&r.controller.control&&(e.controller.control=r.controller.control),o.includes("children")&&i&&y&&r.virtual.enabled?(y.slides=i,y.update(!0)):o.includes("virtual")&&y&&r.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),o.includes("children")&&i&&r.loop&&(V=!0),x&&g.init()&&g.update(!0),p&&(e.controller.control=r.controller.control),b&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(r.pagination.el=s),h.init(),h.render(),h.update()),A&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(r.scrollbar.el=d),m.init(),m.updateSize(),m.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)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),l&&(r.navigation.nextEl=l),a&&(r.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(C||V)&&e.loopDestroy(),(P||V)&&e.loopCreate(),e.update()}function Xa(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};fi(i,wn),i._emitClasses=!0,i.init=!1;const l={},a=yl.map(s=>s.replace(/_/,"")),d=Object.assign({},t);return Object.keys(d).forEach(s=>{typeof t[s]>"u"||(a.indexOf(s)>=0?di(t[s])?(i[s]={},o[s]={},fi(i[s],t[s]),fi(o[s],t[s])):(i[s]=t[s],o[s]=t[s]):s.search(/on[A-Z]/)===0&&typeof t[s]=="function"?e?n[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:i.on[`${s[2].toLowerCase()}${s.substr(3)}`]=t[s]:l[s]=t[s])}),["navigation","pagination","scrollbar"].forEach(s=>{i[s]===!0&&(i[s]={}),i[s]===!1&&delete i[s]}),{params:i,passedParams:o,rest:l,events:n}}function qa(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:l,scrollbarEl:a,swiper:d}=t;wl(e)&&n&&o&&(d.params.navigation.nextEl=n,d.originalParams.navigation.nextEl=n,d.params.navigation.prevEl=o,d.originalParams.navigation.prevEl=o),Sl(e)&&l&&(d.params.pagination.el=l,d.originalParams.pagination.el=l),xl(e)&&a&&(d.params.scrollbar.el=a,d.originalParams.scrollbar.el=a),d.init(i)}function Ya(t,e,i,n,o){const l=[];if(!e)return l;const a=s=>{l.indexOf(s)<0&&l.push(s)};if(i&&n){const s=n.map(o),c=i.map(o);s.join("")!==c.join("")&&a("children"),n.length!==i.length&&a("children")}return yl.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in t&&s in e)if(di(t[s])&&di(e[s])){const c=Object.keys(t[s]),r=Object.keys(e[s]);c.length!==r.length?a(s):(c.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}),r.forEach(h=>{t[s][h]!==e[s][h]&&a(s)}))}else t[s]!==e[s]&&a(s)}),l}const Ga=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 Yi(){return Yi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Yi.apply(this,arguments)}function El(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Il(t){const e=[];return v.Children.toArray(t).forEach(i=>{El(i)?e.push(i):i.props&&i.props.children&&Il(i.props.children).forEach(n=>e.push(n))}),e}function Za(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return v.Children.toArray(t).forEach(n=>{if(El(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=Il(n.props.children);o.length>0?o.forEach(l=>e.push(l)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ka(t,e,i){if(!i)return null;const n=r=>{let h=r;return r<0?h=e.length+r:h>=e.length&&(h=h-e.length),h},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:l,to:a}=i,d=t.params.loop?-e.length:0,s=t.params.loop?e.length*2:e.length,c=[];for(let r=d;r<s;r+=1)r>=l&&r<=a&&c.push(e[n(r)]);return c.map((r,h)=>v.cloneElement(r,{swiper:t,style:o,key:r.props.virtualIndex||r.key||`slide-${h}`}))}function Ii(t,e){return typeof window>"u"?ue(t,e):Yl(t,e)}const En=xi(null),ki=()=>Si(En),_a=xi(null),_t=si(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:l,onSwiper:a,...d}=t===void 0?{}:t,s=!1;const[c,r]=Z("swiper"),[h,f]=Z(null),[m,y]=Z(!1),g=de(!1),x=de(null),p=de(null),b=de(null),A=de(null),w=de(null),C=de(null),P=de(null),V=de(null),{params:O,passedParams:S,rest:T,events:D}=Xa(d),{slides:I,slots:M}=Za(l),u=()=>{y(!m)};Object.assign(O.on,{_containerClasses(k,E){r(E)}});const B=()=>{Object.assign(O.on,D),s=!0;const k={...O};if(delete k.wrapperClass,p.current=new Tn(k),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=I;const E={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};fi(p.current.params.virtual,E),fi(p.current.originalParams.virtual,E)}};x.current||B(),p.current&&p.current.on("_beforeBreakpoint",u);const W=()=>{s||!D||!p.current||Object.keys(D).forEach(k=>{p.current.on(k,D[k])})},j=()=>{!D||!p.current||Object.keys(D).forEach(k=>{p.current.off(k,D[k])})};ue(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",u)}),ue(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),Ii(()=>{if(e&&(e.current=x.current),!!x.current)return p.current.destroyed&&B(),qa({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:P.current,scrollbarEl:V.current,swiper:p.current},O),a&&!p.current.destroyed&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Ii(()=>{W();const k=Ya(S,b.current,I,A.current,E=>E.key);return b.current=S,A.current=I,k.length&&p.current&&!p.current.destroyed&&Ha({swiper:p.current,slides:I,passedParams:S,changedParams:k,nextEl:w.current,prevEl:C.current,scrollbarEl:V.current,paginationEl:P.current}),()=>{j()}}),Ii(()=>{Ga(p.current)},[h]);function R(){return O.virtual?Ka(p.current,I,h):I.map((k,E)=>v.cloneElement(k,{swiper:p.current,swiperSlideIndex:E}))}return v.createElement(n,Yi({ref:x,className:Tl(`${c}${i?` ${i}`:""}`)},T),v.createElement(_a.Provider,{value:p.current},M["container-start"],v.createElement(o,{className:Ua(O.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),wl(O)&&v.createElement(v.Fragment,null,v.createElement("div",{ref:C,className:"swiper-button-prev"}),v.createElement("div",{ref:w,className:"swiper-button-next"})),xl(O)&&v.createElement("div",{ref:V,className:"swiper-scrollbar"}),Sl(O)&&v.createElement("div",{ref:P,className:"swiper-pagination"}),M["container-end"]))});_t.displayName="Swiper";const Ft=si(function(t,e){let{tag:i="div",children:n,className:o="",swiper:l,zoom:a,lazy:d,virtualIndex:s,swiperSlideIndex:c,...r}=t===void 0?{}:t;const h=de(null),[f,m]=Z("swiper-slide"),[y,g]=Z(!1);function x(w,C,P){C===h.current&&m(P)}Ii(()=>{if(typeof c<"u"&&(h.current.swiperSlideIndex=c),e&&(e.current=h.current),!(!h.current||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",x),()=>{l&&l.off("_slideClass",x)}}}),Ii(()=>{l&&h.current&&!l.destroyed&&m(l.getSlideClasses(h.current))},[l]);const p={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof n=="function"?n(p):n,A=()=>{g(!0)};return v.createElement(i,Yi({ref:h,className:Tl(`${f}${o?` ${o}`:""}`),"data-swiper-slide-index":s,onLoad:A},r),a&&v.createElement(En.Provider,{value:p},v.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&v.createElement(En.Provider,{value:p},b(),d&&!y&&v.createElement("div",{className:"swiper-lazy-preloader"})))});Ft.displayName="SwiperSlide";function In(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Dt(),a=Ct();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function d(r){if(!e.enabled)return;const{rtlTranslate:h}=e;let f=r;f.originalEvent&&(f=f.originalEvent);const m=f.keyCode||f.charCode,y=e.params.keyboard.pageUpDown,g=y&&m===33,x=y&&m===34,p=m===37,b=m===39,A=m===38,w=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&w||x)||!e.allowSlidePrev&&(e.isHorizontal()&&p||e.isVertical()&&A||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(l.activeElement&&l.activeElement.nodeName&&(l.activeElement.nodeName.toLowerCase()==="input"||l.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(g||x||p||b||A||w)){let C=!1;if(Xi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Xi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const P=e.el,V=P.clientWidth,O=P.clientHeight,S=a.innerWidth,T=a.innerHeight,D=ul(P);h&&(D.left-=P.scrollLeft);const I=[[D.left,D.top],[D.left+V,D.top],[D.left,D.top+O],[D.left+V,D.top+O]];for(let M=0;M<I.length;M+=1){const u=I[M];if(u[0]>=0&&u[0]<=S&&u[1]>=0&&u[1]<=T){if(u[0]===0&&u[1]===0)continue;C=!0}}if(!C)return}e.isHorizontal()?((g||x||p||b)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((x||b)&&!h||(g||p)&&h)&&e.slideNext(),((g||p)&&!h||(x||b)&&h)&&e.slidePrev()):((g||x||A||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(x||w)&&e.slideNext(),(g||A)&&e.slidePrev()),o("keyPress",m)}}function s(){e.keyboard.enabled||(l.addEventListener("keydown",d),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(l.removeEventListener("keydown",d),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Gi(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Ct();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 a,d=zt(),s;const c=[];function r(A){let V=0,O=0,S=0,T=0;return"detail"in A&&(O=A.detail),"wheelDelta"in A&&(O=-A.wheelDelta/120),"wheelDeltaY"in A&&(O=-A.wheelDeltaY/120),"wheelDeltaX"in A&&(V=-A.wheelDeltaX/120),"axis"in A&&A.axis===A.HORIZONTAL_AXIS&&(V=O,O=0),S=V*10,T=O*10,"deltaY"in A&&(T=A.deltaY),"deltaX"in A&&(S=A.deltaX),A.shiftKey&&!S&&(S=T,T=0),(S||T)&&A.deltaMode&&(A.deltaMode===1?(S*=40,T*=40):(S*=800,T*=800)),S&&!V&&(V=S<1?-1:1),T&&!O&&(O=T<1?-1:1),{spinX:V,spinY:O,pixelX:S,pixelY:T}}function h(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(A){return e.params.mousewheel.thresholdDelta&&A.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&zt()-d<e.params.mousewheel.thresholdTime?!1:A.delta>=6&&zt()-d<60?!0:(A.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",A.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",A.raw)),d=new l.Date().getTime(),!1)}function y(A){const w=e.params.mousewheel;if(A.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 g(A){let w=A,C=!0;if(!e.enabled||A.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const P=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let V=e.el;e.params.mousewheel.eventsTarget!=="container"&&(V=document.querySelector(e.params.mousewheel.eventsTarget));const O=V&&V.contains(w.target);if(!e.mouseEntered&&!O&&!P.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let S=0;const T=e.rtlTranslate?-1:1,D=r(w);if(P.forceToAxis)if(e.isHorizontal())if(Math.abs(D.pixelX)>Math.abs(D.pixelY))S=-D.pixelX*T;else return!0;else if(Math.abs(D.pixelY)>Math.abs(D.pixelX))S=-D.pixelY;else return!0;else S=Math.abs(D.pixelX)>Math.abs(D.pixelY)?-D.pixelX*T:-D.pixelY;if(S===0)return!0;P.invert&&(S=-S);let I=e.getTranslate()+S*P.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),C=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),C&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:zt(),delta:Math.abs(S),direction:Math.sign(S),raw:A};c.length>=2&&c.shift();const u=c.length?c[c.length-1]:void 0;if(c.push(M),u?(M.direction!==u.direction||M.delta>u.delta||M.time>u.time+150)&&m(M):m(M),y(M))return!0}else{const M={time:zt(),delta:Math.abs(S),direction:Math.sign(S)},u=s&&M.time<s.time+500&&M.delta<=s.delta&&M.direction===s.direction;if(!u){s=void 0;let B=e.getTranslate()+S*P.sensitivity;const W=e.isBeginning,j=e.isEnd;if(B>=e.minTranslate()&&(B=e.minTranslate()),B<=e.maxTranslate()&&(B=e.maxTranslate()),e.setTransition(0),e.setTranslate(B),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!W&&e.isBeginning||!j&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const R=c.length?c[c.length-1]:void 0,k=c[0];if(c.push(M),R&&(M.delta>R.delta||M.direction!==R.direction))c.splice(0);else if(c.length>=15&&M.time-k.time<500&&k.delta-M.delta>=1&&M.delta<=6){const E=S>0?.8:.2;s=M,c.splice(0),a=pi(()=>{e.slideToClosest(e.params.speed,!0,void 0,E)},0)}a||(a=pi(()=>{s=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(u||o("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),P.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function x(A){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[A]("mouseenter",h),w[A]("mouseleave",f),w[A]("wheel",g)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):e.mousewheel.enabled?!1:(x("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):e.mousewheel.enabled?(x("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function kn(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let l=Gt(t.el,`.${n[o]}`)[0];l||(l=mi("div",n[o]),l.className=n[o],t.el.append(l)),i[o]=l,e[o]=l}}),i}function Cn(t){let{swiper:e,extendParams:i,on:n,emit:o}=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(y){let g;return y&&typeof y=="string"&&e.isElement&&(g=e.el.querySelector(y),g)?g:(y&&(typeof y=="string"&&(g=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&g&&g.length>1&&e.el.querySelectorAll(y).length===1?g=e.el.querySelector(y):g&&g.length===1&&(g=g[0])),y&&!g?y:g)}function a(y,g){const x=e.params.navigation;y=Ze(y),y.forEach(p=>{p&&(p.classList[g?"add":"remove"](...x.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](x.lockClass))})}function d(){const{nextEl:y,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(y,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function s(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function r(){const y=e.params.navigation;if(e.params.navigation=kn(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let g=l(y.nextEl),x=l(y.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:x}),g=Ze(g),x=Ze(x);const p=(b,A)=>{b&&b.addEventListener("click",A==="next"?c:s),!e.enabled&&b&&b.classList.add(...y.lockClass.split(" "))};g.forEach(b=>p(b,"next")),x.forEach(b=>p(b,"prev"))}function h(){let{nextEl:y,prevEl:g}=e.navigation;y=Ze(y),g=Ze(g);const x=(p,b)=>{p.removeEventListener("click",b==="next"?c:s),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(p=>x(p,"next")),g.forEach(p=>x(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?m():(r(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{nextEl:y,prevEl:g}=e.navigation;if(y=Ze(y),g=Ze(g),e.enabled){d();return}[...y,...g].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),n("click",(y,g)=>{let{nextEl:x,prevEl:p}=e.navigation;x=Ze(x),p=Ze(p);const b=g.target;let A=p.includes(b)||x.includes(b);if(e.isElement&&!A){const w=g.path||g.composedPath&&g.composedPath();w&&(A=w.find(C=>x.includes(C)||p.includes(C)))}if(e.params.navigation.hideOnClick&&!A){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let w;x.length?w=x[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),o(w===!0?"navigationShow":"navigationHide"),[...x,...p].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),r(),d()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:f,disable:m,update:d,init:r,destroy:h})}function Jt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ci(t){let{swiper:e,extendParams:i,on:n,emit:o}=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:p=>p,formatFractionTotal:p=>p,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 a,d=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(p,b){const{bulletActiveClass:A}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${A}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${A}-${b}-${b}`)))}function r(p){const b=p.target.closest(Jt(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const A=Ei(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===A)return;e.slideToLoop(A)}else e.slideTo(A)}function h(){const p=e.rtl,b=e.params.pagination;if(s())return;let A=e.pagination.el;A=Ze(A);let w,C;const P=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(P/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,w=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let S,T,D;if(b.dynamicBullets&&(a=mn(O[0],e.isHorizontal()?"width":"height",!0),A.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&C!==void 0&&(d+=w-(C||0),d>b.dynamicMainBullets-1?d=b.dynamicMainBullets-1:d<0&&(d=0)),S=Math.max(w-d,0),T=S+(Math.min(O.length,b.dynamicMainBullets)-1),D=(T+S)/2),O.forEach(I=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(u=>`${b.bulletActiveClass}${u}`)].map(u=>typeof u=="string"&&u.includes(" ")?u.split(" "):u).flat();I.classList.remove(...M)}),A.length>1)O.forEach(I=>{const M=Ei(I);M===w?I.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),b.dynamicBullets&&(M>=S&&M<=T&&I.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),M===S&&c(I,"prev"),M===T&&c(I,"next"))});else{const I=O[w];if(I&&I.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&O.forEach((M,u)=>{M.setAttribute("part",u===w?"bullet-active":"bullet")}),b.dynamicBullets){const M=O[S],u=O[T];for(let B=S;B<=T;B+=1)O[B]&&O[B].classList.add(...`${b.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(u,"next")}}if(b.dynamicBullets){const I=Math.min(O.length,b.dynamicMainBullets+4),M=(a*I-a)/2-D*a,u=p?"right":"left";O.forEach(B=>{B.style[e.isHorizontal()?u:"top"]=`${M}px`})}}A.forEach((O,S)=>{if(b.type==="fraction"&&(O.querySelectorAll(Jt(b.currentClass)).forEach(T=>{T.textContent=b.formatFractionCurrent(w+1)}),O.querySelectorAll(Jt(b.totalClass)).forEach(T=>{T.textContent=b.formatFractionTotal(V)})),b.type==="progressbar"){let T;b.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(w+1)/V;let I=1,M=1;T==="horizontal"?I=D:M=D,O.querySelectorAll(Jt(b.progressbarFillClass)).forEach(u=>{u.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${M})`,u.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(O.innerHTML=b.renderCustom(e,w+1,V),S===0&&o("paginationRender",O)):(S===0&&o("paginationRender",O),o("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](b.lockClass)})}function f(){const p=e.params.pagination;if(s())return;const b=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 A=e.pagination.el;A=Ze(A);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>b&&(C=b);for(let P=0;P<C;P+=1)p.renderBullet?w+=p.renderBullet.call(e,P,p.bulletClass):w+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],A.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(Jt(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",A[0])}function m(){e.params.pagination=kn(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(A=>Xi(A,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Ze(b),b.forEach(A=>{p.type==="bullets"&&p.clickable&&A.classList.add(...(p.clickableClass||"").split(" ")),A.classList.add(p.modifierClass+p.type),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(A.classList.add(`${p.modifierClass}${p.type}-dynamic`),d=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&A.classList.add(p.progressbarOppositeClass),p.clickable&&A.addEventListener("click",r),e.enabled||A.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(s())return;let b=e.pagination.el;b&&(b=Ze(b),b.forEach(A=>{A.classList.remove(p.hiddenClass),A.classList.remove(p.modifierClass+p.type),A.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(A.classList.remove(...(p.clickableClass||"").split(" ")),A.removeEventListener("click",r))})),e.pagination.bullets&&e.pagination.bullets.forEach(A=>A.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Ze(b),b.forEach(A=>{A.classList.remove(p.horizontalClass,p.verticalClass),A.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?x():(m(),f(),h())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),n("snapIndexChange",()=>{h()}),n("snapGridLengthChange",()=>{f(),h()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{h()}),n("click",(p,b)=>{const A=b.target,w=Ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!A.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&A===e.navigation.nextEl||e.navigation.prevEl&&A===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),w.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),m(),f(),h()},x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Ze(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:g,disable:x,render:f,update:h,init:m,destroy:y})}function Ja(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const l=Dt();let a=!1,d=null,s=null,c,r,h,f;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 m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:M}=e,{dragEl:u,el:B}=I,W=e.params.scrollbar,j=e.params.loop?e.progressLoop:e.progress;let R=r,k=(h-r)*j;M?(k=-k,k>0?(R=r-k,k=0):-k+r>h&&(R=h+k)):k<0?(R=r+k,k=0):k+r>h&&(R=h-k),e.isHorizontal()?(u.style.transform=`translate3d(${k}px, 0, 0)`,u.style.width=`${R}px`):(u.style.transform=`translate3d(0px, ${k}px, 0)`,u.style.height=`${R}px`),W.hide&&(clearTimeout(d),B.style.opacity=1,d=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:M,el:u}=I;M.style.width="",M.style.height="",h=e.isHorizontal()?u.offsetWidth:u.offsetHeight,f=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?r=h*f:r=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${r}px`:M.style.height=`${r}px`,f>=1?u.style.display="none":u.style.display="",e.params.scrollbar.hide&&(u.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function x(I){return e.isHorizontal()?I.clientX:I.clientY}function p(I){const{scrollbar:M,rtlTranslate:u}=e,{el:B}=M;let W;W=(x(I)-ul(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:r/2))/(h-r),W=Math.max(Math.min(W,1),0),u&&(W=1-W);const j=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(j),e.setTranslate(j),e.updateActiveIndex(),e.updateSlidesClasses()}function b(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W,dragEl:j}=u;a=!0,c=I.target===j?x(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),B.style.transitionDuration="100ms",j.style.transitionDuration="100ms",p(I),clearTimeout(s),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",I)}function A(I){const{scrollbar:M,wrapperEl:u}=e,{el:B,dragEl:W}=M;a&&(I.preventDefault&&I.cancelable?I.preventDefault():I.returnValue=!1,p(I),u.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",o("scrollbarDragMove",I))}function w(I){const M=e.params.scrollbar,{scrollbar:u,wrapperEl:B}=e,{el:W}=u;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(s),s=pi(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",I),M.snapOnRelease&&e.slideToClosest())}function C(I){const{scrollbar:M,params:u}=e,B=M.el;if(!B)return;const W=B,j=u.passiveListeners?{passive:!1,capture:!1}:!1,R=u.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const k=I==="on"?"addEventListener":"removeEventListener";W[k]("pointerdown",b,j),l[k]("pointermove",A,j),l[k]("pointerup",w,R)}function P(){!e.params.scrollbar.el||!e.scrollbar.el||C("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||C("off")}function O(){const{scrollbar:I,el:M}=e;e.params.scrollbar=kn(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const u=e.params.scrollbar;if(!u.el)return;let B;if(typeof u.el=="string"&&e.isElement&&(B=e.el.querySelector(u.el)),!B&&typeof u.el=="string"){if(B=l.querySelectorAll(u.el),!B.length)return}else B||(B=u.el);e.params.uniqueNavElements&&typeof u.el=="string"&&B.length>1&&M.querySelectorAll(u.el).length===1&&(B=M.querySelector(u.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass);let W;B&&(W=B.querySelector(Jt(e.params.scrollbar.dragClass)),W||(W=mi("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(I,{el:B,dragEl:W}),u.draggable&&P(),B&&B.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}function S(){const I=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...ti(e.isHorizontal()?I.horizontalClass:I.verticalClass)),V()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const I=e.params.scrollbar;let{el:M}=e.scrollbar;M=Ze(M),M.forEach(u=>{u.classList.remove(I.horizontalClass,I.verticalClass),u.classList.add(e.isHorizontal()?I.horizontalClass:I.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),g(),m())}),n("update resize observerUpdate lock unlock changeDirection",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(I,M)=>{y(M)}),n("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](...ti(e.params.scrollbar.lockClass))}),n("destroy",()=>{S()});const T=()=>{e.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ti(e.params.scrollbar.scrollbarDisabledClass)),O(),g(),m()},D=()=>{e.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ti(e.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:g,setTranslate:m,init:O,destroy:S})}function Pn(t){let{swiper:e,extendParams:i,on:n}=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 o=null,l,a,d=new Date().getTime();function s(j){const R=o;R.length!==0&&(R.innerHTML="",R.innerHTML=j)}function c(j){j===void 0&&(j=16);const R=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(j).replace(/x/g,R)}function r(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","0")})}function h(j){j=Ze(j),j.forEach(R=>{R.setAttribute("tabIndex","-1")})}function f(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("role",R)})}function m(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-roledescription",R)})}function y(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-controls",R)})}function g(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-label",R)})}function x(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("id",R)})}function p(j,R){j=Ze(j),j.forEach(k=>{k.setAttribute("aria-live",R)})}function b(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!0)})}function A(j){j=Ze(j),j.forEach(R=>{R.setAttribute("aria-disabled",!1)})}function w(j){if(j.keyCode!==13&&j.keyCode!==32)return;const R=e.params.a11y,k=j.target;if(!(e.pagination&&e.pagination.el&&(k===e.pagination.el||e.pagination.el.contains(j.target))&&!j.target.matches(Jt(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const E=Ze(e.navigation.prevEl);Ze(e.navigation.nextEl).includes(k)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(R.lastSlideMessage):s(R.nextSlideMessage)),E.includes(k)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(R.firstSlideMessage):s(R.prevSlideMessage))}e.pagination&&k.matches(Jt(e.params.pagination.bulletClass))&&k.click()}}function C(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:j,prevEl:R}=e.navigation;R&&(e.isBeginning?(b(R),h(R)):(A(R),r(R))),j&&(e.isEnd?(b(j),h(j)):(A(j),r(j)))}function P(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return P()&&e.params.pagination.clickable}function O(){const j=e.params.a11y;P()&&e.pagination.bullets.forEach(R=>{e.params.pagination.clickable&&(r(R),e.params.pagination.renderBullet||(f(R,"button"),g(R,j.paginationBulletMessage.replace(/\{\{index\}\}/,Ei(R)+1)))),R.matches(Jt(e.params.pagination.bulletActiveClass))?R.setAttribute("aria-current","true"):R.removeAttribute("aria-current")})}const S=(j,R,k)=>{r(j),j.tagName!=="BUTTON"&&(f(j,"button"),j.addEventListener("keydown",w)),g(j,k),y(j,R)},T=j=>{a&&a!==j.target&&!a.contains(j.target)&&(l=!0),e.a11y.clicked=!0},D=()=>{l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=j=>{d=new Date().getTime()},M=j=>{if(e.a11y.clicked||new Date().getTime()-d<100)return;const R=j.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!R||!e.slides.includes(R))return;a=R;const k=e.slides.indexOf(R)===e.activeIndex,E=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(R);k||E||j.sourceCapabilities&&j.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{l||(e.params.loop?e.slideToLoop(parseInt(R.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(R),0),l=!1)}))},u=()=>{const j=e.params.a11y;j.itemRoleDescriptionMessage&&m(e.slides,j.itemRoleDescriptionMessage),j.slideRole&&f(e.slides,j.slideRole);const R=e.slides.length;j.slideLabelMessage&&e.slides.forEach((k,E)=>{const N=e.params.loop?parseInt(k.getAttribute("data-swiper-slide-index"),10):E,F=j.slideLabelMessage.replace(/\{\{index\}\}/,N+1).replace(/\{\{slidesLength\}\}/,R);g(k,F)})},B=()=>{const j=e.params.a11y;e.el.append(o);const R=e.el;j.containerRoleDescriptionMessage&&m(R,j.containerRoleDescriptionMessage),j.containerMessage&&g(R,j.containerMessage);const k=e.wrapperEl,E=j.id||k.getAttribute("id")||`swiper-wrapper-${c(16)}`,N=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(k,E),p(k,N),u();let{nextEl:F,prevEl:U}=e.navigation?e.navigation:{};F=Ze(F),U=Ze(U),F&&F.forEach($=>S($,E,j.nextSlideMessage)),U&&U.forEach($=>S($,E,j.prevSlideMessage)),V()&&Ze(e.pagination.el).forEach(ae=>{ae.addEventListener("keydown",w)}),Dt().addEventListener("visibilitychange",I),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function W(){o&&o.remove();let{nextEl:j,prevEl:R}=e.navigation?e.navigation:{};j=Ze(j),R=Ze(R),j&&j.forEach(E=>E.removeEventListener("keydown",w)),R&&R.forEach(E=>E.removeEventListener("keydown",w)),V()&&Ze(e.pagination.el).forEach(N=>{N.removeEventListener("keydown",w)}),Dt().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!0))}n("beforeInit",()=>{o=mi("span",e.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&u()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&C()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Pi(t){let{swiper:e,extendParams:i,on:n,emit:o,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 a,d,s=l&&l.autoplay?l.autoplay.delay:3e3,c=l&&l.autoplay?l.autoplay.delay:3e3,r,h=new Date().getTime(),f,m,y,g,x,p,b;function A(R){!e||e.destroyed||!e.wrapperEl||R.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",A),!(b||R.detail&&R.detail.bySwiperTouchMove)&&T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=r,f=!1);const R=e.autoplay.paused?r:h+c-new Date().getTime();e.autoplay.timeLeft=R,o("autoplayTimeLeft",R,R/s),d=requestAnimationFrame(()=>{w()})},C=()=>{let R;return e.virtual&&e.params.virtual.enabled?R=e.slides.filter(E=>E.classList.contains("swiper-slide-active"))[0]:R=e.slides[e.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},P=R=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),w();let k=typeof R>"u"?e.params.autoplay.delay:R;s=e.params.autoplay.delay,c=e.params.autoplay.delay;const E=C();!Number.isNaN(E)&&E>0&&typeof R>"u"&&(k=E,s=E,c=E),r=k;const N=e.params.speed,F=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,N,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(N,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,N,!0,!0),o("autoplay")),e.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return k>0?(clearTimeout(a),a=setTimeout(()=>{F()},k)):requestAnimationFrame(()=>{F()}),k},V=()=>{h=new Date().getTime(),e.autoplay.running=!0,P(),o("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(d),o("autoplayStop")},S=(R,k)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),R||(p=!0);const E=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",A):T()};if(e.autoplay.paused=!0,k){x&&(r=e.params.autoplay.delay),x=!1,E();return}r=(r||e.params.autoplay.delay)-(new Date().getTime()-h),!(e.isEnd&&r<0&&!e.params.loop)&&(r<0&&(r=0),E())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(h=new Date().getTime(),p?(p=!1,P(r)):P(),e.autoplay.paused=!1,o("autoplayResume"))},D=()=>{if(e.destroyed||!e.autoplay.running)return;const R=Dt();R.visibilityState==="hidden"&&(p=!0,S(!0)),R.visibilityState==="visible"&&T()},I=R=>{R.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&S(!0))},M=R=>{R.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&T())},u=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",M))},W=()=>{Dt().addEventListener("visibilitychange",D)},j=()=>{Dt().removeEventListener("visibilitychange",D)};n("init",()=>{e.params.autoplay.enabled&&(u(),W(),V())}),n("destroy",()=>{B(),j(),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(y||p)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():S(!0,!0)}),n("beforeTransitionStart",(R,k,E)=>{e.destroyed||!e.autoplay.running||(E||!e.params.autoplay.disableOnInteraction?S(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}m=!0,y=!1,p=!1,g=setTimeout(()=>{p=!0,y=!0,S(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){y=!1,m=!1;return}y&&e.params.cssMode&&T(),y=!1,m=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:V,stop:O,pause:S,resume:T})}function Qa(t){let{swiper:e,extendParams:i,emit:n,once:o}=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 s=e.getTranslate();e.setTranslate(s),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:s,touches:c}=e;s.velocities.length===0&&s.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:zt()})}function d(s){let{currentPos:c}=s;if(e.params.cssMode)return;const{params:r,wrapperEl:h,rtlTranslate:f,snapGrid:m,touchEventsData:y}=e,x=zt()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(r.freeMode.momentum){if(y.velocities.length>1){const O=y.velocities.pop(),S=y.velocities.pop(),T=O.position-S.position,D=O.time-S.time;e.velocity=T/D,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(D>150||zt()-O.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*r.freeMode.momentumRatio;const b=e.velocity*p;let A=e.translate+b;f&&(A=-A);let w=!1,C;const P=Math.abs(e.velocity)*20*r.freeMode.momentumBounceRatio;let V;if(A<e.maxTranslate())r.freeMode.momentumBounce?(A+e.maxTranslate()<-P&&(A=e.maxTranslate()-P),C=e.maxTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.maxTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(A>e.minTranslate())r.freeMode.momentumBounce?(A-e.minTranslate()>P&&(A=e.minTranslate()+P),C=e.minTranslate(),w=!0,y.allowMomentumBounce=!0):A=e.minTranslate(),r.loop&&r.centeredSlides&&(V=!0);else if(r.freeMode.sticky){let O;for(let S=0;S<m.length;S+=1)if(m[S]>-A){O=S;break}Math.abs(m[O]-A)<Math.abs(m[O-1]-A)||e.swipeDirection==="next"?A=m[O]:A=m[O-1],A=-A}if(V&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(f?p=Math.abs((-A-e.translate)/e.velocity):p=Math.abs((A-e.translate)/e.velocity),r.freeMode.sticky){const O=Math.abs((f?-A:A)-e.translate),S=e.slidesSizesGrid[e.activeIndex];O<S?p=r.speed:O<2*S?p=r.speed*1.5:p=r.speed*2.5}}else if(r.freeMode.sticky){e.slideToClosest();return}r.freeMode.momentumBounce&&w?(e.updateProgress(C),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating=!0,pn(h,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(C),pn(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(A),e.setTransition(p),e.setTranslate(A),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,pn(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(A),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeMode.sticky){e.slideToClosest();return}else r.freeMode&&n("_freeModeNoMomentumRelease");(!r.freeMode.momentum||x>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:a,onTouchEnd:d}})}const $a=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const o=de(),{popupDetailData:l}=He();return ue(()=>{var a,d;n&&((a=o?.current)===null||a===void 0||a.swiper.slideTo((d=l?.multiCheckIndex)!==null&&d!==void 0?d:0))},[l,n]),v.createElement(_t,{role:"list",tag:"ul",ref:o,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[Qa,Ja,Gi],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var Oi=Me($a);const es=si((t,e)=>{const{src:i,onLoad:n,style:o,className:l,loading:a,alt:d="image"}=t,[s,c]=Z(i),r=de(null),[h,f]=Z(!1);return Ti(e,()=>({setSrc:m=>{m&&c(m)}})),ue(()=>{i&&c(i)},[i]),ue(()=>{const m=()=>{i&&!h&&r.current&&(r.current.src="",r.current.src=i)};return St.on(ht.PAGE_DID_SHOW,m),()=>{St.off(ht.PAGE_DID_SHOW,m)}},[i,h]),v.createElement(v.Fragment,null,!h&&!s&&v.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),s?.includes(".avif")?v.createElement("picture",null,v.createElement("source",{type:"image/avif",srcSet:s}),v.createElement("source",{type:"image/webp",srcSet:`${s}?imageMogr2/format/webp`}),v.createElement("source",{type:"image/jpeg",srcSet:`${s}?imageMogr2/format/jpg`}),v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d})):v.createElement("img",{ref:r,className:l,src:s,style:Object.assign({},o),loading:a,onLoad:m=>{f(!0),n?.(m.target)},alt:d}))});var Pt=Me(es);const ts=({products:t,data:e,defImg:i,style:n,onCLick:o,popupDetailData:l,check:a})=>{var d;const{productView:s}=Mt(),{popupCurTimeRef:c}=He(),r=(h,f)=>{if(a===f)return;const m=t?.[a];s(l,m,m?.bindCta,c.current,l?.index),o?.(f)};return v.createElement(v.Fragment,null,e?.open&&(t&&t?.length>1||!l)&&v.createElement(Oi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(d=l?t:[0,1,2,3])===null||d===void 0?void 0:d.map((h,f)=>{var m,y,g;return v.createElement(v.Fragment,null,h?.bindCta?v.createElement(Ft,{className:Be({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{r(h,f)},key:f},v.createElement(Pt,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:a===f?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(g=(m=h?.cover)!==null&&m!==void 0?m:(y=h?.homePage)===null||y===void 0?void 0:y[0])!==null&&g!==void 0?g:i})):null)})))};var kl=Me(ts);const is="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",ns=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popup:l,schema:a,fullHeight:d=window.innerHeight,isFullScreen:s=!1,openState:c})=>{var r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,S,T,D,I,M,u,B,W,j;const R=de(null),k=de(null),E=de(null),N=de(null),F=de(null),U=d*.2,G=s?d:d*.8,[$,ae]=Z(U),[re,_]=Z(!1),Ce=de(null),{globalConfig:Le,popupDetailData:Ue}=He(),{schema:ve,popup:fe}=ei(),[Ke,qe]=Z(15);ue(()=>{const pe=document.getElementById("sxp-render"),H=document.getElementById("pb-modal");H?Ce.current=H:(Ce.current=document.createElement("div"),Ce.current.setAttribute("id","pb-modal"),pe?.appendChild(Ce.current))},[]);const Ye=me(()=>l?.id&&l?.id!==""||t,[t,l]),Pe=me(()=>{var pe,H,K;const we=a??ve;return(K=(H=(pe=we?.sxpPageConf)===null||pe===void 0?void 0:pe.globalConfig)===null||H===void 0?void 0:H.popupList)===null||K===void 0?void 0:K.find(Ie=>Ie?.id===l?.id)},[l,a,ve]),$e=me(()=>{var pe,H;return((H=(pe=Pe?.item)===null||pe===void 0?void 0:pe.event)===null||H===void 0?void 0:H.isScrollFullScreen)||!1},[Pe]);ue(()=>{Ye?_(!0):setTimeout(()=>{_(!1),ae(U)},l?.duration)},[Ye,l]);const Je=se(()=>i,[fe,c,Le,a]);if(ue(()=>{const pe=H=>{var K=H?.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),we=K?.[0],Y=K?.[K?.length-1],Ie=9;H.addEventListener("keydown",function(ke){(ke.key==="Escape"||ke.key==="Esc")&&(Qe(),ke.preventDefault());var te=ke.key==="Tab"||ke.keyCode===Ie;te&&(ke.shiftKey?document?.activeElement===we&&(Y?.focus(),ke.preventDefault()):document?.activeElement===Y&&(we?.focus(),ke.preventDefault()))}),we?.focus()};return F?.current&&pe(F?.current),()=>{var H;(H=F?.current)===null||H===void 0||H.removeEventListener("keydown",pe)}},[F,re,fe]),!Ce.current)return null;const Qe=wi(()=>{e?.()},300),ct=pe=>{R.current=pe.touches[0],k.current=pe.touches[0],E.current=!0},Et=pe=>{requestAnimationFrame(()=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const K=pe.touches[0].clientY,we=pe.touches[0].clientX,Y=R.current.clientY-K;R.current=pe.touches[0];const Ie=K-k.current.clientY,ke=we-k.current.clientX;if(Math.abs(ke)>Math.abs(Ie))return;const te=$-Y;te>0&&ae(te)}})},Fe=pe=>{var H;if(E.current&&((H=N?.current)===null||H===void 0?void 0:H.scrollTop)===0){const K=pe.changedTouches[0].clientY-k.current.clientY,we=pe.changedTouches[0].clientX-k.current.clientX;if(Math.abs(we)>Math.abs(K))return;const Y=k.current.clientY-R.current.clientY;Y>0?ae(0):$<U&&Y<0?ae(U):$>=U&&Y<0&&e?.()}E.current=!1};return Un.createPortal(v.createElement(v.Fragment,null,re&&v.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:Ye?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:Qe},v.createElement("div",{style:{position:"relative",left:`${(m=(f=(h=(r=Pe?.item)===null||r===void 0?void 0:r.props)===null||h===void 0?void 0:h.popupBg)===null||f===void 0?void 0:f.horizontalMargin)!==null&&m!==void 0?m:0}px`,right:`${(p=(x=(g=(y=Pe?.item)===null||y===void 0?void 0:y.props)===null||g===void 0?void 0:g.popupBg)===null||x===void 0?void 0:x.horizontalMargin)!==null&&p!==void 0?p:0}px`,bottom:`${(C=(w=(A=(b=Pe?.item)===null||b===void 0?void 0:b.props)===null||A===void 0?void 0:A.popupBg)===null||w===void 0?void 0:w.bottomMargin)!==null&&C!==void 0?C:0}px`,overflow:"hidden",width:`calc(100% - ${((S=(O=(V=(P=Pe?.item)===null||P===void 0?void 0:P.props)===null||V===void 0?void 0:V.popupBg)===null||O===void 0?void 0:O.horizontalMargin)!==null&&S!==void 0?S:0)*2}px)`,height:"100%"}},v.createElement("div",Object.assign({ref:F,className:`modal-container ${Ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=Pe?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:o,animationDuration:((D=l?.duration)!==null&&D!==void 0?D:0)/1e3+"s"},$e&&{transform:`translateY(${$}px)`}),{overflow:"hidden",borderRadius:`${(B=(u=(M=(I=Pe?.item)===null||I===void 0?void 0:I.props)===null||M===void 0?void 0:M.popupBg)===null||u===void 0?void 0:u.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:pe=>{pe.stopPropagation(),pe.preventDefault()}},$e&&{onTouchMove:Et,onTouchStart:ct,onTouchEnd:Fe}),v.createElement("div",Object.assign({id:"modal-content",ref:N,style:{height:$e?d:G,overflow:$e&&$<=0||!$e?"auto":"hidden",zIndex:1}},((j=(W=Pe?.item)===null||W===void 0?void 0:W.props)===null||j===void 0?void 0:j.enableFixedCloseButton)&&{onScroll:pe=>{var H;qe(15-((H=pe?.target)===null||H===void 0?void 0:H.scrollTop))}}),Je()),v.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ke}},v.createElement("img",{src:Le?.popupCloseIcon||is,alt:"close button",className:"modal-icon"})))))),Ce.current)};var hi=Me(ns);const ls=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:l,unfoldText:a,isPost:d,onChange:s})=>{const[c,r]=Z(!1),[h,f]=Z(!1),m=i||{},{lineClamp:y}=m,g=at(m,["lineClamp"]),x=Number(y||2),p=de(null),b=de(null),A=de(),w=()=>{r(!c)},C=se(()=>{!p.current||!b.current||!d||!t||c||requestAnimationFrame(()=>{p.current.style.position="relative";const P=p.current.getBoundingClientRect().height,V=b.current.getBoundingClientRect().height,O=P>V+1;f(O),p.current.style.position="absolute"})},[d,t,c]);return ue(()=>{if(p.current)return A.current=new ResizeObserver(C),A.current.observe(p.current),C(),()=>{var P;(P=A.current)===null||P===void 0||P.disconnect()}},[C]),v.createElement("div",{className:n,style:Object.assign(Object.assign({},g),{transform:"translate3d(0px, 0px, 0px)",overflow:"hidden",position:"relative"}),hidden:!t||t===""},v.createElement("div",{ref:b,style:Object.assign(Object.assign({},!c&&d&&{WebkitLineClamp:x,lineClamp:x,textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical"}),{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content"}),dangerouslySetInnerHTML:{__html:Ve(t?.replace(/\n/g,"</br>"),g)}}),v.createElement("div",{ref:p,style:{wordBreak:"break-word",textRendering:"geometricPrecision",fontKerning:"none",textSizeAdjust:"100%",boxSizing:"border-box",contain:"content",visibility:"hidden",opacity:0,clipPath:"inset(100%)",transform:"translateX(-9999px)"},dangerouslySetInnerHTML:{__html:Ve(t?.replace(/\n/g,"</br>"),g)}}),t&&d&&h&&v.createElement("button",{"aria-label":c?a||"show less":l||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:o??w,dangerouslySetInnerHTML:{__html:Ve(c?a||"show less":l||"show more",g)}}))};var Li=Me(ls);const os=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:l}=t;switch(i){case 2:return n||null;case 3:return l||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},as=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",ji=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:o})=>{var l,a,d,s,c,r,h,f;let m="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return m;let g=i?.priceSymbol,x=t?.currency?(d=(a=(l=t?.currency)===null||l===void 0?void 0:l.split("-")[1])===null||a===void 0?void 0:a.toUpperCase())!==null&&d!==void 0?d:"":"$";const p=e===void 0||e;let b=y?.toString();g?.showTwoDecimalPoint&&(b=y?.toFixed(2));let A=(s=b?.indexOf("."))!==null&&s!==void 0?s:-1;if(p){m=(c=y?.toLocaleString("zh",{minimumFractionDigits:g?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let w=0,C=A??m?.length;g?.millesimalSymbol==="."?m=m?.replace(/\,/g,function(P,V){return V>=w&&V<C?".":P}):g?.millesimalSymbol===" "&&(m=m?.replace(","," "))}else m=`${g?.showTwoDecimalPoint?y?.toFixed(2):y}`;return g?.decimalPoint===","&&A>0&&(m=m=m?.replace(/\./g,function(w,C){return C>=A&&C<m?.length?",":w})),x=`<span style="font-family:${(f=(h=(r=i?.priceSymbol)===null||r===void 0?void 0:r.fontFamily)!==null&&h!==void 0?h:o?.["fontFamily-en"])!==null&&f!==void 0?f:"inherit"}">${x}</span>`,m=Ve(m,o),g?.currencyPosition&&g?.currencyPosition!=="none"?m=g?.currencyPosition==="left"?x+m:m+x:g?.currencyPosition!=="none"&&(m=x+m),m},ss=t=>{var e,i,n,o,l,a,d,s,c,r,h,f,m,y,g,x,p,b,A,w,C,P,V,O,{content:S,style:T,bgImg:D,onClick:I,schema:M,isDefault:u,bottom_image:B,tipText:W,isPost:j,viewTime:R,rec:k,swiper:E,commodityStyles:N,buttonStyle:F,index:U,commodityGroup:G,popupBg:$,iframeIcon:ae,commodityImgRatio:re,isTel:_,iframeBgColor:Ce,isActive:Le=!0}=t,Ue=at(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index","commodityGroup","popupBg","iframeIcon","commodityImgRatio","isTel","iframeBgColor","isActive"]);const{sxpParameter:ve,popupDetailData:fe,isPreview:Ke,bffFbReport:qe,popupCurTimeRef:Ye,checkCommodityIndexRef:Pe,globalConfig:$e}=He(),{jumpToWeb:Je,productView:Qe}=Mt(),ct=de(null),[Et,Fe]=Z(!1),[pe,H]=Z(!1),[K,we]=Z((e=fe?.multiCheckIndex)!==null&&e!==void 0?e:0),Y=de(),[Ie,ke]=Z(0),te=j?k:fe;let z=j?te?.product:(n=(i=te?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(l=(o=te?.video)===null||o===void 0?void 0:o.bindProducts)===null||l===void 0?void 0:l[0],ze=j?(a=te?.product)===null||a===void 0?void 0:a.bindCta:(c=(s=(d=te?.video)===null||d===void 0?void 0:d.bindProduct)===null||s===void 0?void 0:s.bindCta)!==null&&c!==void 0?c:(f=(h=(r=te?.video)===null||r===void 0?void 0:r.bindProducts)===null||h===void 0?void 0:h[0])===null||f===void 0?void 0:f.bindCta;const tt=j?U:fe?.index;if(!j&&G?.open&&(!((m=te?.video)===null||m===void 0)&&m.bindProducts)&&((g=(y=te?.video)===null||y===void 0?void 0:y.bindProducts)===null||g===void 0?void 0:g.length)>0){Pe.current=K;const Ae=(x=te?.video)===null||x===void 0?void 0:x.bindProducts[K];z=Ae,ze=Ae?.bindCta}const ft=Ae=>{z?.link&&(Je(Ae,te,z,ze,tt),j||Qe(te,z,ze,R||ct.current,tt),window.location.href=window.getJointUtmLink(z.link))};ue(()=>{Le&&(qe?.({eventName:"ProductView",product:z}),qe?.({eventName:"PageView",product:z}))},[Le,qe]),ue(()=>{const Ae=()=>{ct.current=new Date};return Ae(),window.addEventListener("pageshow",Ae),()=>{window.removeEventListener("pageshow",Ae)}},[]);const Ge=ji({product:z,enableFormattedPrice:(p=N?.price)===null||p===void 0?void 0:p.enableFormattedPrice,globalConfig:$e,style:N?.price}),et=(Ke?375:(b=T?.width)!==null&&b!==void 0?b:window.innerWidth)-((A=$?.horizontalMargin)!==null&&A!==void 0?A:0)*2,Re=re?et*(re.h/re.w):et,it=({isPost:Ae})=>{var Se,yt,Wt,li;return v.createElement("div",null,v.createElement("div",{className:"pb-commondity-content-collection",style:At(N?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Ve((Se=z?.collection)!==null&&Se!==void 0?Se:"Tiffany Lock",N?.collection)}}),v.createElement("div",{className:"pb-commondity-content-title",style:At(N?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Ve((yt=z?.title)!==null&&yt!==void 0?yt:"Pendant in Yellow Gold with Diamonds, Medium",N?.title)}}),v.createElement("div",{className:"pb-commondity-content-price",style:At(N?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:Ge??""}}),v.createElement("div",{hidden:!!z&&!z?.taxInfo,style:At(N?.taxInfo),dangerouslySetInnerHTML:{__html:Ve((Wt=z?.taxInfo)!==null&&Wt!==void 0?Wt:"\u7A0E\u8D39",N?.taxInfo)}}),v.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},v.createElement(Li,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Fe(!0),isPost:Ae,text:(li=z?.info)!==null&&li!==void 0?li:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
2
2
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
3
3
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
4
4
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|