function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,o;if(null==this)throw new TypeError(" this vaut null ou n est pas défini");var r,i=Object(this),c=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" n est pas une fonction");for(1<arguments.length&&(n=t),o=0;o<c;)o in i&&(r=i[o],e.call(n,r,o,i)),o++}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var o=arguments[1],r=0;r<n;){var i=t[r];if(e.call(o,i,r,t))return i;r++}}}),NodeList.prototype.forEach=Array.prototype.forEach,HTMLCollection.prototype.forEach=Array.prototype.forEach,"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},writable:!0,configurable:!0});d=window,n=/iP(hone|od|ad)/.test(navigator.platform)&&/OS 7[^\d]/.test(navigator.appVersion),c={FocusEvent:["focus","blur","focusin","focusout"],MouseEvent:["click","dblclick","mouseup","mousedown"],TouchEvent:["touchstart","touchend","touchmove","touchcancel"],KeyboardEvent:["keydown","keypress","keyup"]},a={FocusEvent:"undefined"==typeof FocusEvent?Event:FocusEvent,MouseEvent:"undefined"==typeof MouseEvent?Event:MouseEvent,TouchEvent:"undefined"==typeof TouchEvent?Event:TouchEvent,KeyboardEvent:"undefined"==typeof KeyboardEvent?Event:KeyboardEvent},o="Opera"==navigator.appName&&supportsTouch&&navigator.userAgent.match("Presto"),m=/([^:]*):([^:]*)/,y={xlink:"http://www.w3.org/1999/xlink"};var d,h,n,c,a,o,m,y,e={on:t,off:i,one:function(n,o,r){t(n,o,function e(t){i(n,o,e),r(t)})},fireEvent:function(e,t){var n,o=2<arguments.length&&arguments[2]!==h&&arguments[2],r=3<arguments.length&&arguments[3]!==h?arguments[3]:{bubbles:!0,cancelable:!0};if(null==e)return!1;for(n=(t=(t||"").match(/\S+/g)||[""]).length;n--;){var i=t[n];"function"!=typeof Event&&document.fireEvent?e.fireEvent("on"+i):(i=new(function(e){for(var t in c)if(-1!==c[t].indexOf(e))return a[t];return Event}(i))(i,r),o&&Object.assign(i,o),e.dispatchEvent(i))}},addClass:function(e,t){t=(t||"").match(/\S+/g)||[""];var n,o,r=e;return(e=u(e)).forEach(function(e){for(n=t.length;n--;)o=t[n],e.classList?e.classList.add(o):e.className+=" "+o}),r},removeClass:function(e,t,n){n=void 0!==n&&n,t=(t||"").match(/\S+/g)||[""];var o,r,i=e;return(e=u(e)).forEach(function(e){for(o=t.length;o--;)r=t[o],e.classList&&!n?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")}),i},hasClass:function(e,t){return t=t.replace(".",""),e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},cutString:function(e,t){return e.length>t?e.substr(0,t-3)+"...":e},mergeRecursive:function(t,n){for(var o in n)try{n[o].constructor==Object?t[o]=this.mergeRecursive(t[o],n[o]):t[o]=n[o]}catch(e){t[o]=n[o]}return t},getPosition:function(e){for(var t=0,n=0;void 0!==e.offsetParent&&null!==e.offsetParent;)t+=e.offsetLeft+(null!==e.clientLeft?e.clientLeft:0),n+=e.offsetTop+(null!==e.clientTop?e.clientTop:0),e=e.offsetParent;return{x:t,y:n}},closest:function(e,t){t=t.toLowerCase();do{if(e.nodeName.toLowerCase()===t)return e}while(e=e.parentNode);return null},closestByClass:function(e,t){for(var n=(t=t.replace(".","")).split(/\s+/);e&&e!=document;){var o=e.parentNode,i=(o&&"object"!==_typeof(o.className)&&o.className||"").split(/\s+/);if(n.some(function(e){for(var t=i,n=e,o=0,r=t.length;o<r;++o)if(t[o]==n)return!0;return!1}))return o;e=o}return null},forEach:function(e,t,n){for(var o=0;o<e.length;o++)t.call(n,o,e[o])},IDGenerator:function(e){this.length=void 0===e?8:e,this.timestamp=+new Date,this.generate=function(){for(var e,t,n=this.timestamp.toString().split("").reverse(),o="",r=0;r<this.length;++r)e=0,t=n.length-1,o+=n[Math.floor(Math.random()*(t-e+1))+e];return o}},proxy:function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,n.concat(Array.prototype.slice.call(arguments)))}},isNode:v,isElement:l,parseScript:function(e,t,n){n=void 0===n?document:n;for(var o=e,r=[],i=[],c=/src=['|"](\S*)['|"]/,a=void 0===t?[]:t.slice(0);-1<o.toLowerCase().indexOf("<script")||-1<o.toLowerCase().indexOf("</script");){var u=o.toLowerCase().indexOf("<script"),s=o.indexOf(">",u),l=o.toLowerCase().indexOf("</script",u),f=o.indexOf(">",l),p=o.substring(s+1,l),d=new RegExp(/([\s\S]*)\$\(document\)\.ready\(function\s*\(\)\s*\{([\s\S]*)\}\)\;([\s\S]*)/,"mi").exec(p),h="";null!==d?(d.shift(),d.forEach(function(e){h+=e})):h=p,i.push(o.substring(u,s)),r.push(h),o=o.substring(0,u)+o.substring(f+1)}if(!a.length)for(var m=0;m<r.length;m++)""==r[m]&&c.test(i[m])&&a.push(c.exec(i[m])[1]);for(var y="",m=0;m<a.length;m++)y=(""===y?"":",")+'"'+a[m]+'"';for(m=0;m<r.length;m++)try{var v,g=n.createElement("script");g.type="text/javascript",""==r[m]&&""==y||(v="require(["+y+"], function(){ ",g.textContent=v+r[m]+" });"),n.body.appendChild(g)}catch(l){l instanceof SyntaxError&&console.log(l.message+" - "+r[m])}return o},loadCss:function(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},insertTextAtCursor:function(e){var t;d.getSelection?(t=d.getSelection()).getRangeAt&&t.rangeCount&&((t=t.getRangeAt(0)).deleteContents(),t.insertNode(document.createTextNode(e))):document.selection&&document.selection.createRange&&(document.selection.createRange().text=e)},getOriginXY:function(e,t){var n,o=(e?e.options:defaultOptions).origin;return"parent"===o?o=p(t):"self"===o?o=e.getRect(t):"string"==typeof(n=o)&&(document.querySelector(n),1)&&(o=function(e,t){for(var n=p(e);l(n);){if(matchesSelector(n,t))return n;n=p(n)}return null}(t,o)||{x:0,y:0}),(o=function(e){var t;if(e&&"object"===_typeof(e))return t=g(e)||d,/object|function/.test(_typeof(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName}(o="function"==typeof o?o(e&&t):o)?E(o):o).x="x"in o?o.x:o.left,o.y="y"in o?o.y:o.top,o},getPageXY:function(e,t){var n;return t=t||{},o&&((n=e)instanceof d.Event||supportsTouch&&d.Touch&&n instanceof d.Touch)?(f("screen",e,t),t.x+=d.scrollX,t.y+=d.scrollY):f("page",e,t),t},getWindow:g,getElementRect:E,scrollIt:function(e,n,o,r,i,t){n=void 0===n?200:n,o=void 0===o?"linear":o,t=void 0===t?0:t;var c={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},a=(i=void 0===i?d:i).pageYOffset,u="now"in d.performance?performance.now():(new Date).getTime(),s=(i.document.documentElement.style.height="",Math.max(i.document.body.offsetHeight,i.document.documentElement.clientHeight,i.document.documentElement.offsetHeight)),l=i.innerHeight||i.document.documentElement.clientHeight||i.document.getElementsByTagName("body")[0].clientHeight,f=0,p=("number"!=typeof e&&(f=E(e).top-t),Math.round(s-f<l?s-l:f));if("requestAnimationFrame"in i==!1)return i.scroll(0,p),void(r&&r());!function e(){var t="now"in i.performance?performance.now():(new Date).getTime(),t=Math.min(1,(t-u)/n),t=c[o](t);i.scroll(0,Math.ceil(t*(p-a)+a)),Math.round(i.pageYOffset)===p?r&&r():requestAnimationFrame(e)}()},whichTransitionEvent:function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(t.style[e]!==h)return n[e]},empty:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},throttle:function(n,o,r,i,c){function a(){p=new Date,f=null,l=n.apply(u,s)}var u,s,l,f=null,p=0;return function(){var e=new Date,t=o-(e-(p=p||r?p:e));return u=c||this,s=arguments,t<=0?(clearTimeout(f),f=null,p=e,l=n.apply(u,s)):!f&&i&&(f=setTimeout(a,t)),l}},wait:function(t,n,o){(function e(){t()?n():setTimeout(e,o)})()},createElement:function u(e,s,l,f){var p=[];return f=void 0===f?null:f,s=void 0===s?null:s,l=void 0!==l&&l,e.forEach(function(r){if(void 0!==r)for(var i in r){var c,a;r.hasOwnProperty(i)&&function(){var e,t="html",t="svg"===f?f:"svg"===i?i:"html",n=void 0;try{n="svg"===t?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i)}catch(e){return console.log("Erreur creation element",i,e)}for(a in c=r[i])if(c.hasOwnProperty(a))switch(a){case"children":Array.isArray(c[a])&&u(c[a],n,h,t),v(c[a])&&n.appendChild(c[a]);break;case"textContent":n.textContent=c[a];break;case"innerHTML":n.innerHTML=c[a];break;case"class":Array.isArray(c[a])?c[a].forEach(function(e){e&&n.classList.add(e)}):n.setAttribute(a,c[a]);break;default:var o=m.exec(a);o?(n.setAttributeNS(o[1],o[2],c[a]),n.setAttributeNS((e=o[1],y.hasOwnProperty(e)?y[e]:e),o[2],c[a])):n.setAttribute(a,c[a])}p.push(n),s&&(l&&s.children.length?s.insertBefore(n,s.firstChild):s.appendChild(n))}()}}),!!p.length&&(1!==p.length?p:p[0])},eventIsOnSelector:function(e,t){return!!l(e.target)&&(null!==(e=e.target.matches(t)?e.target:e.target.closest(t))&&e)},childrenSelector:function(e,t){return void 0===(e=b(e,t).shift())?null:e},childrenSelectorAll:b};function u(e){return null!=(e=l(e=(v(e)||r(e))&&(e.length<=1||r(e))?[e]:e)?[e]:e)&&(_typeof(e)&&void 0===e.length?[e]:e)}function s(e){switch(_typeof(e)){case"object":e=Object.assign({capture:!1,once:!1,passive:!1},e);break;case"boolean":e={capture:e};break;default:e=!1}return e}function t(e,r,i,c){if(c=s(c),null===e)return!1;(e=u(e)).forEach(function(e){for(var t,n=r,o=(n=(r||"").match(/\S+/g)||[""]).length;o--;)t=n[o],e.addEventListener?e.addEventListener(t,i,c):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i})}function i(e,t,n,o){var r,i;for(o=s(o),r=(t=(t||"").match(/\S+/g)||[""]).length;r--;)i=t[r],e.removeEventListener&&e.removeEventListener(i,n,o),e.detachEvent&&e.detachEvent("on"+i,n)}function v(e){return"object"===("undefined"==typeof Node?"undefined":_typeof(Node))?e instanceof Node:e&&"object"===_typeof(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function r(e){return"[object Window]"===Object.prototype.toString.call(e)||"[object global]"===Object.prototype.toString.call(e)}function l(e){return"object"===("undefined"==typeof HTMLElement?"undefined":_typeof(HTMLElement))?e instanceof HTMLElement:e&&"object"===_typeof(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function f(e,t,n){(n=n||{}).x=t[(e=e||"page")+"X"],n.y=t[e+"Y"]}function p(e){var t=e.parentNode;if(isDocFrag(t)){for(;(t=t.host)&&isDocFrag(t););return t}return t}function g(e){if(r(e))return e;e=e.ownerDocument||e;return e.defaultView||e.parentWindow||d}function E(e){var t=(t=(t=e)instanceof SVGElement?t.getBoundingClientRect():t.getClientRects()[0])&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top};return!n&&t&&(e={x:(e=(e=g(e))||d).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop},t.left+=e.x,t.right+=e.x,t.top+=e.y,t.bottom+=e.y),t}function b(e,t){var n=[];return e.hasChildNodes()&&Array.prototype.forEach.call(e.children,function(e){e.matches(t)&&n.push(e)}),n}"undefined"!=typeof window&&(window.Helper=e),"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=e)}();