UNPKG

vis-timeline

Version:

Create a fully customizable, interactive timeline with items and ranges.

33 lines 412 kB
/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * * Create a fully customizable, interactive timeline with items and ranges. * * @version 7.4.9 * @date 2021-06-05T17:20:46.148Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("moment"),require("vis-data/peer/umd/vis-data.js")):"function"==typeof define&&define.amd?define(["exports","moment","vis-data/peer/umd/vis-data.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{},t.moment,t.vis)}(this,(function(t,e,i){function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=n(e),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var a,l=function(t){return t&&t.Math==Math&&t},h=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,m={f:p&&!d.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:d},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,g=function(t){return v.call(t).slice(8,-1)},y="".split,b=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?y.call(t,""):Object(t)}:Object,w=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},k=function(t){return b(w(t))},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!_(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!_(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!_(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},C=function(t){return Object(w(t))},D={}.hasOwnProperty,S=Object.hasOwn||function(t,e){return D.call(C(t),e)},T=h.document,E=_(T)&&_(T.createElement),O=function(t){return E?T.createElement(t):{}},A=!c&&!u((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),I=Object.getOwnPropertyDescriptor,P={f:c?I:function(t,e){if(t=k(t),e=x(e,!0),A)try{return I(t,e)}catch(t){}if(S(t,e))return f(!m.f.call(t,e),t[e])}},M=/#|\.prototype\./,N=function(t,e){var i=R[F(t)];return i==j||i!=L&&("function"==typeof e?u(e):!!e)},F=N.normalize=function(t){return String(t).replace(M,".").toLowerCase()},R=N.data={},L=N.NATIVE="N",j=N.POLYFILL="P",B=N,z={},H=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},G=function(t,e,i){if(H(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},W=function(t){if(!_(t))throw TypeError(String(t)+" is not an object");return t},V=Object.defineProperty,Y={f:c?V:function(t,e,i){if(W(t),e=x(e,!0),W(i),A)try{return V(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},U=c?function(t,e,i){return Y.f(t,e,f(1,i))}:function(t,e,i){return t[e]=i,t},X=P.f,q=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},K=function(t,e){var i,n,o,r,s,a,l,u,c=t.target,d=t.global,p=t.stat,m=t.proto,f=d?h:p?h[c]:(h[c]||{}).prototype,v=d?z:z[c]||(z[c]={}),g=v.prototype;for(o in e)i=!B(d?o:c+(p?".":"#")+o,t.forced)&&f&&S(f,o),s=v[o],i&&(a=t.noTargetGet?(u=X(f,o))&&u.value:f[o]),r=i&&a?a:e[o],i&&typeof s==typeof r||(l=t.bind&&i?G(r,h):t.wrap&&i?q(r):m&&"function"==typeof r?G(Function.call,r):r,(t.sham||r&&r.sham||s&&s.sham)&&U(l,"sham",!0),v[o]=l,m&&(S(z,n=c+"Prototype")||U(z,n,{}),z[n][o]=r,t.real&&g&&!g[o]&&U(g,o,r)))},$=function(t){return"function"==typeof t?t:void 0},Q=function(t,e){return arguments.length<2?$(z[t])||$(h[t]):z[t]&&z[t][e]||h[t]&&h[t][e]},Z=Math.ceil,J=Math.floor,tt=function(t){return isNaN(t=+t)?0:(t>0?J:Z)(t)},et=Math.min,it=function(t){return t>0?et(tt(t),9007199254740991):0},nt=Math.max,ot=Math.min,rt=function(t,e){var i=tt(t);return i<0?nt(i+e,0):ot(i,e)},st=function(t){return function(e,i,n){var o,r=k(e),s=it(r.length),a=rt(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},at={includes:st(!0),indexOf:st(!1)},lt={},ht=at.indexOf,ut=function(t,e){var i,n=k(t),o=0,r=[];for(i in n)!S(lt,i)&&S(n,i)&&r.push(i);for(;e.length>o;)S(n,i=e[o++])&&(~ht(r,i)||r.push(i));return r},ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dt=Object.keys||function(t){return ut(t,ct)},pt=c?Object.defineProperties:function(t,e){W(t);for(var i,n=dt(e),o=n.length,r=0;o>r;)Y.f(t,i=n[r++],e[i]);return t},mt=Q("document","documentElement"),ft="__core-js_shared__",vt=h[ft]||function(t,e){try{U(h,t,e)}catch(i){h[t]=e}return e}(ft,{}),gt=s((function(t){(t.exports=function(t,e){return vt[t]||(vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.14.0",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yt=0,bt=Math.random(),wt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++yt+bt).toString(36)},kt=gt("keys"),_t=function(t){return kt[t]||(kt[t]=wt(t))},xt=_t("IE_PROTO"),Ct=function(){},Dt=function(t){return"<script>"+t+"</"+"script>"},St=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;St=a?function(t){t.write(Dt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(a):((e=O("iframe")).style.display="none",mt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Dt("document.F=Object")),t.close(),t.F);for(var i=ct.length;i--;)delete St.prototype[ct[i]];return St()};lt[xt]=!0;var Tt=Object.create||function(t,e){var i;return null!==t?(Ct.prototype=W(t),i=new Ct,Ct.prototype=null,i[xt]=t):i=St(),void 0===e?i:pt(i,e)},Et=[].slice,Ot={},At=function(t,e,i){if(!(e in Ot)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Ot[e]=Function("C,a","return new C("+n.join(",")+")")}return Ot[e](t,i)},It=Function.bind||function(t){var e=H(this),i=Et.call(arguments,1),n=function(){var o=i.concat(Et.call(arguments));return this instanceof n?At(e,o.length,o):e.apply(t,o)};return _(e.prototype)&&(n.prototype=e.prototype),n},Pt=Q("Reflect","construct"),Mt=u((function(){function t(){}return!(Pt((function(){}),[],t)instanceof t)})),Nt=!u((function(){Pt((function(){}))})),Ft=Mt||Nt;K({target:"Reflect",stat:!0,forced:Ft,sham:Ft},{construct:function(t,e){H(t),W(e);var i=arguments.length<3?t:H(arguments[2]);if(Nt&&!Mt)return Pt(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(It.apply(t,n))}var o=i.prototype,r=Tt(_(o)?o:Object.prototype),s=Function.apply.call(t,r,e);return _(s)?s:r}});var Rt=z.Reflect.construct;function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}K({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperty:Y.f});var jt=s((function(t){var e=z.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Bt=jt;function zt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Bt(t,n.key,n)}}function Ht(t,e,i){return e&&zt(t.prototype,e),i&&zt(t,i),t}function Gt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}K({target:"Object",stat:!0,sham:!c},{create:Tt});var Wt=z.Object,Vt=function(t,e){return Wt.create(t,e)},Yt=Vt,Ut=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return W(i),function(t){if(!_(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0);K({target:"Object",stat:!0},{setPrototypeOf:Ut});var Xt=z.Object.setPrototypeOf;function qt(t,e){return(qt=Xt||function(t,e){return t.__proto__=e,t})(t,e)}function Kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Yt(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qt(t,e)}var $t,Qt,Zt=Array.isArray||function(t){return"Array"==g(t)},Jt=function(t,e,i){var n=x(e);n in t?Y.f(t,n,f(0,i)):t[n]=i},te=Q("navigator","userAgent")||"",ee=h.process,ie=ee&&ee.versions,ne=ie&&ie.v8;ne?Qt=($t=ne.split("."))[0]<4?1:$t[0]+$t[1]:te&&(!($t=te.match(/Edge\/(\d+)/))||$t[1]>=74)&&($t=te.match(/Chrome\/(\d+)/))&&(Qt=$t[1]);var oe=Qt&&+Qt,re=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),se=re&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=gt("wks"),le=h.Symbol,he=se?le:le&&le.withoutSetter||wt,ue=function(t){return S(ae,t)&&(re||"string"==typeof ae[t])||(re&&S(le,t)?ae[t]=le[t]:ae[t]=he("Symbol."+t)),ae[t]},ce=ue("species"),de=function(t,e){var i;return Zt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Zt(i.prototype)?_(i)&&null===(i=i[ce])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},pe=ue("species"),me=function(t){return oe>=51||!u((function(){var e=[];return(e.constructor={})[pe]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},fe=ue("isConcatSpreadable"),ve=9007199254740991,ge="Maximum allowed index exceeded",ye=oe>=51||!u((function(){var t=[];return t[fe]=!1,t.concat()[0]!==t})),be=me("concat"),we=function(t){if(!_(t))return!1;var e=t[fe];return void 0!==e?!!e:Zt(t)};K({target:"Array",proto:!0,forced:!ye||!be},{concat:function(t){var e,i,n,o,r,s=C(this),a=de(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(we(r=-1===e?s:arguments[e])){if(l+(o=it(r.length))>ve)throw TypeError(ge);for(i=0;i<o;i++,l++)i in r&&Jt(a,l,r[i])}else{if(l>=ve)throw TypeError(ge);Jt(a,l++,r)}return a.length=l,a}});var ke=ct.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return ut(t,ke)}},xe=_e.f,Ce={}.toString,De="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Se={f:function(t){return De&&"[object Window]"==Ce.call(t)?function(t){try{return xe(t)}catch(t){return De.slice()}}(t):xe(k(t))}},Te={f:Object.getOwnPropertySymbols},Ee=function(t,e,i,n){n&&n.enumerable?t[e]=i:U(t,e,i)},Oe={f:ue},Ae=Y.f,Ie=function(t){var e=z.Symbol||(z.Symbol={});S(e,t)||Ae(e,t,{value:Oe.f(t)})},Pe={};Pe[ue("toStringTag")]="z";var Me="[object z]"===String(Pe),Ne=ue("toStringTag"),Fe="Arguments"==g(function(){return arguments}()),Re=Me?g:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ne))?i:Fe?g(e):"Object"==(n=g(e))&&"function"==typeof e.callee?"Arguments":n},Le=Me?{}.toString:function(){return"[object "+Re(this)+"]"},je=Y.f,Be=ue("toStringTag"),ze=function(t,e,i,n){if(t){var o=i?t:t.prototype;S(o,Be)||je(o,Be,{configurable:!0,value:e}),n&&!Me&&U(o,"toString",Le)}},He=Function.toString;"function"!=typeof vt.inspectSource&&(vt.inspectSource=function(t){return He.call(t)});var Ge,We,Ve,Ye=vt.inspectSource,Ue=h.WeakMap,Xe="function"==typeof Ue&&/native code/.test(Ye(Ue)),qe="Object already initialized",Ke=h.WeakMap;if(Xe||vt.state){var $e=vt.state||(vt.state=new Ke),Qe=$e.get,Ze=$e.has,Je=$e.set;Ge=function(t,e){if(Ze.call($e,t))throw new TypeError(qe);return e.facade=t,Je.call($e,t,e),e},We=function(t){return Qe.call($e,t)||{}},Ve=function(t){return Ze.call($e,t)}}else{var ti=_t("state");lt[ti]=!0,Ge=function(t,e){if(S(t,ti))throw new TypeError(qe);return e.facade=t,U(t,ti,e),e},We=function(t){return S(t,ti)?t[ti]:{}},Ve=function(t){return S(t,ti)}}var ei={set:Ge,get:We,has:Ve,enforce:function(t){return Ve(t)?We(t):Ge(t,{})},getterFor:function(t){return function(e){var i;if(!_(e)||(i=We(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},ii=[].push,ni=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,s=7==t,a=5==t||r;return function(l,h,u,c){for(var d,p,m=C(l),f=b(m),v=G(h,u,3),g=it(f.length),y=0,w=c||de,k=e?w(l,g):i||s?w(l,0):void 0;g>y;y++)if((a||y in f)&&(p=v(d=f[y],y,m),t))if(e)k[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:ii.call(k,d)}else switch(t){case 4:return!1;case 7:ii.call(k,d)}return r?-1:n||o?o:k}},oi={forEach:ni(0),map:ni(1),filter:ni(2),some:ni(3),every:ni(4),find:ni(5),findIndex:ni(6),filterOut:ni(7)},ri=oi.forEach,si=_t("hidden"),ai="Symbol",li=ue("toPrimitive"),hi=ei.set,ui=ei.getterFor(ai),ci=Object.prototype,di=h.Symbol,pi=Q("JSON","stringify"),mi=P.f,fi=Y.f,vi=Se.f,gi=m.f,yi=gt("symbols"),bi=gt("op-symbols"),wi=gt("string-to-symbol-registry"),ki=gt("symbol-to-string-registry"),_i=gt("wks"),xi=h.QObject,Ci=!xi||!xi.prototype||!xi.prototype.findChild,Di=c&&u((function(){return 7!=Tt(fi({},"a",{get:function(){return fi(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=mi(ci,e);n&&delete ci[e],fi(t,e,i),n&&t!==ci&&fi(ci,e,n)}:fi,Si=function(t,e){var i=yi[t]=Tt(di.prototype);return hi(i,{type:ai,tag:t,description:e}),c||(i.description=e),i},Ti=se?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof di},Ei=function(t,e,i){t===ci&&Ei(bi,e,i),W(t);var n=x(e,!0);return W(i),S(yi,n)?(i.enumerable?(S(t,si)&&t[si][n]&&(t[si][n]=!1),i=Tt(i,{enumerable:f(0,!1)})):(S(t,si)||fi(t,si,f(1,{})),t[si][n]=!0),Di(t,n,i)):fi(t,n,i)},Oi=function(t,e){W(t);var i=k(e),n=dt(i).concat(Mi(i));return ri(n,(function(e){c&&!Ai.call(i,e)||Ei(t,e,i[e])})),t},Ai=function(t){var e=x(t,!0),i=gi.call(this,e);return!(this===ci&&S(yi,e)&&!S(bi,e))&&(!(i||!S(this,e)||!S(yi,e)||S(this,si)&&this[si][e])||i)},Ii=function(t,e){var i=k(t),n=x(e,!0);if(i!==ci||!S(yi,n)||S(bi,n)){var o=mi(i,n);return!o||!S(yi,n)||S(i,si)&&i[si][n]||(o.enumerable=!0),o}},Pi=function(t){var e=vi(k(t)),i=[];return ri(e,(function(t){S(yi,t)||S(lt,t)||i.push(t)})),i},Mi=function(t){var e=t===ci,i=vi(e?bi:k(t)),n=[];return ri(i,(function(t){!S(yi,t)||e&&!S(ci,t)||n.push(yi[t])})),n};if(re||(Ee((di=function(){if(this instanceof di)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=wt(t),i=function(t){this===ci&&i.call(bi,t),S(this,si)&&S(this[si],e)&&(this[si][e]=!1),Di(this,e,f(1,t))};return c&&Ci&&Di(ci,e,{configurable:!0,set:i}),Si(e,t)}).prototype,"toString",(function(){return ui(this).tag})),Ee(di,"withoutSetter",(function(t){return Si(wt(t),t)})),m.f=Ai,Y.f=Ei,P.f=Ii,_e.f=Se.f=Pi,Te.f=Mi,Oe.f=function(t){return Si(ue(t),t)},c&&fi(di.prototype,"description",{configurable:!0,get:function(){return ui(this).description}})),K({global:!0,wrap:!0,forced:!re,sham:!re},{Symbol:di}),ri(dt(_i),(function(t){Ie(t)})),K({target:ai,stat:!0,forced:!re},{for:function(t){var e=String(t);if(S(wi,e))return wi[e];var i=di(e);return wi[e]=i,ki[i]=e,i},keyFor:function(t){if(!Ti(t))throw TypeError(t+" is not a symbol");if(S(ki,t))return ki[t]},useSetter:function(){Ci=!0},useSimple:function(){Ci=!1}}),K({target:"Object",stat:!0,forced:!re,sham:!c},{create:function(t,e){return void 0===e?Tt(t):Oi(Tt(t),e)},defineProperty:Ei,defineProperties:Oi,getOwnPropertyDescriptor:Ii}),K({target:"Object",stat:!0,forced:!re},{getOwnPropertyNames:Pi,getOwnPropertySymbols:Mi}),K({target:"Object",stat:!0,forced:u((function(){Te.f(1)}))},{getOwnPropertySymbols:function(t){return Te.f(C(t))}}),pi){var Ni=!re||u((function(){var t=di();return"[null]"!=pi([t])||"{}"!=pi({a:t})||"{}"!=pi(Object(t))}));K({target:"JSON",stat:!0,forced:Ni},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(_(e)||void 0!==t)&&!Ti(t))return Zt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ti(e))return e}),o[1]=e,pi.apply(null,o)}})}di.prototype[li]||U(di.prototype,li,di.prototype.valueOf),ze(di,ai),lt[si]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),ze(h.JSON,"JSON",!0);var Fi=z.Symbol;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var Ri,Li,ji,Bi=Fi,zi=function(t){return function(e,i){var n,o,r=String(w(e)),s=tt(i),a=r.length;return s<0||s>=a?t?"":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}},Hi={codeAt:zi(!1),charAt:zi(!0)},Gi=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wi=_t("IE_PROTO"),Vi=Object.prototype,Yi=Gi?Object.getPrototypeOf:function(t){return t=C(t),S(t,Wi)?t[Wi]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Vi:null},Ui=ue("iterator"),Xi=!1;[].keys&&("next"in(ji=[].keys())?(Li=Yi(Yi(ji)))!==Object.prototype&&(Ri=Li):Xi=!0);var qi=null==Ri||u((function(){var t={};return Ri[Ui].call(t)!==t}));qi&&(Ri={}),qi&&!S(Ri,Ui)&&U(Ri,Ui,(function(){return this}));var Ki={IteratorPrototype:Ri,BUGGY_SAFARI_ITERATORS:Xi},$i={},Qi=Ki.IteratorPrototype,Zi=function(){return this},Ji=Ki.IteratorPrototype,tn=Ki.BUGGY_SAFARI_ITERATORS,en=ue("iterator"),nn="keys",on="values",rn="entries",sn=function(){return this},an=function(t,e,i,n,o,r,s){!function(t,e,i){var n=e+" Iterator";t.prototype=Tt(Qi,{next:f(1,i)}),ze(t,n,!1,!0),$i[n]=Zi}(i,e,n);var a,l,h,u=function(t){if(t===o&&v)return v;if(!tn&&t in p)return p[t];switch(t){case nn:case on:case rn:return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,p=t.prototype,m=p[en]||p["@@iterator"]||o&&p[o],v=!tn&&m||u(o),g="Array"==e&&p.entries||m;if(g&&(a=Yi(g.call(new t)),Ji!==Object.prototype&&a.next&&(ze(a,c,!0,!0),$i[c]=sn)),o==on&&m&&m.name!==on&&(d=!0,v=function(){return m.call(this)}),s&&p[en]!==v&&U(p,en,v),$i[e]=v,o)if(l={values:u(on),keys:r?v:u(nn),entries:u(rn)},s)for(h in l)(tn||d||!(h in p))&&Ee(p,h,l[h]);else K({target:e,proto:!0,forced:tn||d},l);return l},ln=Hi.charAt,hn="String Iterator",un=ei.set,cn=ei.getterFor(hn);an(String,"String",(function(t){un(this,{type:hn,string:String(t),index:0})}),(function(){var t,e=cn(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=ln(i,n),e.index+=t.length,{value:t,done:!1})}));var dn="Array Iterator",pn=ei.set,mn=ei.getterFor(dn);an(Array,"Array",(function(t,e){pn(this,{type:dn,target:k(t),index:0,kind:e})}),(function(){var t=mn(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),$i.Arguments=$i.Array;var fn=ue("toStringTag");for(var vn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var gn=h[vn],yn=gn&&gn.prototype;yn&&Re(yn)!==fn&&U(yn,fn,vn),$i[vn]=$i.Array}var bn=Oe.f("iterator");function wn(t){return(wn="function"==typeof Bi&&"symbol"==typeof bn?function(t){return typeof t}:function(t){return t&&"function"==typeof Bi&&t.constructor===Bi&&t!==Bi.prototype?"symbol":typeof t})(t)}function kn(t,e){return!e||"object"!==wn(e)&&"function"!=typeof e?Gt(t):e}var _n=u((function(){Yi(1)}));K({target:"Object",stat:!0,forced:_n,sham:!Gi},{getPrototypeOf:function(t){return Yi(C(t))}});var xn=z.Object.getPrototypeOf,Cn=xn;function Dn(t){return(Dn=Xt?Cn:function(t){return t.__proto__||Cn(t)})(t)}K({target:"Array",stat:!0},{isArray:Zt});var Sn=z.Array.isArray,Tn=Sn;K({target:"Function",proto:!0},{bind:It});var En=function(t){return z[t+"Prototype"]},On=En("Function").bind,An=Function.prototype,In=function(t){var e=t.bind;return t===An||t instanceof Function&&e===An.bind?On:e},Pn=[].slice,Mn=/MSIE .\./.test(te),Nn=function(t){return function(e,i){var n=arguments.length>2,o=n?Pn.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};K({global:!0,bind:!0,forced:Mn},{setTimeout:Nn(h.setTimeout),setInterval:Nn(h.setInterval)});var Fn=z.setTimeout,Rn=function(t,e){var i=[][t];return!!i&&u((function(){i.call(null,e||function(){throw 1},1)}))},Ln=oi.forEach,jn=Rn("forEach")?[].forEach:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)};K({target:"Array",proto:!0,forced:[].forEach!=jn},{forEach:jn});var Bn=En("Array").forEach,zn=Array.prototype,Hn={DOMTokenList:!0,NodeList:!0},Gn=function(t){var e=t.forEach;return t===zn||t instanceof Array&&e===zn.forEach||Hn.hasOwnProperty(Re(t))?Bn:e},Wn="undefined"!=typeof window&&window.moment||o.default,Vn=z.Object.getOwnPropertySymbols,Yn=oi.filter,Un=me("filter");K({target:"Array",proto:!0,forced:!Un},{filter:function(t){return Yn(this,t,arguments.length>1?arguments[1]:void 0)}});var Xn=En("Array").filter,qn=Array.prototype,Kn=function(t){var e=t.filter;return t===qn||t instanceof Array&&e===qn.filter?Xn:e},$n=P.f,Qn=u((function(){$n(1)}));K({target:"Object",stat:!0,forced:!c||Qn,sham:!c},{getOwnPropertyDescriptor:function(t,e){return $n(k(t),e)}});var Zn=s((function(t){var e=z.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Jn=Q("Reflect","ownKeys")||function(t){var e=_e.f(W(t)),i=Te.f;return i?e.concat(i(t)):e};K({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(t){for(var e,i,n=k(t),o=P.f,r=Jn(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&Jt(s,e,i);return s}});var to=z.Object.getOwnPropertyDescriptors;K({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperties:pt});var eo=s((function(t){var e=z.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)}));function io(t,e,i){return e in t?Bt(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var no=oi.map,oo=me("map");K({target:"Array",proto:!0,forced:!oo},{map:function(t){return no(this,t,arguments.length>1?arguments[1]:void 0)}});var ro=En("Array").map,so=Array.prototype,ao=function(t){var e=t.map;return t===so||t instanceof Array&&e===so.map?ro:e},lo=function(t){return function(e,i,n,o){H(i);var r=C(e),s=b(r),a=it(r.length),l=t?a-1:0,h=t?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=h;break}if(l+=h,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=h)l in s&&(o=i(o,s[l],l,r));return o}},ho={left:lo(!1),right:lo(!0)},uo="process"==g(h.process),co=ho.left,po=Rn("reduce");K({target:"Array",proto:!0,forced:!po||!uo&&oe>79&&oe<83},{reduce:function(t){return co(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var mo=En("Array").reduce,fo=Array.prototype,vo=function(t){var e=t.reduce;return t===fo||t instanceof Array&&e===fo.reduce?mo:e},go=u((function(){dt(1)}));K({target:"Object",stat:!0,forced:go},{keys:function(t){return dt(C(t))}});var yo=z.Object.keys,bo=jt,wo=function(t){var e=t.return;if(void 0!==e)return W(e.call(t)).value},ko=function(t,e,i,n){try{return n?e(W(i)[0],i[1]):e(i)}catch(e){throw wo(t),e}},_o=ue("iterator"),xo=Array.prototype,Co=function(t){return void 0!==t&&($i.Array===t||xo[_o]===t)},Do=ue("iterator"),So=function(t){if(null!=t)return t[Do]||t["@@iterator"]||$i[Re(t)]},To=ue("iterator"),Eo=!1;try{var Oo=0,Ao={next:function(){return{done:!!Oo++}},return:function(){Eo=!0}};Ao[To]=function(){return this},Array.from(Ao,(function(){throw 2}))}catch(t){}var Io=!function(t,e){if(!e&&!Eo)return!1;var i=!1;try{var n={};n[To]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));K({target:"Array",stat:!0,forced:Io},{from:function(t){var e,i,n,o,r,s,a=C(t),l="function"==typeof this?this:Array,h=arguments.length,u=h>1?arguments[1]:void 0,c=void 0!==u,d=So(a),p=0;if(c&&(u=G(u,h>2?arguments[2]:void 0,2)),null==d||l==Array&&Co(d))for(i=new l(e=it(a.length));e>p;p++)s=c?u(a[p],p):a[p],Jt(i,p,s);else for(r=(o=d.call(a)).next,i=new l;!(n=r.call(o)).done;p++)s=c?ko(o,u,[n.value,p],!0):n.value,Jt(i,p,s);return i.length=p,i}});var Po=z.Array.from,Mo=Po,No=So,Fo=Sn;var Ro=me("slice"),Lo=ue("species"),jo=[].slice,Bo=Math.max;K({target:"Array",proto:!0,forced:!Ro},{slice:function(t,e){var i,n,o,r=k(this),s=it(r.length),a=rt(t,s),l=rt(void 0===e?s:e,s);if(Zt(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!Zt(i.prototype)?_(i)&&null===(i=i[Lo])&&(i=void 0):i=void 0,i===Array||void 0===i))return jo.call(r,a,l);for(n=new(void 0===i?Array:i)(Bo(l-a,0)),o=0;a<l;a++,o++)a in r&&Jt(n,o,r[a]);return n.length=o,n}});var zo=En("Array").slice,Ho=Array.prototype,Go=function(t){var e=t.slice;return t===Ho||t instanceof Array&&e===Ho.slice?zo:e},Wo=Go,Vo=Po;function Yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Uo(t,e){var i;if(t){if("string"==typeof t)return Yo(t,e);var n=Wo(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Vo(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yo(t,e):void 0}}function Xo(t,e){return function(t){if(Fo(t))return t}(t)||function(t,e){var i=t&&(void 0!==Bi&&No(t)||t["@@iterator"]);if(null!=i){var n,o,r=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(r.push(n.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw o}}return r}}(t,e)||Uo(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qo(t){return function(t){if(Fo(t))return Yo(t)}(t)||function(t){if(void 0!==Bi&&null!=No(t)||null!=t["@@iterator"])return Vo(t)}(t)||Uo(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ko=Fi,$o=En("Array").concat,Qo=Array.prototype,Zo=function(t){var e=t.concat;return t===Qo||t instanceof Array&&e===Qo.concat?$o:e},Jo=Go;K({target:"Reflect",stat:!0},{ownKeys:Jn});var tr=z.Reflect.ownKeys;K({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var er=z.Date.now,ir=[].reverse,nr=[1,2];K({target:"Array",proto:!0,forced:String(nr)===String(nr.reverse())},{reverse:function(){return Zt(this)&&(this.length=this.length),ir.call(this)}});var or=En("Array").reverse,rr=Array.prototype,sr=function(t){var e=t.reverse;return t===rr||t instanceof Array&&e===rr.reverse?or:e},ar=me("splice"),lr=Math.max,hr=Math.min,ur=9007199254740991,cr="Maximum allowed length exceeded";K({target:"Array",proto:!0,forced:!ar},{splice:function(t,e){var i,n,o,r,s,a,l=C(this),h=it(l.length),u=rt(t,h),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=h-u):(i=c-2,n=hr(lr(tt(e),0),h-u)),h+i-n>ur)throw TypeError(cr);for(o=de(l,n),r=0;r<n;r++)(s=u+r)in l&&Jt(o,r,l[s]);if(o.length=n,i<n){for(r=u;r<h-n;r++)a=r+i,(s=r+n)in l?l[a]=l[s]:delete l[a];for(r=h;r>h-n+i;r--)delete l[r-1]}else if(i>n)for(r=h-n;r>u;r--)a=r+i-1,(s=r+n-1)in l?l[a]=l[s]:delete l[a];for(r=0;r<i;r++)l[r+u]=arguments[r+2];return l.length=h-n+i,o}});var dr=En("Array").splice,pr=Array.prototype,mr=function(t){var e=t.splice;return t===pr||t instanceof Array&&e===pr.splice?dr:e},fr=Object.assign,vr=Object.defineProperty,gr=!fr||u((function(){if(c&&1!==fr({b:1},fr(vr({},"a",{enumerable:!0,get:function(){vr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=fr({},t)[i]||dt(fr({},e)).join("")!=n}))?function(t,e){for(var i=C(t),n=arguments.length,o=1,r=Te.f,s=m.f;n>o;)for(var a,l=b(arguments[o++]),h=r?dt(l).concat(r(l)):dt(l),u=h.length,d=0;u>d;)a=h[d++],c&&!s.call(l,a)||(i[a]=l[a]);return i}:fr;K({target:"Object",stat:!0,forced:Object.assign!==gr},{assign:gr});var yr=z.Object.assign,br=at.includes;K({target:"Array",proto:!0},{includes:function(t){return br(this,t,arguments.length>1?arguments[1]:void 0)}});var wr=En("Array").includes,kr=ue("match"),_r=function(t){if(function(t){var e;return _(t)&&(void 0!==(e=t[kr])?!!e:"RegExp"==g(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},xr=ue("match");K({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[xr]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(w(this)).indexOf(_r(t),arguments.length>1?arguments[1]:void 0)}});var Cr=En("String").includes,Dr=Array.prototype,Sr=String.prototype,Tr=function(t){var e=t.includes;return t===Dr||t instanceof Array&&e===Dr.includes?wr:"string"==typeof t||t===Sr||t instanceof String&&e===Sr.includes?Cr:e},Er=xn,Or=m.f,Ar=function(t){return function(e){for(var i,n=k(e),o=dt(n),r=o.length,s=0,a=[];r>s;)i=o[s++],c&&!Or.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Ir={entries:Ar(!0),values:Ar(!1)}.values;K({target:"Object",stat:!0},{values:function(t){return Ir(t)}});var Pr=z.Object.values,Mr="\t\n\v\f\r                 \u2028\u2029\ufeff",Nr="["+Mr+"]",Fr=RegExp("^"+Nr+Nr+"*"),Rr=RegExp(Nr+Nr+"*$"),Lr=function(t){return function(e){var i=String(w(e));return 1&t&&(i=i.replace(Fr,"")),2&t&&(i=i.replace(Rr,"")),i}},jr={start:Lr(1),end:Lr(2),trim:Lr(3)},Br=jr.trim,zr=h.parseInt,Hr=/^[+-]?0[Xx]/,Gr=8!==zr(Mr+"08")||22!==zr(Mr+"0x16")?function(t,e){var i=Br(String(t));return zr(i,e>>>0||(Hr.test(i)?16:10))}:zr;K({global:!0,forced:parseInt!=Gr},{parseInt:Gr});var Wr=z.parseInt,Vr=at.indexOf,Yr=[].indexOf,Ur=!!Yr&&1/[1].indexOf(1,-0)<0,Xr=Rn("indexOf");K({target:"Array",proto:!0,forced:Ur||!Xr},{indexOf:function(t){return Ur?Yr.apply(this,arguments)||0:Vr(this,t,arguments.length>1?arguments[1]:void 0)}});var qr,Kr=En("Array").indexOf,$r=Array.prototype,Qr=function(t){var e=t.indexOf;return t===$r||t instanceof Array&&e===$r.indexOf?Kr:e},Zr=jr.trim;K({target:"String",proto:!0,forced:(qr="trim",u((function(){return!!Mr[qr]()||"​…᠎"!="​…᠎"[qr]()||Mr[qr].name!==qr})))},{trim:function(){return Zr(this)}});var Jr=En("String").trim,ts=String.prototype,es=function(t){var e=t.trim;return"string"==typeof t||t===ts||t instanceof String&&e===ts.trim?Jr:e},is=Vt,ns=Q("JSON","stringify"),os=/[\uD800-\uDFFF]/g,rs=/^[\uD800-\uDBFF]$/,ss=/^[\uDC00-\uDFFF]$/,as=function(t,e,i){var n=i.charAt(e-1),o=i.charAt(e+1);return rs.test(t)&&!ss.test(o)||ss.test(t)&&!rs.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},ls=u((function(){return'"\\udf06\\ud834"'!==ns("\udf06\ud834")||'"\\udead"'!==ns("\udead")}));ns&&K({target:"JSON",stat:!0,forced:ls},{stringify:function(t,e,i){var n=ns.apply(null,arguments);return"string"==typeof n?n.replace(os,as):n}}),z.JSON||(z.JSON={stringify:JSON.stringify});var hs=function(t,e,i){return z.JSON.stringify.apply(null,arguments)};K({target:"Array",proto:!0},{fill:function(t){for(var e=C(this),i=it(e.length),n=arguments.length,o=rt(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:rt(r,i);s>o;)e[o++]=t;return e}});var us=En("Array").fill,cs=Array.prototype,ds=function(t){var e=t.fill;return t===cs||t instanceof Array&&e===cs.fill?us:e},ps=s((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})); /*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */ function ms(){return(ms=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function fs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function vs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var gs,ys="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,bs=["","webkit","Moz","MS","ms","o"],ws="undefined"==typeof document?{style:{}}:document.createElement("div"),ks=Math.round,_s=Math.abs,xs=Date.now;function Cs(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<bs.length;){if((n=(i=bs[r])?i+o:e)in t)return n;r++}}gs="undefined"==typeof window?{}:window;var Ds=Cs(ws.style,"touchAction"),Ss=void 0!==Ds;var Ts="compute",Es="auto",Os="manipulation",As="none",Is="pan-x",Ps="pan-y",Ms=function(){if(!Ss)return!1;var t={},e=gs.CSS&&gs.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||gs.CSS.supports("touch-action",i)})),t}(),Ns="ontouchstart"in gs,Fs=void 0!==Cs(gs,"PointerEvent"),Rs=Ns&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Ls="touch",js="mouse",Bs=16,zs=24,Hs=["x","y"],Gs=["clientX","clientY"];function Ws(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function Vs(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Ys(t,e){return t.indexOf(e)>-1}var Us=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Ts&&(t=this.compute()),Ss&&this.manager.element.style&&Ms[t]&&(this.manager.element.style[Ds]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Ws(this.manager.recognizers,(function(e){Vs(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ys(t,As))return As;var e=Ys(t,Is),i=Ys(t,Ps);return e&&i?As:e||i?e?Is:Ps:Ys(t,Os)?Os:Es}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=Ys(n,As)&&!Ms.none,r=Ys(n,Ps)&&!Ms["pan-y"],s=Ys(n,Is)&&!Ms["pan-x"];if(o){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!r)return o||r&&6&i||s&&i&zs?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Xs(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function qs(t){var e=t.length;if(1===e)return{x:ks(t[0].clientX),y:ks(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:ks(i/e),y:ks(n/e)}}function Ks(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:ks(t.pointers[i].clientX),clientY:ks(t.pointers[i].clientY)},i++;return{timeStamp:xs(),pointers:e,center:qs(e),deltaX:t.deltaX,deltaY:t.deltaY}}function $s(t,e,i){i||(i=Hs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Qs(t,e,i){i||(i=Hs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function Zs(t,e){return t===e?1:_s(t)>=_s(e)?t<0?2:4:e<0?8:Bs}function Js(t,e,i){return{x:e/t||0,y:i/t||0}}function ta(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Ks(e)),o>1&&!i.firstMultiple?i.firstMultiple=Ks(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,l=e.center=qs(n);e.timeStamp=xs(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Qs(a,l),e.distance=$s(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=Zs(e.deltaX,e.deltaY);var h,u,c=Js(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=_s(c.x)>_s(c.y)?c.x:c.y,e.scale=s?(h=s.pointers,$s((u=n)[0],u[1],Gs)/$s(h[0],h[1],Gs)):1,e.rotation=s?function(t,e){return Qs(e[1],e[0],Gs)+Qs(t[1],t[0],Gs)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,u=Js(a,l,h);n=u.x,o=u.y,i=_s(u.x)>_s(u.y)?u.x:u.y,r=Zs(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var d,p=t.element,m=e.srcEvent;Xs(d=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,p)&&(p=d),e.target=p}function ea(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o==0,s=12&e&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,ta(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function ia(t){return t.trim().split(/\s+/g)}function na(t,e,i){Ws(ia(e),(function(e){t.addEventListener(e,i,!1)}))}function oa(t,e,i){Ws(ia(e),(function(e){t.removeEventListener(e,i,!1)}))}function ra(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var sa=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Vs(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&na(this.element,this.evEl,this.domHandler),this.evTarget&&na(this.target,this.evTarget,this.domHandler),this.evWin&&na(ra(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&oa(this.element,this.evEl,this.domHandler),this.evTarget&&oa(this.target,this.evTarget,this.domHandler),this.evWin&&oa(ra(this.element),this.evWin,this.domHandler)},t}();function aa(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var la={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ha={2:Ls,3:"pen",4:js,5:"kinect"},ua="pointerdown",ca="pointermove pointerup pointercancel";gs.MSPointerEvent&&!gs.PointerEvent&&(ua="MSPointerDown",ca="MSPointerMove MSPointerUp MSPointerCancel");var da=function(t){function e(){var i,n=e.prototype;return n.evEl=ua,n.evWin=ca,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return fs(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=la[n],r=ha[t.pointerType]||t.pointerType,s=r===Ls,a=aa(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))},e}(sa);function pa(t){return Array.prototype.slice.call(t,0)}function ma(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];aa(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var fa={touchstart:1,touchmove:2,touchend:4,touchcancel:8},va="touchstart touchmove touchend touchcancel",ga=function(t){function e(){var i;return e.prototype.evTarget=va,(i=t.apply(this,arguments)||this).targetIds={},i}return fs(e,t),e.prototype.handler=function(t){var e=fa[t.type],i=ya.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Ls,srcEvent:t})},e}(sa);function ya(t,e){var i,n,o=pa(t.touches),r=this.targetIds;if(3&e&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=pa(t.changedTouches),a=[],l=this.target;if(n=o.filter((function(t){return Xs(t.target,l)})),1===e)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[ma(n.concat(a),"identifier",!0),a]:void 0}var ba={mousedown:1,mousemove:2,mouseup:4},wa="mousedown",ka="mousemove mouseup",_a=function(t){function e(){var i,n=e.prototype;return n.evEl=wa,n.evWin=ka,(i=t.apply(this,arguments)||this).pressed=!1,i}return fs(e,t),e.prototype.handler=function(t){var e=ba[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:js,srcEvent:t}))},e}(sa);function xa(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function Ca(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,xa.call(this,e)):12&t&&xa.call(this,e)}function Da(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}var Sa=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var o=i.pointerType===Ls,r=i.pointerType===js;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(o)Ca.call(vs(vs(n)),e,i);else if(r&&Da.call(vs(vs(n)),i))return;n.callback(t,e,i)}},n.touch=new ga(n.manager,n.handler),n.mouse=new _a(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return fs(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(sa)}();function Ta(t,e,i){return!!Array.isArray(t)&&(Ws(t,i[e],i),!0)}var Ea=32,Oa=1;function Aa(t,e){var i=e.manager;return i?i.get(t):t}function Ia(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Pa=function(){function t(t){void 0===t&&(t={}),this.options=ms({enable:!0},t),this.id=Oa++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return ys(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Ta(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Aa(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Ta(t,"dropRecognizeWith",this)||(t=Aa(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Ta(t,"requireFailure",this))return this;var e=this.requireFail;return-1===aa(e,t=Aa(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Ta(t,"dropRequireFailure",this))return this;t=Aa(t,this);var e=aa(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+Ia(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+Ia(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Ea},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=ys({},t);if(!Vs(this.options.enable,[this,e]))return this.reset(),void(this.state=Ea);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Ma=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}fs(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Os]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(o&&r&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||$s(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return Ea},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Ea}),this.options.interval),Ea},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Pa),Na=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({pointers:1},e))||this}fs(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:Ea},e}(Pa);function Fa(t){return t===Bs?"down":8===t?"up":2===t?"left":4===t?"right":""}var Ra=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}fs(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(Ps),t&zs&&e.push(Is),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:Bs,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},i.attrTest=function(t){return Na.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Fa(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Na),La=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}fs(e,t);var i=e.prototype;return i.getTouchAction=function(){return Ra.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:n&zs&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&_s(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Fa(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Na),ja=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"pinch",threshold:0,pointers:2},e))||this}fs(e,t);var i=e.prototype;return i.getTouchAction=function(){return[As]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(Na),Ba=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"rotate",threshold:0,pointers:2},e))||this}fs(e,t);var i=e.prototype;return i.getTouchAction=function(){return[As]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Na),za=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"pr