2026-01-26 16:16:37 +08:00
|
|
|
import{P as w,_ as l,G as we,d3 as F,h as M,aI as I,j as H,d4 as re,d5 as ie,d6 as be,d7 as Te,aC as Ce,m as xe,aF as Le,r as Pe,bR as Oe,I as C,bP as q,bO as G,y as Me,cq as ze}from"./bootstrap-CjlLFctT.js";import{j as T,ai as ae,m as de,b9 as Ae,aa as B,bF as He}from"../jse/index-index-muiiV4cL.js";const $e=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},We=function(e){return/[height|width]$/.test(e)},se=function(e){let t="";const i=Object.keys(e);return i.forEach(function(s,n){let o=e[s];s=$e(s),We(s)&&typeof o=="number"&&(o=o+"px"),o===!0?t+=s:o===!1?t+="not "+s:t+="("+s+": "+o+")",n<i.length-1&&(t+=" and ")}),t};function K(e){let t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(i,s){t+=se(i),s<e.length-1&&(t+=", ")}),t):se(e)}const ce={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},afterChange:w.any.def(null),arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:w.number.def(3e3),beforeChange:w.any.def(null),centerMode:{type:Boolean,default:!1},centerPadding:w.string.def("50px"),cssEase:w.string.def("ease"),dots:{type:Boolean,default:!1},dotsClass:w.string.def("slick-dots"),draggable:{type:Boolean,default:!0},unslick:{type:Boolean,default:!1},easing:w.string.def("linear"),edgeFriction:w.number.def(.35),fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:w.number.def(0),lazyLoad:w.any.def(null),verticalSwiping:{type:Boolean,default:!1},asNavFor:w.any.def(null),pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:w.array,rows:w.number.def(1),rtl:{type:Boolean,default:!1},slide:w.string.def("div"),slidesPerRow:w.number.def(1),slidesToScroll:w.number.def(1),slidesToShow:w.number.def(1),speed:w.number.def(500),swipe:{type:Boolean,default:!0},swipeEvent:w.any.def(null),swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:w.number.def(5),useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0},children:w.array,__propsSymbol__:w.any},Ee={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function Z(e,t,i){return Math.max(t,Math.min(e,i))}const W=e=>{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},j=e=>{const t=[],i=ue(e),s=he(e);for(let n=i;n<s;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t},ue=e=>e.currentSlide-Ie(e),he=e=>e.currentSlide+_e(e),Ie=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,_e=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,J=e=>e&&e.offsetWidth||0,ee=e=>e&&e.offsetHeight||0,fe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;const s=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,s);return i=Math.round(o*180/Math.PI),i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":t===!0?i>=35&&i<=135?"up":"down":"vertical"},Y=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},U=(e,t)=>{const i={};return t.forEach(s=>i[s]=e[s]),i},Re=e=>{const t=e.children.length,i=e.listRef,s=Math.ceil(J(i)),n=e.trackRef,o=Math.ceil(J(n));let a;if(e.vertical)a=s;else{let S=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(S*=s/100),a=Math.ceil((s-S)/e.slidesToShow)}const r=i&&ee(i.querySelector('[data-index="0"]')),p=r*e.slidesToShow;le
|