Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@egjs/flicking

Package Overview
Dependencies
Maintainers
8
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/flicking - npm Package Compare versions

Comparing version 3.4.2 to 3.4.3

4

dist/flicking.min.js

@@ -7,5 +7,5 @@ /*

repository: https://github.com/naver/egjs-flicking
version: 3.4.2
version: 3.4.3
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@egjs/component"),require("@egjs/axes")):"function"==typeof define&&define.amd?define(["@egjs/component","@egjs/axes"],t):((e=e||self).eg=e.eg||{},e.eg.Flicking=t(e.eg.Component,e.eg.Axes))}(this,function(e,r){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l={SNAP:"snap",FREE_SCROLL:"freeScroll"},o={snap:{type:"snap",count:1},freeScroll:{type:"freeScroll"}},c="undefined"!=typeof document,d={classPrefix:"eg-flick",deceleration:.0075,horizontal:!0,circular:!1,infinite:!1,infiniteThreshold:0,lastIndex:1/0,threshold:40,duration:100,panelEffect:function(e){return 1-Math.pow(1-e,3)},defaultIndex:0,inputType:["touch","mouse"],thresholdAngle:45,bounce:10,autoResize:!1,adaptive:!1,zIndex:2e3,bound:!1,overflow:!1,hanger:"50%",anchor:"50%",gap:0,moveType:o.snap,useOffset:!1,isEqualSize:!1,isConstantSize:!1,renderOnlyVisible:!1,renderExternal:!1,collectStatistics:!0},s={position:"relative",zIndex:d.zIndex,overflow:"hidden"},h={width:"100%",height:"100%",willChange:"transform"},u={position:"absolute"},y={HOLD_START:"holdStart",HOLD_END:"holdEnd",MOVE_START:"moveStart",MOVE:"move",MOVE_END:"moveEnd",CHANGE:"change",RESTORE:"restore",SELECT:"select",NEED_PANEL:"needPanel",VISIBLE_CHANGE:"visibleChange"},f={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},A=0,g=1,p=2,M=3,N=4,z={PREV:"PREV",NEXT:"NEXT"},t={prev:!0,next:!0,moveTo:!0,getIndex:!0,getAllPanels:!0,getCurrentPanel:!0,getElement:!0,getPanel:!0,getPanelCount:!0,getStatus:!0,getVisiblePanels:!0,setLastIndex:!0,enableInput:!0,disableInput:!0,destroy:!0,resize:!0,setStatus:!0,addPlugins:!0,removePlugins:!0,isPlaying:!0,getLastIndex:!0},v=function(){var e={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",OTransform:"-o-transform",transform:"transform"};if(!c)return{name:e.transform,has3d:!0};var t=document.documentElement.style,n="";for(var i in e)i in t&&(n=i);if(!n)throw new Error("Browser doesn't support CSS3 2D Transforms.");var r=document.createElement("div");document.documentElement.insertBefore(r,null),r.style[n]="translate3d(1px, 1px, 1px)";var a=window.getComputedStyle(r).getPropertyValue(e[n]);r.parentElement.removeChild(r);var o={name:n,has3d:0<a.length&&"none"!==a};return v=function(){return o},o},P=v();function m(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.forEach(function(n){Object.keys(n).forEach(function(e){var t=n[e];i[e]=t})}),i}function x(e){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){if(E(e)){var t=document.createElement("div");for(t.innerHTML=e,n.push.apply(n,w(t.children));t.firstChild;)t.removeChild(t.firstChild)}else n.push(e)}),n}function E(e){return"string"==typeof e}function C(e,t){return e.classList?e.classList.contains(t):0<=e.className.split(" ").indexOf(t)}function b(t,n){Object.keys(n).forEach(function(e){t.style[e]=n[e]})}function I(e,t,n){return Math.max(Math.min(e,n),t)}function S(e,t,n){return t<=e&&e<=n}function w(e){return[].slice.call(e)}function T(e,t,n){var i=null!=n?n:t/2,r=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if("number"==typeof e)return I(e,0,t);for(var a=0,o=0,s=r.exec(e);null!=s;){var l=s[1],c=s[2],h=s[3],u=parseFloat(c);if(a<=0&&(l=l||"+"),!l)return i;"%"===h&&(u=u/100*t),o+="+"===l?u:-u,++a,s=r.exec(e)}return 0===a?i:I(o,0,t)}function R(e,t){var n=t[0],i=t[1],r=t[2];return i<e&&r-i?(e-i)/(r-i):e<i&&i-n?(e-i)/(i-n):e!==i&&r-n?(e-n)/(r-n):0}function O(e,t){for(var n=0;n<e.length;n+=1){var i=e[n];if(i&&t(i))return n}return-1}function k(e){for(var t=[],n=0;n<e;n+=1)t[n]=n;return t}function B(e,t,n,i){var r=i?n-t+1:n-t;if(e<t)e=n-(i?(t-e-1)%r:(t-e)%r);else if(n<e){e=t+(i?(e-n-1)%r:(e-n)%r)}return e}function V(e,t){t.className?e.setAttribute("class",t.className):e.removeAttribute("class"),t.style?e.setAttribute("style",t.style):e.removeAttribute("style")}function H(e,t){var n;if(t)n={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight};else{var i=e.getBoundingClientRect();n={x:i.left,y:i.top,width:i.width,height:i.height}}return n}var L=function(){function l(e,t,n){this.viewport=n,this.prevSibling=null,this.nextSibling=null,this.clonedPanels=[],this.state={index:t,position:0,relativeAnchorPosition:0,size:0,isClone:!1,isVirtual:!1,cloneIndex:-1,originalStyle:{className:"",style:""},cachedBbox:null},this.setElement(e)}var e=l.prototype;return e.resize=function(e){var n=this.state,t=this.viewport.options,i=e||this.getBbox();this.state.cachedBbox=i;var r=n.size;n.size=t.horizontal?i.width:i.height,r!==n.size&&(n.relativeAnchorPosition=T(t.anchor,n.size)),n.isClone||this.clonedPanels.forEach(function(e){var t=e.state;t.size=n.size,t.cachedBbox=n.cachedBbox,t.relativeAnchorPosition=n.relativeAnchorPosition})},e.unCacheBbox=function(){this.state.cachedBbox=null},e.getProgress=function(){var e=this.viewport,t=e.options,n=e.panelManager.getPanelCount(),i=e.getScrollAreaSize();return(t.circular?Math.floor(this.getPosition()/i)*n:0)+this.getIndex()-e.getCurrentProgress()},e.getOutsetProgress=function(){var e=this.viewport,t=[-this.getSize(),e.getRelativeHangerPosition()-this.getRelativeAnchorPosition(),e.getSize()];return R(this.getPosition()-e.getCameraPosition(),t)},e.getVisibleRatio=function(){var e=this.viewport,t=this.getSize(),n=this.getPosition()-e.getCameraPosition(),i=n+t,r=Math.min(e.getSize(),i)-Math.max(n,0);return 0<=r?r/t:0},e.focus=function(e){var t=this.viewport,n=t.getCurrentPanel();if(t.getHangerPosition()!==this.getAnchorPosition()&&n){var i=n.getPosition()===this.getPosition()?"":y.CHANGE;t.moveTo(this,t.findEstimatedPosition(this),i,null,e)}},e.update=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0);var n=this.getIdenticalPanels();t&&n.forEach(function(e){t(e.getElement())}),e&&(n.forEach(function(e){e.unCacheBbox()}),this.viewport.addVisiblePanel(this),this.viewport.resize())},e.prev=function(){var e=this.viewport.options,t=this.prevSibling;if(!t)return null;var n=this.getIndex(),i=this.getPosition(),r=t.getIndex(),a=t.getPosition(),o=t.getSize(),s=1<n-r,l=e.infinite&&0<n&&n<r;if(s||l)return null;var c=i-o-e.gap,h=t;return a!==c&&(h=t.clone(t.getCloneIndex(),!0)).setPosition(c),h},e.next=function(){var e=this.viewport,t=e.options,n=this.nextSibling,i=e.panelManager.getLastIndex();if(!n)return null;var r=this.getIndex(),a=this.getPosition(),o=n.getIndex(),s=n.getPosition(),l=1<o-r,c=t.infinite&&r<i&&o<r;if(l||c)return null;var h=a+this.getSize()+t.gap,u=n;return s!==h&&(u=n.clone(n.getCloneIndex(),!0)).setPosition(h),u},e.insertBefore=function(e){var t=this.viewport,n=x(e),i=t.panelManager.firstPanel(),r=this.prevSibling,a=r&&i.getIndex()!==this.getIndex()?Math.max(r.getIndex()+1,this.getIndex()-n.length):Math.max(this.getIndex()-n.length,0);return t.insert(a,n)},e.insertAfter=function(e){return this.viewport.insert(this.getIndex()+1,e)},e.remove=function(){return this.viewport.remove(this.getIndex()),this},e.destroy=function(e){if(!e.preserveUI){var t=this.state.originalStyle;V(this.element,t)}for(var n in this)this[n]=null},e.getElement=function(){return this.element},e.getAnchorPosition=function(){return this.state.position+this.state.relativeAnchorPosition},e.getRelativeAnchorPosition=function(){return this.state.relativeAnchorPosition},e.getIndex=function(){return this.state.index},e.getPosition=function(){return this.state.position},e.getSize=function(){return this.state.size},e.getBbox=function(){var e=this.state,t=this.viewport,n=this.element,i=t.options;if(n){if(!e.cachedBbox){var r=Boolean(n.parentNode),a=t.getCameraElement();r||(a.appendChild(n),t.addVisiblePanel(this)),e.cachedBbox=H(n,i.useOffset),!r&&t.options.renderExternal&&a.removeChild(n)}}else e.cachedBbox={x:0,y:0,width:0,height:0};return e.cachedBbox},e.isClone=function(){return this.state.isClone},e.getOverlappedClass=function(e){for(var t=this.element,n=0,i=e;n<i.length;n++){var r=i[n];if(C(t,r))return r}},e.getCloneIndex=function(){return this.state.cloneIndex},e.getClonedPanels=function(){return this.state.isClone?this.original.getClonedPanels():this.clonedPanels},e.getIdenticalPanels=function(){return this.state.isClone?this.original.getIdenticalPanels():[this].concat(this.clonedPanels)},e.getOriginalPanel=function(){return this.state.isClone?this.original:this},e.setIndex=function(t){this.state.index=t,this.clonedPanels.forEach(function(e){return e.state.index=t})},e.setPosition=function(e){return this.state.position=e,this},e.setPositionCSS=function(e){if(void 0===e&&(e=0),this.element){var t=this.state,n=t.position,i=this.viewport.options,r=this.element.style,a=i.horizontal?r.left:r.top,o=n-e+"px";t.isVirtual||a===o||(i.horizontal?r.left=o:r.top=o)}},e.clone=function(e,t,n){void 0===t&&(t=!1);var i=this.state,r=this.viewport,a=n;!a&&this.element&&(a=t?this.element:this.element.cloneNode(!0));var o=new l(a,i.index,r),s=o.state;return o.original=i.isClone?this.original:this,s.isClone=!0,s.isVirtual=t,s.cloneIndex=e,s.size=i.size,s.relativeAnchorPosition=i.relativeAnchorPosition,s.originalStyle=i.originalStyle,s.cachedBbox=i.cachedBbox,t?(o.prevSibling=this.prevSibling,o.nextSibling=this.nextSibling):this.clonedPanels.push(o),o},e.removeElement=function(){if(!this.viewport.options.renderExternal){var e=this.element;e.parentNode.removeChild(e)}this.state.isClone||this.removeClonedPanelsAfter(0)},e.removeClonedPanelsAfter=function(e){var t=this.viewport.options,n=this.clonedPanels.splice(e);t.renderExternal||t.renderOnlyVisible||n.forEach(function(e){e.removeElement()})},e.setElement=function(e){if(e){var t,n,i=this.element;if(e!==i){var r=this.viewport.options;if(i)r.horizontal?e.style.left=i.style.left:e.style.top=i.style.top;else{var a=this.state.originalStyle;a.className=e.getAttribute("class"),a.style=e.getAttribute("style")}this.element=e,r.classPrefix&&(t=e,n=r.classPrefix+"-panel",t.classList?t.classList.add(n):C(t,n)||(t.className=(t.className+" "+n).replace(/\s{2,}/g," "))),b(this.element,u)}}},l}(),D=function(){function e(e,t){this.cameraElement=e,this.panels=[],this.clones=[],this.range={min:-1,max:-1},this.length=0,this.cloneCount=0,this.options=t,this.lastIndex=t.lastIndex}var t=e.prototype;return t.firstPanel=function(){return this.panels[this.range.min]},t.lastPanel=function(){return this.panels[this.range.max]},t.allPanels=function(){return this.panels.concat(this.clones.reduce(function(e,t){return e.concat(t)},[]))},t.originalPanels=function(){return this.panels},t.clonedPanels=function(){return this.clones},t.replacePanels=function(e,t){this.panels=e,this.clones=t,this.range={min:O(e,function(e){return Boolean(e)}),max:e.length-1},this.length=e.filter(function(e){return Boolean(e)}).length},t.has=function(e){return!!this.panels[e]},t.get=function(e){return this.panels[e]},t.getPanelCount=function(){return this.length},t.getLastIndex=function(){return this.lastIndex},t.getRange=function(){return this.range},t.getCloneCount=function(){return this.cloneCount},t.setLastIndex=function(e){this.lastIndex=e;var t=this.firstPanel(),n=this.lastPanel();if(t&&n){var i=this.range;if(n.getIndex()>e){var r=this.panels.splice(e+1);this.length-=r.length;var a=r.filter(function(e){return!!e})[0].prevSibling;i.max=a?a.getIndex():i.min=-1,this.shouldRender()&&r.forEach(function(e){return e.removeElement()})}}},t.setCloneCount=function(e){this.cloneCount=e},t.insert=function(n,e){var i=this.panels,t=this.range,r=this.options.circular,a=this.lastIndex,o=this.findFirstPanelFrom(n),s=this.firstPanel(),l=o?o.getElement():r&&s?s.getClonedPanels()[0].getElement():null;this.insertNewPanels(e,l);var c=e.length;if(n>t.max)e.forEach(function(e,t){i[n+t]=e});else{var h=i.slice(n,n+e.length),u=O(h,function(e){return!!e});if(u<0&&(u=h.length),c=e.length-u,i.splice.apply(i,[n,u].concat(e)),i.length>a+1){var g=i.splice(a+1).filter(function(e){return Boolean(e)});this.length-=g.length;var f=a-O(this.panels.concat().reverse(),function(e){return!!e});this.panels.splice(f+1),this.range.max=f,this.shouldRender()&&g.forEach(function(e){return e.removeElement()})}}if(0<c&&i.slice(n+e.length).forEach(function(e){e.setIndex(e.getIndex()+c)}),this.length+=e.length,this.updateIndex(n),r){this.addNewClones(n,e,e.length-c,o);var d=this.clones,p=this.panels.length;d[0]&&d[0].length>a+1&&d.forEach(function(e){e.splice(p)})}return c},t.replace=function(e,t){var n=this.panels,i=this.range,r=this.options.circular,a=this.findFirstPanelFrom(e+t.length),o=this.firstPanel(),s=a?a.getElement():r&&o?o.getClonedPanels()[0].getElement():null;this.insertNewPanels(t,s),e>i.max&&(n[e]=null);var l=n.splice.apply(n,[e,t.length].concat(t)),c=l.filter(function(e){return Boolean(e)}).length;return this.length+=t.length-c,this.updateIndex(e),r&&this.addNewClones(e,t,t.length,a),this.shouldRender()&&l.forEach(function(e){return e&&e.removeElement()}),l},t.remove=function(t,n){void 0===n&&(n=1);var e=this.options.circular,i=this.panels,r=this.clones;n=Math.max(n,0);var a=i.splice(t,n).filter(function(e){return!!e});this.shouldRender()&&a.forEach(function(e){return e.removeElement()}),e&&r.forEach(function(e){e.splice(t,n)}),i.slice(t).forEach(function(e){e.setIndex(e.getIndex()-n)});var o=i.length-1;if(!i[o]){var s=O(i.concat().reverse(),function(e){return!!e});o=s<0?-1:o-s,i.splice(o+1),e&&r.forEach(function(e){e.splice(o+1)})}return this.range={min:O(i,function(e){return!!e}),max:o},this.length-=a.length,this.length<=0&&(this.clones=[],this.cloneCount=0),a},t.chainAllPanels=function(){var r=this.allPanels().filter(function(e){return!!e}),e=r.length;if(!(e<=1)){r.slice(1,r.length-1).forEach(function(e,t){var n=r[t],i=r[t+2];e.prevSibling=n,e.nextSibling=i});var t=r[0],n=r[e-1];t.prevSibling=null,t.nextSibling=r[1],n.prevSibling=r[e-2],n.nextSibling=null,this.options.circular&&((t.prevSibling=n).nextSibling=t)}},t.insertClones=function(e,n,t,i){void 0===i&&(i=0);var r=this.clones,a=this.lastIndex;if(r[e]){var o=r[e];n>=o.length?t.forEach(function(e,t){o[n+t]=e}):(o.splice.apply(o,[n,i].concat(t)),t.length>a+1&&t.splice(a+1))}else{var s=[];t.forEach(function(e,t){s[n+t]=e}),r[e]=s}},t.removeClonesAfter=function(t){this.panels.forEach(function(e){e.removeClonedPanelsAfter(t)}),this.clones.splice(t)},t.findPanelOf=function(e){for(var t=0,n=this.allPanels();t<n.length;t++){var i=n[t];if(i)if(i.getElement().contains(e))return i}},t.findFirstPanelFrom=function(e){for(var t=0,n=this.panels.slice(e);t<n.length;t++){var i=n[t];if(i&&i.getIndex()>=e&&i.getElement().parentNode)return i}},t.addNewClones=function(a,o,s,e){for(var l=this,c=this.cameraElement,t=this.getCloneCount(),n=this.lastPanel(),h=n?n.getClonedPanels():[],u=e?e.getClonedPanels():[],i=function(n){var e=u[n],t=h[n],i=e?e.getElement():t?t.getElement().nextElementSibling:null,r=o.map(function(e){var t=e.clone(n);return l.shouldRender()&&c.insertBefore(t.getElement(),i),t});g.insertClones(n,a,r,s)},g=this,r=0,f=k(t);r<f.length;r++){i(f[r])}},t.updateIndex=function(e){var t=this.panels,n=this.range,i=t.length-1;i>n.max&&(n.max=i),(e<n.min||n.min<0)&&(n.min=e)},t.insertNewPanels=function(e,t){if(this.shouldRender()){var n=document.createDocumentFragment();e.forEach(function(e){return n.appendChild(e.getElement())}),this.cameraElement.insertBefore(n,t)}},t.shouldRender=function(){var e=this.options;return!e.renderExternal&&!e.renderOnlyVisible},e}(),n=function(){function e(){this.delta=0,this.direction=null,this.targetPanel=null,this.lastPosition=0}var t=e.prototype;return t.onEnter=function(e){this.delta=e.delta,this.direction=e.direction,this.targetPanel=e.targetPanel,this.lastPosition=e.lastPosition},t.onExit=function(e){},t.onHold=function(e,t){},t.onChange=function(e,t){},t.onRelease=function(e,t){},t.onAnimationEnd=function(e,t){},t.onFinish=function(e,t){},e}(),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=A,e.holding=!1,e.playing=!1,e}a(e,t);var n=e.prototype;return n.onEnter=function(){this.direction=null,this.targetPanel=null,this.delta=0,this.lastPosition=0},n.onHold=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo;if(n.getPanelCount()<=0)return i.options.infinite&&i.moveCamera(i.getCameraPosition(),e),void a(N);this.lastPosition=i.getCameraPosition(),r(y.HOLD_START,e,!0).onSuccess(function(){a(g)}).onStopped(function(){a(N)})},n.onChange=function(e,t){var n=t.triggerEvent,i=t.transitTo;n(y.MOVE_START,e,!1).onSuccess(function(){i(M).onChange(e,t)}).onStopped(function(){i(N)})},e}(n),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=g,e.holding=!0,e.playing=!0,e.releaseEvent=null,e}a(e,t);var n=e.prototype;return n.onChange=function(e,t){var n=t.flicking,i=t.triggerEvent,r=t.transitTo,a=n.options.horizontal?e.inputEvent.offsetX:e.inputEvent.offsetY;this.direction=a<0?z.NEXT:z.PREV,i(y.MOVE_START,e,!0).onSuccess(function(){r(p).onChange(e,t)}).onStopped(function(){r(N)})},n.onRelease=function(e,t){var n=t.viewport,i=t.triggerEvent,r=t.transitTo;if(i(y.HOLD_END,e,!0),0!==e.delta.flick)return e.setTo({flick:n.getCameraPosition()},0),void r(A);this.releaseEvent=e},n.onFinish=function(e,t){var n=t.viewport,i=t.triggerEvent;if((0,t.transitTo)(A),this.releaseEvent){var r,a=this.releaseEvent.inputEvent.srcEvent;if("touchend"===a.type){var o=a.changedTouches[0];r=document.elementFromPoint(o.clientX,o.clientY)}else r=a.target;var s=n.panelManager.findPanelOf(r),l=n.getCameraPosition();if(s){var c=s.getPosition();i(y.SELECT,null,!0,{direction:l<c?z.NEXT:c<l?z.PREV:null,index:s.getIndex(),panel:s})}}},e}(n),G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=p,e.holding=!0,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onChange=function(e,t){var n=t.moveCamera,i=t.transitTo;e.delta.flick&&n(e).onStopped(function(){i(N)})},n.onRelease=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo,o=t.stopCamera,s=this.delta,l=Math.abs(s),c=n.options,h=c.horizontal,u=i.moveType,g=e.inputEvent,f=h?g.velocityX:g.velocityY,d=h?g.deltaX:g.deltaY,p=1<Math.abs(f)?f<0:0<l?0<s:d<0,v=i.options.bound?Math.max(l,Math.abs(d)):l,P=g.deltaX?Math.abs(180*Math.atan(g.deltaY/g.deltaX)/Math.PI):90,m=h?P<=c.thresholdAngle:P>c.thresholdAngle,x=v>=c.threshold&&m,E={viewport:i,axesEvent:e,state:this,swipeDistance:v,isNextDirection:p};r(y.HOLD_END,e,!0);var C=this.targetPanel;if(!x&&C){var b=u.findPanelWhenInterrupted(E);return i.moveTo(b.panel,b.destPos,b.eventType,e,b.duration),void a(M)}var S=i.getCurrentPanel(),I=i.getNearestPanel();if(!S||!I)return e.stop(),void a(A);var w=x?u.findTargetPanel(E):u.findRestorePanel(E);i.moveTo(w.panel,w.destPos,w.eventType,e,w.duration).onSuccess(function(){a(M)}).onStopped(function(){a(N),o(e)})},e}(n),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=M,e.holding=!1,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onHold=function(e,t){var n=t.viewport,i=t.triggerEvent,r=t.transitTo,a=n.options,o=n.getScrollArea(),s=n.getScrollAreaSize(),l=Math.floor((this.lastPosition+this.delta-o.prev)/s),c=this.targetPanel;if(a.circular&&0!==l&&c){var h=n.panelManager.getCloneCount(),u=c.getPosition(),g=B(c.getCloneIndex()-l,-1,h-1,!0),f=u-l*s,d=c.getIdenticalPanels()[g+1].clone(g,!0);d.setPosition(f),this.targetPanel=d}this.delta=0,this.lastPosition=n.getCameraPosition(),n.setCurrentPanel(n.getNearestPanel()),i(y.HOLD_START,e,!0).onSuccess(function(){r(p)}).onStopped(function(){r(N)})},n.onChange=function(e,t){var n=t.moveCamera,i=t.transitTo;e.delta.flick&&n(e).onStopped(function(){i(N)})},n.onFinish=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo,o=e&&e.isTrusted;i.options.bound?i.setCurrentPanel(this.targetPanel):i.setCurrentPanel(i.getNearestPanel()),a(A),r(y.MOVE_END,e,o,{direction:this.direction}),n.options.adaptive&&i.updateAdaptiveSize()},e}(n),j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=N,e.holding=!1,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onAnimationEnd=function(e,t){(0,t.transitTo)(A)},n.onChange=function(e,t){var n=t.viewport,i=t.transitTo;e.stop(),n.updateAxesPosition(n.getCameraPosition()),i(A)},n.onRelease=function(e,t){var n=t.transitTo;0===e.delta.flick&&n(A)},e}(n),q=function(){function e(){var i=this;this.state=new _,this.transitTo=function(e){var t=i.state;if(t.type!==e){var n=void 0;switch(e){case A:n=new _;break;case g:n=new F;break;case p:n=new G;break;case M:n=new X;break;case N:n=new j}t.onExit(n),n.onEnter(t),i.state=n}return i.state}}var t=e.prototype;return t.fire=function(e,t,n){var i=this.state;switch(e){case f.HOLD:i.onHold(t,n);break;case f.CHANGE:i.onChange(t,n);break;case f.RELEASE:i.onRelease(t,n);break;case f.ANIMATION_END:i.onAnimationEnd(t,n);break;case f.FINISH:i.onFinish(t,n)}},t.getState=function(){return this.state},e}(),Y=function(n){function e(e){var t=n.call(this)||this;return t.type=l.SNAP,t.count=e,t}a(e,n);var t=e.prototype;return t.findTargetPanel=function(e){var t=e.viewport,n=e.axesEvent,i=e.swipeDistance,r=this.count,a=Math.abs(n.delta.flick),o=t.getCurrentPanel(),s=t.getNearestPanel(),l=this.calcBrinkOfChange(e),c=s.getIndex()===o.getIndex(),h=t.canSetBoundMode()&&c,u=!t.isOutOfBound()&&(i<=l||h);return 1<r&&l<a?this.findSnappedPanel(e):u?this.findAdjacentPanel(e):{panel:s,duration:t.options.duration,destPos:t.findEstimatedPosition(s),eventType:i<=l||t.isOutOfBound()&&c?y.RESTORE:y.CHANGE}},t.findSnappedPanel=function(e){for(var t=e.axesEvent,n=e.viewport,i=e.state,r=e.isNextDirection,a=Math.abs(t.delta.flick),o=this.calcBrinkOfChange(e),s=this.count,l=n.options,c=n.getScrollAreaSize(),h=l.gap/2,u=t.destPos.flick+n.getRelativeHangerPosition(),g=n.getNearestPanel(),f=g.getCloneIndex()+1,d=0;d<s;){var p=g.getOriginalPanel(),v=p.getPosition()+f*c,P=p.getSize();if(r&&u<v+P+h||!r&&v-h<u)break;var m=r?g.nextSibling:g.prevSibling;if(!m)break;var x=g.getIndex(),E=m.getIndex();(r&&E<=x||!r&&x<=E)&&(f=r?f+1:f-1),g=m,d+=1}var C=g.getOriginalPanel().getPosition();0!==f&&(g=g.clone(g.getCloneIndex(),!0)).setPosition(C+f*c);var b=n.options.duration,S=I(t.duration,b,b*d);return{panel:g,destPos:n.findEstimatedPosition(g),duration:S,eventType:Math.max(a,i.delta)>o?y.CHANGE:y.RESTORE}},t.findAdjacentPanel=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentIndex(),a=t.panelManager.get(r),o=t.getHangerPosition(),s=t.getScrollArea(),l=a.getIdenticalPanels()[1],c=i.circular&&Math.abs(a.getAnchorPosition()-o)>Math.abs(l.getAnchorPosition()-o)?l:a,h=c.getPosition(),u=n?c.nextSibling:c.prevSibling,g=u?y.CHANGE:y.RESTORE,f=u||c,d=f.getRelativeAnchorPosition(),p=(i.circular?n?h+c.getSize()+d+i.gap:h-(f.getSize()-d)-i.gap:f.getAnchorPosition())-t.getRelativeHangerPosition();return{panel:f,destPos:t.canSetBoundMode()?I(p,s.prev,s.next):p,duration:i.duration,eventType:g}},e}(function(){function e(){}var t=e.prototype;return t.is=function(e){return e===this.type},t.findRestorePanel=function(e){var t=e.viewport,n=t.options,i=n.circular?this.findRestorePanelInCircularMode(e):t.getCurrentPanel();return{panel:i,destPos:t.findEstimatedPosition(i),duration:n.duration,eventType:y.RESTORE}},t.findPanelWhenInterrupted=function(e){var t=e.state,n=e.viewport,i=t.targetPanel;return{panel:i,destPos:n.findEstimatedPosition(i),duration:n.options.duration,eventType:""}},t.calcBrinkOfChange=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentPanel(),a=i.gap/2,o=r.getRelativeAnchorPosition(),s=n?r.getSize()-o+a:o+a;return s=Math.max(s,i.threshold)},t.findRestorePanelInCircularMode=function(e){var t=e.viewport,n=t.getCurrentPanel().getOriginalPanel(),i=t.getHangerPosition(),r=n.getIdenticalPanels()[1],a=Math.abs(n.getAnchorPosition()-i)>Math.abs(r.getAnchorPosition()-i);return!e.isNextDirection&&a?r:n},e}()),U=function(u){function e(){var e=u.call(this,1/0)||this;return e.type=l.FREE_SCROLL,e}a(e,u);var t=e.prototype;return t.findTargetPanel=function(e){var t=e.axesEvent,n=e.state,i=e.viewport,r=t.destPos.flick,a=this.calcBrinkOfChange(e),o=i.getScrollArea(),s=i.getCurrentPanel(),l=i.options;if(a<Math.abs(t.delta.flick+n.delta)){var c=u.prototype.findSnappedPanel.call(this,e);return c.duration=t.duration,c.destPos=r,c.eventType=l.circular||c.panel!==s?y.CHANGE:"",c}var h=l.circular?B(r,o.prev,o.next,!1):r;return h=I(h,o.prev,o.next),h+=i.getRelativeHangerPosition(),{panel:i.findNearestPanelAt(h),destPos:r,duration:t.duration,eventType:""}},t.findRestorePanel=function(e){return this.findTargetPanel(e)},t.findPanelWhenInterrupted=function(e){var t=e.viewport;return{panel:t.getNearestPanel(),destPos:t.getCameraPosition(),duration:0,eventType:""}},t.calcBrinkOfChange=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentPanel(),a=i.gap/2,o=t.stateMachine.getState().lastPosition,s=r.getPosition(),l=o+t.getRelativeHangerPosition(),c=t.getScrollAreaSize(),h=n?s+r.getSize()-l+a:l-s+a;return h=Math.abs(h%c),Math.min(h,c-h)},e}(Y),W=function(){function e(e,t,n){var i=this;this.plugins=[],this.stopCamera=function(e){e&&e.setTo&&e.setTo({flick:i.state.position},0),i.stateMachine.transitTo(A)},this.flicking=e,this.triggerEvent=n,this.state={size:0,position:0,panelMaintainRatio:0,relativeHangerPosition:0,positionOffset:0,scrollArea:{prev:0,next:0},visibleIndex:{min:NaN,max:NaN},translate:P,infiniteThreshold:0,checkedIndexes:[],isAdaptiveCached:!1,isViewportGiven:!1,isCameraGiven:!1,originalViewportStyle:{className:null,style:null},originalCameraStyle:{className:null,style:null},cachedBbox:null},this.options=t,this.stateMachine=new q,this.visiblePanels=[],this.panelBboxes={},this.build()}var t=e.prototype;return t.moveTo=function(e,t,n,i,r){var a=this;void 0===r&&(r=this.options.duration);var o,s=this.state,l=this.stateMachine.getState(),c=s.position,h=!!i&&i.isTrusted,u=t===c?null:c<t?z.NEXT:z.PREV;return(o=n===y.CHANGE?this.triggerEvent(y.CHANGE,i,h,{index:e.getIndex(),panel:e,direction:u}):n===y.RESTORE?this.triggerEvent(y.RESTORE,i,h):{onSuccess:function(e){return e(),this},onStopped:function(){return this}}).onSuccess(function(){l.delta=0,l.lastPosition=a.getCameraPosition(),l.targetPanel=e,l.direction=t===c?null:c<t?z.NEXT:z.PREV,t===c&&(a.nearestPanel=e,a.currentPanel=e),i&&i.setTo?i.setTo({flick:t},r):a.axes.setTo({flick:t},r)}),o},t.moveCamera=function(e,t){var n=this.state,i=this.options,r=n.translate.name,a=n.scrollArea;i.circular&&!S(e,a.prev,a.next)&&(e=B(e,a.prev,a.next,!1)),n.position=e,this.nearestPanel=this.findNearestPanel();var o=this.nearestPanel,s=o?o.getPosition():0;if(o){var l=this.getHangerPosition(),c=o.getPosition(),h=o.getSize(),u=i.gap/2;n.panelMaintainRatio=(l-c+u)/(h+2*u)}else n.panelMaintainRatio=0;this.checkNeedPanel(t),e+=(o?o.getPosition():0)-s,n.position=e,this.updateVisiblePanels();var g=i.renderOnlyVisible?n.positionOffset:0,f=(i.horizontal?[-(e-g),0]:[0,-(e-g)]).map(function(e){return Math.round(e)+"px"}).join(", ");this.cameraElement.style[r]=n.translate.has3d?"translate3d("+f+", 0px)":"translate("+f+")"},t.unCacheBbox=function(){var e=this.state,t=this.options;e.cachedBbox=null,e.visibleIndex={min:NaN,max:NaN};var n=this.viewportElement;t.horizontal?n.style.height="":n.style.width="",e.isAdaptiveCached=!1,this.panelBboxes={}},t.resize=function(){this.updateSize(),this.updateOriginalPanelPositions(),this.updateAdaptiveSize(),this.updateScrollArea(),this.updateClonePanels(),this.updateCameraPosition(),this.updatePlugins()},t.findNearestPanel=function(){var e=this.state,t=this.panelManager,n=this.getHangerPosition();return this.isOutOfBound()?e.position<=e.scrollArea.prev?t.firstPanel():t.lastPanel():this.findNearestPanelAt(n)},t.findNearestPanelAt=function(e){for(var t,n=1/0,i=0,r=this.panelManager.allPanels();i<r.length;i++){var a=r[i];if(a){var o=a.getPosition(),s=o+a.getSize(),l=S(e,o,s)?0:Math.min(Math.abs(o-e),Math.abs(s-e));if(n<l)break;if(l===n&&Math.abs(e-t.getAnchorPosition())<Math.abs(e-a.getAnchorPosition()))break;n=l,t=a}}return t},t.findNearestIdenticalPanel=function(e){var i=e,r=1/0,a=this.getHangerPosition();return e.getIdenticalPanels().forEach(function(e){var t=e.getAnchorPosition(),n=Math.abs(t-a);n<r&&(i=e,r=n)}),i},t.findShortestPositionToPanel=function(e){var t=this.state,n=this.options,i=e.getAnchorPosition(),r=this.getHangerPosition(),a=Math.abs(r-i),o=t.scrollArea.next-t.scrollArea.prev;if(n.circular)return a<=o-a?i-t.relativeHangerPosition:r<i?i-t.relativeHangerPosition-o:i-t.relativeHangerPosition+o;var s=i-t.relativeHangerPosition;return this.canSetBoundMode()?I(s,t.scrollArea.prev,t.scrollArea.next):s},t.findEstimatedPosition=function(e){var t=this.getScrollArea(),n=e.getAnchorPosition()-this.getRelativeHangerPosition();return n=this.canSetBoundMode()?I(n,t.prev,t.next):n},t.addVisiblePanel=function(e){this.getVisibleIndexOf(e)<0&&this.visiblePanels.push(e)},t.enable=function(){this.panInput.enable()},t.disable=function(){this.panInput.disable()},t.insert=function(r,e){var n=this,t=this.panelManager.getLastIndex();if(r<0||t<r)return[];var a=this.state,i=this.options,o=x(e).map(function(e,t){return new L(e,r+t,n)}).slice(0,t-r+1);if(o.length<=0)return[];var s=this.panelManager.insert(r,o);if(this.resizePanels(o),!this.currentPanel){this.currentPanel=o[0],this.nearestPanel=o[0];var l=o[0],c=this.findEstimatedPosition(l);a.position=c,this.updateAxesPosition(c),a.panelMaintainRatio=(l.getRelativeAnchorPosition()+i.gap/2)/(l.getSize()+i.gap)}return this.updateCheckedIndexes({min:r,max:r}),a.checkedIndexes.forEach(function(e,t){var n=e[0],i=e[1];r<n&&a.checkedIndexes.splice(t,1,[n+s,i+s])}),a.visibleIndex={min:NaN,max:NaN},this.resize(),o},t.replace=function(n,e){var i=this,t=this.state,r=this.options,a=this.panelManager,o=a.getLastIndex();if(n<0||o<n)return[];var s=x(e).map(function(e,t){return new L(e,n+t,i)}).slice(0,o-n+1);if(s.length<=0)return[];a.replace(n,s).forEach(function(e){var t=i.getVisibleIndexOf(e);-1<t&&i.visiblePanels.splice(t,1)}),this.resizePanels(s);var l=this.currentPanel;if(!l){this.currentPanel=s[0],this.nearestPanel=s[0];var c=s[0],h=this.findEstimatedPosition(c);t.position=h,this.updateAxesPosition(h),t.panelMaintainRatio=(c.getRelativeAnchorPosition()+r.gap/2)/(c.getSize()+r.gap)}else S(l.getIndex(),n,n+s.length-1)&&(this.currentPanel=a.get(l.getIndex()));return this.updateCheckedIndexes({min:n,max:n+s.length-1}),t.visibleIndex={min:NaN,max:NaN},this.resize(),s},t.remove=function(e,t){void 0===t&&(t=1);var n=this.state;e=Math.max(e,0);var i=this.panelManager,r=this.getCurrentIndex(),a=i.remove(e,t);if(S(r,e,e+t-1)){var o=Math.max(e-1,i.getRange().min);this.currentPanel=i.get(o)}0<t&&(this.updateCheckedIndexes({min:e-1,max:e+t}),n.visibleIndex={min:NaN,max:NaN}),i.getPanelCount()<=0&&(this.currentPanel=void 0,this.nearestPanel=void 0),this.resize();var s=n.scrollArea;if(n.position<s.prev||n.position>s.next){var l=B(n.position,s.prev,s.next,!1);this.moveCamera(l),this.updateAxesPosition(l)}return a},t.updateAdaptiveSize=function(){var e=this.state,t=this.options,i=t.horizontal,n=this.getCurrentPanel();if(n){var r=t.adaptive||!e.isAdaptiveCached,a=this.viewportElement.style;if(r){var o=void 0;if(t.adaptive){var s=n.getBbox();o=i?s.height:s.width}else{o=this.panelManager.originalPanels().reduce(function(e,t){var n=t.getBbox();return Math.max(e,i?n.height:n.width)},0)}var l=this.updateBbox();o=Math.max(o,i?l.height:l.width),e.isAdaptiveCached=!0;var c=o+"px";i?a.height=c:i||(a.width=c)}}},t.updateBbox=function(){var e=this.state,t=this.options,n=this.viewportElement;return e.cachedBbox||(e.cachedBbox=H(n,t.useOffset)),e.cachedBbox},t.updatePlugins=function(){var t=this;this.plugins.forEach(function(e){e.update&&e.update(t.flicking)})},t.destroy=function(t){var e=this.state,n=this.flicking.getElement(),i=this.viewportElement,r=this.cameraElement,a=this.panelManager.originalPanels();if(this.removePlugins(this.plugins),!t.preserveUI&&(V(i,e.originalViewportStyle),V(r,e.originalCameraStyle),!e.isCameraGiven&&!this.options.renderExternal)){var o=e.isViewportGiven?i:n,s=e.isViewportGiven?r:i;a.forEach(function(e){o.appendChild(e.getElement())}),o.removeChild(s)}for(var l in this.axes.destroy(),this.panInput.destroy(),a.forEach(function(e){e.destroy(t)}),this)this[l]=null},t.restore=function(e){var t=e.panels,n=this.options.defaultIndex,i=this.cameraElement,r=this.panelManager;i.innerHTML=t.map(function(e){return e.html}).join(""),this.refreshPanels();var a=r.originalPanels(),o=[];t.forEach(function(e,t){var n=a[t];n.setIndex(e.index),o[e.index]=n}),r.replacePanels(o,[]),r.setCloneCount(0);var s=r.getPanelCount();this.nearestPanel=0<s?(this.currentPanel=r.get(e.index)||r.get(n)||r.firstPanel(),this.currentPanel):void(this.currentPanel=void 0),this.visiblePanels=o.filter(function(e){return Boolean(e)}),this.resize(),this.axes.setTo({flick:e.position},0),this.moveCamera(e.position)},t.calcVisiblePanels=function(){var e=this.panelManager.allPanels();if(this.options.renderOnlyVisible){var t=this.state.visibleIndex,n=t.min,i=t.max;return(0<=n?e.slice(n,i+1):e.slice(0,i+1).concat(e.slice(n))).filter(function(e){return e})}return e.filter(function(e){var t=e.getOutsetProgress();return-1<t&&t<1})},t.getCurrentPanel=function(){return this.currentPanel},t.getCurrentIndex=function(){var e=this.currentPanel;return e?e.getIndex():-1},t.getNearestPanel=function(){return this.nearestPanel},t.getCurrentProgress=function(){var e=this.stateMachine.getState(),t=e.playing||e.holding?this.nearestPanel:this.currentPanel,n=this.panelManager;if(!t)return NaN;var i=this.getScrollArea(),r=i.prev,a=i.next,o=this.getCameraPosition(),s=this.isOutOfBound(),l=t.prevSibling,c=t.nextSibling,h=this.getHangerPosition(),u=t.getAnchorPosition();s&&l&&c&&o<a&&h-l.getAnchorPosition()<u-h&&(c=(t=l).nextSibling,l=t.prevSibling,u=t.getAnchorPosition());var g=t.getIndex()+(t.getCloneIndex()+1)*n.getPanelCount(),f=t.getSize();if(s){var d=this.getRelativeHangerPosition();a+d<u?h=u+h-d-a:u<r+d&&(h=u+h-d-r)}var p=u<=h,v=this.options.gap,P=u,m=u;p?m=c?c.getAnchorPosition():u+f+v:P=l?l.getAnchorPosition():u-f-v;var x=(h-P)/(m-P);return(p?g:l?l.getIndex():g-1)+x},t.updateAxesPosition=function(e){var t=this.axes;t.off(),t.setTo({flick:e},0),t.on(this.axesHandlers)},t.getSize=function(){return this.state.size},t.getScrollArea=function(){return this.state.scrollArea},t.isOutOfBound=function(){var e=this.state,t=this.options,n=e.scrollArea;return!t.circular&&t.bound&&(e.position<=n.prev||e.position>=n.next)},t.canSetBoundMode=function(){var e=this.state,t=this.options,n=this.panelManager.lastPanel();if(!n)return!1;var i=n.getPosition()+n.getSize();return t.bound&&!t.circular&&i>=e.size},t.getViewportElement=function(){return this.viewportElement},t.getCameraElement=function(){return this.cameraElement},t.getScrollAreaSize=function(){var e=this.state.scrollArea;return e.next-e.prev},t.getRelativeHangerPosition=function(){return this.state.relativeHangerPosition},t.getHangerPosition=function(){return this.state.position+this.state.relativeHangerPosition},t.getCameraPosition=function(){return this.state.position},t.getPositionOffset=function(){return this.state.positionOffset},t.getCheckedIndexes=function(){return this.state.checkedIndexes},t.getVisibleIndex=function(){return this.state.visibleIndex},t.getVisiblePanels=function(){return this.visiblePanels},t.setCurrentPanel=function(e){this.currentPanel=e},t.setLastIndex=function(e){var t=this.currentPanel,n=this.panelManager;n.setLastIndex(e),t&&t.getIndex()>e&&(this.currentPanel=n.lastPanel()),this.resize()},t.setVisiblePanels=function(e){this.visiblePanels=e},t.connectAxesHandler=function(e){var t=this.axes;this.axesHandlers=e,t.on(e)},t.addPlugins=function(e){var t=this,n=[].concat(e);return n.forEach(function(e){e.init(t.flicking)}),this.plugins=this.plugins.concat(n),this},t.removePlugins=function(e){var n=this,i=this.plugins;return[].concat(e).forEach(function(e){var t=i.indexOf(e);-1<t&&i.splice(t,1),e.destroy(n.flicking)}),this},t.updateCheckedIndexes=function(r){var a=this.state,o=0;a.checkedIndexes.concat().forEach(function(e,t){var n=e[0],i=e[1];r.min<=i&&r.max>=n&&(a.checkedIndexes.splice(t-o,1),o++)})},t.resetVisibleIndex=function(){var e=this.state.visibleIndex;e.min=NaN,e.max=NaN},t.appendUncachedPanelElements=function(e){var n=this,i=this.options,r=document.createDocumentFragment();if(i.isEqualSize){var t=this.visiblePanels,a=i.isEqualSize,o={};this.visiblePanels=[],Object.keys(this.panelBboxes).forEach(function(e){o[e]=!0}),e.forEach(function(e){var t=e.getOverlappedClass(a);t&&!o[t]?(i.renderExternal||r.appendChild(e.getElement()),n.visiblePanels.push(e),o[t]=!0):t||(i.renderExternal||r.appendChild(e.getElement()),n.visiblePanels.push(e))}),t.forEach(function(e){n.addVisiblePanel(e)})}else i.renderExternal||e.forEach(function(e){return r.appendChild(e.getElement())}),this.visiblePanels=e.filter(function(e){return Boolean(e)});i.renderExternal||this.cameraElement.appendChild(r)},t.updateClonePanels=function(){var e=this.panelManager;this.options.circular&&0<e.getPanelCount()&&(this.clonePanels(),this.updateClonedPanelPositions()),e.chainAllPanels()},t.getVisibleIndexOf=function(t){return O(this.visiblePanels,function(e){return e===t})},t.build=function(){this.setElements(),this.applyCSSValue(),this.setMoveType(),this.setAxesInstance(),this.refreshPanels(),this.setDefaultPanel(),this.resize(),this.moveToDefaultPanel()},t.setElements=function(){var e=this.state,t=this.options,n=this.flicking.getElement(),i=t.classPrefix,r=n.children[0],a=r&&C(r,i+"-viewport"),o=a?r:document.createElement("div"),s=a?o.children[0]:n.children[0],l=s&&C(s,i+"-camera"),c=l?s:document.createElement("div");l?e.originalCameraStyle={className:c.getAttribute("class"),style:c.getAttribute("style")}:(c.className=i+"-camera",w(a?o.children:n.children).forEach(function(e){c.appendChild(e)}));a?e.originalViewportStyle={className:o.getAttribute("class"),style:o.getAttribute("style")}:(o.className=i+"-viewport",n.appendChild(o)),l&&a||o.appendChild(c),this.viewportElement=o,this.cameraElement=c,e.isViewportGiven=a,e.isCameraGiven=l},t.applyCSSValue=function(){var e=this.options,t=this.viewportElement,n=this.cameraElement,i=this.viewportElement.style;b(t,s),b(n,h),t.style.zIndex=""+e.zIndex,e.horizontal?(i.minHeight="100%",i.width="100%"):(i.minWidth="100%",i.height="100%"),e.overflow&&(i.overflow="visible"),this.panelManager=new D(this.cameraElement,e)},t.setMoveType=function(){var e=this.options.moveType;switch(e.type){case l.SNAP:this.moveType=new Y(e.count);break;case l.FREE_SCROLL:this.moveType=new U;break;default:throw new Error("moveType is not correct!")}},t.setAxesInstance=function(){var e=this.state,t=this.options,n=e.scrollArea,i=t.horizontal;this.axes=new r({flick:{range:[n.prev,n.next],circular:t.circular,bounce:[0,0]}},{easing:t.panelEffect,deceleration:t.deceleration,interruptable:!0}),this.panInput=new r.PanInput(this.viewportElement,{inputType:t.inputType,thresholdAngle:t.thresholdAngle,scale:t.horizontal?[-1,0]:[0,-1]}),this.axes.connect(i?["flick",""]:["","flick"],this.panInput)},t.refreshPanels=function(){var n=this,e=this.panelManager,t=w(this.cameraElement.children).map(function(e,t){return new L(e,t,n)});e.replacePanels(t,[]),this.visiblePanels=t.filter(function(e){return Boolean(e)})},t.setDefaultPanel=function(){var e=this.options,t=this.panelManager,n=this.panelManager.getRange(),i=I(e.defaultIndex,n.min,n.max);this.currentPanel=t.get(i)},t.clonePanels=function(){var e=this.state,t=this.options,r=this.panelManager,n=t.gap,i=e.size,a=r.firstPanel(),o=r.lastPanel();if(a){for(var s,l=r.originalPanels(),c=l.concat().reverse(),h=o.getPosition()+o.getSize()-a.getPosition()+n,u=a.getRelativeAnchorPosition(),g=this.getRelativeHangerPosition(),f=(g-u)%h,d=0,p=0,v=c;p<v.length;p++){if((C=v[p])&&f<=(d+=C.getSize()+n)){s=C;break}}for(var P,m=(i-g+u)%h,x=d=0,E=l;x<E.length;x++){var C;if((C=E[x])&&m<=(d+=C.getSize()+n)){P=C;break}}var b=0!==s.getIndex()&&s.getIndex()<=P.getIndex(),S=Math.ceil((g+a.getSize()-u)/h)+Math.ceil((i-g+u)/h)-1+(b?1:0),I=r.getCloneCount();if(r.setCloneCount(S),!t.renderExternal)if(I<S)for(var w=function(t){var e,n=l.map(function(e){return e.clone(t)}),i=document.createDocumentFragment();n.forEach(function(e){return i.appendChild(e.getElement())}),y.cameraElement.appendChild(i),(e=y.visiblePanels).push.apply(e,n.filter(function(e){return Boolean(e)})),r.insertClones(t,0,n)},y=this,A=I;A<S;A++)w(A);else S<I&&r.removeClonesAfter(S)}},t.moveToDefaultPanel=function(){var e=this.state,t=this.panelManager,n=this.options,i=this.panelManager.getRange(),r=I(n.defaultIndex,i.min,i.max),a=t.get(r),o=0;a&&(o=a.getAnchorPosition()-e.relativeHangerPosition,o=this.canSetBoundMode()?I(o,e.scrollArea.prev,e.scrollArea.next):o),this.moveCamera(o),this.axes.setTo({flick:o},0)},t.updateSize=function(){var e=this.state,t=this.options,n=this.panelManager.originalPanels().filter(function(e){return Boolean(e)}),i=this.updateBbox(),r=e.size;e.size=t.horizontal?i.width:i.height,r!==e.size&&(e.relativeHangerPosition=T(t.hanger,e.size),e.infiniteThreshold=T(t.infiniteThreshold,e.size)),n.length<=0||this.resizePanels(n)},t.updateOriginalPanelPositions=function(){var i=this.options.gap,e=this.panelManager,t=e.firstPanel(),n=e.originalPanels();if(t){var r=this.currentPanel,a=this.nearestPanel,o=this.stateMachine.getState(),s=this.state.scrollArea,l=t.getPosition(),c=t;if(a)c=!S(o.lastPosition+o.delta,s.prev,s.next)?r:a;else 0<t.getIndex()&&(c=r);var h=n.slice(0,c.getIndex()+(c.getCloneIndex()+1)*n.length).reduce(function(e,t){return e+t.getSize()+i},0);l=c.getPosition()-h,n.forEach(function(e){var t=l,n=e.getSize();e.setPosition(t),l+=n+i}),this.options.renderOnlyVisible||n.forEach(function(e){return e.setPositionCSS()})}},t.updateClonedPanelPositions=function(){var e=this.state,t=this.options,n=this.panelManager,i=n.clonedPanels().reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return Boolean(e)}),r=e.scrollArea,a=n.firstPanel(),o=n.lastPanel();if(a){for(var s=o.getPosition()+o.getSize()-a.getPosition()+t.gap,l=0,c=i;l<c.length;l++){var h=(p=c[l]).getOriginalPanel(),u=s*(p.getCloneIndex()+1)+h.getPosition();p.setPosition(u)}for(var g=a.getPosition(),f=0,d=i.concat().reverse();f<d.length;f++){var p,v=(p=d[f]).getSize(),P=g-v-t.gap;if(P+v<=r.prev)break;p.setPosition(P),g=P}this.options.renderOnlyVisible||i.forEach(function(e){e.setPositionCSS()})}},t.updateScrollArea=function(){var e=this.state,t=this.panelManager,n=this.options,i=this.axes,r=t.firstPanel(),a=t.lastPanel(),o=e.relativeHangerPosition;if(r)if(this.canSetBoundMode())e.scrollArea={prev:r.getPosition(),next:a.getPosition()+a.getSize()-e.size};else if(n.circular){var s=a.getPosition()+a.getSize()-r.getPosition()+n.gap;e.scrollArea={prev:r.getAnchorPosition()-o,next:s+r.getAnchorPosition()-o}}else e.scrollArea={prev:r.getAnchorPosition()-o,next:a.getAnchorPosition()-o};else e.scrollArea={prev:0,next:0};var l,c,h=e.size,u=n.bounce;if((c=u)&&c.constructor===Array)l=u.map(function(e){return T(e,h,d.bounce)});else{var g=T(u,h,d.bounce);l=[g,g]}var f=i.axis.flick;f.range=[e.scrollArea.prev,e.scrollArea.next],f.bounce=l},t.updateCameraPosition=function(){var e=this.state,t=this.getCurrentPanel(),n=this.stateMachine.getState(),i=this.moveType.is(l.FREE_SCROLL),r=this.getRelativeHangerPosition(),a=this.options.gap/2;if(n.holding||n.playing)this.updateVisiblePanels();else{var o;if(i){var s=this.getNearestPanel();o=s?s.getPosition()-a+(s.getSize()+2*a)*e.panelMaintainRatio-r:this.getCameraPosition()}else o=t?t.getAnchorPosition()-r:this.getCameraPosition();this.canSetBoundMode()&&(o=I(o,e.scrollArea.prev,e.scrollArea.next)),this.updateAxesPosition(o),this.moveCamera(o)}},t.checkNeedPanel=function(e){var t=this.state,n=this.options,i=this.panelManager,r=this.currentPanel,a=this.nearestPanel,o=this.stateMachine.getState();if(n.infinite){var s=n.gap,l=t.infiniteThreshold,c=i.getLastIndex();if(!(c<0))if(r&&a){for(var h=a.getPosition(),u=o.holding||o.playing?a:r;u;){var g=u.getIndex(),f=u.nextSibling,d=!(g===(E=i.lastPanel()).getIndex())&&f?f.getIndex():c+1,p=a.getPosition(),v=u.getPosition()+u.getSize()-(p-h)+s-l<=t.position+t.size;if(1<d-g&&v&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.NEXT,indexRange:{min:g+1,max:d-1,length:d-g-1}}),n.circular&&g===c&&v){var P=(x=i.firstPanel())?x.getIndex():-1;0<P&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.NEXT,indexRange:{min:0,max:P-1,length:P}})}var m=i.lastPanel();if(m&&g===m.getIndex()||!v)break;u=u.nextSibling}for(u=a;u;){var x,E,C=t.position,b=u.getIndex(),S=u.prevSibling,I=!(b===(x=i.firstPanel()).getIndex())&&S?S.getIndex():-1;p=a.getPosition(),v=C<=u.getPosition()-(p-h)-s+l;if(1<b-I&&v&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.PREV,indexRange:{min:I+1,max:b-1,length:b-I-1}}),n.circular&&0===b&&v)if((E=i.lastPanel())&&E.getIndex()<c){var w=E.getIndex();this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.PREV,indexRange:{min:w+1,max:c,length:c-w}})}var y=i.firstPanel();if(y&&b===y.getIndex()||!v)break;u=u.prevSibling}}else this.triggerNeedPanel({axesEvent:e,siblingPanel:null,direction:null,indexRange:{min:0,max:c,length:c+1}})}},t.triggerNeedPanel=function(e){var r=this,t=e.axesEvent,a=e.siblingPanel,o=e.direction,s=e.indexRange,l=this.options,n=this.state.checkedIndexes,i=n.some(function(e){var t=e[0],n=e[1];return t===s.min||n===s.max}),c=this.flicking.hasOn(y.NEED_PANEL);if(!i&&c){n.push([s.min,s.max]);var h=a?a.getIndex():0,u=!!t&&t.isTrusted;this.triggerEvent(y.NEED_PANEL,t,u,{index:h,panel:a,direction:o,range:s,fill:function(e){var t=r.panelManager;if(!a)return r.insert(t.getRange().max+1,e);var n=x(e),i=o===z.NEXT?n.slice(0,s.length):n.slice(-s.length);return o===z.NEXT?l.circular&&h===t.getLastIndex()?r.insert(0,i):a.insertAfter(i):o===z.PREV?l.circular&&0===h?r.insert(s.max-i.length+1,i):a.insertBefore(i):r.insert(0,i)}})}},t.updateVisiblePanels=function(){var t=this.state,e=this.options,n=this.cameraElement,i=t.visibleIndex,r=e.renderExternal;if(e.renderOnlyVisible)if(this.nearestPanel){var a=this.calcNewVisiblePanelIndex();if(a.min!==i.min||a.max!==i.max){if(t.visibleIndex=a,isNaN(a.min)||isNaN(a.max))return;var o=this.visiblePanels,s=this.calcVisiblePanels(),l=this.checkVisiblePanelChange(o,s),c=l.addedPanels,h=l.removedPanels;if(0<s.length){var u=s[0].getPosition();t.positionOffset=u}if(s.forEach(function(e){e.setPositionCSS(t.positionOffset)}),!r){h.forEach(function(e){var t=e.getElement();t.parentNode&&n.removeChild(t)});var g=document.createDocumentFragment();c.forEach(function(e){g.appendChild(e.getElement())}),n.appendChild(g)}this.visiblePanels=s,this.flicking.trigger(y.VISIBLE_CHANGE,{type:y.VISIBLE_CHANGE,range:{min:a.min,max:a.max}})}else this.visiblePanels.forEach(function(e){return e.setPositionCSS(t.positionOffset)})}else for(this.resetVisibleIndex();n.firstChild;)n.removeChild(n.firstChild)},t.calcNewVisiblePanelIndex=function(){var t=this.getCameraPosition(),n=this.getSize(),e=this.nearestPanel,i=this.panelManager,r=i.getRange().max+1,a=i.getCloneCount(),o=function(e,t,n){for(var i=e;;){var r=t(i);if(!r||n(r))break;i=r}return i},s=o(e,function(e){var t=e.nextSibling;return t&&t.getPosition()>=e.getPosition()?t:null},function(e){return e.getPosition()>=t+n}),l=o(e,function(e){var t=e.prevSibling;return t&&t.getPosition()<=e.getPosition()?t:null},function(e){return e.getPosition()+e.getSize()<=t}),c=l.getCloneIndex(),h=r*(s.getCloneIndex()+1),u=-1<c?r*(a-c):0,g={min:-1<e.getCloneIndex()?l.getIndex()+u:l.getIndex()-u,max:s.getIndex()+h};return 0===l.getIndex()&&0===l.getCloneIndex()&&(g.min=r),g},t.checkVisiblePanelChange=function(i,r){var a=i.map(function(){return 0}),o=r.map(function(){return 0});return i.forEach(function(n,i){r.forEach(function(e,t){n===e&&(a[i]++,o[t]++)})}),{removedPanels:a.reduce(function(e,t,n){return 0===t?e.concat([i[n]]):e},[]),addedPanels:o.reduce(function(e,t,n){return 0===t?e.concat([r[n]]):e},[])}},t.resizePanels=function(e){var t=this.options,n=this.panelBboxes;if(!0!==t.isEqualSize)if(t.isEqualSize){var i=t.isEqualSize;e.forEach(function(e){var t=e.getOverlappedClass(i);t?(e.resize(n[t]),n[t]=e.getBbox()):e.resize()})}else e.forEach(function(e){e.resize()});else{if(!n.default){var r=e[0];n.default=r.getBbox()}var a=n.default;e.forEach(function(e){e.resize(a)})}},e}(),J="UA-70842526-24",K=Math.random()*Math.pow(10,20)/Math.pow(10,10);var Q=function(g){function e(e,t){void 0===t&&(t={});var n,u=g.call(this)||this;if(u.isPanelChangedAtBeforeSync=!1,u.resize=function(){var e=u.viewport,t=u.options,n=e.panelManager.allPanels();t.isConstantSize||n.forEach(function(e){return e.unCacheBbox()});var i=t.renderOnlyVisible&&!t.isConstantSize&&!0!==t.isEqualSize;return e.unCacheBbox(),e.updateBbox(),i&&e.appendUncachedPanelElements(n),e.resize(),u},u.triggerEvent=function(e,t,n,i){void 0===i&&(i={});var r=u.viewport,a=!0;if(r){var o=r.stateMachine.getState(),s=r.getScrollArea(),l=s.prev,c=s.next,h=R(r.getCameraPosition(),[l,l,c]);u.options.circular&&(h%=1),a=!g.prototype.trigger.call(u,e,m({type:e,index:u.getIndex(),panel:u.getCurrentPanel(),direction:o.direction,holding:o.holding,progress:h,axesEvent:t,isTrusted:n},i))}return{onSuccess:function(e){return a||e(),this},onStopped:function(e){return a&&e(),this}}},u.moveCamera=function(e){var t=u.viewport,n=t.stateMachine.getState(),i=u.options,r=e.pos.flick,a=t.getCameraPosition();if(e.isTrusted&&n.holding){var o=i.horizontal?e.inputEvent.offsetX:e.inputEvent.offsetY,s=r-a,l=o<0===r<a;if(i.circular&&l)s=(0<s?-1:1)*(t.getScrollAreaSize()-Math.abs(s));var c=0===s?n.direction:0<s?z.NEXT:z.PREV;n.direction=c}return n.delta+=e.delta.flick,t.moveCamera(r,e),u.triggerEvent(y.MOVE,e,e.isTrusted).onStopped(function(){t.moveCamera(a,e)})},E(e)){if(!(n=document.querySelector(e)))throw new Error("Base element doesn't exist.")}else{if(!e.nodeName||1!==e.nodeType)throw new Error("Element should be provided in string or HTMLElement.");n=e}u.wrapper=n,u.options=m({},d,t);var i=u.options,r=i.moveType;return r in o&&(i.moveType=o[r]),u.viewport=new W(u,u.options,u.triggerEvent),u.listenInput(),u.listenResize(),u.options.collectStatistics&&function(e,t,n){if(c)try{var i=window.innerWidth,r=window.innerHeight,a=window.screen||{width:i,height:r},o=["v=1","t=event","dl="+location.href,"ul="+(navigator.language||"en-us").toLowerCase(),"de="+(document.charset||document.inputEncoding||document.characterSet||"utf-8"),"dr="+document.referrer,"dt="+document.title,"sr="+a.width+"x"+a.height,"vp="+i+"x"+r,"ec="+e,"ea="+t,"el="+JSON.stringify(n),"cid="+K,"tid="+J,"cd1=3.4.2","z="+Math.floor(1e7*Math.random())],s=new XMLHttpRequest;s.open("GET","https://www.google-analytics.com/collect?"+o.join("&")),s.send()}catch(e){}}("usage","options",t),u}a(e,g);var t=e.prototype;return t.prev=function(e){var t=this.getCurrentPanel(),n=this.viewport.stateMachine.getState();if(t&&n.type===A){var i=t.prev();i&&i.focus(e)}return this},t.next=function(e){var t=this.getCurrentPanel(),n=this.viewport.stateMachine.getState();if(t&&n.type===A){var i=t.next();i&&i.focus(e)}return this},t.moveTo=function(e,t){var n=this.viewport,i=n.panelManager.get(e),r=n.stateMachine.getState();if(!i||r.type!==A)return this;var a=i.getAnchorPosition(),o=n.getHangerPosition(),s=i;if(this.options.circular){var l=n.getScrollAreaSize(),c=[a-l,a,a+l].reduce(function(e,t){return Math.abs(t-o)<Math.abs(e-o)?t:e},1/0)-i.getRelativeAnchorPosition(),h=i.getIdenticalPanels(),u=c-a;0<u?s=h[1]:u<0&&(s=h[h.length-1]),(s=s.clone(s.getCloneIndex(),!0)).setPosition(c)}var g=this.getIndex();if(o===s.getAnchorPosition()&&g===e)return this;var f=i.getIndex()===n.getCurrentIndex()?"":y.CHANGE;return n.moveTo(s,n.findEstimatedPosition(s),f,null,t),this},t.getIndex=function(){return this.viewport.getCurrentIndex()},t.getElement=function(){return this.wrapper},t.getCurrentPanel=function(){var e=this.viewport.getCurrentPanel();return e||null},t.getPanel=function(e){var t=this.viewport.panelManager.get(e);return t||null},t.getAllPanels=function(e){var t=this.viewport.panelManager;return(e?t.allPanels():t.originalPanels()).filter(function(e){return!!e})},t.getVisiblePanels=function(){return this.viewport.calcVisiblePanels()},t.getPanelCount=function(){return this.viewport.panelManager.getPanelCount()},t.getCloneCount=function(){return this.viewport.panelManager.getCloneCount()},t.getLastIndex=function(){return this.viewport.panelManager.getLastIndex()},t.setLastIndex=function(e){return this.viewport.setLastIndex(e),this},t.isPlaying=function(){return this.viewport.stateMachine.getState().playing},t.enableInput=function(){return this.viewport.enable(),this},t.disableInput=function(){return this.viewport.disable(),this},t.getStatus=function(){var e=this.viewport,t=e.panelManager.originalPanels().filter(function(e){return!!e}).map(function(e){return{html:e.getElement().outerHTML,index:e.getIndex()}});return{index:e.getCurrentIndex(),panels:t,position:e.getCameraPosition()}},t.setStatus=function(e){this.viewport.restore(e)},t.addPlugins=function(e){return this.viewport.addPlugins(e),this},t.removePlugins=function(e){return this.viewport.removePlugins(e),this},t.destroy=function(e){for(var t in void 0===e&&(e={}),this.off(),this.options.autoResize&&window.removeEventListener("resize",this.resize),this.viewport.destroy(e),this)this[t]=null},t.prepend=function(e){var t=this.viewport,n=x(e),i=Math.max(t.panelManager.getRange().min-n.length,0);return t.insert(i,n)},t.append=function(e){var t=this.viewport;return t.insert(t.panelManager.getRange().max+1,e)},t.replace=function(e,t){return this.viewport.replace(e,t)},t.remove=function(e,t){return void 0===t&&(t=1),this.viewport.remove(e,t)},t.getRenderingIndexes=function(e){var t=this.viewport,n=t.getVisibleIndex(),i=n.min,r=n.max,a=e.maintained.reduce(function(e,t){var n=t[0],i=t[1];return e[n]=i,e},{}),o=e.prevList.length,s=e.list.length,l=e.added,c=k(o*(this.getCloneCount()+1)),h=0<=i?c.slice(i,r+1):c.slice(0,r+1).concat(c.slice(i)),u=(h=h.filter(function(e){return null!=a[e%o]}).map(function(e){var t=Math.floor(e/o);return a[e%o]+s*t})).concat(l),g=t.panelManager.allPanels();return t.setVisiblePanels(u.map(function(e){return g[e]})),u},t.beforeSync=function(e){var t=this,n=e.maintained,o=e.added,i=e.changed,a=e.removed,r=this.viewport,s=r.panelManager,l=this.options.circular,c=s.getCloneCount(),h=s.clonedPanels(),u=r.getVisiblePanels().filter(function(t){return O(a,function(e){return e===t.getIndex()})<0});if(r.setVisiblePanels(u),o.length<=0&&a.length<=0&&i.length<=0&&c===h.length)return this;var g=s.originalPanels(),f=[],d=k(c).map(function(){return[]});n.forEach(function(e){var t=e[0],n=e[1];f[n]=g[t],f[n].setIndex(n)}),o.forEach(function(e){f[e]=new L(null,e,t.viewport)}),l&&k(c).forEach(function(i){var r=h[i],a=d[i];n.forEach(function(e){var t=e[0],n=e[1];a[n]=r?r[t]:f[n].clone(i,!1),a[n].setIndex(n)}),o.forEach(function(e){var t=f[e];a[e]=t.clone(i,!1)})}),o.forEach(function(e){r.updateCheckedIndexes({min:e,max:e})}),a.forEach(function(e){r.updateCheckedIndexes({min:e-1,max:e+1})});var p=r.getCheckedIndexes();p.forEach(function(e,t){var n=e[0],i=e[1],r=o.filter(function(e){return e<n&&s.has(e)}).length-a.filter(function(e){return e<n}).length;p.splice(t,1,[n+r,i+r])}),0<i.length&&n.forEach(function(e){var t=e[1];r.updateCheckedIndexes({min:t,max:t})}),s.replacePanels(f,d),this.isPanelChangedAtBeforeSync=!0},t.sync=function(e){var i=e.list,t=e.maintained,n=e.added,r=e.changed,a=e.removed;if(n.length<=0&&a.length<=0&&r.length<=0)return this;var o=this.viewport,s=this.options,l=s.renderOnlyVisible,c=s.circular,h=o.panelManager;if(!l){var u=h.getRange(),g=e;if(c){var f=u.max,d=i.length/(h.getCloneCount()+1)>>0,p=n.filter(function(e){return e<d}),v=a.filter(function(e){return e<=f});g={added:p,maintained:t.filter(function(e){return e[0]<=f}),removed:v,changed:r.filter(function(e){return e[0]<=f})}}this.beforeSync(g)}var P=l?o.getVisiblePanels():this.getAllPanels(!0);return n.forEach(function(e){var t=i[e],n=P[e];n.setElement(t),n.unCacheBbox()}),this.isPanelChangedAtBeforeSync&&(o.resetVisibleIndex(),this.isPanelChangedAtBeforeSync=!1),o.resize(),this},t.listenInput=function(){var n=this,e=n.viewport,i=e.stateMachine;n.eventContext={flicking:n,viewport:n.viewport,transitTo:i.transitTo,triggerEvent:n.triggerEvent,moveCamera:n.moveCamera,stopCamera:e.stopCamera};var r={},t=function(e){var t=f[e];r[t]=function(e){return i.fire(t,e,n.eventContext)}};for(var a in f)t(a);n.viewport.connectAxesHandler(r)},t.listenResize=function(){this.options.autoResize&&window.addEventListener("resize",this.resize)},e.VERSION="3.4.2",e.DIRECTION=z,e.EVENTS=y,e}(e);return Q.withFlickingMethods=function(e,a){Object.keys(t).forEach(function(r){e[r]||(e[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,i=(n=this[a])[r].apply(n,e);return i===this[a]?this:i})})},Q.DEFAULT_OPTIONS=d,Q.MOVE_TYPE=l,Q});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@egjs/component"),require("@egjs/axes")):"function"==typeof define&&define.amd?define(["@egjs/component","@egjs/axes"],t):((e=e||self).eg=e.eg||{},e.eg.Flicking=t(e.eg.Component,e.eg.Axes))}(this,function(e,r){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l={SNAP:"snap",FREE_SCROLL:"freeScroll"},o={snap:{type:"snap",count:1},freeScroll:{type:"freeScroll"}},c="undefined"!=typeof document,d={classPrefix:"eg-flick",deceleration:.0075,horizontal:!0,circular:!1,infinite:!1,infiniteThreshold:0,lastIndex:1/0,threshold:40,duration:100,panelEffect:function(e){return 1-Math.pow(1-e,3)},defaultIndex:0,inputType:["touch","mouse"],thresholdAngle:45,bounce:10,autoResize:!1,adaptive:!1,zIndex:2e3,bound:!1,overflow:!1,hanger:"50%",anchor:"50%",gap:0,moveType:o.snap,useOffset:!1,isEqualSize:!1,isConstantSize:!1,renderOnlyVisible:!1,renderExternal:!1,collectStatistics:!0},s={position:"relative",zIndex:d.zIndex,overflow:"hidden"},h={width:"100%",height:"100%",willChange:"transform"},u={position:"absolute"},y={HOLD_START:"holdStart",HOLD_END:"holdEnd",MOVE_START:"moveStart",MOVE:"move",MOVE_END:"moveEnd",CHANGE:"change",RESTORE:"restore",SELECT:"select",NEED_PANEL:"needPanel",VISIBLE_CHANGE:"visibleChange"},f={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},A=0,g=1,p=2,M=3,N=4,z={PREV:"PREV",NEXT:"NEXT"},t={prev:!0,next:!0,moveTo:!0,getIndex:!0,getAllPanels:!0,getCurrentPanel:!0,getElement:!0,getPanel:!0,getPanelCount:!0,getStatus:!0,getVisiblePanels:!0,setLastIndex:!0,enableInput:!0,disableInput:!0,destroy:!0,resize:!0,setStatus:!0,addPlugins:!0,removePlugins:!0,isPlaying:!0,getLastIndex:!0},v=function(){var e={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",OTransform:"-o-transform",transform:"transform"};if(!c)return{name:e.transform,has3d:!0};var t=document.documentElement.style,n="";for(var i in e)i in t&&(n=i);if(!n)throw new Error("Browser doesn't support CSS3 2D Transforms.");var r=document.createElement("div");document.documentElement.insertBefore(r,null),r.style[n]="translate3d(1px, 1px, 1px)";var a=window.getComputedStyle(r).getPropertyValue(e[n]);r.parentElement.removeChild(r);var o={name:n,has3d:0<a.length&&"none"!==a};return v=function(){return o},o},P=v();function m(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.forEach(function(n){Object.keys(n).forEach(function(e){var t=n[e];i[e]=t})}),i}function x(e){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){if(E(e)){var t=document.createElement("div");for(t.innerHTML=e,n.push.apply(n,w(t.children));t.firstChild;)t.removeChild(t.firstChild)}else n.push(e)}),n}function E(e){return"string"==typeof e}function C(e,t){return e.classList?e.classList.contains(t):0<=e.className.split(" ").indexOf(t)}function b(t,n){Object.keys(n).forEach(function(e){t.style[e]=n[e]})}function I(e,t,n){return Math.max(Math.min(e,n),t)}function S(e,t,n){return t<=e&&e<=n}function w(e){return[].slice.call(e)}function T(e,t,n){var i=null!=n?n:t/2,r=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if("number"==typeof e)return I(e,0,t);for(var a=0,o=0,s=r.exec(e);null!=s;){var l=s[1],c=s[2],h=s[3],u=parseFloat(c);if(a<=0&&(l=l||"+"),!l)return i;"%"===h&&(u=u/100*t),o+="+"===l?u:-u,++a,s=r.exec(e)}return 0===a?i:I(o,0,t)}function R(e,t){var n=t[0],i=t[1],r=t[2];return i<e&&r-i?(e-i)/(r-i):e<i&&i-n?(e-i)/(i-n):e!==i&&r-n?(e-n)/(r-n):0}function O(e,t){for(var n=0;n<e.length;n+=1){var i=e[n];if(i&&t(i))return n}return-1}function k(e){for(var t=[],n=0;n<e;n+=1)t[n]=n;return t}function B(e,t,n,i){var r=i?n-t+1:n-t;if(e<t)e=n-(i?(t-e-1)%r:(t-e)%r);else if(n<e){e=t+(i?(e-n-1)%r:(e-n)%r)}return e}function V(e,t){t.className?e.setAttribute("class",t.className):e.removeAttribute("class"),t.style?e.setAttribute("style",t.style):e.removeAttribute("style")}function H(e,t){var n;if(t)n={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight};else{var i=e.getBoundingClientRect();n={x:i.left,y:i.top,width:i.width,height:i.height}}return n}var L=function(){function l(e,t,n){this.viewport=n,this.prevSibling=null,this.nextSibling=null,this.clonedPanels=[],this.state={index:t,position:0,relativeAnchorPosition:0,size:0,isClone:!1,isVirtual:!1,cloneIndex:-1,originalStyle:{className:"",style:""},cachedBbox:null},this.setElement(e)}var e=l.prototype;return e.resize=function(e){var n=this.state,t=this.viewport.options,i=e||this.getBbox();this.state.cachedBbox=i;var r=n.size;n.size=t.horizontal?i.width:i.height,r!==n.size&&(n.relativeAnchorPosition=T(t.anchor,n.size)),n.isClone||this.clonedPanels.forEach(function(e){var t=e.state;t.size=n.size,t.cachedBbox=n.cachedBbox,t.relativeAnchorPosition=n.relativeAnchorPosition})},e.unCacheBbox=function(){this.state.cachedBbox=null},e.getProgress=function(){var e=this.viewport,t=e.options,n=e.panelManager.getPanelCount(),i=e.getScrollAreaSize();return(t.circular?Math.floor(this.getPosition()/i)*n:0)+this.getIndex()-e.getCurrentProgress()},e.getOutsetProgress=function(){var e=this.viewport,t=[-this.getSize(),e.getRelativeHangerPosition()-this.getRelativeAnchorPosition(),e.getSize()];return R(this.getPosition()-e.getCameraPosition(),t)},e.getVisibleRatio=function(){var e=this.viewport,t=this.getSize(),n=this.getPosition()-e.getCameraPosition(),i=n+t,r=Math.min(e.getSize(),i)-Math.max(n,0);return 0<=r?r/t:0},e.focus=function(e){var t=this.viewport,n=t.getCurrentPanel();if(t.getHangerPosition()!==this.getAnchorPosition()&&n){var i=n.getPosition()===this.getPosition()?"":y.CHANGE;t.moveTo(this,t.findEstimatedPosition(this),i,null,e)}},e.update=function(t,e){void 0===t&&(t=null),void 0===e&&(e=!0);var n=this.getIdenticalPanels();t&&n.forEach(function(e){t(e.getElement())}),e&&(n.forEach(function(e){e.unCacheBbox()}),this.viewport.addVisiblePanel(this),this.viewport.resize())},e.prev=function(){var e=this.viewport.options,t=this.prevSibling;if(!t)return null;var n=this.getIndex(),i=this.getPosition(),r=t.getIndex(),a=t.getPosition(),o=t.getSize(),s=1<n-r,l=e.infinite&&0<n&&n<r;if(s||l)return null;var c=i-o-e.gap,h=t;return a!==c&&(h=t.clone(t.getCloneIndex(),!0)).setPosition(c),h},e.next=function(){var e=this.viewport,t=e.options,n=this.nextSibling,i=e.panelManager.getLastIndex();if(!n)return null;var r=this.getIndex(),a=this.getPosition(),o=n.getIndex(),s=n.getPosition(),l=1<o-r,c=t.infinite&&r<i&&o<r;if(l||c)return null;var h=a+this.getSize()+t.gap,u=n;return s!==h&&(u=n.clone(n.getCloneIndex(),!0)).setPosition(h),u},e.insertBefore=function(e){var t=this.viewport,n=x(e),i=t.panelManager.firstPanel(),r=this.prevSibling,a=r&&i.getIndex()!==this.getIndex()?Math.max(r.getIndex()+1,this.getIndex()-n.length):Math.max(this.getIndex()-n.length,0);return t.insert(a,n)},e.insertAfter=function(e){return this.viewport.insert(this.getIndex()+1,e)},e.remove=function(){return this.viewport.remove(this.getIndex()),this},e.destroy=function(e){if(!e.preserveUI){var t=this.state.originalStyle;V(this.element,t)}for(var n in this)this[n]=null},e.getElement=function(){return this.element},e.getAnchorPosition=function(){return this.state.position+this.state.relativeAnchorPosition},e.getRelativeAnchorPosition=function(){return this.state.relativeAnchorPosition},e.getIndex=function(){return this.state.index},e.getPosition=function(){return this.state.position},e.getSize=function(){return this.state.size},e.getBbox=function(){var e=this.state,t=this.viewport,n=this.element,i=t.options;if(n){if(!e.cachedBbox){var r=Boolean(n.parentNode),a=t.getCameraElement();r||(a.appendChild(n),t.addVisiblePanel(this)),e.cachedBbox=H(n,i.useOffset),!r&&t.options.renderExternal&&a.removeChild(n)}}else e.cachedBbox={x:0,y:0,width:0,height:0};return e.cachedBbox},e.isClone=function(){return this.state.isClone},e.getOverlappedClass=function(e){for(var t=this.element,n=0,i=e;n<i.length;n++){var r=i[n];if(C(t,r))return r}},e.getCloneIndex=function(){return this.state.cloneIndex},e.getClonedPanels=function(){return this.state.isClone?this.original.getClonedPanels():this.clonedPanels},e.getIdenticalPanels=function(){return this.state.isClone?this.original.getIdenticalPanels():[this].concat(this.clonedPanels)},e.getOriginalPanel=function(){return this.state.isClone?this.original:this},e.setIndex=function(t){this.state.index=t,this.clonedPanels.forEach(function(e){return e.state.index=t})},e.setPosition=function(e){return this.state.position=e,this},e.setPositionCSS=function(e){if(void 0===e&&(e=0),this.element){var t=this.state,n=t.position,i=this.viewport.options,r=this.element.style,a=i.horizontal?r.left:r.top,o=n-e+"px";t.isVirtual||a===o||(i.horizontal?r.left=o:r.top=o)}},e.clone=function(e,t,n){void 0===t&&(t=!1);var i=this.state,r=this.viewport,a=n;!a&&this.element&&(a=t?this.element:this.element.cloneNode(!0));var o=new l(a,i.index,r),s=o.state;return o.original=i.isClone?this.original:this,s.isClone=!0,s.isVirtual=t,s.cloneIndex=e,s.size=i.size,s.relativeAnchorPosition=i.relativeAnchorPosition,s.originalStyle=i.originalStyle,s.cachedBbox=i.cachedBbox,t?(o.prevSibling=this.prevSibling,o.nextSibling=this.nextSibling):this.clonedPanels.push(o),o},e.removeElement=function(){if(!this.viewport.options.renderExternal){var e=this.element;e.parentNode.removeChild(e)}this.state.isClone||this.removeClonedPanelsAfter(0)},e.removeClonedPanelsAfter=function(e){var t=this.viewport.options,n=this.clonedPanels.splice(e);t.renderExternal||t.renderOnlyVisible||n.forEach(function(e){e.removeElement()})},e.setElement=function(e){if(e){var t,n,i=this.element;if(e!==i){var r=this.viewport.options;if(i)r.horizontal?e.style.left=i.style.left:e.style.top=i.style.top;else{var a=this.state.originalStyle;a.className=e.getAttribute("class"),a.style=e.getAttribute("style")}this.element=e,r.classPrefix&&(t=e,n=r.classPrefix+"-panel",t.classList?t.classList.add(n):C(t,n)||(t.className=(t.className+" "+n).replace(/\s{2,}/g," "))),b(this.element,u)}}},l}(),D=function(){function e(e,t){this.cameraElement=e,this.panels=[],this.clones=[],this.range={min:-1,max:-1},this.length=0,this.cloneCount=0,this.options=t,this.lastIndex=t.lastIndex}var t=e.prototype;return t.firstPanel=function(){return this.panels[this.range.min]},t.lastPanel=function(){return this.panels[this.range.max]},t.allPanels=function(){return this.panels.concat(this.clones.reduce(function(e,t){return e.concat(t)},[]))},t.originalPanels=function(){return this.panels},t.clonedPanels=function(){return this.clones},t.replacePanels=function(e,t){this.panels=e,this.clones=t,this.range={min:O(e,function(e){return Boolean(e)}),max:e.length-1},this.length=e.filter(function(e){return Boolean(e)}).length},t.has=function(e){return!!this.panels[e]},t.get=function(e){return this.panels[e]},t.getPanelCount=function(){return this.length},t.getLastIndex=function(){return this.lastIndex},t.getRange=function(){return this.range},t.getCloneCount=function(){return this.cloneCount},t.setLastIndex=function(e){this.lastIndex=e;var t=this.firstPanel(),n=this.lastPanel();if(t&&n){var i=this.range;if(n.getIndex()>e){var r=this.panels.splice(e+1);this.length-=r.length;var a=r.filter(function(e){return!!e})[0].prevSibling;i.max=a?a.getIndex():i.min=-1,this.shouldRender()&&r.forEach(function(e){return e.removeElement()})}}},t.setCloneCount=function(e){this.cloneCount=e},t.insert=function(n,e){var i=this.panels,t=this.range,r=this.options.circular,a=this.lastIndex,o=this.findFirstPanelFrom(n),s=this.firstPanel(),l=o?o.getElement():r&&s?s.getClonedPanels()[0].getElement():null;this.insertNewPanels(e,l);var c=e.length;if(n>t.max)e.forEach(function(e,t){i[n+t]=e});else{var h=i.slice(n,n+e.length),u=O(h,function(e){return!!e});if(u<0&&(u=h.length),c=e.length-u,i.splice.apply(i,[n,u].concat(e)),i.length>a+1){var g=i.splice(a+1).filter(function(e){return Boolean(e)});this.length-=g.length;var f=a-O(this.panels.concat().reverse(),function(e){return!!e});this.panels.splice(f+1),this.range.max=f,this.shouldRender()&&g.forEach(function(e){return e.removeElement()})}}if(0<c&&i.slice(n+e.length).forEach(function(e){e.setIndex(e.getIndex()+c)}),this.length+=e.length,this.updateIndex(n),r){this.addNewClones(n,e,e.length-c,o);var d=this.clones,p=this.panels.length;d[0]&&d[0].length>a+1&&d.forEach(function(e){e.splice(p)})}return c},t.replace=function(e,t){var n=this.panels,i=this.range,r=this.options.circular,a=this.findFirstPanelFrom(e+t.length),o=this.firstPanel(),s=a?a.getElement():r&&o?o.getClonedPanels()[0].getElement():null;this.insertNewPanels(t,s),e>i.max&&(n[e]=null);var l=n.splice.apply(n,[e,t.length].concat(t)),c=l.filter(function(e){return Boolean(e)}).length;return this.length+=t.length-c,this.updateIndex(e),r&&this.addNewClones(e,t,t.length,a),this.shouldRender()&&l.forEach(function(e){return e&&e.removeElement()}),l},t.remove=function(t,n){void 0===n&&(n=1);var e=this.options.circular,i=this.panels,r=this.clones;n=Math.max(n,0);var a=i.splice(t,n).filter(function(e){return!!e});this.shouldRender()&&a.forEach(function(e){return e.removeElement()}),e&&r.forEach(function(e){e.splice(t,n)}),i.slice(t).forEach(function(e){e.setIndex(e.getIndex()-n)});var o=i.length-1;if(!i[o]){var s=O(i.concat().reverse(),function(e){return!!e});o=s<0?-1:o-s,i.splice(o+1),e&&r.forEach(function(e){e.splice(o+1)})}return this.range={min:O(i,function(e){return!!e}),max:o},this.length-=a.length,this.length<=0&&(this.clones=[],this.cloneCount=0),a},t.chainAllPanels=function(){var r=this.allPanels().filter(function(e){return!!e}),e=r.length;if(!(e<=1)){r.slice(1,r.length-1).forEach(function(e,t){var n=r[t],i=r[t+2];e.prevSibling=n,e.nextSibling=i});var t=r[0],n=r[e-1];t.prevSibling=null,t.nextSibling=r[1],n.prevSibling=r[e-2],n.nextSibling=null,this.options.circular&&((t.prevSibling=n).nextSibling=t)}},t.insertClones=function(e,n,t,i){void 0===i&&(i=0);var r=this.clones,a=this.lastIndex;if(r[e]){var o=r[e];n>=o.length?t.forEach(function(e,t){o[n+t]=e}):(o.splice.apply(o,[n,i].concat(t)),t.length>a+1&&t.splice(a+1))}else{var s=[];t.forEach(function(e,t){s[n+t]=e}),r[e]=s}},t.removeClonesAfter=function(t){this.panels.forEach(function(e){e.removeClonedPanelsAfter(t)}),this.clones.splice(t)},t.findPanelOf=function(e){for(var t=0,n=this.allPanels();t<n.length;t++){var i=n[t];if(i)if(i.getElement().contains(e))return i}},t.findFirstPanelFrom=function(e){for(var t=0,n=this.panels.slice(e);t<n.length;t++){var i=n[t];if(i&&i.getIndex()>=e&&i.getElement().parentNode)return i}},t.addNewClones=function(a,o,s,e){for(var l=this,c=this.cameraElement,t=this.getCloneCount(),n=this.lastPanel(),h=n?n.getClonedPanels():[],u=e?e.getClonedPanels():[],i=function(n){var e=u[n],t=h[n],i=e?e.getElement():t?t.getElement().nextElementSibling:null,r=o.map(function(e){var t=e.clone(n);return l.shouldRender()&&c.insertBefore(t.getElement(),i),t});g.insertClones(n,a,r,s)},g=this,r=0,f=k(t);r<f.length;r++){i(f[r])}},t.updateIndex=function(e){var t=this.panels,n=this.range,i=t.length-1;i>n.max&&(n.max=i),(e<n.min||n.min<0)&&(n.min=e)},t.insertNewPanels=function(e,t){if(this.shouldRender()){var n=document.createDocumentFragment();e.forEach(function(e){return n.appendChild(e.getElement())}),this.cameraElement.insertBefore(n,t)}},t.shouldRender=function(){var e=this.options;return!e.renderExternal&&!e.renderOnlyVisible},e}(),n=function(){function e(){this.delta=0,this.direction=null,this.targetPanel=null,this.lastPosition=0}var t=e.prototype;return t.onEnter=function(e){this.delta=e.delta,this.direction=e.direction,this.targetPanel=e.targetPanel,this.lastPosition=e.lastPosition},t.onExit=function(e){},t.onHold=function(e,t){},t.onChange=function(e,t){},t.onRelease=function(e,t){},t.onAnimationEnd=function(e,t){},t.onFinish=function(e,t){},e}(),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=A,e.holding=!1,e.playing=!1,e}a(e,t);var n=e.prototype;return n.onEnter=function(){this.direction=null,this.targetPanel=null,this.delta=0,this.lastPosition=0},n.onHold=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo;if(n.getPanelCount()<=0)return i.options.infinite&&i.moveCamera(i.getCameraPosition(),e),void a(N);this.lastPosition=i.getCameraPosition(),r(y.HOLD_START,e,!0).onSuccess(function(){a(g)}).onStopped(function(){a(N)})},n.onChange=function(e,t){var n=t.triggerEvent,i=t.transitTo;n(y.MOVE_START,e,!1).onSuccess(function(){i(M).onChange(e,t)}).onStopped(function(){i(N)})},e}(n),F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=g,e.holding=!0,e.playing=!0,e.releaseEvent=null,e}a(e,t);var n=e.prototype;return n.onChange=function(e,t){var n=t.flicking,i=t.triggerEvent,r=t.transitTo,a=n.options.horizontal?e.inputEvent.offsetX:e.inputEvent.offsetY;this.direction=a<0?z.NEXT:z.PREV,i(y.MOVE_START,e,!0).onSuccess(function(){r(p).onChange(e,t)}).onStopped(function(){r(N)})},n.onRelease=function(e,t){var n=t.viewport,i=t.triggerEvent,r=t.transitTo;if(i(y.HOLD_END,e,!0),0!==e.delta.flick)return e.setTo({flick:n.getCameraPosition()},0),void r(A);this.releaseEvent=e},n.onFinish=function(e,t){var n=t.viewport,i=t.triggerEvent;if((0,t.transitTo)(A),this.releaseEvent){var r,a=this.releaseEvent.inputEvent.srcEvent;if("touchend"===a.type){var o=a.changedTouches[0];r=document.elementFromPoint(o.clientX,o.clientY)}else r=a.target;var s=n.panelManager.findPanelOf(r),l=n.getCameraPosition();if(s){var c=s.getPosition();i(y.SELECT,null,!0,{direction:l<c?z.NEXT:c<l?z.PREV:null,index:s.getIndex(),panel:s})}}},e}(n),G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=p,e.holding=!0,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onChange=function(e,t){var n=t.moveCamera,i=t.transitTo;e.delta.flick&&n(e).onStopped(function(){i(N)})},n.onRelease=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo,o=t.stopCamera,s=this.delta,l=Math.abs(s),c=n.options,h=c.horizontal,u=i.moveType,g=e.inputEvent,f=h?g.velocityX:g.velocityY,d=h?g.deltaX:g.deltaY,p=1<Math.abs(f)?f<0:0<l?0<s:d<0,v=i.options.bound?Math.max(l,Math.abs(d)):l,P=g.deltaX?Math.abs(180*Math.atan(g.deltaY/g.deltaX)/Math.PI):90,m=h?P<=c.thresholdAngle:P>c.thresholdAngle,x=v>=c.threshold&&m,E={viewport:i,axesEvent:e,state:this,swipeDistance:v,isNextDirection:p};r(y.HOLD_END,e,!0);var C=this.targetPanel;if(!x&&C){var b=u.findPanelWhenInterrupted(E);return i.moveTo(b.panel,b.destPos,b.eventType,e,b.duration),void a(M)}var S=i.getCurrentPanel(),I=i.getNearestPanel();if(!S||!I)return e.stop(),void a(A);var w=x?u.findTargetPanel(E):u.findRestorePanel(E);i.moveTo(w.panel,w.destPos,w.eventType,e,w.duration).onSuccess(function(){a(M)}).onStopped(function(){a(N),o(e)})},e}(n),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=M,e.holding=!1,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onHold=function(e,t){var n=t.viewport,i=t.triggerEvent,r=t.transitTo,a=n.options,o=n.getScrollArea(),s=n.getScrollAreaSize(),l=Math.floor((this.lastPosition+this.delta-o.prev)/s),c=this.targetPanel;if(a.circular&&0!==l&&c){var h=n.panelManager.getCloneCount(),u=c.getPosition(),g=B(c.getCloneIndex()-l,-1,h-1,!0),f=u-l*s,d=c.getIdenticalPanels()[g+1].clone(g,!0);d.setPosition(f),this.targetPanel=d}this.delta=0,this.lastPosition=n.getCameraPosition(),n.setCurrentPanel(n.getNearestPanel()),i(y.HOLD_START,e,!0).onSuccess(function(){r(p)}).onStopped(function(){r(N)})},n.onChange=function(e,t){var n=t.moveCamera,i=t.transitTo;e.delta.flick&&n(e).onStopped(function(){i(N)})},n.onFinish=function(e,t){var n=t.flicking,i=t.viewport,r=t.triggerEvent,a=t.transitTo,o=e&&e.isTrusted;i.options.bound?i.setCurrentPanel(this.targetPanel):i.setCurrentPanel(i.getNearestPanel()),n.options.adaptive&&i.updateAdaptiveSize(),a(A),r(y.MOVE_END,e,o,{direction:this.direction})},e}(n),j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=N,e.holding=!1,e.playing=!0,e}a(e,t);var n=e.prototype;return n.onAnimationEnd=function(e,t){(0,t.transitTo)(A)},n.onChange=function(e,t){var n=t.viewport,i=t.transitTo;e.stop(),n.updateAxesPosition(n.getCameraPosition()),i(A)},n.onRelease=function(e,t){var n=t.transitTo;0===e.delta.flick&&n(A)},e}(n),q=function(){function e(){var i=this;this.state=new _,this.transitTo=function(e){var t=i.state;if(t.type!==e){var n=void 0;switch(e){case A:n=new _;break;case g:n=new F;break;case p:n=new G;break;case M:n=new X;break;case N:n=new j}t.onExit(n),n.onEnter(t),i.state=n}return i.state}}var t=e.prototype;return t.fire=function(e,t,n){var i=this.state;switch(e){case f.HOLD:i.onHold(t,n);break;case f.CHANGE:i.onChange(t,n);break;case f.RELEASE:i.onRelease(t,n);break;case f.ANIMATION_END:i.onAnimationEnd(t,n);break;case f.FINISH:i.onFinish(t,n)}},t.getState=function(){return this.state},e}(),Y=function(n){function e(e){var t=n.call(this)||this;return t.type=l.SNAP,t.count=e,t}a(e,n);var t=e.prototype;return t.findTargetPanel=function(e){var t=e.viewport,n=e.axesEvent,i=e.swipeDistance,r=this.count,a=Math.abs(n.delta.flick),o=t.getCurrentPanel(),s=t.getNearestPanel(),l=this.calcBrinkOfChange(e),c=s.getIndex()===o.getIndex(),h=t.canSetBoundMode()&&c,u=!t.isOutOfBound()&&(i<=l||h);return 1<r&&l<a?this.findSnappedPanel(e):u?this.findAdjacentPanel(e):{panel:s,duration:t.options.duration,destPos:t.findEstimatedPosition(s),eventType:i<=l||t.isOutOfBound()&&c?y.RESTORE:y.CHANGE}},t.findSnappedPanel=function(e){for(var t=e.axesEvent,n=e.viewport,i=e.state,r=e.isNextDirection,a=Math.abs(t.delta.flick),o=this.calcBrinkOfChange(e),s=this.count,l=n.options,c=n.getScrollAreaSize(),h=l.gap/2,u=t.destPos.flick+n.getRelativeHangerPosition(),g=n.getNearestPanel(),f=g.getCloneIndex()+1,d=0;d<s;){var p=g.getOriginalPanel(),v=p.getPosition()+f*c,P=p.getSize();if(r&&u<v+P+h||!r&&v-h<u)break;var m=r?g.nextSibling:g.prevSibling;if(!m)break;var x=g.getIndex(),E=m.getIndex();(r&&E<=x||!r&&x<=E)&&(f=r?f+1:f-1),g=m,d+=1}var C=g.getOriginalPanel().getPosition();0!==f&&(g=g.clone(g.getCloneIndex(),!0)).setPosition(C+f*c);var b=n.options.duration,S=I(t.duration,b,b*d);return{panel:g,destPos:n.findEstimatedPosition(g),duration:S,eventType:Math.max(a,i.delta)>o?y.CHANGE:y.RESTORE}},t.findAdjacentPanel=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentIndex(),a=t.panelManager.get(r),o=t.getHangerPosition(),s=t.getScrollArea(),l=a.getIdenticalPanels()[1],c=i.circular&&Math.abs(a.getAnchorPosition()-o)>Math.abs(l.getAnchorPosition()-o)?l:a,h=c.getPosition(),u=n?c.nextSibling:c.prevSibling,g=u?y.CHANGE:y.RESTORE,f=u||c,d=f.getRelativeAnchorPosition(),p=(i.circular?n?h+c.getSize()+d+i.gap:h-(f.getSize()-d)-i.gap:f.getAnchorPosition())-t.getRelativeHangerPosition();return{panel:f,destPos:t.canSetBoundMode()?I(p,s.prev,s.next):p,duration:i.duration,eventType:g}},e}(function(){function e(){}var t=e.prototype;return t.is=function(e){return e===this.type},t.findRestorePanel=function(e){var t=e.viewport,n=t.options,i=n.circular?this.findRestorePanelInCircularMode(e):t.getCurrentPanel();return{panel:i,destPos:t.findEstimatedPosition(i),duration:n.duration,eventType:y.RESTORE}},t.findPanelWhenInterrupted=function(e){var t=e.state,n=e.viewport,i=t.targetPanel;return{panel:i,destPos:n.findEstimatedPosition(i),duration:n.options.duration,eventType:""}},t.calcBrinkOfChange=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentPanel(),a=i.gap/2,o=r.getRelativeAnchorPosition(),s=n?r.getSize()-o+a:o+a;return s=Math.max(s,i.threshold)},t.findRestorePanelInCircularMode=function(e){var t=e.viewport,n=t.getCurrentPanel().getOriginalPanel(),i=t.getHangerPosition(),r=n.getIdenticalPanels()[1],a=Math.abs(n.getAnchorPosition()-i)>Math.abs(r.getAnchorPosition()-i);return!e.isNextDirection&&a?r:n},e}()),U=function(u){function e(){var e=u.call(this,1/0)||this;return e.type=l.FREE_SCROLL,e}a(e,u);var t=e.prototype;return t.findTargetPanel=function(e){var t=e.axesEvent,n=e.state,i=e.viewport,r=t.destPos.flick,a=this.calcBrinkOfChange(e),o=i.getScrollArea(),s=i.getCurrentPanel(),l=i.options;if(a<Math.abs(t.delta.flick+n.delta)){var c=u.prototype.findSnappedPanel.call(this,e);return c.duration=t.duration,c.destPos=r,c.eventType=l.circular||c.panel!==s?y.CHANGE:"",c}var h=l.circular?B(r,o.prev,o.next,!1):r;return h=I(h,o.prev,o.next),h+=i.getRelativeHangerPosition(),{panel:i.findNearestPanelAt(h),destPos:r,duration:t.duration,eventType:""}},t.findRestorePanel=function(e){return this.findTargetPanel(e)},t.findPanelWhenInterrupted=function(e){var t=e.viewport;return{panel:t.getNearestPanel(),destPos:t.getCameraPosition(),duration:0,eventType:""}},t.calcBrinkOfChange=function(e){var t=e.viewport,n=e.isNextDirection,i=t.options,r=t.getCurrentPanel(),a=i.gap/2,o=t.stateMachine.getState().lastPosition,s=r.getPosition(),l=o+t.getRelativeHangerPosition(),c=t.getScrollAreaSize(),h=n?s+r.getSize()-l+a:l-s+a;return h=Math.abs(h%c),Math.min(h,c-h)},e}(Y),W=function(){function e(e,t,n){var i=this;this.plugins=[],this.stopCamera=function(e){e&&e.setTo&&e.setTo({flick:i.state.position},0),i.stateMachine.transitTo(A)},this.flicking=e,this.triggerEvent=n,this.state={size:0,position:0,panelMaintainRatio:0,relativeHangerPosition:0,positionOffset:0,scrollArea:{prev:0,next:0},visibleIndex:{min:NaN,max:NaN},translate:P,infiniteThreshold:0,checkedIndexes:[],isAdaptiveCached:!1,isViewportGiven:!1,isCameraGiven:!1,originalViewportStyle:{className:null,style:null},originalCameraStyle:{className:null,style:null},cachedBbox:null},this.options=t,this.stateMachine=new q,this.visiblePanels=[],this.panelBboxes={},this.build()}var t=e.prototype;return t.moveTo=function(e,t,n,i,r){var a=this;void 0===r&&(r=this.options.duration);var o,s=this.state,l=this.stateMachine.getState(),c=s.position,h=!!i&&i.isTrusted,u=t===c?null:c<t?z.NEXT:z.PREV;return(o=n===y.CHANGE?this.triggerEvent(y.CHANGE,i,h,{index:e.getIndex(),panel:e,direction:u}):n===y.RESTORE?this.triggerEvent(y.RESTORE,i,h):{onSuccess:function(e){return e(),this},onStopped:function(){return this}}).onSuccess(function(){l.delta=0,l.lastPosition=a.getCameraPosition(),l.targetPanel=e,l.direction=t===c?null:c<t?z.NEXT:z.PREV,t===c&&(a.nearestPanel=e,a.currentPanel=e),i&&i.setTo?i.setTo({flick:t},r):a.axes.setTo({flick:t},r)}),o},t.moveCamera=function(e,t){var n=this.state,i=this.options,r=n.translate.name,a=n.scrollArea;i.circular&&!S(e,a.prev,a.next)&&(e=B(e,a.prev,a.next,!1)),n.position=e,this.nearestPanel=this.findNearestPanel();var o=this.nearestPanel,s=o?o.getPosition():0;if(o){var l=this.getHangerPosition(),c=o.getPosition(),h=o.getSize(),u=i.gap/2;n.panelMaintainRatio=(l-c+u)/(h+2*u)}else n.panelMaintainRatio=0;this.checkNeedPanel(t),e+=(o?o.getPosition():0)-s,n.position=e,this.updateVisiblePanels();var g=i.renderOnlyVisible?n.positionOffset:0,f=(i.horizontal?[-(e-g),0]:[0,-(e-g)]).map(function(e){return Math.round(e)+"px"}).join(", ");this.cameraElement.style[r]=n.translate.has3d?"translate3d("+f+", 0px)":"translate("+f+")"},t.unCacheBbox=function(){var e=this.state,t=this.options;e.cachedBbox=null,e.visibleIndex={min:NaN,max:NaN};var n=this.viewportElement;t.horizontal?n.style.height="":n.style.width="",e.isAdaptiveCached=!1,this.panelBboxes={}},t.resize=function(){this.updateSize(),this.updateOriginalPanelPositions(),this.updateAdaptiveSize(),this.updateScrollArea(),this.updateClonePanels(),this.updateCameraPosition(),this.updatePlugins()},t.findNearestPanel=function(){var e=this.state,t=this.panelManager,n=this.getHangerPosition();return this.isOutOfBound()?e.position<=e.scrollArea.prev?t.firstPanel():t.lastPanel():this.findNearestPanelAt(n)},t.findNearestPanelAt=function(e){for(var t,n=1/0,i=0,r=this.panelManager.allPanels();i<r.length;i++){var a=r[i];if(a){var o=a.getPosition(),s=o+a.getSize(),l=S(e,o,s)?0:Math.min(Math.abs(o-e),Math.abs(s-e));if(n<l)break;if(l===n&&Math.abs(e-t.getAnchorPosition())<Math.abs(e-a.getAnchorPosition()))break;n=l,t=a}}return t},t.findNearestIdenticalPanel=function(e){var i=e,r=1/0,a=this.getHangerPosition();return e.getIdenticalPanels().forEach(function(e){var t=e.getAnchorPosition(),n=Math.abs(t-a);n<r&&(i=e,r=n)}),i},t.findShortestPositionToPanel=function(e){var t=this.state,n=this.options,i=e.getAnchorPosition(),r=this.getHangerPosition(),a=Math.abs(r-i),o=t.scrollArea.next-t.scrollArea.prev;if(n.circular)return a<=o-a?i-t.relativeHangerPosition:r<i?i-t.relativeHangerPosition-o:i-t.relativeHangerPosition+o;var s=i-t.relativeHangerPosition;return this.canSetBoundMode()?I(s,t.scrollArea.prev,t.scrollArea.next):s},t.findEstimatedPosition=function(e){var t=this.getScrollArea(),n=e.getAnchorPosition()-this.getRelativeHangerPosition();return n=this.canSetBoundMode()?I(n,t.prev,t.next):n},t.addVisiblePanel=function(e){this.getVisibleIndexOf(e)<0&&this.visiblePanels.push(e)},t.enable=function(){this.panInput.enable()},t.disable=function(){this.panInput.disable()},t.insert=function(r,e){var n=this,t=this.panelManager.getLastIndex();if(r<0||t<r)return[];var a=this.state,i=this.options,o=x(e).map(function(e,t){return new L(e,r+t,n)}).slice(0,t-r+1);if(o.length<=0)return[];var s=this.panelManager.insert(r,o);if(this.resizePanels(o),!this.currentPanel){this.currentPanel=o[0],this.nearestPanel=o[0];var l=o[0],c=this.findEstimatedPosition(l);a.position=c,this.updateAxesPosition(c),a.panelMaintainRatio=(l.getRelativeAnchorPosition()+i.gap/2)/(l.getSize()+i.gap)}return this.updateCheckedIndexes({min:r,max:r}),a.checkedIndexes.forEach(function(e,t){var n=e[0],i=e[1];r<n&&a.checkedIndexes.splice(t,1,[n+s,i+s])}),a.visibleIndex={min:NaN,max:NaN},this.resize(),o},t.replace=function(n,e){var i=this,t=this.state,r=this.options,a=this.panelManager,o=a.getLastIndex();if(n<0||o<n)return[];var s=x(e).map(function(e,t){return new L(e,n+t,i)}).slice(0,o-n+1);if(s.length<=0)return[];a.replace(n,s).forEach(function(e){var t=i.getVisibleIndexOf(e);-1<t&&i.visiblePanels.splice(t,1)}),this.resizePanels(s);var l=this.currentPanel;if(!l){this.currentPanel=s[0],this.nearestPanel=s[0];var c=s[0],h=this.findEstimatedPosition(c);t.position=h,this.updateAxesPosition(h),t.panelMaintainRatio=(c.getRelativeAnchorPosition()+r.gap/2)/(c.getSize()+r.gap)}else S(l.getIndex(),n,n+s.length-1)&&(this.currentPanel=a.get(l.getIndex()));return this.updateCheckedIndexes({min:n,max:n+s.length-1}),t.visibleIndex={min:NaN,max:NaN},this.resize(),s},t.remove=function(e,t){void 0===t&&(t=1);var n=this.state;e=Math.max(e,0);var i=this.panelManager,r=this.getCurrentIndex(),a=i.remove(e,t);if(S(r,e,e+t-1)){var o=Math.max(e-1,i.getRange().min);this.currentPanel=i.get(o)}0<t&&(this.updateCheckedIndexes({min:e-1,max:e+t}),n.visibleIndex={min:NaN,max:NaN}),i.getPanelCount()<=0&&(this.currentPanel=void 0,this.nearestPanel=void 0),this.resize();var s=n.scrollArea;if(n.position<s.prev||n.position>s.next){var l=B(n.position,s.prev,s.next,!1);this.moveCamera(l),this.updateAxesPosition(l)}return a},t.updateAdaptiveSize=function(){var e=this.state,t=this.options,i=t.horizontal,n=this.getCurrentPanel();if(n){var r=t.adaptive||!e.isAdaptiveCached,a=this.viewportElement.style;if(r){var o=void 0;if(t.adaptive){var s=n.getBbox();o=i?s.height:s.width}else{o=this.panelManager.originalPanels().reduce(function(e,t){var n=t.getBbox();return Math.max(e,i?n.height:n.width)},0)}var l=this.updateBbox();o=Math.max(o,i?l.height:l.width),e.isAdaptiveCached=!0;var c=o+"px";i?a.height=c:i||(a.width=c)}}},t.updateBbox=function(){var e=this.state,t=this.options,n=this.viewportElement;return e.cachedBbox||(e.cachedBbox=H(n,t.useOffset)),e.cachedBbox},t.updatePlugins=function(){var t=this;this.plugins.forEach(function(e){e.update&&e.update(t.flicking)})},t.destroy=function(t){var e=this.state,n=this.flicking.getElement(),i=this.viewportElement,r=this.cameraElement,a=this.panelManager.originalPanels();if(this.removePlugins(this.plugins),!t.preserveUI&&(V(i,e.originalViewportStyle),V(r,e.originalCameraStyle),!e.isCameraGiven&&!this.options.renderExternal)){var o=e.isViewportGiven?i:n,s=e.isViewportGiven?r:i;a.forEach(function(e){o.appendChild(e.getElement())}),o.removeChild(s)}for(var l in this.axes.destroy(),this.panInput.destroy(),a.forEach(function(e){e.destroy(t)}),this)this[l]=null},t.restore=function(e){var t=e.panels,n=this.options.defaultIndex,i=this.cameraElement,r=this.panelManager;i.innerHTML=t.map(function(e){return e.html}).join(""),this.refreshPanels();var a=r.originalPanels(),o=[];t.forEach(function(e,t){var n=a[t];n.setIndex(e.index),o[e.index]=n}),r.replacePanels(o,[]),r.setCloneCount(0);var s=r.getPanelCount();this.nearestPanel=0<s?(this.currentPanel=r.get(e.index)||r.get(n)||r.firstPanel(),this.currentPanel):void(this.currentPanel=void 0),this.visiblePanels=o.filter(function(e){return Boolean(e)}),this.resize(),this.axes.setTo({flick:e.position},0),this.moveCamera(e.position)},t.calcVisiblePanels=function(){var e=this.panelManager.allPanels();if(this.options.renderOnlyVisible){var t=this.state.visibleIndex,n=t.min,i=t.max;return(0<=n?e.slice(n,i+1):e.slice(0,i+1).concat(e.slice(n))).filter(function(e){return e})}return e.filter(function(e){var t=e.getOutsetProgress();return-1<t&&t<1})},t.getCurrentPanel=function(){return this.currentPanel},t.getCurrentIndex=function(){var e=this.currentPanel;return e?e.getIndex():-1},t.getNearestPanel=function(){return this.nearestPanel},t.getCurrentProgress=function(){var e=this.stateMachine.getState(),t=e.playing||e.holding?this.nearestPanel:this.currentPanel,n=this.panelManager;if(!t)return NaN;var i=this.getScrollArea(),r=i.prev,a=i.next,o=this.getCameraPosition(),s=this.isOutOfBound(),l=t.prevSibling,c=t.nextSibling,h=this.getHangerPosition(),u=t.getAnchorPosition();s&&l&&c&&o<a&&h-l.getAnchorPosition()<u-h&&(c=(t=l).nextSibling,l=t.prevSibling,u=t.getAnchorPosition());var g=t.getIndex()+(t.getCloneIndex()+1)*n.getPanelCount(),f=t.getSize();if(s){var d=this.getRelativeHangerPosition();a+d<u?h=u+h-d-a:u<r+d&&(h=u+h-d-r)}var p=u<=h,v=this.options.gap,P=u,m=u;p?m=c?c.getAnchorPosition():u+f+v:P=l?l.getAnchorPosition():u-f-v;var x=(h-P)/(m-P);return(p?g:l?l.getIndex():g-1)+x},t.updateAxesPosition=function(e){var t=this.axes;t.off(),t.setTo({flick:e},0),t.on(this.axesHandlers)},t.getSize=function(){return this.state.size},t.getScrollArea=function(){return this.state.scrollArea},t.isOutOfBound=function(){var e=this.state,t=this.options,n=e.scrollArea;return!t.circular&&t.bound&&(e.position<=n.prev||e.position>=n.next)},t.canSetBoundMode=function(){var e=this.state,t=this.options,n=this.panelManager.lastPanel();if(!n)return!1;var i=n.getPosition()+n.getSize();return t.bound&&!t.circular&&i>=e.size},t.getViewportElement=function(){return this.viewportElement},t.getCameraElement=function(){return this.cameraElement},t.getScrollAreaSize=function(){var e=this.state.scrollArea;return e.next-e.prev},t.getRelativeHangerPosition=function(){return this.state.relativeHangerPosition},t.getHangerPosition=function(){return this.state.position+this.state.relativeHangerPosition},t.getCameraPosition=function(){return this.state.position},t.getPositionOffset=function(){return this.state.positionOffset},t.getCheckedIndexes=function(){return this.state.checkedIndexes},t.getVisibleIndex=function(){return this.state.visibleIndex},t.getVisiblePanels=function(){return this.visiblePanels},t.setCurrentPanel=function(e){this.currentPanel=e},t.setLastIndex=function(e){var t=this.currentPanel,n=this.panelManager;n.setLastIndex(e),t&&t.getIndex()>e&&(this.currentPanel=n.lastPanel()),this.resize()},t.setVisiblePanels=function(e){this.visiblePanels=e},t.connectAxesHandler=function(e){var t=this.axes;this.axesHandlers=e,t.on(e)},t.addPlugins=function(e){var t=this,n=[].concat(e);return n.forEach(function(e){e.init(t.flicking)}),this.plugins=this.plugins.concat(n),this},t.removePlugins=function(e){var n=this,i=this.plugins;return[].concat(e).forEach(function(e){var t=i.indexOf(e);-1<t&&i.splice(t,1),e.destroy(n.flicking)}),this},t.updateCheckedIndexes=function(r){var a=this.state,o=0;a.checkedIndexes.concat().forEach(function(e,t){var n=e[0],i=e[1];r.min<=i&&r.max>=n&&(a.checkedIndexes.splice(t-o,1),o++)})},t.resetVisibleIndex=function(){var e=this.state.visibleIndex;e.min=NaN,e.max=NaN},t.appendUncachedPanelElements=function(e){var n=this,i=this.options,r=document.createDocumentFragment();if(i.isEqualSize){var t=this.visiblePanels,a=i.isEqualSize,o={};this.visiblePanels=[],Object.keys(this.panelBboxes).forEach(function(e){o[e]=!0}),e.forEach(function(e){var t=e.getOverlappedClass(a);t&&!o[t]?(i.renderExternal||r.appendChild(e.getElement()),n.visiblePanels.push(e),o[t]=!0):t||(i.renderExternal||r.appendChild(e.getElement()),n.visiblePanels.push(e))}),t.forEach(function(e){n.addVisiblePanel(e)})}else i.renderExternal||e.forEach(function(e){return r.appendChild(e.getElement())}),this.visiblePanels=e.filter(function(e){return Boolean(e)});i.renderExternal||this.cameraElement.appendChild(r)},t.updateClonePanels=function(){var e=this.panelManager;this.options.circular&&0<e.getPanelCount()&&(this.clonePanels(),this.updateClonedPanelPositions()),e.chainAllPanels()},t.getVisibleIndexOf=function(t){return O(this.visiblePanels,function(e){return e===t})},t.build=function(){this.setElements(),this.applyCSSValue(),this.setMoveType(),this.setAxesInstance(),this.refreshPanels(),this.setDefaultPanel(),this.resize(),this.moveToDefaultPanel()},t.setElements=function(){var e=this.state,t=this.options,n=this.flicking.getElement(),i=t.classPrefix,r=n.children[0],a=r&&C(r,i+"-viewport"),o=a?r:document.createElement("div"),s=a?o.children[0]:n.children[0],l=s&&C(s,i+"-camera"),c=l?s:document.createElement("div");l?e.originalCameraStyle={className:c.getAttribute("class"),style:c.getAttribute("style")}:(c.className=i+"-camera",w(a?o.children:n.children).forEach(function(e){c.appendChild(e)}));a?e.originalViewportStyle={className:o.getAttribute("class"),style:o.getAttribute("style")}:(o.className=i+"-viewport",n.appendChild(o)),l&&a||o.appendChild(c),this.viewportElement=o,this.cameraElement=c,e.isViewportGiven=a,e.isCameraGiven=l},t.applyCSSValue=function(){var e=this.options,t=this.viewportElement,n=this.cameraElement,i=this.viewportElement.style;b(t,s),b(n,h),t.style.zIndex=""+e.zIndex,e.horizontal?(i.minHeight="100%",i.width="100%"):(i.minWidth="100%",i.height="100%"),e.overflow&&(i.overflow="visible"),this.panelManager=new D(this.cameraElement,e)},t.setMoveType=function(){var e=this.options.moveType;switch(e.type){case l.SNAP:this.moveType=new Y(e.count);break;case l.FREE_SCROLL:this.moveType=new U;break;default:throw new Error("moveType is not correct!")}},t.setAxesInstance=function(){var e=this.state,t=this.options,n=e.scrollArea,i=t.horizontal;this.axes=new r({flick:{range:[n.prev,n.next],circular:t.circular,bounce:[0,0]}},{easing:t.panelEffect,deceleration:t.deceleration,interruptable:!0}),this.panInput=new r.PanInput(this.viewportElement,{inputType:t.inputType,thresholdAngle:t.thresholdAngle,scale:t.horizontal?[-1,0]:[0,-1]}),this.axes.connect(i?["flick",""]:["","flick"],this.panInput)},t.refreshPanels=function(){var n=this,e=this.panelManager,t=w(this.cameraElement.children).map(function(e,t){return new L(e,t,n)});e.replacePanels(t,[]),this.visiblePanels=t.filter(function(e){return Boolean(e)})},t.setDefaultPanel=function(){var e=this.options,t=this.panelManager,n=this.panelManager.getRange(),i=I(e.defaultIndex,n.min,n.max);this.currentPanel=t.get(i)},t.clonePanels=function(){var e=this.state,t=this.options,r=this.panelManager,n=t.gap,i=e.size,a=r.firstPanel(),o=r.lastPanel();if(a){for(var s,l=r.originalPanels(),c=l.concat().reverse(),h=o.getPosition()+o.getSize()-a.getPosition()+n,u=a.getRelativeAnchorPosition(),g=this.getRelativeHangerPosition(),f=(g-u)%h,d=0,p=0,v=c;p<v.length;p++){if((C=v[p])&&f<=(d+=C.getSize()+n)){s=C;break}}for(var P,m=(i-g+u)%h,x=d=0,E=l;x<E.length;x++){var C;if((C=E[x])&&m<=(d+=C.getSize()+n)){P=C;break}}var b=0!==s.getIndex()&&s.getIndex()<=P.getIndex(),S=Math.ceil((g+a.getSize()-u)/h)+Math.ceil((i-g+u)/h)-1+(b?1:0),I=r.getCloneCount();if(r.setCloneCount(S),!t.renderExternal)if(I<S)for(var w=function(t){var e,n=l.map(function(e){return e.clone(t)}),i=document.createDocumentFragment();n.forEach(function(e){return i.appendChild(e.getElement())}),y.cameraElement.appendChild(i),(e=y.visiblePanels).push.apply(e,n.filter(function(e){return Boolean(e)})),r.insertClones(t,0,n)},y=this,A=I;A<S;A++)w(A);else S<I&&r.removeClonesAfter(S)}},t.moveToDefaultPanel=function(){var e=this.state,t=this.panelManager,n=this.options,i=this.panelManager.getRange(),r=I(n.defaultIndex,i.min,i.max),a=t.get(r),o=0;a&&(o=a.getAnchorPosition()-e.relativeHangerPosition,o=this.canSetBoundMode()?I(o,e.scrollArea.prev,e.scrollArea.next):o),this.moveCamera(o),this.axes.setTo({flick:o},0)},t.updateSize=function(){var e=this.state,t=this.options,n=this.panelManager.originalPanels().filter(function(e){return Boolean(e)}),i=this.updateBbox(),r=e.size;e.size=t.horizontal?i.width:i.height,r!==e.size&&(e.relativeHangerPosition=T(t.hanger,e.size),e.infiniteThreshold=T(t.infiniteThreshold,e.size)),n.length<=0||this.resizePanels(n)},t.updateOriginalPanelPositions=function(){var i=this.options.gap,e=this.panelManager,t=e.firstPanel(),n=e.originalPanels();if(t){var r=this.currentPanel,a=this.nearestPanel,o=this.stateMachine.getState(),s=this.state.scrollArea,l=t.getPosition(),c=t;if(a)c=!S(o.lastPosition+o.delta,s.prev,s.next)?r:a;else 0<t.getIndex()&&(c=r);var h=n.slice(0,c.getIndex()+(c.getCloneIndex()+1)*n.length).reduce(function(e,t){return e+t.getSize()+i},0);l=c.getPosition()-h,n.forEach(function(e){var t=l,n=e.getSize();e.setPosition(t),l+=n+i}),this.options.renderOnlyVisible||n.forEach(function(e){return e.setPositionCSS()})}},t.updateClonedPanelPositions=function(){var e=this.state,t=this.options,n=this.panelManager,i=n.clonedPanels().reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return Boolean(e)}),r=e.scrollArea,a=n.firstPanel(),o=n.lastPanel();if(a){for(var s=o.getPosition()+o.getSize()-a.getPosition()+t.gap,l=0,c=i;l<c.length;l++){var h=(p=c[l]).getOriginalPanel(),u=s*(p.getCloneIndex()+1)+h.getPosition();p.setPosition(u)}for(var g=a.getPosition(),f=0,d=i.concat().reverse();f<d.length;f++){var p,v=(p=d[f]).getSize(),P=g-v-t.gap;if(P+v<=r.prev)break;p.setPosition(P),g=P}this.options.renderOnlyVisible||i.forEach(function(e){e.setPositionCSS()})}},t.updateScrollArea=function(){var e=this.state,t=this.panelManager,n=this.options,i=this.axes,r=t.firstPanel(),a=t.lastPanel(),o=e.relativeHangerPosition;if(r)if(this.canSetBoundMode())e.scrollArea={prev:r.getPosition(),next:a.getPosition()+a.getSize()-e.size};else if(n.circular){var s=a.getPosition()+a.getSize()-r.getPosition()+n.gap;e.scrollArea={prev:r.getAnchorPosition()-o,next:s+r.getAnchorPosition()-o}}else e.scrollArea={prev:r.getAnchorPosition()-o,next:a.getAnchorPosition()-o};else e.scrollArea={prev:0,next:0};var l,c,h=e.size,u=n.bounce;if((c=u)&&c.constructor===Array)l=u.map(function(e){return T(e,h,d.bounce)});else{var g=T(u,h,d.bounce);l=[g,g]}var f=i.axis.flick;f.range=[e.scrollArea.prev,e.scrollArea.next],f.bounce=l},t.updateCameraPosition=function(){var e=this.state,t=this.getCurrentPanel(),n=this.stateMachine.getState(),i=this.moveType.is(l.FREE_SCROLL),r=this.getRelativeHangerPosition(),a=this.options.gap/2;if(n.holding||n.playing)this.updateVisiblePanels();else{var o;if(i){var s=this.getNearestPanel();o=s?s.getPosition()-a+(s.getSize()+2*a)*e.panelMaintainRatio-r:this.getCameraPosition()}else o=t?t.getAnchorPosition()-r:this.getCameraPosition();this.canSetBoundMode()&&(o=I(o,e.scrollArea.prev,e.scrollArea.next)),this.updateAxesPosition(o),this.moveCamera(o)}},t.checkNeedPanel=function(e){var t=this.state,n=this.options,i=this.panelManager,r=this.currentPanel,a=this.nearestPanel,o=this.stateMachine.getState();if(n.infinite){var s=n.gap,l=t.infiniteThreshold,c=i.getLastIndex();if(!(c<0))if(r&&a){for(var h=a.getPosition(),u=o.holding||o.playing?a:r;u;){var g=u.getIndex(),f=u.nextSibling,d=!(g===(E=i.lastPanel()).getIndex())&&f?f.getIndex():c+1,p=a.getPosition(),v=u.getPosition()+u.getSize()-(p-h)+s-l<=t.position+t.size;if(1<d-g&&v&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.NEXT,indexRange:{min:g+1,max:d-1,length:d-g-1}}),n.circular&&g===c&&v){var P=(x=i.firstPanel())?x.getIndex():-1;0<P&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.NEXT,indexRange:{min:0,max:P-1,length:P}})}var m=i.lastPanel();if(m&&g===m.getIndex()||!v)break;u=u.nextSibling}for(u=a;u;){var x,E,C=t.position,b=u.getIndex(),S=u.prevSibling,I=!(b===(x=i.firstPanel()).getIndex())&&S?S.getIndex():-1;p=a.getPosition(),v=C<=u.getPosition()-(p-h)-s+l;if(1<b-I&&v&&this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.PREV,indexRange:{min:I+1,max:b-1,length:b-I-1}}),n.circular&&0===b&&v)if((E=i.lastPanel())&&E.getIndex()<c){var w=E.getIndex();this.triggerNeedPanel({axesEvent:e,siblingPanel:u,direction:z.PREV,indexRange:{min:w+1,max:c,length:c-w}})}var y=i.firstPanel();if(y&&b===y.getIndex()||!v)break;u=u.prevSibling}}else this.triggerNeedPanel({axesEvent:e,siblingPanel:null,direction:null,indexRange:{min:0,max:c,length:c+1}})}},t.triggerNeedPanel=function(e){var r=this,t=e.axesEvent,a=e.siblingPanel,o=e.direction,s=e.indexRange,l=this.options,n=this.state.checkedIndexes,i=n.some(function(e){var t=e[0],n=e[1];return t===s.min||n===s.max}),c=this.flicking.hasOn(y.NEED_PANEL);if(!i&&c){n.push([s.min,s.max]);var h=a?a.getIndex():0,u=!!t&&t.isTrusted;this.triggerEvent(y.NEED_PANEL,t,u,{index:h,panel:a,direction:o,range:s,fill:function(e){var t=r.panelManager;if(!a)return r.insert(t.getRange().max+1,e);var n=x(e),i=o===z.NEXT?n.slice(0,s.length):n.slice(-s.length);return o===z.NEXT?l.circular&&h===t.getLastIndex()?r.insert(0,i):a.insertAfter(i):o===z.PREV?l.circular&&0===h?r.insert(s.max-i.length+1,i):a.insertBefore(i):r.insert(0,i)}})}},t.updateVisiblePanels=function(){var t=this.state,e=this.options,n=this.cameraElement,i=t.visibleIndex,r=e.renderExternal;if(e.renderOnlyVisible)if(this.nearestPanel){var a=this.calcNewVisiblePanelIndex();if(a.min!==i.min||a.max!==i.max){if(t.visibleIndex=a,isNaN(a.min)||isNaN(a.max))return;var o=this.visiblePanels,s=this.calcVisiblePanels(),l=this.checkVisiblePanelChange(o,s),c=l.addedPanels,h=l.removedPanels;if(0<s.length){var u=s[0].getPosition();t.positionOffset=u}if(s.forEach(function(e){e.setPositionCSS(t.positionOffset)}),!r){h.forEach(function(e){var t=e.getElement();t.parentNode&&n.removeChild(t)});var g=document.createDocumentFragment();c.forEach(function(e){g.appendChild(e.getElement())}),n.appendChild(g)}this.visiblePanels=s,this.flicking.trigger(y.VISIBLE_CHANGE,{type:y.VISIBLE_CHANGE,range:{min:a.min,max:a.max}})}else this.visiblePanels.forEach(function(e){return e.setPositionCSS(t.positionOffset)})}else for(this.resetVisibleIndex();n.firstChild;)n.removeChild(n.firstChild)},t.calcNewVisiblePanelIndex=function(){var t=this.getCameraPosition(),n=this.getSize(),e=this.nearestPanel,i=this.panelManager,r=i.getRange().max+1,a=i.getCloneCount(),o=function(e,t,n){for(var i=e;;){var r=t(i);if(!r||n(r))break;i=r}return i},s=o(e,function(e){var t=e.nextSibling;return t&&t.getPosition()>=e.getPosition()?t:null},function(e){return e.getPosition()>=t+n}),l=o(e,function(e){var t=e.prevSibling;return t&&t.getPosition()<=e.getPosition()?t:null},function(e){return e.getPosition()+e.getSize()<=t}),c=l.getCloneIndex(),h=r*(s.getCloneIndex()+1),u=-1<c?r*(a-c):0,g={min:-1<e.getCloneIndex()?l.getIndex()+u:l.getIndex()-u,max:s.getIndex()+h};return 0===l.getIndex()&&0===l.getCloneIndex()&&(g.min=r),g},t.checkVisiblePanelChange=function(i,r){var a=i.map(function(){return 0}),o=r.map(function(){return 0});return i.forEach(function(n,i){r.forEach(function(e,t){n===e&&(a[i]++,o[t]++)})}),{removedPanels:a.reduce(function(e,t,n){return 0===t?e.concat([i[n]]):e},[]),addedPanels:o.reduce(function(e,t,n){return 0===t?e.concat([r[n]]):e},[])}},t.resizePanels=function(e){var t=this.options,n=this.panelBboxes;if(!0!==t.isEqualSize)if(t.isEqualSize){var i=t.isEqualSize;e.forEach(function(e){var t=e.getOverlappedClass(i);t?(e.resize(n[t]),n[t]=e.getBbox()):e.resize()})}else e.forEach(function(e){e.resize()});else{if(!n.default){var r=e[0];n.default=r.getBbox()}var a=n.default;e.forEach(function(e){e.resize(a)})}},e}(),J="UA-70842526-24",K=Math.random()*Math.pow(10,20)/Math.pow(10,10);var Q=function(g){function e(e,t){void 0===t&&(t={});var n,u=g.call(this)||this;if(u.isPanelChangedAtBeforeSync=!1,u.resize=function(){var e=u.viewport,t=u.options,n=e.panelManager.allPanels();t.isConstantSize||n.forEach(function(e){return e.unCacheBbox()});var i=t.renderOnlyVisible&&!t.isConstantSize&&!0!==t.isEqualSize;return e.unCacheBbox(),e.updateBbox(),i&&e.appendUncachedPanelElements(n),e.resize(),u},u.triggerEvent=function(e,t,n,i){void 0===i&&(i={});var r=u.viewport,a=!0;if(r){var o=r.stateMachine.getState(),s=r.getScrollArea(),l=s.prev,c=s.next,h=R(r.getCameraPosition(),[l,l,c]);u.options.circular&&(h%=1),a=!g.prototype.trigger.call(u,e,m({type:e,index:u.getIndex(),panel:u.getCurrentPanel(),direction:o.direction,holding:o.holding,progress:h,axesEvent:t,isTrusted:n},i))}return{onSuccess:function(e){return a||e(),this},onStopped:function(e){return a&&e(),this}}},u.moveCamera=function(e){var t=u.viewport,n=t.stateMachine.getState(),i=u.options,r=e.pos.flick,a=t.getCameraPosition();if(e.isTrusted&&n.holding){var o=i.horizontal?e.inputEvent.offsetX:e.inputEvent.offsetY,s=r-a,l=o<0===r<a;if(i.circular&&l)s=(0<s?-1:1)*(t.getScrollAreaSize()-Math.abs(s));var c=0===s?n.direction:0<s?z.NEXT:z.PREV;n.direction=c}return n.delta+=e.delta.flick,t.moveCamera(r,e),u.triggerEvent(y.MOVE,e,e.isTrusted).onStopped(function(){t.moveCamera(a,e)})},E(e)){if(!(n=document.querySelector(e)))throw new Error("Base element doesn't exist.")}else{if(!e.nodeName||1!==e.nodeType)throw new Error("Element should be provided in string or HTMLElement.");n=e}u.wrapper=n,u.options=m({},d,t);var i=u.options,r=i.moveType;return r in o&&(i.moveType=o[r]),u.viewport=new W(u,u.options,u.triggerEvent),u.listenInput(),u.listenResize(),u.options.collectStatistics&&function(e,t,n){if(c)try{var i=window.innerWidth,r=window.innerHeight,a=window.screen||{width:i,height:r},o=["v=1","t=event","dl="+location.href,"ul="+(navigator.language||"en-us").toLowerCase(),"de="+(document.charset||document.inputEncoding||document.characterSet||"utf-8"),"dr="+document.referrer,"dt="+document.title,"sr="+a.width+"x"+a.height,"vp="+i+"x"+r,"ec="+e,"ea="+t,"el="+JSON.stringify(n),"cid="+K,"tid="+J,"cd1=3.4.3","z="+Math.floor(1e7*Math.random())],s=new XMLHttpRequest;s.open("GET","https://www.google-analytics.com/collect?"+o.join("&")),s.send()}catch(e){}}("usage","options",t),u}a(e,g);var t=e.prototype;return t.prev=function(e){var t=this.getCurrentPanel(),n=this.viewport.stateMachine.getState();if(t&&n.type===A){var i=t.prev();i&&i.focus(e)}return this},t.next=function(e){var t=this.getCurrentPanel(),n=this.viewport.stateMachine.getState();if(t&&n.type===A){var i=t.next();i&&i.focus(e)}return this},t.moveTo=function(e,t){var n=this.viewport,i=n.panelManager.get(e),r=n.stateMachine.getState();if(!i||r.type!==A)return this;var a=i.getAnchorPosition(),o=n.getHangerPosition(),s=i;if(this.options.circular){var l=n.getScrollAreaSize(),c=[a-l,a,a+l].reduce(function(e,t){return Math.abs(t-o)<Math.abs(e-o)?t:e},1/0)-i.getRelativeAnchorPosition(),h=i.getIdenticalPanels(),u=c-a;0<u?s=h[1]:u<0&&(s=h[h.length-1]),(s=s.clone(s.getCloneIndex(),!0)).setPosition(c)}var g=this.getIndex();if(o===s.getAnchorPosition()&&g===e)return this;var f=i.getIndex()===n.getCurrentIndex()?"":y.CHANGE;return n.moveTo(s,n.findEstimatedPosition(s),f,null,t),this},t.getIndex=function(){return this.viewport.getCurrentIndex()},t.getElement=function(){return this.wrapper},t.getCurrentPanel=function(){var e=this.viewport.getCurrentPanel();return e||null},t.getPanel=function(e){var t=this.viewport.panelManager.get(e);return t||null},t.getAllPanels=function(e){var t=this.viewport.panelManager;return(e?t.allPanels():t.originalPanels()).filter(function(e){return!!e})},t.getVisiblePanels=function(){return this.viewport.calcVisiblePanels()},t.getPanelCount=function(){return this.viewport.panelManager.getPanelCount()},t.getCloneCount=function(){return this.viewport.panelManager.getCloneCount()},t.getLastIndex=function(){return this.viewport.panelManager.getLastIndex()},t.setLastIndex=function(e){return this.viewport.setLastIndex(e),this},t.isPlaying=function(){return this.viewport.stateMachine.getState().playing},t.enableInput=function(){return this.viewport.enable(),this},t.disableInput=function(){return this.viewport.disable(),this},t.getStatus=function(){var e=this.viewport,t=e.panelManager.originalPanels().filter(function(e){return!!e}).map(function(e){return{html:e.getElement().outerHTML,index:e.getIndex()}});return{index:e.getCurrentIndex(),panels:t,position:e.getCameraPosition()}},t.setStatus=function(e){this.viewport.restore(e)},t.addPlugins=function(e){return this.viewport.addPlugins(e),this},t.removePlugins=function(e){return this.viewport.removePlugins(e),this},t.destroy=function(e){for(var t in void 0===e&&(e={}),this.off(),this.options.autoResize&&window.removeEventListener("resize",this.resize),this.viewport.destroy(e),this)this[t]=null},t.prepend=function(e){var t=this.viewport,n=x(e),i=Math.max(t.panelManager.getRange().min-n.length,0);return t.insert(i,n)},t.append=function(e){var t=this.viewport;return t.insert(t.panelManager.getRange().max+1,e)},t.replace=function(e,t){return this.viewport.replace(e,t)},t.remove=function(e,t){return void 0===t&&(t=1),this.viewport.remove(e,t)},t.getRenderingIndexes=function(e){var t=this.viewport,n=t.getVisibleIndex(),i=n.min,r=n.max,a=e.maintained.reduce(function(e,t){var n=t[0],i=t[1];return e[n]=i,e},{}),o=e.prevList.length,s=e.list.length,l=e.added,c=k(o*(this.getCloneCount()+1)),h=0<=i?c.slice(i,r+1):c.slice(0,r+1).concat(c.slice(i)),u=(h=h.filter(function(e){return null!=a[e%o]}).map(function(e){var t=Math.floor(e/o);return a[e%o]+s*t})).concat(l),g=t.panelManager.allPanels();return t.setVisiblePanels(u.map(function(e){return g[e]})),u},t.beforeSync=function(e){var t=this,n=e.maintained,o=e.added,i=e.changed,a=e.removed,r=this.viewport,s=r.panelManager,l=this.options.circular,c=s.getCloneCount(),h=s.clonedPanels(),u=r.getVisiblePanels().filter(function(t){return O(a,function(e){return e===t.getIndex()})<0});if(r.setVisiblePanels(u),o.length<=0&&a.length<=0&&i.length<=0&&c===h.length)return this;var g=s.originalPanels(),f=[],d=k(c).map(function(){return[]});n.forEach(function(e){var t=e[0],n=e[1];f[n]=g[t],f[n].setIndex(n)}),o.forEach(function(e){f[e]=new L(null,e,t.viewport)}),l&&k(c).forEach(function(i){var r=h[i],a=d[i];n.forEach(function(e){var t=e[0],n=e[1];a[n]=r?r[t]:f[n].clone(i,!1),a[n].setIndex(n)}),o.forEach(function(e){var t=f[e];a[e]=t.clone(i,!1)})}),o.forEach(function(e){r.updateCheckedIndexes({min:e,max:e})}),a.forEach(function(e){r.updateCheckedIndexes({min:e-1,max:e+1})});var p=r.getCheckedIndexes();p.forEach(function(e,t){var n=e[0],i=e[1],r=o.filter(function(e){return e<n&&s.has(e)}).length-a.filter(function(e){return e<n}).length;p.splice(t,1,[n+r,i+r])}),0<i.length&&n.forEach(function(e){var t=e[1];r.updateCheckedIndexes({min:t,max:t})}),s.replacePanels(f,d),this.isPanelChangedAtBeforeSync=!0},t.sync=function(e){var i=e.list,t=e.maintained,n=e.added,r=e.changed,a=e.removed;if(n.length<=0&&a.length<=0&&r.length<=0)return this;var o=this.viewport,s=this.options,l=s.renderOnlyVisible,c=s.circular,h=o.panelManager;if(!l){var u=h.getRange(),g=e;if(c){var f=u.max,d=i.length/(h.getCloneCount()+1)>>0,p=n.filter(function(e){return e<d}),v=a.filter(function(e){return e<=f});g={added:p,maintained:t.filter(function(e){return e[0]<=f}),removed:v,changed:r.filter(function(e){return e[0]<=f})}}this.beforeSync(g)}var P=l?o.getVisiblePanels():this.getAllPanels(!0);return n.forEach(function(e){var t=i[e],n=P[e];n.setElement(t),n.unCacheBbox()}),this.isPanelChangedAtBeforeSync&&(o.resetVisibleIndex(),this.isPanelChangedAtBeforeSync=!1),o.resize(),this},t.listenInput=function(){var n=this,e=n.viewport,i=e.stateMachine;n.eventContext={flicking:n,viewport:n.viewport,transitTo:i.transitTo,triggerEvent:n.triggerEvent,moveCamera:n.moveCamera,stopCamera:e.stopCamera};var r={},t=function(e){var t=f[e];r[t]=function(e){return i.fire(t,e,n.eventContext)}};for(var a in f)t(a);n.viewport.connectAxesHandler(r)},t.listenResize=function(){this.options.autoResize&&window.addEventListener("resize",this.resize)},e.VERSION="3.4.3",e.DIRECTION=z,e.EVENTS=y,e}(e);return Q.withFlickingMethods=function(e,a){Object.keys(t).forEach(function(r){e[r]||(e[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,i=(n=this[a])[r].apply(n,e);return i===this[a]?this:i})})},Q.DEFAULT_OPTIONS=d,Q.MOVE_TYPE=l,Q});
//# sourceMappingURL=flicking.min.js.map
{
"name": "@egjs/flicking",
"version": "3.4.2",
"version": "3.4.3",
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",

@@ -5,0 +5,0 @@ "main": "dist/flicking.js",

@@ -69,2 +69,7 @@ /**

: viewport.setCurrentPanel(viewport.getNearestPanel()!);
if (flicking.options.adaptive) {
viewport.updateAdaptiveSize();
}
transitTo(STATE_TYPE.IDLE);

@@ -74,6 +79,2 @@ triggerEvent(EVENTS.MOVE_END, e, isTrusted, {

});
if (flicking.options.adaptive) {
viewport.updateAdaptiveSize();
}
}

@@ -80,0 +81,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc