index.js 212 KB

12
  1. /*! For license information please see index.js.LICENSE.txt */
  2. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["factit-lib"]=e():t["factit-lib"]=e()}(this,(()=>(()=>{"use strict";var t={893:(t,e,n)=>{n.d(e,{Z:()=>i}),t=n.hmd(t);var r=r||function(t){if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=t.webkitRequestFileSystem,a=t.requestFileSystem||i||t.mozRequestFileSystem,c=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},s="application/octet-stream",u=0,l=function(e){var r=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};t.chrome?r():setTimeout(r,500)},f=function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var o=t["on"+e[r]];if("function"==typeof o)try{o.call(t,n||t)}catch(t){c(t)}}},p=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},y=function(c,y){c=p(c);var d,h,v,b,m,g=this,w=c.type,O=!1,j=function(){f(g,"writestart progress write writeend".split(" "))},S=function(){!O&&d||(d=n().createObjectURL(c)),h?h.location.href=d:null==t.open(d,"_blank")&&"undefined"!=typeof safari&&(t.location.href=d),g.readyState=g.DONE,j(),l(d)},P=function(t){return function(){if(g.readyState!==g.DONE)return t.apply(this,arguments)}},E={create:!0,exclusive:!1};if(g.readyState=g.INIT,y||(y="download"),o)return d=n().createObjectURL(c),r.href=d,r.download=y,b=r,(m=e.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(m),g.readyState=g.DONE,j(),void l(d);t.chrome&&w&&w!==s&&(v=c.slice||c.webkitSlice,c=v.call(c,0,c.size,s),O=!0),i&&"download"!==y&&(y+=".download"),(w===s||i)&&(h=t),a?(u+=c.size,a(t.TEMPORARY,u,P((function(t){t.root.getDirectory("saved",E,P((function(t){var e=function(){t.getFile(y,E,P((function(t){t.createWriter(P((function(e){e.onwriteend=function(e){h.location.href=t.toURL(),g.readyState=g.DONE,f(g,"writeend",e),l(t)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&S()},"writestart progress write abort".split(" ").forEach((function(t){e["on"+t]=g["on"+t]})),e.write(c),g.abort=function(){e.abort(),g.readyState=g.DONE},g.readyState=g.WRITING})),S)})),S)};t.getFile(y,{create:!1},P((function(t){t.remove(),e()})),P((function(t){t.code===t.NOT_FOUND_ERR?e():S()})))})),S)})),S)):S()},d=y.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e){return navigator.msSaveOrOpenBlob(p(t),e)}:(d.abort=function(){var t=this;t.readyState=t.DONE,f(t,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(t,e){return new y(t,e)})}alert("Veuillez Utiliser un autre navigateur, L'application Factit n'est supporte par le navigateur ie")}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content),o=o||void 0;t.exports?t.exports.saveAs=r:null!=o&&null!=o.amd&&o([],(function(){return r}));const i=r}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Btn:()=>Me,Button:()=>Ke,Card:()=>Io,CardAction:()=>$o,CardContent:()=>ii,CardImage:()=>_i,CardTitle:()=>hi,Col:()=>ja,CollapsBody:()=>lr,CollapsElement:()=>gr,CollapsTrigger:()=>Lr,Collapsible:()=>tr,Collection:()=>ic,CollectionItem:()=>hc,Cube:()=>Ri,DateField:()=>pe,EmailField:()=>q,Field:()=>R,FieldTrigger:()=>yt,Flash:()=>Ia,FlashMessage:()=>Js,Form:()=>h,FormActions:()=>on,IconSideLink:()=>xo,Icons:()=>t,InnerPage:()=>na,Loader:()=>Ra,Logo:()=>hn,Overlay:()=>Ki,PasswordField:()=>jt,PhoneField:()=>Ut,PostCodeField:()=>Tt,RadioIcons:()=>$a,Row:()=>pa,SideCollapsible:()=>Ir,SideLink:()=>Yr,SideMenu:()=>Rn,SideMenuItem:()=>qn,SideNav:()=>En,SidenavEl:()=>co,SidenavSearch:()=>mo,Signature_Cmp:()=>Ac,StokeBtn:()=>_e,Tabs:()=>Na,TextArea:()=>Jt,Toast:()=>Zs,Waves:()=>ve,saveAs:()=>vc.Z});var t={};n.r(t),n.d(t,{AddIcon:()=>J,AttachementIcon:()=>nt,CancelIcon:()=>Q,CheveronDown:()=>G,CheveronLeft:()=>X,CheveronRight:()=>K,CheveronUp:()=>Z,DeleteIcon:()=>tt,EditIcon:()=>et,EyeDropperIcon:()=>ot,EyeIcon:()=>rt,SaveIcon:()=>Y});var e={};n.r(e),n.d(e,{P:()=>t});const o=require("react");var i=n.n(o);function a(t){return a="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},a(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:String(e)}function l(t,e,n){return e=p(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("form",c({onSubmit:function(t){t.preventDefault(),t.stopPropagation()},ref:function(e){t.el=e}},this.props))}}])&&s(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{d.displayName="Form"}catch(t){}d.defaultProps={className:""};const h=d;function v(t){return v="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},v(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:String(e)}function g(t,e,n){return e=O(e),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var S=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,e)).state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(e,t),n=e,(r=[{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.onFocus()}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){return i().createElement("div",{style:{color:"red"}},"Vous n'avez pas implementez la method render")}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{S.displayName="Commun"}catch(t){}const P=S,E=require("@d3v4pp/rex");var _=n.n(E);function k(t){return k="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},k(t)}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function x(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:String(e)}function L(t,e,n){return e=T(e),function(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,N()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(N=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function B(t,e){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},B(t,e)}var D=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=L(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(t){t.stopPropagation(),t.preventDefault(),""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),this.props.onBlur&&"function"==typeof this.props.onBlur&&this.props.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"la longueur doit être comprise entre ".concat(n," et ").concat(r," caractères."):"doit avoir une longueur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longueur maximale de ".concat(r," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longueur minimale de ".concat(n," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peut pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"setUnvalid",value:function(t){t&&this.setState({errmsg:t}),this.invalidate()}},{key:"setValid",value:function(){this.el.classList.add("valid"),this.el.classList.remove("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this),this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement("input",{ref:function(e){t.el=e},"data-role":this.props["data-role"],value:this.props.value||"",placeholder:this.props.placeholder,onChange:this.props.onChange||function(){},onFocus:function(e){return t.onFocus.bind(t)(e)},type:this.props.type||"text",disabled:this.props.disabled||!1,autoFocus:this.props.autoFocus||!1,"data-cy":this.props["data-cy"],onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyUp.bind(this),id:this.id,className:"validate "+this.props.className}),this.getErrorView())}}],r&&C(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{D.displayName="Field"}catch(t){}D.defaultProps={type:"text",className:"",placeholder:"",label:""};const R=D;function M(t){return M="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},M(t)}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}function A(t){var e=function(t,e){if("object"!=M(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==M(e)?e:String(e)}function I(t,e,n){return e=W(e),function(t,e){if(e&&("object"===M(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,V()?Reflect.construct(e,n||[],W(t).constructor):e.apply(t,n))}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}var z=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=I(this,e)).id=t.uuidv4(),t.state={labelClassName:"",error:"",focusCount:0},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&U(t,e)}(e,t),n=e,(r=[{key:"isValid",value:function(){var t=!!E.email.test(this.el.value)||["Le format de l'adresse email n'est pas valide"];return""==this.el.value.trim()?(this.setState({error:"l'email ne peut pas être vide !"}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),!1):!0!==t?(this.setState({error:t[0]}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}},{key:"getErrorView",value:function(){if(null!=this.state.error&&""!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("span",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.setState({focusCount:this.state.focusCount+1})}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){this.label.classList.contains("active")||(this.label.classList.add("active"),this.setState({labelClassName:"active"})),"Enter"==t.key&&(this.isValid(),this.props.enterkey()),this.state.focusCount>1&&this.isValid()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",{ref:function(e){t.el=e},"data-cy":this.props["data-cy"],placeholder:this.props.placeholder,value:this.props.value,type:"text",onChange:this.props.onChange,onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),autoFocus:this.props.autoFocus||!1,id:this.id,disabled:this.props.disabled,className:"validate "+this.props.className}),this.getErrorView())}}])&&F(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{z.displayName="EmailField"}catch(t){}z.defaultProps={type:"email",enterkey:function(){},icon:"at",className:"",placeholder:"",label:""};const q=z;function H(){return H=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},H.apply(this,arguments)}function K(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}),i().createElement("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"}))}try{K.displayName="CheveronRight"}catch(t){}function X(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}),i().createElement("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"}))}try{X.displayName="CheveronLeft"}catch(t){}function Z(t){return i().createElement("svg",H({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 512 512"}),i().createElement("path",{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"}))}try{Z.displayName="CheveronUp"}catch(t){}function G(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}),i().createElement("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"}))}try{G.displayName="CheveronDown"}catch(t){}function Y(t){return i().createElement("svg",H({},t,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}),i().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),i().createElement("path",{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}))}try{Y.displayName="SaveIcon"}catch(t){}function Q(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}try{Q.displayName="CancelIcon"}catch(t){}function J(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}try{J.displayName="AddIcon"}catch(t){}function tt(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}try{tt.displayName="DeleteIcon"}catch(t){}function et(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))}try{et.displayName="EditIcon"}catch(t){}function nt(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"}))}try{nt.displayName="AttachementIcon"}catch(t){}function rt(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))}try{rt.displayName="EyeIcon"}catch(t){}function ot(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11.25l1.5 1.5.75-.75V8.758l2.276-.61a3 3 0 10-3.675-3.675l-.61 2.277H12l-.75.75 1.5 1.5M15 11.25l-8.47 8.47c-.34.34-.8.53-1.28.53s-.94.19-1.28.53l-.97.97-.75-.75.97-.97c.34-.34.53-.8.53-1.28s.19-.94.53-1.28L12.75 9M15 11.25L12.75 9"}))}try{ot.displayName="EyeDropperIcon"}catch(t){}function it(t){return it="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},it(t)}function at(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ct(r.key),r)}}function ct(t){var e=function(t,e){if("object"!=it(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==it(e)?e:String(e)}function st(t,e,n){return e=lt(e),function(t,e){if(e&&("object"===it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ut()?Reflect.construct(e,n||[],lt(t).constructor):e.apply(t,n))}function ut(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ut=function(){return!!t})()}function lt(t){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lt(t)}function ft(t,e){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ft(t,e)}var pt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=st(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ft(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(){""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"la longueur doit être comprise entre ".concat(n," et ").concat(r," caractères."):"doit avoir une longueur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longueur maximale de ".concat(r," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longueur minimale de ".concat(n," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peut pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this),this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"getAddBtn",value:function(){var t=this;if(this.props.trigger)return i().createElement("button",{className:"webo second white-text",onClick:function(e){t.props.onTrigger&&"function"==typeof t.props.onTrigger&&t.props.onTrigger(e)}},i().createElement(J,{style:{height:"25px",width:"25px"}})," ")}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"inputFieldTrigger "},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName||""},this.props.label+(this.props.required?"*":"")),i().createElement("input",{ref:function(e){t.el=e},placeholder:this.props.placeholder,className:"validate "+this.props.className,value:this.props.value||"",onChange:this.props.onChange||function(){},onFocus:function(e){return t.onFocus.bind(t)(e)},type:this.props.type||"text",disabled:this.props.disabled||!1,autoFocus:this.props.autoFocus||!1,"data-cy":this.props["data-cy"],onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyPress:this.onKeyUp.bind(this),id:this.id}),this.getAddBtn())}}],r&&at(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{pt.displayName="FieldTrigger"}catch(t){}pt.defaultProps={trigger:!0,type:"text",className:"",placeholder:"",label:""};const yt=pt;function dt(t){return dt="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},dt(t)}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function vt(t){var e=function(t,e){if("object"!=dt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==dt(e)?e:String(e)}function bt(t,e,n){return e=gt(e),function(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,mt()?Reflect.construct(e,n||[],gt(t).constructor):e.apply(t,n))}function mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mt=function(){return!!t})()}function gt(t){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gt(t)}function wt(t,e){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wt(t,e)}var Ot=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=bt(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"getErrorView",value:function(){if(null!=this.state.error&&this.state.error.length>0)return this.state.error.map((function(t,e){return i().createElement("div",{key:e,className:"helper-text"},t)}))}},{key:"isPasswordValid",value:function(t){var e=function(t,e,n){var r=[];return t.length<8&&r.push("Au minimum 8 caractères"),t.length>32&&r.push("Au maximum 32 caractères"),!(r.length>0)||r}(t),n=!0===e?[]:e;return t.match(/[0-9]/)||n.push("Au minimum 1 caractère numérique"),t.match(/[a-z]/)||n.push("Au minimum 1 caractère minuscule"),t.match(/[A-Z]/)||n.push("Au minimum 1 caractère majuscule"),t.match(/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/)||n.push("Au minimum 1 caractère special"),!(n.length>0)||n}},{key:"isValid",value:function(){var t=this.isPasswordValid(this.el.value);return!0===t?(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0):(this.setState({error:t}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),!1)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),this.setState({focusCount:this.state.focusCount+1})}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){this.isValid(),""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),"Enter"==t.key&&this.props.enteraction&&this.props.enteraction(t),this.state.focusCount>1&&this.isValid()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){var t=this;return i().createElement(i().Fragment,null,i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",{ref:function(e){t.el=e},autoComplete:this.props.autoComplete||"on",placeholder:this.props.placeholder,value:this.props.value,onChange:this.props.onChange,type:"password","data-cy":this.props["data-cy"],onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyPress:this.onKeyDown.bind(this),autoFocus:this.props.autoFocus||!1,id:this.id,name:this.id,className:"validate "+this.props.className}),this.getErrorView())}}])&&ht(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{Ot.displayName="PasswordFIeld"}catch(t){}Ot.defaultProps={type:"password",icon:"dialpad",enterkey:function(){},className:"",placeholder:"",label:""};const jt=Ot;function St(t){return St="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},St(t)}function Pt(){return Pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pt.apply(this,arguments)}function Et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_t(r.key),r)}}function _t(t){var e=function(t,e){if("object"!=St(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==St(e)?e:String(e)}function kt(t,e,n){return e=xt(e),function(t,e){if(e&&("object"===St(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ct()?Reflect.construct(e,n||[],xt(t).constructor):e.apply(t,n))}function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}function xt(t){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xt(t)}function Lt(t,e){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lt(t,e)}var Nt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=kt(this,e)).id=t.uuidv4(),t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"isPostCode",value:function(t){return/^[0-9]{5}$/.test(t)}},{key:"getErrorView",value:function(){if(null!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"isValid",value:function(){return""==this.el.value.trim()?(this.setState({error:"le code postal ne peut pas être vide !"}),this.el.classList.add("invalid"),!1):this.isPostCode(this.el.value.trim())?this.props.confirm&&this.props.confirm.el.value!=this.el.value?(this.setState({error:"le mot de passe et la confirmation ne correspondent pas!"}),this.el.classList.add("invalid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0):(this.setState({error:"le format du code postal n'est pas valide!"}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active")}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.isValid()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field col s12"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",Pt({},this.props,{ref:function(e){t.el=e},onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),id:this.id,className:"validate "+this.props.className})),this.getErrorView())}}])&&Et(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{Nt.displayName="PostCodeField"}catch(t){}Nt.defaultProps={type:"postcode",icon:"dialpad",className:"",placeholder:"",label:""};const Tt=Nt;function Bt(t){return Bt="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},Bt(t)}function Dt(){return Dt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dt.apply(this,arguments)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mt(r.key),r)}}function Mt(t){var e=function(t,e){if("object"!=Bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Bt(e)?e:String(e)}function Ft(t,e,n){return e=It(e),function(t,e){if(e&&("object"===Bt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,At()?Reflect.construct(e,n||[],It(t).constructor):e.apply(t,n))}function At(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(At=function(){return!!t})()}function It(t){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},It(t)}function Vt(t,e){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vt(t,e)}var Wt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Ft(this,e)).id=t.uuidv4(),t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"isPhone",value:function(t){return/^(?:(?:\+|00)33|0)\s*[1-9](?:\d{2}){4}$/.test(Number(t))}},{key:"getErrorView",value:function(){if(null!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"isValid",value:function(){var t=(0,E.phone)(this.el.value);return console.log(t),!0!==t?(this.setState({error:t[0]}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active")}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.isValid()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",Dt({},this.props,{ref:function(e){t.el=e},onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),id:this.id,className:"validate "+this.props.className})),this.getErrorView())}}])&&Rt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{Wt.displayName="PhoneField"}catch(t){}Wt.defaultProps={type:"phoneNumber",icon:"dialpad",className:"",placeholder:"",label:""};const Ut=Wt,zt=require("react-textarea-autosize");var qt=n.n(zt);function Ht(t){return Ht="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},Ht(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xt(r.key),r)}}function Xt(t){var e=function(t,e){if("object"!=Ht(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ht(e)?e:String(e)}function Zt(t,e,n){return e=Gt(e),function(t,e){if(e&&("object"===Ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$t()?Reflect.construct(e,n||[],Gt(t).constructor):e.apply(t,n))}function $t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($t=function(){return!!t})()}function Gt(t){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gt(t)}function Yt(t,e){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yt(t,e)}var Qt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Zt(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yt(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(){""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"doit avoir une longeur comprise entre ".concat(n," et ").concat(r,"."):"doit avoir une longeur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longeur maximal de ".concat(r,".")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longeur minimal de ".concat(n,".")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peu pas etre vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){if("Enter"===t.key&&t.ctrlKey&&this.props.enteraction)return this.props.enteraction(t,this),t.preventDefault(),t.stopPropagation(),!1;this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement(qt(),{ref:function(e){t.el=e},value:this.props.value||"",onChange:this.props.onChange||function(){},disabled:this.props.disabled||!1,onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},"data-cy":this.props["data-cy"],onKeyUp:this.onKeyUp.bind(this),id:this.id,minRows:"4",className:"textarea "+this.props.className}),this.getErrorView())}}],r&&Kt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Qt.displayName="Field"}catch(t){}Qt.defaultProps={enteraction:function(){},type:"text",className:"",placeholder:"",label:""};const Jt=Qt,te=require("react-datepicker");var ee=n.n(te);require("react-datepicker/dist/react-datepicker.css");const ne=require("date-fns/locale/fr");var re=n.n(ne);function oe(t){return oe="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},oe(t)}function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ae(r.key),r)}}function ae(t){var e=function(t,e){if("object"!=oe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oe(e)?e:String(e)}function ce(t,e,n){return e=ue(e),function(t,e){if(e&&("object"===oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,se()?Reflect.construct(e,n||[],ue(t).constructor):e.apply(t,n))}function se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(se=function(){return!!t})()}function ue(t){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ue(t)}function le(t,e){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},le(t,e)}(0,te.registerLocale)("fr",re());var fe=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=ce(this,e)).id="",t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&le(t,e)}(e,t),n=e,r=[{key:"componentDidMount",value:function(){this.el.input.addEventListener("keypress",this.onKeyUp.bind(this))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this)}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.required,r=e.vtype,o=e.vtypeMsg;if(""===this.el.input.value)return n?(this.setState({errmsg:"Ne doit pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);var i=Date.now(),a=this.el.input.value.split("/"),c=a[0];a[0]=a[1],a[1]=c;var s=Date.parse(a.join("/")+" 23:59");switch(this.setState({errmsg:""}),r){case"future":return i>s?(this.setState({errmsg:o||"Doit être dans le future."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);case"past":return i<s?(this.setState({errmsg:o||"Doit être dans le passé."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);case"pastToday":return i<=(s=Date.parse(a.join("/")+" 00:00"))?(this.setState({errmsg:o||"Doit être dans le passé, ou aujourd'hui."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);default:return this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0}}}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"invalidate",value:function(){this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid")}},{key:"setUnvalid",value:function(t){t&&this.setState({errmsg:t}),this.invalidate()}},{key:"setValid",value:function(){this.el.input.classList.add("valid"),this.el.input.classList.remove("invalid")}},{key:"onBlur",value:function(t){t.stopPropagation(),t.preventDefault(),""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),this.props.onBlur&&"function"==typeof this.props.onBlur&&this.props.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement(ee(),{value:Date.parse(this.props.value),onKeyUp:this.onKeyUp.bind(this),ref:function(e){t.el=e},id:this.id,style:{marginTop:0},onBlur:function(e){return t.onBlur.bind(t)(e)},onFocus:function(e){return t.setState({focusCount:t.state.focusCount+1})},onChange:this.props.onChange,className:"validate "+this.props.className,dateFormat:"dd/MM/yyyy",selected:Date.parse(this.props.value)}),this.getErrorView())}}],r&&ie(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{fe.displayName="DateField"}catch(t){}fe.defaultProps={type:"date",className:"",placeholder:"",label:""};const pe=fe;function ye(t){return ye="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},ye(t)}function de(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,he(r.key),r)}}function he(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ye(e)?e:String(e)}const ve=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.options=n||{},this.wrapInput(),"ontouchstart"in window&&this.el.addEventListener("touchstart",(function(t){r.triggerEffect.bind(r)(t)}),!1),this.el.addEventListener("mousedown",(function(t){r.triggerEffect.bind(r)(t)}),!1)}var e,n;return e=t,(n=[{key:"showEffect",value:function(t){if(2===t.button)return!1;var e=document.createElement("div");e.className="waves-ripple",this.el.appendChild(e),this.ripple=e;var n=this.offset(),r=t.pageY-n.top,o=t.pageX-n.left,i="scale("+this.el.clientWidth/100*10+")";"touches"in t&&(r=t.touches[0].pageY-n.top,o=t.touches[0].pageX-n.left),this.ripple.setAttribute("data-hold",Date.now()),this.ripple.setAttribute("data-scale",i),this.ripple.setAttribute("data-x",o),this.ripple.setAttribute("data-y",r);var a={top:r+"px",left:o+"px"};this.ripple.setAttribute("style",this.convertStyle(a)),this.ripple.className=this.ripple.className.replace("waves-notransition",""),a["-webkit-transform"]=i,a["-moz-transform"]=i,a["-ms-transform"]=i,a["-o-transform"]=i,a.transform=i,a.opacity="1",a["-webkit-transition-duration"]=2*this.options.duration/3+"ms",a["-moz-transition-duration"]=2*this.options.duration/3+"ms",a["-o-transition-duration"]=2*this.options.duration/3+"ms",a["transition-duration"]=2*this.options.duration/3+"ms",a["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",this.ripple.setAttribute("style",this.convertStyle(a))}},{key:"hideEffect",value:function(){var t=this.el.lastElementChild;if(t&&t.classList.contains("waves-ripple")){var e=t.getAttribute("data-x"),n=t.getAttribute("data-y"),r=t.getAttribute("data-scale"),o=Date.now()-Number(t.getAttribute("data-hold")),i=this.options.duration/2-o;i<0&&(i=0);var a=this;setTimeout((function(){var o={top:n+"px",left:e+"px",opacity:"0","-webkit-transition-duration":a.options.duration/3+"ms","-moz-transition-duration":a.options.duration/3+"ms","-o-transition-duration":a.options.duration/3+"ms","transition-duration":a.options.duration/3+"ms","-webkit-transform":r,"-moz-transform":r,"-ms-transform":r,"-o-transform":r,transform:r};t.setAttribute("style",a.convertStyle(o)),setTimeout((function(){try{a.el.removeChild(t)}catch(t){return!1}}),a.options.duration)}),i)}}},{key:"wrapInput",value:function(){var t=this.el;if("input"===t.tagName.toLowerCase()){var e=t.parentNode;if("i"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("waves-effect"))return;var n=document.createElement("i");n.className=t.className+" waves-input-wrapper";var r=t.getAttribute("style");r||(r=""),n.setAttribute("style",r),t.className="waves-button-input",t.removeAttribute("style"),e.replaceChild(n,t),n.appendChild(t)}}},{key:"triggerEffect",value:function(t){var e=this;this.showEffect(t),"ontouchstart"in window&&(this.el.addEventListener("touchend",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("touchcancel",(function(t){e.hideEffect.bind(e)(t)}),!1)),this.el.addEventListener("mouseup",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("mouseleave",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("dragend",(function(t){e.hideEffect.bind(e)(t)}),!1)}},{key:"isWindow",value:function(t){return null!==t&&t===t.window}},{key:"getWindow",value:function(t){return this.isWindow(t)?t:9===t.nodeType&&t.defaultView}},{key:"offset",value:function(){var t,e,n={top:0,left:0},r=this.el&&this.el.ownerDocument;return t=r.documentElement,"undefined"!==ye(this.el.getBoundingClientRect)&&(n=this.el.getBoundingClientRect()),e=this.getWindow(r),{top:n.top+e.pageYOffset-t.clientTop,left:n.left+e.pageXOffset-t.clientLeft}}},{key:"convertStyle",value:function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}}])&&de(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function be(t){return be="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},be(t)}function me(){return me=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},me.apply(this,arguments)}function ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,we(r.key),r)}}function we(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==be(e)?e:String(e)}function Oe(t,e,n){return e=Se(e),function(t,e){if(e&&("object"===be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,je()?Reflect.construct(e,n||[],Se(t).constructor):e.apply(t,n))}function je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(je=function(){return!!t})()}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}function Pe(t,e){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pe(t,e)}var Ee=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Oe(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pe(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",me({},this.props,{className:"StokeBtn "+this.props.className}))}}])&&ge(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ee.displayName="StokeBtn"}catch(t){}Ee.defaultProps={className:""};const _e=Ee;function ke(t){return ke="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},ke(t)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ce.apply(this,arguments)}function xe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Le(r.key),r)}}function Le(t){var e=function(t,e){if("object"!=ke(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ke(e)?e:String(e)}function Ne(t,e,n){return e=Be(e),function(t,e){if(e&&("object"===ke(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Te()?Reflect.construct(e,n||[],Be(t).constructor):e.apply(t,n))}function Te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Te=function(){return!!t})()}function Be(t){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(t)}function De(t,e){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},De(t,e)}var Re=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&De(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Ce({},this.props,{className:"Btn "+this.props.className}))}}])&&xe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Re.displayName="Btn"}catch(t){}Re.defaultProps={className:""};const Me=Re;function Fe(t){return Fe="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},Fe(t)}function Ae(){return Ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ae.apply(this,arguments)}function Ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ve(r.key),r)}}function Ve(t){var e=function(t,e){if("object"!=Fe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Fe(e)?e:String(e)}function We(t,e,n){return e=ze(e),function(t,e){if(e&&("object"===Fe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ue()?Reflect.construct(e,n||[],ze(t).constructor):e.apply(t,n))}function Ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ue=function(){return!!t})()}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ze(t)}function qe(t,e){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qe(t,e)}var He=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),We(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qe(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.wave=new ve(this.el,{duration:950})}},{key:"render",value:function(){var t=this,e="btn waves-effect ";return"circle"==this.props.model&&(e+="btn-floating "),"large"==this.props.size&&(e+="btn-large "),"small"==this.props.size&&(e+="btn-small "),i().createElement("a",Ae({},this.props,{ref:function(e){t.el=e},className:e+this.props.className}),this.props.children)}}])&&Ie(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{He.displayName="Button"}catch(t){}He.defaultProps={className:"",model:"standard",size:"medium"};const Ke=He,Xe=require("react-router-dom");function Ze(t){return Ze="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},Ze(t)}function $e(){return $e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$e.apply(this,arguments)}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ye(r.key),r)}}function Ye(t){var e=function(t,e){if("object"!=Ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ze(e)?e:String(e)}function Qe(t,e,n){return e=tn(e),function(t,e){if(e&&("object"===Ze(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Je()?Reflect.construct(e,n||[],tn(t).constructor):e.apply(t,n))}function Je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Je=function(){return!!t})()}function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tn(t)}function en(t,e){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},en(t,e)}function nn(t){return i().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},t),i().createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}try{nn.displayName="XIcon"}catch(t){}var rn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qe(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&en(t,e)}(e,t),n=e,(r=[{key:"validateBtnClicked",value:function(t){this.props.onValidate&&"function"==typeof this.props.onValidate&&this.props.onValidate(t)}},{key:"render",value:function(){var t;return"string"==typeof this.props.onCancel?t=i().createElement(Xe.Link,{"data-cy":"form-next-cancel-Btn",style:{cursor:"pointer",marginRight:"10px",display:"flex",alignItems:"center"},className:"btn waves-effect red white-text",to:this.props.onCancel},i().createElement(nn,{style:{height:"20px"}})):"function"==typeof this.props.onCancel&&(t=i().createElement(Ke,{"data-cy":"form-next-cancel-Btn",style:{cursor:"pointer",marginRight:"10px",display:"flex",alignItems:"center"},className:"btn waves-effect red white-text",onClick:this.props.onCancel},i().createElement(nn,{style:{height:"20px"}}))),i().createElement("div",$e({},this.props,{className:"formActions "+this.props.className}),this.props.children,i().createElement("div",{className:"col s12",style:{display:"flex",justifyContent:"space-between"}},t,i().createElement(Ke,{"data-cy":"form-next-save-Btn",className:"green flexbox ",onClick:this.validateBtnClicked.bind(this)},i().createElement(Y,{style:{width:"20px",height:"20px"}}))))}}])&&Ge(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{rn.displayName="FormActions"}catch(t){}rn.defaultProps={onValidate:Function};const on=rn;function an(t){return an="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},an(t)}function cn(){return cn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cn.apply(this,arguments)}function sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,un(r.key),r)}}function un(t){var e=function(t,e){if("object"!=an(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=an(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==an(e)?e:String(e)}function ln(t,e,n){return e=pn(e),function(t,e){if(e&&("object"===an(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fn()?Reflect.construct(e,n||[],pn(t).constructor):e.apply(t,n))}function fn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fn=function(){return!!t})()}function pn(t){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pn(t)}function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yn(t,e)}var dn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ln(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",cn({},this.props,{className:"factit-logo"}),i().createElement("div",{className:"container"},i().createElement("svg",{className:"Trac_1",viewBox:"106.156 56.268 19.64 27.832"},i().createElement("path",{id:"Trac_1",d:"M 106.156005859375 83.27973937988281 L 106.156005859375 56.84753036499023 C 106.156005859375 56.52854537963867 106.3753662109375 56.26800155639648 106.6952972412109 56.26800155639648 L 124.8972473144531 56.26800155639648 C 125.7756500244141 56.26800155639648 125.7957611083984 57.92707443237305 125.7957611083984 59.56508255004883 C 125.7957611083984 61.24332046508789 125.7756500244141 62.90048599243164 124.8972473144531 62.90048599243164 L 113.0087890625 62.90048599243164 L 113.0087890625 68.47639465332031 L 122.8387451171875 68.47639465332031 C 123.6778564453125 68.47639465332031 123.6979675292969 69.934326171875 123.6979675292969 71.37213134765625 C 123.6979675292969 72.83195495605469 123.6778564453125 74.28987121582031 122.8387451171875 74.28987121582031 L 113.0087890625 74.28987121582031 L 113.0087890625 83.26057434082031 C 113.0087890625 84.07958984375 111.2903289794922 84.09970092773438 109.5728302001953 84.09970092773438 C 107.8543548583984 84.09970092773438 106.156005859375 84.07958984375 106.156005859375 83.27973937988281 Z"})),i().createElement("svg",{className:"Trac_2",viewBox:"128.654 63.443 17.342 21.179"},i().createElement("path",{id:"Trac_2",d:"M 128.6540069580078 79.08738708496094 C 128.6540069580078 75.35061645507813 131.8706207275391 73.15320587158203 136.4053039550781 72.27481842041016 L 139.3230590820313 71.71443939208984 L 139.3230590820313 70.71536254882813 C 139.3230590820313 69.79673004150391 138.7425842285156 69.13673400878906 137.48388671875 69.13673400878906 C 135.9455261230469 69.13673400878906 134.1676635742188 69.51702117919922 132.0497436523438 70.63585662841797 C 131.9702453613281 70.67607879638672 131.8897705078125 70.69523620605469 131.8102722167969 70.69523620605469 C 131.2307434082031 70.69523620605469 130.6512145996094 69.61760711669922 130.1722564697266 68.45854187011719 C 129.8523254394531 67.67882537841797 129.552490234375 66.9393310546875 129.552490234375 66.37992095947266 C 129.552490234375 66.02069854736328 129.6722412109375 65.74004364013672 129.9720611572266 65.58103179931641 C 132.7288970947266 64.10299682617188 135.0872192382813 63.44300079345703 137.8239593505859 63.44300079345703 C 142.8787536621094 63.44300079345703 145.9957580566406 65.60115051269531 145.9957580566406 71.23453521728516 L 145.9957580566406 83.60195159912109 C 145.9957580566406 84.40177917480469 144.4573669433594 84.40177917480469 142.9190063476563 84.40177917480469 C 141.3605041503906 84.40177917480469 139.8020172119141 84.40177917480469 139.8020172119141 83.60195159912109 L 139.8020172119141 81.84420013427734 C 138.6439056396484 83.52243804931641 137.0049285888672 84.62210083007813 134.2873992919922 84.62210083007813 C 131.1512451171875 84.62210083007813 128.6540069580078 82.84424591064453 128.6540069580078 79.08738708496094 Z M 139.3230590820313 76.93019104003906 L 139.3230590820313 75.67151641845703 L 136.9848175048828 76.15046691894531 C 136.0863189697266 76.28934478759766 135.3659820556641 76.88996124267578 135.3659820556641 77.76930999755859 C 135.3659820556641 78.52700805664063 135.9656372070313 79.0672607421875 136.8650970458984 79.0672607421875 C 138.5031127929688 79.0672607421875 139.3230590820313 77.88809204101563 139.3230590820313 76.93019104003906 Z"})),i().createElement("svg",{className:"Trac_3",viewBox:"150.755 63.443 16.902 21.179"},i().createElement("path",{id:"Trac_3",d:"M 150.7550048828125 74.03255462646484 C 150.7550048828125 67.55908203125 155.2302856445313 63.44300079345703 160.6443176269531 63.44300079345703 C 163.1616821289063 63.44300079345703 165.3198394775391 63.84244537353516 167.2978820800781 64.98233795166016 C 167.5574798583984 65.12123870849609 167.6570892333984 65.42201995849609 167.6570892333984 65.82145690917969 C 167.6570892333984 66.51976776123047 167.3179931640625 67.49970245361328 167.0181732177734 68.25738525390625 C 166.5382537841797 69.51702117919922 165.7997283935547 70.89639282226563 165.1397552490234 70.89639282226563 C 165.0602264404297 70.89639282226563 164.9606170654297 70.87532806396484 164.8801422119141 70.81497955322266 C 163.8015594482422 70.17605590820313 162.6223907470703 69.75650787353516 161.3244476318359 69.75650787353516 C 159.0666809082031 69.75650787353516 157.5081634521484 71.5745849609375 157.5081634521484 74.03255462646484 C 157.5081634521484 76.47039794921875 159.0666809082031 78.28849029541016 161.3244476318359 78.28849029541016 C 162.6223907470703 78.28849029541016 163.8207092285156 77.88809204101563 164.9404907226563 77.20894622802734 C 165.0401153564453 77.16871643066406 165.11962890625 77.14859008789063 165.2201995849609 77.14859008789063 C 165.8792419433594 77.14859008789063 166.4989929199219 78.38810729980469 166.9578247070313 79.60655975341797 C 167.2777709960938 80.44567108154297 167.6177978515625 81.56546020507813 167.6177978515625 82.32314300537109 C 167.6177978515625 82.68331146240234 167.537353515625 82.96302795410156 167.3381042480469 83.06266021728516 C 165.3600616455078 84.22265625 163.1224060058594 84.62210083007813 160.6443176269531 84.62210083007813 C 155.2302856445313 84.62210083007813 150.7550048828125 80.56540679931641 150.7550048828125 74.03255462646484 Z"})),i().createElement("svg",{className:"Trac_4",viewBox:"171.978 57.603 17.241 26.773"},i().createElement("path",{id:"Trac_4",d:"M 175.7339172363281 76.42376708984375 L 175.7339172363281 69.41196441650391 L 172.7969818115234 69.41196441650391 C 171.9779968261719 69.41196441650391 171.9779968261719 67.95212554931641 171.9779968261719 66.51432037353516 C 171.9779968261719 65.05448150634766 171.9779968261719 63.61667633056641 172.7969818115234 63.61667633056641 L 175.7339172363281 63.61667633056641 L 175.7339172363281 58.42200469970703 C 175.7339172363281 57.60300445556641 177.4322509765625 57.60300445556641 179.0903778076172 57.60300445556641 C 180.7676696777344 57.60300445556641 182.4459075927734 57.60300445556641 182.4459075927734 58.42200469970703 L 182.4459075927734 63.61667633056641 L 186.6223449707031 63.61667633056641 C 187.4815521240234 63.61667633056641 187.4815521240234 65.05448150634766 187.4815521240234 66.51432037353516 C 187.4815521240234 67.95212554931641 187.4815521240234 69.41196441650391 186.6223449707031 69.41196441650391 L 182.4459075927734 69.41196441650391 L 182.4459075927734 76.42376708984375 C 182.4459075927734 77.4420166015625 182.8654632568359 78.42192840576172 184.1241302490234 78.42192840576172 C 184.944091796875 78.42192840576172 185.9240264892578 78.16139221191406 186.8225402832031 77.6422119140625 C 186.9221496582031 77.58281707763672 187.0217742919922 77.56270599365234 187.1213989257813 77.56270599365234 C 187.7220001220703 77.56270599365234 188.1607055664063 78.56179046630859 188.5802764892578 79.74095153808594 C 188.8590087890625 80.48045349121094 189.2191925048828 81.53797149658203 189.2191925048828 82.25831604003906 C 189.2191925048828 82.59837341308594 189.1396789550781 82.87711334228516 188.9203033447266 82.99781036376953 C 187.1606750488281 83.99594116210938 185.3033142089844 84.376220703125 183.0062713623047 84.376220703125 C 178.09033203125 84.376220703125 175.7339172363281 81.49870300292969 175.7339172363281 76.42376708984375 Z"})),i().createElement("svg",{className:"Trac_5",viewBox:"201.942 53.912 8.033 30.089"},i().createElement("path",{id:"Trac_5",d:"M 201.9420166015625 57.64684677124023 C 201.9420166015625 55.30957412719727 203.2207946777344 53.9119987487793 205.9594421386719 53.9119987487793 C 208.6961364746094 53.9119987487793 209.9749450683594 55.30957412719727 209.9749450683594 57.64684677124023 C 209.9749450683594 59.96494674682617 208.6961364746094 61.36349105834961 205.9594421386719 61.36349105834961 C 203.2207946777344 61.36349105834961 201.9420166015625 59.96494674682617 201.9420166015625 57.64684677124023 Z M 202.6020202636719 83.18055725097656 L 202.6020202636719 64.080078125 C 202.6020202636719 63.26204299926758 204.2812194824219 63.26204299926758 205.9795532226563 63.26204299926758 C 207.6376647949219 63.26204299926758 209.2948303222656 63.26204299926758 209.2948303222656 64.080078125 L 209.2948303222656 83.18055725097656 C 209.2948303222656 84.00050354003906 207.6376647949219 84.00050354003906 205.9594421386719 84.00050354003906 C 204.2812194824219 84.00050354003906 202.6020202636719 84.00050354003906 202.6020202636719 83.18055725097656 Z"})),i().createElement("svg",{className:"Trac_6",viewBox:"213.757 57.603 17.243 26.773"},i().createElement("path",{id:"Trac_6",d:"M 217.5138854980469 76.42376708984375 L 217.5138854980469 69.41196441650391 L 214.5769958496094 69.41196441650391 C 213.7570190429688 69.41196441650391 213.7570190429688 67.95212554931641 213.7570190429688 66.51432037353516 C 213.7570190429688 65.05448150634766 213.7570190429688 63.61667633056641 214.5769958496094 63.61667633056641 L 217.5138854980469 63.61667633056641 L 217.5138854980469 58.42200469970703 C 217.5138854980469 57.60300445556641 219.2122192382813 57.60300445556641 220.870361328125 57.60300445556641 C 222.548583984375 57.60300445556641 224.2268371582031 57.60300445556641 224.2268371582031 58.42200469970703 L 224.2268371582031 63.61667633056641 L 228.4013366699219 63.61667633056641 C 229.2605590820313 63.61667633056641 229.2605590820313 65.05448150634766 229.2605590820313 66.51432037353516 C 229.2605590820313 67.95212554931641 229.2605590820313 69.41196441650391 228.4013366699219 69.41196441650391 L 224.2268371582031 69.41196441650391 L 224.2268371582031 76.42376708984375 C 224.2268371582031 77.4420166015625 224.6463928222656 78.42192840576172 225.9050598144531 78.42192840576172 C 226.7231140136719 78.42192840576172 227.7030334472656 78.16139221191406 228.6025085449219 77.6422119140625 C 228.7021179199219 77.58281707763672 228.8017578125 77.56270599365234 228.9023132324219 77.56270599365234 C 229.5010070800781 77.56270599365234 229.940673828125 78.56179046630859 230.3602294921875 79.74095153808594 C 230.6408996582031 80.48045349121094 231.0001220703125 81.53797149658203 231.0001220703125 82.25831604003906 C 231.0001220703125 82.59837341308594 230.9196472167969 82.87711334228516 230.7003173828125 82.99781036376953 C 228.9425354003906 83.99594116210938 227.0832824707031 84.376220703125 224.7862243652344 84.376220703125 C 219.8703308105469 84.376220703125 217.5138854980469 81.49870300292969 217.5138854980469 76.42376708984375 Z"})),i().createElement("svg",{className:"Trac_7",viewBox:"53.242 43.326 37.752 50.589"},i().createElement("path",{id:"Trac_7",d:"M 85.71854400634766 65.21873474121094 L 68.58656311035156 65.21873474121094 C 68.58656311035156 65.00799560546875 68.59038543701172 63.80488586425781 68.59038543701172 63.53571319580078 C 68.59230804443359 61.61991882324219 68.41030120849609 58.41958618164063 65.34503173828125 56.65322113037109 C 64.3583984375 56.084228515625 63.47042083740234 55.58995819091797 62.72805786132813 55.14932250976563 L 89.55587768554688 55.14932250976563 C 90.96207427978516 55.14932250976563 90.99368286132813 52.49977874755859 90.99368286132813 49.81479263305664 C 90.99368286132813 47.19495010375977 90.96207427978516 43.32600402832031 89.55587768554688 43.32600402832031 L 54.81104278564453 43.32600402832031 C 53.94414520263672 43.32600402832031 53.24200439453125 44.02813720703125 53.24200439453125 44.89503860473633 L 53.24200439453125 55.14932250976563 L 53.25445556640625 55.14932250976563 L 53.25445556640625 81.50873565673828 C 53.25445556640625 84.17839050292969 54.38860321044922 86.65742492675781 56.28620147705078 88.13834381103516 C 56.34846496582031 88.18718719482422 56.41551208496094 88.234130859375 56.48256683349609 88.27722930908203 L 64.73006439208984 93.52363586425781 C 65.13909149169922 93.7841796875 65.60845184326172 93.91541290283203 66.07686614990234 93.91541290283203 C 66.49259185791016 93.91541290283203 66.90736389160156 93.81291961669922 67.28382110595703 93.60506439208984 C 68.08748626708984 93.16539001464844 68.58656311035156 92.32147216796875 68.58656311035156 91.40572357177734 L 68.58656311035156 75.82647705078125 L 85.71854400634766 75.82647705078125 L 85.71854400634766 75.82647705078125 C 87.12377166748047 75.82647705078125 87.15634918212891 73.17598724365234 87.15634918212891 70.49195861816406 C 87.15634918212891 67.87115478515625 87.12377166748047 65.21873474121094 85.71854400634766 65.21873474121094 Z M 66.07686614990234 91.40572357177734 L 57.82936859130859 86.15932464599609 C 56.54866790771484 85.16023254394531 55.76414489746094 83.39482879638672 55.76414489746094 81.50873565673828 L 55.76414489746094 50.53800582885742 C 55.90016174316406 52.29574584960938 57.01707458496094 53.96344757080078 58.31790161132813 55.14357757568359 C 58.80067443847656 55.583251953125 59.37158203125 56.02388763427734 60.05168914794922 56.45589447021484 C 61.22703552246094 57.20209503173828 62.85353851318359 58.13413238525391 64.12083435058594 58.84297943115234 C 65.38430023193359 59.54990386962891 66.07686614990234 61.09786224365234 66.07686614990234 62.5931396484375 L 66.07686614990234 91.40572357177734 Z"}))))}}])&&sn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{dn.displayName="Logo"}catch(t){}dn.defaultProps={className:""};const hn=dn;function vn(t){return vn="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},vn(t)}function bn(){return bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bn.apply(this,arguments)}function mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,gn(r.key),r)}}function gn(t){var e=function(t,e){if("object"!=vn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vn(e)?e:String(e)}function wn(t,e,n){return e=jn(e),function(t,e){if(e&&("object"===vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,On()?Reflect.construct(e,n||[],jn(t).constructor):e.apply(t,n))}function On(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(On=function(){return!!t})()}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jn(t)}function Sn(t,e){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sn(t,e)}var Pn=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=wn(this,e)).el=i().createRef(),t.state={open:!1},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sn(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"trigger",value:function(){this.isOpen()?this.close():this.open()}},{key:"open",value:function(){this.el.style.transition="transform 750ms ease 50ms",this.el.style.transform="translateX(0)",this.setState({open:!0})}},{key:"isOpen",value:function(){return this.state.open}},{key:"close",value:function(){this.el.style.transform="translateX(-105%)",this.el.style.transition="transform 750ms ease 50ms",this.setState({open:!1})}},{key:"render",value:function(){var t=this;return i().createElement(i().Fragment,null,i().createElement("ul",bn({style:{}},this.props,{ref:function(e){t.el=e},className:"sidenav "+this.props.className})))}}])&&mn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Pn.displayName="SideNav"}catch(t){}Pn.defaultProps={opened:"false",className:"",fixed:"false",right:"false"};const En=Pn;function _n(t){return _n="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},_n(t)}function kn(){return kn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kn.apply(this,arguments)}function Cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xn(r.key),r)}}function xn(t){var e=function(t,e){if("object"!=_n(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=_n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_n(e)?e:String(e)}function Ln(t,e,n){return e=Tn(e),function(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nn()?Reflect.construct(e,n||[],Tn(t).constructor):e.apply(t,n))}function Nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nn=function(){return!!t})()}function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tn(t)}function Bn(t,e){return Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bn(t,e)}var Dn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ln(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",kn({},this.props,{className:"sidemenu "+this.props.className}),i().createElement("ul",null,this.props.children))}}])&&Cn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Dn.displayName="SideMenu"}catch(t){}const Rn=Dn;function Mn(t){return Mn="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},Mn(t)}function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,An(r.key),r)}}function An(t){var e=function(t,e){if("object"!=Mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Mn(e)?e:String(e)}function In(t,e,n){return e=Wn(e),function(t,e){if(e&&("object"===Mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vn()?Reflect.construct(e,n||[],Wn(t).constructor):e.apply(t,n))}function Vn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vn=function(){return!!t})()}function Wn(t){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wn(t)}function Un(t,e){return Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Un(t,e)}var zn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),In(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Un(t,e)}(e,t),n=e,(r=[{key:"onMouseDown",value:function(t){t.stopPropagation();var e=this.getLI(t.target),n=e.parentElement.querySelector("li.active");n&&n.classList.remove("active"),e.classList.add("active")}},{key:"getLI",value:function(t){for(var e=t;"LI"!=e.nodeName;)e=e.parentElement;return e}},{key:"render",value:function(){return i().createElement("li",{onMouseDown:this.onMouseDown.bind(this),className:this.props.className||""},this.props.children)}}])&&Fn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{zn.displayName="SideMenuItem"}catch(t){}const qn=zn;function Hn(t){return Hn="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},Hn(t)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kn.apply(this,arguments)}function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zn(r.key),r)}}function Zn(t){var e=function(t,e){if("object"!=Hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hn(e)?e:String(e)}function $n(t,e,n){return e=Yn(e),function(t,e){if(e&&("object"===Hn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gn()?Reflect.construct(e,n||[],Yn(t).constructor):e.apply(t,n))}function Gn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gn=function(){return!!t})()}function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yn(t)}function Qn(t,e){return Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qn(t,e)}var Jn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),$n(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("ul",Kn({},this.props,{className:"collapsible collapsible-accordion "+this.props.className}))}}])&&Xn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Jn.displayName="Collapsible"}catch(t){}Jn.defaultProps={className:""};const tr=Jn;function er(t){return er="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},er(t)}function nr(){return nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nr.apply(this,arguments)}function rr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,or(r.key),r)}}function or(t){var e=function(t,e){if("object"!=er(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==er(e)?e:String(e)}function ir(t,e,n){return e=cr(e),function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ar()?Reflect.construct(e,n||[],cr(t).constructor):e.apply(t,n))}function ar(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ar=function(){return!!t})()}function cr(t){return cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cr(t)}function sr(t,e){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sr(t,e)}var ur=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ir(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",nr({},this.props,{ref:function(e){t.el=e},className:"collapsible-body "+this.props.className}))}}])&&rr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ur.displayName="CollapsBody"}catch(t){}ur.defaultProps={className:""};const lr=ur;function fr(t){return fr="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},fr(t)}function pr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function yr(t){var e=function(t,e){if("object"!=fr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fr(e)?e:String(e)}function dr(t,e,n){return e=vr(e),function(t,e){if(e&&("object"===fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,hr()?Reflect.construct(e,n||[],vr(t).constructor):e.apply(t,n))}function hr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hr=function(){return!!t})()}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}function br(t,e){return br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},br(t,e)}var mr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),dr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&br(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("li",this.props)}}])&&pr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{mr.displayName="CollapsElement"}catch(t){}const gr=mr;function wr(t){return wr="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},wr(t)}function Or(){return Or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Or.apply(this,arguments)}function jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Cr(r.key),r)}}function Sr(t,e,n){return e=Er(e),function(t,e){if(e&&("object"===wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _r(t)}(t,Pr()?Reflect.construct(e,n||[],Er(t).constructor):e.apply(t,n))}function Pr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pr=function(){return!!t})()}function Er(t){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Er(t)}function _r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kr(t,e){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kr(t,e)}function Cr(t){var e=function(t,e){if("object"!=wr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==wr(e)?e:String(e)}var xr=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=_r(t=Sr(this,e,[].concat(a))),o={isOpen:!1},(r=Cr(r="state"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"showHideBody",value:function(){this.isOpen()?this.collapse():this.expand()}},{key:"collapse",value:function(){this.findCollapsible.bind(this)().querySelector(".collapsible-body").style.display="none",this.setState({isOpen:!1})}},{key:"findCollapsible",value:function(){for(var t=this.el.parentElement;!t.classList.contains("collapsible");)t=t.parentElement;return t}},{key:"expand",value:function(){this.findCollapsible.bind(this)().querySelector(".collapsible-body").style.display="block",this.setState({isOpen:!0})}},{key:"isOpen",value:function(){return this.state.isOpen}},{key:"render",value:function(){var t=this,e=1==this.state.isOpen?Z():G();return i().createElement("div",Or({},this.props,{ref:function(e){t.el=e},className:"collapsible-header "+this.props.className,onMouseDown:function(e){return t.showHideBody.bind(t)(e)}}),this.props.children,e)}}])&&jr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xr.displayName="CollapsTrigger"}catch(t){}xr.defaultProps={effectduration:750,className:""};const Lr=xr;function Nr(t){return Nr="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},Nr(t)}function Tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Br(r.key),r)}}function Br(t){var e=function(t,e){if("object"!=Nr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nr(e)?e:String(e)}function Dr(t,e,n){return e=Mr(e),function(t,e){if(e&&("object"===Nr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rr()?Reflect.construct(e,n||[],Mr(t).constructor):e.apply(t,n))}function Rr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rr=function(){return!!t})()}function Mr(t){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mr(t)}function Fr(t,e){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fr(t,e)}var Ar=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Dr(this,n,arguments)}var r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fr(t,e)}(n,t),r=n,(o=[{key:"render",value:function(){return i().createElement(tr,null,i().createElement(gr,null,i().createElement(Lr,{className:"waves-effect waves-green"},i().createElement(e.Icon,null,this.props.icon),this.props.text||"no text prop"),i().createElement(lr,{style:{paddingLeft:"20px"}},i().createElement("ul",null,this.props.children))))}}])&&Tr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(i().Component);try{Ar.displayName="SideCollapsible"}catch(t){}Ar.defaultProps={effectduration:750,className:"",path:""};const Ir=Ar;function Vr(t){return Vr="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},Vr(t)}function Wr(){return Wr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wr.apply(this,arguments)}function Ur(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ur(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Hr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Hr(r.key),r)}}function Hr(t){var e=function(t,e){if("object"!=Vr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vr(e)?e:String(e)}function Kr(t,e,n){return e=Zr(e),function(t,e){if(e&&("object"===Vr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Xr()?Reflect.construct(e,n||[],Zr(t).constructor):e.apply(t,n))}function Xr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xr=function(){return!!t})()}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zr(t)}function $r(t,e){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$r(t,e)}var Gr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Kr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$r(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",Wr({},this.props,{style:zr({},this.props.style)}),i().createElement(Xe.Link,Wr({},this.props,{className:"waves-effect waves-green"+this.props.className,innerRef:function(e){t.el=e},to:this.props.to}),this.props.children))}}])&&qr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Gr.displayName="SideLink"}catch(t){}Gr.defaultProps={effectduration:750,className:"",to:"/"};const Yr=Gr;function Qr(t){return Qr="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},Qr(t)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jr.apply(this,arguments)}function to(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,eo(r.key),r)}}function eo(t){var e=function(t,e){if("object"!=Qr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qr(e)?e:String(e)}function no(t,e,n){return e=oo(e),function(t,e){if(e&&("object"===Qr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ro()?Reflect.construct(e,n||[],oo(t).constructor):e.apply(t,n))}function ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ro=function(){return!!t})()}function oo(t){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oo(t)}function io(t,e){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},io(t,e)}var ao=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=no(this,e)).data=null,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&io(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.data=this.props.data}},{key:"selectItem",value:function(){var t=this.el.current.parentElement.querySelector(".selected");t&&t.classList.remove("selected"),this.el.current.classList.add("selected"),this.props.onClick&&"function"==typeof this.props.onClick&&this.props.onClick(this.data)}},{key:"render",value:function(){return i().createElement("li",Jr({ref:this.el},this.props,{className:"waves-effect waves-green "+this.props.className,style:{display:"inherit"}}),i().createElement("a",null,this.props.children))}}])&&to(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ao.displayName="SidenavEl"}catch(t){}ao.defaultProps={effectduration:750,className:"waves-effect waves-green ",path:"",icon:"home",data:[]};const co=ao;function so(t){return so="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},so(t)}function uo(){return uo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uo.apply(this,arguments)}function lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fo(r.key),r)}}function fo(t){var e=function(t,e){if("object"!=so(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=so(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==so(e)?e:String(e)}function po(t,e,n){return e=ho(e),function(t,e){if(e&&("object"===so(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,yo()?Reflect.construct(e,n||[],ho(t).constructor):e.apply(t,n))}function yo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yo=function(){return!!t})()}function ho(t){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ho(t)}function vo(t,e){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vo(t,e)}var bo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),po(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vo(t,e)}(e,t),n=e,(r=[{key:"runSearch",value:function(){}},{key:"render",value:function(){return i().createElement("li",uo({},this.props,{className:"search "+this.props.className}),i().createElement("div",{className:"search-wrapper"},i().createElement("input",{ref:this.el,type:"search",placeholder:"Search"}),i().createElement("div",{className:"search-results"})))}}])&&lo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{bo.displayName="SidenavSearch"}catch(t){}bo.defaultProps={className:" "};const mo=bo;function go(t){return go="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},go(t)}function wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Oo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=So(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,So(r.key),r)}}function So(t){var e=function(t,e){if("object"!=go(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==go(e)?e:String(e)}function Po(t,e,n){return e=_o(e),function(t,e){if(e&&("object"===go(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Eo()?Reflect.construct(e,n||[],_o(t).constructor):e.apply(t,n))}function Eo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Eo=function(){return!!t})()}function _o(t){return _o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_o(t)}function ko(t,e){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ko(t,e)}var Co=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Po(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ko(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",{onClick:this.props.onClick,style:Oo({},this.props.style),className:this.props.className},i().createElement(Xe.Link,{className:"waves-effect waves-green iconSideLink "+this.props.className,"data-cy":this.props["data-cy"],innerRef:function(e){t.el=e},to:this.props.to},this.props.icon&&i().createElement(this.props.icon,{style:{marginRight:"20px"}}),this.props.children))}}])&&jo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Co.displayName="IconSideLink"}catch(t){}Co.defaultProps={effectduration:750,className:"",to:"/"};const xo=Co;function Lo(t){return Lo="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},Lo(t)}function No(){return No=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},No.apply(this,arguments)}function To(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Bo(r.key),r)}}function Bo(t){var e=function(t,e){if("object"!=Lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lo(e)?e:String(e)}function Do(t,e,n){return e=Mo(e),function(t,e){if(e&&("object"===Lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ro()?Reflect.construct(e,n||[],Mo(t).constructor):e.apply(t,n))}function Ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ro=function(){return!!t})()}function Mo(t){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mo(t)}function Fo(t,e){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fo(t,e)}var Ao=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Do(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",No({},this.props,{className:"card "+this.props.className}))}}])&&To(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ao.displayName="Card"}catch(t){}Ao.defaultProps={className:""};const Io=Ao;function Vo(t){return Vo="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},Vo(t)}function Wo(){return Wo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wo.apply(this,arguments)}function Uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zo(r.key),r)}}function zo(t){var e=function(t,e){if("object"!=Vo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vo(e)?e:String(e)}function qo(t,e,n){return e=Ko(e),function(t,e){if(e&&("object"===Vo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ho()?Reflect.construct(e,n||[],Ko(t).constructor):e.apply(t,n))}function Ho(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ho=function(){return!!t})()}function Ko(t){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ko(t)}function Xo(t,e){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xo(t,e)}var Zo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),qo(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Wo({},this.props,{className:"card-action "+this.props.className}))}}])&&Uo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Zo.displayName="CardAction"}catch(t){}Zo.defaultProps={className:""};const $o=Zo;function Go(t){return Go="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},Go(t)}function Yo(){return Yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yo.apply(this,arguments)}function Qo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jo(r.key),r)}}function Jo(t){var e=function(t,e){if("object"!=Go(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Go(e)?e:String(e)}function ti(t,e,n){return e=ni(e),function(t,e){if(e&&("object"===Go(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ei()?Reflect.construct(e,n||[],ni(t).constructor):e.apply(t,n))}function ei(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ei=function(){return!!t})()}function ni(t){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ni(t)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ri(t,e)}var oi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ti(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ri(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Yo({},this.props,{className:"card-content "+this.props.className}))}}])&&Qo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{oi.displayName="CardContent"}catch(t){}oi.defaultProps={className:""};const ii=oi;function ai(t){return ai="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},ai(t)}function ci(){return ci=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ci.apply(this,arguments)}function si(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ui(r.key),r)}}function ui(t){var e=function(t,e){if("object"!=ai(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ai(e)?e:String(e)}function li(t,e,n){return e=pi(e),function(t,e){if(e&&("object"===ai(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fi()?Reflect.construct(e,n||[],pi(t).constructor):e.apply(t,n))}function fi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fi=function(){return!!t})()}function pi(t){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(t)}function yi(t,e){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yi(t,e)}var di=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),li(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("span",ci({},this.props,{className:"card-title "+(this.props.className||"")}))}}])&&si(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{di.displayName="CardTitle"}catch(t){}di.defaultProps={className:""};const hi=di;function vi(t){return vi="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},vi(t)}function bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bi(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=wi(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,wi(r.key),r)}}function wi(t){var e=function(t,e){if("object"!=vi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vi(e)?e:String(e)}function Oi(t,e,n){return e=Si(e),function(t,e){if(e&&("object"===vi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ji()?Reflect.construct(e,n||[],Si(t).constructor):e.apply(t,n))}function ji(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ji=function(){return!!t})()}function Si(t){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Si(t)}function Pi(t,e){return Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pi(t,e)}var Ei=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Oi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",{style:mi({},this.props.style),className:"card-image "+this.props.className},i().createElement("img",{src:this.props.src}),this.props.imageTitle&&i().createElement("span",{class:"card-title"},this.props.imageTitle),this.props.children)}}])&&gi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ei.displayName="CardImage"}catch(t){}Ei.defaultProps={className:""};const _i=Ei;function ki(t){return ki="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},ki(t)}function Ci(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xi(r.key),r)}}function xi(t){var e=function(t,e){if("object"!=ki(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ki(e)?e:String(e)}function Li(t,e,n){return e=Ti(e),function(t,e){if(e&&("object"===ki(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ni()?Reflect.construct(e,n||[],Ti(t).constructor):e.apply(t,n))}function Ni(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ni=function(){return!!t})()}function Ti(t){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ti(t)}function Bi(t,e){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bi(t,e)}var Di=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Li(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bi(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){var t=document.querySelector(".cube"),e=document.querySelector(".radio-group"),n="";function r(){var r="show-"+e.querySelector(":checked").value;n&&t.classList.remove(n),t.classList.add(r),n=r}r(),e.addEventListener("change",r)}},{key:"render",value:function(){return i().createElement(i().Fragment,null,i().createElement("div",{className:"scene"},i().createElement("div",{className:"cube"},i().createElement("div",{className:"cube__face cube__face--front"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"authentication"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--back"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"Senregistrer"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--right"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"Activation"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--left"},"left"),i().createElement("div",{className:"cube__face cube__face--top"},"top"),i().createElement("div",{className:"cube__face cube__face--bottom"},"bottom"))),i().createElement("p",{className:"radio-group"},i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"front",checked:!0})," front"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"right"})," right"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"back"})," back"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"left"})," left"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"top"})," top"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"bottom"})," bottom")))}}])&&Ci(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Di.displayName="Cube"}catch(t){}Di.defaultProps={className:""};const Ri=Di;function Mi(t){return Mi="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},Mi(t)}function Fi(){return Fi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fi.apply(this,arguments)}function Ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qi(r.key),r)}}function Ii(t,e,n){return e=Wi(e),function(t,e){if(e&&("object"===Mi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ui(t)}(t,Vi()?Reflect.construct(e,n||[],Wi(t).constructor):e.apply(t,n))}function Vi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vi=function(){return!!t})()}function Wi(t){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wi(t)}function Ui(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zi(t,e){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zi(t,e)}function qi(t){var e=function(t,e){if("object"!=Mi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Mi(e)?e:String(e)}var Hi=function(t){function e(t){var n,r,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=Ui(n=Ii(this,e,[t])),i={visible:!1},(o=qi(o="state"))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zi(t,e)}(e,t),n=e,(r=[{key:"show",value:function(){this.setState({visible:!0})}},{key:"open",value:function(){return this.show()}},{key:"isVisible",value:function(){return this.state.visible}},{key:"hide",value:function(){this.setState({visible:!1})}},{key:"close",value:function(){return this.hide()}},{key:"render",value:function(){var t=this;return this.state.visible?i().createElement("div",Fi({ref:function(e){t.el=e}},this.props,{className:"modal-overlay "+this.props.className})):null}}])&&Ai(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Hi.displayName="Overlay"}catch(t){}Hi.defaultProps={className:""};const Ki=Hi;function Xi(t){return Xi="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},Xi(t)}function Zi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$i(r.key),r)}}function $i(t){var e=function(t,e){if("object"!=Xi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xi(e)?e:String(e)}function Gi(t,e,n){return e=Qi(e),function(t,e){if(e&&("object"===Xi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Yi()?Reflect.construct(e,n||[],Qi(t).constructor):e.apply(t,n))}function Yi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Yi=function(){return!!t})()}function Qi(t){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qi(t)}function Ji(t,e){return Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ji(t,e)}function ta(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}var ea=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ji(t,e)}(e,t),n=e,(r=[{key:"getAddBtn",value:function(){if(this.props.addRedirectTo)return i().createElement(Xe.Link,{to:this.props.addRedirectTo,"data-cy":"clt-addBtn",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:ta(this.props.disabled?"disabled":"","btn waves-effect btn-floating btn-small myblue")},i().createElement(J,{style:{height:"25px",width:"25px"}}))}},{key:"getContent",value:function(){return this.props.noContent?i().createElement(i().Fragment,null,i().createElement("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px"}},this.props.paginated&&i().createElement("span",null," ",i().createElement("select",{value:this.props.value||10,onChange:"function"==typeof this.props.onlines&&this.props.onlines},i().createElement("option",{value:10},"10"),i().createElement("option",{value:25},"25"),i().createElement("option",{value:50},"50"),i().createElement("option",{value:100},"100")),"  lignes/page"),this.getAddBtn()),i().createElement("hr",{style:{height:"1px",border:"none",marginBottom:"19px"},className:""})):i().createElement(i().Fragment,null,i().createElement("div",{style:{display:"flex",padding:"8px"}},this.props.paginated&&i().createElement("span",null," ",i().createElement("select",{value:this.props.value||10,onChange:"function"==typeof this.props.onlines&&this.props.onlines},i().createElement("option",{value:10},"10"),i().createElement("option",{value:25},"25"),i().createElement("option",{value:50},"50"),i().createElement("option",{value:100},"100")),"  lignes/page"),i().createElement("h4",{className:"title center-align",style:{flex:1,alignSelf:"center",display:"flex",justifyContent:"center",alignItems:"center"}},"string"==typeof this.props.hicon?i().createElement(i().Fragment,null,"   "):i().createElement(this.props.hicon,{style:{width:"32px"}})," ","  ",this.props.htext||"Client"),this.getAddBtn()),i().createElement("hr",{style:{height:"1px",border:"none",marginBottom:"19px"},className:""}))}},{key:"render",value:function(){var t={};return this.props.noContent&&(t.boxShadow="none"),i().createElement("div",{className:"innerpage",style:t},this.getContent(),i().createElement("div",{className:"listeClient"},this.props.children))}}])&&Zi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(o.Component);try{ea.displayName="InnerPage"}catch(t){}const na=ea;function ra(t){return ra="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},ra(t)}function oa(){return oa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},oa.apply(this,arguments)}function ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aa(r.key),r)}}function aa(t){var e=function(t,e){if("object"!=ra(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ra(e)?e:String(e)}function ca(t,e,n){return e=ua(e),function(t,e){if(e&&("object"===ra(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,sa()?Reflect.construct(e,n||[],ua(t).constructor):e.apply(t,n))}function sa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sa=function(){return!!t})()}function ua(t){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ua(t)}function la(t,e){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},la(t,e)}var fa=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ca(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&la(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",oa({},this.props,{className:"row "+this.props.className}))}}])&&ia(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{fa.displayName="Row"}catch(t){}fa.defaultProps={className:""};const pa=fa;function ya(t){return ya="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},ya(t)}function da(){return da=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},da.apply(this,arguments)}function ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,va(r.key),r)}}function va(t){var e=function(t,e){if("object"!=ya(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ya(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ya(e)?e:String(e)}function ba(t,e,n){return e=ga(e),function(t,e){if(e&&("object"===ya(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ma()?Reflect.construct(e,n||[],ga(t).constructor):e.apply(t,n))}function ma(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ma=function(){return!!t})()}function ga(t){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(t)}function wa(t,e){return wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wa(t,e)}var Oa=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ba(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wa(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",da({},this.props,{ref:function(e){return t.el=e},className:"col "+this.props.className}))}}])&&ha(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Oa.displayName="Col"}catch(t){}Oa.defaultProps={className:""};const ja=Oa;function Sa(t){return Sa="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},Sa(t)}function Pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ea(r.key),r)}}function Ea(t){var e=function(t,e){if("object"!=Sa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Sa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Sa(e)?e:String(e)}function _a(t,e,n){return e=Ca(e),function(t,e){if(e&&("object"===Sa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ka()?Reflect.construct(e,n||[],Ca(t).constructor):e.apply(t,n))}function ka(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ka=function(){return!!t})()}function Ca(t){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ca(t)}function xa(t,e){return xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xa(t,e)}var La=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=_a(this,e,[t])).state={view:localStorage.getItem(n.props.name+"tabindex")||0},n}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xa(t,e)}(e,t),n=e,(r=[{key:"getView",value:function(){return this.props.tabs[this.state.view].cmp}},{key:"headerClick",value:function(t){var e=parseInt(t.target.dataset.index);localStorage.setItem(this.props.name+"tabindex",e),this.setState({view:e})}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"tabs activeTab-"+this.state.view},i().createElement("div",{className:"tabs-header-overlay"},this.props.tabs.map((function(e,n){return i().createElement("div",{"data-index":n,key:n,onClick:t.headerClick.bind(t),className:"tab-header-over"+n+" "+(t.state.view==n?"active":"")},i().createElement("div",{"data-index":n,key:n,className:"tab-header "+(t.state.view==n?"active":"")},e.text))}))),i().createElement("div",{className:"tab-content"},this.getView()))}}])&&Pa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{La.displayName="Tabs"}catch(t){}La.defaultProps={name:"Tabs",tabs:[{text:"TAB01",cmp:i().createElement("div",null,"TAB CONTENT 1 attention veuillez renseigner la props tabs")},{text:"TAB01",cmp:i().createElement("div",null,"TAB CONTENT 1 attention veuillez renseigner la props tabs")},{text:"TAB02",cmp:i().createElement("div",null,"TAB CONTANT 2")}]};const Na=La;function Ta(t){return Ta="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},Ta(t)}function Ba(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Da(r.key),r)}}function Da(t){var e=function(t,e){if("object"!=Ta(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ta(e)?e:String(e)}const Ra=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"loadstart",value:function(t){var e=document.createElement("div");e.id="loader-overlay",e.className="loader-overlay";var n=document.createElement("div");if(n.className="loader",e.appendChild(n),t){var r=document.createElement("div");r.className="loader-text",r.innerHTML=t,e.appendChild(r)}document.body.appendChild(e)}},{key:"loadstop",value:function(){var t=document.getElementById("loader-overlay");t&&t.remove()}}],null&&Ba(e.prototype,null),n&&Ba(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ma(t){return Ma="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},Ma(t)}function Fa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Aa(r.key),r)}}function Aa(t){var e=function(t,e){if("object"!=Ma(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ma(e)?e:String(e)}const Ia=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.duration=3e3}var e,n;return e=t,(n=[{key:"__message",value:function(t,e){var n=this;document.querySelectorAll(".flash-message").forEach((function(t){t.parentElement.removeChild(t)})),""!=e&&null!=e&&null!=e&&(this.el=document.createElement("div"),this.el.className="flash-message "+(t||""),this.el.innerHTML=e,document.body.appendChild(this.el),setTimeout((function(){n.el.remove()}),this.duration))}},{key:"info",value:function(t){return this.__message("info",t)}},{key:"error",value:function(t){return this.__message("error",t)}},{key:"warn",value:function(t){return this.__message("warn",t)}}])&&Fa(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function Va(t){return Va="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},Va(t)}function Wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xa(r.key),r)}}function Ua(t,e,n){return e=qa(e),function(t,e){if(e&&("object"===Va(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ha(t)}(t,za()?Reflect.construct(e,n||[],qa(t).constructor):e.apply(t,n))}function za(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(za=function(){return!!t})()}function qa(t){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qa(t)}function Ha(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ka(t,e){return Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ka(t,e)}function Xa(t){var e=function(t,e){if("object"!=Va(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Va(e)?e:String(e)}var Za=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=Ha(t=Ua(this,e,[].concat(a))),o={selected:""},(r=Xa(r="state"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ka(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){for(var t=null,e=0;e<this.props.options.length;e++){var n=this.props.options[e];n.selected&&(this.setState({selected:n.label}),t=!0)}null===t&&this.setState({selected:this.props.options[0].label})}},{key:"handleClick",value:function(t){t.label!=this.state.selected&&(this.setState({selected:t.label}),this.props.onChange(t.label))}},{key:"render",value:function(){var t=this,e=this.props.options;return i().createElement("div",{className:"radio-icons"},e.map((function(e,n){return i().createElement("div",{onClick:function(n){t.handleClick.bind(t)(e)},key:n,style:e.label==t.state.selected?{color:e.color,borderColor:e.color}:{},className:"option","data-cy":e.dataCy},i().isValidElement(e.icon)?e.icon:i().createElement(e.icon,{style:{width:"25px",height:"25px"}}),e.label)})))}}])&&Wa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Za.displayName="RadioIcons"}catch(t){}const $a=Za;function Ga(t){return Ga="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},Ga(t)}function Ya(){return Ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ya.apply(this,arguments)}function Qa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ja(r.key),r)}}function Ja(t){var e=function(t,e){if("object"!=Ga(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ga(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ga(e)?e:String(e)}function tc(t,e,n){return e=nc(e),function(t,e){if(e&&("object"===Ga(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ec()?Reflect.construct(e,n||[],nc(t).constructor):e.apply(t,n))}function ec(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ec=function(){return!!t})()}function nc(t){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nc(t)}function rc(t,e){return rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rc(t,e)}var oc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tc(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Ya({},this.props,{className:"collection "+this.props.className}))}}])&&Qa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{oc.displayName="Collection"}catch(t){}oc.defaultProps={className:""};const ic=oc;function ac(t){return ac="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},ac(t)}function cc(){return cc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cc.apply(this,arguments)}function sc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uc(r.key),r)}}function uc(t){var e=function(t,e){if("object"!=ac(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ac(e)?e:String(e)}function lc(t,e,n){return e=pc(e),function(t,e){if(e&&("object"===ac(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fc()?Reflect.construct(e,n||[],pc(t).constructor):e.apply(t,n))}function fc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fc=function(){return!!t})()}function pc(t){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pc(t)}function yc(t,e){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yc(t,e)}var dc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),lc(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",cc({},this.props,{className:"collection-item "+this.props.className}))}}])&&sc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{dc.displayName="CollectionItem"}catch(t){}dc.defaultProps={className:""};const hc=dc;var vc=n(893);function bc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mc(t,e,n){return e=wc(e),function(t,e){if(e&&("object"===jc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gc()?Reflect.construct(e,n||[],wc(t).constructor):e.apply(t,n))}function gc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gc=function(){return!!t})()}function wc(t){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wc(t)}function Oc(t,e){return Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oc(t,e)}function jc(t){return jc="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},jc(t)}function Sc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_c(r.key),r)}}function Ec(t,e,n){return e&&Pc(t.prototype,e),n&&Pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _c(t){var e=function(t,e){if("object"!=jc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jc(e)?e:String(e)}var kc=function(){function t(e,n,r,o){if(Sc(this,t),isNaN(e)||isNaN(n))throw new Error("Point is invalid: (".concat(e,", ").concat(n,")"));this.x=+e,this.y=+n,this.pressure=r||0,this.time=o||Date.now()}return Ec(t,[{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}},{key:"velocityFrom",value:function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}]),t}(),Cc=function(){function t(e,n,r,o,i,a){Sc(this,t),this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}return Ec(t,[{key:"length",value:function(){for(var t,e,n=0,r=0;r<=10;r+=1){var o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var c=i-t,s=a-e;n+=Math.sqrt(c*c+s*s)}t=i,e=a}return n}},{key:"point",value:function(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}],[{key:"fromPoints",value:function(e,n){var r=this.calculateControlPoints(e[0],e[1],e[2]).c2,o=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new t(e[1],r,o,e[2],n.start,n.end)}},{key:"calculateControlPoints",value:function(t,e,n){var r=t.x-e.x,o=t.y-e.y,i=e.x-n.x,a=e.y-n.y,c=(t.x+e.x)/2,s=(t.y+e.y)/2,u=(e.x+n.x)/2,l=(e.y+n.y)/2,f=Math.sqrt(r*r+o*o),p=Math.sqrt(i*i+a*a),y=p/(f+p),d=u+(c-u)*y,h=l+(s-l)*y,v=e.x-d,b=e.y-h;return{c1:new kc(c+v,s+b),c2:new kc(u+v,l+b)}}}]),t}(),xc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Sc(this,e),(n=mc(this,e)).canvas=t,n._drawingStroke=!1,n._isEmpty=!0,n._lastPoints=[],n._data=[],n._lastVelocity=0,n._lastWidth=0,n._handleMouseDown=function(t){1===t.buttons&&n._strokeBegin(t)},n._handleMouseMove=function(t){n._strokeMoveUpdate(t)},n._handleMouseUp=function(t){1===t.buttons&&n._strokeEnd(t)},n._handleTouchStart=function(t){if(t.cancelable&&t.preventDefault(),1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},n._handleTouchMove=function(t){t.cancelable&&t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},n._handleTouchEnd=function(t){if(t.target===n.canvas){t.cancelable&&t.preventDefault();var e=t.changedTouches[0];n._strokeEnd(e)}},n._handlePointerStart=function(t){t.preventDefault(),n._strokeBegin(t)},n._handlePointerMove=function(t){n._strokeMoveUpdate(t)},n._handlePointerEnd=function(t){n._drawingStroke&&(t.preventDefault(),n._strokeEnd(t))},n.velocityFilterWeight=r.velocityFilterWeight||.7,n.minWidth=r.minWidth||.5,n.maxWidth=r.maxWidth||2.5,n.throttle="throttle"in r?r.throttle:16,n.minDistance="minDistance"in r?r.minDistance:5,n.dotSize=r.dotSize||0,n.penColor=r.penColor||"black",n.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",n.compositeOperation=r.compositeOperation||"source-over",n._strokeMoveUpdate=n.throttle?function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=0,a=null,c=function(){i=Date.now(),a=null,e=t.apply(n,r),a||(n=null,r=[])};return function(){var s=Date.now(),u=o-(s-i);n=this;for(var l=arguments.length,f=new Array(l),p=0;p<l;p++)f[p]=arguments[p];return r=f,u<=0||u>o?(a&&(clearTimeout(a),a=null),i=s,e=t.apply(n,r),a||(n=null,r=[])):a||(a=window.setTimeout(c,u)),e}}(e.prototype._strokeUpdate,n.throttle):e.prototype._strokeUpdate,n._ctx=t.getContext("2d"),n.clear(),n.on(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oc(t,e)}(e,t),Ec(e,[{key:"clear",value:function(){var t=this._ctx,e=this.canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}},{key:"fromDataURL",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,o){var i=new Image,a=n.ratio||window.devicePixelRatio||1,c=n.width||e.canvas.width/a,s=n.height||e.canvas.height/a,u=n.xOffset||0,l=n.yOffset||0;e._reset(e._getPointGroupOptions()),i.onload=function(){e._ctx.drawImage(i,u,l,c,s),r()},i.onerror=function(t){o(t)},i.crossOrigin="anonymous",i.src=t,e._isEmpty=!1}))}},{key:"toDataURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1?arguments[1]:void 0;return"image/svg+xml"===t?("object"!==jc(e)&&(e=void 0),"data:image/svg+xml;base64,".concat(btoa(this.toSVG(e)))):("number"!=typeof e&&(e=void 0),this.canvas.toDataURL(t,e))}},{key:"on",value:function(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";var t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}},{key:"off",value:function(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"fromData",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clear;(void 0===e||e)&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}},{key:"toData",value:function(){return this._data}},{key:"_getPointGroupOptions",value:function(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}},{key:"_strokeBegin",value:function(t){if(this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0}))){this._drawingStroke=!0;var e=this._getPointGroupOptions(),n=Object.assign(Object.assign({},e),{points:[]});this._data.push(n),this._reset(e),this._strokeUpdate(t)}}},{key:"_strokeUpdate",value:function(t){if(this._drawingStroke)if(0!==this._data.length){this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));var e=t.clientX,n=t.clientY,r=void 0!==t.pressure?t.pressure:void 0!==t.force?t.force:0,o=this._createPoint(e,n,r),i=this._data[this._data.length-1],a=i.points,c=a.length>0&&a[a.length-1],s=!!c&&o.distanceTo(c)<=this.minDistance,u=this._getPointGroupOptions(i);if(!c||!c||!s){var l=this._addPoint(o,u);c?l&&this._drawCurve(l,u):this._drawDot(o,u),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}else this._strokeBegin(t)}},{key:"_strokeEnd",value:function(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}},{key:"_handlePointerEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}},{key:"_handleMouseEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}},{key:"_handleTouchEvents",value:function(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}},{key:"_reset",value:function(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}},{key:"_createPoint",value:function(t,e,n){var r=this.canvas.getBoundingClientRect();return new kc(t-r.left,e-r.top,n,(new Date).getTime())}},{key:"_addPoint",value:function(t,e){var n=this._lastPoints;if(n.push(t),n.length>2){3===n.length&&n.unshift(n[0]);var r=this._calculateCurveWidths(n[1],n[2],e),o=Cc.fromPoints(n,r);return n.shift(),o}return null}},{key:"_calculateCurveWidths",value:function(t,e,n){var r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}},{key:"_strokeWidth",value:function(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}},{key:"_drawCurveSegment",value:function(t,e,n){var r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(t,e){var n=this._ctx,r=t.endWidth-t.startWidth,o=2*Math.ceil(t.length());n.beginPath(),n.fillStyle=e.penColor;for(var i=0;i<o;i+=1){var a=i/o,c=a*a,s=c*a,u=1-a,l=u*u,f=l*u,p=f*t.startPoint.x;p+=3*l*a*t.control1.x,p+=3*u*c*t.control2.x,p+=s*t.endPoint.x;var y=f*t.startPoint.y;y+=3*l*a*t.control1.y,y+=3*u*c*t.control2.y,y+=s*t.endPoint.y;var d=Math.min(t.startWidth+s*r,e.maxWidth);this._drawCurveSegment(p,y,d)}n.closePath(),n.fill()}},{key:"_drawDot",value:function(t,e){var n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}},{key:"_fromData",value:function(t,e,n){var r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return bc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.points,c=this._getPointGroupOptions(i);if(a.length>1)for(var s=0;s<a.length;s+=1){var u=a[s],l=new kc(u.x,u.y,u.pressure,u.time);0===s&&this._reset(c);var f=this._addPoint(l,c);f&&e(f,c)}else this._reset(c),n(a[0],c)}}catch(t){o.e(t)}finally{o.f()}}},{key:"toSVG",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeBackgroundColor,e=void 0!==t&&t,n=this._data,r=Math.max(window.devicePixelRatio||1,1),o=this.canvas.width/r,i=this.canvas.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");if(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("viewBox","".concat(0," ").concat(0," ").concat(o," ").concat(i)),a.setAttribute("width",o.toString()),a.setAttribute("height",i.toString()),e&&this.backgroundColor){var c=document.createElement("rect");c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("fill",this.backgroundColor),a.appendChild(c)}return this._fromData(n,(function(t,e){var n=e.penColor,r=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var o="M ".concat(t.startPoint.x.toFixed(3),",").concat(t.startPoint.y.toFixed(3)," ")+"C ".concat(t.control1.x.toFixed(3),",").concat(t.control1.y.toFixed(3)," ")+"".concat(t.control2.x.toFixed(3),",").concat(t.control2.y.toFixed(3)," ")+"".concat(t.endPoint.x.toFixed(3),",").concat(t.endPoint.y.toFixed(3));r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*t.endWidth).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(t,e){var n=e.penColor,r=e.dotSize,o=e.minWidth,i=e.maxWidth,c=document.createElement("circle"),s=r>0?r:(o+i)/2;c.setAttribute("r",s.toString()),c.setAttribute("cx",t.x.toString()),c.setAttribute("cy",t.y.toString()),c.setAttribute("fill",n),a.appendChild(c)})),a.outerHTML}}]),e}(function(){function t(){Sc(this,t);try{this._et=new EventTarget}catch(t){this._et=document}}return Ec(t,[{key:"addEventListener",value:function(t,e,n){this._et.addEventListener(t,e,n)}},{key:"dispatchEvent",value:function(t){return this._et.dispatchEvent(t)}},{key:"removeEventListener",value:function(t,e,n){this._et.removeEventListener(t,e,n)}}]),t}());function Lc(t){return Lc="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},Lc(t)}function Nc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tc(r.key),r)}}function Tc(t){var e=function(t,e){if("object"!=Lc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lc(e)?e:String(e)}function Bc(t,e,n){return e=Rc(e),function(t,e){if(e&&("object"===Lc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dc()?Reflect.construct(e,n||[],Rc(t).constructor):e.apply(t,n))}function Dc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dc=function(){return!!t})()}function Rc(t){return Rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rc(t)}function Mc(t,e){return Mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mc(t,e)}var Fc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Bc(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mc(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.sigPad=new xc(this.canvas,{backgroundColor:"rgb(255, 255, 255)"}),window.onresize=this.resizeCanvas.bind(this),this.resizeCanvas()}},{key:"resizeCanvas",value:function(){var t=Math.max(window.devicePixelRatio||1,1);this.canvas.width=this.canvas.offsetWidth*t,this.canvas.height=this.canvas.offsetHeight*t,this.canvas.getContext("2d").scale(t,t)}},{key:"save",value:function(){var t=this.sigPad.toDataURL();this.props.onSave&&this.props.onSave(this.sigPad,t)}},{key:"clear",value:function(){this.sigPad.clear(),this.props.onClear&&this.props.onClear(),this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"signature",style:{border:"1px solid black",display:"flex",flexDirection:"column",height:"450px"}},i().createElement("canvas",{style:{backgroundColor:"rgb(255, 255, 255)",flex:1},ref:function(e){t.canvas=e}}),i().createElement("div",{className:"signature-toolbar grey lighten-3",style:{display:"flex",justifyContent:"space-between"}},i().createElement(Ke,{className:"red",onClick:this.clear.bind(this)},"close"),i().createElement(Ke,{className:"green",onClick:this.save.bind(this)},"save")))}}])&&Nc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Fc.displayName="Signature_Cmp"}catch(t){}const Ac=Fc;function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Vc={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Wc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Uc=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],zc={CSS:{},springs:{}};function qc(t,e,n){return Math.min(Math.max(t,e),n)}function Hc(t,e){return t.indexOf(e)>-1}function Kc(t,e){return t.apply(null,e)}var Xc={arr:function(t){return Array.isArray(t)},obj:function(t){return Hc(Object.prototype.toString.call(t),"Object")},pth:function(t){return Xc.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||Xc.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return Xc.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return Xc.hex(t)||Xc.rgb(t)||Xc.hsl(t)},key:function(t){return!Vc.hasOwnProperty(t)&&!Wc.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function Zc(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function $c(t,e){var n=Zc(t),r=qc(Xc.und(n[0])?1:n[0],.1,100),o=qc(Xc.und(n[1])?100:n[1],.1,100),i=qc(Xc.und(n[2])?10:n[2],.1,100),a=qc(Xc.und(n[3])?0:n[3],.1,100),c=Math.sqrt(o/r),s=i/(2*Math.sqrt(o*r)),u=s<1?c*Math.sqrt(1-s*s):0,l=s<1?(s*c-a)/u:-a+c;function f(t){var n=e?e*t/1e3:t;return n=s<1?Math.exp(-n*s*c)*(1*Math.cos(u*n)+l*Math.sin(u*n)):(1+l*n)*Math.exp(-n*c),0===t||1===t?t:1-n}return e?f:function(){var e=zc.springs[t];if(e)return e;for(var n=1/6,r=0,o=0;;)if(1===f(r+=n)){if(++o>=16)break}else o=0;var i=r*n*1e3;return zc.springs[t]=i,i}}function Gc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return function(e){return Math.ceil(qc(e,1e-6,1)*t)*(1/t)}}var Yc,Qc,Jc=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function r(t){return 3*t}function o(t,o,i){return((e(o,i)*t+n(o,i))*t+r(o))*t}function i(t,o,i){return 3*e(o,i)*t*t+2*n(o,i)*t+r(o)}return function(e,n,r,a){if(0<=e&&e<=1&&0<=r&&r<=1){var c=new Float32Array(11);if(e!==n||r!==a)for(var s=0;s<11;++s)c[s]=o(s*t,e,r);return function(s){return e===n&&r===a||0===s||1===s?s:o(function(n){for(var a=0,s=1;10!==s&&c[s]<=n;++s)a+=t;--s;var u=a+(n-c[s])/(c[s+1]-c[s])*t,l=i(u,e,r);return l>=.001?function(t,e,n,r){for(var a=0;a<4;++a){var c=i(e,n,r);if(0===c)return e;e-=(o(e,n,r)-t)/c}return e}(n,u,e,r):0===l?u:function(t,e,n,r,i){var a,c,s=0;do{(a=o(c=e+(n-e)/2,r,i)-t)>0?n=c:e=c}while(Math.abs(a)>1e-7&&++s<10);return c}(n,a,a+t,e,r)}(s),n,a)}}}}(),ts=(Yc={linear:function(){return function(t){return t}}},Qc={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,e=qc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=qc(t,.1,2);return function(t){return 0===t||1===t?t:-e*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/e))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(t,e){Qc[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(Qc).forEach((function(t){var e=Qc[t];Yc["easeIn"+t]=e,Yc["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},Yc["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}},Yc["easeOutIn"+t]=function(t,n){return function(r){return r<.5?(1-e(t,n)(1-2*r))/2:(e(t,n)(2*r-1)+1)/2}}})),Yc);function es(t,e){if(Xc.fnc(t))return t;var n=t.split("(")[0],r=ts[n],o=Zc(t);switch(n){case"spring":return $c(t,e);case"cubicBezier":return Kc(Jc,o);case"steps":return Kc(Gc,o);default:return Kc(r,o)}}function ns(t){try{return document.querySelectorAll(t)}catch(t){return}}function rs(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function os(t){return t.reduce((function(t,e){return t.concat(Xc.arr(e)?os(e):e)}),[])}function is(t){return Xc.arr(t)?t:(Xc.str(t)&&(t=ns(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function as(t,e){return t.some((function(t){return t===e}))}function cs(t){var e={};for(var n in t)e[n]=t[n];return e}function ss(t,e){var n=cs(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function us(t,e){var n=cs(t);for(var r in e)n[r]=Xc.und(t[r])?e[r]:t[r];return n}function ls(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function fs(t,e){return Xc.fnc(t)?t(e.target,e.id,e.total):t}function ps(t,e){return t.getAttribute(e)}function ys(t,e,n){if(as([n,"deg","rad","turn"],ls(e)))return e;var r=zc.CSS[e+n];if(!Xc.und(r))return r;var o=document.createElement(t.tagName),i=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;i.removeChild(o);var c=a*parseFloat(e);return zc.CSS[e+n]=c,c}function ds(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?ys(t,o,n):o}}function hs(t,e){return Xc.dom(t)&&!Xc.inp(t)&&(!Xc.nil(ps(t,e))||Xc.svg(t)&&t[e])?"attribute":Xc.dom(t)&&as(Uc,e)?"transform":Xc.dom(t)&&"transform"!==e&&ds(t,e)?"css":null!=t[e]?"object":void 0}function vs(t){if(Xc.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;e=r.exec(n);)o.set(e[1],e[2]);return o}}function bs(t,e,n,r){switch(hs(t,e)){case"transform":return function(t,e,n,r){var o=Hc(e,"scale")?1:0+function(t){return Hc(t,"translate")||"perspective"===t?"px":Hc(t,"rotate")||Hc(t,"skew")?"deg":void 0}(e),i=vs(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?ys(t,i,r):i}(t,e,r,n);case"css":return ds(t,e,n);case"attribute":return ps(t,e);default:return t[e]||0}}function ms(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=ls(t)||0,o=parseFloat(e),i=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function gs(t,e){if(Xc.col(t))return function(t){return Xc.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba(".concat(n[1],",1)"):e:Xc.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),r=parseInt(n[1],16),o=parseInt(n[2],16),i=parseInt(n[3],16);return"rgba(".concat(r,",").concat(o,",").concat(i,",1)")}(t):Xc.hsl(t)?function(t){var e,n,r,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),i=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,c=parseInt(o[3],10)/100,s=o[4]||1;function u(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==a)e=n=r=c;else{var l=c<.5?c*(1+a):c+a-c*a,f=2*c-l;e=u(f,l,i+1/3),n=u(f,l,i),r=u(f,l,i-1/3)}return"rgba(".concat(255*e,",").concat(255*n,",").concat(255*r,",").concat(s,")")}(t):void 0;var e,n}(t);if(/\s/g.test(t))return t;var n=ls(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function ws(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Os(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=ws(e,i)),e=i}return r}function js(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*ps(t,"r")}(t);case"rect":return function(t){return 2*ps(t,"width")+2*ps(t,"height")}(t);case"line":return function(t){return ws({x:ps(t,"x1"),y:ps(t,"y1")},{x:ps(t,"x2"),y:ps(t,"y2")})}(t);case"polyline":return Os(t);case"polygon":return function(t){var e=t.points;return Os(t)+ws(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function Ss(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;Xc.svg(e)&&Xc.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=ps(r,"viewBox"),a=o.width,c=o.height,s=n.viewBox||(i?i.split(" "):[0,0,a,c]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:a,h:c,vW:s[2],vH:s[3]}}function Ps(t,e,n){function r(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var o=Ss(t.el,t.svg),i=r(),a=r(-1),c=r(1),s=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(t.property){case"x":return(i.x-o.x)*s;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(c.y-a.y,c.x-a.x)/Math.PI}}function Es(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=gs(Xc.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Xc.str(t)||e?r.split(n):[]}}function _s(t){return rs(t?os(Xc.arr(t)?t.map(is):is(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function ks(t){var e=_s(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:vs(t)}}}))}function Cs(t,e){var n=cs(e);if(/^spring/.test(n.easing)&&(n.duration=$c(n.easing)),Xc.arr(t)){var r=t.length;2!==r||Xc.obj(t[0])?Xc.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}var o=Xc.arr(t)?t:[t];return o.map((function(t,n){var r=Xc.obj(t)&&!Xc.pth(t)?t:{value:t};return Xc.und(r.delay)&&(r.delay=n?0:e.delay),Xc.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return us(t,n)}))}var xs={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){if(r.list.set(e,n),e===r.last||o){var i="";r.list.forEach((function(t,e){i+="".concat(e,"(").concat(t,") ")})),t.style.transform=i}}};function Ls(t,e){ks(t).forEach((function(t){for(var n in e){var r=fs(e[n],t),o=t.target,i=ls(r),a=bs(o,n,i,t),c=ms(gs(r,i||ls(a)),a),s=hs(o,n);xs[s](o,n,c,t.transforms,!0)}}))}function Ns(t,e){return rs(os(t.map((function(t){return e.map((function(e){return function(t,e){var n=hs(t.target,e.name);if(n){var r=function(t,e){var n;return t.tweens.map((function(r){var o=function(t,e){var n={};for(var r in t){var o=fs(t[r],e);Xc.arr(o)&&1===(o=o.map((function(t){return fs(t,e)}))).length&&(o=o[0]),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,e),i=o.value,a=Xc.arr(i)?i[1]:i,c=ls(a),s=bs(e.target,t.name,c,e),u=n?n.to.original:s,l=Xc.arr(i)?i[0]:u,f=ls(l)||ls(s),p=c||f;return Xc.und(a)&&(a=u),o.from=Es(l,p),o.to=Es(ms(a,l),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=es(o.easing,o.duration),o.isPath=Xc.pth(i),o.isPathTargetInsideSVG=o.isPath&&Xc.svg(e.target),o.isColor=Xc.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}(e,t),o=r[r.length-1];return{type:n,property:e.name,animatable:t,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}(t,e)}))}))),(function(t){return!Xc.und(t)}))}function Ts(t,e){var n=t.length,r=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,t.map((function(t){return r(t)+t.duration}))):e.duration,o.delay=n?Math.min.apply(Math,t.map((function(t){return r(t)+t.delay}))):e.delay,o.endDelay=n?o.duration-Math.max.apply(Math,t.map((function(t){return r(t)+t.duration-t.endDelay}))):e.endDelay,o}var Bs=0,Ds=[],Rs=function(){var t;function e(n){for(var r=Ds.length,o=0;o<r;){var i=Ds[o];i.paused?(Ds.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Fs.suspendWhenDocumentHidden&&(Ms()?t=cancelAnimationFrame(t):(Ds.forEach((function(t){return t._onDocumentVisibility()})),Rs()))})),function(){t||Ms()&&Fs.suspendWhenDocumentHidden||!(Ds.length>0)||(t=requestAnimationFrame(e))}}();function Ms(){return!!document&&document.hidden}function Fs(){var t,e=0,n=0,r=0,o=0,i=null;function a(t){var e=window.Promise&&new Promise((function(t){return i=t}));return t.finished=e,e}var c,s,u,l,f,p,y,d,h=(s=ss(Vc,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),u=ss(Wc,c),l=function(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=us(function(t){for(var e=rs(os(t.map((function(t){return Object.keys(t)}))),(function(t){return Xc.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(){var r=e[o];n[r]=t.map((function(t){var e={};for(var n in t)Xc.key(n)?n==r&&(e.value=t[n]):e[n]=t[n];return e}))},o=0;o<e.length;o++)r();return n}(r),e)),e)Xc.key(o)&&n.push({name:o,tweens:Cs(e[o],t)});return n}(u,c),f=ks(c.targets),p=Ns(f,l),y=Ts(p,u),d=Bs,Bs++,us(s,{id:d,children:[],animatables:f,animations:p,duration:y.duration,delay:y.delay,endDelay:y.endDelay}));function v(){var e=h.direction;"alternate"!==e&&(h.direction="normal"!==e?"normal":"reverse"),h.reversed=!h.reversed,t.forEach((function(t){return t.reversed=h.reversed}))}function b(t){return h.reversed?h.duration-t:t}function m(){e=0,n=b(h.currentTime)*(1/Fs.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function w(t){for(var e=0,n=h.animations,r=n.length;e<r;){var o=n[e],i=o.animatable,a=o.tweens,c=a.length-1,s=a[c];c&&(s=rs(a,(function(e){return t<e.end}))[0]||s);for(var u=qc(t-s.start-s.delay,0,s.duration)/s.duration,l=isNaN(u)?1:s.easing(u),f=s.to.strings,p=s.round,y=[],d=s.to.numbers.length,v=void 0,b=0;b<d;b++){var m=void 0,g=s.to.numbers[b],w=s.from.numbers[b]||0;m=s.isPath?Ps(s.value,l*g,s.isPathTargetInsideSVG):w+l*(g-w),p&&(s.isColor&&b>2||(m=Math.round(m*p)/p)),y.push(m)}var O=f.length;if(O){v=f[0];for(var j=0;j<O;j++){var S=f[j+1],P=y[j];isNaN(P)||(v+=S?P+S:P+" ")}}else v=y[0];xs[o.type](i.target,o.property,v,i.transforms),o.currentValue=v,e++}}function O(t){h[t]&&!h.passThrough&&h[t](h)}function j(c){var s=h.duration,u=h.delay,l=s-h.endDelay,f=b(c);h.progress=qc(f/s*100,0,100),h.reversePlayback=f<h.currentTime,t&&function(e){if(h.reversePlayback)for(var n=o;n--;)g(e,t[n]);else for(var r=0;r<o;r++)g(e,t[r])}(f),!h.began&&h.currentTime>0&&(h.began=!0,O("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,O("loopBegin")),f<=u&&0!==h.currentTime&&w(0),(f>=l&&h.currentTime!==s||!s)&&w(s),f>u&&f<l?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,O("changeBegin")),O("change"),w(f)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,O("changeComplete")),h.currentTime=qc(f,0,s),h.began&&O("update"),c>=s&&(n=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(e=r,O("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&v()):(h.paused=!0,h.completed||(h.completed=!0,O("loopComplete"),O("complete"),!h.passThrough&&"Promise"in window&&(i(),a(h)))))}return a(h),h.reset=function(){var e=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===e,h.remaining=h.loop,t=h.children;for(var n=o=t.length;n--;)h.children[n].reset();(h.reversed&&!0!==h.loop||"alternate"===e&&1===h.loop)&&h.remaining++,w(h.reversed?h.duration:0)},h._onDocumentVisibility=m,h.set=function(t,e){return Ls(t,e),h},h.tick=function(t){r=t,e||(e=r),j((r+(n-e))*Fs.speed)},h.seek=function(t){j(b(t))},h.pause=function(){h.paused=!0,m()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,Ds.push(h),m(),Rs())},h.reverse=function(){v(),h.completed=!h.reversed,m()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){Is(_s(t),h)},h.reset(),h.autoplay&&h.play(),h}function As(t,e){for(var n=e.length;n--;)as(t,e[n].animatable.target)&&e.splice(n,1)}function Is(t,e){var n=e.animations,r=e.children;As(t,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;As(t,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}Fs.version="3.2.2",Fs.speed=1,Fs.suspendWhenDocumentHidden=!0,Fs.running=Ds,Fs.remove=function(t){for(var e=_s(t),n=Ds.length;n--;)Is(e,Ds[n])},Fs.get=bs,Fs.set=Ls,Fs.convertPx=ys,Fs.path=function(t,e){var n=Xc.str(t)?ns(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:Ss(n),totalLength:js(n)*(r/100)}}},Fs.setDashoffset=function(t){var e=js(t);return t.setAttribute("stroke-dasharray",e),e},Fs.stagger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.direction||"normal",r=e.easing?es(e.easing):null,o=e.grid,i=e.axis,a=e.from||0,c="first"===a,s="center"===a,u="last"===a,l=Xc.arr(t),f=l?parseFloat(t[0]):parseFloat(t),p=l?parseFloat(t[1]):0,y=ls(l?t[1]:t)||0,d=e.start||0+(l?f:0),h=[],v=0;return function(t,e,b){if(c&&(a=0),s&&(a=(b-1)/2),u&&(a=b-1),!h.length){for(var m=0;m<b;m++){if(o){var g=s?(o[0]-1)/2:a%o[0],w=s?(o[1]-1)/2:Math.floor(a/o[0]),O=g-m%o[0],j=w-Math.floor(m/o[0]),S=Math.sqrt(O*O+j*j);"x"===i&&(S=-O),"y"===i&&(S=-j),h.push(S)}else h.push(Math.abs(a-m));v=Math.max.apply(Math,function(t){if(Array.isArray(t))return Ic(t)}(P=h)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(P)||function(t,e){if(t){if("string"==typeof t)return Ic(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ic(t,e):void 0}}(P)||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.")}())}r&&(h=h.map((function(t){return r(t/v)*v}))),"reverse"===n&&(h=h.map((function(t){return i?t<0?-1*t:-t:Math.abs(v-t)})))}var P;return d+(l?(p-f)/v:f)*(Math.round(100*h[e])/100)+y}},Fs.timeline=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Fs(t);return e.duration=0,e.add=function(n,r){var o=Ds.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&Ds.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var s=us(n,ss(Wc,t));s.targets=s.targets||t.targets;var u=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=Xc.und(r)?u:ms(r,u),a(e),e.seek(s.timelineOffset);var l=Fs(s);a(l),i.push(l);var f=Ts(i,t);return e.delay=f.delay,e.endDelay=f.endDelay,e.duration=f.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},Fs.easing=es,Fs.penner=ts,Fs.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const Vs=Fs;function Ws(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Us(r.key),r)}}function Us(t){var e=function(t,e){if("object"!=zs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zs(e)?e:String(e)}function zs(t){return zs="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},zs(t)}var qs=["valueOf","toLocaleString","toString","constructor"],Hs=function t(e,n,r){var o,i,a;if(e&&(r&&t(e,r),n&&"object"===zs(n))){for(o in n)e[o]=n[o];if(qs)for(i=qs.length;i--;)a=qs[i],n.hasOwnProperty(a)&&(e[a]=n[a])}return e},Ks={html:"",displayLength:3e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},Xs=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=Hs({},e,t.defaults),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===t._toasts.length&&t._createContainer(),t._toasts.push(this);var n=this._createToast();n.M_Toast=this,this.el=n,this.$el=n,this._animateIn(),this._setTimer()}var e,n,r;return e=t,r=[{key:"defaults",get:function(){return Ks}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var e=document.createElement("div");e.setAttribute("id","toast-container"),e.addEventListener("touchstart",t._onDragStart),e.addEventListener("touchmove",t._onDragMove),e.addEventListener("touchend",t._onDragEnd),e.addEventListener("mousedown",t._onDragStart),document.addEventListener("mousemove",t._onDragMove),document.addEventListener("mouseup",t._onDragEnd),document.body.appendChild(e),t._container=e}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",t._onDragMove),document.removeEventListener("mouseup",t._onDragEnd),t._container.remove(),t._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&e.target.parentElement.querySelectorAll(".toast").length>0){var n=e.target.parentElement.querySelectorAll(".toast")[0];n.panning=!0,t._draggedToast=n,n.classList.add("panning"),n.style.transition="",n.startingXPos=t._xPos(e),n.time=Date.now(),n.xPos=t._xPos(e)}}},{key:"_onDragMove",value:function(e){if(t._draggedToast){e.preventDefault();var n=t._draggedToast;n.deltaX=Math.abs(n.xPos-t._xPos(e)),n.xPos=t._xPos(e),n.velocityX=n.deltaX/(Date.now()-n.time),n.time=Date.now();var r=n.xPos-n.startingXPos,o=.8*n.offsetWidth;n.style.transform="translateX(".concat(r,"px)"),n.style.opacity=1-Math.abs(r/o)}}},{key:"_onDragEnd",value:function(){if(t._draggedToast){var e=t._draggedToast;e.panning=!1,e.classList.remove("panning");var n=e.xPos-e.startingXPos,r=.8*e.offsetWidth;Math.abs(n)>r||e.velocityX>1?(e.wasSwiped=!0,e.remove()):(e.style.transition="transform .2s, opacity .2s",e.style.transform="",e.style.opacity=""),t._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var e in t._toasts)t._toasts[e].dismiss()}}],(n=[{key:"_createToast",value:function(){var e=document.createElement("div");return e.classList.add("toast"),this.options.classes.length&&this.options.classes.split(" ").forEach((function(t){e.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":zs(HTMLElement))?this.message instanceof HTMLElement:this.message&&"object"===zs(this.message)&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message.jquery?$(e).append(this.message[0]):e.innerHTML=this.message,t._container.appendChild(e),e}},{key:"_animateIn",value:function(){Vs({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval((function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()}),20))}},{key:"dismiss",value:function(){var e=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX(".concat(n,"px)"),this.el.style.opacity=0),Vs({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof e.options.completeCallback&&e.options.completeCallback(),e.$el.remove(),t._toasts.splice(t._toasts.indexOf(e),1),0===t._toasts.length&&t._removeContainer()}})}}])&&Ws(e.prototype,n),r&&Ws(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();Xs._toasts=[],Xs._container=null,Xs._draggedToast=null;const Zs=Xs;function $s(t){return $s="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},$s(t)}function Gs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ys(r.key),r)}}function Ys(t){var e=function(t,e){if("object"!=$s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$s(e)?e:String(e)}var Qs=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"info",value:function(t){return new Zs({html:t,classes:"blue lighten-1"})}},{key:"error",value:function(t){return new Zs({html:t,classes:"red lighten-1"})}},{key:"success",value:function(t){return new Zs({html:t,classes:"green lighten-1"})}}])&&Gs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Js=new Qs})(),r})()));