pb-sxp-ui 1.15.12-alpha.1 → 1.15.12-alpha.3

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/pb-ui.min.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(ot,Je){typeof exports=="object"&&typeof module<"u"?Je(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],Je):(ot=typeof globalThis<"u"?globalThis:ot||self,Je(ot.PUI={},ot.lodash,ot.uuid$1,ot.pako,ot.React,ot.qs,ot.EventEmitter,ot.css,ot.ReactDOM))})(this,function(ot,Je,Cl,kl,l,gn,Il,Oe,yn){"use strict";function Pl(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var wn=Pl(yn);function et(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 s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]]);return i}function nt(t,e,i,n){function s(o){return o instanceof i?o:new i(function(r){r(o)})}return new(i||(i=Promise))(function(o,r){function u(d){try{c(n.next(d))}catch(p){r(p)}}function a(d){try{c(n.throw(d))}catch(p){r(p)}}function c(d){d.done?o(d.value):s(d.value).then(u,a)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ol=/:\w+/g;var Sn=(t,e)=>nt(void 0,void 0,void 0,function*(){const i={},n={};for(let s=0;s<e?.length;s++){const{id:o,method:r,url:u,urlParams:a,name:c,queryString:d,headers:p,body:h}=e[s];let f=u;a&&Object.entries(a).forEach(([y,b])=>{f=f.replace(Ol,S=>S===y?b:S)}),d&&(f+=d),n[o]=c;try{const y=yield fetch(f,{method:r,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const xn="SXP_TOKEN_INFO",Ml=(t,e)=>nt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),s=t.getAppId(),o=t.getApiUrl(),r=window.localStorage.getItem(xn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":s||""}}).then(d=>d.json());if(c.success){const d=c.data;u=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(xn,JSON.stringify(u))}}return u});function Ai(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)n[s]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",s=0;s<36;s++)n[s]||(o=0|Math.random()*16,n[s]=i[s===19?o&3|8:o])}return n.join("")}const Ll=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*n)),s+=1;return e},jl=()=>{const t=Cl.v4();return t?.replaceAll?t.replaceAll("-",""):Ll(32)},Ce=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!n&&!s)return t;let o=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,a=`font-family:${n??"inherit"}`,c=`font-family:${s??"inherit"}`,d=h=>{const f=h.search(r),y=h.search(u);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${a}">${h.substring(f,y)}</span>`,o=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${c}">${h.substring(y,f)}</span>`,o=h.substring(f,h?.length)),f===-1?(i+=`<span style="${c}">${h.substring(y,h?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${a}">${h.substring(f,h?.length)}</span>`,o="",!1):!0};let p=!0;for(;p;)p=d(o);return i};function Tn(t){const i=document.cookie.split(";");let n=null;return i.forEach(s=>{const[o,r]=s.trim().split("=");o===t&&(n=r)}),n??""}function Di(){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 ui(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const o=t[s],r=t.substring(s+1,t.length);o==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let n=0;return e?.map(s=>{i?.push(t.substring(n,s)),n=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function En(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),s=kl.inflate(n,{to:"string"});return JSON.parse(s)}let Vi=null;const Nl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Dl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Vi)return Vi;Vi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Nl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let ht=null;const Vl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{ht||(ht=new Dl),n&&ht.setApiUrl(n),ht.setAppId(t),ht.setTenantId(e),ht.setEnv(i)},getDetail:t=>{if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>nt(void 0,void 0,void 0,function*(){var o,r;const u=yield s.json(),a=En((o=u?.data)===null||o===void 0?void 0:o.data);if(a){const{$store:c}=yield Sn(n,(r=a?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=a,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>nt(void 0,void 0,void 0,function*(){var o;const r=yield s.json();return r.success?(o=r?.data)===null||o===void 0?void 0:o.map(a=>Object.assign(Object.assign({},a),{data:En(a?.data)})):void 0}))}),getSxpRecommendVideoData:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=yield Ml(ht,t),i=Ai(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Je.isEmpty(n)&&(n=Ai(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const s=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return s?.data||null})};function Gt(){return l.useContext(Wn)}function Bl(){return l.useContext(Fn)}const Bi="feRealSessionIdKey",Cn=()=>{const t=jl();return`${Date.now()}${t}`},Fl=()=>{let t=Wl();return t||(t=Cn(),window.localStorage.setItem(Bi,t)),t},Fi=()=>{const t=Cn();window.localStorage.setItem(Bi,t)},Wl=()=>window.localStorage.getItem(Bi),kn="SXP_FAKE_USER_ID",In="FAKE_USER_STATE",Pn="AGREE_POLICY",On="SLIDE_SKIP_STATE",Mn="CCONTSENT_STATE",Ln="USER_CONSENT_RESULT",zl=()=>{let t=window.localStorage.getItem(kn);return Je.isEmpty(t)&&(t=Ai(36,62),window.localStorage.setItem(kn,t)),t},Hl=()=>{const t=window.localStorage.getItem(In);return Je.isEmpty(t)&&window.localStorage.setItem(In,"true"),Je.isEmpty(t)},Ul=()=>{const t=window.localStorage.getItem(On);return Je.isEmpty(t)},Xl=()=>{window.localStorage.setItem(On,"true")},ql=()=>{const t=window.localStorage.getItem(Mn);return Je.isEmpty(t)&&window.localStorage.setItem(Mn,"true"),Je.isEmpty(t)},jn=()=>window.localStorage.getItem(Ln)==="true",Nn=()=>{window.localStorage.setItem(Ln,"true")};function Mt(t,e){const{appDomain:i}=De();return l.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ct=new Il;var dt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(dt||(dt={}));const Yl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:s,privacy_policy_title:o})=>{const{setIsAgreePolicy:r,bffEventReport:u}=De(),a=l.useMemo(()=>{var p;const h=location.search.slice(1),f={};(p=ui(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),c=p=>{var h;return(h=a[p])!==null&&h!==void 0?h:null};l.useEffect(()=>{u?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{u?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),r?.(!0),window.localStorage.setItem(Pn,"yes")};return l.createElement("div",{className:"consent-bg"},l.createElement("div",{className:"consent"},l.createElement("div",{className:"consent-col"},l.createElement("div",{className:"consent-title"},i??"Privacy Policy"),l.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.")),l.createElement("div",{className:"consent-col"},l.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),l.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},o??"More information"))))};var Gl=l.memo(Yl);const Dn=l.createContext({rtcList:[],tagList:[]});var Wi;(function(t){t[t.BFF=5]="BFF"})(Wi||(Wi={}));const bi="FOR U",Zl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:s,defaultSize:o,isPreview:r=!1,sxpParameter:u,appDomain:a,hashTagSize:c,loadingImage:d,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:I,onUpdateChannel:k})=>{var N,A,w,T,j;const[C,M]=l.useState([]),[E,B]=l.useState([]),[W,O]=l.useState(!0),[V,D]=l.useState({rtc:"",requestId:""}),P=l.useRef(null),F=l.useRef(!1),[X,K]=l.useState(()=>!!window.localStorage.getItem(Pn)),[R,te]=l.useState(),[ve,he]=l.useState(),[ie,Me]=l.useState(p),[Ve,He]=l.useState([]),[G,_]=l.useState(0),[Ae,ge]=l.useState(!1),[ye,re]=l.useState(null),je=l.useRef(),Ue=l.useRef(),We=l.useRef(),[Ge,Qe]=l.useState(bi),Se=l.useRef(-1),Z=l.useRef(null),[q,le]=l.useState(!1),[oe,pe]=l.useState((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[Pe,Ze]=l.useState(),[ne,z]=l.useState(!1),[qe,yt]=l.useState(),[lt,mt]=l.useState(),[pt,wt]=l.useState([]),[Ft,Pt]=l.useState(),[Nt,Xt]=l.useState(),Ot=l.useMemo(()=>Pe??m,[Pe,m]),St=l.useMemo(()=>{var U,H,ae,ke;return(((ke=(ae=(H=(U=oe?.consent)===null||U===void 0?void 0:U[0])===null||H===void 0?void 0:H.item)===null||ae===void 0?void 0:ae.props)===null||ke===void 0?void 0:ke.privacy_necessity)&&!X&&!S||b)&&ne},[X,oe,b,S,ne]),$t=l.useCallback(U=>{k?.(U),mt(U)},[]),Dt=l.useCallback(U=>{var H;const ae=U?.recList;return(H=ae?.map(xe=>{var Te,Be,Fe,Ne,L,Y;if(!((Te=xe?.video)===null||Te===void 0)&&Te.bindProducts&&((Fe=(Be=xe?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||Fe===void 0?void 0:Fe.length)>0){const J=(Y=(L=(Ne=xe?.video)===null||Ne===void 0?void 0:Ne.bindProducts)===null||L===void 0?void 0:L.filter(se=>!!se?.bindCta))!==null&&Y!==void 0?Y:[];return Object.assign(Object.assign({},xe),{video:Object.assign(Object.assign({},xe?.video),{bindProducts:J})})}return xe}))!==null&&H!==void 0?H:[]},[]);l.useEffect(()=>{let U;return pt.length>0&&(U=setInterval(()=>{const ae=new Date,ke=15*1e3;wt(xe=>xe.filter(Te=>ae-Te.time<=ke))},1e3)),()=>{clearInterval(U)}},[pt]),l.useEffect(()=>{const U=H=>{je.current=H};return ct.on(dt.CHANGE_THEME_TAG,U),()=>{ct.off(dt.CHANGE_THEME_TAG,U)}},[]),l.useEffect(()=>{Me(p)},[p]);const Ke=l.useMemo(()=>e?.find(U=>U.type===Wi.BFF),[e]),ft=l.useMemo(()=>{var U;return((U=Ke?.headers)===null||U===void 0?void 0:U["x-app-id"])+zl()},[Ke]),$=l.useCallback((U,H)=>{if(!Ke)return;const ae=Ke.url;if(H?.query){const ke=gn.stringify(H.query);U=`${U}?${ke}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ae}/api/${U}`,new Blob([JSON.stringify({body:btoa(JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ke.headers),{"x-user-id":ft})))})],{type:"application/json;charset=UTF-8"})):window.fetch(`${ae}/api/${U}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":ft},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ke=>ke.json()).catch(ke=>Promise.reject(ke))},[Ke,ft]),we=l.useCallback((U,H)=>{if(!Ke)return;const ae=Ke.url;if(H?.query){const ke=gn.stringify(H.query);U=`${U}?${ke}`}return window.fetch(`${ae}/admin/${U}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ke=>ke.json()).catch(ke=>Promise.reject(ke))},[Ke]),Ye=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe,Te,Be,Fe,Ne,L,Y,J,se,ce,de;if(U=Object.assign({maxSize:(H=U?.maxSize)!==null&&H!==void 0?H:s,defaultSize:(ae=U?.defaultSize)!==null&&ae!==void 0?ae:o,hashTag:U?.hashTag,traceInfo:U?.traceInfo,themeTag:U?.themeTag,pageNum:U?.pageNum,contentFilter:U?.contentFilter,productFilter:U?.productFilter},Nt&&{chatlabsId:Nt}),lt)U=Object.assign(Object.assign({},U),{channel:decodeURIComponent(lt)});else if(i){const ue=(Te=(xe=(ke=ui(i))===null||ke===void 0?void 0:ke.filter(be=>{var ee,Le;const me=be.split("=")[0];return(Le=(ee=v?.channels)!==null&&ee!==void 0?ee:[])===null||Le===void 0?void 0:Le.includes(me)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Te!==void 0?Te:"";ue&&(U=Object.assign(Object.assign({},U),{channel:decodeURIComponent(ue)}))}if(S){let ue=1;if(U=Object.assign(Object.assign(Object.assign({},U),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!U?.channel||F.current)return;F.current=!0;let be=[],ee=null;const Le=me=>nt(void 0,void 0,void 0,function*(){var fe,tt,Re,_e,$e,at;if(me.pageNum=ue,ee=yield we?.("recommend/direct_page",{method:"POST",body:me}),!ee?.success)return;O(!1),be=be.concat((_e=(Re=(tt=(fe=ee?.data)===null||fe===void 0?void 0:fe.recList)===null||tt===void 0?void 0:tt.filter)===null||Re===void 0?void 0:Re.call(tt,Xe=>Xe?.product||Xe?.video))!==null&&_e!==void 0?_e:[]),C?.length===0&&(M(Dt(Object.assign(Object.assign({},ee?.data),{recList:be}))),He(Dt(Object.assign(Object.assign({},ee?.data),{recList:be})))),((at=($e=ee?.data)===null||$e===void 0?void 0:$e.recList)===null||at===void 0?void 0:at.some(Xe=>Xe?.product||Xe?.video))&&(ue=ue+1,yield Le(me))});return yield Le(U),!U?.hashTag&&ee&&D({rtc:(Be=ee?.data)===null||Be===void 0?void 0:Be.rtc,requestId:(Fe=ee?.data)===null||Fe===void 0?void 0:Fe.requestId}),Object.assign(Object.assign({},ee?.data),{recList:be})}oe?.enablePreview&&(U=Object.assign(Object.assign({},U),{directPage:!0,level:1,pageNum:(Ne=U?.pageNum)!==null&&Ne!==void 0?Ne:1}));const Q=yield $?.("v1/recommend/list",{method:"POST",body:U});if(Q?.success){if(U?.hashTag||D({rtc:Q.data.rtc,requestId:Q.data.requestId}),oe?.enablePreview&&!S){let ue=[];return ue=ue.concat((se=(J=(Y=(L=Q?.data)===null||L===void 0?void 0:L.recList)===null||Y===void 0?void 0:Y.filter)===null||J===void 0?void 0:J.call(Y,ee=>ee?.product||ee?.video))!==null&&se!==void 0?se:[]),((de=(ce=Q?.data)===null||ce===void 0?void 0:ce.recList)===null||de===void 0?void 0:de.some(ee=>ee?.product||ee?.video))||le(!0),Object.assign(Object.assign({},Q.data),{recList:ue})}return Q?.data}}),[$,i,s,o,g,lt,Nt,we]),xt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe;if(C.length<=0)return;const Te=C?.[C?.length-1],Be=yield Ye(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ve?.hashTag},((H=Te?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(ae=Te?.product)===null||ae===void 0?void 0:ae.itemId]}),((ke=Te?.video)===null||ke===void 0?void 0:ke.itemId)&&{contentFilter:[(xe=Te?.video)===null||xe===void 0?void 0:xe.itemId]}),{themeTag:je.current}),oe?.enablePreview&&!S&&{pageNum:U}));return M(C.concat(Dt(Be))),He(Ve.concat(Dt(Be))),Be}),[Ye,C,ve,Ve]),ei=l.useCallback((U,H)=>{var ae,ke,xe,Te,Be;let Fe=!1;const Ne=(ke=(ae=m?.data)===null||ae===void 0?void 0:ae.sxpPageConf)===null||ke===void 0?void 0:ke.globalConfig;if(!((xe=Ne?.session)===null||xe===void 0)&&xe.enable){const L=localStorage.getItem("sessionStartTime"),Y=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-Y)/1e3/60)>=((Be=(Te=Ne?.session)===null||Te===void 0?void 0:Te.expires)!==null&&Be!==void 0?Be:30)&&(H?.("sessionTimeOut"),Fi(),Ue.current=new Date,Fe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else U&&Fi();return Fe},[m]),rt=l.useCallback(({userInfo:U,eventInfo:H,reportLayId:ae=!0})=>{var ke,xe;if(!n||oe?.enablePreview)return;U||(U={});const Te=Fl(),Be={},Fe=location.search.slice(1);(ke=ui(Fe))===null||ke===void 0||ke.map(se=>{const ce=se.split("=")[0],de=se.split("=")[1];Be[ce]=de});const Ne=Be?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:V.rtc,requestId:V.requestId},{playbookType:Ft}),qe&&ae&&{layoutVariantId:qe}),H),H?.position&&lt&&{position:Number(H?.position)+1+""}),Ne&&{clSource:Ne}),Y=Object.entries(U).map(([se,ce])=>({name:se,value:ce})),J=Object.entries(L).map(([se,ce])=>ce&&{name:se,value:ce}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",U),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(xe=Ke?.headers)===null||xe===void 0?void 0:xe["x-app-id"]}/${H?.eventSubject}${Ne?`/${decodeURIComponent(Ne)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:J},type:"beacon"})},[$,V,n,oe?.enablePreview,qe,oe,Ft,Ke]),ti=l.useCallback(({eventName:U,product:H})=>{var ae,ke,xe,Te,Be,Fe;if(!n||!h||oe?.enablePreview||!(!((ae=oe?.converApi)===null||ae===void 0)&&ae[U]))return;const Ne=Je.cloneDeep((ke=oe?.converApi)===null||ke===void 0?void 0:ke[U]),L=new URLSearchParams(window.location.search),Y=L?.get("fbclid"),J={event_source_url:(xe=window?.location)===null||xe===void 0?void 0:xe.href,external_id:ft,client_user_agent:(Be=(Te=window?.navigator)===null||Te===void 0?void 0:Te.userAgent)!==null&&Be!==void 0?Be:"",fbc:Y?`fb.2.${new Date().getTime()}.${Y}`:"",fbp:Tn("_fbp")?`fb.2.${new Date().getTime()}.${Tn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},se=/\{\{(.*?)\}\}/g,ce=de=>{if(de){if(de instanceof Array)de?.map(Q=>ce(Q));else for(const Q in de)if(de.hasOwnProperty(Q)){const ue=de?.[Q];if(typeof ue=="object")ce(ue);else if(typeof ue=="string"){const be=ue?.match(se);be&&be.forEach(ee=>{var Le;const me=ee.substring(2,ee.length-2);try{let fe=new Function("fix_par","product",`return ${me}`)(J,H);fe?(me?.indexOf("currency")!==-1&&fe?.indexOf("-")!==-1&&typeof fe=="string"&&(fe=(Le=fe?.split("-"))===null||Le===void 0?void 0:Le[0]),de[Q]=fe):delete de[Q]}catch(fe){delete de[Q],console.error("An error occurred:",fe?.message)}})}}}};return ce(Ne),$?.(`v2/event/report/FB/${(Fe=Ke?.headers)===null||Fe===void 0?void 0:Fe["x-app-id"]}/${U}`,{method:"POST",body:Ne,type:"beacon"})},[$,n,h,oe?.enablePreview,oe,ft,Ke]),ai=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/recommend/like",{method:"POST",body:U});return H?.success}),[$]),Jt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/recommend/unlike",{method:"POST",body:U});return H?.success}),[$]),Wt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/customform",{method:"POST",body:U});return H?.success}),[$]),Vt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe,Te,Be,Fe,Ne;const L=!!(!((ke=(ae=(H=U?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||ke===void 0)&&ke.isShowTag);if(!(!i||!L))try{const Y=(Be=(Te=(xe=ui(i))===null||xe===void 0?void 0:xe.filter(se=>{var ce,de;const Q=se.split("=")[0];return(de=(ce=v?.channels)!==null&&ce!==void 0?ce:[])===null||de===void 0?void 0:de.includes(Q)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&Be!==void 0?Be:"",J=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Y)}});B((Ne=(Fe=J?.data)===null||Fe===void 0?void 0:Fe.tags)!==null&&Ne!==void 0?Ne:[])}catch(Y){console.log("e",Y)}}),[$,i]),bt=l.useCallback((U,H,ae,ke)=>{var xe,Te,Be,Fe,Ne,L,Y,J,se,ce,de,Q,ue,be,ee,Le,me,fe,tt,Re,_e,$e,at,ut,Xe,vt,Ie,Ee,kt,Tt,di,it,ii,fn,hn,An;const qt=ae?.bindCta,Od=((xe=H?.video)===null||xe===void 0?void 0:xe.bindProduct)||((Te=H?.video)===null||Te===void 0?void 0:Te.bindProducts)&&((Fe=(Be=H?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||Fe===void 0?void 0:Fe.length)>0;let Ni="",bn=null;Ae?Ni="hashTagPage":!((Ne=H?.video)===null||Ne===void 0)&&Ne.url?(Ni="videoPage",bn="video"):!((Y=(L=H?.video)===null||L===void 0?void 0:L.imgUrls)===null||Y===void 0)&&Y.length&&(Ni="imagePage",bn="image");const El=(be=(Q=(J=ae?.tags)!==null&&J!==void 0?J:(de=(ce=(se=H?.video)===null||se===void 0?void 0:se.bindProducts)===null||ce===void 0?void 0:ce[0])===null||de===void 0?void 0:de.tags)!==null&&Q!==void 0?Q:(ue=H?.video)===null||ue===void 0?void 0:ue.tags)!==null&&be!==void 0?be:(ee=H?.product)===null||ee===void 0?void 0:ee.tags;rt?.({eventInfo:Object.assign(Object.assign({},U),{ctaId:(Le=qt?.itemId)!==null&&Le!==void 0?Le:"",ctaName:(me=qt?.title)!==null&&me!==void 0?me:"",contentTags:El?JSON.stringify(El):"",position:ke+"",contentId:(tt=(fe=H?.video)===null||fe===void 0?void 0:fe.itemId)!==null&&tt!==void 0?tt:"",productId:Od?ae?.itemId:"",traceInfo:(hn=(it=(Ie=(at=(Re=qt?.traceInfo)!==null&&Re!==void 0?Re:($e=(_e=H?.video)===null||_e===void 0?void 0:_e.bindCta)===null||$e===void 0?void 0:$e.traceInfo)!==null&&at!==void 0?at:(vt=(Xe=(ut=H?.video)===null||ut===void 0?void 0:ut.bindProduct)===null||Xe===void 0?void 0:Xe.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&Ie!==void 0?Ie:(di=(Tt=(kt=(Ee=H?.video)===null||Ee===void 0?void 0:Ee.bindProducts)===null||kt===void 0?void 0:kt[0])===null||Tt===void 0?void 0:Tt.bindCta)===null||di===void 0?void 0:di.traceInfo)!==null&&it!==void 0?it:(fn=(ii=H?.product)===null||ii===void 0?void 0:ii.bindCta)===null||fn===void 0?void 0:fn.traceInfo)!==null&&hn!==void 0?hn:"",fromKName:Ni,fromKPage:(An=location?.href)!==null&&An!==void 0?An:"",contentFormat:bn})})},[rt,Ae]),Mi=l.useCallback(()=>{var U,H,ae;const ke=location.search.slice(1),xe={};(U=ui(ke.replace(/\+/g,"%2B")))===null||U===void 0||U.map(Fe=>{const Ne=Fe.split("=")[0],L=Fe.split("=")[1];xe[Ne]=L});for(const Fe in xe)xe[Fe]=xe[Fe].replace(/%2B/g,"+");const Te=Fe=>{var Ne;return(Ne=xe[Fe])!==null&&Ne!==void 0?Ne:""},Be=new Date;Ue.current=Be,rt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Te("utm_source"),utmMedium:Te("utm_medium"),utmCampaign:Te("utm_campaign"),utmId:Te("utm_id"),utmContent:Te("utm_content"),enterTime:Math.floor(Be/1e3)+"",requestId:null,enterUrl:(ae=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&ae!==void 0?ae:""},reportLayId:!1})},[rt]),Li=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){var U,H;const ae=yield $?.("v1/account",{method:"GET"});return Xt((U=ae?.data)===null||U===void 0?void 0:U.chatLabsId),((H=ae?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[$]),ji=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:U}});return H?.success}),[$]);l.useEffect(()=>{St||Mi()},[St]),l.useEffect(()=>{if(St||r)return;O(!0);let U,H;Ye().then(ae=>{var ke,xe,Te,Be,Fe,Ne,L,Y,J,se,ce;if(ae){const de=Dt(ae);let Q,ue;if(ae?.layoutVariantId){U=ae?.layoutVariantId,yt(ae?.layoutVariantId);const be=(xe=(ke=ae?.layoutVariantId)===null||ke===void 0?void 0:ke.split("-"))===null||xe===void 0?void 0:xe[1];be&&(Q=x?.find(ee=>ee?.id===be),Q?(Ze(Q),document.title=(Te=Q?.name)!==null&&Te!==void 0?Te:"home",ue=(Fe=(Be=Q?.data)===null||Be===void 0?void 0:Be.sxpPageConf)===null||Fe===void 0?void 0:Fe.globalConfig,pe(ue),I?.(Q?.data),!((J=(Y=(L=(Ne=ue?.consent)===null||Ne===void 0?void 0:Ne[0])===null||L===void 0?void 0:L.item)===null||Y===void 0?void 0:Y.props)===null||J===void 0)&&J.privacy_necessity&&z(!0)):z(!0))}else z(!0);if(lt||(ue?.playbook==="organic menu"||!ue&&oe?.playbook==="organic menu"?(Pt("organicMenu"),de.unshift("organic menu"),H="organicMenu"):(Pt("paidMedia"),H="paidMedia")),M(de),He(de),Vt(Q??Ot),lt){const be=de?.[0],ee=((se=be?.video)===null||se===void 0?void 0:se.traceInfo)||((ce=be?.product)===null||ce===void 0?void 0:ce.traceInfo)||"";rt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:lt},U&&{layoutVariantId:U})}),rt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-We?.current)/1e3)+""},U&&{layoutVariantId:U})})}}}).finally(()=>{rt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},U&&{layoutVariantId:U}),H&&{playbookType:H})}),O(!1)})},[St,lt]),l.useEffect(()=>{r&&(O(!0),Vt(m),Ye().then(U=>{if(U){const H=Dt(U);oe?.playbook==="organic menu"&&!lt&&H.unshift("organic menu"),M(H),He(H)}}).finally(()=>{O(!1)}))},[Ye,Vt,lt]);const mn=Mt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",a);return l.createElement(Dn.Provider,{value:{rtcList:C,setRtcList:M,mutateLike:ai,mutateUnlike:Jt,submitForm:Wt,popupDetailData:R,loadVideos:xt,setPopupDetailData:te,getRecommendVideos:Ye,bffEventReport:rt,isPreview:r,loading:W,sxpParameter:u,waterFallData:ve,setWaterFallData:he,ctaEvent:bt,swiperRef:P,openHashtag:ie,setOpenHashtag:Me,cacheRtcList:Ve,setCacheRtcList:He,cacheActiveIndex:G,setCacheActiveIndex:_,isFromHashtag:Ae,setIsFromHashtag:ge,appDomain:a,hashTagSize:c,loadingImage:d??mn,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:ye,setVideoRef:re,bffFbReport:ti,isAgreePolicy:X,setIsAgreePolicy:K,curTime:Ue,h5EnterLink:Mi,themeTag:je,isShowConsent:St,selectTag:Ge,setSelectTag:Qe,globalConfig:oe,popupCurTimeRef:Z,checkCommodityIndexRef:Se,isEditor:S,isNoMoreData:q,updateChannel:$t,channel:lt,eventTimeList:pt,setEventTimeList:wt,multiPostTimeRef:We,refreshFeSession:ei,getAccount:Li,accountSonsent:ji}},St?l.createElement(Gl,Object.assign({},(j=(T=(w=oe?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||j===void 0?void 0:j.props)):t({rtcList:C,mutateLike:ai,mutateUnlike:Jt,submitForm:Wt,tagList:E,pageData:Ot}))};var Vn=l.memo(Zl);function De(){return l.useContext(Dn)}var Bn;(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"})(Bn||(Bn={}));const Fn=l.createContext({$store:{},options:[],configs:[]}),Kl=({children:t,isSsr:e,enable:i})=>{const[n,s]=l.useState([]),{schema:o}=Gt(),[r,u]=l.useState(o.__STORE__||{}),[a,c]=l.useState([]);l.useEffect(()=>{var h;e||Je.isEqual(a,o?.dataSource)||c((h=o?.dataSource)!==null&&h!==void 0?h:[])},[o?.dataSource,e]);const d=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Sn("",a);u(h),p(h,f)}),[a]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),s(y)};return l.useEffect(()=>{e||d()},[d,e,o]),i?l.createElement(Fn.Provider,{value:{$store:o.__STORE__||r,options:n,configs:a}},t):t};var _l=l.memo(Kl);const gi={id:Ai(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},zi={id:"",duration:0,name:"none"},Wn=l.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[gi],redoStack:[],popup:zi,setPopup:()=>{}}),zn=l.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:s=!0,utmVal:o},r)=>{const[u,a]=l.useState(null),[c,d]=l.useState(n||{pointData:[gi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=l.useState([gi]),[f,y]=l.useState([[gi]]),[b,S]=l.useState([]),[v,g]=l.useState(zi);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},zi),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(Xl(),N?.indexOf("?")!==-1?N+(o?"&"+o:""):N+(o?"?"+o:""))),l.useEffect(()=>{y([c.pointData]),S([])},[c.type]);const m=l.useCallback(N=>{const A=Je.cloneDeep(c);A&&(A.dataSource=N,d?.(A))},[c]),[x,I]=l.useState();l.useImperativeHandle(r,()=>({loadSchema(N){N&&(y([N.pointData]),d(N))},exportSchema(){return Je.cloneDeep(c)},getPageInfoData(){return x},initPageInfoData(N){N&&I(N)}}));const k=l.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return l.createElement(Wn.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:a,setSchema:d,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>I(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},l.createElement(_l,{isSsr:i,enable:s},t))});var Jl=Object.freeze({__proto__:null,EditorCore:zn}),Ql=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Rl=[{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 gt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:s}=De(),o=l.useCallback((a,c,d,p,h,f)=>{var y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,B,W,O,V,D,P,F,X,K,R,te,ve,he,ie,Me,Ve,He,G,_,Ae,ge;if(n?.findIndex(We=>We.target===a?.target)!==-1)return;a&&s?.(We=>[...We,{target:a?.target,time:new Date}]);let re="";e&&(!((b=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?re="pdpPage":i?re="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?re="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=c?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?re="imagePage":c?.product&&(re="productPage");const je=(j=(w=(I=d?.tags)!==null&&I!==void 0?I:(A=(N=(k=c?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&j!==void 0?j:(C=c?.product)===null||C===void 0?void 0:C.tags;let Ue=null;!((M=c?.video)===null||M===void 0)&&M.url?Ue="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Ue="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=d?.itemId)!==null&&O!==void 0?O:"",productName:(V=d?.title)!==null&&V!==void 0?V:"",price:d?.price?d?.price+"":"0",productCollection:(D=d?.collection)!==null&&D!==void 0?D:"",fromKName:re,fromKPage:location?.href,contentTags:je?JSON.stringify(je):"",position:h+"",contentId:(F=(P=c?.video)===null||P===void 0?void 0:P.itemId)!==null&&F!==void 0?F:"",ctatId:(X=p?.itemId)!==null&&X!==void 0?X:"",traceInfo:(ge=(G=(Ve=(ve=(K=f??d?.traceInfo)!==null&&K!==void 0?K:(te=(R=c?.video)===null||R===void 0?void 0:R.bindProduct)===null||te===void 0?void 0:te.traceInfo)!==null&&ve!==void 0?ve:(Me=(ie=(he=c?.video)===null||he===void 0?void 0:he.bindProducts)===null||ie===void 0?void 0:ie[0])===null||Me===void 0?void 0:Me.traceInfo)!==null&&Ve!==void 0?Ve:(He=c?.product)===null||He===void 0?void 0:He.traceInfo)!==null&&G!==void 0?G:(Ae=(_=c?.video)===null||_===void 0?void 0:_.bindCta)===null||Ae===void 0?void 0:Ae.traceInfo)!==null&&ge!==void 0?ge:""},Ue&&{contentFormat:Ue})})},[t,e,i,n]),r=l.useCallback((a,c,d,p,h)=>{var f,y,b,S,v,g,m,x,I,k,N,A,w,T;let j="";e&&(!((y=(f=a?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=a?.video)===null||b===void 0)&&b.bindProduct)?j="pdpPage":a?.product&&(j="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:j,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:h+"",contentId:(S=a?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(A=(x=(v=c?.traceInfo)!==null&&v!==void 0?v:(m=(g=a?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(I=a?.video)===null||I===void 0?void 0:I.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=a?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),u=l.useCallback((a,c,d,p)=>{c&&c===bi&&t?.({eventInfo:{lastFeed:a,themeTags:d?`['${d}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:r,backMainFeed:u}}const $l=({layout:t,columns:e,onChange:i})=>l.createElement(l.Fragment,null,e?.map((n,s)=>l.createElement("div",{key:s,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&l.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&l.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 eo=l.memo($l);const to=t=>{var e,i,{columns:n,style:s,title:o,textStyle:r,submitBgColor:u,submitColor:a,submitText:c,layoutType:d="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=et(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=De(),{jumpToWeb:m}=gt(),[x,I]=l.useState(!1),[k,N]=l.useState({}),[A,w]=l.useState(0),T=l.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),j=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=l.useMemo(()=>Je.cloneDeep(n)||T,[n,T]),M=l.useCallback(B=>{const{name:W,value:O}=B.target;N(Object.assign(Object.assign({},k),{[W]:O}))},[k]),E=Je.debounce(B=>nt(void 0,void 0,void 0,function*(){var W,O,V,D,P;const F=k;if(!F)return;const X=(O=(W=Object.keys(F))===null||W===void 0?void 0:W.map(R=>{var te;return{name:R,value:(te=F[R])!==null&&te!==void 0?te:""}}))===null||O===void 0?void 0:O.filter(R=>R?.value);if(!X||!X?.length)return;I(!0);const K=yield v?.({attributes:X});if(I(!1),K){if(p){const R=g,te=(V=R?.video)===null||V===void 0?void 0:V.bindProduct,ve=(P=(D=R?.video)===null||D===void 0?void 0:D.bindProduct)===null||P===void 0?void 0:P.bindCta,he=g?.index;m(B,R,te,ve,he)}h||y?.(),f?.()}}),1e3);return l.useEffect(()=>{const B=()=>{var W,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<j?w(50):w(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),l.createElement("div",{className:"pb-appoint-form"},l.createElement("div",{className:`pb-appoint-form-title ${Oe.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Ce(o,r)}}),l.createElement("div",Object.assign({className:Oe.css(Object.assign(Object.assign({},s),{marginTop:A}))},S),l.createElement("div",{className:"pb-appoint-form-container"},l.createElement(eo,{columns:C,layout:d,onChange:M}))),l.createElement("div",{className:"pb-appoint-form-btn-wrapper"},l.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:a,background:u},b),dangerouslySetInnerHTML:{__html:Ce(x?"loading...":c,b)}})))};var io=l.memo(to);function st(t,e){return t.extend=e,t}const no=st(io,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Rl,bindableProps:[],interactionRender:Ql},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 lo=[{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 Hn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Hi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Hn(e[i])&&Hn(t[i])&&Object.keys(e[i]).length>0&&Hi(t[i],e[i])})}const Un={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 Et(){const t=typeof document<"u"?document:{};return Hi(t,Un),t}const oo={document:Un,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 At(){const t=typeof window<"u"?window:{};return Hi(t,oo),t}function Zt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function so(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ni(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Lt(){return Date.now()}function ro(t){const e=At();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function ao(t,e){e===void 0&&(e="x");const i=At();let n,s,o;const r=ro(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(s==="none"?"":s)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=o.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?s=o.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function yi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function uo(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function It(){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&&!uo(n)){const s=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,r=s.length;o<r;o+=1){const u=s[o],a=Object.getOwnPropertyDescriptor(n,u);a!==void 0&&a.enumerable&&(yi(t[u])&&yi(n[u])?n[u].__swiper__?t[u]=n[u]:It(t[u],n[u]):!yi(t[u])&&yi(n[u])?(t[u]={},n[u].__swiper__?t[u]=n[u]:It(t[u],n[u])):t[u]=n[u])}}}return t}function wi(t,e,i){t.style.setProperty(e,i)}function Xn(t){let{swiper:e,targetPosition:i,side:n}=t;const s=At(),o=-e.translate;let r=null,u;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",d=(h,f)=>c==="next"&&h>=f||c==="prev"&&h<=f,p=()=>{u=new Date().getTime(),r===null&&(r=u);const h=Math.max(Math.min((u-r)/a,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=o+f*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(p)};p()}function zt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Si(t){try{console.warn(t);return}catch{}}function li(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Zt(e)),i}function qn(t){const e=At(),i=Et(),n=t.getBoundingClientRect(),s=i.body,o=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:n.top+u-o,left:n.left+a-r}}function co(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 vo(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 Kt(t,e){return At().getComputedStyle(t,null).getPropertyValue(e)}function ci(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 Ui(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Xi(t,e,i){const n=At();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)}function qi(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=Et(),r=At();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(d){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let I=!1;if(xi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&xi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=r.innerWidth,T=r.innerHeight,j=qn(k);p&&(j.left-=k.scrollLeft);const C=[[j.left,j.top],[j.left+N,j.top],[j.left,j.top+A],[j.left+N,j.top+A]];for(let M=0;M<C.length;M+=1){const E=C[M];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;I=!0}}if(!I)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),s("keyPress",f)}}function a(){e.keyboard.enabled||(o.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",u),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:a,disable:c})}function Ti(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=At();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let r,u=Lt(),a;const c=[];function d(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Lt()-u<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Lt()-u<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",m.raw)),u=new o.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,I=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,j=d(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(j.pixelX)>Math.abs(j.pixelY))w=-j.pixelX*T;else return!0;else if(Math.abs(j.pixelY)>Math.abs(j.pixelX))w=-j.pixelY;else return!0;else w=Math.abs(j.pixelX)>Math.abs(j.pixelY)?-j.pixelX*T:-j.pixelY;if(w===0)return!0;k.invert&&(w=-w);let C=e.getTranslate()+w*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),I=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),I&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Lt(),delta:Math.abs(w),direction:Math.sign(w),raw:m};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(M),E?(M.direction!==E.direction||M.delta>E.delta||M.time>E.time+150)&&f(M):f(M),y(M))return!0}else{const M={time:Lt(),delta:Math.abs(w),direction:Math.sign(w)},E=a&&M.time<a.time+500&&M.delta<=a.delta&&M.direction===a.direction;if(!E){a=void 0;let B=e.getTranslate()+w*k.sensitivity;const W=e.isBeginning,O=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||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const V=c.length?c[c.length-1]:void 0,D=c[0];if(c.push(M),V&&(M.delta>V.delta||M.direction!==V.direction))c.splice(0);else if(c.length>=15&&M.time-D.time<500&&D.delta-M.delta>=1&&M.delta<=6){const P=w>0?.8:.2;a=M,c.splice(0),r=ni(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}r||(r=ni(()=>{a=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||s("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function Yi(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!i[s]&&i.auto===!0){let o=zt(t.el,`.${n[s]}`)[0];o||(o=li("div",n[s]),o.className=n[s],t.el.append(o)),i[s]=o,e[s]=o}}),i}function Gi(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function r(y,b){const S=e.params.navigation;y=ze(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function u(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){r(b,!1),r(y,!1);return}r(b,e.isBeginning&&!e.params.rewind),r(y,e.isEnd&&!e.params.rewind)}function a(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Yi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),S=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=ze(b),S=ze(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?c:a),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=ze(y),b=ze(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:a),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(d(),u())}),n("toEdge fromEdge lock unlock",()=>{u()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=ze(y),b=ze(b),e.enabled){u();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=ze(S),v=ze(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(I=>S.includes(I)||v.includes(I)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),s(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(I=>!!I).forEach(I=>I.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),u()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:u,init:d,destroy:p})}function Ut(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ei(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let r,u=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function d(v){const g=v.target.closest(Ut(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=ci(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(a())return;let m=e.pagination.el;m=ze(m);let x,I;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(I=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,j;if(g.dynamicBullets&&(r=Xi(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&I!==void 0&&(u+=x-(I||0),u>g.dynamicMainBullets-1?u=g.dynamicMainBullets-1:u<0&&(u=0)),w=Math.max(x-u,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),j=(T+w)/2),A.forEach(C=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...M)}),m.length>1)A.forEach(C=>{const M=ci(C);M===x?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(M>=w&&M<=T&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),M===w&&c(C,"prev"),M===T&&c(C,"next"))});else{const C=A[x];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((M,E)=>{M.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const M=A[w],E=A[T];for(let B=w;B<=T;B+=1)A[B]&&A[B].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(E,"next")}}if(g.dynamicBullets){const C=Math.min(A.length,g.dynamicMainBullets+4),M=(r*C-r)/2-j*r,E=v?"right":"left";A.forEach(B=>{B.style[e.isHorizontal()?E:"top"]=`${M}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Ut(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Ut(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const j=(x+1)/N;let C=1,M=1;T==="horizontal"?C=j:M=j,A.querySelectorAll(Ut(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${M})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&s("paginationRender",A)):(w===0&&s("paginationRender",A),s("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(a())return;const g=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 m=e.pagination.el;m=ze(m);let x="";if(v.type==="bullets"){let I=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>g&&(I=g);for(let k=0;k<I;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(I=>{v.type!=="custom"&&(I.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(Ut(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",m[0])}function f(){e.params.pagination=Yi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(m=>xi(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=ze(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",d),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(a())return;let g=e.pagination.el;g&&(g=ze(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=ze(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const I=x[0].classList.contains(e.params.pagination.hiddenClass);s(I===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function po(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=Et();let r=!1,u=null,a=null,c,d,p,h;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 f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:M}=e,{dragEl:E,el:B}=C,W=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let V=d,D=(p-d)*O;M?(D=-D,D>0?(V=d-D,D=0):-D+d>p&&(V=p+D)):D<0?(V=d+D,D=0):D+d>p&&(V=p-D),e.isHorizontal()?(E.style.transform=`translate3d(${D}px, 0, 0)`,E.style.width=`${V}px`):(E.style.transform=`translate3d(0px, ${D}px, 0)`,E.style.height=`${V}px`),W.hide&&(clearTimeout(u),B.style.opacity=1,u=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:M,el:E}=C;M.style.width="",M.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=p*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${d}px`:M.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:M,rtlTranslate:E}=e,{el:B}=M;let W;W=(S(C)-qn(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(p-d),W=Math.max(Math.min(W,1),0),E&&(W=1-W);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:B}=e,{el:W,dragEl:O}=E;r=!0,c=C.target===O?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),B.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(C),clearTimeout(a),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",C)}function m(C){const{scrollbar:M,wrapperEl:E}=e,{el:B,dragEl:W}=M;r&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function x(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:B}=e,{el:W}=E;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(a),a=ni(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),M.snapOnRelease&&e.slideToClosest())}function I(C){const{scrollbar:M,params:E}=e,B=M.el;if(!B)return;const W=B,O=E.passiveListeners?{passive:!1,capture:!1}:!1,V=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const D=C==="on"?"addEventListener":"removeEventListener";W[D]("pointerdown",g,O),o[D]("pointermove",m,O),o[D]("pointerup",x,V)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||I("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||I("off")}function A(){const{scrollbar:C,el:M}=e;e.params.scrollbar=Yi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let B;if(typeof E.el=="string"&&e.isElement&&(B=e.el.querySelector(E.el)),!B&&typeof E.el=="string"){if(B=o.querySelectorAll(E.el),!B.length)return}else B||(B=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&B.length>1&&M.querySelectorAll(E.el).length===1&&(B=M.querySelector(E.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let W;B&&(W=B.querySelector(Ut(e.params.scrollbar.dragClass)),W||(W=li("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(C,{el:B,dragEl:W}),E.draggable&&k(),B&&B.classList[e.enabled?"remove":"add"](...Zt(e.params.scrollbar.lockClass))}function w(){const C=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...Zt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:M}=e.scrollbar;M=ze(M),M.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?j():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(C,M)=>{y(M)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Zt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Zt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Zt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},j=()=>{e.el.classList.add(...Zt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Zt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:j,updateSize:b,setTranslate:f,init:A,destroy:w})}function Zi(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 s=null,o,r,u=new Date().getTime();function a(O){const V=s;V.length!==0&&(V.innerHTML="",V.innerHTML=O)}function c(O){O===void 0&&(O=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,V)}function d(O){O=ze(O),O.forEach(V=>{V.setAttribute("tabIndex","0")})}function p(O){O=ze(O),O.forEach(V=>{V.setAttribute("tabIndex","-1")})}function h(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("role",V)})}function f(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-roledescription",V)})}function y(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-controls",V)})}function b(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-label",V)})}function S(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("id",V)})}function v(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-live",V)})}function g(O){O=ze(O),O.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function m(O){O=ze(O),O.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const V=e.params.a11y,D=O.target;if(!(e.pagination&&e.pagination.el&&(D===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Ut(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=ze(e.navigation.prevEl);ze(e.navigation.nextEl).includes(D)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(V.lastSlideMessage):a(V.nextSlideMessage)),P.includes(D)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(V.firstSlideMessage):a(V.prevSlideMessage))}e.pagination&&D.matches(Ut(e.params.pagination.bulletClass))&&D.click()}}function I(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:V}=e.navigation;V&&(e.isBeginning?(g(V),p(V)):(m(V),d(V))),O&&(e.isEnd?(g(O),p(O)):(m(O),d(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(d(V),e.params.pagination.renderBullet||(h(V,"button"),b(V,O.paginationBulletMessage.replace(/\{\{index\}\}/,ci(V)+1)))),V.matches(Ut(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const w=(O,V,D)=>{d(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,D),y(O,V)},T=O=>{r&&r!==O.target&&!r.contains(O.target)&&(o=!0),e.a11y.clicked=!0},j=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=O=>{u=new Date().getTime()},M=O=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const V=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;r=V;const D=e.slides.indexOf(V)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);D||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),o=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const V=e.slides.length;O.slideLabelMessage&&e.slides.forEach((D,P)=>{const F=e.params.loop?parseInt(D.getAttribute("data-swiper-slide-index"),10):P,X=O.slideLabelMessage.replace(/\{\{index\}\}/,F+1).replace(/\{\{slidesLength\}\}/,V);b(D,X)})},B=()=>{const O=e.params.a11y;e.el.append(s);const V=e.el;O.containerRoleDescriptionMessage&&f(V,O.containerRoleDescriptionMessage),O.containerMessage&&b(V,O.containerMessage);const D=e.wrapperEl,P=O.id||D.getAttribute("id")||`swiper-wrapper-${c(16)}`,F=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(D,P),v(D,F),E();let{nextEl:X,prevEl:K}=e.navigation?e.navigation:{};X=ze(X),K=ze(K),X&&X.forEach(te=>w(te,P,O.nextSlideMessage)),K&&K.forEach(te=>w(te,P,O.prevSlideMessage)),N()&&ze(e.pagination.el).forEach(ve=>{ve.addEventListener("keydown",x)}),Et().addEventListener("visibilitychange",C),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",j,!0)};function W(){s&&s.remove();let{nextEl:O,prevEl:V}=e.navigation?e.navigation:{};O=ze(O),V=ze(V),O&&O.forEach(P=>P.removeEventListener("keydown",x)),V&&V.forEach(P=>P.removeEventListener("keydown",x)),N()&&ze(e.pagination.el).forEach(F=>{F.removeEventListener("keydown",x)}),Et().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",j,!0))}n("beforeInit",()=>{s=li("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&I()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Ci(t){let{swiper:e,extendParams:i,on:n,emit:s,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,u,a=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,d,p=new Date().getTime(),h,f,y,b,S,v,g;function m(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||V.detail&&V.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=d,h=!1);const V=e.autoplay.paused?d:p+c-new Date().getTime();e.autoplay.timeLeft=V,s("autoplayTimeLeft",V,V/a),u=requestAnimationFrame(()=>{x()})},I=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},k=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),x();let D=typeof V>"u"?e.params.autoplay.delay:V;a=e.params.autoplay.delay,c=e.params.autoplay.delay;const P=I();!Number.isNaN(P)&&P>0&&typeof V>"u"&&(D=P,a=P,c=P),d=D;const F=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,F,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,F,!0,!0),s("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return D>0?(clearTimeout(r),r=setTimeout(()=>{X()},D)):requestAnimationFrame(()=>{X()}),D},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),s("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},w=(V,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),V||(v=!0);const P=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,D){S&&(d=e.params.autoplay.delay),S=!1,P();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),P())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,s("autoplayResume"))},j=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Et();V.visibilityState==="hidden"&&(v=!0,w(!0)),V.visibilityState==="visible"&&T()},C=V=>{V.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},M=V=>{V.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",M))},W=()=>{Et().addEventListener("visibilitychange",j)},O=()=>{Et().removeEventListener("visibilitychange",j)};n("init",()=>{e.params.autoplay.enabled&&(E(),W(),N())}),n("destroy",()=>{B(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(V,D,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(r),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function mo(t){let{swiper:e,extendParams:i,emit:n,once:s}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:a,touches:c}=e;a.velocities.length===0&&a.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Lt()})}function u(a){let{currentPos:c}=a;if(e.params.cssMode)return;const{params:d,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Lt()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,j=A.time-w.time;e.velocity=T/j,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(j>150||Lt()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,I;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())d.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),I=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(m>e.minTranslate())d.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),I=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(d.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),d.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=d.speed:A<2*w?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&x?(e.updateProgress(I),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ui(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(I),Ui(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ui(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:r,onTouchEnd:u}})}let Ki;function fo(){const t=At(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Yn(){return Ki||(Ki=fo()),Ki}let _i;function ho(t){let{userAgent:e}=t===void 0?{}:t;const i=Yn(),n=At(),s=n.navigator.platform,o=e||n.navigator.userAgent,r={ios:!1,android:!1},u=n.screen.width,a=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=s==="Win32";let y=s==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${u}x${a}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),c&&!f&&(r.os="android",r.android=!0),(d||h||p)&&(r.os="ios",r.ios=!0),r}function Gn(t){return t===void 0&&(t={}),_i||(_i=ho(t)),_i}let Ji;function Ao(){const t=At(),e=Gn();let i=!1;function n(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(n()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[a,c]=u.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=a<16||a===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),r=o||s&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function bo(){return Ji||(Ji=Ao()),Ji}function go(t){let{swiper:e,on:i,emit:n}=t;const s=At();let o=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(p=>{r=s.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&u()})}),o.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",d)})}function yo(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=[],r=At(),u=function(d,p){p===void 0&&(p={});const h=r.MutationObserver||r.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){s("observerUpdate",y[0]);return}const b=function(){s("observerUpdate",y[0])};r.requestAnimationFrame?r.requestAnimationFrame(b):r.setTimeout(b,0)});f.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),o.push(f)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=xi(e.hostEl);for(let p=0;p<d.length;p+=1)u(d[p])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",c)}var wo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][s](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function s(){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,r=new Array(o),u=0;u<o;u++)r[u]=arguments[u];e.apply(n,r)}return s.__emitterProxy=e,n.on(t,s,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((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(n,i)})}),t}};function So(){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(Kt(n,"padding-left")||0,10)-parseInt(Kt(n,"padding-right")||0,10),i=i-parseInt(Kt(n,"padding-top")||0,10)-parseInt(Kt(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 xo(){const t=this;function e(T,j){return parseFloat(T.getPropertyValue(t.getDirectionLabel(j))||0)}const i=t.params,{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:r,wrongRTL:u}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=zt(s,`.${t.params.slideClass}, swiper-slide`),p=a?t.virtual.slides.length:d.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let m=i.spaceBetween,x=-b,I=0,k=0;if(typeof o>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*o:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,d.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(wi(n,"--swiper-centered-offset-before",""),wi(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let j;if(d[T]&&(j=d[T]),N&&t.grid.updateSlide(T,j,d),!(d[T]&&Kt(j,"display")==="none")){if(i.slidesPerView==="auto"){w&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(j),M=j.style.transform,E=j.style.webkitTransform;if(M&&(j.style.transform="none"),E&&(j.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?Xi(j,"width",!0):Xi(j,"height",!0);else{const B=e(C,"width"),W=e(C,"padding-left"),O=e(C,"padding-right"),V=e(C,"margin-left"),D=e(C,"margin-right"),P=C.getPropertyValue("box-sizing");if(P&&P==="border-box")A=B+V+D;else{const{clientWidth:F,offsetWidth:X}=j;A=B+W+O+V+D+(X-F)}}M&&(j.style.transform=M),E&&(j.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(o-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${A}px`);d[T]&&(d[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+I/2+m,I===0&&T!==0&&(x=x-o/2-m),T===0&&(x=x-o/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,I=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,r&&u&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let j=0;j<h.length;j+=1){let C=h[j];i.roundLengths&&(C=Math.floor(C)),h[j]<=t.virtualSize-o&&T.push(C)}h=T,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(a&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const j=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let M=0;M<j;M+=1)h.push(h[h.length-1]+C)}for(let j=0;j<t.virtual.slidesBefore+t.virtual.slidesAfter;j+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");d.filter((j,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(j=>{j.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=T-o;h=h.map(C=>C<=0?-b:C>j?j+S:C)}if(i.centerInsufficientSlides){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+j<o){const C=(o-T-j)/2;h.forEach((M,E)=>{h[E]=M-C}),f.forEach((M,E)=>{f[E]=M+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){wi(n,"--swiper-centered-offset-before",`${-h[0]}px`),wi(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],j=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+j)}if(p!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,j=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?j||t.el.classList.add(T):j&&t.el.classList.remove(T)}}function To(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>n?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const u=e.activeIndex+o;if(u>e.slides.length&&!n)break;i.push(r(u))}else i.push(r(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const u=i[o].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function Eo(){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 Zn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Co(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:s,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let a=0;a<n.length;a+=1){const c=n[a];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const p=(r+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),h=(r-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),f=-(r-d),y=f+e.slidesSizesGrid[a],b=f>=0&&f<=e.size-e.slidesSizesGrid[a],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a)),Zn(c,S,i.slideVisibleClass),Zn(c,b,i.slideFullyVisibleClass),c.progress=s?-p:p,c.originalProgress=s?-h:h}}function ko(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:r,progressLoop:u}=e;const a=o,c=r;if(n===0)s=0,o=!0,r=!0;else{s=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;o=d||s<=0,r=p||s>=1,d&&(s=0),p&&(s=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?u=(b-h)/y:u=(b+y-f)/y,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(a&&!o||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const Qi=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:s}=t,o=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=p=>zt(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let a,c,d;if(o)if(i.loop){let p=s-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),a=u(`[data-swiper-slide-index="${p}"]`)}else a=u(`[data-swiper-slide-index="${s}"]`);else r?(a=e.filter(p=>p.column===s)[0],d=e.filter(p=>p.column===s+1)[0],c=e.filter(p=>p.column===s-1)[0]):a=e[s];a&&(r||(d=vo(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=co(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(p=>{Qi(p,p===a,i.slideActiveClass),Qi(p,p===d,i.slideNextClass),Qi(p,p===c,i.slidePrevClass)}),t.emitSlidesClasses()}const ki=(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 s=n.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},Ri=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},$i=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),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((a,c)=>r+n+c)),t.slides.forEach((a,c)=>{u.includes(a.column)&&Ri(t,c)});return}const o=s+n-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=o+e;r+=1){const u=(r%i+i)%i;(u<s||u>o)&&Ri(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(o+e,i-1);r+=1)r!==s&&(r>o||r<s)&&Ri(t,r)};function Po(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let s;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?s=o:n>=e[o]&&n<e[o+1]&&(s=o+1):n>=e[o]&&(s=o);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Oo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:o,realIndex:r,snapIndex:u}=e;let a=t,c;const d=f=>{let y=f-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 a>"u"&&(a=Po(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const f=Math.min(s.slidesPerGroupSkip,a);c=f+Math.floor((a-f)/s.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),a===o&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const p=e.grid&&s.grid&&s.grid.rows>1;let h;if(e.virtual&&s.virtual.enabled&&s.loop)h=d(a);else if(p){const f=e.slides.filter(b=>b.column===a)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/s.grid.rows)}else if(e.slides[a]){const f=e.slides[a].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=a}else h=a;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:h,previousIndex:o,activeIndex:a}),e.initialized&&$i(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Mo(t,e){const i=this,n=i.params;let s=t.closest(`.${n.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${n.slideClass}, swiper-slide`)&&(s=u)});let o=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){o=!0,r=u;break}}if(s&&o)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Lo={updateSize:So,updateSlides:xo,updateAutoHeight:To,updateSlidesOffset:Eo,updateSlidesProgress:Co,updateProgress:ko,updateSlidesClasses:Io,updateActiveIndex:Oo,updateClickedSlide:Mo};function jo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:s,wrapperEl:o}=e;if(i.virtualTranslate)return n?-s:s;if(i.cssMode)return s;let r=ao(o,t);return r+=e.cssOverflowAdjustment(),n&&(r=-r),r||0}function No(t,e){const i=this,{rtlTranslate:n,params:s,wrapperEl:o,progress:r}=i;let u=0,a=0;const c=0;i.isHorizontal()?u=n?-t:t:a=t,s.roundLengths&&(u=Math.floor(u),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:a,s.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-a:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${u}px, ${a}px, ${c}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Do(){return-this.snapGrid[0]}function Vo(){return-this.snapGrid[this.snapGrid.length-1]}function Bo(t,e,i,n,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:r,wrapperEl:u}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const a=o.minTranslate(),c=o.maxTranslate();let d;if(n&&t>a?d=a:n&&t<c?d=c:d=t,o.updateProgress(d),r.cssMode){const p=o.isHorizontal();if(e===0)u[p?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Xn({swiper:o,targetPosition:-d,side:p?"left":"top"}),!0;u.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(h){!o||o.destroyed||h.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Fo={getTranslate:jo,setTranslate:No,minTranslate:Do,maxTranslate:Vo,translateTo:Bo};function Wo(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 Kn(t){let{swiper:e,runCallbacks:i,direction:n,step:s}=t;const{activeIndex:o,previousIndex:r}=e;let u=n;if(u||(o>r?u="next":o<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&o!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Kn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Ho(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Kn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Uo={setTransition:Wo,transitionStart:zo,transitionEnd:Ho};function Xo(t,e,i,n,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:a,slidesGrid:c,previousIndex:d,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=o;if(!y&&!n&&!s||o.destroyed||o.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const b=Math.min(o.params.slidesPerGroupSkip,r);let S=b+Math.floor((r-b)/o.params.slidesPerGroup);S>=a.length&&(S=a.length-1);const v=-a[S];if(u.normalizeSlideIndex)for(let m=0;m<c.length;m+=1){const x=-Math.floor(v*100),I=Math.floor(c[m]*100),k=Math.floor(c[m+1]*100);typeof c[m+1]<"u"?x>=I&&x<k-(k-I)/2?r=m:x>=I&&x<k&&(r=m+1):x>=I&&(r=m)}if(o.initialized&&r!==p&&(!o.allowSlideNext&&(h?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(p||0)!==r))return!1;r!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(r>p?g="next":r<p?g="prev":g="reset",h&&-v===o.translate||!h&&v===o.translate)return o.updateActiveIndex(r),u.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),u.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(u.cssMode){const m=o.isHorizontal(),x=h?v:-v;if(e===0){const I=o.virtual&&o.params.virtual.enabled;I&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),I&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,I&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Xn({swiper:o,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,g),e===0?o.transitionEnd(i,g):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(x){!o||o.destroyed||x.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,g))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function qo(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(o){const h=r*s.params.grid.rows;u=s.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else u=s.getSlideIndexByData(r);const a=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let p=a-u<d;if(c&&(p=p||u<Math.ceil(d/2)),n&&c&&s.params.slidesPerView!=="auto"&&!o&&(p=!1),p){const h=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?u+1:u-a+1,slideRealIndex:h==="next"?s.realIndex:void 0})}if(o){const h=r*s.params.grid.rows;r=s.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,n)}),s}function Yo(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:s,params:o,animating:r}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let u=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(u=Math.max(n.slidesPerViewDynamic("current",!0),1));const a=n.activeIndex<o.slidesPerGroupSkip?1:u,c=n.virtual&&o.virtual.enabled;if(o.loop){if(r&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+a,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+a,t,e,i)}function Go(t,e,i){e===void 0&&(e=!0);const n=this,{params:s,snapGrid:o,slidesGrid:r,rtlTranslate:u,enabled:a,animating:c}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=u?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=o.map(v=>h(v));let b=o[y.indexOf(f)-1];if(typeof b>"u"&&s.cssMode){let v;o.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=o[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=r.indexOf(b),S<0&&(S=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function Zo(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 Ko(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let o=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,o),u=r+Math.floor((o-r)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[u]){const c=s.snapGrid[u],d=s.snapGrid[u+1];a-c>(d-c)*n&&(o+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],d=s.snapGrid[u];a-c<=(d-c)*n&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,i)}function _o(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,o;const r=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=t.getSlideIndex(zt(i,`${r}[data-swiper-slide-index="${o}"]`)[0]),ni(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=t.getSlideIndex(zt(i,`${r}[data-swiper-slide-index="${o}"]`)[0]),ni(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var Jo={slideTo:Xo,slideToLoop:qo,slideNext:Yo,slidePrev:Go,slideReset:Zo,slideToClosest:Ko,slideToClickedSlide:_o};function Qo(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{zt(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},o=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(o?i.grid.rows:1),u=e.slides.length%r!==0,a=o&&e.slides.length%i.grid.rows!==0,c=d=>{for(let p=0;p<d;p+=1){const h=e.isElement?li("swiper-slide",[i.slideBlankClass]):li("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(u){if(i.loopAddBlankSlides){const d=r-e.slides.length%r;c(d),e.recalcSlides(),e.updateSlides()}else Si("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else Si("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Ro(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:s,activeSlideIndex:o,byController:r,byMousewheel:u}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=a,{centeredSlides:y}=f;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):f.centeredSlides&&a.snapIndex<f.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=d,a.allowSlideNext=p,a.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=a.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,a.loopedSlides=v;const g=a.grid&&f.grid&&f.grid.rows>1;c.length<b+v?Si("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"):g&&f.grid.fill==="row"&&Si("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let I=a.activeIndex;typeof o>"u"?o=a.getSlideIndex(c.filter(M=>M.classList.contains(f.slideActiveClass))[0]):I=o;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(c.length/f.grid.rows):c.length,C=(g?c[o].column:o)+(y&&typeof s>"u"?-b/2+.5:0);if(C<v){A=Math.max(v-C,S);for(let M=0;M<v-C;M+=1){const E=M-Math.floor(M/T)*T;if(g){const B=T-E-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&m.push(W)}else m.push(T-E-1)}}else if(C+b>T-v){w=Math.max(C-(T-v*2),S);for(let M=0;M<w;M+=1){const E=M-Math.floor(M/T)*T;g?c.forEach((B,W)=>{B.column===E&&x.push(W)}):x.push(E)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),N&&m.forEach(M=>{c[M].swiperLoopMoveDOM=!0,h.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),k&&x.forEach(M=>{c[M].swiperLoopMoveDOM=!0,h.append(c[M]),c[M].swiperLoopMoveDOM=!1}),a.recalcSlides(),f.slidesPerView==="auto"?a.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&a.slides.forEach((M,E)=>{a.grid.updateSlide(E,M,a.slides)}),f.watchSlidesProgress&&a.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const M=a.slidesGrid[I],B=a.slidesGrid[I+A]-M;u?a.setTranslate(a.translate-B):(a.slideTo(I+Math.ceil(A),0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else if(s){const M=g?m.length/f.grid.rows:m.length;a.slideTo(a.activeIndex+M,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(x.length>0&&k)if(typeof e>"u"){const M=a.slidesGrid[I],B=a.slidesGrid[I-w]-M;u?a.setTranslate(a.translate-B):(a.slideTo(I-w,0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else{const M=g?x.length/f.grid.rows:x.length;a.slideTo(a.activeIndex-M,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=p,a.controller&&a.controller.control&&!r){const M={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...M,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...M,slideTo:a.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}a.emit("loopFix")}function $o(){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(s=>{const o=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[o]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var es={loopCreate:Qo,loopFix:Ro,loopDestroy:$o};function ts(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 is(){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 ns={setGrabCursor:ts,unsetGrabCursor:is};function ls(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Et()||n===At())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(t);return!s&&!n.getRootNode?null:s||i(n.getRootNode().host)}return i(e)}function _n(t,e,i){const n=At(),{params:s}=t,o=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return o&&(i<=r||i>=n.innerWidth-r)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function os(t){const e=this,i=Et();let n=t;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){_n(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:r,enabled:u}=e;if(!u||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let a=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(a=d[0]);const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(h?ls(p,a):a.closest(p))){e.allowClick=!0;return}if(o.swipeHandler&&!a.closest(o.swipeHandler))return;r.currentX=n.pageX,r.currentY=n.pageY;const f=r.currentX,y=r.currentY;if(!_n(e,n,f))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=f,r.startY=y,s.touchStartTime=Lt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let b=!0;a.matches(s.focusableElements)&&(b=!1,a.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const S=b&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!a.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function ss(t){const e=Et(),i=this,n=i.touchEventsData,{params:s,touches:o,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(n.touchId!==null||a.pointerId!==n.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(k=>k.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=a;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){o.startX=d,o.startY=p;return}if(!i.allowTouchMove){a.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p}),n.touchStartTime=Lt());return}if(s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(p<o.startY&&i.translate<=i.maxTranslate()||p>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",a),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=p;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>s.touchAngle:90-k>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",a),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||a.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(y=Math.abs(y)*(r?1:-1),b=Math.abs(b)*(r?1:-1)),o.diff=y,y*=s.touchRatio,r&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!s.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",a),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,I=s.resistanceRatio;if(s.touchReleaseOnEdges&&(I=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**I))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**I))),x&&(a.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),s.threshold>0)if(Math.abs(y)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function rs(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].filter(I=>I.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;s=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:r,touches:u,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!r.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=Lt(),h=p-i.touchStartTime;if(e.allowClick){const I=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(I&&I[0]||n.target,I),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Lt(),ni(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(r.followFinger?f=a?e.translate:-e.translate:f=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let I=0;I<c.length;I+=I<r.slidesPerGroupSkip?1:r.slidesPerGroup){const k=I<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[I+k]<"u"?(y||f>=c[I]&&f<c[I+k])&&(b=I,S=c[I+k]-c[I]):(y||f>=c[I])&&(b=I,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;r.rewind&&(e.isBeginning?g=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-c[b])/S,x=b<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-r.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>r.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!r.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(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function Jn(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:o}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function as(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ds(){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 s;const o=t.maxTranslate()-t.minTranslate();o===0?s=0:s=(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function us(t){const e=this;ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function cs(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Qn=(t,e)=>{const i=Et(),{params:n,el:s,wrapperEl:o,device:r}=t,u=!!n.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[a]("touchstart",t.onTouchStart,{passive:!1}),s[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[a]("click",t.onClick,!0),n.cssMode&&o[a]("scroll",t.onScroll),n.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Jn,!0):t[c]("observerUpdate",Jn,!0),s[a]("load",t.onLoad,{capture:!0}))};function vs(){const t=this,{params:e}=t;t.onTouchStart=os.bind(t),t.onTouchMove=ss.bind(t),t.onTouchEnd=rs.bind(t),t.onDocumentTouchStart=cs.bind(t),e.cssMode&&(t.onScroll=ds.bind(t)),t.onClick=as.bind(t),t.onLoad=us.bind(t),Qn(t,"on")}function ps(){Qn(this,"off")}var ms={attachEvents:vs,detachEvents:ps};const Rn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function fs(){const t=this,{realIndex:e,initialized:i,params:n,el:s}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const r=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const a=(r in o?o[r]:void 0)||t.originalParams,c=Rn(t,n),d=Rn(t,a),p=t.params.grabCursor,h=a.grabCursor,f=n.enabled;c&&!d?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${n.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof a[m]>"u")return;const x=n[m]&&n[m].enabled,I=a[m]&&a[m].enabled;x&&!I&&t[m].disable(),!x&&I&&t[m].enable()});const y=a.direction&&a.direction!==n.direction,b=n.loop&&(a.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),It(t.params,a);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",a),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",a)}function hs(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const s=At(),o=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const a=parseFloat(u.substr(1));return{value:o*a,point:u}}return{value:u,point:u}});r.sort((u,a)=>parseInt(u.value,10)-parseInt(a.value,10));for(let u=0;u<r.length;u+=1){const{point:a,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(n=a):c<=i.clientWidth&&(n=a)}return n||"max"}var As={setBreakpoint:fs,getBreakpoint:hs};function bs(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&i.push(e+s)}):typeof n=="string"&&i.push(e+n)}),i}function gs(){const t=this,{classNames:e,params:i,rtl:n,el:s,device:o}=t,r=bs(["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:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),s.classList.add(...e),t.emitContainerClasses()}function ys(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var ws={addClasses:gs,removeClasses:ys};function Ss(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const s=t.slides.length-1,o=t.slidesGrid[s]+t.slidesSizesGrid[s]+n*2;t.isLocked=t.size>o}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 xs={checkOverflow:Ss},en={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 Ts(t,e){return function(n){n===void 0&&(n={});const s=Object.keys(n)[0],o=n[s];if(typeof o!="object"||o===null){It(e,n);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in o)){It(e,n);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),It(e,n)}}const tn={eventsEmitter:wo,update:Lo,translate:Fo,transition:Uo,slide:Jo,loop:es,grabCursor:ns,events:ms,breakpoints:As,checkOverflow:xs,classes:ws},nn={};let ln=class Yt{constructor(){let e,i;for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=It({},i),e&&!i.el&&(i.el=e);const r=Et();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const d=[];return r.querySelectorAll(i.el).forEach(p=>{const h=It({},i,{el:p});d.push(new Yt(h))}),d}const u=this;u.__swiper__=!0,u.support=Yn(),u.device=Gn({userAgent:i.userAgent}),u.browser=bo(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const a={};u.modules.forEach(d=>{d({params:i,swiper:u,extendParams:Ts(i,a),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=It({},en,a);return u.params=It({},c,nn,i),u.originalParams=It({},u.params),u.passedParams=It({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(d=>{u.on(d,u.params.on[d])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,s=zt(i,`.${n.slideClass}, swiper-slide`),o=ci(s[0]);return ci(e)-o}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=zt(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 s=n.minTranslate(),r=(n.maxTranslate()-s)*e+s;n.translateTo(r,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 s=e.getSlideClasses(n);i.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:s,slides:o,slidesGrid:r,slidesSizesGrid:u,size:a,activeIndex:c}=n;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let p=o[c]?Math.ceil(o[c].swiperSlideSize):0,h;for(let f=c+1;f<o.length;f+=1)o[f]&&!h&&(p+=Math.ceil(o[f].swiperSlideSize),d+=1,p>a&&(h=!0));for(let f=c-1;f>=0;f-=1)o[f]&&!h&&(p+=o[f].swiperSlideSize,d+=1,p>a&&(h=!0))}else if(e==="current")for(let p=c+1;p<o.length;p+=1)(i?r[p]+u[p]-r[c]<a:r[p]-r[c]<a)&&(d+=1);else for(let p=c-1;p>=0;p-=1)r[c]-r[p]<a&&(d+=1);return d}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(r=>{r.complete&&ki(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const r=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(r.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||s()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,s=n.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.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 s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):zt(n,s())[0];return!r&&i.params.createElements&&(r=li("div",i.params.wrapperClass),n.append(r),zt(n,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:n,wrapperEl:r,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Kt(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Kt(n,"direction")==="rtl"),wrongRTL:Kt(r,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(o=>{o.complete?ki(i,o):o.addEventListener("load",r=>{ki(i,r.target)})}),$i(i),i.initialized=!0,$i(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:s,el:o,wrapperEl:r,slides:u}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(a=>{n.off(a)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),so(n)),n.destroyed=!0),null}static extendDefaults(e){It(nn,e)}static get extendedDefaults(){return nn}static get defaults(){return en}static installModule(e){Yt.prototype.__modules__||(Yt.prototype.__modules__=[]);const i=Yt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Yt.installModule(i)),Yt):(Yt.installModule(e),Yt)}};Object.keys(tn).forEach(t=>{Object.keys(tn[t]).forEach(e=>{ln.prototype[e]=tn[t][e]})}),ln.use([go,yo]);const $n=["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 Qt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function oi(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]:Qt(e[n])&&Qt(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:oi(t[n],e[n]):t[n]=e[n]})}function el(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function tl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function il(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function nl(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 Es(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Cs(t){let{swiper:e,slides:i,passedParams:n,changedParams:s,nextEl:o,prevEl:r,scrollbarEl:u,paginationEl:a}=t;const c=s.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:d,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,I,k,N;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),s.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||a)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(g=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||u)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(m=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||r)&&(n.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),d[w].prevEl=void 0,d[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),d[w].el=void 0,e[w].el=void 0))};s.includes("loop")&&e.isElement&&(d.loop&&!n.loop?I=!0:!d.loop&&n.loop?k=!0:N=!0),c.forEach(w=>{if(Qt(d[w])&&Qt(n[w]))Object.assign(d[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):d[w]=n[w]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),s.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):s.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),s.includes("children")&&i&&d.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),p.init(),p.render(),p.update()),m&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(d.scrollbar.el=u),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),o&&(d.navigation.nextEl=o),r&&(d.navigation.prevEl=r),h.init(),h.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(I||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function ks(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},s={};oi(i,en),i._emitClasses=!0,i.init=!1;const o={},r=$n.map(a=>a.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(a=>{typeof t[a]>"u"||(r.indexOf(a)>=0?Qt(t[a])?(i[a]={},s[a]={},oi(i[a],t[a]),oi(s[a],t[a])):(i[a]=t[a],s[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e?n[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:o[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:s,rest:o,events:n}}function Is(t,e){let{el:i,nextEl:n,prevEl:s,paginationEl:o,scrollbarEl:r,swiper:u}=t;el(e)&&n&&s&&(u.params.navigation.nextEl=n,u.originalParams.navigation.nextEl=n,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),tl(e)&&o&&(u.params.pagination.el=o,u.originalParams.pagination.el=o),il(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Ps(t,e,i,n,s){const o=[];if(!e)return o;const r=a=>{o.indexOf(a)<0&&o.push(a)};if(i&&n){const a=n.map(s),c=i.map(s);a.join("")!==c.join("")&&r("children"),n.length!==i.length&&r("children")}return $n.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(Qt(t[a])&&Qt(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?r(a):(c.forEach(p=>{t[a][p]!==e[a][p]&&r(a)}),d.forEach(p=>{t[a][p]!==e[a][p]&&r(a)}))}else t[a]!==e[a]&&r(a)}),o}const Os=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 Ii(){return Ii=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},Ii.apply(this,arguments)}function ll(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ol(t){const e=[];return l.Children.toArray(t).forEach(i=>{ll(i)?e.push(i):i.props&&i.props.children&&ol(i.props.children).forEach(n=>e.push(n))}),e}function Ms(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(t).forEach(n=>{if(ll(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 s=ol(n.props.children);s.length>0?s.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ls(t,e,i){if(!i)return null;const n=d=>{let p=d;return d<0?p=e.length+d:p>=e.length&&(p=p-e.length),p},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:r}=i,u=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let d=u;d<a;d+=1)d>=o&&d<=r&&c.push(e[n(d)]);return c.map((d,p)=>l.cloneElement(d,{swiper:t,style:s,key:d.props.virtualIndex||d.key||`slide-${p}`}))}function vi(t,e){return typeof window>"u"?l.useEffect(t,e):l.useLayoutEffect(t,e)}const on=l.createContext(null),sn=()=>l.useContext(on),js=l.createContext(null),Rt=l.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:s="div",children:o,onSwiper:r,...u}=t===void 0?{}:t,a=!1;const[c,d]=l.useState("swiper"),[p,h]=l.useState(null),[f,y]=l.useState(!1),b=l.useRef(!1),S=l.useRef(null),v=l.useRef(null),g=l.useRef(null),m=l.useRef(null),x=l.useRef(null),I=l.useRef(null),k=l.useRef(null),N=l.useRef(null),{params:A,passedParams:w,rest:T,events:j}=ks(u),{slides:C,slots:M}=Ms(o),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(D,P){d(P)}});const B=()=>{Object.assign(A.on,j),a=!0;const D={...A};if(delete D.wrapperClass,v.current=new ln(D),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const P={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};oi(v.current.params.virtual,P),oi(v.current.originalParams.virtual,P)}};S.current||B(),v.current&&v.current.on("_beforeBreakpoint",E);const W=()=>{a||!j||!v.current||Object.keys(j).forEach(D=>{v.current.on(D,j[D])})},O=()=>{!j||!v.current||Object.keys(j).forEach(D=>{v.current.off(D,j[D])})};l.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),l.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),vi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&B(),Is({el:S.current,nextEl:x.current,prevEl:I.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),vi(()=>{W();const D=Ps(w,g.current,C,m.current,P=>P.key);return g.current=w,m.current=C,D.length&&v.current&&!v.current.destroyed&&Cs({swiper:v.current,slides:C,passedParams:w,changedParams:D,nextEl:x.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),vi(()=>{Os(v.current)},[p]);function V(){return A.virtual?Ls(v.current,C,p):C.map((D,P)=>l.cloneElement(D,{swiper:v.current,swiperSlideIndex:P}))}return l.createElement(n,Ii({ref:S,className:nl(`${c}${i?` ${i}`:""}`)},T),l.createElement(js.Provider,{value:v.current},M["container-start"],l.createElement(s,{className:Es(A.wrapperClass)},M["wrapper-start"],V(),M["wrapper-end"]),el(A)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:I,className:"swiper-button-prev"}),l.createElement("div",{ref:x,className:"swiper-button-next"})),il(A)&&l.createElement("div",{ref:N,className:"swiper-scrollbar"}),tl(A)&&l.createElement("div",{ref:k,className:"swiper-pagination"}),M["container-end"]))});Rt.displayName="Swiper";const Bt=l.forwardRef(function(t,e){let{tag:i="div",children:n,className:s="",swiper:o,zoom:r,lazy:u,virtualIndex:a,swiperSlideIndex:c,...d}=t===void 0?{}:t;const p=l.useRef(null),[h,f]=l.useState("swiper-slide"),[y,b]=l.useState(!1);function S(x,I,k){I===p.current&&f(k)}vi(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!o)){if(o.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),vi(()=>{o&&p.current&&!o.destroyed&&f(o.getSlideClasses(p.current))},[o]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return l.createElement(i,Ii({ref:p,className:nl(`${h}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:m},d),r&&l.createElement(on.Provider,{value:v},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},g(),u&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&l.createElement(on.Provider,{value:v},g(),u&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";const Ns="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ds=({visible:t,onClose:e,children:i,modalStyle:n,padding:s,popup:o,schema:r,fullHeight:u=window.innerHeight,isFullScreen:a=!1,openState:c})=>{var d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,B,W,O;const V=l.useRef(null),D=l.useRef(null),P=l.useRef(null),F=l.useRef(null),X=l.useRef(null),K=u*.2,R=a?u:u*.8,[te,ve]=l.useState(K),[he,ie]=l.useState(!1),Me=l.useRef(null),{globalConfig:Ve,popupDetailData:He}=De(),{schema:G,popup:_}=Gt(),[Ae,ge]=l.useState(15);l.useEffect(()=>{const Z=document.getElementById("sxp-render"),q=document.getElementById("pb-modal");q?Me.current=q:(Me.current=document.createElement("div"),Me.current.setAttribute("id","pb-modal"),Z?.appendChild(Me.current))},[]);const ye=l.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),re=l.useMemo(()=>{var Z,q,le;const oe=r??G;return(le=(q=(Z=oe?.sxpPageConf)===null||Z===void 0?void 0:Z.globalConfig)===null||q===void 0?void 0:q.popupList)===null||le===void 0?void 0:le.find(Pe=>Pe?.id===o?.id)},[o,r,G]),je=l.useMemo(()=>{var Z,q;return((q=(Z=re?.item)===null||Z===void 0?void 0:Z.event)===null||q===void 0?void 0:q.isScrollFullScreen)||!1},[re]);l.useEffect(()=>{ye?ie(!0):setTimeout(()=>{ie(!1),ve(K)},o?.duration)},[ye,o]);const Ue=l.useCallback(()=>i,[_,c,Ve,r]);if(l.useEffect(()=>{const Z=q=>{var le=q?.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])'),oe=le?.[0],pe=le?.[le?.length-1],Pe=9;q.addEventListener("keydown",function(Ze){(Ze.key==="Escape"||Ze.key==="Esc")&&(We(),Ze.preventDefault());var ne=Ze.key==="Tab"||Ze.keyCode===Pe;ne&&(Ze.shiftKey?document?.activeElement===oe&&(pe?.focus(),Ze.preventDefault()):document?.activeElement===pe&&(oe?.focus(),Ze.preventDefault()))}),oe?.focus()};return X?.current&&Z(X?.current),()=>{var q;(q=X?.current)===null||q===void 0||q.removeEventListener("keydown",Z)}},[X,he,_]),!Me.current)return null;const We=Je.debounce(()=>{e?.()},300),Ge=Z=>{V.current=Z.touches[0],D.current=Z.touches[0],P.current=!0},Qe=Z=>{requestAnimationFrame(()=>{var q;if(P.current&&((q=F?.current)===null||q===void 0?void 0:q.scrollTop)===0){const le=Z.touches[0].clientY,oe=Z.touches[0].clientX,pe=V.current.clientY-le;V.current=Z.touches[0];const Pe=le-D.current.clientY,Ze=oe-D.current.clientX;if(Math.abs(Ze)>Math.abs(Pe))return;const ne=te-pe;ne>0&&ve(ne)}})},Se=Z=>{var q;if(P.current&&((q=F?.current)===null||q===void 0?void 0:q.scrollTop)===0){const le=Z.changedTouches[0].clientY-D.current.clientY,oe=Z.changedTouches[0].clientX-D.current.clientX;if(Math.abs(oe)>Math.abs(le))return;const pe=D.current.clientY-V.current.clientY;pe>0?ve(0):te<K&&pe<0?ve(K):te>=K&&pe<0&&e?.()}P.current=!1};return wn.createPortal(l.createElement(l.Fragment,null,he&&l.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:We},l.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(d=re?.item)===null||d===void 0?void 0:d.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=re?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(I=(x=(m=(g=re?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&I!==void 0?I:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=re?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},l.createElement("div",Object.assign({ref:X,className:`modal-container ${ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=re?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:s,animationDuration:((j=o?.duration)!==null&&j!==void 0?j:0)/1e3+"s"},je&&{transform:`translateY(${te}px)`}),{overflow:"hidden",borderRadius:`${(B=(E=(M=(C=re?.item)===null||C===void 0?void 0:C.props)===null||M===void 0?void 0:M.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:Z=>{Z.stopPropagation(),Z.preventDefault()}},je&&{onTouchMove:Qe,onTouchStart:Ge,onTouchEnd:Se}),l.createElement("div",Object.assign({id:"modal-content",ref:F,style:{height:je?u:R,overflow:je&&te<=0||!je?"auto":"hidden",zIndex:1}},((O=(W=re?.item)===null||W===void 0?void 0:W.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:Z=>{var q;ge(15-((q=Z?.target)===null||q===void 0?void 0:q.scrollTop))}}),Ue()),l.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ae}},l.createElement("img",{src:Ve?.popupCloseIcon||Ns,alt:"close button",className:"modal-icon"})))))),Me.current)};var si=l.memo(Ds);const Vs=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),s=[];for(let r=0;r<n.length&&(s.push(n[r]),!(s.join(" ").length>=e));r++);return(s.length>1&&s.length<n.length?s.slice(0,s.length-1):s).join(" ")+" "},Bs=({text:t,maxStr:e=108,style:i,className:n,onClick:s,foldText:o,unfoldText:r,isPost:u,onChange:a})=>{const[c,d]=l.useState(!1),[p,h]=l.useState(!1),f=Number(i?.lineClamp||2),y=l.useRef(null),b=l.useRef(null),S=l.useCallback(()=>{d(!c)},[c,a]);return l.useMemo(()=>!c&&t.length>e?Vs(t,e)+"...":t,[t,e,c]),l.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&u?h(!0):h(!1),b.current.style.display="none"},[u,t]),l.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},l.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!u||c?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ce(t?.replace(/\n/g,"</br>"),i)}}),l.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ce(t?.replace(/\n/g,"</br>"),i)}}),t&&u&&p&&l.createElement("button",{"aria-label":c?r||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:s??S,dangerouslySetInnerHTML:{__html:Ce(c?r||"show less":o||"show more",i)}}))};var Pi=l.memo(Bs);const Fs=l.forwardRef((t,e)=>{const{src:i,onLoad:n,style:s,className:o,loading:r,alt:u="image"}=t,[a,c]=l.useState(i),d=l.useRef(null),[p,h]=l.useState(!1);return l.useImperativeHandle(e,()=>({setSrc:f=>{f&&c(f)}})),l.useEffect(()=>{i&&c(i)},[i]),l.useEffect(()=>{const f=()=>{i&&!p&&d.current&&(d.current.src="",d.current.src=i)};return ct.on(dt.PAGE_DID_SHOW,f),()=>{ct.off(dt.PAGE_DID_SHOW,f)}},[i,p]),l.createElement(l.Fragment,null,!p&&!a&&l.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),a?.includes(".avif")?l.createElement("picture",null,l.createElement("source",{type:"image/avif",srcSet:a}),l.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),l.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),l.createElement("img",{ref:d,className:o,src:a,style:Object.assign({},s),loading:r,onLoad:f=>{h(!0),n?.(f.target)},alt:u})):l.createElement("img",{ref:d,className:o,src:a,style:Object.assign({},s),loading:r,onLoad:f=>{h(!0),n?.(f.target)},alt:u}))});var Ct=l.memo(Fs);const Ws=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const s=l.useRef(),{popupDetailData:o}=De();return l.useEffect(()=>{var r,u;n&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=o?.multiCheckIndex)!==null&&u!==void 0?u:0))},[o,n]),l.createElement(Rt,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[mo,po,Ti],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var pi=l.memo(Ws);const zs=({products:t,data:e,defImg:i,style:n,onCLick:s,popupDetailData:o,check:r})=>{var u;const{productView:a}=gt(),{popupCurTimeRef:c}=De(),d=(p,h)=>{if(r===h)return;const f=t?.[r];a(o,f,f?.bindCta,c.current,o?.index),s?.(h)};return l.createElement(l.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&l.createElement(pi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(u=o?t:[0,1,2,3])===null||u===void 0?void 0:u.map((p,h)=>{var f,y,b;return l.createElement(l.Fragment,null,p?.bindCta?l.createElement(Bt,{className:Oe.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(p,h)},key:h},l.createElement(Ct,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var sl=l.memo(zs);const Hs=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:s,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return s&&s.length>0?(e=s[0])===null||e===void 0?void 0:e.url:null}},Us=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:s})=>{var o,r,u,a,c,d,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(u=(r=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||r===void 0?void 0:r.toUpperCase())!==null&&u!==void 0?u:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(a=g?.indexOf("."))!==null&&a!==void 0?a:-1;if(v){f=(c=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let x=0,I=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<I?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,I){return I>=m&&I<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&p!==void 0?p:s?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Ce(f,s),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},Xs=t=>{var e,i,n,s,o,r,u,a,c,d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,{content:w,style:T,bgImg:j,onClick:C,schema:M,isDefault:E,bottom_image:B,tipText:W,isPost:O,viewTime:V,rec:D,swiper:P,commodityStyles:F,buttonStyle:X,index:K,commodityGroup:R,popupBg:te,iframeIcon:ve,commodityImgRatio:he,isTel:ie,iframeBgColor:Me,isActive:Ve=!0}=t,He=et(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:G,popupDetailData:_,isPreview:Ae,bffFbReport:ge,popupCurTimeRef:ye,checkCommodityIndexRef:re,globalConfig:je}=De(),{jumpToWeb:Ue,productView:We}=gt(),Ge=l.useRef(null),[Qe,Se]=l.useState(!1),[Z,q]=l.useState(!1),[le,oe]=l.useState((e=_?.multiCheckIndex)!==null&&e!==void 0?e:0),pe=l.useRef(),[Pe,Ze]=l.useState(0),ne=O?D:_;let z=O?ne?.product:(n=(i=ne?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(s=ne?.video)===null||s===void 0?void 0:s.bindProducts)===null||o===void 0?void 0:o[0],qe=O?(r=ne?.product)===null||r===void 0?void 0:r.bindCta:(c=(a=(u=ne?.video)===null||u===void 0?void 0:u.bindProduct)===null||a===void 0?void 0:a.bindCta)!==null&&c!==void 0?c:(h=(p=(d=ne?.video)===null||d===void 0?void 0:d.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const yt=O?K:_?.index;if(!O&&R?.open&&(!((f=ne?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=ne?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){re.current=le;const we=(S=ne?.video)===null||S===void 0?void 0:S.bindProducts[le];z=we,qe=we?.bindCta}const lt=we=>{z?.link&&(Ue(we,ne,z,qe,yt),O||We(ne,z,qe,V||Ge.current,yt),window.location.href=window.getJointUtmLink(z.link))};l.useEffect(()=>{Ve&&(ge?.({eventName:"ProductView",product:z}),ge?.({eventName:"PageView",product:z}))},[Ve,ge]),l.useEffect(()=>{const we=()=>{Ge.current=new Date};return we(),window.addEventListener("pageshow",we),()=>{window.removeEventListener("pageshow",we)}},[]);const mt=mi({product:z,enableFormattedPrice:(v=F?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:je,style:F?.price}),pt=(Ae?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=te?.horizontalMargin)!==null&&m!==void 0?m:0)*2,wt=he?pt*(he.h/he.w):pt,Ft=({isPost:we})=>{var Ye,xt,ei,rt;return l.createElement("div",null,l.createElement("div",{className:"pb-commondity-content-collection",style:Nt(F?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Ce((Ye=z?.collection)!==null&&Ye!==void 0?Ye:"Tiffany Lock",F?.collection)}}),l.createElement("div",{className:"pb-commondity-content-title",style:Nt(F?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Ce((xt=z?.title)!==null&&xt!==void 0?xt:"Pendant in Yellow Gold with Diamonds, Medium",F?.title)}}),l.createElement("div",{className:"pb-commondity-content-price",style:Nt(F?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:mt??""}}),l.createElement("div",{hidden:!!z&&!z?.taxInfo,style:Nt(F?.taxInfo),dangerouslySetInnerHTML:{__html:Ce((ei=z?.taxInfo)!==null&&ei!==void 0?ei:"\u7A0E\u8D39",F?.taxInfo)}}),l.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},l.createElement(Pi,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Se(!0),isPost:we,text:(rt=z?.info)!==null&&rt!==void 0?rt:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
1
+ (function(ot,Je){typeof exports=="object"&&typeof module<"u"?Je(exports,require("lodash"),require("uuid"),require("pako"),require("react"),require("qs"),require("eventemitter3"),require("@emotion/css"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","pako","react","qs","eventemitter3","@emotion/css","react-dom"],Je):(ot=typeof globalThis<"u"?globalThis:ot||self,Je(ot.PUI={},ot.lodash,ot.uuid$1,ot.pako,ot.React,ot.qs,ot.EventEmitter,ot.css,ot.ReactDOM))})(this,function(ot,Je,Cl,kl,l,gn,Il,Oe,yn){"use strict";function Pl(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var wn=Pl(yn);function et(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 s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]]);return i}function nt(t,e,i,n){function s(o){return o instanceof i?o:new i(function(r){r(o)})}return new(i||(i=Promise))(function(o,r){function u(d){try{c(n.next(d))}catch(p){r(p)}}function a(d){try{c(n.throw(d))}catch(p){r(p)}}function c(d){d.done?o(d.value):s(d.value).then(u,a)}c((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Ol=/:\w+/g;var Sn=(t,e)=>nt(void 0,void 0,void 0,function*(){const i={},n={};for(let s=0;s<e?.length;s++){const{id:o,method:r,url:u,urlParams:a,name:c,queryString:d,headers:p,body:h}=e[s];let f=u;a&&Object.entries(a).forEach(([y,b])=>{f=f.replace(Ol,S=>S===y?b:S)}),d&&(f+=d),n[o]=c;try{const y=yield fetch(f,{method:r,headers:Object.assign({"Content-Type":"application/json"},p),body:JSON.stringify(h)}).then(b=>b.json());i[o]=y}catch(y){console.error("DataSource request error: ",y),i[o]={}}}return{$store:i,idMapName:n}});const xn="SXP_TOKEN_INFO",Ml=(t,e)=>nt(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),s=t.getAppId(),o=t.getApiUrl(),r=window.localStorage.getItem(xn);let u=JSON.parse(r||"{}");if(Date.now()>((i=u?.expireTime)!==null&&i!==void 0?i:0)){const c=yield fetch(`${o}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":s||""}}).then(d=>d.json());if(c.success){const d=c.data;u=Object.assign(Object.assign({},d),{expireTime:Date.now()+d.expire*1e3}),window.localStorage.setItem(xn,JSON.stringify(u))}}return u});function Ai(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let s;if(e=e||i.length,t)for(s=0;s<t;s++)n[s]=i[0|Math.random()*e];else{let o;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",s=0;s<36;s++)n[s]||(o=0|Math.random()*16,n[s]=i[s===19?o&3|8:o])}return n.join("")}const Ll=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let s=0;for(;s<t;)e+=i.charAt(Math.floor(Math.random()*n)),s+=1;return e},jl=()=>{const t=Cl.v4();return t?.replaceAll?t.replaceAll("-",""):Ll(32)},Ce=(t,e)=>{if(!t)return"";let i="";const n=e?.["fontFamily-cn"],s=e?.["fontFamily-en"];if(!n&&!s)return t;let o=t;const r=/[\u4e00-\u9fa5]/g,u=/[^\u4e00-\u9fa5]/g,a=`font-family:${n??"inherit"}`,c=`font-family:${s??"inherit"}`,d=h=>{const f=h.search(r),y=h.search(u);return f!==-1&&y!==-1&&f<y&&(i+=`<span style="${a}">${h.substring(f,y)}</span>`,o=h.substring(y,h?.length)),f!==-1&&y!==-1&&f>y&&(i+=`<span style="${c}">${h.substring(y,f)}</span>`,o=h.substring(f,h?.length)),f===-1?(i+=`<span style="${c}">${h.substring(y,h?.length)}</span>`,o="",!1):y===-1?(i+=`<span style="${a}">${h.substring(f,h?.length)}</span>`,o="",!1):!0};let p=!0;for(;p;)p=d(o);return i};function Tn(t){const i=document.cookie.split(";");let n=null;return i.forEach(s=>{const[o,r]=s.trim().split("=");o===t&&(n=r)}),n??""}function Di(){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 ui(t){if(!t)return;const e=[];for(let s=0;s<t.length;s++){const o=t[s],r=t.substring(s+1,t.length);o==="&"&&r?.indexOf("=")!==-1&&(r?.indexOf("=")<r?.indexOf("&")||r?.indexOf("&")===-1)&&e.push(s)}const i=e.length>0?[]:[t];let n=0;return e?.map(s=>{i?.push(t.substring(n,s)),n=s+1,s===e[e.length-1]&&s<t.length&&i?.push(t.substring(n,t.length))}),i??[]}function En(t){const i=atob(t).split("").map(function(o){return o.charCodeAt(0)}),n=new Uint8Array(i),s=kl.inflate(n,{to:"string"});return JSON.parse(s)}let Vi=null;const Nl={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Dl{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Vi)return Vi;Vi=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Nl[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let ht=null;const Vl={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{ht||(ht=new Dl),n&&ht.setApiUrl(n),ht.setAppId(t),ht.setTenantId(e),ht.setEnv(i)},getDetail:t=>{if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>nt(void 0,void 0,void 0,function*(){var o,r;const u=yield s.json(),a=En((o=u?.data)===null||o===void 0?void 0:o.data);if(a){const{$store:c}=yield Sn(n,(r=a?.dataSource)!==null&&r!==void 0?r:[]);u.data.data=a,Object.assign(u.data.data,{__STORE__:c})}return u}))},getSxpDetailByPageId:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=ht.getTenantId(),i=ht.getAppId(),n=ht.getApiUrl();return fetch(`${n}/storefront/v1/page/build?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(s=>nt(void 0,void 0,void 0,function*(){var o;const r=yield s.json();return r.success?(o=r?.data)===null||o===void 0?void 0:o.map(a=>Object.assign(Object.assign({},a),{data:En(a?.data)})):void 0}))}),getSxpRecommendVideoData:t=>nt(void 0,void 0,void 0,function*(){if(!ht)return;const e=yield Ml(ht,t),i=Ai(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");Je.isEmpty(n)&&(n=Ai(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const s=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(o=>o.json());return s?.data||null})};function Gt(){return l.useContext(Wn)}function Bl(){return l.useContext(Fn)}const Bi="feRealSessionIdKey",Cn=()=>{const t=jl();return`${Date.now()}${t}`},Fl=()=>{let t=Wl();return t||(t=Cn(),window.localStorage.setItem(Bi,t)),t},Fi=()=>{const t=Cn();window.localStorage.setItem(Bi,t)},Wl=()=>window.localStorage.getItem(Bi),kn="SXP_FAKE_USER_ID",In="FAKE_USER_STATE",Pn="AGREE_POLICY",On="SLIDE_SKIP_STATE",Mn="CCONTSENT_STATE",Ln="USER_CONSENT_RESULT",zl=()=>{let t=window.localStorage.getItem(kn);return Je.isEmpty(t)&&(t=Ai(36,62),window.localStorage.setItem(kn,t)),t},Hl=()=>{const t=window.localStorage.getItem(In);return Je.isEmpty(t)&&window.localStorage.setItem(In,"true"),Je.isEmpty(t)},Ul=()=>{const t=window.localStorage.getItem(On);return Je.isEmpty(t)},Xl=()=>{window.localStorage.setItem(On,"true")},ql=()=>{const t=window.localStorage.getItem(Mn);return Je.isEmpty(t)&&window.localStorage.setItem(Mn,"true"),Je.isEmpty(t)},jn=()=>window.localStorage.getItem(Ln)==="true",Nn=()=>{window.localStorage.setItem(Ln,"true")};function Mt(t,e){const{appDomain:i}=De();return l.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const ct=new Il;var dt;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(dt||(dt={}));const Yl=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:s,privacy_policy_title:o})=>{const{setIsAgreePolicy:r,bffEventReport:u}=De(),a=l.useMemo(()=>{var p;const h=location.search.slice(1),f={};(p=ui(h.replace(/\+/g,"%2B")))===null||p===void 0||p.map(y=>{const b=y.split("=")[0],S=y.split("=")[1];f[b]=S});for(const y in f)f[y]=f[y].replace(/%2B/g,"+");return f},[]),c=p=>{var h;return(h=a[p])!==null&&h!==void 0?h:null};l.useEffect(()=>{u?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:c("utm_source"),utmMedium:c("utm_medium"),utmCampaign:c("utm_campaign"),utmId:c("utm_id"),utmContent:c("utm_content"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const d=()=>{u?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:'["\u7CFB\u7EDF\u8FD0\u8425"]',rtc:null,requestId:null,sessionID:null}}),r?.(!0),window.localStorage.setItem(Pn,"yes")};return l.createElement("div",{className:"consent-bg"},l.createElement("div",{className:"consent"},l.createElement("div",{className:"consent-col"},l.createElement("div",{className:"consent-title"},i??"Privacy Policy"),l.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.")),l.createElement("div",{className:"consent-col"},l.createElement("button",{"aria-label":"agree",className:"consent-btn",onClick:d},"Agree"),l.createElement("a",{className:"consent-policy",target:"_blank",href:s?`https://${s}`:void 0},o??"More information"))))};var Gl=l.memo(Yl);const Dn=l.createContext({rtcList:[],tagList:[]});var Wi;(function(t){t[t.BFF=5]="BFF"})(Wi||(Wi={}));const bi="FOR U",Zl=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:s,defaultSize:o,isPreview:r=!1,sxpParameter:u,appDomain:a,hashTagSize:c,loadingImage:d,isOpenHashTag:p=!1,enabledMetaConversionApi:h=!1,consentHeight:f,consentWidth:y,isOpenConsent:b=!1,isEditor:S=!1,utmParameter:v,channelQueryList:g,data:m,dataList:x,onUpdateSchema:I,onUpdateChannel:k})=>{var N,A,w,T,j;const[C,M]=l.useState([]),[E,B]=l.useState([]),[W,O]=l.useState(!0),[V,D]=l.useState({rtc:"",requestId:""}),P=l.useRef(null),F=l.useRef(!1),[X,K]=l.useState(()=>!!window.localStorage.getItem(Pn)),[R,te]=l.useState(),[ve,he]=l.useState(),[ie,Me]=l.useState(p),[Ve,He]=l.useState([]),[G,_]=l.useState(0),[Ae,ge]=l.useState(!1),[ye,re]=l.useState(null),je=l.useRef(),Ue=l.useRef(),We=l.useRef(),[Ge,Qe]=l.useState(bi),Se=l.useRef(-1),Z=l.useRef(null),[q,le]=l.useState(!1),[oe,pe]=l.useState((A=(N=m?.data)===null||N===void 0?void 0:N.sxpPageConf)===null||A===void 0?void 0:A.globalConfig),[Pe,Ze]=l.useState(),[ne,z]=l.useState(!1),[qe,yt]=l.useState(),[lt,mt]=l.useState(),[pt,wt]=l.useState([]),[Ft,Pt]=l.useState(),[Nt,Xt]=l.useState(),Ot=l.useMemo(()=>Pe??m,[Pe,m]),St=l.useMemo(()=>{var U,H,ae,ke;return(((ke=(ae=(H=(U=oe?.consent)===null||U===void 0?void 0:U[0])===null||H===void 0?void 0:H.item)===null||ae===void 0?void 0:ae.props)===null||ke===void 0?void 0:ke.privacy_necessity)&&!X&&!S||b)&&ne},[X,oe,b,S,ne]),$t=l.useCallback(U=>{k?.(U),mt(U)},[]),Dt=l.useCallback(U=>{var H;const ae=U?.recList;return(H=ae?.map(xe=>{var Te,Be,Fe,Ne,L,Y;if(!((Te=xe?.video)===null||Te===void 0)&&Te.bindProducts&&((Fe=(Be=xe?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||Fe===void 0?void 0:Fe.length)>0){const J=(Y=(L=(Ne=xe?.video)===null||Ne===void 0?void 0:Ne.bindProducts)===null||L===void 0?void 0:L.filter(se=>!!se?.bindCta))!==null&&Y!==void 0?Y:[];return Object.assign(Object.assign({},xe),{video:Object.assign(Object.assign({},xe?.video),{bindProducts:J})})}return xe}))!==null&&H!==void 0?H:[]},[]);l.useEffect(()=>{let U;return pt.length>0&&(U=setInterval(()=>{const ae=new Date,ke=15*1e3;wt(xe=>xe.filter(Te=>ae-Te.time<=ke))},1e3)),()=>{clearInterval(U)}},[pt]),l.useEffect(()=>{const U=H=>{je.current=H};return ct.on(dt.CHANGE_THEME_TAG,U),()=>{ct.off(dt.CHANGE_THEME_TAG,U)}},[]),l.useEffect(()=>{Me(p)},[p]);const Ke=l.useMemo(()=>e?.find(U=>U.type===Wi.BFF),[e]),ft=l.useMemo(()=>{var U;return((U=Ke?.headers)===null||U===void 0?void 0:U["x-app-id"])+zl()},[Ke]),$=l.useCallback((U,H)=>{if(!Ke)return;const ae=Ke.url;if(H?.query){const ke=gn.stringify(H.query);U=`${U}?${ke}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${ae}/api/${U}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},H.body),Ke.headers),{"x-user-id":ft}))],{type:"application/json;charset=UTF-8"})):window.fetch(`${ae}/api/${U}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":ft},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ke=>ke.json()).catch(ke=>Promise.reject(ke))},[Ke,ft]),we=l.useCallback((U,H)=>{if(!Ke)return;const ae=Ke.url;if(H?.query){const ke=gn.stringify(H.query);U=`${U}?${ke}`}return window.fetch(`${ae}/admin/${U}`,{headers:Object.assign({"Content-Type":"application/json"},Ke.headers),method:H.method,body:JSON.stringify(H.body)}).then(ke=>ke.json()).catch(ke=>Promise.reject(ke))},[Ke]),Ye=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe,Te,Be,Fe,Ne,L,Y,J,se,ce,de;if(U=Object.assign({maxSize:(H=U?.maxSize)!==null&&H!==void 0?H:s,defaultSize:(ae=U?.defaultSize)!==null&&ae!==void 0?ae:o,hashTag:U?.hashTag,traceInfo:U?.traceInfo,themeTag:U?.themeTag,pageNum:U?.pageNum,contentFilter:U?.contentFilter,productFilter:U?.productFilter},Nt&&{chatlabsId:Nt}),lt)U=Object.assign(Object.assign({},U),{channel:decodeURIComponent(lt)});else if(i){const ue=(Te=(xe=(ke=ui(i))===null||ke===void 0?void 0:ke.filter(be=>{var ee,Le;const me=be.split("=")[0];return(Le=(ee=v?.channels)!==null&&ee!==void 0?ee:[])===null||Le===void 0?void 0:Le.includes(me)}))===null||xe===void 0?void 0:xe.join("&"))!==null&&Te!==void 0?Te:"";ue&&(U=Object.assign(Object.assign({},U),{channel:decodeURIComponent(ue)}))}if(S){let ue=1;if(U=Object.assign(Object.assign(Object.assign({},U),{directPage:!0,level:1}),!i&&g&&g?.length>0&&{channel:g?.[0]}),!U?.channel||F.current)return;F.current=!0;let be=[],ee=null;const Le=me=>nt(void 0,void 0,void 0,function*(){var fe,tt,Re,_e,$e,at;if(me.pageNum=ue,ee=yield we?.("recommend/direct_page",{method:"POST",body:me}),!ee?.success)return;O(!1),be=be.concat((_e=(Re=(tt=(fe=ee?.data)===null||fe===void 0?void 0:fe.recList)===null||tt===void 0?void 0:tt.filter)===null||Re===void 0?void 0:Re.call(tt,Xe=>Xe?.product||Xe?.video))!==null&&_e!==void 0?_e:[]),C?.length===0&&(M(Dt(Object.assign(Object.assign({},ee?.data),{recList:be}))),He(Dt(Object.assign(Object.assign({},ee?.data),{recList:be})))),((at=($e=ee?.data)===null||$e===void 0?void 0:$e.recList)===null||at===void 0?void 0:at.some(Xe=>Xe?.product||Xe?.video))&&(ue=ue+1,yield Le(me))});return yield Le(U),!U?.hashTag&&ee&&D({rtc:(Be=ee?.data)===null||Be===void 0?void 0:Be.rtc,requestId:(Fe=ee?.data)===null||Fe===void 0?void 0:Fe.requestId}),Object.assign(Object.assign({},ee?.data),{recList:be})}oe?.enablePreview&&(U=Object.assign(Object.assign({},U),{directPage:!0,level:1,pageNum:(Ne=U?.pageNum)!==null&&Ne!==void 0?Ne:1}));const Q=yield $?.("v1/recommend/list",{method:"POST",body:U});if(Q?.success){if(U?.hashTag||D({rtc:Q.data.rtc,requestId:Q.data.requestId}),oe?.enablePreview&&!S){let ue=[];return ue=ue.concat((se=(J=(Y=(L=Q?.data)===null||L===void 0?void 0:L.recList)===null||Y===void 0?void 0:Y.filter)===null||J===void 0?void 0:J.call(Y,ee=>ee?.product||ee?.video))!==null&&se!==void 0?se:[]),((de=(ce=Q?.data)===null||ce===void 0?void 0:ce.recList)===null||de===void 0?void 0:de.some(ee=>ee?.product||ee?.video))||le(!0),Object.assign(Object.assign({},Q.data),{recList:ue})}return Q?.data}}),[$,i,s,o,g,lt,Nt,we]),xt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe;if(C.length<=0)return;const Te=C?.[C?.length-1],Be=yield Ye(Object.assign(Object.assign(Object.assign(Object.assign({hashTag:ve?.hashTag},((H=Te?.product)===null||H===void 0?void 0:H.itemId)&&{productFilter:[(ae=Te?.product)===null||ae===void 0?void 0:ae.itemId]}),((ke=Te?.video)===null||ke===void 0?void 0:ke.itemId)&&{contentFilter:[(xe=Te?.video)===null||xe===void 0?void 0:xe.itemId]}),{themeTag:je.current}),oe?.enablePreview&&!S&&{pageNum:U}));return M(C.concat(Dt(Be))),He(Ve.concat(Dt(Be))),Be}),[Ye,C,ve,Ve]),ei=l.useCallback((U,H)=>{var ae,ke,xe,Te,Be;let Fe=!1;const Ne=(ke=(ae=m?.data)===null||ae===void 0?void 0:ae.sxpPageConf)===null||ke===void 0?void 0:ke.globalConfig;if(!((xe=Ne?.session)===null||xe===void 0)&&xe.enable){const L=localStorage.getItem("sessionStartTime"),Y=L?JSON.parse(L):new Date().getTime();Math.floor((new Date().getTime()-Y)/1e3/60)>=((Be=(Te=Ne?.session)===null||Te===void 0?void 0:Te.expires)!==null&&Be!==void 0?Be:30)&&(H?.("sessionTimeOut"),Fi(),Ue.current=new Date,Fe=!0),localStorage.setItem("sessionStartTime",JSON.stringify(new Date().getTime()))}else U&&Fi();return Fe},[m]),rt=l.useCallback(({userInfo:U,eventInfo:H,reportLayId:ae=!0})=>{var ke,xe;if(!n||oe?.enablePreview)return;U||(U={});const Te=Fl(),Be={},Fe=location.search.slice(1);(ke=ui(Fe))===null||ke===void 0||ke.map(se=>{const ce=se.split("=")[0],de=se.split("=")[1];Be[ce]=de});const Ne=Be?.cl_source,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({sessionID:Te,rtc:V.rtc,requestId:V.requestId},{playbookType:Ft}),qe&&ae&&{layoutVariantId:qe}),H),H?.position&&lt&&{position:Number(H?.position)+1+""}),Ne&&{clSource:Ne}),Y=Object.entries(U).map(([se,ce])=>({name:se,value:ce})),J=Object.entries(L).map(([se,ce])=>ce&&{name:se,value:ce}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",U),console.log("eventInfo:",L),console.log("========= \u7ED3\u675F ========="),$?.(`v2/cld/${(xe=Ke?.headers)===null||xe===void 0?void 0:xe["x-app-id"]}/${H?.eventSubject}${Ne?`/${decodeURIComponent(Ne)}`:""}`,{method:"POST",body:{userInfo:Y,eventInfo:J},type:"beacon"})},[$,V,n,oe?.enablePreview,qe,oe,Ft,Ke]),ti=l.useCallback(({eventName:U,product:H})=>{var ae,ke,xe,Te,Be,Fe;if(!n||!h||oe?.enablePreview||!(!((ae=oe?.converApi)===null||ae===void 0)&&ae[U]))return;const Ne=Je.cloneDeep((ke=oe?.converApi)===null||ke===void 0?void 0:ke[U]),L=new URLSearchParams(window.location.search),Y=L?.get("fbclid"),J={event_source_url:(xe=window?.location)===null||xe===void 0?void 0:xe.href,external_id:ft,client_user_agent:(Be=(Te=window?.navigator)===null||Te===void 0?void 0:Te.userAgent)!==null&&Be!==void 0?Be:"",fbc:Y?`fb.2.${new Date().getTime()}.${Y}`:"",fbp:Tn("_fbp")?`fb.2.${new Date().getTime()}.${Tn("_fbp")}`:"",time:Math.floor(Date.now()/1e3)},se=/\{\{(.*?)\}\}/g,ce=de=>{if(de){if(de instanceof Array)de?.map(Q=>ce(Q));else for(const Q in de)if(de.hasOwnProperty(Q)){const ue=de?.[Q];if(typeof ue=="object")ce(ue);else if(typeof ue=="string"){const be=ue?.match(se);be&&be.forEach(ee=>{var Le;const me=ee.substring(2,ee.length-2);try{let fe=new Function("fix_par","product",`return ${me}`)(J,H);fe?(me?.indexOf("currency")!==-1&&fe?.indexOf("-")!==-1&&typeof fe=="string"&&(fe=(Le=fe?.split("-"))===null||Le===void 0?void 0:Le[0]),de[Q]=fe):delete de[Q]}catch(fe){delete de[Q],console.error("An error occurred:",fe?.message)}})}}}};return ce(Ne),$?.(`v2/event/report/FB/${(Fe=Ke?.headers)===null||Fe===void 0?void 0:Fe["x-app-id"]}/${U}`,{method:"POST",body:Ne,type:"beacon"})},[$,n,h,oe?.enablePreview,oe,ft,Ke]),ai=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/recommend/like",{method:"POST",body:U});return H?.success}),[$]),Jt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/recommend/unlike",{method:"POST",body:U});return H?.success}),[$]),Wt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/customform",{method:"POST",body:U});return H?.success}),[$]),Vt=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){var H,ae,ke,xe,Te,Be,Fe,Ne;const L=!!(!((ke=(ae=(H=U?.data)===null||H===void 0?void 0:H.sxpPageConf)===null||ae===void 0?void 0:ae.globalConfig)===null||ke===void 0)&&ke.isShowTag);if(!(!i||!L))try{const Y=(Be=(Te=(xe=ui(i))===null||xe===void 0?void 0:xe.filter(se=>{var ce,de;const Q=se.split("=")[0];return(de=(ce=v?.channels)!==null&&ce!==void 0?ce:[])===null||de===void 0?void 0:de.includes(Q)}))===null||Te===void 0?void 0:Te.join("&"))!==null&&Be!==void 0?Be:"",J=yield $?.("v1/tag/list",{method:"GET",query:{channel:decodeURIComponent(Y)}});B((Ne=(Fe=J?.data)===null||Fe===void 0?void 0:Fe.tags)!==null&&Ne!==void 0?Ne:[])}catch(Y){console.log("e",Y)}}),[$,i]),bt=l.useCallback((U,H,ae,ke)=>{var xe,Te,Be,Fe,Ne,L,Y,J,se,ce,de,Q,ue,be,ee,Le,me,fe,tt,Re,_e,$e,at,ut,Xe,vt,Ie,Ee,kt,Tt,di,it,ii,fn,hn,An;const qt=ae?.bindCta,Od=((xe=H?.video)===null||xe===void 0?void 0:xe.bindProduct)||((Te=H?.video)===null||Te===void 0?void 0:Te.bindProducts)&&((Fe=(Be=H?.video)===null||Be===void 0?void 0:Be.bindProducts)===null||Fe===void 0?void 0:Fe.length)>0;let Ni="",bn=null;Ae?Ni="hashTagPage":!((Ne=H?.video)===null||Ne===void 0)&&Ne.url?(Ni="videoPage",bn="video"):!((Y=(L=H?.video)===null||L===void 0?void 0:L.imgUrls)===null||Y===void 0)&&Y.length&&(Ni="imagePage",bn="image");const El=(be=(Q=(J=ae?.tags)!==null&&J!==void 0?J:(de=(ce=(se=H?.video)===null||se===void 0?void 0:se.bindProducts)===null||ce===void 0?void 0:ce[0])===null||de===void 0?void 0:de.tags)!==null&&Q!==void 0?Q:(ue=H?.video)===null||ue===void 0?void 0:ue.tags)!==null&&be!==void 0?be:(ee=H?.product)===null||ee===void 0?void 0:ee.tags;rt?.({eventInfo:Object.assign(Object.assign({},U),{ctaId:(Le=qt?.itemId)!==null&&Le!==void 0?Le:"",ctaName:(me=qt?.title)!==null&&me!==void 0?me:"",contentTags:El?JSON.stringify(El):"",position:ke+"",contentId:(tt=(fe=H?.video)===null||fe===void 0?void 0:fe.itemId)!==null&&tt!==void 0?tt:"",productId:Od?ae?.itemId:"",traceInfo:(hn=(it=(Ie=(at=(Re=qt?.traceInfo)!==null&&Re!==void 0?Re:($e=(_e=H?.video)===null||_e===void 0?void 0:_e.bindCta)===null||$e===void 0?void 0:$e.traceInfo)!==null&&at!==void 0?at:(vt=(Xe=(ut=H?.video)===null||ut===void 0?void 0:ut.bindProduct)===null||Xe===void 0?void 0:Xe.bindCta)===null||vt===void 0?void 0:vt.traceInfo)!==null&&Ie!==void 0?Ie:(di=(Tt=(kt=(Ee=H?.video)===null||Ee===void 0?void 0:Ee.bindProducts)===null||kt===void 0?void 0:kt[0])===null||Tt===void 0?void 0:Tt.bindCta)===null||di===void 0?void 0:di.traceInfo)!==null&&it!==void 0?it:(fn=(ii=H?.product)===null||ii===void 0?void 0:ii.bindCta)===null||fn===void 0?void 0:fn.traceInfo)!==null&&hn!==void 0?hn:"",fromKName:Ni,fromKPage:(An=location?.href)!==null&&An!==void 0?An:"",contentFormat:bn})})},[rt,Ae]),Mi=l.useCallback(()=>{var U,H,ae;const ke=location.search.slice(1),xe={};(U=ui(ke.replace(/\+/g,"%2B")))===null||U===void 0||U.map(Fe=>{const Ne=Fe.split("=")[0],L=Fe.split("=")[1];xe[Ne]=L});for(const Fe in xe)xe[Fe]=xe[Fe].replace(/%2B/g,"+");const Te=Fe=>{var Ne;return(Ne=xe[Fe])!==null&&Ne!==void 0?Ne:""},Be=new Date;Ue.current=Be,rt?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:Te("utm_source"),utmMedium:Te("utm_medium"),utmCampaign:Te("utm_campaign"),utmId:Te("utm_id"),utmContent:Te("utm_content"),enterTime:Math.floor(Be/1e3)+"",requestId:null,enterUrl:(ae=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&ae!==void 0?ae:""},reportLayId:!1})},[rt]),Li=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){var U,H;const ae=yield $?.("v1/account",{method:"GET"});return Xt((U=ae?.data)===null||U===void 0?void 0:U.chatLabsId),((H=ae?.data)===null||H===void 0?void 0:H.consentResult)==="true"}),[$]),ji=l.useCallback(U=>nt(void 0,void 0,void 0,function*(){const H=yield $?.("v1/account/consent",{method:"POST",body:{consentResult:U}});return H?.success}),[$]);l.useEffect(()=>{St||Mi()},[St]),l.useEffect(()=>{if(St||r)return;O(!0);let U,H;Ye().then(ae=>{var ke,xe,Te,Be,Fe,Ne,L,Y,J,se,ce;if(ae){const de=Dt(ae);let Q,ue;if(ae?.layoutVariantId){U=ae?.layoutVariantId,yt(ae?.layoutVariantId);const be=(xe=(ke=ae?.layoutVariantId)===null||ke===void 0?void 0:ke.split("-"))===null||xe===void 0?void 0:xe[1];be&&(Q=x?.find(ee=>ee?.id===be),Q?(Ze(Q),document.title=(Te=Q?.name)!==null&&Te!==void 0?Te:"home",ue=(Fe=(Be=Q?.data)===null||Be===void 0?void 0:Be.sxpPageConf)===null||Fe===void 0?void 0:Fe.globalConfig,pe(ue),I?.(Q?.data),!((J=(Y=(L=(Ne=ue?.consent)===null||Ne===void 0?void 0:Ne[0])===null||L===void 0?void 0:L.item)===null||Y===void 0?void 0:Y.props)===null||J===void 0)&&J.privacy_necessity&&z(!0)):z(!0))}else z(!0);if(lt||(ue?.playbook==="organic menu"||!ue&&oe?.playbook==="organic menu"?(Pt("organicMenu"),de.unshift("organic menu"),H="organicMenu"):(Pt("paidMedia"),H="paidMedia")),M(de),He(de),Vt(Q??Ot),lt){const be=de?.[0],ee=((se=be?.video)===null||se===void 0?void 0:se.traceInfo)||((ce=be?.product)===null||ce===void 0?void 0:ce.traceInfo)||"";rt?.({eventInfo:Object.assign({eventSubject:"multiPostClick",eventDescription:"multiPostClick",traceInfo:ee,branchfeed:lt},U&&{layoutVariantId:U})}),rt?.({eventInfo:Object.assign({eventSubject:"endMultiPost",eventDescription:"endMultiPost",contentFormat:"image",position:"0",traceInfo:ee,nextStep:"multipostClick",timeOnSite:Math.floor((new Date-We?.current)/1e3)+""},U&&{layoutVariantId:U})})}}}).finally(()=>{rt({eventInfo:Object.assign(Object.assign({eventSubject:"apiRequest",eventDescription:"api request succeed"},U&&{layoutVariantId:U}),H&&{playbookType:H})}),O(!1)})},[St,lt]),l.useEffect(()=>{r&&(O(!0),Vt(m),Ye().then(U=>{if(U){const H=Dt(U);oe?.playbook==="organic menu"&&!lt&&H.unshift("organic menu"),M(H),He(H)}}).finally(()=>{O(!1)}))},[Ye,Vt,lt]);const mn=Mt("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",a);return l.createElement(Dn.Provider,{value:{rtcList:C,setRtcList:M,mutateLike:ai,mutateUnlike:Jt,submitForm:Wt,popupDetailData:R,loadVideos:xt,setPopupDetailData:te,getRecommendVideos:Ye,bffEventReport:rt,isPreview:r,loading:W,sxpParameter:u,waterFallData:ve,setWaterFallData:he,ctaEvent:bt,swiperRef:P,openHashtag:ie,setOpenHashtag:Me,cacheRtcList:Ve,setCacheRtcList:He,cacheActiveIndex:G,setCacheActiveIndex:_,isFromHashtag:Ae,setIsFromHashtag:ge,appDomain:a,hashTagSize:c,loadingImage:d??mn,isOpenHashTag:p,tagList:E,setLoading:O,videoRef:ye,setVideoRef:re,bffFbReport:ti,isAgreePolicy:X,setIsAgreePolicy:K,curTime:Ue,h5EnterLink:Mi,themeTag:je,isShowConsent:St,selectTag:Ge,setSelectTag:Qe,globalConfig:oe,popupCurTimeRef:Z,checkCommodityIndexRef:Se,isEditor:S,isNoMoreData:q,updateChannel:$t,channel:lt,eventTimeList:pt,setEventTimeList:wt,multiPostTimeRef:We,refreshFeSession:ei,getAccount:Li,accountSonsent:ji}},St?l.createElement(Gl,Object.assign({},(j=(T=(w=oe?.consent)===null||w===void 0?void 0:w[0])===null||T===void 0?void 0:T.item)===null||j===void 0?void 0:j.props)):t({rtcList:C,mutateLike:ai,mutateUnlike:Jt,submitForm:Wt,tagList:E,pageData:Ot}))};var Vn=l.memo(Zl);function De(){return l.useContext(Dn)}var Bn;(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"})(Bn||(Bn={}));const Fn=l.createContext({$store:{},options:[],configs:[]}),Kl=({children:t,isSsr:e,enable:i})=>{const[n,s]=l.useState([]),{schema:o}=Gt(),[r,u]=l.useState(o.__STORE__||{}),[a,c]=l.useState([]);l.useEffect(()=>{var h;e||Je.isEqual(a,o?.dataSource)||c((h=o?.dataSource)!==null&&h!==void 0?h:[])},[o?.dataSource,e]);const d=l.useCallback(()=>nt(void 0,void 0,void 0,function*(){const{$store:h,idMapName:f}=yield Sn("",a);u(h),p(h,f)}),[a]),p=(h,f)=>{const y=[];Object.entries(h).forEach(([b,S])=>{Object.keys(S).forEach(v=>{const g={label:`${f[b]} - ${v}`,value:`{{ ${b}.${v} }}`};y.push(g)})}),s(y)};return l.useEffect(()=>{e||d()},[d,e,o]),i?l.createElement(Fn.Provider,{value:{$store:o.__STORE__||r,options:n,configs:a}},t):t};var _l=l.memo(Kl);const gi={id:Ai(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},zi={id:"",duration:0,name:"none"},Wn=l.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[gi],redoStack:[],popup:zi,setPopup:()=>{}}),zn=l.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:s=!0,utmVal:o},r)=>{const[u,a]=l.useState(null),[c,d]=l.useState(n||{pointData:[gi],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[p,h]=l.useState([gi]),[f,y]=l.useState([[gi]]),[b,S]=l.useState([]),[v,g]=l.useState(zi);typeof window<"u"&&(window.sxpPopup=(N,A)=>{g(Object.assign(Object.assign(Object.assign({},zi),{id:N}),A))}),typeof window<"u"&&(window.getJointUtmLink=N=>(Xl(),N?.indexOf("?")!==-1?N+(o?"&"+o:""):N+(o?"?"+o:""))),l.useEffect(()=>{y([c.pointData]),S([])},[c.type]);const m=l.useCallback(N=>{const A=Je.cloneDeep(c);A&&(A.dataSource=N,d?.(A))},[c]),[x,I]=l.useState();l.useImperativeHandle(r,()=>({loadSchema(N){N&&(y([N.pointData]),d(N))},exportSchema(){return Je.cloneDeep(c)},getPageInfoData(){return x},initPageInfoData(N){N&&I(N)}}));const k=l.useMemo(()=>{if(c)return c.type==="PC"?c.pcPageConf:c.mobilePageConf},[c]);return l.createElement(Wn.Provider,{value:{resolver:e,currentNode:u,schema:c,setCurrentNode:a,setSchema:d,saveDataSource:m,prePiontData:p,setPrePiontData:h,pageInfoData:x,setPageInfoData:N=>I(Object.assign(Object.assign({},x),N)),undoStack:f,redoStack:b,setRedoStack:S,setUndoStack:y,getCurPageConf:k,popup:v,setPopup:g}},l.createElement(_l,{isSsr:i,enable:s},t))});var Jl=Object.freeze({__proto__:null,EditorCore:zn}),Ql=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Rl=[{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 gt(){const{bffEventReport:t,popupDetailData:e,isFromHashtag:i,eventTimeList:n,setEventTimeList:s}=De(),o=l.useCallback((a,c,d,p,h,f)=>{var y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,B,W,O,V,D,P,F,X,K,R,te,ve,he,ie,Me,Ve,He,G,_,Ae,ge;if(n?.findIndex(We=>We.target===a?.target)!==-1)return;a&&s?.(We=>[...We,{target:a?.target,time:new Date}]);let re="";e&&(!((b=(y=c?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0)&&b.length||!((S=c?.video)===null||S===void 0)&&S.bindProduct)?re="pdpPage":i?re="hashTagPage":!((v=c?.video)===null||v===void 0)&&v.url?re="videoPage":!((g=c?.video)===null||g===void 0)&&g.imgUrls&&(!((x=(m=c?.video)===null||m===void 0?void 0:m.imgUrls)===null||x===void 0)&&x.length)?re="imagePage":c?.product&&(re="productPage");const je=(j=(w=(I=d?.tags)!==null&&I!==void 0?I:(A=(N=(k=c?.video)===null||k===void 0?void 0:k.bindProducts)===null||N===void 0?void 0:N[0])===null||A===void 0?void 0:A.tags)!==null&&w!==void 0?w:(T=c?.video)===null||T===void 0?void 0:T.tags)!==null&&j!==void 0?j:(C=c?.product)===null||C===void 0?void 0:C.tags;let Ue=null;!((M=c?.video)===null||M===void 0)&&M.url?Ue="video":!((E=c?.video)===null||E===void 0)&&E.imgUrls&&(!((W=(B=c?.video)===null||B===void 0?void 0:B.imgUrls)===null||W===void 0)&&W.length)&&(Ue="image"),t?.({eventInfo:Object.assign({eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(O=d?.itemId)!==null&&O!==void 0?O:"",productName:(V=d?.title)!==null&&V!==void 0?V:"",price:d?.price?d?.price+"":"0",productCollection:(D=d?.collection)!==null&&D!==void 0?D:"",fromKName:re,fromKPage:location?.href,contentTags:je?JSON.stringify(je):"",position:h+"",contentId:(F=(P=c?.video)===null||P===void 0?void 0:P.itemId)!==null&&F!==void 0?F:"",ctatId:(X=p?.itemId)!==null&&X!==void 0?X:"",traceInfo:(ge=(G=(Ve=(ve=(K=f??d?.traceInfo)!==null&&K!==void 0?K:(te=(R=c?.video)===null||R===void 0?void 0:R.bindProduct)===null||te===void 0?void 0:te.traceInfo)!==null&&ve!==void 0?ve:(Me=(ie=(he=c?.video)===null||he===void 0?void 0:he.bindProducts)===null||ie===void 0?void 0:ie[0])===null||Me===void 0?void 0:Me.traceInfo)!==null&&Ve!==void 0?Ve:(He=c?.product)===null||He===void 0?void 0:He.traceInfo)!==null&&G!==void 0?G:(Ae=(_=c?.video)===null||_===void 0?void 0:_.bindCta)===null||Ae===void 0?void 0:Ae.traceInfo)!==null&&ge!==void 0?ge:""},Ue&&{contentFormat:Ue})})},[t,e,i,n]),r=l.useCallback((a,c,d,p,h)=>{var f,y,b,S,v,g,m,x,I,k,N,A,w,T;let j="";e&&(!((y=(f=a?.video)===null||f===void 0?void 0:f.bindProducts)===null||y===void 0)&&y.length||!((b=a?.video)===null||b===void 0)&&b.bindProduct)?j="pdpPage":a?.product&&(j="productPage"),t?.({eventInfo:{productId:c?.itemId,productName:c?.title,price:c?.price?c?.price+"":"0",productCollection:c?.collection,fromKName:j,fromKPage:location?.href,contentTags:JSON.stringify(c?.tags),position:h+"",contentId:(S=a?.video)===null||S===void 0?void 0:S.itemId,ctatId:d?.itemId,traceInfo:(T=(A=(x=(v=c?.traceInfo)!==null&&v!==void 0?v:(m=(g=a?.video)===null||g===void 0?void 0:g.bindProduct)===null||m===void 0?void 0:m.traceInfo)!==null&&x!==void 0?x:(N=(k=(I=a?.video)===null||I===void 0?void 0:I.bindProducts)===null||k===void 0?void 0:k[0])===null||N===void 0?void 0:N.traceInfo)!==null&&A!==void 0?A:(w=a?.product)===null||w===void 0?void 0:w.traceInfo)!==null&&T!==void 0?T:"",timeOnSite:Math.floor((new Date-p)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),u=l.useCallback((a,c,d,p)=>{c&&c===bi&&t?.({eventInfo:{lastFeed:a,themeTags:d?`['${d}']`:"",hashTags:p?`['${p}']`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:o,productView:r,backMainFeed:u}}const $l=({layout:t,columns:e,onChange:i})=>l.createElement(l.Fragment,null,e?.map((n,s)=>l.createElement("div",{key:s,className:"pb-appoint-form-container-item",style:{flexDirection:t==="horizontal"?"row":"column"}},t!=="inline"&&l.createElement("label",{className:"pb-appoint-form-container-label"},n?.title),n?.valueType==="text"&&l.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 eo=l.memo($l);const to=t=>{var e,i,{columns:n,style:s,title:o,textStyle:r,submitBgColor:u,submitColor:a,submitText:c,layoutType:d="inline",isExternalLink:p,isPopup:h,onClick:f,onClose:y,submitButtonStyle:b}=t,S=et(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:v,popupDetailData:g}=De(),{jumpToWeb:m}=gt(),[x,I]=l.useState(!1),[k,N]=l.useState({}),[A,w]=l.useState(0),T=l.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),j=((e=document?.documentElement)===null||e===void 0?void 0:e.clientHeight)||((i=document?.body)===null||i===void 0?void 0:i.clientHeight),C=l.useMemo(()=>Je.cloneDeep(n)||T,[n,T]),M=l.useCallback(B=>{const{name:W,value:O}=B.target;N(Object.assign(Object.assign({},k),{[W]:O}))},[k]),E=Je.debounce(B=>nt(void 0,void 0,void 0,function*(){var W,O,V,D,P;const F=k;if(!F)return;const X=(O=(W=Object.keys(F))===null||W===void 0?void 0:W.map(R=>{var te;return{name:R,value:(te=F[R])!==null&&te!==void 0?te:""}}))===null||O===void 0?void 0:O.filter(R=>R?.value);if(!X||!X?.length)return;I(!0);const K=yield v?.({attributes:X});if(I(!1),K){if(p){const R=g,te=(V=R?.video)===null||V===void 0?void 0:V.bindProduct,ve=(P=(D=R?.video)===null||D===void 0?void 0:D.bindProduct)===null||P===void 0?void 0:P.bindCta,he=g?.index;m(B,R,te,ve,he)}h||y?.(),f?.()}}),1e3);return l.useEffect(()=>{const B=()=>{var W,O;if(!navigator.userAgent.toLowerCase().includes("android"))return;(((W=document?.documentElement)===null||W===void 0?void 0:W.clientHeight)||((O=document?.body)===null||O===void 0?void 0:O.clientHeight))<j?w(50):w(0)};return window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B)}},[]),l.createElement("div",{className:"pb-appoint-form"},l.createElement("div",{className:`pb-appoint-form-title ${Oe.css(Object.assign({},r))}`,dangerouslySetInnerHTML:{__html:Ce(o,r)}}),l.createElement("div",Object.assign({className:Oe.css(Object.assign(Object.assign({},s),{marginTop:A}))},S),l.createElement("div",{className:"pb-appoint-form-container"},l.createElement(eo,{columns:C,layout:d,onChange:M}))),l.createElement("div",{className:"pb-appoint-form-btn-wrapper"},l.createElement("button",{"aria-label":c,onClick:E,className:"pb-appoint-form-btn",style:Object.assign({color:a,background:u},b),dangerouslySetInnerHTML:{__html:Ce(x?"loading...":c,b)}})))};var io=l.memo(to);function st(t,e){return t.extend=e,t}const no=st(io,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Rl,bindableProps:[],interactionRender:Ql},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 lo=[{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 Hn(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Hi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Hn(e[i])&&Hn(t[i])&&Object.keys(e[i]).length>0&&Hi(t[i],e[i])})}const Un={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 Et(){const t=typeof document<"u"?document:{};return Hi(t,Un),t}const oo={document:Un,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 At(){const t=typeof window<"u"?window:{};return Hi(t,oo),t}function Zt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function so(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ni(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Lt(){return Date.now()}function ro(t){const e=At();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function ao(t,e){e===void 0&&(e="x");const i=At();let n,s,o;const r=ro(t);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(u=>u.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix(s==="none"?"":s)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?s=o.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?s=o.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function yi(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function uo(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function It(){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&&!uo(n)){const s=Object.keys(Object(n)).filter(o=>e.indexOf(o)<0);for(let o=0,r=s.length;o<r;o+=1){const u=s[o],a=Object.getOwnPropertyDescriptor(n,u);a!==void 0&&a.enumerable&&(yi(t[u])&&yi(n[u])?n[u].__swiper__?t[u]=n[u]:It(t[u],n[u]):!yi(t[u])&&yi(n[u])?(t[u]={},n[u].__swiper__?t[u]=n[u]:It(t[u],n[u])):t[u]=n[u])}}}return t}function wi(t,e,i){t.style.setProperty(e,i)}function Xn(t){let{swiper:e,targetPosition:i,side:n}=t;const s=At(),o=-e.translate;let r=null,u;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",d=(h,f)=>c==="next"&&h>=f||c==="prev"&&h<=f,p=()=>{u=new Date().getTime(),r===null&&(r=u);const h=Math.max(Math.min((u-r)/a,1),0),f=.5-Math.cos(h*Math.PI)/2;let y=o+f*(i-o);if(d(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),d(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(p)};p()}function zt(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function Si(t){try{console.warn(t);return}catch{}}function li(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Zt(e)),i}function qn(t){const e=At(),i=Et(),n=t.getBoundingClientRect(),s=i.body,o=t.clientTop||s.clientTop||0,r=t.clientLeft||s.clientLeft||0,u=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:n.top+u-o,left:n.left+a-r}}function co(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 vo(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 Kt(t,e){return At().getComputedStyle(t,null).getPropertyValue(e)}function ci(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 Ui(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Xi(t,e,i){const n=At();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)}function qi(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=Et(),r=At();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(d){if(!e.enabled)return;const{rtlTranslate:p}=e;let h=d;h.originalEvent&&(h=h.originalEvent);const f=h.keyCode||h.charCode,y=e.params.keyboard.pageUpDown,b=y&&f===33,S=y&&f===34,v=f===37,g=f===39,m=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||S)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&m||b))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(b||S||v||g||m||x)){let I=!1;if(xi(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&xi(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,N=k.clientWidth,A=k.clientHeight,w=r.innerWidth,T=r.innerHeight,j=qn(k);p&&(j.left-=k.scrollLeft);const C=[[j.left,j.top],[j.left+N,j.top],[j.left,j.top+A],[j.left+N,j.top+A]];for(let M=0;M<C.length;M+=1){const E=C[M];if(E[0]>=0&&E[0]<=w&&E[1]>=0&&E[1]<=T){if(E[0]===0&&E[1]===0)continue;I=!0}}if(!I)return}e.isHorizontal()?((b||S||v||g)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||g)&&!p||(b||v)&&p)&&e.slideNext(),((b||v)&&!p||(S||g)&&p)&&e.slidePrev()):((b||S||m||x)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||x)&&e.slideNext(),(b||m)&&e.slidePrev()),s("keyPress",f)}}function a(){e.keyboard.enabled||(o.addEventListener("keydown",u),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(o.removeEventListener("keydown",u),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&a()}),n("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:a,disable:c})}function Ti(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=At();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let r,u=Lt(),a;const c=[];function d(m){let N=0,A=0,w=0,T=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(N=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(N=A,A=0),w=N*10,T=A*10,"deltaY"in m&&(T=m.deltaY),"deltaX"in m&&(w=m.deltaX),m.shiftKey&&!w&&(w=T,T=0),(w||T)&&m.deltaMode&&(m.deltaMode===1?(w*=40,T*=40):(w*=800,T*=800)),w&&!N&&(N=w<1?-1:1),T&&!A&&(A=T<1?-1:1),{spinX:N,spinY:A,pixelX:w,pixelY:T}}function p(){e.enabled&&(e.mouseEntered=!0)}function h(){e.enabled&&(e.mouseEntered=!1)}function f(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Lt()-u<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Lt()-u<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),s("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),s("scroll",m.raw)),u=new o.Date().getTime(),!1)}function y(m){const x=e.params.mousewheel;if(m.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(m){let x=m,I=!0;if(!e.enabled||m.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let N=e.el;e.params.mousewheel.eventsTarget!=="container"&&(N=document.querySelector(e.params.mousewheel.eventsTarget));const A=N&&N.contains(x.target);if(!e.mouseEntered&&!A&&!k.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let w=0;const T=e.rtlTranslate?-1:1,j=d(x);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(j.pixelX)>Math.abs(j.pixelY))w=-j.pixelX*T;else return!0;else if(Math.abs(j.pixelY)>Math.abs(j.pixelX))w=-j.pixelY;else return!0;else w=Math.abs(j.pixelX)>Math.abs(j.pixelY)?-j.pixelX*T:-j.pixelY;if(w===0)return!0;k.invert&&(w=-w);let C=e.getTranslate()+w*k.sensitivity;if(C>=e.minTranslate()&&(C=e.minTranslate()),C<=e.maxTranslate()&&(C=e.maxTranslate()),I=e.params.loop?!0:!(C===e.minTranslate()||C===e.maxTranslate()),I&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const M={time:Lt(),delta:Math.abs(w),direction:Math.sign(w),raw:m};c.length>=2&&c.shift();const E=c.length?c[c.length-1]:void 0;if(c.push(M),E?(M.direction!==E.direction||M.delta>E.delta||M.time>E.time+150)&&f(M):f(M),y(M))return!0}else{const M={time:Lt(),delta:Math.abs(w),direction:Math.sign(w)},E=a&&M.time<a.time+500&&M.delta<=a.delta&&M.direction===a.direction;if(!E){a=void 0;let B=e.getTranslate()+w*k.sensitivity;const W=e.isBeginning,O=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||!O&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,c.length>=15&&c.shift();const V=c.length?c[c.length-1]:void 0,D=c[0];if(c.push(M),V&&(M.delta>V.delta||M.direction!==V.direction))c.splice(0);else if(c.length>=15&&M.time-D.time<500&&D.delta-M.delta>=1&&M.delta<=6){const P=w>0?.8:.2;a=M,c.splice(0),r=ni(()=>{e.slideToClosest(e.params.speed,!0,void 0,P)},0)}r||(r=ni(()=>{a=M,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(E||s("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(B===e.minTranslate()||B===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function S(m){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[m]("mouseenter",p),x[m]("mouseleave",h),x[m]("wheel",b)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(S("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(S("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&v()}),n("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:v,disable:g})}function Yi(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!i[s]&&i.auto===!0){let o=zt(t.el,`.${n[s]}`)[0];o||(o=li("div",n[s]),o.className=n[s],t.el.append(o)),i[s]=o,e[s]=o}}),i}function Gi(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b&&b.length>1&&e.el.querySelectorAll(y).length===1?b=e.el.querySelector(y):b&&b.length===1&&(b=b[0])),y&&!b?y:b)}function r(y,b){const S=e.params.navigation;y=ze(y),y.forEach(v=>{v&&(v.classList[b?"add":"remove"](...S.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=b),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](S.lockClass))})}function u(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){r(b,!1),r(y,!1);return}r(b,e.isBeginning&&!e.params.rewind),r(y,e.isEnd&&!e.params.rewind)}function a(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const y=e.params.navigation;if(e.params.navigation=Yi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),S=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:S}),b=ze(b),S=ze(S);const v=(g,m)=>{g&&g.addEventListener("click",m==="next"?c:a),!e.enabled&&g&&g.classList.add(...y.lockClass.split(" "))};b.forEach(g=>v(g,"next")),S.forEach(g=>v(g,"prev"))}function p(){let{nextEl:y,prevEl:b}=e.navigation;y=ze(y),b=ze(b);const S=(v,g)=>{v.removeEventListener("click",g==="next"?c:a),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(v=>S(v,"next")),b.forEach(v=>S(v,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?f():(d(),u())}),n("toEdge fromEdge lock unlock",()=>{u()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=ze(y),b=ze(b),e.enabled){u();return}[...y,...b].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:S,prevEl:v}=e.navigation;S=ze(S),v=ze(v);const g=b.target;let m=v.includes(g)||S.includes(g);if(e.isElement&&!m){const x=b.path||b.composedPath&&b.composedPath();x&&(m=x.find(I=>S.includes(I)||v.includes(I)))}if(e.params.navigation.hideOnClick&&!m){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let x;S.length?x=S[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(x=v[0].classList.contains(e.params.navigation.hiddenClass)),s(x===!0?"navigationShow":"navigationHide"),[...S,...v].filter(I=>!!I).forEach(I=>I.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),u()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:h,disable:f,update:u,init:d,destroy:p})}function Ut(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ei(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let r,u=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,g){const{bulletActiveClass:m}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${m}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${m}-${g}-${g}`)))}function d(v){const g=v.target.closest(Ut(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const m=ci(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;e.slideToLoop(m)}else e.slideTo(m)}function p(){const v=e.rtl,g=e.params.pagination;if(a())return;let m=e.pagination.el;m=ze(m);let x,I;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(I=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,x=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let w,T,j;if(g.dynamicBullets&&(r=Xi(A[0],e.isHorizontal()?"width":"height",!0),m.forEach(C=>{C.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&I!==void 0&&(u+=x-(I||0),u>g.dynamicMainBullets-1?u=g.dynamicMainBullets-1:u<0&&(u=0)),w=Math.max(x-u,0),T=w+(Math.min(A.length,g.dynamicMainBullets)-1),j=(T+w)/2),A.forEach(C=>{const M=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(E=>`${g.bulletActiveClass}${E}`)].map(E=>typeof E=="string"&&E.includes(" ")?E.split(" "):E).flat();C.classList.remove(...M)}),m.length>1)A.forEach(C=>{const M=ci(C);M===x?C.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&C.setAttribute("part","bullet"),g.dynamicBullets&&(M>=w&&M<=T&&C.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),M===w&&c(C,"prev"),M===T&&c(C,"next"))});else{const C=A[x];if(C&&C.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&A.forEach((M,E)=>{M.setAttribute("part",E===x?"bullet-active":"bullet")}),g.dynamicBullets){const M=A[w],E=A[T];for(let B=w;B<=T;B+=1)A[B]&&A[B].classList.add(...`${g.bulletActiveClass}-main`.split(" "));c(M,"prev"),c(E,"next")}}if(g.dynamicBullets){const C=Math.min(A.length,g.dynamicMainBullets+4),M=(r*C-r)/2-j*r,E=v?"right":"left";A.forEach(B=>{B.style[e.isHorizontal()?E:"top"]=`${M}px`})}}m.forEach((A,w)=>{if(g.type==="fraction"&&(A.querySelectorAll(Ut(g.currentClass)).forEach(T=>{T.textContent=g.formatFractionCurrent(x+1)}),A.querySelectorAll(Ut(g.totalClass)).forEach(T=>{T.textContent=g.formatFractionTotal(N)})),g.type==="progressbar"){let T;g.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const j=(x+1)/N;let C=1,M=1;T==="horizontal"?C=j:M=j,A.querySelectorAll(Ut(g.progressbarFillClass)).forEach(E=>{E.style.transform=`translate3d(0,0,0) scaleX(${C}) scaleY(${M})`,E.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(A.innerHTML=g.renderCustom(e,x+1,N),w===0&&s("paginationRender",A)):(w===0&&s("paginationRender",A),s("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](g.lockClass)})}function h(){const v=e.params.pagination;if(a())return;const g=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 m=e.pagination.el;m=ze(m);let x="";if(v.type==="bullets"){let I=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>g&&(I=g);for(let k=0;k<I;k+=1)v.renderBullet?x+=v.renderBullet.call(e,k,v.bulletClass):x+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?x=v.renderFraction.call(e,v.currentClass,v.totalClass):x=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?x=v.renderProgressbar.call(e,v.progressbarFillClass):x=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],m.forEach(I=>{v.type!=="custom"&&(I.innerHTML=x||""),v.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(Ut(v.bulletClass)))}),v.type!=="custom"&&s("paginationRender",m[0])}function f(){e.params.pagination=Yi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.filter(m=>xi(m,".swiper")[0]===e.el)[0])),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=ze(g),g.forEach(m=>{v.type==="bullets"&&v.clickable&&m.classList.add(...(v.clickableClass||"").split(" ")),m.classList.add(v.modifierClass+v.type),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(m.classList.add(`${v.modifierClass}${v.type}-dynamic`),u=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&m.classList.add(v.progressbarOppositeClass),v.clickable&&m.addEventListener("click",d),e.enabled||m.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(a())return;let g=e.pagination.el;g&&(g=ze(g),g.forEach(m=>{m.classList.remove(v.hiddenClass),m.classList.remove(v.modifierClass+v.type),m.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(m.classList.remove(...(v.clickableClass||"").split(" ")),m.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.classList.remove(...v.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=ze(g),g.forEach(m=>{m.classList.remove(v.horizontalClass,v.verticalClass),m.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(f(),h(),p())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),n("snapIndexChange",()=>{p()}),n("snapGridLengthChange",()=>{h(),p()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{p()}),n("click",(v,g)=>{const m=g.target,x=ze(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const I=x[0].classList.contains(e.params.pagination.hiddenClass);s(I===!0?"paginationShow":"paginationHide"),x.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),f(),h(),p()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=ze(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:S,render:h,update:p,init:f,destroy:y})}function po(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=Et();let r=!1,u=null,a=null,c,d,p,h;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 f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C,rtlTranslate:M}=e,{dragEl:E,el:B}=C,W=e.params.scrollbar,O=e.params.loop?e.progressLoop:e.progress;let V=d,D=(p-d)*O;M?(D=-D,D>0?(V=d-D,D=0):-D+d>p&&(V=p+D)):D<0?(V=d+D,D=0):D+d>p&&(V=p-D),e.isHorizontal()?(E.style.transform=`translate3d(${D}px, 0, 0)`,E.style.width=`${V}px`):(E.style.transform=`translate3d(0px, ${D}px, 0)`,E.style.height=`${V}px`),W.hide&&(clearTimeout(u),B.style.opacity=1,u=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function y(C){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:C}=e,{dragEl:M,el:E}=C;M.style.width="",M.style.height="",p=e.isHorizontal()?E.offsetWidth:E.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=p*h:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?M.style.width=`${d}px`:M.style.height=`${d}px`,h>=1?E.style.display="none":E.style.display="",e.params.scrollbar.hide&&(E.style.opacity=0),e.params.watchOverflow&&e.enabled&&C.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(C){return e.isHorizontal()?C.clientX:C.clientY}function v(C){const{scrollbar:M,rtlTranslate:E}=e,{el:B}=M;let W;W=(S(C)-qn(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(p-d),W=Math.max(Math.min(W,1),0),E&&(W=1-W);const O=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*W;e.updateProgress(O),e.setTranslate(O),e.updateActiveIndex(),e.updateSlidesClasses()}function g(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:B}=e,{el:W,dragEl:O}=E;r=!0,c=C.target===O?S(C)-C.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),B.style.transitionDuration="100ms",O.style.transitionDuration="100ms",v(C),clearTimeout(a),W.style.transitionDuration="0ms",M.hide&&(W.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",C)}function m(C){const{scrollbar:M,wrapperEl:E}=e,{el:B,dragEl:W}=M;r&&(C.preventDefault&&C.cancelable?C.preventDefault():C.returnValue=!1,v(C),E.style.transitionDuration="0ms",B.style.transitionDuration="0ms",W.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function x(C){const M=e.params.scrollbar,{scrollbar:E,wrapperEl:B}=e,{el:W}=E;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),M.hide&&(clearTimeout(a),a=ni(()=>{W.style.opacity=0,W.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),M.snapOnRelease&&e.slideToClosest())}function I(C){const{scrollbar:M,params:E}=e,B=M.el;if(!B)return;const W=B,O=E.passiveListeners?{passive:!1,capture:!1}:!1,V=E.passiveListeners?{passive:!0,capture:!1}:!1;if(!W)return;const D=C==="on"?"addEventListener":"removeEventListener";W[D]("pointerdown",g,O),o[D]("pointermove",m,O),o[D]("pointerup",x,V)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||I("on")}function N(){!e.params.scrollbar.el||!e.scrollbar.el||I("off")}function A(){const{scrollbar:C,el:M}=e;e.params.scrollbar=Yi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const E=e.params.scrollbar;if(!E.el)return;let B;if(typeof E.el=="string"&&e.isElement&&(B=e.el.querySelector(E.el)),!B&&typeof E.el=="string"){if(B=o.querySelectorAll(E.el),!B.length)return}else B||(B=E.el);e.params.uniqueNavElements&&typeof E.el=="string"&&B.length>1&&M.querySelectorAll(E.el).length===1&&(B=M.querySelector(E.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass);let W;B&&(W=B.querySelector(Ut(e.params.scrollbar.dragClass)),W||(W=li("div",e.params.scrollbar.dragClass),B.append(W))),Object.assign(C,{el:B,dragEl:W}),E.draggable&&k(),B&&B.classList[e.enabled?"remove":"add"](...Zt(e.params.scrollbar.lockClass))}function w(){const C=e.params.scrollbar,M=e.scrollbar.el;M&&M.classList.remove(...Zt(e.isHorizontal()?C.horizontalClass:C.verticalClass)),N()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const C=e.params.scrollbar;let{el:M}=e.scrollbar;M=ze(M),M.forEach(E=>{E.classList.remove(C.horizontalClass,C.verticalClass),E.classList.add(e.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?j():(A(),b(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{f()}),n("setTransition",(C,M)=>{y(M)}),n("enable disable",()=>{const{el:C}=e.scrollbar;C&&C.classList[e.enabled?"remove":"add"](...Zt(e.params.scrollbar.lockClass))}),n("destroy",()=>{w()});const T=()=>{e.el.classList.remove(...Zt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Zt(e.params.scrollbar.scrollbarDisabledClass)),A(),b(),f()},j=()=>{e.el.classList.add(...Zt(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Zt(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:T,disable:j,updateSize:b,setTranslate:f,init:A,destroy:w})}function Zi(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 s=null,o,r,u=new Date().getTime();function a(O){const V=s;V.length!==0&&(V.innerHTML="",V.innerHTML=O)}function c(O){O===void 0&&(O=16);const V=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,V)}function d(O){O=ze(O),O.forEach(V=>{V.setAttribute("tabIndex","0")})}function p(O){O=ze(O),O.forEach(V=>{V.setAttribute("tabIndex","-1")})}function h(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("role",V)})}function f(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-roledescription",V)})}function y(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-controls",V)})}function b(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-label",V)})}function S(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("id",V)})}function v(O,V){O=ze(O),O.forEach(D=>{D.setAttribute("aria-live",V)})}function g(O){O=ze(O),O.forEach(V=>{V.setAttribute("aria-disabled",!0)})}function m(O){O=ze(O),O.forEach(V=>{V.setAttribute("aria-disabled",!1)})}function x(O){if(O.keyCode!==13&&O.keyCode!==32)return;const V=e.params.a11y,D=O.target;if(!(e.pagination&&e.pagination.el&&(D===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(Ut(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=ze(e.navigation.prevEl);ze(e.navigation.nextEl).includes(D)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(V.lastSlideMessage):a(V.nextSlideMessage)),P.includes(D)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(V.firstSlideMessage):a(V.prevSlideMessage))}e.pagination&&D.matches(Ut(e.params.pagination.bulletClass))&&D.click()}}function I(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:V}=e.navigation;V&&(e.isBeginning?(g(V),p(V)):(m(V),d(V))),O&&(e.isEnd?(g(O),p(O)):(m(O),d(O)))}function k(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function N(){return k()&&e.params.pagination.clickable}function A(){const O=e.params.a11y;k()&&e.pagination.bullets.forEach(V=>{e.params.pagination.clickable&&(d(V),e.params.pagination.renderBullet||(h(V,"button"),b(V,O.paginationBulletMessage.replace(/\{\{index\}\}/,ci(V)+1)))),V.matches(Ut(e.params.pagination.bulletActiveClass))?V.setAttribute("aria-current","true"):V.removeAttribute("aria-current")})}const w=(O,V,D)=>{d(O),O.tagName!=="BUTTON"&&(h(O,"button"),O.addEventListener("keydown",x)),b(O,D),y(O,V)},T=O=>{r&&r!==O.target&&!r.contains(O.target)&&(o=!0),e.a11y.clicked=!0},j=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},C=O=>{u=new Date().getTime()},M=O=>{if(e.a11y.clicked||new Date().getTime()-u<100)return;const V=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!V||!e.slides.includes(V))return;r=V;const D=e.slides.indexOf(V)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(V);D||P||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{o||(e.params.loop?e.slideToLoop(parseInt(V.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(V),0),o=!1)}))},E=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&h(e.slides,O.slideRole);const V=e.slides.length;O.slideLabelMessage&&e.slides.forEach((D,P)=>{const F=e.params.loop?parseInt(D.getAttribute("data-swiper-slide-index"),10):P,X=O.slideLabelMessage.replace(/\{\{index\}\}/,F+1).replace(/\{\{slidesLength\}\}/,V);b(D,X)})},B=()=>{const O=e.params.a11y;e.el.append(s);const V=e.el;O.containerRoleDescriptionMessage&&f(V,O.containerRoleDescriptionMessage),O.containerMessage&&b(V,O.containerMessage);const D=e.wrapperEl,P=O.id||D.getAttribute("id")||`swiper-wrapper-${c(16)}`,F=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";S(D,P),v(D,F),E();let{nextEl:X,prevEl:K}=e.navigation?e.navigation:{};X=ze(X),K=ze(K),X&&X.forEach(te=>w(te,P,O.nextSlideMessage)),K&&K.forEach(te=>w(te,P,O.prevSlideMessage)),N()&&ze(e.pagination.el).forEach(ve=>{ve.addEventListener("keydown",x)}),Et().addEventListener("visibilitychange",C),e.el.addEventListener("focus",M,!0),e.el.addEventListener("focus",M,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",j,!0)};function W(){s&&s.remove();let{nextEl:O,prevEl:V}=e.navigation?e.navigation:{};O=ze(O),V=ze(V),O&&O.forEach(P=>P.removeEventListener("keydown",x)),V&&V.forEach(P=>P.removeEventListener("keydown",x)),N()&&ze(e.pagination.el).forEach(F=>{F.removeEventListener("keydown",x)}),Et().removeEventListener("visibilitychange",C),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",M,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",j,!0))}n("beforeInit",()=>{s=li("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&I()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),n("destroy",()=>{e.params.a11y.enabled&&W()})}function Ci(t){let{swiper:e,extendParams:i,on:n,emit:s,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,u,a=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,d,p=new Date().getTime(),h,f,y,b,S,v,g;function m(V){!e||e.destroyed||!e.wrapperEl||V.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",m),!(g||V.detail&&V.detail.bySwiperTouchMove)&&T())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=d,h=!1);const V=e.autoplay.paused?d:p+c-new Date().getTime();e.autoplay.timeLeft=V,s("autoplayTimeLeft",V,V/a),u=requestAnimationFrame(()=>{x()})},I=()=>{let V;return e.virtual&&e.params.virtual.enabled?V=e.slides.filter(P=>P.classList.contains("swiper-slide-active"))[0]:V=e.slides[e.activeIndex],V?parseInt(V.getAttribute("data-swiper-autoplay"),10):void 0},k=V=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(u),x();let D=typeof V>"u"?e.params.autoplay.delay:V;a=e.params.autoplay.delay,c=e.params.autoplay.delay;const P=I();!Number.isNaN(P)&&P>0&&typeof V>"u"&&(D=P,a=P,c=P),d=D;const F=e.params.speed,X=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,F,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,F,!0,!0),s("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return D>0?(clearTimeout(r),r=setTimeout(()=>{X()},D)):requestAnimationFrame(()=>{X()}),D},N=()=>{p=new Date().getTime(),e.autoplay.running=!0,k(),s("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(u),s("autoplayStop")},w=(V,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),V||(v=!0);const P=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",m):T()};if(e.autoplay.paused=!0,D){S&&(d=e.params.autoplay.delay),S=!1,P();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),P())},T=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),v?(v=!1,k(d)):k(),e.autoplay.paused=!1,s("autoplayResume"))},j=()=>{if(e.destroyed||!e.autoplay.running)return;const V=Et();V.visibilityState==="hidden"&&(v=!0,w(!0)),V.visibilityState==="visible"&&T()},C=V=>{V.pointerType==="mouse"&&(v=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},M=V=>{V.pointerType==="mouse"&&(g=!1,e.autoplay.paused&&T())},E=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",C),e.el.addEventListener("pointerleave",M))},B=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",C),e.el.removeEventListener("pointerleave",M))},W=()=>{Et().addEventListener("visibilitychange",j)},O=()=>{Et().removeEventListener("visibilitychange",j)};n("init",()=>{e.params.autoplay.enabled&&(E(),W(),N())}),n("destroy",()=>{B(),O(),e.autoplay.running&&A()}),n("_freeModeStaticRelease",()=>{(y||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),n("beforeTransitionStart",(V,D,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}f=!0,y=!1,v=!1,b=setTimeout(()=>{v=!0,y=!0,w(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(b),clearTimeout(r),e.params.autoplay.disableOnInteraction){y=!1,f=!1;return}y&&e.params.cssMode&&T(),y=!1,f=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:N,stop:A,pause:w,resume:T})}function mo(t){let{swiper:e,extendParams:i,emit:n,once:s}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;const a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:a,touches:c}=e;a.velocities.length===0&&a.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Lt()})}function u(a){let{currentPos:c}=a;if(e.params.cssMode)return;const{params:d,wrapperEl:p,rtlTranslate:h,snapGrid:f,touchEventsData:y}=e,S=Lt()-y.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<f.length?e.slideTo(f.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(y.velocities.length>1){const A=y.velocities.pop(),w=y.velocities.pop(),T=A.position-w.position,j=A.time-w.time;e.velocity=T/j,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(j>150||Lt()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,y.velocities.length=0;let v=1e3*d.freeMode.momentumRatio;const g=e.velocity*v;let m=e.translate+g;h&&(m=-m);let x=!1,I;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let N;if(m<e.maxTranslate())d.freeMode.momentumBounce?(m+e.maxTranslate()<-k&&(m=e.maxTranslate()-k),I=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.maxTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(m>e.minTranslate())d.freeMode.momentumBounce?(m-e.minTranslate()>k&&(m=e.minTranslate()+k),I=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):m=e.minTranslate(),d.loop&&d.centeredSlides&&(N=!0);else if(d.freeMode.sticky){let A;for(let w=0;w<f.length;w+=1)if(f[w]>-m){A=w;break}Math.abs(f[A]-m)<Math.abs(f[A-1]-m)||e.swipeDirection==="next"?m=f[A]:m=f[A-1],m=-m}if(N&&s("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(h?v=Math.abs((-m-e.translate)/e.velocity):v=Math.abs((m-e.translate)/e.velocity),d.freeMode.sticky){const A=Math.abs((h?-m:m)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?v=d.speed:A<2*w?v=d.speed*1.5:v=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&x?(e.updateProgress(I),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ui(p,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(I),Ui(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(m),e.setTransition(v),e.setTranslate(m),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ui(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(m),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&n("_freeModeNoMomentumRelease");(!d.freeMode.momentum||S>=d.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:r,onTouchEnd:u}})}let Ki;function fo(){const t=At(),e=Et();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Yn(){return Ki||(Ki=fo()),Ki}let _i;function ho(t){let{userAgent:e}=t===void 0?{}:t;const i=Yn(),n=At(),s=n.navigator.platform,o=e||n.navigator.userAgent,r={ios:!1,android:!1},u=n.screen.width,a=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=s==="Win32";let y=s==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&i.touch&&b.indexOf(`${u}x${a}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),c&&!f&&(r.os="android",r.android=!0),(d||h||p)&&(r.os="ios",r.ios=!0),r}function Gn(t){return t===void 0&&(t={}),_i||(_i=ho(t)),_i}let Ji;function Ao(){const t=At(),e=Gn();let i=!1;function n(){const u=t.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(n()){const u=String(t.navigator.userAgent);if(u.includes("Version/")){const[a,c]=u.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=a<16||a===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n(),r=o||s&&e.ios;return{isSafari:i||o,needPerspectiveFix:i,need3dFix:r,isWebView:s}}function bo(){return Ji||(Ji=Ao()),Ji}function go(t){let{swiper:e,on:i,emit:n}=t;const s=At();let o=null,r=null;const u=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(p=>{r=s.requestAnimationFrame(()=>{const{width:h,height:f}=e;let y=h,b=f;p.forEach(S=>{let{contentBoxSize:v,contentRect:g,target:m}=S;m&&m!==e.el||(y=g?g.width:(v[0]||v).inlineSize,b=g?g.height:(v[0]||v).blockSize)}),(y!==h||b!==f)&&u()})}),o.observe(e.el))},c=()=>{r&&s.cancelAnimationFrame(r),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",u),s.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),s.removeEventListener("resize",u),s.removeEventListener("orientationchange",d)})}function yo(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;const o=[],r=At(),u=function(d,p){p===void 0&&(p={});const h=r.MutationObserver||r.WebkitMutationObserver,f=new h(y=>{if(e.__preventObserver__)return;if(y.length===1){s("observerUpdate",y[0]);return}const b=function(){s("observerUpdate",y[0])};r.requestAnimationFrame?r.requestAnimationFrame(b):r.setTimeout(b,0)});f.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),o.push(f)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=xi(e.hostEl);for(let p=0;p<d.length;p+=1)u(d[p])}u(e.hostEl,{childList:e.params.observeSlideChildren}),u(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",c)}var wo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=i?"unshift":"push";return t.split(" ").forEach(o=>{n.eventsListeners[o]||(n.eventsListeners[o]=[]),n.eventsListeners[o][s](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function s(){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,r=new Array(o),u=0;u<o;u++)r[u]=arguments[u];e.apply(n,r)}return s.__emitterProxy=e,n.on(t,s,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((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[n].splice(o,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(n,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(n,i)})}),t}};function So(){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(Kt(n,"padding-left")||0,10)-parseInt(Kt(n,"padding-right")||0,10),i=i-parseInt(Kt(n,"padding-top")||0,10)-parseInt(Kt(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 xo(){const t=this;function e(T,j){return parseFloat(T.getPropertyValue(t.getDirectionLabel(j))||0)}const i=t.params,{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:r,wrongRTL:u}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=zt(s,`.${t.params.slideClass}, swiper-slide`),p=a?t.virtual.slides.length:d.length;let h=[];const f=[],y=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let S=i.slidesOffsetAfter;typeof S=="function"&&(S=i.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let m=i.spaceBetween,x=-b,I=0,k=0;if(typeof o>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*o:typeof m=="string"&&(m=parseFloat(m)),t.virtualSize=-m,d.forEach(T=>{r?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(wi(n,"--swiper-centered-offset-before",""),wi(n,"--swiper-centered-offset-after",""));const N=i.grid&&i.grid.rows>1&&t.grid;N?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let A;const w=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){A=0;let j;if(d[T]&&(j=d[T]),N&&t.grid.updateSlide(T,j,d),!(d[T]&&Kt(j,"display")==="none")){if(i.slidesPerView==="auto"){w&&(d[T].style[t.getDirectionLabel("width")]="");const C=getComputedStyle(j),M=j.style.transform,E=j.style.webkitTransform;if(M&&(j.style.transform="none"),E&&(j.style.webkitTransform="none"),i.roundLengths)A=t.isHorizontal()?Xi(j,"width",!0):Xi(j,"height",!0);else{const B=e(C,"width"),W=e(C,"padding-left"),O=e(C,"padding-right"),V=e(C,"margin-left"),D=e(C,"margin-right"),P=C.getPropertyValue("box-sizing");if(P&&P==="border-box")A=B+V+D;else{const{clientWidth:F,offsetWidth:X}=j;A=B+W+O+V+D+(X-F)}}M&&(j.style.transform=M),E&&(j.style.webkitTransform=E),i.roundLengths&&(A=Math.floor(A))}else A=(o-(i.slidesPerView-1)*m)/i.slidesPerView,i.roundLengths&&(A=Math.floor(A)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${A}px`);d[T]&&(d[T].swiperSlideSize=A),y.push(A),i.centeredSlides?(x=x+A/2+I/2+m,I===0&&T!==0&&(x=x-o/2-m),T===0&&(x=x-o/2-m),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),k%i.slidesPerGroup===0&&h.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(x),f.push(x),x=x+A+m),t.virtualSize+=A+m,I=A,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+S,r&&u&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+m}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+m}px`),N&&t.grid.updateWrapperSize(A,h),!i.centeredSlides){const T=[];for(let j=0;j<h.length;j+=1){let C=h[j];i.roundLengths&&(C=Math.floor(C)),h[j]<=t.virtualSize-o&&T.push(C)}h=T,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(a&&i.loop){const T=y[0]+m;if(i.slidesPerGroup>1){const j=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),C=T*i.slidesPerGroup;for(let M=0;M<j;M+=1)h.push(h[h.length-1]+C)}for(let j=0;j<t.virtual.slidesBefore+t.virtual.slidesAfter;j+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),f.push(f[f.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),m!==0){const T=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");d.filter((j,C)=>!i.cssMode||i.loop?!0:C!==d.length-1).forEach(j=>{j.style[T]=`${m}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=T-o;h=h.map(C=>C<=0?-b:C>j?j+S:C)}if(i.centerInsufficientSlides){let T=0;y.forEach(C=>{T+=C+(m||0)}),T-=m;const j=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+j<o){const C=(o-T-j)/2;h.forEach((M,E)=>{h[E]=M-C}),f.forEach((M,E)=>{f[E]=M+C})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){wi(n,"--swiper-centered-offset-before",`${-h[0]}px`),wi(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const T=-t.snapGrid[0],j=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(C=>C+T),t.slidesGrid=t.slidesGrid.map(C=>C+j)}if(p!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==g&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,j=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?j||t.el.classList.add(T):j&&t.el.classList.remove(T)}}function To(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=u=>n?e.slides[e.getSlideIndexByData(u)]:e.slides[u];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(u=>{i.push(u)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const u=e.activeIndex+o;if(u>e.slides.length&&!n)break;i.push(r(u))}else i.push(r(e.activeIndex));for(o=0;o<i.length;o+=1)if(typeof i[o]<"u"){const u=i[o].offsetHeight;s=u>s?u:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function Eo(){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 Zn=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Co(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:s,snapGrid:o}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let u=i.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*e.size:typeof u=="string"&&(u=parseFloat(u));for(let a=0;a<n.length;a+=1){const c=n[a];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const p=(r+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),h=(r-o[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+u),f=-(r-d),y=f+e.slidesSizesGrid[a],b=f>=0&&f<=e.size-e.slidesSizesGrid[a],S=f>=0&&f<e.size-1||y>1&&y<=e.size||f<=0&&y>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a)),Zn(c,S,i.slideVisibleClass),Zn(c,b,i.slideFullyVisibleClass),c.progress=s?-p:p,c.originalProgress=s?-h:h}}function ko(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:r,progressLoop:u}=e;const a=o,c=r;if(n===0)s=0,o=!0,r=!0;else{s=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;o=d||s<=0,r=p||s>=1,d&&(s=0),p&&(s=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],f=e.slidesGrid[p],y=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=h?u=(b-h)/y:u=(b+y-f)/y,u>1&&(u-=1)}Object.assign(e,{progress:s,progressLoop:u,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(a&&!o||c&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const Qi=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Io(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:s}=t,o=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,u=p=>zt(n,`.${i.slideClass}${p}, swiper-slide${p}`)[0];let a,c,d;if(o)if(i.loop){let p=s-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),a=u(`[data-swiper-slide-index="${p}"]`)}else a=u(`[data-swiper-slide-index="${s}"]`);else r?(a=e.filter(p=>p.column===s)[0],d=e.filter(p=>p.column===s+1)[0],c=e.filter(p=>p.column===s-1)[0]):a=e[s];a&&(r||(d=vo(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=co(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(p=>{Qi(p,p===a,i.slideActiveClass),Qi(p,p===d,i.slideNextClass),Qi(p,p===c,i.slidePrevClass)}),t.emitSlidesClasses()}const ki=(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 s=n.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},Ri=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},$i=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),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,u=[r-e];u.push(...Array.from({length:e}).map((a,c)=>r+n+c)),t.slides.forEach((a,c)=>{u.includes(a.column)&&Ri(t,c)});return}const o=s+n-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=o+e;r+=1){const u=(r%i+i)%i;(u<s||u>o)&&Ri(t,u)}else for(let r=Math.max(s-e,0);r<=Math.min(o+e,i-1);r+=1)r!==s&&(r>o||r<s)&&Ri(t,r)};function Po(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let s;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?n>=e[o]&&n<e[o+1]-(e[o+1]-e[o])/2?s=o:n>=e[o]&&n<e[o+1]&&(s=o+1):n>=e[o]&&(s=o);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Oo(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:o,realIndex:r,snapIndex:u}=e;let a=t,c;const d=f=>{let y=f-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 a>"u"&&(a=Po(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const f=Math.min(s.slidesPerGroupSkip,a);c=f+Math.floor((a-f)/s.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),a===o&&!e.params.loop){c!==u&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const p=e.grid&&s.grid&&s.grid.rows>1;let h;if(e.virtual&&s.virtual.enabled&&s.loop)h=d(a);else if(p){const f=e.slides.filter(b=>b.column===a)[0];let y=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(f),0)),h=Math.floor(y/s.grid.rows)}else if(e.slides[a]){const f=e.slides[a].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=a}else h=a;Object.assign(e,{previousSnapIndex:u,snapIndex:c,previousRealIndex:r,realIndex:h,previousIndex:o,activeIndex:a}),e.initialized&&$i(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function Mo(t,e){const i=this,n=i.params;let s=t.closest(`.${n.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(u=>{!s&&u.matches&&u.matches(`.${n.slideClass}, swiper-slide`)&&(s=u)});let o=!1,r;if(s){for(let u=0;u<i.slides.length;u+=1)if(i.slides[u]===s){o=!0,r=u;break}}if(s&&o)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Lo={updateSize:So,updateSlides:xo,updateAutoHeight:To,updateSlidesOffset:Eo,updateSlidesProgress:Co,updateProgress:ko,updateSlidesClasses:Io,updateActiveIndex:Oo,updateClickedSlide:Mo};function jo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:s,wrapperEl:o}=e;if(i.virtualTranslate)return n?-s:s;if(i.cssMode)return s;let r=ao(o,t);return r+=e.cssOverflowAdjustment(),n&&(r=-r),r||0}function No(t,e){const i=this,{rtlTranslate:n,params:s,wrapperEl:o,progress:r}=i;let u=0,a=0;const c=0;i.isHorizontal()?u=n?-t:t:a=t,s.roundLengths&&(u=Math.floor(u),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?u:a,s.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-a:s.virtualTranslate||(i.isHorizontal()?u-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${u}px, ${a}px, ${c}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Do(){return-this.snapGrid[0]}function Vo(){return-this.snapGrid[this.snapGrid.length-1]}function Bo(t,e,i,n,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const o=this,{params:r,wrapperEl:u}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const a=o.minTranslate(),c=o.maxTranslate();let d;if(n&&t>a?d=a:n&&t<c?d=c:d=t,o.updateProgress(d),r.cssMode){const p=o.isHorizontal();if(e===0)u[p?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Xn({swiper:o,targetPosition:-d,side:p?"left":"top"}),!0;u.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(h){!o||o.destroyed||h.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Fo={getTranslate:jo,setTranslate:No,minTranslate:Do,maxTranslate:Vo,translateTo:Bo};function Wo(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 Kn(t){let{swiper:e,runCallbacks:i,direction:n,step:s}=t;const{activeIndex:o,previousIndex:r}=e;let u=n;if(u||(o>r?u="next":o<r?u="prev":u="reset"),e.emit(`transition${s}`),i&&o!==r){if(u==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),u==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function zo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Kn({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Ho(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Kn({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Uo={setTransition:Wo,transitionStart:zo,transitionEnd:Ho};function Xo(t,e,i,n,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let r=t;r<0&&(r=0);const{params:u,snapGrid:a,slidesGrid:c,previousIndex:d,activeIndex:p,rtlTranslate:h,wrapperEl:f,enabled:y}=o;if(!y&&!n&&!s||o.destroyed||o.animating&&u.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const b=Math.min(o.params.slidesPerGroupSkip,r);let S=b+Math.floor((r-b)/o.params.slidesPerGroup);S>=a.length&&(S=a.length-1);const v=-a[S];if(u.normalizeSlideIndex)for(let m=0;m<c.length;m+=1){const x=-Math.floor(v*100),I=Math.floor(c[m]*100),k=Math.floor(c[m+1]*100);typeof c[m+1]<"u"?x>=I&&x<k-(k-I)/2?r=m:x>=I&&x<k&&(r=m+1):x>=I&&(r=m)}if(o.initialized&&r!==p&&(!o.allowSlideNext&&(h?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(p||0)!==r))return!1;r!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v);let g;if(r>p?g="next":r<p?g="prev":g="reset",h&&-v===o.translate||!h&&v===o.translate)return o.updateActiveIndex(r),u.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),u.effect!=="slide"&&o.setTranslate(v),g!=="reset"&&(o.transitionStart(i,g),o.transitionEnd(i,g)),!1;if(u.cssMode){const m=o.isHorizontal(),x=h?v:-v;if(e===0){const I=o.virtual&&o.params.virtual.enabled;I&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),I&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[m?"scrollLeft":"scrollTop"]=x})):f[m?"scrollLeft":"scrollTop"]=x,I&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Xn({swiper:o,targetPosition:x,side:m?"left":"top"}),!0;f.scrollTo({[m?"left":"top"]:x,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,g),e===0?o.transitionEnd(i,g):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(x){!o||o.destroyed||x.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,g))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function qo(t,e,i,n){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let u;if(o){const h=r*s.params.grid.rows;u=s.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else u=s.getSlideIndexByData(r);const a=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let p=a-u<d;if(c&&(p=p||u<Math.ceil(d/2)),n&&c&&s.params.slidesPerView!=="auto"&&!o&&(p=!1),p){const h=c?u<s.activeIndex?"prev":"next":u-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?u+1:u-a+1,slideRealIndex:h==="next"?s.realIndex:void 0})}if(o){const h=r*s.params.grid.rows;r=s.slides.filter(f=>f.getAttribute("data-swiper-slide-index")*1===h)[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,i,n)}),s}function Yo(t,e,i){e===void 0&&(e=!0);const n=this,{enabled:s,params:o,animating:r}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let u=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(u=Math.max(n.slidesPerViewDynamic("current",!0),1));const a=n.activeIndex<o.slidesPerGroupSkip?1:u,c=n.virtual&&o.virtual.enabled;if(o.loop){if(r&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+a,t,e,i)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+a,t,e,i)}function Go(t,e,i){e===void 0&&(e=!0);const n=this,{params:s,snapGrid:o,slidesGrid:r,rtlTranslate:u,enabled:a,animating:c}=n;if(!a||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const p=u?n.translate:-n.translate;function h(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const f=h(p),y=o.map(v=>h(v));let b=o[y.indexOf(f)-1];if(typeof b>"u"&&s.cssMode){let v;o.forEach((g,m)=>{f>=g&&(v=m)}),typeof v<"u"&&(b=o[v>0?v-1:v])}let S=0;if(typeof b<"u"&&(S=r.indexOf(b),S<0&&(S=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(S=S-n.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),s.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(S,t,e,i)}),!0;return n.slideTo(S,t,e,i)}function Zo(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 Ko(t,e,i,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let o=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,o),u=r+Math.floor((o-r)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[u]){const c=s.snapGrid[u],d=s.snapGrid[u+1];a-c>(d-c)*n&&(o+=s.params.slidesPerGroup)}else{const c=s.snapGrid[u-1],d=s.snapGrid[u];a-c<=(d-c)*n&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,i)}function _o(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.clickedIndex,o;const r=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=t.getSlideIndex(zt(i,`${r}[data-swiper-slide-index="${o}"]`)[0]),ni(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=t.getSlideIndex(zt(i,`${r}[data-swiper-slide-index="${o}"]`)[0]),ni(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var Jo={slideTo:Xo,slideToLoop:qo,slideNext:Yo,slidePrev:Go,slideReset:Zo,slideToClosest:Ko,slideToClickedSlide:_o};function Qo(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{zt(n,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},o=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(o?i.grid.rows:1),u=e.slides.length%r!==0,a=o&&e.slides.length%i.grid.rows!==0,c=d=>{for(let p=0;p<d;p+=1){const h=e.isElement?li("swiper-slide",[i.slideBlankClass]):li("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(u){if(i.loopAddBlankSlides){const d=r-e.slides.length%r;c(d),e.recalcSlides(),e.updateSlides()}else Si("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else Si("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Ro(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:s,activeSlideIndex:o,byController:r,byMousewheel:u}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=a,{centeredSlides:y}=f;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&f.virtual.enabled){i&&(!f.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):f.centeredSlides&&a.snapIndex<f.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=d,a.allowSlideNext=p,a.emit("loopFix");return}let b=f.slidesPerView;b==="auto"?b=a.slidesPerViewDynamic():(b=Math.ceil(parseFloat(f.slidesPerView,10)),y&&b%2===0&&(b=b+1));const S=f.slidesPerGroupAuto?b:f.slidesPerGroup;let v=S;v%S!==0&&(v+=S-v%S),v+=f.loopAdditionalSlides,a.loopedSlides=v;const g=a.grid&&f.grid&&f.grid.rows>1;c.length<b+v?Si("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"):g&&f.grid.fill==="row"&&Si("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const m=[],x=[];let I=a.activeIndex;typeof o>"u"?o=a.getSlideIndex(c.filter(M=>M.classList.contains(f.slideActiveClass))[0]):I=o;const k=n==="next"||!n,N=n==="prev"||!n;let A=0,w=0;const T=g?Math.ceil(c.length/f.grid.rows):c.length,C=(g?c[o].column:o)+(y&&typeof s>"u"?-b/2+.5:0);if(C<v){A=Math.max(v-C,S);for(let M=0;M<v-C;M+=1){const E=M-Math.floor(M/T)*T;if(g){const B=T-E-1;for(let W=c.length-1;W>=0;W-=1)c[W].column===B&&m.push(W)}else m.push(T-E-1)}}else if(C+b>T-v){w=Math.max(C-(T-v*2),S);for(let M=0;M<w;M+=1){const E=M-Math.floor(M/T)*T;g?c.forEach((B,W)=>{B.column===E&&x.push(W)}):x.push(E)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),N&&m.forEach(M=>{c[M].swiperLoopMoveDOM=!0,h.prepend(c[M]),c[M].swiperLoopMoveDOM=!1}),k&&x.forEach(M=>{c[M].swiperLoopMoveDOM=!0,h.append(c[M]),c[M].swiperLoopMoveDOM=!1}),a.recalcSlides(),f.slidesPerView==="auto"?a.updateSlides():g&&(m.length>0&&N||x.length>0&&k)&&a.slides.forEach((M,E)=>{a.grid.updateSlide(E,M,a.slides)}),f.watchSlidesProgress&&a.updateSlidesOffset(),i){if(m.length>0&&N){if(typeof e>"u"){const M=a.slidesGrid[I],B=a.slidesGrid[I+A]-M;u?a.setTranslate(a.translate-B):(a.slideTo(I+Math.ceil(A),0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else if(s){const M=g?m.length/f.grid.rows:m.length;a.slideTo(a.activeIndex+M,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(x.length>0&&k)if(typeof e>"u"){const M=a.slidesGrid[I],B=a.slidesGrid[I-w]-M;u?a.setTranslate(a.translate-B):(a.slideTo(I-w,0,!1,!0),s&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else{const M=g?x.length/f.grid.rows:x.length;a.slideTo(a.activeIndex-M,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=p,a.controller&&a.controller.control&&!r){const M={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(E=>{!E.destroyed&&E.params.loop&&E.loopFix({...M,slideTo:E.params.slidesPerView===f.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...M,slideTo:a.controller.control.params.slidesPerView===f.slidesPerView?i:!1})}a.emit("loopFix")}function $o(){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(s=>{const o=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[o]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{i.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var es={loopCreate:Qo,loopFix:Ro,loopDestroy:$o};function ts(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 is(){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 ns={setGrabCursor:ts,unsetGrabCursor:is};function ls(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Et()||n===At())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(t);return!s&&!n.getRootNode?null:s||i(n.getRootNode().host)}return i(e)}function _n(t,e,i){const n=At(),{params:s}=t,o=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return o&&(i<=r||i>=n.innerWidth-r)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function os(t){const e=this,i=Et();let n=t;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){_n(e,n,n.targetTouches[0].pageX);return}const{params:o,touches:r,enabled:u}=e;if(!u||!o.simulateTouch&&n.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let a=n.target;if(o.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(a=d[0]);const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(h?ls(p,a):a.closest(p))){e.allowClick=!0;return}if(o.swipeHandler&&!a.closest(o.swipeHandler))return;r.currentX=n.pageX,r.currentY=n.pageY;const f=r.currentX,y=r.currentY;if(!_n(e,n,f))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=f,r.startY=y,s.touchStartTime=Lt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let b=!0;a.matches(s.focusableElements)&&(b=!1,a.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const S=b&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||S)&&!a.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function ss(t){const e=Et(),i=this,n=i.touchEventsData,{params:s,touches:o,rtlTranslate:r,enabled:u}=i;if(!u||!s.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(n.touchId!==null||a.pointerId!==n.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(k=>k.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=a;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){o.startX=d,o.startY=p;return}if(!i.allowTouchMove){a.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p}),n.touchStartTime=Lt());return}if(s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(p<o.startY&&i.translate<=i.maxTranslate()||p>o.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d<o.startX&&i.translate<=i.maxTranslate()||d>o.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",a),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=p;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let k;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:h*h+f*f>=25&&(k=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,n.isScrolling=i.isHorizontal()?k>s.touchAngle:90-k>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",a),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||a.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let y=i.isHorizontal()?h:f,b=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(y=Math.abs(y)*(r?1:-1),b=Math.abs(b)*(r?1:-1)),o.diff=y,y*=s.touchRatio,r&&(y=-y,b=-b);const S=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const v=i.params.loop&&!s.cssMode,g=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(v&&g&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(k)}n.allowMomentumBounce=!1,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let m;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&S!==i.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(o,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",a),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,I=s.resistanceRatio;if(s.touchReleaseOnEdges&&(I=0),y>0?(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**I))):y<0&&(v&&g&&!m&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**I))),x&&(a.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),s.threshold>0)if(Math.abs(y)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function rs(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].filter(I=>I.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;s=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:r,touches:u,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!r.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=Lt(),h=p-i.touchStartTime;if(e.allowClick){const I=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(I&&I[0]||n.target,I),e.emit("tap click",n),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Lt(),ni(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||u.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(r.followFinger?f=a?e.translate:-e.translate:f=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const y=f>=-e.maxTranslate()&&!e.params.loop;let b=0,S=e.slidesSizesGrid[0];for(let I=0;I<c.length;I+=I<r.slidesPerGroupSkip?1:r.slidesPerGroup){const k=I<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[I+k]<"u"?(y||f>=c[I]&&f<c[I+k])&&(b=I,S=c[I+k]-c[I]):(y||f>=c[I])&&(b=I,S=c[c.length-1]-c[c.length-2])}let v=null,g=null;r.rewind&&(e.isBeginning?g=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const m=(f-c[b])/S,x=b<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(m>1-r.longSwipesRatio?e.slideTo(b+x):g!==null&&m<0&&Math.abs(m)>r.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!r.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(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:b+x),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function Jn(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:o}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const u=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!u?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function as(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function ds(){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 s;const o=t.maxTranslate()-t.minTranslate();o===0?s=0:s=(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function us(t){const e=this;ki(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function cs(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Qn=(t,e)=>{const i=Et(),{params:n,el:s,wrapperEl:o,device:r}=t,u=!!n.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:u}),s[a]("touchstart",t.onTouchStart,{passive:!1}),s[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:u}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:u}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[a]("click",t.onClick,!0),n.cssMode&&o[a]("scroll",t.onScroll),n.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Jn,!0):t[c]("observerUpdate",Jn,!0),s[a]("load",t.onLoad,{capture:!0}))};function vs(){const t=this,{params:e}=t;t.onTouchStart=os.bind(t),t.onTouchMove=ss.bind(t),t.onTouchEnd=rs.bind(t),t.onDocumentTouchStart=cs.bind(t),e.cssMode&&(t.onScroll=ds.bind(t)),t.onClick=as.bind(t),t.onLoad=us.bind(t),Qn(t,"on")}function ps(){Qn(this,"off")}var ms={attachEvents:vs,detachEvents:ps};const Rn=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function fs(){const t=this,{realIndex:e,initialized:i,params:n,el:s}=t,o=n.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const r=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const a=(r in o?o[r]:void 0)||t.originalParams,c=Rn(t,n),d=Rn(t,a),p=t.params.grabCursor,h=a.grabCursor,f=n.enabled;c&&!d?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${n.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!h?t.unsetGrabCursor():!p&&h&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof a[m]>"u")return;const x=n[m]&&n[m].enabled,I=a[m]&&a[m].enabled;x&&!I&&t[m].disable(),!x&&I&&t[m].enable()});const y=a.direction&&a.direction!==n.direction,b=n.loop&&(a.slidesPerView!==n.slidesPerView||y),S=n.loop;y&&i&&t.changeDirection(),It(t.params,a);const v=t.params.enabled,g=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",a),i&&(b?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!S&&g?(t.loopCreate(e),t.updateSlides()):S&&!g&&t.loopDestroy()),t.emit("breakpoint",a)}function hs(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const s=At(),o=e==="window"?s.innerHeight:i.clientHeight,r=Object.keys(t).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const a=parseFloat(u.substr(1));return{value:o*a,point:u}}return{value:u,point:u}});r.sort((u,a)=>parseInt(u.value,10)-parseInt(a.value,10));for(let u=0;u<r.length;u+=1){const{point:a,value:c}=r[u];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(n=a):c<=i.clientWidth&&(n=a)}return n||"max"}var As={setBreakpoint:fs,getBreakpoint:hs};function bs(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&i.push(e+s)}):typeof n=="string"&&i.push(e+n)}),i}function gs(){const t=this,{classNames:e,params:i,rtl:n,el:s,device:o}=t,r=bs(["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:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),s.classList.add(...e),t.emitContainerClasses()}function ys(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var ws={addClasses:gs,removeClasses:ys};function Ss(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const s=t.slides.length-1,o=t.slidesGrid[s]+t.slidesSizesGrid[s]+n*2;t.isLocked=t.size>o}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 xs={checkOverflow:Ss},en={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 Ts(t,e){return function(n){n===void 0&&(n={});const s=Object.keys(n)[0],o=n[s];if(typeof o!="object"||o===null){It(e,n);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in o)){It(e,n);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),It(e,n)}}const tn={eventsEmitter:wo,update:Lo,translate:Fo,transition:Uo,slide:Jo,loop:es,grabCursor:ns,events:ms,breakpoints:As,checkOverflow:xs,classes:ws},nn={};let ln=class Yt{constructor(){let e,i;for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?i=s[0]:[e,i]=s,i||(i={}),i=It({},i),e&&!i.el&&(i.el=e);const r=Et();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const d=[];return r.querySelectorAll(i.el).forEach(p=>{const h=It({},i,{el:p});d.push(new Yt(h))}),d}const u=this;u.__swiper__=!0,u.support=Yn(),u.device=Gn({userAgent:i.userAgent}),u.browser=bo(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],i.modules&&Array.isArray(i.modules)&&u.modules.push(...i.modules);const a={};u.modules.forEach(d=>{d({params:i,swiper:u,extendParams:Ts(i,a),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const c=It({},en,a);return u.params=It({},c,nn,i),u.originalParams=It({},u.params),u.passedParams=It({},i),u.params&&u.params.on&&Object.keys(u.params.on).forEach(d=>{u.on(d,u.params.on[d])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,s=zt(i,`.${n.slideClass}, swiper-slide`),o=ci(s[0]);return ci(e)-o}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=zt(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 s=n.minTranslate(),r=(n.maxTranslate()-s)*e+s;n.translateTo(r,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 s=e.getSlideClasses(n);i.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:s,slides:o,slidesGrid:r,slidesSizesGrid:u,size:a,activeIndex:c}=n;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let p=o[c]?Math.ceil(o[c].swiperSlideSize):0,h;for(let f=c+1;f<o.length;f+=1)o[f]&&!h&&(p+=Math.ceil(o[f].swiperSlideSize),d+=1,p>a&&(h=!0));for(let f=c-1;f>=0;f-=1)o[f]&&!h&&(p+=o[f].swiperSlideSize,d+=1,p>a&&(h=!0))}else if(e==="current")for(let p=c+1;p<o.length;p+=1)(i?r[p]+u[p]-r[c]<a:r[p]-r[c]<a)&&(d+=1);else for(let p=c-1;p>=0;p-=1)r[c]-r[p]<a&&(d+=1);return d}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(r=>{r.complete&&ki(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,u=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(u),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const r=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(r.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||s()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,s=n.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(o=>{e==="vertical"?o.style.width="":o.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 s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):zt(n,s())[0];return!r&&i.params.createElements&&(r=li("div",i.params.wrapperClass),n.append(r),zt(n,`.${i.params.slideClass}`).forEach(u=>{r.append(u)})),Object.assign(i,{el:n,wrapperEl:r,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Kt(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Kt(n,"direction")==="rtl"),wrongRTL:Kt(r,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(o=>{o.complete?ki(i,o):o.addEventListener("load",r=>{ki(i,r.target)})}),$i(i),i.initialized=!0,$i(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:s,el:o,wrapperEl:r,slides:u}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),i&&(n.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),r&&r.removeAttribute("style"),u&&u.length&&u.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(a=>{n.off(a)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),so(n)),n.destroyed=!0),null}static extendDefaults(e){It(nn,e)}static get extendedDefaults(){return nn}static get defaults(){return en}static installModule(e){Yt.prototype.__modules__||(Yt.prototype.__modules__=[]);const i=Yt.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Yt.installModule(i)),Yt):(Yt.installModule(e),Yt)}};Object.keys(tn).forEach(t=>{Object.keys(tn[t]).forEach(e=>{ln.prototype[e]=tn[t][e]})}),ln.use([go,yo]);const $n=["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 Qt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function oi(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]:Qt(e[n])&&Qt(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:oi(t[n],e[n]):t[n]=e[n]})}function el(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function tl(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function il(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function nl(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 Es(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Cs(t){let{swiper:e,slides:i,passedParams:n,changedParams:s,nextEl:o,prevEl:r,scrollbarEl:u,paginationEl:a}=t;const c=s.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:d,pagination:p,navigation:h,scrollbar:f,virtual:y,thumbs:b}=e;let S,v,g,m,x,I,k,N;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(S=!0),s.includes("controller")&&n.controller&&n.controller.control&&d.controller&&!d.controller.control&&(v=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||a)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(g=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||u)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(m=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||r)&&(n.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),d[w].prevEl=void 0,d[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),d[w].el=void 0,e[w].el=void 0))};s.includes("loop")&&e.isElement&&(d.loop&&!n.loop?I=!0:!d.loop&&n.loop?k=!0:N=!0),c.forEach(w=>{if(Qt(d[w])&&Qt(n[w]))Object.assign(d[w],n[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in n[w]&&!n[w].enabled&&A(w);else{const T=n[w];(T===!0||T===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?T===!1&&A(w):d[w]=n[w]}}),c.includes("controller")&&!v&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),s.includes("children")&&i&&y&&d.virtual.enabled?(y.slides=i,y.update(!0)):s.includes("virtual")&&y&&d.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),s.includes("children")&&i&&d.loop&&(N=!0),S&&b.init()&&b.update(!0),v&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),p.init(),p.render(),p.update()),m&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),e.el.appendChild(u)),u&&(d.scrollbar.el=u),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=e.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),e.el.appendChild(o)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),o&&(d.navigation.nextEl=o),r&&(d.navigation.prevEl=r),h.init(),h.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(I||N)&&e.loopDestroy(),(k||N)&&e.loopCreate(),e.update()}function ks(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},s={};oi(i,en),i._emitClasses=!0,i.init=!1;const o={},r=$n.map(a=>a.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(a=>{typeof t[a]>"u"||(r.indexOf(a)>=0?Qt(t[a])?(i[a]={},s[a]={},oi(i[a],t[a]),oi(s[a],t[a])):(i[a]=t[a],s[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?e?n[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:o[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:s,rest:o,events:n}}function Is(t,e){let{el:i,nextEl:n,prevEl:s,paginationEl:o,scrollbarEl:r,swiper:u}=t;el(e)&&n&&s&&(u.params.navigation.nextEl=n,u.originalParams.navigation.nextEl=n,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),tl(e)&&o&&(u.params.pagination.el=o,u.originalParams.pagination.el=o),il(e)&&r&&(u.params.scrollbar.el=r,u.originalParams.scrollbar.el=r),u.init(i)}function Ps(t,e,i,n,s){const o=[];if(!e)return o;const r=a=>{o.indexOf(a)<0&&o.push(a)};if(i&&n){const a=n.map(s),c=i.map(s);a.join("")!==c.join("")&&r("children"),n.length!==i.length&&r("children")}return $n.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(Qt(t[a])&&Qt(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?r(a):(c.forEach(p=>{t[a][p]!==e[a][p]&&r(a)}),d.forEach(p=>{t[a][p]!==e[a][p]&&r(a)}))}else t[a]!==e[a]&&r(a)}),o}const Os=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 Ii(){return Ii=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},Ii.apply(this,arguments)}function ll(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function ol(t){const e=[];return l.Children.toArray(t).forEach(i=>{ll(i)?e.push(i):i.props&&i.props.children&&ol(i.props.children).forEach(n=>e.push(n))}),e}function Ms(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(t).forEach(n=>{if(ll(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 s=ol(n.props.children);s.length>0?s.forEach(o=>e.push(o)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function Ls(t,e,i){if(!i)return null;const n=d=>{let p=d;return d<0?p=e.length+d:p>=e.length&&(p=p-e.length),p},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:o,to:r}=i,u=t.params.loop?-e.length:0,a=t.params.loop?e.length*2:e.length,c=[];for(let d=u;d<a;d+=1)d>=o&&d<=r&&c.push(e[n(d)]);return c.map((d,p)=>l.cloneElement(d,{swiper:t,style:s,key:d.props.virtualIndex||d.key||`slide-${p}`}))}function vi(t,e){return typeof window>"u"?l.useEffect(t,e):l.useLayoutEffect(t,e)}const on=l.createContext(null),sn=()=>l.useContext(on),js=l.createContext(null),Rt=l.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:s="div",children:o,onSwiper:r,...u}=t===void 0?{}:t,a=!1;const[c,d]=l.useState("swiper"),[p,h]=l.useState(null),[f,y]=l.useState(!1),b=l.useRef(!1),S=l.useRef(null),v=l.useRef(null),g=l.useRef(null),m=l.useRef(null),x=l.useRef(null),I=l.useRef(null),k=l.useRef(null),N=l.useRef(null),{params:A,passedParams:w,rest:T,events:j}=ks(u),{slides:C,slots:M}=Ms(o),E=()=>{y(!f)};Object.assign(A.on,{_containerClasses(D,P){d(P)}});const B=()=>{Object.assign(A.on,j),a=!0;const D={...A};if(delete D.wrapperClass,v.current=new ln(D),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=C;const P={cache:!1,slides:C,renderExternal:h,renderExternalUpdate:!1};oi(v.current.params.virtual,P),oi(v.current.originalParams.virtual,P)}};S.current||B(),v.current&&v.current.on("_beforeBreakpoint",E);const W=()=>{a||!j||!v.current||Object.keys(j).forEach(D=>{v.current.on(D,j[D])})},O=()=>{!j||!v.current||Object.keys(j).forEach(D=>{v.current.off(D,j[D])})};l.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",E)}),l.useEffect(()=>{!b.current&&v.current&&(v.current.emitSlidesClasses(),b.current=!0)}),vi(()=>{if(e&&(e.current=S.current),!!S.current)return v.current.destroyed&&B(),Is({el:S.current,nextEl:x.current,prevEl:I.current,paginationEl:k.current,scrollbarEl:N.current,swiper:v.current},A),r&&!v.current.destroyed&&r(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),vi(()=>{W();const D=Ps(w,g.current,C,m.current,P=>P.key);return g.current=w,m.current=C,D.length&&v.current&&!v.current.destroyed&&Cs({swiper:v.current,slides:C,passedParams:w,changedParams:D,nextEl:x.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:k.current}),()=>{O()}}),vi(()=>{Os(v.current)},[p]);function V(){return A.virtual?Ls(v.current,C,p):C.map((D,P)=>l.cloneElement(D,{swiper:v.current,swiperSlideIndex:P}))}return l.createElement(n,Ii({ref:S,className:nl(`${c}${i?` ${i}`:""}`)},T),l.createElement(js.Provider,{value:v.current},M["container-start"],l.createElement(s,{className:Es(A.wrapperClass)},M["wrapper-start"],V(),M["wrapper-end"]),el(A)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:I,className:"swiper-button-prev"}),l.createElement("div",{ref:x,className:"swiper-button-next"})),il(A)&&l.createElement("div",{ref:N,className:"swiper-scrollbar"}),tl(A)&&l.createElement("div",{ref:k,className:"swiper-pagination"}),M["container-end"]))});Rt.displayName="Swiper";const Bt=l.forwardRef(function(t,e){let{tag:i="div",children:n,className:s="",swiper:o,zoom:r,lazy:u,virtualIndex:a,swiperSlideIndex:c,...d}=t===void 0?{}:t;const p=l.useRef(null),[h,f]=l.useState("swiper-slide"),[y,b]=l.useState(!1);function S(x,I,k){I===p.current&&f(k)}vi(()=>{if(typeof c<"u"&&(p.current.swiperSlideIndex=c),e&&(e.current=p.current),!(!p.current||!o)){if(o.destroyed){h!=="swiper-slide"&&f("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),vi(()=>{o&&p.current&&!o.destroyed&&f(o.getSlideClasses(p.current))},[o]);const v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},g=()=>typeof n=="function"?n(v):n,m=()=>{b(!0)};return l.createElement(i,Ii({ref:p,className:nl(`${h}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:m},d),r&&l.createElement(on.Provider,{value:v},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},g(),u&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&l.createElement(on.Provider,{value:v},g(),u&&!y&&l.createElement("div",{className:"swiper-lazy-preloader"})))});Bt.displayName="SwiperSlide";const Ns="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Ds=({visible:t,onClose:e,children:i,modalStyle:n,padding:s,popup:o,schema:r,fullHeight:u=window.innerHeight,isFullScreen:a=!1,openState:c})=>{var d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,w,T,j,C,M,E,B,W,O;const V=l.useRef(null),D=l.useRef(null),P=l.useRef(null),F=l.useRef(null),X=l.useRef(null),K=u*.2,R=a?u:u*.8,[te,ve]=l.useState(K),[he,ie]=l.useState(!1),Me=l.useRef(null),{globalConfig:Ve,popupDetailData:He}=De(),{schema:G,popup:_}=Gt(),[Ae,ge]=l.useState(15);l.useEffect(()=>{const Z=document.getElementById("sxp-render"),q=document.getElementById("pb-modal");q?Me.current=q:(Me.current=document.createElement("div"),Me.current.setAttribute("id","pb-modal"),Z?.appendChild(Me.current))},[]);const ye=l.useMemo(()=>o?.id&&o?.id!==""||t,[t,o]),re=l.useMemo(()=>{var Z,q,le;const oe=r??G;return(le=(q=(Z=oe?.sxpPageConf)===null||Z===void 0?void 0:Z.globalConfig)===null||q===void 0?void 0:q.popupList)===null||le===void 0?void 0:le.find(Pe=>Pe?.id===o?.id)},[o,r,G]),je=l.useMemo(()=>{var Z,q;return((q=(Z=re?.item)===null||Z===void 0?void 0:Z.event)===null||q===void 0?void 0:q.isScrollFullScreen)||!1},[re]);l.useEffect(()=>{ye?ie(!0):setTimeout(()=>{ie(!1),ve(K)},o?.duration)},[ye,o]);const Ue=l.useCallback(()=>i,[_,c,Ve,r]);if(l.useEffect(()=>{const Z=q=>{var le=q?.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])'),oe=le?.[0],pe=le?.[le?.length-1],Pe=9;q.addEventListener("keydown",function(Ze){(Ze.key==="Escape"||Ze.key==="Esc")&&(We(),Ze.preventDefault());var ne=Ze.key==="Tab"||Ze.keyCode===Pe;ne&&(Ze.shiftKey?document?.activeElement===oe&&(pe?.focus(),Ze.preventDefault()):document?.activeElement===pe&&(oe?.focus(),Ze.preventDefault()))}),oe?.focus()};return X?.current&&Z(X?.current),()=>{var q;(q=X?.current)===null||q===void 0||q.removeEventListener("keydown",Z)}},[X,he,_]),!Me.current)return null;const We=Je.debounce(()=>{e?.()},300),Ge=Z=>{V.current=Z.touches[0],D.current=Z.touches[0],P.current=!0},Qe=Z=>{requestAnimationFrame(()=>{var q;if(P.current&&((q=F?.current)===null||q===void 0?void 0:q.scrollTop)===0){const le=Z.touches[0].clientY,oe=Z.touches[0].clientX,pe=V.current.clientY-le;V.current=Z.touches[0];const Pe=le-D.current.clientY,Ze=oe-D.current.clientX;if(Math.abs(Ze)>Math.abs(Pe))return;const ne=te-pe;ne>0&&ve(ne)}})},Se=Z=>{var q;if(P.current&&((q=F?.current)===null||q===void 0?void 0:q.scrollTop)===0){const le=Z.changedTouches[0].clientY-D.current.clientY,oe=Z.changedTouches[0].clientX-D.current.clientX;if(Math.abs(oe)>Math.abs(le))return;const pe=D.current.clientY-V.current.clientY;pe>0?ve(0):te<K&&pe<0?ve(K):te>=K&&pe<0&&e?.()}P.current=!1};return wn.createPortal(l.createElement(l.Fragment,null,he&&l.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:We},l.createElement("div",{style:{position:"relative",left:`${(f=(h=(p=(d=re?.item)===null||d===void 0?void 0:d.props)===null||p===void 0?void 0:p.popupBg)===null||h===void 0?void 0:h.horizontalMargin)!==null&&f!==void 0?f:0}px`,right:`${(v=(S=(b=(y=re?.item)===null||y===void 0?void 0:y.props)===null||b===void 0?void 0:b.popupBg)===null||S===void 0?void 0:S.horizontalMargin)!==null&&v!==void 0?v:0}px`,bottom:`${(I=(x=(m=(g=re?.item)===null||g===void 0?void 0:g.props)===null||m===void 0?void 0:m.popupBg)===null||x===void 0?void 0:x.bottomMargin)!==null&&I!==void 0?I:0}px`,overflow:"hidden",width:`calc(100% - ${((w=(A=(N=(k=re?.item)===null||k===void 0?void 0:k.props)===null||N===void 0?void 0:N.popupBg)===null||A===void 0?void 0:A.horizontalMargin)!==null&&w!==void 0?w:0)*2}px)`,height:"100%"}},l.createElement("div",Object.assign({ref:X,className:`modal-container ${ye?"modal-popIn":"modal-popOut"}`,role:"dialog","aria-label":(T=re?.item)===null||T===void 0?void 0:T.displayName,"aria-modal":!0,"aria-labelledby":"modal-content",style:Object.assign(Object.assign({padding:s,animationDuration:((j=o?.duration)!==null&&j!==void 0?j:0)/1e3+"s"},je&&{transform:`translateY(${te}px)`}),{overflow:"hidden",borderRadius:`${(B=(E=(M=(C=re?.item)===null||C===void 0?void 0:C.props)===null||M===void 0?void 0:M.popupBg)===null||E===void 0?void 0:E.borderRadius)!==null&&B!==void 0?B:0}px`,zIndex:9}),onClick:Z=>{Z.stopPropagation(),Z.preventDefault()}},je&&{onTouchMove:Qe,onTouchStart:Ge,onTouchEnd:Se}),l.createElement("div",Object.assign({id:"modal-content",ref:F,style:{height:je?u:R,overflow:je&&te<=0||!je?"auto":"hidden",zIndex:1}},((O=(W=re?.item)===null||W===void 0?void 0:W.props)===null||O===void 0?void 0:O.enableFixedCloseButton)&&{onScroll:Z=>{var q;ge(15-((q=Z?.target)===null||q===void 0?void 0:q.scrollTop))}}),Ue()),l.createElement("button",{className:"modal-icon-wrapper",role:"button","aria-label":"close button",onClick:e,style:{top:Ae}},l.createElement("img",{src:Ve?.popupCloseIcon||Ns,alt:"close button",className:"modal-icon"})))))),Me.current)};var si=l.memo(Ds);const Vs=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),s=[];for(let r=0;r<n.length&&(s.push(n[r]),!(s.join(" ").length>=e));r++);return(s.length>1&&s.length<n.length?s.slice(0,s.length-1):s).join(" ")+" "},Bs=({text:t,maxStr:e=108,style:i,className:n,onClick:s,foldText:o,unfoldText:r,isPost:u,onChange:a})=>{const[c,d]=l.useState(!1),[p,h]=l.useState(!1),f=Number(i?.lineClamp||2),y=l.useRef(null),b=l.useRef(null),S=l.useCallback(()=>{d(!c)},[c,a]);return l.useMemo(()=>!c&&t.length>e?Vs(t,e)+"...":t,[t,e,c]),l.useEffect(()=>{var v,g;b?.current&&(b.current.style.display="block"),((v=b?.current)===null||v===void 0?void 0:v.offsetHeight)>((g=y?.current)===null||g===void 0?void 0:g.offsetHeight)&&u?h(!0):h(!1),b.current.style.display="none"},[u,t]),l.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},l.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!u||c?"":f,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:Ce(t?.replace(/\n/g,"</br>"),i)}}),l.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:Ce(t?.replace(/\n/g,"</br>"),i)}}),t&&u&&p&&l.createElement("button",{"aria-label":c?r||"show less":o||"show more",style:{textDecoration:"underline",cursor:"pointer"},onClick:s??S,dangerouslySetInnerHTML:{__html:Ce(c?r||"show less":o||"show more",i)}}))};var Pi=l.memo(Bs);const Fs=l.forwardRef((t,e)=>{const{src:i,onLoad:n,style:s,className:o,loading:r,alt:u="image"}=t,[a,c]=l.useState(i),d=l.useRef(null),[p,h]=l.useState(!1);return l.useImperativeHandle(e,()=>({setSrc:f=>{f&&c(f)}})),l.useEffect(()=>{i&&c(i)},[i]),l.useEffect(()=>{const f=()=>{i&&!p&&d.current&&(d.current.src="",d.current.src=i)};return ct.on(dt.PAGE_DID_SHOW,f),()=>{ct.off(dt.PAGE_DID_SHOW,f)}},[i,p]),l.createElement(l.Fragment,null,!p&&!a&&l.createElement("div",{style:{width:"100%",height:"100%",zIndex:1,backgroundColor:"#fff"}}),a?.includes(".avif")?l.createElement("picture",null,l.createElement("source",{type:"image/avif",srcSet:a}),l.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),l.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),l.createElement("img",{ref:d,className:o,src:a,style:Object.assign({},s),loading:r,onLoad:f=>{h(!0),n?.(f.target)},alt:u})):l.createElement("img",{ref:d,className:o,src:a,style:Object.assign({},s),loading:r,onLoad:f=>{h(!0),n?.(f.target)},alt:u}))});var Ct=l.memo(Fs);const Ws=({children:t,isPadding:e=!0,style:i,enableSlideActive:n=!1})=>{const s=l.useRef(),{popupDetailData:o}=De();return l.useEffect(()=>{var r,u;n&&((r=s?.current)===null||r===void 0||r.swiper.slideTo((u=o?.multiCheckIndex)!==null&&u!==void 0?u:0))},[o,n]),l.createElement(Rt,{role:"list",tag:"ul",ref:s,direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[mo,po,Ti],style:Object.assign({padding:e?"0 12px 0 20px":0},i)},t)};var pi=l.memo(Ws);const zs=({products:t,data:e,defImg:i,style:n,onCLick:s,popupDetailData:o,check:r})=>{var u;const{productView:a}=gt(),{popupCurTimeRef:c}=De(),d=(p,h)=>{if(r===h)return;const f=t?.[r];a(o,f,f?.bindCta,c.current,o?.index),s?.(h)};return l.createElement(l.Fragment,null,e?.open&&(t&&t?.length>1||!o)&&l.createElement(pi,{enableSlideActive:!0,isPadding:!1,style:Object.assign(Object.assign({},n),e?.style)},(u=o?t:[0,1,2,3])===null||u===void 0?void 0:u.map((p,h)=>{var f,y,b;return l.createElement(l.Fragment,null,p?.bindCta?l.createElement(Bt,{className:Oe.css({width:"50px",height:"50px",marginRight:"10px"}),onClick:()=>{d(p,h)},key:h},l.createElement(Ct,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${e?.translateY?e?.translateY+50:50}%`,border:r===h?"1px solid #000":"1px solid #f2f2f2",boxSizing:"border-box"},src:(b=(f=p?.cover)!==null&&f!==void 0?f:(y=p?.homePage)===null||y===void 0?void 0:y[0])!==null&&b!==void 0?b:i})):null)})))};var sl=l.memo(zs);const Hs=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:s,src:o}=t;switch(i){case 2:return n||null;case 3:return o||null;default:return s&&s.length>0?(e=s[0])===null||e===void 0?void 0:e.url:null}},Us=t=>t?{backgroundImage:`url(${t})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:"",mi=({product:t,enableFormattedPrice:e,globalConfig:i,isHiddenDef:n,style:s})=>{var o,r,u,a,c,d,p,h;let f="";if((!t?.currency||!t?.price)&&n)return null;let y=Number(t?.currency&&t?.price?t?.price:7e3);if(typeof y!="number")return f;let b=i?.priceSymbol,S=t?.currency?(u=(r=(o=t?.currency)===null||o===void 0?void 0:o.split("-")[1])===null||r===void 0?void 0:r.toUpperCase())!==null&&u!==void 0?u:"":"$";const v=e===void 0||e;let g=y?.toString();b?.showTwoDecimalPoint&&(g=y?.toFixed(2));let m=(a=g?.indexOf("."))!==null&&a!==void 0?a:-1;if(v){f=(c=y?.toLocaleString("zh",{minimumFractionDigits:b?.showTwoDecimalPoint?2:0}))!==null&&c!==void 0?c:"";let x=0,I=m??f?.length;b?.millesimalSymbol==="."?f=f?.replace(/\,/g,function(k,N){return N>=x&&N<I?".":k}):b?.millesimalSymbol===" "&&(f=f?.replace(","," "))}else f=`${b?.showTwoDecimalPoint?y?.toFixed(2):y}`;return b?.decimalPoint===","&&m>0&&(f=f=f?.replace(/\./g,function(x,I){return I>=m&&I<f?.length?",":x})),S=`<span style="font-family:${(h=(p=(d=i?.priceSymbol)===null||d===void 0?void 0:d.fontFamily)!==null&&p!==void 0?p:s?.["fontFamily-en"])!==null&&h!==void 0?h:"inherit"}">${S}</span>`,f=Ce(f,s),b?.currencyPosition&&b?.currencyPosition!=="none"?f=b?.currencyPosition==="left"?S+f:f+S:b?.currencyPosition!=="none"&&(f=S+f),f},Xs=t=>{var e,i,n,s,o,r,u,a,c,d,p,h,f,y,b,S,v,g,m,x,I,k,N,A,{content:w,style:T,bgImg:j,onClick:C,schema:M,isDefault:E,bottom_image:B,tipText:W,isPost:O,viewTime:V,rec:D,swiper:P,commodityStyles:F,buttonStyle:X,index:K,commodityGroup:R,popupBg:te,iframeIcon:ve,commodityImgRatio:he,isTel:ie,iframeBgColor:Me,isActive:Ve=!0}=t,He=et(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:G,popupDetailData:_,isPreview:Ae,bffFbReport:ge,popupCurTimeRef:ye,checkCommodityIndexRef:re,globalConfig:je}=De(),{jumpToWeb:Ue,productView:We}=gt(),Ge=l.useRef(null),[Qe,Se]=l.useState(!1),[Z,q]=l.useState(!1),[le,oe]=l.useState((e=_?.multiCheckIndex)!==null&&e!==void 0?e:0),pe=l.useRef(),[Pe,Ze]=l.useState(0),ne=O?D:_;let z=O?ne?.product:(n=(i=ne?.video)===null||i===void 0?void 0:i.bindProduct)!==null&&n!==void 0?n:(o=(s=ne?.video)===null||s===void 0?void 0:s.bindProducts)===null||o===void 0?void 0:o[0],qe=O?(r=ne?.product)===null||r===void 0?void 0:r.bindCta:(c=(a=(u=ne?.video)===null||u===void 0?void 0:u.bindProduct)===null||a===void 0?void 0:a.bindCta)!==null&&c!==void 0?c:(h=(p=(d=ne?.video)===null||d===void 0?void 0:d.bindProducts)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.bindCta;const yt=O?K:_?.index;if(!O&&R?.open&&(!((f=ne?.video)===null||f===void 0)&&f.bindProducts)&&((b=(y=ne?.video)===null||y===void 0?void 0:y.bindProducts)===null||b===void 0?void 0:b.length)>0){re.current=le;const we=(S=ne?.video)===null||S===void 0?void 0:S.bindProducts[le];z=we,qe=we?.bindCta}const lt=we=>{z?.link&&(Ue(we,ne,z,qe,yt),O||We(ne,z,qe,V||Ge.current,yt),window.location.href=window.getJointUtmLink(z.link))};l.useEffect(()=>{Ve&&(ge?.({eventName:"ProductView",product:z}),ge?.({eventName:"PageView",product:z}))},[Ve,ge]),l.useEffect(()=>{const we=()=>{Ge.current=new Date};return we(),window.addEventListener("pageshow",we),()=>{window.removeEventListener("pageshow",we)}},[]);const mt=mi({product:z,enableFormattedPrice:(v=F?.price)===null||v===void 0?void 0:v.enableFormattedPrice,globalConfig:je,style:F?.price}),pt=(Ae?375:(g=T?.width)!==null&&g!==void 0?g:window.innerWidth)-((m=te?.horizontalMargin)!==null&&m!==void 0?m:0)*2,wt=he?pt*(he.h/he.w):pt,Ft=({isPost:we})=>{var Ye,xt,ei,rt;return l.createElement("div",null,l.createElement("div",{className:"pb-commondity-content-collection",style:Nt(F?.collection),hidden:!!z&&(!z?.collection||z?.collection===""),dangerouslySetInnerHTML:{__html:Ce((Ye=z?.collection)!==null&&Ye!==void 0?Ye:"Tiffany Lock",F?.collection)}}),l.createElement("div",{className:"pb-commondity-content-title",style:Nt(F?.title),hidden:!!z&&!z?.title,dangerouslySetInnerHTML:{__html:Ce((xt=z?.title)!==null&&xt!==void 0?xt:"Pendant in Yellow Gold with Diamonds, Medium",F?.title)}}),l.createElement("div",{className:"pb-commondity-content-price",style:Nt(F?.price),hidden:!!z&&!z?.price,dangerouslySetInnerHTML:{__html:mt??""}}),l.createElement("div",{hidden:!!z&&!z?.taxInfo,style:Nt(F?.taxInfo),dangerouslySetInnerHTML:{__html:Ce((ei=z?.taxInfo)!==null&&ei!==void 0?ei:"\u7A0E\u8D39",F?.taxInfo)}}),l.createElement("div",{hidden:!!z&&(!z?.info||z?.info==="")},l.createElement(Pi,{foldText:W?.foldText,unfoldText:W?.unfoldText,onClick:()=>Se(!0),isPost:we,text:(rt=z?.info)!==null&&rt!==void 0?rt:`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