PageSourceSearch

https://www.solaseedair.jp/assets/common/js/astro/Bnc2176f.js

js solaseedair.jp collected 2026-10-02 04:22:25 UTC 33,453 bytes, 1 lines download raw bytes

1import{C as CSS_CLASSES,E as EVENTS,D as DEFAULT_AUTOPLAY,a as DEFAULT_OPTIONS,c as createLogger}from"../components.js";import"./BnTTKab1.js";import"./Dhhpn3ws.js";import"./BTKDZV2P.js";import"./DXiB0P-7.js";import"./CQYdFtpE.js";function decodeHTMLEntities(t){return t.replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function parseJsonSafely(t,e,n){try{const n=decodeHTMLEntities(t);return n.trim()?JSON.parse(n):e}catch(r){return n?n.error(`JSON解析エラー: ${t}`,r):console.error(`JSON解析エラー: ${t}`,r),e}}function createAttributeChangedCallback(t,e,n){return(r,o,i)=>{if(n.log(`属性変更 - ${r}`,{oldValue:o,newValue:i}),o!==i)try{const s=t[r];if(!s)return void n.warn(`属性 "${r}" に対するハンドラーが定義されていません`);const a=s.handler(i,o,s.defaultValue,n);s.onChanged&&s.onChanged(a,e)}catch(t){n.error(`属性 "${r}" の処理中にエラーが発生しました:`,t)}}}const stringAttributeHandler=(t,e,n)=>t||n,booleanAttributeHandler=(t,e,n)=>null===t?n:""===t||"true"===t||"false"!==t&&n,jsonAttributeHandler=(t,e,n,r)=>null===t||""===t?n:parseJsonSafely(t,n,r);function createProperties(t,e,n){const r={};return t.forEach((t=>{r[t.name]={get:function(){return t.get?t.get(this):this[t.privateName]},set:function(e){t.logMessage&&n.log(`${t.logMessage}: ${e}`),t.set?t.set(this,e):this[t.privateName]=e,this._isConnected&&this.initCarousel&&this.initCarousel()},enumerable:!0,configurable:!0}})),r}function initializeWebComponent(t,e,n,r){Object.defineProperties(t,createProperties(e,t,r)),t.attributeChangedCallback=createAttributeChangedCallback(n,t,r)}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isBoolean(t){return"boolean"==typeof t}function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}function mathAbs(t){return Math.abs(t)}function mathSign(t){return Math.sign(t)}function deltaAbs(t,e){return mathAbs(t-e)}function factorAbs(t,e){if(0===t||0===e)return 0;if(mathAbs(t)<=mathAbs(e))return 0;const n=deltaAbs(mathAbs(t),mathAbs(e));return mathAbs(n/t)}function roundToTwoDecimals(t){return Math.round(100*t)/100}function arrayKeys(t){return objectKeys(t).map(Number)}function arrayLast(t){return t[arrayLastIndex(t)]}function arrayLastIndex(t){return Math.max(0,t.length-1)}function arrayIsLastIndex(t,e){return e===arrayLastIndex(t)}function arrayFromNumber(t,e=0){return Array.from(Array(t),((t,n)=>e+n))}function objectKeys(t){return Object.keys(t)}function objectsMergeDeep(t,e){return[t,e].reduce(((t,e)=>(objectKeys(e).forEach((n=>{const r=t[n],o=e[n],i=isObject(r)&&isObject(o);t[n]=i?objectsMergeDeep(r,o):o})),t)),{})}function isMouseEvent(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function Alignment(t,e){const n={start:function(){return 0},center:function(t){return r(t)/2},end:r};function r(t){return e-t}return{measure:function(r,o){return isString(t)?n[t](r):t(e,r,o)}}}function EventStore(){let t=[];const e={add:function(n,r,o,i={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(r,o,i),s=()=>n.removeEventListener(r,o,i);else{const t=n;t.addListener(o),s=()=>t.removeListener(o)}return t.push(s),e},clear:function(){t=t.filter((t=>t()))}};return e}function Animations(t,e,n,r){const o=EventStore(),i=1e3/60;let s=null,a=0,l=0;function c(t){if(!l)return;s||(s=t,n(),n());const o=t-s;for(s=t,a+=o;a>=i;)n(),a-=i;r(a/i),l&&(l=e.requestAnimationFrame(c))}function u(){e.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){o.add(t,"visibilitychange",(()=>{t.hidden&&(s=null,a=0)}))},destroy:function(){u(),o.clear()},start:function(){l||(l=e.requestAnimationFrame(c))},stop:u,update:n,render:r}}function Axis(t,e){const n="rtl"===e,r="y"===t,o=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(t){const{height:e,width:n}=t;return r?e:n},direction:function(t){return t*o}}}function Limit(t=0,e=0){const n=mathAbs(t-e);function r(e){return e<t}function o(t){return t>e}function i(t){return r(t)||o(t)}return{length:n,max:e,min:t,constrain:function(n){return i(n)?r(n)?t:e:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function Counter(t,e,n){const{constrain:r}
vendor: 4,318 bytes, line 1
1=Limit(0,t),o=t+1;let i=s(e);function s(t){return n?mathAbs((o+t)%o):r(t)}function a(){return i}function l(){return Counter(t,a(),n)}const c={get:a,set:function(t){return i=s(t),c},add:function(t){return l().set(a()+t)},clone:l};return c}function DragHandler(t,e,n,r,o,i,s,a,l,c,u,d,f,p,g,m,h,b,S){const{cross:y,direction:A}=t,E=["INPUT","SELECT","TEXTAREA"],L={passive:!1},_=EventStore(),v=EventStore(),C=Limit(50,225).constrain(p.measure(20)),x={mouse:300,touch:400},T={mouse:500,touch:600},O=g?43:25;let D=!1,N=0,I=0,w=!1,P=!1,M=!1,H=!1;function B(t){if(!isMouseEvent(t,r)&&t.touches.length>=2)return F(t);const e=i.readPoint(t),n=i.readPoint(t,y),s=deltaAbs(e,N),l=deltaAbs(n,I);if(!P&&!H){if(!t.cancelable)return F(t);if(P=s>l,!P)return F(t)}const u=i.pointerMove(t);s>m&&(M=!0),c.useFriction(.3).useDuration(.75),a.start(),o.add(A(u)),t.preventDefault()}function F(t){const e=u.byDistance(0,!1).index!==d.get(),n=i.pointerUp(t)*(g?T:x)[H?"mouse":"touch"],r=function(t,e){const n=d.add(-1*mathSign(t)),r=u.byDistance(t,!g).distance;return g||mathAbs(t)<C?r:h&&e?.5*r:u.byIndex(n.get(),0).distance}(A(n),e),o=factorAbs(n,r),s=O-10*o,a=b+o/50;P=!1,w=!1,v.clear(),c.useDuration(s).useFriction(a),l.distance(r,!g),H=!1,f.emit("pointerUp")}function V(t){M&&(t.stopPropagation(),t.preventDefault(),M=!1)}return{init:function(t){if(!S)return;function a(a){(isBoolean(S)||S(t,a))&&function(t){const a=isMouseEvent(t,r);if(H=a,M=g&&a&&!t.buttons&&D,D=deltaAbs(o.get(),s.get())>=2,a&&0!==t.button)return;if(function(t){const e=t.nodeName||"";return E.includes(e)}(t.target))return;w=!0,i.pointerDown(t),c.useFriction(0).useDuration(0),o.set(s),function(){const t=H?n:e;v.add(t,"touchmove",B,L).add(t,"touchend",F).add(t,"mousemove",B,L).add(t,"mouseup",F)}(),N=i.readPoint(t),I=i.readPoint(t,y),f.emit("pointerDown")}(a)}const l=e;_.add(l,"dragstart",(t=>t.preventDefault()),L).add(l,"touchmove",(()=>{}),L).add(l,"touchend",(()=>{})).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",F).add(l,"contextmenu",F).add(l,"click",V,!0)},destroy:function(){_.clear(),v.clear()},pointerDown:function(){return w}}}function DragTracker(t,e){let n,r;function o(t){return t.timeStamp}function i(n,r){const o="client"+("x"===(r||t.scroll)?"X":"Y");return(isMouseEvent(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,i(t)},pointerMove:function(t){const e=i(t)-i(r),s=o(t)-o(n)>170;return r=t,s&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;const e=i(r)-i(n),s=o(t)-o(n),a=o(t)-o(r)>170,l=e/s;return s&&!a&&mathAbs(l)>.1?l:0},readPoint:i}}function NodeRects(){return{measure:function(t){const{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:o}=t;return{top:e,right:n+r,bottom:e+o,left:n,width:r,height:o}}}}function PercentOfView(t){return{measure:function(e){return t*(e/100)}}}function ResizeHandler(t,e,n,r,o,i,s){const a=[t].concat(r);let l,c,u=[],d=!1;function f(t){return o.measureSize(s.measure(t))}return{init:function(o){i&&(c=f(t),u=r.map(f),l=new ResizeObserver((n=>{(isBoolean(i)||i(o,n))&&function(n){for(const i of n){if(d)return;const n=i.target===t,s=r.indexOf(i.target),a=n?c:u[s];if(mathAbs(f(n?t:r[s])-a)>=.5){o.reInit(),e.emit("resize");break}}}(n)})),n.requestAnimationFrame((()=>{a.forEach((t=>l.observe(t)))})))},destroy:function(){d=!0,l&&l.disconnect()}}}function ScrollBody(t,e,n,r,o,i){let s=0,a=0,l=o,c=i,u=t.get(),d=0;function f(t){return l=t,g}function p(t){return c=t,g}const g={direction:function(){return a},duration:function(){return l},velocity:function(){return s},seek:function(){const e=r.get()-t.get();let o=0;return!l?(s=0,n.set(r),t.set(r),o=e):(n.set(t),s+=e/l,s*=c,u+=s,t.add(s),o=u-d),a=mathSign(o),d=u,g},settled:function(){return mathAbs(r.get()-e.get())<.001},useBaseFriction:function(){return p(i)},useBaseDuration:function(){return f(o)},useFriction:p,useDuration:f};return g}function ScrollBounds(t,e,n,r,o){const i=o.measure(10),s=o.measure(50),a=Limit(.1,.99);let l=!1;function c(){return!l&&(!!t.reachedAny(n.get())&&!!t.reachedAny(e.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=t.reachedMin(e.get())?"min":"max",u=mathAbs(t[l]-e.get()),d=n.get()-e.get(),f=a.constrain(u/s);n.subtract(d*f),!o&&mathAbs(d)<i&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}
1function ScrollContain(t,e,n,r,o){const i=Limit(-e+t,0),s=n.map(((t,e)=>{const{min:r,max:o}=i,s=i.constrain(t),a=!e,c=arrayIsLastIndex(n,e);return a?o:c||l(r,s)?r:l(o,s)?o:s})).map((t=>parseFloat(t.toFixed(3)))),a=function(){const t=s[0],e=arrayLast(s),n=s.lastIndexOf(t),r=s.indexOf(e)+1;return Limit(n,r)}();function l(t,e){return deltaAbs(t,e)<=1}return{snapsContained:function(){if(e<=t+o)return[i.max];if("keepSnaps"===r)return s;const{min:n,max:l}=a;return s.slice(n,l)}(),scrollContainLimit:a}}function ScrollLimit(t,e,n){const r=e[0];return{limit:Limit(n?r-t:arrayLast(e),r)}}function ScrollLooper(t,e,n,r){const o=e.min+.1,i=e.max+.1,{reachedMin:s,reachedMax:a}=Limit(o,i);return{loop:function(e){if(!function(t){return 1===t?a(n.get()):-1===t&&s(n.get())}(e))return;const o=t*(-1*e);r.forEach((t=>t.add(o)))}}}function ScrollProgress(t){const{max:e,length:n}=t;return{get:function(t){return n?(t-e)/-n:0}}}function ScrollSnaps(t,e,n,r,o){const{startEdge:i,endEdge:s}=t,{groupSlides:a}=o,l=a(r).map((t=>arrayLast(t)[s]-t[0][i])).map(mathAbs).map(e.measure),c=r.map((t=>n[i]-t[i])).map((t=>-mathAbs(t))),u=a(c).map((t=>t[0])).map(((t,e)=>t+l[e]));return{snaps:c,snapsAligned:u}}function SlideRegistry(t,e,n,r,o,i){const{groupSlides:s}=o,{min:a,max:l}=r;return{slideRegistry:function(){const r=s(i),o=!t||"keepSnaps"===e;return 1===n.length?[i]:o?r:r.slice(a,l).map(((t,e,n)=>{const r=!e,o=arrayIsLastIndex(n,e);if(r){return arrayFromNumber(arrayLast(n[0])+1)}if(o){return arrayFromNumber(arrayLastIndex(i)-arrayLast(n)[0]+1,arrayLast(n)[0])}return t}))}()}}function ScrollTarget(t,e,n,r,o){const{reachedAny:i,removeOffset:s,constrain:a}=r;function l(t){return t.concat().sort(((t,e)=>mathAbs(t)-mathAbs(e)))[0]}function c(e,r){const o=[e,e+n,e-n];if(!t)return e;if(!r)return l(o);const i=o.filter((t=>mathSign(t)===r));return i.length?l(i):arrayLast(o)-n}return{byDistance:function(n,r){const l=o.get()+n,{index:u,distance:d}=function(n){const r=t?s(n):a(n),o=e.map(((t,e)=>({diff:c(t-r,0),index:e}))).sort(((t,e)=>mathAbs(t.diff)-mathAbs(e.diff))),{index:i}=o[0];return{index:i,distance:r}}(l),f=!t&&i(l);return!r||f?{index:u,distance:n}
vendor: 9,921 bytes, line 1
1:{index:u,distance:n+c(e[u]-d,0)}},byIndex:function(t,n){return{index:t,distance:c(e[t]-o.get(),n)}},shortcut:c}}function ScrollTo(t,e,n,r,o,i,s){function a(o){const a=o.distance,l=o.index!==e.get();i.add(a),a&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(n.set(e.get()),e.set(o.index),s.emit("select"))}return{distance:function(t,e){a(o.byDistance(t,e))},index:function(t,n){const r=e.clone().set(t);a(o.byIndex(r.get(),n))}}}function SlideFocus(t,e,n,r,o,i,s,a){const l={passive:!0,capture:!0};let c=0;function u(t){"Tab"===t.code&&(c=(new Date).getTime())}return{init:function(d){a&&(i.add(document,"keydown",u,!1),e.forEach(((e,u)=>{i.add(e,"focus",(e=>{(isBoolean(a)||a(d,e))&&function(e){if((new Date).getTime()-c>10)return;s.emit("slideFocusStart"),t.scrollLeft=0;const i=n.findIndex((t=>t.includes(e)));isNumber(i)&&(o.useDuration(0),r.index(i,0),s.emit("slideFocus"))}(u)}),l)})))}}}function Vector1D(t){let e=t;function n(t){return isNumber(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function Translate(t,e){const n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},r=e.style;let o=null,i=!1;return{clear:function(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(i)return;const s=roundToTwoDecimals(t.direction(e));s!==o&&(r.transform=n(s),o=s)},toggleActive:function(t){i=!t}}}function SlideLooper(t,e,n,r,o,i,s,a,l){const c=arrayKeys(o),u=arrayKeys(o).reverse(),d=function(){const t=s[0];return g(p(u,t),n,!1)}().concat(function(){const t=e-s[0]-1;return g(p(c,t),-n,!0)}());function f(t,e){return t.reduce(((t,e)=>t-o[e]),e)}function p(t,e){return t.reduce(((t,n)=>f(t,e)>0?t.concat([n]):t),[])}function g(o,s,c){const u=function(t){return i.map(((n,o)=>({start:n-r[o]+.5+t,end:n+e-.5+t})))}(s);return o.map((e=>{const r=c?0:-n,o=c?n:0,i=c?"end":"start",s=u[e][i];return{index:e,loopPoint:s,slideLocation:Vector1D(-1),translate:Translate(t,l[e]),target:()=>a.get()>s?r:o}}))}return{canLoop:function(){return d.every((({index:t})=>f(c.filter((e=>e!==t)),e)<=.1))},clear:function(){d.forEach((t=>t.translate.clear()))},loop:function(){d.forEach((t=>{const{target:e,translate:n,slideLocation:r}=t,o=e();o!==r.get()&&(n.to(o),r.set(o))}))},loopPoints:d}}function SlidesHandler(t,e,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver((t=>{o||(isBoolean(n)||n(i,t))&&function(t){for(const n of t)if("childList"===n.type){i.reInit(),e.emit("slidesChanged");break}}(t)})),r.observe(t,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function SlidesInView(t,e,n,r){const o={};let i,s=null,a=null,l=!1;return{init:function(){i=new IntersectionObserver((t=>{l||(t.forEach((t=>{const n=e.indexOf(t.target);o[n]=t})),s=null,a=null,n.emit("slidesInView"))}),{root:t.parentElement,threshold:r}),e.forEach((t=>i.observe(t)))},destroy:function(){i&&i.disconnect(),l=!0},get:function(t=!0){if(t&&s)return s;if(!t&&a)return a;const e=function(t){return objectKeys(o).reduce(((e,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(t&&i||!t&&!i)&&e.push(r),e}),[])}(t);return t&&(s=e),t||(a=e),e}}}function SlideSizes(t,e,n,r,o,i){const{measureSize:s,startEdge:a,endEdge:l}=t,c=n[0]&&o,u=function(){if(!c)return 0;const t=n[0];return mathAbs(e[a]-t[a])}(),d=function(){if(!c)return 0;const t=i.getComputedStyle(arrayLast(r));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),f=n.map(s),p=n.map(((t,e,n)=>{const r=!e,o=arrayIsLastIndex(n,e);return r?f[e]+u:o?f[e]+d:n[e+1][a]-t[a]})).map(mathAbs);return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function SlidesToScroll(t,e,n,r,o,i,s,a,l){const{startEdge:c,endEdge:u,direction:d}=t,f=isNumber(n);return{groupSlides:function(t){return f?function(t,e){return arrayKeys(t).filter((t=>t%e==0)).map((n=>t.slice(n,n+e)))}(t,n):function(t){return t.length?arrayKeys(t).reduce(((n,f,p)=>{const g=arrayLast(n)||0,m=0===g,h=f===arrayLastIndex(t),b=o[c]-i[g][c],S=o[c]-i[f][u],y=!r&&m?d(s):0,A=mathAbs(S-(!r&&h?d(a):0)-(b+y));return p&&A>e+l&&n.push(f),h&&n.push(t.length),n}),[]).map(((e,n,r)=>{const o=Math.max(r[n-1]||0);return t.slice(o,e)})):[]}(t)}}}function Engine(t,e,n,r,o,i,s){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:g,inViewThreshold:m,slidesToScroll:h,skipSnaps:b,containScroll:S,watchResize:y,watchSlides:A,watchDrag:E,watchFocus:L}=i,_=NodeRects(),v=_.measure(e),C=n.map(_.measure),x=Axis(l,c),T=x.measureSize(v),O=PercentOfView(T),D=Alignment(a,T),N=!d&&!!S,I=d||!!S,{slideSizes:w,slideSizesWithGaps:P,startGap:M,endGap:H}=SlideSizes(x,v,C,n,I,o),B=SlidesToScroll(x,T,h,d,v,C,M,H,2),{snaps:F,snapsAligned:V}=ScrollSnaps(x,D,v,C,B),k=-arrayLast(F)+arrayLast(P),{snapsContained:j,scrollContainLimit:z}=ScrollContain(T,k,V,S,2),U=N?j:V,{limit:R}=ScrollLimit(k,U,d),$=Counter(arrayLastIndex(U),u,d),q=$.clone(),K=arrayKeys(n),W=Animations(r,o,(()=>(({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(t.pointerDown()),e.seek()})(at)),(t=>(({scrollBody:t,translate:e,location:n,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:s,dragHandler:a,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{const p=t.settled(),g=!u.shouldConstrain(),m=d?p:p&&g,h=m&&!a.pointerDown();h&&l.stop();const b=n.get()*f+o.get()*(1-f);r.set(b),d&&(i.loop(t.direction()),s.loop()),e.to(r.get()),h&&c.emit("settle"),m||c.emit("scroll")})(at,t))),Y=U[$.get()],G=Vector1D(Y),J=Vector1D(Y),X=Vector1D(Y),Q=Vector1D(Y),Z=ScrollBody(G,X,J,Q,f,.68),tt=ScrollTarget(d,U,k,R,Q),et=ScrollTo(W,$,q,Z,tt,Q,s),nt=ScrollProgress(R),rt=EventStore(),ot=SlidesInView(e,n,s,m),{slideRegistry:it}=SlideRegistry(N,S,U,z,B,K),st=SlideFocus(t,n,it,et,Z,rt,s,L),at={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:v,slideRects:C,animation:W,axis:x,dragHandler:DragHandler(x,t,r,o,Q,DragTracker(x,o),G,W,et,Z,tt,$,s,O,p,g,b,.68,E),eventStore:rt,percentOfView:O,index:$,indexPrevious:q,limit:R,location:G,offsetLocation:X,previousLocation:J,options:i,resizeHandler:ResizeHandler(e,s,o,n,x,y,_),scrollBody:Z,scrollBounds:ScrollBounds(R,X,Q,Z,O),scrollLooper:ScrollLooper(k,R,X,[G,X,J,Q]),scrollProgress:nt,scrollSnapList:U.map(nt.get),scrollSnaps:U,scrollTarget:tt,scrollTo:et,slideLooper:SlideLooper(x,T,k,w,P,F,U,X,n),slideFocus:st,slidesHandler:SlidesHandler(e,s,A),slidesInView:ot,slideIndexes:K,slideRegistry:it,slidesToScroll:B,target:Q,translate:Translate(x,e)};return at}function EventHandler(){let t,e={};function n(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return n(e).forEach((n=>n(t,e))),r},off:function(t,o){return e[t]=n(t).filter((t=>t!==o)),r},on:function(t,o){return e[t]=n(t).concat([o]),r},clear:function(){e={}}};return r}const defaultOptions$1={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function OptionsHandler(t){function e(t,e){return objectsMergeDeep(t,e||{})}const n={mergeOptions:e,optionsAtMedia:function(n){const r=n.breakpoints||{},o=objectKeys(r).filter((e=>t.matchMedia(e).matches)).map((t=>r[t])).reduce(((t,n)=>e(t,n)),{});return e(n,o)},optionsMediaQueries:function(e){return e.map((t=>objectKeys(t.breakpoints||{}))).reduce(((t,e)=>t.concat(e)),[]).map(t.matchMedia)}};return n}function PluginsHandler(t){let e=[];return{init:function(n,r){return e=r.filter((({options:e})=>!1!==t.optionsAtMedia(e).active)),e.forEach((e=>e.init(n,t))),r.reduce(((t,e)=>Object.assign(t,{[e.name]:e})),{})},destroy:function(){e=e.filter((t=>t.destroy()))}}}function EmblaCarousel(t,e,n){const r=t.ownerDocument,o=r.defaultView,i=OptionsHandler(o),s=PluginsHandler(i),a=EventStore(),l=EventHandler(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:g}=l,m=x;let h,b,S,y,A=!1,E=c(defaultOptions$1,EmblaCarousel.globalOptions),L=c(E),_=[];function v(e){const n=Engine(t,S,y,r,o,e,l);if(e.loop&&!n.slideLooper.canLoop()){return v(Object.assign({},e,{loop:!1}))}return n}function C(e,n){A||(E=c(E,e),L=u(E),_=n||_,function(){const{container:e,slides:n}=L,r=isString(e)?t.querySelector(e):e;S=r||t.children[0];const o=isString(n)?S.querySelectorAll(n):n;y=[].slice.call(o||S.children)}(),h=v(L),d([E,..._.map((({options:t})=>t))]).forEach((t=>a.add(t,"change",x))),L.active&&(h.translate.to(h.location.get()),h.animation.init(),h.slidesInView.init(),h.slideFocus.init(N),h.eventHandler.init(N),h.resizeHandler.init(N),h.slidesHandler.init(N),h.options.loop&&h.slideLooper.loop(),S.offsetParent&&y.length&&h.dragHandler.init(N),b=s.init(N,_)))}function x(t,e){const n=D();T(),C(c({startIndex:n},t),e),l.emit("reInit")}function T(){h.dragHandler.destroy(),h.eventStore.clear(),h.translate.clear(),h.slideLooper.clear(),h.resizeHandler.destroy(),h.slidesHandler.destroy(),h.slidesInView.destroy(),h.animation.destroy(),s.destroy(),a.clear()}function O(t,e,n){L.active&&!A&&(h.scrollBody.useBaseFriction().useDuration(!0===e?0:L.duration),h.scrollTo.index(t,n||0))}function D(){return h.index.get()}const N={canScrollNext:function(){return h.index.add(1).get()!==D()},canScrollPrev:function(){return h.index.add(-1).get()!==D()},containerNode:function(){return S},internalEngine:function(){return h},destroy:function(){A||(A=!0,a.clear(),T(),l.emit("destroy"),l.clear())},off:p,on:f,emit:g,plugins:function(){return b},previousScrollSnap:function(){return h.indexPrevious.get()},reInit:m,rootNode:function(){return t},scrollNext:function(t){O(h.index.add(1).get(),t,-1)},scrollPrev:function(t){O(h.index.add(-1).get(),t,1)},scrollProgress:function(){return h.scrollProgress.get(h.offsetLocation.get())},scrollSnapList:function(){return h.scrollSnapList}
1,scrollTo:O,selectedScrollSnap:D,slideNodes:function(){return y},slidesInView:function(){return h.slidesInView.get()},slidesNotInView:function(){return h.slidesInView.get(!1)}};return C(e,n),setTimeout((()=>l.emit("init")),0),N}EmblaCarousel.globalOptions=void 0;const defaultOptions={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function normalizeDelay(t,e){const n=t.scrollSnapList();return"number"==typeof e?n.map((()=>e)):e(n,t)}function getAutoplayRootNode(t,e){const n=t.rootNode();return e&&e(n)||n}function Autoplay(t={}){let e,n,r,o,i=null,s=0,a=!1,l=!1,c=!1,u=!1;function d(){r||(g()?c=!0:(a||n.emit("autoplay:play"),function(){const{ownerWindow:t}=n.internalEngine();t.clearTimeout(s),s=t.setTimeout(y,o[n.selectedScrollSnap()]),i=(new Date).getTime(),n.emit("autoplay:timerset")}(),a=!0))}function f(){r||(a&&n.emit("autoplay:stop"),function(){const{ownerWindow:t}=n.internalEngine();t.clearTimeout(s),s=0,i=null,n.emit("autoplay:timerstopped")}(),a=!1)}function p(){if(g())return c=a,f();c&&d()}function g(){const{ownerDocument:t}=n.internalEngine();return"hidden"===t.visibilityState}function m(){l||f()}function h(){l||d()}function b(){l=!0,f()}function S(){l=!1,d()}function y(){const{index:t}=n.internalEngine(),r=t.clone().add(1).get(),o=n.scrollSnapList().length-1,i=e.stopOnLastSnap&&r===o;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),i)return f();d()}return{name:"autoplay",options:t,init:function(i,s){n=i;const{mergeOptions:a,optionsAtMedia:l}=s,c=a(defaultOptions,Autoplay.globalOptions),g=a(c,t);if(e=l(g),n.scrollSnapList().length<=1)return;u=e.jump,r=!1,o=normalizeDelay(n,e.delay);const{eventStore:y,ownerDocument:A}=n.internalEngine(),E=!!n.internalEngine().options.watchDrag,L=getAutoplayRootNode(n,e.rootNode);y.add(A,"visibilitychange",p),E&&n.on("pointerDown",m),E&&!e.stopOnInteraction&&n.on("pointerUp",h),e.stopOnMouseEnter&&y.add(L,"mouseenter",b),e.stopOnMouseEnter&&!e.stopOnInteraction&&y.add(L,"mouseleave",S),e.stopOnFocusIn&&n.on("slideFocusStart",f),e.stopOnFocusIn&&!e.stopOnInteraction&&y.add(n.containerNode(),"focusout",d),e.playOnInit&&d()},destroy:function(){n.off("pointerDown",m).off("pointerUp",h).off("slideFocusStart",f),f(),r=!0,a=!1},play:function(t){void 0!==t&&(u=t),d()},stop:function(){a&&f()},reset:function(){a&&d()},isPlaying:function(){return a},timeUntilNext:function(){return i?o[n.selectedScrollSnap()]-((new Date).getTime()-i):null}}}function duplicateSlidesForLoop(t,e){const n=Array.from(t.children),r=n.length;if(e.log("スライド複製チェック",{"現在のスライド数":r,"必要な最小数":6}),0===r)return e.warn("スライドが存在しません"),0;if(r>=6)return e.log("スライド数が十分なため、複製は不要"),r;t.setAttribute("data-original-slide-count",r.toString());const o=Math.ceil(6/r);e.log(`スライドを${o}回複製します`);const i=n.map((t=>t.cloneNode(!0)));for(let e=1;e<o;e++)i.forEach((e=>{const n=e.cloneNode(!0);n.setAttribute("data-cloned","true"),t.appendChild(n)}));return e.log("スライド複製完了",{"元のスライド数":r,"最終スライド数":t.children.length}),r}function handleLoadComplete(t,e){t.setAttribute("aria-busy","false"),t.classList.add(CSS_CLASSES.LOADED);const n=new CustomEvent(EVENTS.LOADED,{bubbles:!0,detail:{emblaApi:e}});t.dispatchEvent(n)}function createEmblaInstance(t,e,n,r){r.log("Emblaインスタンス作成開始",{options:e,autoplay:n});const o=[];n&&o.push(Autoplay(n));const i=EmblaCarousel(t,e,o);return r.log("Emblaインスタンス作成成功",i),i}function finalizeCarouselInitialization(t,e,n,r){n.forEach((t=>{e.on("destroy",t)})),r&&r(e),handleLoadComplete(t.emblaNode,e)}function destroyEmblaInstance(t,e){t&&(e.log("既存のインスタンスを破棄"),t.destroy())}function findCarouselElements(t,e){const n=document.querySelector(t);if(!n)return e.error(`セレクター "${t}" に一致する要素が見つかりません`),null;e.log("対象要素を検出",n);const r=n.querySelector(CSS_CLASSES.VIEWPORT);if(!r)return e.error(`${CSS_CLASSES.VIEWPORT} 要素が見つかりません`),null;const o=r.querySelector(CSS_CLASSES.CONTAINER);if(!o)return e.error(`${CSS_CLASSES.CONTAINER} 要素が見つかりません`),null;const i=n.querySelector(CSS_CLASSES.PREV_BUTTON),s=n.querySelector(CSS_CLASSES.NEXT_BUTTON),a=n.querySelector(CSS_CLASSES.PLAY_BUTTON),l=document.querySelector(CSS_CLASSES.PROGRESS),c=n.querySelector(CSS_CLASSES.DOTS);return e.log("DOM要素",{viewportNode:r,containerNode:o,prevBtn:i,nextBtn:s,playBtn:a,progressNode:l,dotsNode:c}),{emblaNode:n,viewportNode:r,containerNode:o,prevBtn:i,nextBtn:s,playBtn:a,progressNode:l,dotsNode:c}}Autoplay.globalOptions=void 0;const addTogglePrevNextBtnsActive=(t,e,n)=>{const r=()=>{t.canScrollPrev()?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled"),t.canScrollNext()?n.removeAttribute("disabled"):n.setAttribute("disabled","disabled")};return t.on("select",r).on("init",r).on("reInit",r),()=>{e.removeAttribute("disabled"),n.removeAttribute("disabled")}},addPrevNextBtnsClickHandlers=(t,e,n)=>{const r=()=>{t.scrollPrev()},o=()=>{t.scrollNext()};e.addEventListener("click",r,!1),n.addEventListener("click",o,!1);const i=addTogglePrevNextBtnsActive(t,e,n);return()=>{i(),e.removeEventListener("click",r,!1),n.removeEventListener("click",o,!1)}},addDotBtnsAndClickHandlers=(t,e,n="スライド $n")=>{let r=[];const o=()=>{const o=t.containerNode().getAttribute("data-original-slide-count"),i=o?parseInt(o,10):t.scrollSnapList().length;e.innerHTML=Array.from({length:i}).map(((t,e)=>`<button class="embla__dot" role="tab" type="button" aria-label="${(t=>n.replace("$n",(t+1).toString()))(e)}"></button>`)).join("");r=Array.from(e.querySelectorAll(".embla__dot")),r.forEach(((e,n)=>{e.addEventListener("click",(()=>(e=>{t.scrollTo(e)})(n)),!1)}))},i=()=>{const e=t.containerNode().getAttribute("data-original-slide-count"),n=e?parseInt(e,10):r.length,o=t.previousScrollSnap()%n,i=t.selectedScrollSnap()%n;
1r[o]&&(r[o].classList.remove("embla__dot--selected"),r[o].setAttribute("aria-selected","false")),r[i]&&(r[i].classList.add("embla__dot--selected"),r[i].setAttribute("aria-selected","true"))};return t.on("init",o).on("reInit",o).on("init",i).on("reInit",i).on("select",i),()=>{e.innerHTML=""}},addPlayBtnListeners=(t,e,n)=>{const r=n.playButtonStart||"再生",o=n.playButtonStop||"停止",i=t?.plugins()?.autoplay;if(!i)return()=>{};const s=()=>{const t=i.isPlaying();e.setAttribute("aria-label",t?o:r),e.setAttribute("aria-pressed",t?"true":"false")},a=()=>{i.isPlaying()?i.stop():i.play(),s()};return e.addEventListener("click",a),setTimeout((()=>{s()}),0),()=>{e.removeEventListener("click",a)}},addNavBtnListeners=(t,...e)=>{const n=()=>{const e=t?.plugins()?.autoplay;if(!e)return;(!1===e.options.stopOnInteraction?e.reset:e.stop)()};return e.forEach((t=>t.addEventListener("click",n,!0))),()=>{e.forEach((t=>t.removeEventListener("click",n,!0)))}};function setupCarouselEventListeners(t,e,n){const r=[],{prevBtn:o,nextBtn:i,playBtn:s,dotsNode:a}=e;return s&&r.push(addPlayBtnListeners(t,s,n)),o&&i&&(r.push(addNavBtnListeners(t,o,i)),r.push(addPrevNextBtnsClickHandlers(t,o,i))),a&&r.push(addDotBtnsAndClickHandlers(t,a,n.slideLabel)),r}function createCarouselPropertyConfigs(t){return[{name:"selector",privateName:"_selector",logMessage:"セレクタープロパティ設定"},{name:"options",privateName:"_options",logMessage:"オプションプロパティ設定"},{name:"autoplay",privateName:"_autoplay",logMessage:"自動再生プロパティ設定"},{name:"aria",privateName:"_aria",logMessage:"ARIAプロパティ設定"},{name:"debug",privateName:"_debug",set:(t,e)=>{t._debug=e,t._logger.setDebug(e)},logMessage:"デバッグモード設定"},{name:"duplicateSlides",privateName:"_duplicateSlides",logMessage:"スライド複製設定"},{name:"onInit",privateName:"_onInitCallback",set:(t,e)=>{t._onInitCallback=e,t._emblaApi&&e&&e(t._emblaApi)}}]}function createCarouselAttributeHandlers(t){return{selector:{handler:stringAttributeHandler,defaultValue:".embla",onChanged:(t,e)=>{e._selector=t,e._logger.log(`セレクター設定: ${t}`),e._isConnected&&e.initCarousel()}},options:{handler:(t,e,n,r)=>""===t?DEFAULT_OPTIONS:t?jsonAttributeHandler(t,0,n,r):n,defaultValue:DEFAULT_OPTIONS,onChanged:(t,e)=>{e._options=t,e._logger.log("オプション設定:",t),e._isConnected&&e.initCarousel()}},"autoplay-options":{handler:(t,e,n,r)=>{if(""===t)return DEFAULT_AUTOPLAY;if(!t)return n;return jsonAttributeHandler(t,0,DEFAULT_AUTOPLAY,r)},defaultValue:DEFAULT_AUTOPLAY,onChanged:(t,e)=>
1{e._autoplay=t,e._logger.log("自動再生設定:",t),e._isConnected&&e.initCarousel()}},aria:{handler:(t,e,n,r)=>""===t?{}:t?jsonAttributeHandler(t,0,n,r):n,defaultValue:{},onChanged:(t,e)=>{e._aria=t,e._logger.log("ARIA設定:",t),e._isConnected&&e.initCarousel()}},debug:{handler:booleanAttributeHandler,defaultValue:!1,onChanged:(t,e)=>{e._debug=t,e._logger.setDebug(t),e._logger.log(`デバッグモード設定: ${t}`),e._isConnected&&e.initCarousel()}},"duplicate-slides":{handler:booleanAttributeHandler,defaultValue:!1,onChanged:(t,e)=>{e._duplicateSlides=t,e._logger.log(`スライド複製設定: ${t}`),e._isConnected&&e.initCarousel()}}}}function parseCarouselAttributes(t,e){try{e.log("属性の解析開始");const n=createCarouselAttributeHandlers(t),r={selector:".embla",options:DEFAULT_OPTIONS,autoplay:DEFAULT_AUTOPLAY,aria:{},debug:t.hasAttribute("debug"),duplicateSlides:t.hasAttribute("duplicate-slides")};if(t.hasAttribute("selector")){const o=t.getAttribute("selector");r.selector=n.selector.handler(o,"selector",n.selector.defaultValue,e)}if(t.hasAttribute("options")){const o=t.getAttribute("options");r.options=n.options.handler(o,"options",n.options.defaultValue,e)}if(t.hasAttribute("autoplay-options")){const o=t.getAttribute("autoplay-options");r.autoplay=n["autoplay-options"].handler(o,"autoplay-options",n["autoplay-options"].defaultValue,e)}if(t.hasAttribute("aria")){const o=t.getAttribute("aria");r.aria=n.aria.handler(o,"aria",n.aria.defaultValue,e)}return e.log("属性の解析完了",r),r}catch(t){throw e.error("属性の解析中にエラーが発生しました",t),t}}class EmblaCarouselElement extends HTMLElement{_selector;_options;_autoplay;_aria={};_emblaApi=null;_onInitCallback=null;_isConnected=!1;_debug=!1;_duplicateSlides=!1;_logger;static get observedAttributes(){return["selector","options","autoplay-options","aria","debug","duplicate-slides"]}constructor(){super(),this._logger=createLogger(this.hasAttribute("debug"),"EmblaCarousel");try{const t=parseCarouselAttributes(this,this._logger);this._selector=t.selector,this._options=t.options,this._autoplay=t.autoplay,this._aria=t.aria,this._debug=t.debug,this._duplicateSlides=t.duplicateSlides,this._logger.setDebug(this._debug)}catch(t){this._logger.error("初期化中にエラーが発生しました",t),this._selector=".embla",this._options=DEFAULT_OPTIONS,this._autoplay=DEFAULT_AUTOPLAY,this._debug=this.hasAttribute("debug")||!1,this._duplicateSlides=this.hasAttribute("duplicate-slides")||!1,this._logger.setDebug(this._debug)}this._logger.log("初期化",{selector:this._selector,options:this._options,autoplay:this._autoplay,aria:this._aria,debug:this._debug}),this.setupWebComponent()}setupWebComponent(){initializeWebComponent(this,createCarouselPropertyConfigs(),createCarouselAttributeHandlers(),this._logger)}connectedCallback(){this._isConnected=!0,this._logger.log("DOM接続",{selector:this._selector,options:this._options,autoplay:this._autoplay,aria:this._aria,debug:this._debug}),setTimeout((()=>this.initCarousel()),0)}disconnectedCallback(){this._isConnected=!1,this._logger.log("コンポーネント削除"),this.destroyEmbla()}destroyEmbla(){destroyEmblaInstance(this._emblaApi,this._logger),this._emblaApi=null}initCarousel(){this._logger.log("カルーセル初期化開始",{selector:this._selector,options:this._options,autoplay:this._autoplay,aria:this._aria}),this.destroyEmbla();const t=findCarouselElements(this._selector,this._logger);if(!t)return;const{viewportNode:e,containerNode:n}=t;this._options.loop&&this._duplicateSlides&&duplicateSlidesForLoop(n,this._logger);try{this._emblaApi=createEmblaInstance(e,this._options,this._autoplay,this._logger);const n=setupCarouselEventListeners(this._emblaApi,t,this._aria);finalizeCarouselInitialization(t,this._emblaApi,n,this._onInitCallback)}catch(t){return void this._logger.error("Emblaインスタンス作成エラー",t)}}getEmblaApi(){return this._emblaApi}}export{EmblaCarouselElement};

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.