PageSourceSearch

https://skin.place/_nuxt/DMsNXwrO.js

js skin.place collected 2026-09-24 12:59:00 UTC 13,889 bytes, 3 lines download raw bytes

1import{E as j,b as M,h as P,v as m}from"./C8vmkkos.js";var G=(function(){function l(e){var t=this,r=e===void 0?{}:e,a=r.duration,i=a===void 0?2e3:a,o=r.animationDuration,h=o===void 0?void 0:o,v=r.direction,f=v===void 0?P.NEXT:v,s=r.stopOnHover,p=s===void 0?!1:s,_=r.delayAfterHover;this._flicking=null,this._timerId=0,this._mouseEntered=!1,this._playing=!1,this.play=function(){t._movePanel(t._duration)},this.stop=function(){t._playing=!1,clearTimeout(t._timerId)},this._onMouseEnter=function(){t._mouseEntered=!0,t.stop()},this._onMouseLeave=function(){t._mouseEntered=!1,t._movePanel(t._delayAfterHover)},this._duration=i,this._animationDuration=h,this._direction=f,this._stopOnHover=p,this._delayAfterHover=_??i}var n=l.prototype;return Object.defineProperty(n,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"animationDuration",{get:function(){return this._animationDuration},set:function(e){this._animationDuration=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"stopOnHover",{get:function(){return this._stopOnHover},set:function(e){this._stopOnHover=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"delayAfterHover",{get:function(){return this._delayAfterHover},set:function(e){this._delayAfterHover=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),n.init=function(e){var t;if(this._flicking&&this.destroy(),e.on((t={},t[m.MOVE_START]=this.stop,t[m.HOLD_START]=this.stop,t[m.MOVE_END]=this.play,t[m.SELECT]=this.play,t)),this._flicking=e,this._stopOnHover){var r=this._flicking.element;r.addEventListener("mouseenter",this._onMouseEnter,!1),r.addEventListener("mouseleave",this._onMouseLeave,!1)}this.play()},n.destroy=function(){var e=this._flicking;if(this._mouseEntered=!1,this.stop(),!!e){e.off(m.MOVE_START,this.stop),e.off(m.HOLD_START,this.stop),e.off(m.MOVE_END,this.play),e.off(m.SELECT,this.play);var t=e.element;t.removeEventListener("mouseenter",this._onMouseEnter,!1),t.removeEventListener("mouseleave",this._onMouseLeave,!1),this._flicking=null}},n.update=function(){},n._movePanel=function(e){var t=this,r=this._flicking,a=this._direction;r&&(this.stop(),!(this._mouseEntered||r.animating)&&(this._playing=!0,this._timerId=window.setTimeout(function(){var i,o,h=t._animationDuration||r.duration,v=r.moveType;if(v===j.FREE_SCROLL||v?.[0]===j.FREE_SCROLL){var f=r.camera.range,s=r.camera.position,p=r.currentPanel,_=p.prev(),c=p.next(),u=p.position,E=(i=c?.position)!==null&&i!==void 0?i:f.max,g=(o=_?.position)!==null&&o!==void 0?o:f.min;if(g>
1u&&(g=f.min-(f.max-g)),E<u&&(E+=f.max),a===P.NEXT){var C=E-u,T=E-s;s<u&&(T=E-s),h*=T/C}else{var C=u-g,T=s-g;s>u&&(T=s-g),h*=T/C}}a===P.NEXT?r.next(h).catch(function(){}):r.prev(h).catch(function(){}),t.play()},e)))},l})(),B={CLICK:"click",MOUSE_DOWN:"mousedown",TOUCH_START:"touchstart"},d={SELECTOR:".flicking-pagination",PREFIX:"flicking-pagination",BULLET_WRAPPER_SUFFIX:"bullets",BULLET_SUFFIX:"bullet",BULLET_ACTIVE_SUFFIX:"bullet-active",FRACTION_WRAPPER_SUFFIX:"fraction",FRACTION_CURRENT_SUFFIX:"fraction-current",FRACTION_TOTAL_SUFFIX:"fraction-total",SCROLL_UNINIT_SUFFIX:"uninitialized",SCROLL_WRAPPER_SUFFIX:"scroll",SCROLL_SLIDER_SUFFIX:"slider",SCROLL_PREV_SUFFIX:"bullet-prev",SCROLL_NEXT_SUFFIX:"bullet-next",TYPE:{BULLET:"bullet",FRACTION:"fraction",SCROLL:"scroll"}},L=function(l,n){l&&(l.classList?l.classList.add(n):l.className.split(" ").indexOf(n)<0&&(l.className=l.className+" "+n))},w=function(l,n){if(l)if(l.classList)l.classList.remove(n);else{var e=new RegExp("( |^)"+n+"( |$)","g");l.className.replace(e," ")}},k=function(l,n){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},k(l,n)};function N(l,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");k(l,n);function e(){this.constructor=l}l.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}function W(l,n,e){if(e||arguments.length===2)for(var t=0,r=n.length,a;t<r;t++)(a||!(t in n))&&(a||(a=Array.prototype.slice.call(n,0,t)),a[t]=n[t]);return l.concat(a||n)}var X=(function(){function l(e){var t=e.flicking,r=e.pagination,a=e.wrapper;this._flicking=t,this._pagination=r,this._wrapper=a}var n=l.prototype;return n._createBulletFromString=function(e,t){var r=document.createRange().createContextualFragment(e).firstChild;return this._addBulletEvents(r,t),r},n._addBulletEvents=function(e,t){var r=this,a=this._flicking.camera.anchorPoints[t].panel.index;e.addEventListener(B.MOUSE_DOWN,function(i){i.stopPropagation()}),e.addEventListener(B.TOUCH_START,function(i){i.stopPropagation()},{passive:!0}),e.addEventListener(B.CLICK,function(){r._flicking.moveTo(a).catch(function(i){if(!(i instanceof M))throw i})})},l})(),D=(function(l){N(n,l);function n(){var t=l!==null&&l.apply(this,arguments)||this;return t._bullets=[],t._prevIndex=-1,t}var e=n.prototype;return Object.defineProperty(e,"_bulletClass",{get:function(){return this._pagination.classPrefix+"-"+d.BULLET_SUFFIX},enumerable:!1,configurable:!0}),Object.defineProperty(e,"_activeClass",{get:function(){return this._pagination.classPrefix+"-"+d.BULLET_ACTIVE_SUFFIX},enumerable:!1,configurable:!0}),e.destroy=function(){this._bullets=[],this._prevIndex=-1},e.render=function(){var t=this,r=this._flicking,a=this._pagination,i=this._wrapper,o=this._bulletClass,h=this._activeClass,v=a.renderBullet,f=a.renderActiveBullet,s=a.classPrefix+"-"+d.BULLET_WRAPPER_SUFFIX,p=r.camera.anchorPoints;L(i,s),i.innerHTML=p.map(function(c,u){return f&&c.panel.index===r.index?f(o,u):v(o,u)}).join(`
2`);var _=[].slice.call(i.children);_.forEach(function(c,u){p[u].panel.index===r.index&&(L(c,h),t._prevIndex=u),t._addBulletEvents(c,u)}),this._bullets=_},e.update=function(t){var r=this._flicking,a=this._pagination,i=this._wrapper,o=this._bullets,h=this._bulletClass,v=this._activeClass,f=this._prevIndex,s=r.camera.anchorPoints,p=a.renderBullet,_=a.renderActiveBullet;if(!(s.length<=0)){var c=t-s[0].panel.index;if(f!==c){if(_){var u=o[f];if(u){var E=this._createBulletFromString(p(h,f),f);u.parentElement.replaceChild(E,u),o[f]=E}var g=o[c],C=this._createBulletFromString(_(h+" "+v,c),c);i.replaceChild(C,g),o[c]=C}else{var g=o[c],u=o[f];u&&w(u,v),L(g,v)}this._prevIndex=c}}},n})(X),V=(function(l){N(n,l);function n(){var t=l!==null&&l.apply(this,arguments)||this;return t._prevIndex=-1,t._prevTotal=-1,t}var e=n.prototype;return e.destroy=function(){this._prevIndex=-1,this._prevTotal=-1},e.render=function(){var t=this._flicking,r=this._wrapper,a=this._pagination,i=a.classPrefix+"-"+d.FRACTION_WRAPPER_SUFFIX,o=a.classPrefix+"-"+d.FRACTION_CURRENT_SUFFIX,h=a.classPrefix+"-"+d.FRACTION_TOTAL_SUFFIX;L(r,i),r.innerHTML=a.renderFraction(o,h),this.update(t.index)},e.update=function(t){var r=this._flicking,a=this._wrapper,i=this._pagination,o=r.camera.anchorPoints,h=o.length>0?t-o[0].panel.index+1:0,v=o.length;if(!(h===this._prevIndex&&v===this._prevTotal)){var f="."+i.classPrefix+"-"+d.FRACTION_CURRENT_SUFFIX,s="."+i.classPrefix+"-"+d.FRACTION_TOTAL_SUFFIX,p=a.querySelector(f),_=a.querySelector(s);p.innerHTML=i.fractionCurrentFormat(h),_.innerHTML=i.fractionTotalFormat(v),this._prevIndex=h,this._prevTotal=v}},n})(X),z=(function(l){N(n,l);function n(){var t=l!==null&&l.apply(this,arguments)||this;return t._bullets=[],t._bulletSize=0,t._previousIndex=-1,t._sliderIndex=-1,t.moveTo=function(r){var a=t._pagination,i=t._wrapper.firstElementChild,o=t._bulletSize,h=o*a.bulletCount;i.style.transform="translate("+(h/2-(r+.5)*o)+"px)",t._sliderIndex=r},t}var e=n.prototype;return e.destroy=function(){this._bullets=[],this._bulletSize=0,this._previousIndex=-1,this._sliderIndex=-1},e.render=function(){var t=this,r=this._wrapper,a=this._flicking,i=this._pagination,o=i.renderBullet,h=a.camera.anchorPoints,v=i.classPrefix+"-"+d.SCROLL_WRAPPER_SUFFIX,f=i.classPrefix+"-"+d.BULLET_SUFFIX,s=i.classPrefix+"-"+d.SCROLL_SLIDER_SUFFIX,p=i.classPrefix+"-"+d.SCROLL_UNINIT_SUFFIX,_=document.createElement("div");
2L(_,s),L(r,p),L(r,v),r.appendChild(_),_.innerHTML=h.map(function(g,C){return o(f,C)}).join(`
3`);var c=[].slice.call(_.children);if(c.forEach(function(g,C){t._addBulletEvents(g,C)}),!(c.length<=0)){var u=getComputedStyle(c[0]),E=c[0].clientWidth+parseFloat(u.marginLeft)+parseFloat(u.marginRight);r.style.width=E*i.bulletCount+"px",this._bullets=c,this._bulletSize=E,this._previousIndex=-1,this.update(this._flicking.index),window.requestAnimationFrame(function(){w(r,p)})}},e.update=function(t){var r=this._pagination,a=this._flicking,i=this._bullets,o=this._previousIndex,h=r.renderBullet,v=r.renderActiveBullet,f=a.camera.anchorPoints,s=t-f[0].panel.index;if(!(f.length<=0)){var p=r.classPrefix+"-"+d.BULLET_SUFFIX,_=r.classPrefix+"-"+d.BULLET_ACTIVE_SUFFIX,c=r.classPrefix+"-"+d.SCROLL_PREV_SUFFIX,u=r.classPrefix+"-"+d.SCROLL_NEXT_SUFFIX,E=function(F){return""+c+(F>1?F:"")},g=function(F){return""+u+(F>1?F:"")},C=new RegExp("^"+c),T=new RegExp("^"+u);if(v){var O=i[o];if(O){var S=this._createBulletFromString(h(p,o),o);O.parentElement.replaceChild(S,O),i[o]=S}var R=i[s];if(R){var x=this._createBulletFromString(v(p,s),s);R.parentElement.replaceChild(x,R),i[s]=x}}i.forEach(function(F,A){for(var y=A-s,b=F.className.split(" "),I=0,H=b;I<H.length;I++){var U=H[I];(U===_||C.test(U)||T.test(U))&&w(F,U)}y===0?L(F,_):y>0?L(F,g(Math.abs(y))):L(F,E(Math.abs(y)))}),r.scrollOnChange(s,{total:i.length,prevIndex:o,sliderIndex:this._sliderIndex,direction:s>o?P.NEXT:P.PREV,bullets:W([],i),moveTo:this.moveTo}),this._previousIndex=s}},n})(X),$=(function(){function l(e){var t=this,r=e===void 0?{}:e,a=r.parentEl,i=a===void 0?null:a,o=r.selector,h=o===void 0?d.SELECTOR:o,v=r.type,f=v===void 0?d.TYPE.BULLET:v,s=r.classPrefix,p=s===void 0?d.PREFIX:s,_=r.bulletCount,c=_===void 0?5:_,u=r.renderBullet,E=u===void 0?function(b){return'<span class="'+b+'"></span>'}:u,g=r.renderActiveBullet,C=g===void 0?null:g,T=r.renderFraction,O=T===void 0?function(b,I){return'<span class="'+b+'"></span>/<span class="'+I+'"></span>'}:T,S=r.fractionCurrentFormat,R=S===void 0?function(b){return b.toString()}:S,x=r.fractionTotalFormat,F=x===void 0?function(b){return b.toString()}:x,A=r.scrollOnChange,y=A===void 0?function(b,I){return I.moveTo(b)}:A;this._flicking=null,this.update=function(){t._removeAllChilds(),t._renderer.render()},this._onIndexChange=function(b){t._renderer.update(b.index)},this._parentEl=i,this._selector=h,this._type=f,this._classPrefix=p,this._bulletCount=c,this._renderBullet=E,this._renderActiveBullet=C,this._renderFraction=O,this._fractionCurrentFormat=R,this._fractionTotalFormat=F,this._scrollOnChange=y}var n=l.prototype;return Object.defineProperty(n,"parentEl",{get:function(){return this._parentEl},set:function(e){this._parentEl=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"selector",{get:function(){return this._selector},set:function(e){this._selector=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"type",{get:function(){return this._type},set:function(e){this._type=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"classPrefix",{get:function(){return this._classPrefix},enumerable:!1,configurable:!0}),Object.defineProperty(n,"bulletCount",{get:function(){return this._bulletCount},set:function(e){this._bulletCount=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"renderBullet",{get:function(){return this._renderBullet},set:function(e){this._renderBullet=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"renderActiveBullet",{get:function(){return this._renderActiveBullet},set:function(e){this._renderActiveBullet=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"renderFraction",{get:function(){return this._renderFraction},set:function(e){this._renderFraction=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"fractionCurrentFormat",{get:function(){return this._fractionCurrentFormat},set:function(e){this._fractionCurrentFormat=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"fractionTotalFormat",{get:function(){return this._fractionTotalFormat},set:function(e){this._fractionTotalFormat=e}
3,enumerable:!1,configurable:!0}),Object.defineProperty(n,"scrollOnChange",{get:function(){return this._scrollOnChange},set:function(e){this._scrollOnChange=e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"bulletWrapperclassPrefixClass",{set:function(e){this._classPrefix=e},enumerable:!1,configurable:!0}),n.init=function(e){this._flicking&&this.destroy(),this._flicking=e;var t=this._type,r=this._selector,a=(this._parentEl?this._parentEl:e.element).querySelector(r);if(!a)throw new Error("[Flicking-Pagination] Couldn't find element with the given selector: "+r);this._wrapper=a,this._renderer=this._createRenderer(t),e.on(m.WILL_CHANGE,this._onIndexChange),e.on(m.WILL_RESTORE,this._onIndexChange),e.on(m.PANEL_CHANGE,this.update),this.update()},n.destroy=function(){var e=this._flicking;e&&(e.off(m.WILL_CHANGE,this._onIndexChange),e.off(m.WILL_RESTORE,this._onIndexChange),e.off(m.PANEL_CHANGE,this.update),this._renderer.destroy(),this._removeAllChilds(),this._flicking=null)},n._createRenderer=function(e){var t={flicking:this._flicking,pagination:this,wrapper:this._wrapper};switch(e){case d.TYPE.BULLET:return new D(t);case d.TYPE.FRACTION:return new V(t);case d.TYPE.SCROLL:return new z(t);default:throw new Error('[Flicking-Pagination] type "'+e+'" is not supported.')}},n._removeAllChilds=function(){for(var e=this._wrapper;e.firstChild;)e.removeChild(e.firstChild)},l})();export{$ as n,G as t};

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.