File: D:/HostingSpaces/SBogers10/inzigd.komma.pro/wwwroot/js/site/core.js
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function createNewEvent(t){var e;return"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),e}function dispatchEventForElement(t,e){document.createEvent?t.dispatchEvent(e):t.fireEvent("on"+e.eventType,e)}!function(t,e,n,i){"use strict";function o(t,e,n){return setTimeout(u(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function a(e,n,i){var o="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,i),e.apply(this,arguments)}}function c(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&Z(i,n)}function u(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return _typeof(t)==nt?t.apply(e&&e[0]||i,e):t}function h(t,e){return t===i?e:t}function f(t,e,n){s(v(e),function(e){t.addEventListener(e,n,!1)})}function p(t,e,n){s(v(e),function(e){t.removeEventListener(e,n,!1)})}function d(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function v(t){return t.trim().split(/\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function g(t){return Array.prototype.slice.call(t,0)}function w(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];y(o,s)<0&&i.push(t[r]),o[r]=s,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function b(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),s=0;s<tt.length;){if((o=(n=tt[s])?n+r:e)in t)return o;s++}return i}function T(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function E(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&n.handler(e)},this.init()}function x(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&mt&&i-o==0,s=e&(yt|gt)&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=S(e)),o>1&&!n.firstMultiple?n.firstMultiple=S(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,c=e.center=j(i);e.timeStamp=rt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=R(a,c),e.distance=I(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==mt&&r.eventType!==yt||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}(n,e),e.offsetDirection=C(e.deltaX,e.deltaY);var u=A(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=ot(u.x)>ot(u.y)?u.x:u.y,e.scale=s?function(t,e){return I(e[0],e[1],Ct)/I(t[0],t[1],Ct)}(s.pointers,i):1,e.rotation=s?function(t,e){return R(e[1],e[0],Ct)+R(t[1],t[0],Ct)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,_(n,e);var l=t.element;d(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function _(t,e){var n,o,r,s,a=t.lastInterval||e,c=e.timeStamp-a.timeStamp;if(e.eventType!=gt&&(c>dt||a.velocity===i)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,h=A(c,u,l);o=h.x,r=h.y,n=ot(h.x)>ot(h.y)?h.x:h.y,s=C(u,l),t.lastInterval=e}else n=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=s}function S(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:it(t.pointers[n].clientX),clientY:it(t.pointers[n].clientY)},n++;return{timeStamp:rt(),pointers:e,center:j(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t){var e=t.length;if(1===e)return{x:it(t[0].clientX),y:it(t[0].clientY)};for(var n=0,i=0,o=0;e>o;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:it(n/e),y:it(i/e)}}function A(t,e,n){return{x:e/t||0,y:n/t||0}}function C(t,e){return t===e?wt:ot(t)>=ot(e)?0>t?bt:Tt:0>e?Et:xt}function I(t,e,n){n||(n=At);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function R(t,e,n){n||(n=At);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function P(){this.evEl=Rt,this.evWin=Pt,this.pressed=!1,E.apply(this,arguments)}function O(){this.evEl=qt,this.evWin=Mt,E.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=Lt,this.evWin=Ht,this.started=!1,E.apply(this,arguments)}function q(){this.evTarget=Ft,this.targetIds={},E.apply(this,arguments)}function M(){E.apply(this,arguments);var t=u(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new P(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function k(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},Xt)}}function L(t,e){this.manager=t,this.set(e)}function H(t){this.options=Z({},this.defaults,t||{}),this.id=ct++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=$t,this.simultaneous={},this.requireFail=[]}function D(t){return t&ie?"cancel":t&ee?"end":t&te?"move":t&Zt?"start":""}function F(t){return t==xt?"down":t==Et?"up":t==bt?"left":t==Tt?"right":""}function X(t,e){var n=e.manager;return n?n.get(t):t}function U(){H.apply(this,arguments)}function z(){U.apply(this,arguments),this.pX=null,this.pY=null}function Y(){U.apply(this,arguments)}function W(){H.apply(this,arguments),this._timer=null,this._input=null}function B(){U.apply(this,arguments)}function V(){U.apply(this,arguments)}function Q(){H.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function G(t,e){return(e=e||{}).recognizers=h(e.recognizers,G.defaults.preset),new J(t,e)}function J(t,e){this.options=Z({},G.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(lt?O:ht?q:ut?M:P))(t,x)}(this),this.touchAction=new L(this,this.options.touchAction),K(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function K(t,e){var n,i=t.element;i.style&&(s(t.options.cssProps,function(o,r){n=b(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function $(t,n){var i=e.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}var Z,tt=["","webkit","Moz","MS","ms","o"],et=e.createElement("div"),nt="function",it=Math.round,ot=Math.abs,rt=Date.now;Z="function"!=typeof Object.assign?function(t){if(t===i||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==i&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var st=a(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===i)&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),at=a(function(t,e){return st(t,e,!0)},"merge","Use `assign`."),ct=1,ut="ontouchstart"in t,lt=b(t,"PointerEvent")!==i,ht=ut&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ft="touch",pt="mouse",dt=25,mt=1,vt=2,yt=4,gt=8,wt=1,bt=2,Tt=4,Et=8,xt=16,_t=bt|Tt,St=Et|xt,jt=_t|St,At=["x","y"],Ct=["clientX","clientY"];E.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(T(this.element),this.evWin,this.domHandler)}};var It={mousedown:mt,mousemove:vt,mouseup:yt},Rt="mousedown",Pt="mousemove mouseup";c(P,E,{handler:function(t){var e=It[t.type];e&mt&&0===t.button&&(this.pressed=!0),e&vt&&1!==t.which&&(e=yt),this.pressed&&(e&yt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:pt,srcEvent:t}))}});var Ot={pointerdown:mt,pointermove:vt,pointerup:yt,pointercancel:gt,pointerout:gt},Nt={2:ft,3:"pen",4:pt,5:"kinect"},qt="pointerdown",Mt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(qt="MSPointerDown",Mt="MSPointerMove MSPointerUp MSPointerCancel"),c(O,E,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=Ot[i],r=Nt[t.pointerType]||t.pointerType,s=r==ft,a=y(e,t.pointerId,"pointerId");o&mt&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):o&(yt|gt)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var kt={touchstart:mt,touchmove:vt,touchend:yt,touchcancel:gt},Lt="touchstart",Ht="touchstart touchmove touchend touchcancel";c(N,E,{handler:function(t){var e=kt[t.type];if(e===mt&&(this.started=!0),this.started){var n=function(t,e){var n=g(t.touches),i=g(t.changedTouches);return e&(yt|gt)&&(n=w(n.concat(i),"identifier",!0)),[n,i]}.call(this,t,e);e&(yt|gt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}}});var Dt={touchstart:mt,touchmove:vt,touchend:yt,touchcancel:gt},Ft="touchstart touchmove touchend touchcancel";c(q,E,{handler:function(t){var e=Dt[t.type],n=function(t,e){var n=g(t.touches),i=this.targetIds;if(e&(mt|vt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=g(t.changedTouches),a=[],c=this.target;if(r=n.filter(function(t){return d(t.target,c)}),e===mt)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),e&(yt|gt)&&delete i[s[o].identifier],o++;return a.length?[w(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}});var Xt=2500,Ut=25;c(M,E,{handler:function(t,e,n){var i=n.pointerType==ft,o=n.pointerType==pt;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&mt?(this.primaryTouch=e.changedPointers[0].identifier,k.call(this,e)):t&(yt|gt)&&k.call(this,e)}).call(this,e,n);else if(o&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),s=Math.abs(n-o.y);if(Ut>=r&&Ut>=s)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zt=b(et.style,"touchAction"),Yt=zt!==i,Wt="compute",Bt="auto",Vt="manipulation",Qt="none",Gt="pan-x",Jt="pan-y",Kt=function(){if(!Yt)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){e[i]=!n||t.CSS.supports("touch-action",i)}),e}();L.prototype={set:function(t){t==Wt&&(t=this.compute()),Yt&&this.manager.element.style&&Kt[t]&&(this.manager.element.style[zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){l(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(m(t,Qt))return Qt;var e=m(t,Gt),n=m(t,Jt);return e&&n?Qt:e||n?e?Gt:Jt:m(t,Vt)?Vt:Bt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,o=m(i,Qt)&&!Kt[Qt],r=m(i,Jt)&&!Kt[Jt],s=m(i,Gt)&&!Kt[Gt];if(o){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}return s&&r?void 0:o||r&&n&_t||s&&n&St?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var $t=1,Zt=2,te=4,ee=8,ne=ee,ie=16;H.prototype={defaults:{},set:function(t){return Z(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=X(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)?this:(t=X(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===y(e,t=X(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=X(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;ee>i&&e(n.options.event+D(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=ee&&e(n.options.event+D(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|$t)))return!1;t++}return!0},recognize:function(t){var e=Z({},t);return l(this.options.enable,[this,e])?(this.state&(ne|ie|32)&&(this.state=$t),this.state=this.process(e),void(this.state&(Zt|te|ee|ie)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},c(U,H,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(Zt|te),o=this.attrTest(t);return i&&(n>||!o)?e|ie:i||o?n&yt?e|ee:e&Zt?e|te:Zt:32}}),c(z,U,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&_t&&e.push(Jt),t&St&&e.push(Gt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&_t?(o=0===r?wt:0>r?bt:Tt,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===s?wt:0>s?Et:xt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return U.prototype.attrTest.call(this,t)&&(this.state&Zt||!(this.state&Zt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=F(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),c(Y,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Zt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),c(W,H,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(yt|gt)&&!r)this.reset();else if(t.eventType&mt)this.reset(),this._timer=o(function(){this.state=ne,this.tryEmit()},e.time,this);else if(t.eventType&yt)return ne;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ne&&(t&&t.eventType&yt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=rt(),this.manager.emit(this.options.event,this._input)))}}),c(B,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Zt)}}),c(V,U,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:_t|St,pointers:1},getTouchAction:function(){return z.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(_t|St)?e=t.overallVelocity:n&_t?e=t.overallVelocityX:n&St&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ot(e)>this.options.velocity&&t.eventType&yt},emit:function(t){var e=F(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),c(Q,H,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&mt&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=yt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||I(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=o(function(){this.state=ne,this.tryEmit()},e.interval,this),Zt):ne}return 32},failTimeout:function(){return this._timer=o(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ne&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),G.VERSION="2.0.8",G.defaults={domEvents:!1,touchAction:Wt,enable:!0,inputTarget:null,inputClass:null,preset:[[B,{enable:!1}],[Y,{enable:!1},["rotate"]],[V,{direction:_t}],[z,{direction:_t},["swipe"]],[Q],[Q,{event:"doubletap",taps:2},["tap"]],[W]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};J.prototype={set:function(t){return Z(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&ne)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(Zt|te|ee)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof H)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=y(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==i&&e!==i){var n=this.handlers;return s(v(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==i){var n=this.handlers;return s(v(t),function(t){e?n[t]&&n[t].splice(y(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&$(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&K(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Z(G,{INPUT_START:mt,INPUT_MOVE:vt,INPUT_END:yt,INPUT_CANCEL:gt,STATE_POSSIBLE:$t,STATE_BEGAN:Zt,STATE_CHANGED:te,STATE_ENDED:ee,STATE_RECOGNIZED:ne,STATE_CANCELLED:ie,STATE_FAILED:32,DIRECTION_NONE:wt,DIRECTION_LEFT:bt,DIRECTION_RIGHT:Tt,DIRECTION_UP:Et,DIRECTION_DOWN:xt,DIRECTION_HORIZONTAL:_t,DIRECTION_VERTICAL:St,DIRECTION_ALL:jt,Manager:J,Input:E,TouchAction:L,TouchInput:q,MouseInput:P,PointerEventInput:O,TouchMouseInput:M,SingleTouchInput:N,Recognizer:H,AttrRecognizer:U,Tap:Q,Pan:z,Swipe:V,Pinch:Y,Rotate:B,Press:W,on:f,off:p,each:s,merge:at,extend:st,assign:Z,inherit:c,bindFn:u,prefixed:b}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=G,"function"==typeof define&&define.amd?define(function(){return G}):"undefined"!=typeof module&&module.exports?module.exports=G:t.Hammer=G}(window,document),function(t){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Pjax=t()}}(function(){return function(){return function t(e,n,i){function o(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){return o(e[s][1][t]||t)},l,l.exports,t,e,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}}()({1:[function(t,e,n){var i=t("./lib/execute-scripts.js"),o=t("./lib/foreach-els.js"),r=t("./lib/parse-options.js"),s=t("./lib/switches"),a=t("./lib/uniqueid.js"),c=t("./lib/events/on.js"),u=t("./lib/events/trigger.js"),l=t("./lib/util/clone.js"),h=t("./lib/util/contains.js"),f=t("./lib/util/extend.js"),p=t("./lib/util/noop"),d=function(t){this.state={numPendingSwitches:0,href:null,options:null},this.options=r(t),this.log("Pjax options",this.options),this.options.scrollRestoration&&"scrollRestoration"in history&&(history.scrollRestoration="manual"),this.maxUid=this.lastUid=a(),this.parseDOM(document),c(window,"popstate",function(t){if(t.state){var e=l(this.options);e.url=t.state.url,e.title=t.state.title,e.history=!1,e.scrollPos=t.state.scrollPos,t.state.uid<this.lastUid?e.backward=!0:e.forward=!0,this.lastUid=t.state.uid,this.loadUrl(t.state.url,e)}}.bind(this))};if(d.switches=s,d.prototype={log:t("./lib/proto/log.js"),getElements:function(t){return t.querySelectorAll(this.options.elements)},parseDOM:function(e){var n=t("./lib/proto/parse-element");o(this.getElements(e),n,this)},refresh:function(t){this.parseDOM(t||document)},reload:function(){window.location.reload()},attachLink:t("./lib/proto/attach-link.js"),attachForm:t("./lib/proto/attach-form.js"),forEachSelectors:function(e,n,i){return t("./lib/foreach-selectors.js").bind(this)(this.options.selectors,e,n,i)},switchSelectors:function(e,n,i,o){return t("./lib/switches-selectors.js").bind(this)(this.options.switches,this.options.switchesOptions,e,n,i,o)},latestChance:function(t){window.location=t},onSwitch:function(){u(window,"resize scroll"),this.state.numPendingSwitches--,0===this.state.numPendingSwitches&&this.afterAllSwitches()},loadContent:function(t,e){var n=document.implementation.createHTMLDocument("pjax"),i=t.match(/<html[^>]+>/gi);if(i&&i.length&&(i=i[0].match(/\s?[a-z:]+(?:\=(?:\'|\")[^\'\">]+(?:\'|\"))*/gi)).length&&(i.shift(),i.forEach(function(t){var e=t.trim().split("=");1===e.length?n.documentElement.setAttribute(e[0],!0):n.documentElement.setAttribute(e[0],e[1].slice(1,-1))})),n.documentElement.innerHTML=t,this.log("load content",n.documentElement.attributes,n.documentElement.innerHTML.length),document.activeElement&&h(document,this.options.selectors,document.activeElement))try{document.activeElement.blur()}catch(t){}this.switchSelectors(this.options.selectors,n,document,e)},abortRequest:t("./lib/abort-request.js"),doRequest:t("./lib/send-request.js"),handleResponse:t("./lib/proto/handle-response.js"),loadUrl:function(t,e){e="object"===_typeof(e)?f({},this.options,e):l(this.options),this.log("load href",t,e),this.abortRequest(this.request),u(document,"pjax:send",e),this.request=this.doRequest(t,e,this.handleResponse.bind(this))},afterAllSwitches:function(){var t=Array.prototype.slice.call(document.querySelectorAll("[autofocus]")).pop();t&&document.activeElement!==t&&t.focus(),this.options.selectors.forEach(function(t){o(document.querySelectorAll(t),function(t){i(t)})});var e=this.state;if(e.options.history&&(window.history.state||(this.lastUid=this.maxUid=a(),window.history.replaceState({url:window.location.href,title:document.title,uid:this.maxUid,scrollPos:[0,0]},document.title)),this.lastUid=this.maxUid=a(),window.history.pushState({url:e.href,title:e.options.title,uid:this.maxUid,scrollPos:[0,0]},e.options.title,e.href)),this.forEachSelectors(function(t){this.parseDOM(t)},this),u(document,"pjax:complete pjax:success",e.options),"function"==typeof e.options.analytics&&e.options.analytics(),e.options.history){var n=document.createElement("a");if(n.href=this.state.href,n.hash){var r=n.hash.slice(1);r=decodeURIComponent(r);var s=0,c=document.getElementById(r)||document.getElementsByName(r)[0];if(c&&c.offsetParent)do{s+=c.offsetTop,c=c.offsetParent}while(c);window.scrollTo(0,s)}else!1!==e.options.scrollTo&&(e.options.scrollTo.length>1?window.scrollTo(e.options.scrollTo[0],e.options.scrollTo[1]):window.scrollTo(0,e.options.scrollTo))}else e.options.scrollRestoration&&e.options.scrollPos&&window.scrollTo(e.options.scrollPos[0],e.options.scrollPos[1]);this.state={numPendingSwitches:0,href:null,options:null}}},d.isSupported=t("./lib/is-supported.js"),d.isSupported())e.exports=d;else{var m=p;for(var v in d.prototype)d.prototype.hasOwnProperty(v)&&"function"==typeof d.prototype[v]&&(m[v]=p);e.exports=m}},{"./lib/abort-request.js":2,"./lib/events/on.js":4,"./lib/events/trigger.js":5,"./lib/execute-scripts.js":6,"./lib/foreach-els.js":7,"./lib/foreach-selectors.js":8,"./lib/is-supported.js":9,"./lib/parse-options.js":10,"./lib/proto/attach-form.js":11,"./lib/proto/attach-link.js":12,"./lib/proto/handle-response.js":13,"./lib/proto/log.js":14,"./lib/proto/parse-element":15,"./lib/send-request.js":16,"./lib/switches":18,"./lib/switches-selectors.js":17,"./lib/uniqueid.js":19,"./lib/util/clone.js":20,"./lib/util/contains.js":21,"./lib/util/extend.js":22,"./lib/util/noop":23}],2:[function(t,e,n){var i=t("./util/noop");e.exports=function(t){t&&t.readyState<4&&(t.onreadystatechange=i,t.abort())}},{"./util/noop":23}],3:[function(t,e,n){e.exports=function(t){var e=t.text||t.textContent||t.innerHTML||"",n=t.src||"",i=t.parentNode||document.querySelector("head")||document.documentElement,o=document.createElement("script");if(e.match("document.write"))return console&&console.log&&console.log("Script contains document.write. Can’t be executed correctly. Code skipped ",t),!1;if(o.type="text/javascript",""!==n&&(o.src=n,o.async=!1),""!==e)try{o.appendChild(document.createTextNode(e))}catch(t){o.text=e}return i.appendChild(o),(i instanceof HTMLHeadElement||i instanceof HTMLBodyElement)&&i.removeChild(o),!0}},{}],4:[function(t,e,n){var i=t("../foreach-els");e.exports=function(t,e,n,o){(e="string"==typeof e?e.split(" "):e).forEach(function(e){i(t,function(t){t.addEventListener(e,n,o)})})}},{"../foreach-els":7}],5:[function(t,e,n){var i=t("../foreach-els");e.exports=function(t,e,n){(e="string"==typeof e?e.split(" "):e).forEach(function(e){var o;(o=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),o.eventName=e,n&&Object.keys(n).forEach(function(t){o[t]=n[t]}),i(t,function(t){var e=!1;t.parentNode||t===document||t===window||(e=!0,document.body.appendChild(t)),t.dispatchEvent(o),e&&t.parentNode.removeChild(t)})})}},{"../foreach-els":7}],6:[function(t,e,n){var i=t("./foreach-els"),o=t("./eval-script");e.exports=function(t){"script"===t.tagName.toLowerCase()&&o(t),i(t.querySelectorAll("script"),function(t){t.type&&"text/javascript"!==t.type.toLowerCase()||(t.parentNode&&t.parentNode.removeChild(t),o(t))})}},{"./eval-script":3,"./foreach-els":7}],7:[function(t,e,n){e.exports=function(t,e,n){return t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array?Array.prototype.forEach.call(t,e,n):e.call(n,t)}},{}],8:[function(t,e,n){var i=t("./foreach-els");e.exports=function(t,e,n,o){o=o||document,t.forEach(function(t){i(o.querySelectorAll(t),e,n)})}},{"./foreach-els":7}],9:[function(t,e,n){e.exports=function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)}},{}],10:[function(t,e,n){var i=t("./switches");function o(){window._gaq&&_gaq.push(["_trackPageview"]),window.ga&&ga("send","pageview",{page:location.pathname,title:document.title})}e.exports=function(t){return(t=t||{}).elements=t.elements||"a[href], form[action]",t.selectors=t.selectors||["title",".js-Pjax"],t.switches=t.switches||{},t.switchesOptions=t.switchesOptions||{},t.history=void 0===t.history||t.history,t.analytics="function"==typeof t.analytics||!1===t.analytics?t.analytics:o,t.scrollTo=void 0===t.scrollTo?0:t.scrollTo,t.scrollRestoration=void 0===t.scrollRestoration||t.scrollRestoration,t.cacheBust=void 0===t.cacheBust||t.cacheBust,t.debug=t.debug||!1,t.timeout=t.timeout||0,t.currentUrlFullReload=void 0!==t.currentUrlFullReload&&t.currentUrlFullReload,t.switches.head||(t.switches.head=i.switchElementsAlt),t.switches.body||(t.switches.body=i.switchElementsAlt),t}},{"./switches":18}],11:[function(t,e,n){var i=t("../events/on"),o=t("../util/clone"),r=function(t,e){if(!s(e)){var n=o(this.options);n.requestOptions={requestUrl:t.getAttribute("action")||window.location.href,requestMethod:t.getAttribute("method")||"GET"};var i=document.createElement("a");i.setAttribute("href",n.requestOptions.requestUrl);var r=function(t,e){if(t.protocol!==window.location.protocol||t.host!==window.location.host)return"external";if(t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,""))return"anchor";if(t.href===window.location.href.split("#")[0]+"#")return"anchor-empty";if(e.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return"reload"}(i,n);r?t.setAttribute("data-pjax-state",r):(e.preventDefault(),"multipart/form-data"===t.enctype?n.requestOptions.formData=new FormData(t):n.requestOptions.requestParams=function(t){var e=[];for(var n in t.elements)if(!Number.isNaN(Number(n))){var i=t.elements[n],o=i.tagName.toLowerCase();if(i.name&&void 0!==i.attributes&&"button"!==o){var r=i.attributes.type;if(!r||"checkbox"!==r.value&&"radio"!==r.value||i.checked){var s=[];if("select"===o)for(var a,c=0;c<i.options.length;c++)(a=i.options[c]).selected&&!a.disabled&&s.push(a.hasAttribute("value")?a.value:a.text);else s.push(i.value);for(var u=0;u<s.length;u++)e.push({name:encodeURIComponent(i.name),value:encodeURIComponent(s[u])})}}}return e}(t),t.setAttribute("data-pjax-state","submit"),n.triggerElement=t,this.loadUrl(i.href,n))}};var s=function(t){return t.defaultPrevented||!1===t.returnValue};e.exports=function(t){var e=this;t.setAttribute("data-pjax-state",""),i(t,"submit",function(n){r.call(e,t,n)}),i(t,"keyup",function(n){13===n.keyCode&&r.call(e,t,n)}.bind(this))}},{"../events/on":4,"../util/clone":20}],12:[function(t,e,n){var i=t("../events/on"),o=t("../util/clone"),r="data-pjax-state",s=function(t,e){if(!a(e)){var n=o(this.options),i=function(t,e){if(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return"modifier";if(t.protocol!==window.location.protocol||t.host!==window.location.host)return"external";if(t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,""))return"anchor";if(t.href===window.location.href.split("#")[0]+"#")return"anchor-empty"}(t,e);if(i)t.setAttribute(r,i);else{if(e.preventDefault(),this.options.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return t.setAttribute(r,"reload"),void this.reload();t.setAttribute(r,"load"),n.triggerElement=t,this.loadUrl(t.href,n)}}};var a=function(t){return t.defaultPrevented||!1===t.returnValue};e.exports=function(t){var e=this;t.setAttribute(r,""),i(t,"click",function(n){s.call(e,t,n)}),i(t,"keyup",function(n){13===n.keyCode&&s.call(e,t,n)}.bind(this))}},{"../events/on":4,"../util/clone":20}],13:[function(t,e,n){var i=t("../util/clone.js"),o=t("../uniqueid.js"),r=t("../events/trigger.js");e.exports=function(t,e,n,s){if((s=i(s||this.options)).request=e,!1!==t){var a=window.history.state||{};window.history.replaceState({url:a.url||window.location.href,title:a.title||document.title,uid:a.uid||o(),scrollPos:[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop]},document.title,window.location);var c=n;e.responseURL?n!==e.responseURL&&(n=e.responseURL):e.getResponseHeader("X-PJAX-URL")?n=e.getResponseHeader("X-PJAX-URL"):e.getResponseHeader("X-XHR-Redirected-To")&&(n=e.getResponseHeader("X-XHR-Redirected-To"));var u=document.createElement("a");u.href=c;var l=u.hash;u.href=n,l&&!u.hash&&(u.hash=l,n=u.href),this.state.href=n,this.state.options=s;try{this.loadContent(t,s)}catch(t){if(r(document,"pjax:error",s),this.options.debug)throw t;return console&&console.error&&console.error("Pjax switch fail: ",t),this.latestChance(n)}}else r(document,"pjax:complete pjax:error",s)}},{"../events/trigger.js":5,"../uniqueid.js":19,"../util/clone.js":20}],14:[function(t,e,n){e.exports=function(){this.options.debug&&console&&("function"==typeof console.log?console.log.apply(console,arguments):console.log&&console.log(arguments))}},{}],15:[function(t,e,n){e.exports=function(t){switch(t.tagName.toLowerCase()){case"a":t.hasAttribute("data-pjax-state")||this.attachLink(t);break;case"form":t.hasAttribute("data-pjax-state")||this.attachForm(t);break;default:throw"Pjax can only be applied on <a> or <form> submit"}}},{}],16:[function(t,e,n){var i=t("./util/update-query-string");e.exports=function(t,e,n){var o,r=(e=e||{}).requestOptions||{},s=(r.requestMethod||"GET").toUpperCase(),a=r.requestParams||null,c=r.formData||null,u=null,l=new XMLHttpRequest,h=e.timeout||0;if(l.onreadystatechange=function(){4===l.readyState&&(200===l.status?n(l.responseText,l,t,e):0!==l.status&&n(null,l,t,e))},l.onerror=function(i){console.log(i),n(null,l,t,e)},l.ontimeout=function(){n(null,l,t,e)},a&&a.length)switch(o=a.map(function(t){return t.name+"="+t.value}).join("&"),s){case"GET":t=t.split("?")[0],t+="?"+o;break;case"POST":u=o}else c&&(u=c);return e.cacheBust&&(t=i(t,"t",Date.now())),l.open(s,t,!0),l.timeout=h,l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.setRequestHeader("X-PJAX","true"),l.setRequestHeader("X-PJAX-Selectors",JSON.stringify(e.selectors)),u&&"POST"===s&&!c&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(u),l}},{"./util/update-query-string":24}],17:[function(t,e,n){var i=t("./foreach-els"),o=t("./switches");e.exports=function(t,e,n,r,s,a){var c=[];n.forEach(function(n){var u=r.querySelectorAll(n),l=s.querySelectorAll(n);if(this.log&&this.log("Pjax switch",n,u,l),u.length!==l.length)throw"DOM doesn’t look the same on new loaded page: ’"+n+"’ - new "+u.length+", old "+l.length;i(u,function(i,r){var s=l[r];this.log&&this.log("newEl",i,"oldEl",s);var u=t[n]?t[n].bind(this,s,i,a,e[n]):o.outerHTML.bind(this,s,i,a);c.push(u)},this)},this),this.state.numPendingSwitches=c.length,c.forEach(function(t){t()})}},{"./foreach-els":7,"./switches":18}],18:[function(t,e,n){var i=t("./events/on.js");e.exports={outerHTML:function(t,e){t.outerHTML=e.outerHTML,this.onSwitch()},innerHTML:function(t,e){t.innerHTML=e.innerHTML,""===e.className?t.removeAttribute("class"):t.className=e.className,this.onSwitch()},switchElementsAlt:function(t,e){if(t.innerHTML=e.innerHTML,e.hasAttributes())for(var n=e.attributes,i=0;i<n.length;i++)t.attributes.setNamedItem(n[i].cloneNode());this.onSwitch()},replaceNode:function(t,e){t.parentNode.replaceChild(e,t),this.onSwitch()},sideBySide:function(t,e,n,o){var r=Array.prototype.forEach,s=[],a=[],c=document.createDocumentFragment(),u="animationend webkitAnimationEnd MSAnimationEnd oanimationend",l=0,h=function(t){t.target===t.currentTarget&&--l<=0&&s&&(s.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}),a.forEach(function(t){t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")}),a=null,s=null,this.onSwitch())}.bind(this);o=o||{},r.call(t.childNodes,function(t){s.push(t),t.classList&&!t.classList.contains("js-Pjax-remove")&&(t.hasAttribute("data-pjax-classes")&&(t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")),t.classList.add("js-Pjax-remove"),o.callbacks&&o.callbacks.removeElement&&o.callbacks.removeElement(t),o.classNames&&(t.className+=" "+o.classNames.remove+" "+(n.backward?o.classNames.backward:o.classNames.forward)),l++,i(t,u,h,!0))}),r.call(e.childNodes,function(t){if(t.classList){var e="";o.classNames&&(e=" js-Pjax-add "+o.classNames.add+" "+(n.backward?o.classNames.forward:o.classNames.backward)),o.callbacks&&o.callbacks.addElement&&o.callbacks.addElement(t),t.className+=e,t.setAttribute("data-pjax-classes",e),a.push(t),c.appendChild(t),l++,i(t,u,h,!0)}}),t.className=e.className,t.appendChild(c)}}},{"./events/on.js":4}],19:[function(t,e,n){var i;e.exports=(i=0,function(){var t="pjax"+(new Date).getTime()+"_"+i;return i++,t})},{}],20:[function(t,e,n){e.exports=function(t){if(null===t||"object"!==_typeof(t))return t;var e=t.constructor();for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},{}],21:[function(t,e,n){e.exports=function(t,e,n){for(var i=0;i<e.length;i++)for(var o=t.querySelectorAll(e[i]),r=0;r<o.length;r++)if(o[r].contains(n))return!0;return!1}},{}],22:[function(t,e,n){e.exports=function(t){if(null==t)return null;for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}},{}],23:[function(t,e,n){e.exports=function(){}},{}],24:[function(t,e,n){e.exports=function(t,e,n){var i=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(i)?t.replace(i,"$1"+e+"="+n+"$2"):t+o+e+"="+n}},{}]},{},[1])(1)}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){"use strict";function t(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})}var e=setTimeout;function n(){}function i(t){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(t,this)}function o(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var i;try{i=n(t._value)}catch(t){return void s(e.promise,t)}r(e.promise,i)}else(1===t._state?r:s)(e.promise,t._value)})):t._deferreds.push(e)}function r(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===_typeof(e)||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void u((o=n,r=e,function(){o.apply(r,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){s(t,e)}var o,r}function s(t,e){t._state=2,t._value=e,a(t)}function a(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function u(t,e){var n=!1;try{t(function(t){n||(n=!0,r(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var i=new this.constructor(n);return o(this,new c(t,e,i)),i},i.prototype.finally=t,i.all=function(t){return new i(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var o=i.length;function r(t,s){try{if(s&&("object"===_typeof(s)||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(e){r(t,e)},n)}i[t]=s,0==--o&&e(i)}catch(t){n(t)}}for(var s=0;s<i.length;s++)r(s,i[s])})},i.resolve=function(t){return t&&"object"===_typeof(t)&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var i=0,o=t.length;i<o;i++)t[i].then(e,n)})},i._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){e(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=t):l.Promise=i}),function(t,e){"use strict";"object"==("undefined"==typeof module?"undefined":_typeof(module))&&"object"==_typeof(module.exports)?module.exports=e(t):e(t)}("undefined"!=typeof window?window:global,function(t){"use strict";var e=Object.defineProperty,n=Object.defineProperties,i=0,o=[],r=Array.prototype.slice,s="object"==_typeof(t.ES6)?t.ES6:t.ES6={},a=Array.isArray,c=Object.prototype.toString,u=Array.prototype.push,l=function(){},h=function(t){return t},f=function(t){return"function"==typeof t},p=function(){},d=function(t,e){this._array=t,this._flag=e,this._nextIndex=0},m=function(t,e){this._string=t,this._flag=e,this._nextIndex=0},v=function(t){return null!==t&&("object"==_typeof(t)||"function"==typeof t)},y=function(t,e){if("number"==typeof t.length&&t.length>=0&&"number"==typeof e.length&&e.length>=0){var n=Math.floor(t.length),i=Math.floor(e.length),o=0;for(t.length=n+i;o<i;++o)e.hasOwnProperty(o)&&(t[n+o]=e[o])}},g=function(t,e){if("function"!=typeof t||"function"!=typeof e)throw new TypeError("Child and Parent must be function type");t.prototype=Object.create(e.prototype),t.prototype.constructor=t},w=function t(e){if(e=void 0===e?"":String(e),this instanceof t)throw new TypeError("Symbol is not a constructor");return function(t,e){return n(t,{_description:{value:e},_isSymbol:{value:!0},_id:{value:i++}}),t}(Object.create(t.prototype),e)};n(w,{for:{value:function(t){t=String(t);for(var e,n=o.length,i=0;i<n;++i)if((e=o[i]).key===t)return e.symbol;return e={key:t,symbol:w(t)},o.push(e),e.symbol},writable:!0,configurable:!0},keyFor:{value:function(t){if(!s.isSymbol(t))throw new TypeError(String(t)+" is not a symbol");for(var e,n=o.length,i=0;i<n;++i)if((e=o[i]).symbol===t)return e.key},writable:!0,configurable:!0},hasInstance:{value:w("Symbol.hasInstance")},isConcatSpreadable:{value:w("Symbol.isConcatSpreadable")},iterator:{value:w("Symbol.iterator")},toStringTag:{value:w("Symbol.toStringTag")}}),w.prototype.toString=function(){return"@@_____"+this._id+"_____"},w.prototype.valueOf=function(){return this},e(p.prototype,w.iterator.toString(),{value:function(){return this},writable:!0,configurable:!0}),g(d,p),g(m,p),e(d.prototype,w.toStringTag.toString(),{value:"Array Iterator",configurable:!0}),e(m.prototype,w.toStringTag.toString(),{value:"String Iterator",configurable:!0}),d.prototype.next=function(){if(!(this instanceof d))throw new TypeError("Method Array Iterator.prototype.next called on incompatible receiver "+String(this));var t;return-1===this._nextIndex?{done:!0,value:void 0}:"number"==typeof this._array.length&&this._array.length>=0&&this._nextIndex<Math.floor(this._array.length)?(1===this._flag?t=[this._nextIndex,this._array[this._nextIndex]]:2===this._flag?t=this._array[this._nextIndex]:3===this._flag&&(t=this._nextIndex),this._nextIndex++,{done:!1,value:t}):(this._nextIndex=-1,{done:!0,value:void 0})},m.prototype.next=function(){if(!(this instanceof m))throw new TypeError("Method String Iterator.prototype.next called on incompatible receiver "+String(this));var t,e=new String(this._string);return-1===this._nextIndex?{done:!0,value:void 0}:this._nextIndex<e.length?(t=e[this._nextIndex],this._nextIndex++,{done:!1,value:t}):(this._nextIndex=-1,{done:!0,value:void 0})};var b=function(t,e){this._target=t,this._values=[],this._thisArg=e};return b.prototype.spread=function(){var t=this;return r.call(arguments).forEach(function(e){s.forOf(e,function(e){t._values.push(e)})}),t},b.prototype.add=function(){var t=this;return r.call(arguments).forEach(function(e){t._values.push(e)}),t},b.prototype.call=function(t){if("function"!=typeof this._target)throw new TypeError("Target is not a function");return t=arguments.length<=0?this._thisArg:t,this._target.apply(t,this._values)},b.prototype.new=function(){if("function"!=typeof this._target)throw new TypeError("Target is not a constructor");var t,e;return t=Object.create(this._target.prototype),e=this._target.apply(t,this._values),v(e)?e:t},b.prototype.array=function(){if(!a(this._target))throw new TypeError("Target is not a array");return u.apply(this._target,this._values),this._target},n(s,{isSymbol:{value:function(t){return t instanceof w&&function(t){return!0===t._isSymbol&&"number"==typeof t._id&&"string"==typeof t._description}(t)},writable:!0,configurable:!0},instanceOf:{value:function(t,e){if(!v(e))throw new TypeError("Right-hand side of 'instanceof' is not an object");var n=e[w.hasInstance];if(void 0===n)return t instanceof e;if("function"!=typeof n)throw new TypeError(_typeof(n)+" is not a function");return n.call(e,t)},writable:!0,configurable:!0},forOf:{value:function(t,e,n){if(e="function"!=typeof e?l:e,"function"!=typeof t[w.iterator])throw new TypeError("Iterable[Symbol.iterator] is not a function");var i,o=t[w.iterator]();if("function"!=typeof o.next)throw new TypeError(".iterator.next is not a function");for(;;){if(i=o.next(),!v(i))throw new TypeError("Iterator result "+i+" is not an object");if(i.done)break;e.call(n,i.value)}},writable:!0,configurable:!0},spreadOperator:{value:function(t,e){if("function"!=typeof t&&!a(t))throw new TypeError("Spread operator only supports on array and function objects at this moment");return new b(t,e)},writable:!0,configurable:!0}}),e(t,"Symbol",{value:w,writable:!0,configurable:!0}),e(Function.prototype,w.hasInstance.toString(),{value:function(t){return"function"==typeof this&&t instanceof this}}),e(Array.prototype,"concat",{value:function(){if(null==this)throw new TypeError("Array.prototype.concat called on null or undefined");var t=Object(this),e=r.call(arguments),n=[];return e.unshift(t),e.forEach(function(t){v(t)?void 0!==t[w.isConcatSpreadable]?t[w.isConcatSpreadable]?y(n,t):n.push(t):a(t)?y(n,t):n.push(t):n.push(t)}),n},writable:!0,configurable:!0}),e(Object.prototype,"toString",{value:function(){return null==this?c.call(this):"string"==typeof this[w.toStringTag]?"[object "+this[w.toStringTag]+"]":c.call(this)},writable:!0,configurable:!0}),e(Array.prototype,w.iterator.toString(),{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,2)},writable:!0,configurable:!0}),e(Array,"from",{value:function(t,e,n){var i,o,r,a=0;if(i=f(this)?this:Array,null==t)throw new TypeError("Cannot convert undefined or null to object");if(t=Object(t),void 0===e)e=h;else if(!f(e))throw new TypeError(e+" is not a function");if(void 0===t[w.iterator]){if(!("number"==typeof t.length&&t.length>=0))return(r=new i(0)).length=0,r;for(o=Math.floor(t.length),(r=new i(o)).length=o;a<o;++a)r[a]=e.call(n,t[a])}else(r=new i).length=0,s.forOf(t,function(t){r.length++,r[r.length-1]=e.call(n,t)});return r},writable:!0,configurable:!0}),e(Array.prototype,"entries",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,1)},writable:!0,configurable:!0}),e(Array.prototype,"keys",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,3)},writable:!0,configurable:!0}),e(String.prototype,w.iterator.toString(),{value:function(){if(null==this)throw new TypeError("String.prototype[Symbol.iterator] called on null or undefined");return new m(String(this),0)},writable:!0,configurable:!0}),s});var isset=function(t){return null!=t},EasingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},getScript=function(t,e){var n=document.createElement("script");n.async=1;var i=document.getElementsByTagName("script"),o=i[i.length-1];n.onload=n.onreadystatechange=function(t,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n=void 0,i||e&&e())},n.src=t,o.parentNode.insertBefore(n,o)},debounce=function(t,e,n){var i;return function(){var o=this,r=arguments,s=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(o,r)},e),s&&t.apply(o,r)}},Cookie={set:function(t,e,n){var i,o,r,s,a;n?((r=new Date).setTime(r.getTime()+24*n*60*60*1e3),s="; expires="+r.toGMTString()):s="",1===(a=location.host).split(".").length?document.cookie=t+"="+e+s+"; path=/":((o=a.split(".")).shift(),i="."+o.join("."),document.cookie=t+"="+e+s+"; path=/; domain="+i,null!=Cookie.get(t)&&Cookie.get(t)==e||(i="."+a,document.cookie=t+"="+e+s+"; path=/; domain="+i))},get:function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null},erase:function(t){Cookie.set(t,"",-1)}},number_format=function(t,e,n,i){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,r=isFinite(+e)?Math.abs(e):0,s=void 0===i?",":i,a=void 0===n?".":n,c="";return(c=(r?function(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}(o,r):""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<r&&(c[1]=c[1]||"",c[1]+=new Array(r-c[1].length+1).join("0")),c.join(a)};Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(this))return null;do{if(e.matches(t))return e;e=e.parentElement}while(null!==e);return null});var Ajax={get:function(t,e){var n=new XMLHttpRequest,i=document.querySelector('meta[name="csrf-token"]').content;n.open("get",t,!0),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("X-CSRF-TOKEN",i),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onreadystatechange=function(){4===n.readyState&&e(n)},n.send()},post:function(t,e,n){var i=new XMLHttpRequest,o=document.querySelector('meta[name="csrf-token"]').content;i.open("post",t,!0),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("X-CSRF-TOKEN",o),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onreadystatechange=function(){4===i.readyState&&n(i)},i.send(JSON.stringify(e))}},capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function snakeToCamel(t){return t.replace(/(\-\w)/g,function(t){return t[1].toUpperCase()})}function indexInParent(t){for(var e=t.parentNode.childNodes,n=0,i=0;i<e.length;i++){if(e[i]==t)return n;1==e[i].nodeType&&n++}return-1}function copyToClipboard(t){if(t="string"==typeof t?document.querySelector(t):t,navigator.userAgent.match(/ipad|ipod|iphone/i)){var e=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var i=document.createRange();i.selectNodeContents(t);var o=window.getSelection();o.removeAllRanges(),o.addRange(i),t.setSelectionRange(0,999999),t.contentEditable=e,t.readOnly=n}else t.select();document.execCommand("copy")}function detectIfElementIsPartlyInViewport(t){if(isset(t)){var e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,o=e.top<=n&&e.top+e.height>=0,r=e.left<=i&&e.left+e.width>=0;return o&&r}}function detectIfElementIsFullyInViewport(t){if(isset(t)){var e=t.getBoundingClientRect();return e.top>=0&&e.bottom<=window.innerHeight}}