{"version":3,"file":"slideout.js","names":["t","exports","module","define","amd","e","window","global","self","Slideout","i","n","o","r","a","u","l","f","require","s","Error","code","call","length","_","this","_startOffsetX","_currentOffsetX","_opening","_moved","_opened","_preventOpen","_touch","undefined","touch","_side","side","panel","menu","classList","contains","add","_fx","fx","_duration","parseInt","duration","_tolerance","tolerance","_padding","_translateTo","padding","_orientation","_initTouchEvents","document","documentElement","navigator","msPointerEnabled","start","move","end","h","getElementsByTagName","style","test","match","toLowerCase","prototype","c","p","open","emit","_setTransition","_translateXTo","setTimeout","transition","close","isOpen","remove","transform","toggle","_onScrollFn","clearTimeout","_preventMove","preventDefault","addEventListener","_resetTouchFn","touches","pageX","clientWidth","_onTouchCancelFn","_onTouchEndFn","Math","abs","_onTouchMoveFn","parentNode","getAttribute","d","target","clientX","enableTouch","disableTouch","destroy","removeEventListener","decouple","emitter","requestAnimationFrame","webkitRequestAnimationFrame","TypeError","__esModule","on","_eventCollection","push","once","off","apply","arguments","listener","forEach","splice","Array","slice"],"sources":["0"],"mappings":"CAAC,SAAUA,GACP,GAAI,iBAAmBC,SAAW,oBAAsBC,OAAQA,OAAOD,QAAUD,SAAU,GAAI,mBAAqBG,QAAUA,OAAOC,IAAKD,OAAO,GAAIH,OAAS,CAC1J,IAAIK,EACJ,oBAAsBC,OAASD,EAAIC,OAAS,oBAAsBC,OAASF,EAAIE,OAAS,oBAAsBC,OAASH,EAAIG,MAAOH,EAAEI,SAAWT,GACnJ,CACJ,CALC,EAKC,WAEE,OAAO,SAASU,EAAEV,EAAGK,EAAGM,GACpB,SAASC,EAAEC,EAAGC,GAAd,IAGgBC,EAGAC,EAGJC,EARR,IAAKZ,EAAEQ,GAAI,CACP,IAAKb,EAAEa,GAAI,CAEP,GADIE,EAAsB,mBAAXG,SAAyBA,SACnCJ,GAAKC,EAAG,OAAOA,EAAEF,GAAG,GACzB,GAAIM,EAAG,OAAOA,EAAEN,GAAG,GAEnB,MADIG,EAAI,IAAII,MAAM,uBAAyBP,EAAI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