PageSourceSearch

https://www.fgsbooks.com.tw/_nuxt/C8UFA3Yp.js

js fgsbooks.com.tw collected 2026-09-26 07:40:24 UTC 24,497 bytes, 222 lines download raw bytes

1import{U as Ke,i as _t,p as $t,k as ce,m as w,b as V,ap as Vt,l as x,O as qe,o as Ge,V as Ot,W as Mt,T as Lt,t as jt,w as Ut,aq as Bt,c as ie,n as Ve,ag as Wt}from"./BYkQzdCZ.js";import{bb as Zt,bc as ze,f as Xt,D as Yt,d as Ft,bd as Ht,n as de,h as Kt,a5 as c,a4 as d,g as T,aI as qt,ap as Oe,ab as Me,b as Je,q as Gt,be as Le,m as K,aH as Jt,o as q}from"./CxiuuAY1.js";import{u as Qt}from"./DCosCjHt.js";function en(e){return Zt(ze(e).toLowerCase())}function tn(e,o,r,l){for(var f=-1,h=e==null?0:e.length;++f<h;)r=o(r,e[f],f,e);return r}function nn(e){return function(o){return e==null?void 0:e[o]}}var on={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}
1,rn=nn(on),an=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sn="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",un="\\u20d0-\\u20ff",cn=sn+ln+un,dn="["+cn+"]",fn=RegExp(dn,"g");function vn(e){return e=ze(e),e&&e.replace(an,rn).replace(fn,"")}var xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pn(e){return e.match(xn)||[]}var hn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gn(e){return hn.test(e)}var Qe="\\ud800-\\udfff",mn="\\u0300-\\u036f",bn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",yn=mn+bn+wn,et="\\u2700-\\u27bf",tt="a-z\\xdf-\\xf6\\xf8-\\xff",Sn="\\xac\\xb1\\xd7\\xf7",Cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rn="\\u2000-\\u206f",zn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nt="A-Z\\xc0-\\xd6\\xd8-\\xde",Pn="\\ufe0e\\ufe0f",ot=Sn+Cn+Rn+zn,rt="['’]",je="["+ot+"]",In="["+yn+"]",at="\\d+",kn="["+et+"]",st="["+tt+"]",it="[^"+Qe+ot+at+et+tt+nt+"]",Dn="\\ud83c[\\udffb-\\udfff]",An="(?:"+In+"|"+Dn+")",En="[^"+Qe+"]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",Z="["+nt+"]",Tn="\\u200d",Ue="(?:"+st+"|"+it+")",Nn="(?:"+Z+"|"+it+")",Be="(?:"+rt+"(?:d|ll|m|re|s|t|ve))?",We="(?:"+rt+"(?:D|LL|M|RE|S|T|VE))?",ct=An+"?",dt="["+Pn+"]?",_n="(?:"+Tn+"(?:"+[En,lt,ut].join("|")+")"+dt+ct+")*",$n="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",On=dt+ct+_n,Mn="(?:"+[kn,lt,ut].join("|")+")"+On,Ln=RegExp([Z+"?"+st+"+"+Be+"(?="+[je,Z,"$"].join("|")+")",Nn+"+"+We+"(?="+[je,Z+Ue,"$"].join("|")+")",Z+"?"+Ue+"+"+Be,Z+"+"+We,Vn,$n,at,Mn].join("|"),"g");function jn(e){return e.match(Ln)||[]}function Un(e,o,r){return e=ze(e),o=o,o===void 0?gn(e)?jn(e):pn(e):e.match(o)||[]}var Bn="['’]",Wn=RegExp(Bn,"g");function Zn(e){return function(o){return tn(Un(vn(o).replace(Wn,"")),e,"")}}var Ze=Zn(function(e,o,r){return o=o.toLowerCase(),e+(r?en(o):o)});const Xn=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),Yn={common:Xt,self:Xn};function Fn(e){const{length:o}=e;return o>1&&(e.push(Xe(e[0],0,"append")),e.unshift(Xe(e[o-1],o-1,"prepend"))),e}function Xe(e,o,r){return Ke(e,{key:`carousel-item-duplicate-${o}-${r}`})}function Ye(e,o,r){return o===1?0:r?e===0?o-3:e===o-1?0:e-1:e}function Ce(e,o){return o?e+1:e}function Hn(e,o,r){return e<0?null:e===0?r?o-1:null:e-1}function Kn(e,o,r){return e>o-1?null:e===o-1?r?0:null:e+1}function qn(e,o){return o&&e>3?e-2:e}function Fe(e){return window.TouchEvent&&e instanceof window.TouchEvent}function He(e,o){let{offsetWidth:r,offsetHeight:l}=e;if(o){const f=getComputedStyle(e);r=r-parseFloat(f.getPropertyValue("padding-left"))-parseFloat(f.getPropertyValue("padding-right")),l=l-parseFloat(f.getPropertyValue("padding-top"))-parseFloat(f.getPropertyValue("padding-bottom"))}return{width:r,height:l}}function le(e,o,r){return e<o?o:e>r?r:e}function Gn(e){if(e===void 0)return 0;if(typeof e=="number")return e;const o=/^((\d+)?\.?\d+?)(ms|s)?$/,r=e.match(o);if(r){const[,l,,f="ms"]=r;return Number(l)*(f==="ms"?1:1e3)}return 0}const ft=Ft("n-carousel-methods"),Jn=e=>{$t(ft,e)},Pe=(e="unknown",o="component")=>{const r=_t(ft);return r||Yt(e,`\`${o}\` must be placed inside \`n-carousel\`.`),r},Qn={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},eo=ce({name:"CarouselDots",props:Qn,setup(e){const{mergedClsPrefixRef:o}=de(e),r=V([]),l=Pe();function f(g,v){switch(g.key){case"Enter":case" ":g.preventDefault(),l.to(v);return}e.keyboard&&y(g)}function h(g){e.trigger==="hover"&&l.to(g)}function P(g){e.trigger==="click"&&l.to(g)}function y(g){var v;if(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)return;const b=(v=document.activeElement)===null||v===void 0?void 0:v.nodeName.toLowerCase();if(b==="input"||b==="textarea")return;const{code:R}=g,O=R==="PageUp"||R==="ArrowUp",M=R==="PageDown"||R==="ArrowDown",C=R==="PageUp"||R==="ArrowRight",z=R==="PageDown"||R==="ArrowLeft",I=l.isVertical(),_=I?O:C,X=I?M:z;!_&&!X||(g.preventDefault(),_&&!l.isNextDisabled()?(l.next(),S(l.currentIndexRef.value)):X&&!l.isPrevDisabled()&&(l.prev(),S(l.currentIndexRef.value)))}function S(g){var v;(v=r.value[g])===null||v===void 0||v.focus()}return Vt(()=>r.value.length=0),{mergedClsPrefix:o,dotEls:r,handleKeydown:f,handleMouseenter:h,handleClick:P}},render(){const{mergedClsPrefix:e,dotEls:o}=this;return w("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},Ht(this.total,r=>{const l=r===this.currentIndex;return w("div",{"aria-selected":l,ref:f=>o.push(f),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,l&&`${e}-carousel__dot--active`],key:r,onClick:()=>{this.handleClick(r)}
1,onMouseenter:()=>{this.handleMouseenter(r)},onKeydown:f=>{this.handleKeydown(f,r)}})}))}}),to=w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},w("g",{fill:"none"},w("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),no=w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},w("g",{fill:"none"},w("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),oo=ce({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:o}=de(e),{isVertical:r,isPrevDisabled:l,isNextDisabled:f,prev:h,next:P}=Pe();return{mergedClsPrefix:o,isVertical:r,isPrevDisabled:l,isNextDisabled:f,prev:h,next:P}},render(){const{mergedClsPrefix:e}=this;return w("div",{class:`${e}-carousel__arrow-group`},w("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},to),w("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},no))}}),ue="CarouselItem",ro=e=>{var o;return((o=e.type)===null||o===void 0?void 0:o.name)===ue},ao=ce({name:ue,setup(e){const{mergedClsPrefixRef:o}=de(e),r=Pe(Ze(ue),`n-${Ze(ue)}`),l=V(),f=x(()=>{const{value:v}=l;return v?r.getSlideIndex(v):-1}),h=x(()=>r.isPrev(f.value)),P=x(()=>r.isNext(f.value)),y=x(()=>r.isActive(f.value)),S=x(()=>r.getSlideStyle(f.value));qe(()=>{r.addSlide(l.value)}),Ge(()=>{r.removeSlide(l.value)});function g(v){const{value:b}=f;b!==void 0&&(r==null||r.onCarouselItemClick(b,v))}return{mergedClsPrefix:o,selfElRef:l,isPrev:h,isNext:P,isActive:y,index:f,style:S,handleClick:g}},render(){var e;const{$slots:o,mergedClsPrefix:r,isPrev:l,isNext:f,isActive:h,index:P,style:y}=this,S=[`${r}-carousel__slide`,{[`${r}-carousel__slide--current`]:h,[`${r}-carousel__slide--prev`]:l,[`${r}-carousel__slide--next`]:f}];return w("div",{ref:"selfElRef",class:S,role:"option",tabindex:"-1","data-index":P,"aria-hidden":!h,style:y,onClickCapture:this.handleClick},(e=o.default)===null||e===void 0?void 0:e.call(o,{isPrev:l,isNext:f,isActive:h,index:P}))}}),so=Kt("carousel",`
2 position: relative;
3 width: 100%;
4 height: 100%;
5 touch-action: pan-y;
6 overflow: hidden;
7`,[c("slides",`
8 display: flex;
9 width: 100%;
10 height: 100%;
11 transition-timing-function: var(--n-bezier);
12 transition-property: transform;
13 `,[c("slide",`
14 flex-shrink: 0;
15 position: relative;
16 width: 100%;
17 height: 100%;
18 outline: none;
19 overflow: hidden;
20 `,[T("> img",`
21 display: block;
22 `)])]),c("dots",`
23 position: absolute;
24 display: flex;
25 flex-wrap: nowrap;
26 `,[d("dot",[c("dot",`
27 height: var(--n-dot-size);
28 width: var(--n-dot-size);
29 background-color: var(--n-dot-color);
30 border-radius: 50%;
31 cursor: pointer;
32 transition:
33 box-shadow .3s var(--n-bezier),
34 background-color .3s var(--n-bezier);
35 outline: none;
36 `,[T("&:focus",`
37 background-color: var(--n-dot-color-focus);
38 `),d("active",`
39 background-color: var(--n-dot-color-active);
40 `)])]),d("line",[c("dot",`
41 border-radius: 9999px;
42 width: var(--n-dot-line-width);
43 height: 4px;
44 background-color: var(--n-dot-color);
45 cursor: pointer;
46 transition:
47 width .3s var(--n-bezier),
48 box-shadow .3s var(--n-bezier),
49 background-color .3s var(--n-bezier);
50 outline: none;
51 `,[T("&:focus",`
52 background-color: var(--n-dot-color-focus);
53 `),d("active",`
54 width: var(--n-dot-line-width-active);
55 background-color: var(--n-dot-color-active);
56 `)])])]),c("arrow",`
57 transition: background-color .3s var(--n-bezier);
58 cursor: pointer;
59 height: 28px;
60 width: 28px;
61 display: flex;
62 align-items: center;
63 justify-content: center;
64 background-color: rgba(255, 255, 255, .2);
65 color: var(--n-arrow-color);
66 border-radius: 8px;
67 user-select: none;
68 -webkit-user-select: none;
69 font-size: 18px;
70 `,[T("svg",`
71 height: 1em;
72 width: 1em;
73 `),T("&:hover",`
74 background-color: rgba(255, 255, 255, .3);
75 `)]),d("vertical",`
76 touch-action: pan-x;
77 `,[c("slides",`
78 flex-direction: column;
79 `),d("fade",[c("slide",`
80 top: 50%;
81 left: unset;
82 transform: translateY(-50%);
83 `)]),d("card",[c("slide",`
84 top: 50%;
85 left: unset;
86 transform: translateY(-50%) translateZ(-400px);
87 `,[d("current",`
88 transform: translateY(-50%) translateZ(0);
89 `),d("prev",`
90 transform: translateY(-100%) translateZ(-200px);
91 `),d("next",`
92 transform: translateY(0%) translateZ(-200px);
93 `)])])]),d("usercontrol",[c("slides",[T(">",[T("div",`
94 position: absolute;
95 top: 50%;
96 left: 50%;
97 width: 100%;
98 height: 100%;
99 transform: translate(-50%, -50%);
100 `)])])]),d("left",[c("dots",`
101 transform: translateY(-50%);
102 top: 50%;
103 left: 12px;
104 flex-direction: column;
105 `,[d("line",[c("dot",`
106 width: 4px;
107 height: var(--n-dot-line-width);
108 margin: 4px 0;
109 transition:
110 height .3s var(--n-bezier),
111 box-shadow .3s var(--n-bezier),
112 background-color .3s var(--n-bezier);
113 outline: none;
114 `,[d("active",`
115 height: var(--n-dot-line-width-active);
116 `)])])]),c("dot",`
117 margin: 4px 0;
118 `)]),c("arrow-group",`
119 position: absolute;
120 display: flex;
121 flex-wrap: nowrap;
122 `),d("vertical",[c("arrow",`
123 transform: rotate(90deg);
124 `)]),d("show-arrow",[d("bottom",[c("dots",`
125 transform: translateX(0);
126 bottom: 18px;
127 left: 18px;
128 `)]),d("top",[c("dots",`
129 transform: translateX(0);
130 top: 18px;
131 left: 18px;
132 `)]),d("left",[c("dots",`
133 transform: translateX(0);
134 top: 18px;
135 left: 18px;
136 `)]),d("right",[c("dots",`
137 transform: translateX(0);
138 top: 18px;
139 right: 18px;
140 `)])]),d("left",[c("arrow-group",`
141 bottom: 12px;
142 left: 12px;
143 flex-direction: column;
144 `,[T("> *:first-child",`
145 margin-bottom: 12px;
146 `)])]),d("right",[c("dots",`
147 transform: translateY(-50%);
148 top: 50%;
149 right: 12px;
150 flex-direction: column;
151 `,[d("line",[c("dot",`
152 width: 4px;
153 height: var(--n-dot-line-width);
154 margin: 4px 0;
155 transition:
156 height .3s var(--n-bezier),
157 box-shadow .3s var(--n-bezier),
158 background-color .3s var(--n-bezier);
159 outline: none;
160 `,[d("active",`
161 height: var(--n-dot-line-width-active);
162 `)])])]),c("dot",`
163 margin: 4px 0;
164 `),c("arrow-group",`
165 bottom: 12px;
166 right: 12px;
167 flex-direction: column;
168 `,[T("> *:first-child",`
169 margin-bottom: 12px;
170 `)])]),d("top",[c("dots",`
171 transform: translateX(-50%);
172 top: 12px;
173 left: 50%;
174 `,[d("line",[c("dot",`
175 margin: 0 4px;
176 `)])]),c("dot",`
177 margin: 0 4px;
178 `),c("arrow-group",`
179 top: 12px;
180 right: 12px;
181 `,[T("> *:first-child",`
182 margin-right: 12px;
183 `)])]),d("bottom",[c("dots",`
184 transform: translateX(-50%);
185 bottom: 12px;
186 left: 50%;
187 `,[d("line",[c("dot",`
188 margin: 0 4px;
189 `)])]),c("dot",`
190 margin: 0 4px;
191 `),c("arrow-group",`
192 bottom: 12px;
193 right: 12px;
194 `,[T("> *:first-child",`
195 margin-right: 12px;
196 `)])]),d("fade",[c("slide",`
197 position: absolute;
198 opacity: 0;
199 transition-property: opacity;
200 pointer-events: none;
201 `,[d("current",`
202 opacity: 1;
203 pointer-events: auto;
204 `)])]),d("card",[c("slides",`
205 perspective: 1000px;
206 `),c("slide",`
207 position: absolute;
208 left: 50%;
209 opacity: 0;
210 transform: translateX(-50%) translateZ(-400px);
211 transition-property: opacity, transform;
212 `,[d("current",`
213 opacity: 1;
214 transform: translateX(-50%) translateZ(0);
215 z-index: 1;
216 `),d("prev",`
217 opacity: 0.4;
218 transform: translateX(-100%) translateZ(-200px);
219 `),d("next",`
220 opacity: 0.4;
221 transform: translateX(0%) translateZ(-200px);
222 `)])])]),io=["transitionDuration","transitionTimingFunction"],lo=Object.assign(Object.assign({},Je.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Re=!1;const xo=ce({name:"Carousel",props:lo,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:r}=de(e),l=V(null),f=V(null),h=V([]),P={value:[]},y=x(()=>e.direction==="vertical"),S=x(()=>y.value?"height":"width"),g=x(()=>y.value?"bottom":"right"),v=x(()=>e.effect==="slide"),b=x(()=>e.loop&&e.slidesPerView===1&&v.value),R=x(()=>e.effect==="custom"),O=x(()=>!v.value||e.centeredSlides?1:e.slidesPerView),M=x(()=>R.value?1:e.slidesPerView),C=x(()=>O.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),z=V({width:0,height:0}),I=x(()=>{const{value:t}=h;if(!t.length)return[];const{value:n}=C;if(n)return t.map(m=>He(m));const{value:a}=M,{value:i}=z,{value:u}=S;let s=i[u];if(a!=="auto"){const{spaceBetween:m}=e,k=s-(a-1)*m,se=1/Math.max(1,a);s=k*se}const p=Object.assign(Object.assign({},i),{[u]:s});return t.map(()=>p)}),_=x(()=>{const{value:t}=I;if(!t.length)return[];const{centeredSlides:n,spaceBetween:a}=e,{value:i}=S,{[i]:u}=z.value;let s=0;return t.map(({[i]:p})=>{let m=s;return n&&(m+=(p-u)/2),s+=p+a,m})}),X=V(!1),fe=x(()=>{const{transitionStyle:t}=e;return t?Le(t,io):{}}),ve=x(()=>R.value?0:Gn(fe.value.transitionDuration)),Ie=x(()=>{const{value:t}=h;if(!t.length)return[];const n=!(C.value||M.value===1),a=p=>{if(n){const{value:m}=S;return{[m]:`${I.value[p][m]}px`}}};if(R.value)return t.map((p,m)=>a(m));const{effect:i,spaceBetween:u}=e,{value:s}=g;return t.reduce((p,m,k)=>{const se=Object.assign(Object.assign({},a(k)),{[`margin-${s}`]:`${u}px`});return p.push(se),X.value&&(i==="fade"||i==="card")&&Object.assign(se,fe.value),p},[])}),D=x(()=>{const{value:t}=O,{length:n}=h.value;if(t!=="auto")return Math.max(n-t,0)+1;{const{value:a}=I,{length:i}=a;if(!i)return n;const{value:u}=_,{value:s}=S,p=z.value[s];let m=a[a.length-1][s],k=i;for(;k>1&&m<p;)k--,m+=u[k]-u[k-1];return le(k+1,1,i)}}),G=x(()=>qn(D.value,b.value)),vt=Ce(e.defaultIndex,b.value),xe=V(Ye(vt,D.value,b.value)),N=Qt(jt(e,"currentIndex"),xe),A=x(()=>Ce(N.value,b.value));function Y(t){var n,a;t=le(t,0,D.value-1);const i=Ye(t,D.value,b.value),{value:u}=N;i!==N.value&&(xe.value=i,(n=e["onUpdate:currentIndex"])===null||n===void 0||n.call(e,i,u),(a=e.onUpdateCurrentIndex)===null||a===void 0||a.call(e,i,u))}function J(t=A.value){return Hn(t,D.value,e.loop)}function Q(t=A.value){return Kn(t,D.value,e.loop)}function xt(t){const n=j(t);return n!==null&&J()===n}function pt(t){const n=j(t);return n!==null&&Q()===n}function ke(t){return A.value===j(t)}function ht(t){return N.value===t}function De(){return J()===null}function Ae(){return Q()===null}function pe(t){const n=le(Ce(t,b.value),0,D.value);(t!==N.value||n!==A.value)&&Y(n)}function he(){const t=J();t!==null&&Y(t)}function ee(){const t=Q();t!==null&&Y(t)}function gt(){(!E||!b.value)&&he()}function mt(){(!E||!b.value)&&ee()}let E=!1,L=0;const ge=V({});function te(t,n=0){ge.value=Object.assign({},fe.value,{transform:y.value?`translateY(${-t}px)`:`translateX(${-t}px)`,transitionDuration:`${n}ms`})}function F(t=0){v.value?me(A.value,t):L!==0&&(!E&&t>0&&(E=!0),te(L=0,t))}function me(t,n){const a=Ee(t);a!==L&&n>0&&(E=!0),L=Ee(A.value),te(a,n)}function Ee(t){let n;return t>=D.value-1?n=Te():n=_.value[t]||0,n}function Te(){if(O.value==="auto"){const{value:t}=S,{[t]:n}=z.value,{value:a}=_,i=a[a.length-1];let u;if(i===void 0)u=n;else{const{value:s}=I;u=i+s[s.length-1][t]}return u-n}else{const{value:t}=_;return t[D.value-1]||0}}const H={currentIndexRef:N,to:pe,prev:gt,next:mt,isVertical:()=>y.value,isHorizontal:()=>!y.value,isPrev:xt,isNext:pt,isActive:ke,isPrevDisabled:De,isNextDisabled:Ae,getSlideIndex:j,getSlideStyle:yt,addSlide:bt,removeSlide:wt,onCarouselItemClick:St};Jn(H);function bt(t){t&&h.value.push(t)}function wt(t){if(!t)return;const n=j(t);n!==-1&&h.value.splice(n,1)}function j(t){return typeof t=="number"?t:t?h.value.indexOf(t):-1}function yt(t){const n=j(t);if(n!==-1){const a=[Ie.value[n]],i=H.isPrev(n),u=H.isNext(n);return i&&a.push(e.prevSlideStyle||""),u&&a.push(e.nextSlideStyle||""),Wt(a)}}function St(t,n){let a=!E&&!re&&!Se;e.effect==="card"&&a&&!ke(t)&&(pe(t),a=!1),a||(n.preventDefault(),n.stopPropagation())}let ne=null;function oe(){ne&&(clearInterval(ne),ne=null)}function U(){oe(),!e.autoplay||G.value<2||(ne=window.setInterval(ee,e.interval))}let be=0,we=0,$=0,ye=0,re=!1,Se=!1;function Ne(t){var n;if(Re||!(!((n=f.value)===null||n===void 0)&&n.contains(Jt(t))))return;Re=!0,re=!0,Se=!1,ye=Date.now(),oe(),t.type!=="touchstart"&&!t.target.isContentEditable&&t.preventDefault();const a=Fe(t)?t.touches[0]:t;y.value?we=a.clientY:be=a.clientX,e.touchable&&(q("touchmove",document,ae),q("touchend",document,B),q("touchcancel",document,B)),e.draggable&&(q("mousemove",document,ae),q("mouseup",document,B))}function ae(t){const{value:n}=y,{value:a}=S,i=Fe(t)?t.touches[0]:t,u=n?i.clientY-we:i.clientX-be,s=z.value[a];$=le(u,-s,s),t.cancelable&&t.preventDefault(),v.value&&te(L-$,0)}function B(){const{value:t}=A;let n=t;if(!E&&$!==0&&v.value){const a=L-$,i=[..._.value.slice(0,D.value-1),Te()];let u=null;for(let s=0;s<i.length;s++){const p=Math.abs(i[s]-a);if(u!==null&&u<p)break;u=p,n=s}}if(n===t){const a=Date.now()-ye,{value:i}=S,u=z.value[i];$>u/2||$/a>.4?n=J(t):($<-u/2||$/a<-.4)&&(n=Q(t))}n!==null&&n!==t?(Se=!0,Y(n),Ve(()=>{(!b.value||xe.value!==N.value)&&F(ve.value)})):F(ve.value),_e(),U()}function _e(){re&&(Re=!1),re=!1,be=0,we=0,$=0,ye=0,K("touchmove",document,ae),K("touchend",document,B),K("touchcancel",document,B),K("mousemove",document,ae),K("mouseup",document,B)}function Ct(){if(v.value&&E){const{value:t}=A;me(t,0)}else U();v.value&&(ge.value.transitionDuration="0ms"),E=!1}function Rt(t){if(t.preventDefault(),E)return;let{deltaX:n,deltaY:a}=t;t.shiftKey&&!n&&(n=a);const i=-1,u=1,s=(n||a)>0?u:i;let p=0,m=0;y.value?m=s:p=s;const k=10;(m*a>=k||p*n>=k)&&(s===u&&!Ae()?ee():s===i&&!De()&&he())}function zt(){z.value=He(l.value,!0),U()}function Pt(){var t,n;C.value&&((n=(t=I.effect).scheduler)===null||n===void 0||n.call(t),I.effect.run())}function It(){e.autoplay&&oe()}function kt(){e.autoplay&&U()}qe(()=>{Ut(U),requestAnimationFrame(()=>X.value=!0)}),Ge(()=>{_e(),oe()}),Bt(()=>{const{value:t}=h,{value:n}=P,a=new Map,i=s=>a.has(s)?a.get(s):-1;let u=!1;for(let s=0;s<t.length;s++){const p=n.findIndex(m=>m.el===t[s]);p!==s&&(u=!0),a.set(t[s],p)}u&&t.sort((s,p)=>i(s)-i(p))}),ie(A,(t,n)=>{if(t!==n)if(U(),v.value){if(b.value){const{value:a}=D;G.value>2&&t===a-2&&n===1?t=0:t===1&&n===a-2&&(t=a-1)}me(t,ve.value)}else F()},{immediate:!0}),ie([b,O],()=>void Ve(()=>{Y(A.value)})),ie(_,()=>{v.value&&F()},{deep:!0}),ie(v,t=>{t?F():(E=!1,te(L=0))});const Dt=x(()=>({onTouchstartPassive:e.touchable?Ne:void 0,onMousedown:e.draggable?Ne:void 0,onWheel:e.mousewheel?Rt:void 0})),At=x(()=>Object.assign(Object.assign({},Le(H,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:G.value,currentIndex:N.value})),Et=x(()=>({total:G.value,currentIndex:N.value,to:H.to}
222)),Tt={getCurrentIndex:()=>N.value,to:pe,prev:he,next:ee},Nt=Je("Carousel","-carousel",so,Yn,e,o),$e=x(()=>{const{common:{cubicBezierEaseInOut:t},self:{dotSize:n,dotColor:a,dotColorActive:i,dotColorFocus:u,dotLineWidth:s,dotLineWidthActive:p,arrowColor:m}}=Nt.value;return{"--n-bezier":t,"--n-dot-color":a,"--n-dot-color-focus":u,"--n-dot-color-active":i,"--n-dot-size":n,"--n-dot-line-width":s,"--n-dot-line-width-active":p,"--n-arrow-color":m}}),W=r?Gt("carousel",void 0,$e,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:o,selfElRef:l,slidesElRef:f,slideVNodes:P,duplicatedable:b,userWantsControl:R,autoSlideSize:C,realIndex:A,slideStyles:Ie,translateStyle:ge,slidesControlListeners:Dt,handleTransitionEnd:Ct,handleResize:zt,handleSlideResize:Pt,handleMouseenter:It,handleMouseleave:kt,isActive:ht,arrowSlotProps:At,dotSlotProps:Et},Tt),{cssVars:r?void 0:$e,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender})},render(){var e;const{mergedClsPrefix:o,showArrow:r,userWantsControl:l,slideStyles:f,dotType:h,dotPlacement:P,slidesControlListeners:y,transitionProps:S={},arrowSlotProps:g,dotSlotProps:v,$slots:{default:b,dots:R,arrow:O}}=this,M=b&&qt(b())||[];let C=uo(M);return C.length||(C=M.map(z=>w(ao,null,{default:()=>Ke(z)}))),this.duplicatedable&&(C=Fn(C)),this.slideVNodes.value=C,this.autoSlideSize&&(C=C.map(z=>w(Oe,{onResize:this.handleSlideResize},{default:()=>z}))),(e=this.onRender)===null||e===void 0||e.call(this),w("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${o}-carousel`,this.direction==="vertical"&&`${o}-carousel--vertical`,this.showArrow&&`${o}-carousel--show-arrow`,`${o}-carousel--${P}`,`${o}-carousel--${this.direction}`,`${o}-carousel--${this.effect}`,l&&`${o}-carousel--usercontrol`],style:this.cssVars},y,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),w(Oe,{onResize:this.handleResize},{default:()=>w("div",{ref:"slidesElRef",class:`${o}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},l?C.map((z,I)=>w("div",{style:f[I],key:I},Ot(w(Lt,Object.assign({},S),{default:()=>z}),[[Mt,this.isActive(I)]]))):C)}),this.showDots&&v.total>1&&Me(R,v,()=>[w(eo,{key:h+P,total:v.total,currentIndex:v.currentIndex,dotType:h,trigger:this.trigger,keyboard:this.keyboard})]),r&&Me(O,g,()=>[w(oo,null)]))}});function uo(e){return e.reduce((o,r)=>(ro(r)&&o.push(r),o),[])}export{xo as _,Zn as c};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.