2FAuth/public/js/app.js
2020-03-23 23:04:39 +01:00

1 line
142 KiB
JavaScript
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){n("bUC5"),t.exports=n("pyCd")},"7O5W":function(t,e,n){"use strict";(function(t,r){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})(t)}function o(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,r.key,r)}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"b",(function(){return St})),n.d(e,"a",(function(){return T})),n.d(e,"e",(function(){return Et})),n.d(e,"c",(function(){return Ct})),n.d(e,"d",(function(){return Lt}));var u=function(){},f={},d={},p={mark:u,measure:u};try{"undefined"!=typeof window&&(f=window),"undefined"!=typeof document&&(d=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(p=performance)}catch(t){}var m=(f.navigator||{}).userAgent,h=void 0===m?"":m,v=f,g=d,b=p,y=(v.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),w=~h.indexOf("MSIE")||~h.indexOf("Trident/"),_=(function(){try{}catch(t){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),A=_.concat([11,12,13,14,15,16,17,18,19,20]),x={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},k=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",x.GROUP,x.SWAP_OPACITY,x.PRIMARY,x.SECONDARY].concat(_.map((function(t){return"".concat(t,"x")}))).concat(A.map((function(t){return"w-".concat(t)}))),v.FontAwesomeConfig||{});if(g&&"function"==typeof g.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(t){var e=c(t,2),n=e[0],r=e[1],a=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=g.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n));null!=a&&(k[r]=a)}))}var C=s({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},k);C.autoReplaceSvg||(C.observeMutations=!1);var T=s({},C);v.FontAwesomeConfig=T;var L=v||{};L.___FONT_AWESOME___||(L.___FONT_AWESOME___={}),L.___FONT_AWESOME___.styles||(L.___FONT_AWESOME___.styles={}),L.___FONT_AWESOME___.hooks||(L.___FONT_AWESOME___.hooks={}),L.___FONT_AWESOME___.shims||(L.___FONT_AWESOME___.shims=[]);var S=L.___FONT_AWESOME___,E=[];y&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",(function t(){g.removeEventListener("DOMContentLoaded",t),1,E.map((function(t){return t()}))})));var O,I=function(){},M=void 0!==t&&void 0!==t.process&&"function"==typeof t.process.emit,N=void 0===r?setTimeout:r,P=[];function j(){for(var t=0;t<P.length;t++)P[t][0](P[t][1]);P=[],O=!1}function $(t,e){P.push([t,e]),O||(O=!0,N(j,0))}function q(t){var e=t.owner,n=e._state,r=e._data,a=t[n],o=t.then;if("function"==typeof a){n="fulfilled";try{r=a(r)}catch(t){F(o,t)}}z(o,r)||("fulfilled"===n&&D(o,r),"rejected"===n&&F(o,r))}function z(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===a(e))){var r=e.then;if("function"==typeof r)return r.call(e,(function(r){n||(n=!0,e===r?B(t,r):D(t,r))}),(function(e){n||(n=!0,F(t,e))})),!0}}catch(e){return n||F(t,e),!0}return!1}function D(t,e){t!==e&&z(t,e)||B(t,e)}function B(t,e){"pending"===t._state&&(t._state="settled",t._data=e,$(Q,t))}function F(t,e){"pending"===t._state&&(t._state="settled",t._data=e,$(H,t))}function R(t){t._then=t._then.forEach(q)}function Q(t){t._state="fulfilled",R(t)}function H(e){e._state="rejected",R(e),!e._handled&&M&&t.process.emit("unhandledRejection",e._data,e)}function U(e){t.process.emit("rejectionHandled",e)}function V(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof V==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){F(e,t)}try{t((function(t){D(e,t)}),n)}catch(t){n(t)}}(t,this)}V.prototype={constructor:V,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(I),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,"rejected"===this._state&&M&&$(U,this)),"fulfilled"===this._state||"rejected"===this._state?$(q,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},V.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new V((function(e,n){var r=[],a=0;function o(t){return a++,function(n){r[t]=n,--a||e(r)}}for(var i,s=0;s<t.length;s++)(i=t[s])&&"function"==typeof i.then?i.then(o(s),n):r[s]=i;a||e(r)}))},V.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new V((function(e,n){for(var r,a=0;a<t.length;a++)(r=t[a])&&"function"==typeof r.then?r.then(e,n):e(r)}))},V.resolve=function(t){return t&&"object"===a(t)&&t.constructor===V?t:new V((function(e){e(t)}))},V.reject=function(t){return new V((function(e,n){n(t)}))};var Y=16,X={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function W(t){if(t&&y){var e=g.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=g.head.childNodes,r=null,a=n.length-1;a>-1;a--){var o=n[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=o)}return g.head.insertBefore(e,r),t}}function G(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function J(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Z(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function K(t){return t.size!==X.size||t.x!==X.x||t.y!==X.y||t.rotate!==X.rotate||t.flipX||t.flipY}function tt(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,a={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),i="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(o," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var et={x:0,y:0,width:"100%",height:"100%"};function nt(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function rt(t){var e=t.icons,n=e.main,r=e.mask,a=t.prefix,o=t.iconName,i=t.transform,c=t.symbol,l=t.title,u=t.extra,f=t.watchable,d=void 0!==f&&f,p=r.found?r:n,m=p.width,h=p.height,v="fa-w-".concat(Math.ceil(m/h*16)),g=[T.replacementClass,o?"".concat(T.familyPrefix,"-").concat(o):"",v].filter((function(t){return-1===u.classes.indexOf(t)})).concat(u.classes).join(" "),b={children:[],attributes:s({},u.attributes,{"data-prefix":a,"data-icon":o,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)})};d&&(b.attributes["data-fa-i2svg"]=""),l&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(G())},children:[l]});var y=s({},b,{prefix:a,iconName:o,main:n,mask:r,transform:i,symbol:c,styles:u.styles}),w=r.found&&n.found?function(t){var e,n=t.children,r=t.attributes,a=t.main,o=t.mask,i=t.transform,c=a.width,l=a.icon,u=o.width,f=o.icon,d=tt({transform:i,containerWidth:u,iconWidth:c}),p={tag:"rect",attributes:s({},et,{fill:"white"})},m=l.children?{children:l.children.map(nt)}:{},h={tag:"g",attributes:s({},d.inner),children:[nt(s({tag:l.tag,attributes:s({},l.attributes,d.path)},m))]},v={tag:"g",attributes:s({},d.outer),children:[h]},g="mask-".concat(G()),b="clip-".concat(G()),y={tag:"mask",attributes:s({},et,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=f,"g"===e.tag?e.children:[e])},y]};return n.push(w,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(g,")")},et)}),{children:n,attributes:r}}(y):function(t){var e=t.children,n=t.attributes,r=t.main,a=t.transform,o=Z(t.styles);if(o.length>0&&(n.style=o),K(a)){var i=tt({transform:a,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:s({},i.outer),children:[{tag:"g",attributes:s({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,i.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(y),_=w.children,A=w.attributes;return y.children=_,y.attributes=A,c?function(t){var e=t.prefix,n=t.iconName,r=t.children,a=t.attributes,o=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},a,{id:!0===o?"".concat(e,"-").concat(T.familyPrefix,"-").concat(n):o}),children:r}]}]}(y):function(t){var e=t.children,n=t.main,r=t.mask,a=t.attributes,o=t.styles,i=t.transform;if(K(i)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};a.style=Z(s({},o,{"transform-origin":"".concat(c.x+i.x/16,"em ").concat(c.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:e}]}(y)}function at(t){var e=t.content,n=t.width,r=t.height,a=t.transform,o=t.title,i=t.extra,c=t.watchable,l=void 0!==c&&c,u=s({},i.attributes,o?{title:o}:{},{class:i.classes.join(" ")});l&&(u["data-fa-i2svg"]="");var f=s({},i.styles);K(a)&&(f.transform=function(t){var e=t.transform,n=t.width,r=void 0===n?16:n,a=t.height,o=void 0===a?16:a,i=t.startCentered,s=void 0!==i&&i,c="";return c+=s&&w?"translate(".concat(e.x/Y-r/2,"em, ").concat(e.y/Y-o/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/Y,"em), calc(-50% + ").concat(e.y/Y,"em)) "):"translate(".concat(e.x/Y,"em, ").concat(e.y/Y,"em) "),c+="scale(".concat(e.size/Y*(e.flipX?-1:1),", ").concat(e.size/Y*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=Z(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[e]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}var ot=function(){},it=(T.measurePerformance&&b&&b.mark&&b.measure,function(t,e,n,r){var a,o,i,s=Object.keys(t),c=s.length,l=void 0!==r?function(t,e){return function(n,r,a,o){return t.call(e,n,r,a,o)}}(e,r):e;for(void 0===n?(a=1,i=t[s[0]]):(a=0,i=n);a<c;a++)i=l(i,t[o=s[a]],o,t);return i});function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,a=void 0!==r&&r,o=Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{});"function"!=typeof S.hooks.addPack||a?S.styles[t]=s({},S.styles[t]||{},o):S.hooks.addPack(t,o),"fas"===t&&st("fa",e)}var ct=S.styles,lt=S.shims,ut=function(){var t=function(t){return it(ct,(function(e,n,r){return e[r]=it(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in ct;it(lt,(function(t,n){var r=n[0],a=n[1],o=n[2];return"far"!==a||e||(a="fas"),t[r]={prefix:a,iconName:o},t}),{})};ut();S.styles;function ft(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function dt(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,a=t.children,o=void 0===a?[]:a;return"string"==typeof t?J(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(J(t[n]),'" ')}),"").trim()}(r),">").concat(o.map(dt).join(""),"</").concat(e,">")}var pt=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],a=n.slice(1).join("-");if(r&&"h"===a)return t.flipX=!0,t;if(r&&"v"===a)return t.flipY=!0,t;if(a=parseFloat(a),isNaN(a))return t;switch(r){case"grow":t.size=t.size+a;break;case"shrink":t.size=t.size-a;break;case"left":t.x=t.x-a;break;case"right":t.x=t.x+a;break;case"up":t.y=t.y-a;break;case"down":t.y=t.y+a;break;case"rotate":t.rotate=t.rotate+a}return t}),e):e};function mt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}mt.prototype=Object.create(Error.prototype),mt.prototype.constructor=mt;var ht={fill:"currentColor"},vt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},gt={tag:"path",attributes:s({},ht,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},bt=s({},vt,{attributeName:"opacity"});s({},ht,{cx:"256",cy:"364",r:"28"}),s({},vt,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},bt,{values:"1;0;1;1;0;1;"}),s({},ht,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},bt,{values:"1;0;0;0;0;1;"}),s({},ht,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},bt,{values:"0;0;1;1;0;0;"}),S.styles;function yt(t){var e=t[0],n=t[1],r=c(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.GROUP)},children:[{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(x.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}S.styles;function wt(){var t="svg-inline--fa",e=T.familyPrefix,n=T.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==e||n!==t){var a=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(i,".".concat(n))}return r}function _t(){T.autoAddCss&&!Tt&&(W(wt()),Tt=!0)}function At(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return dt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(y){var e=g.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function xt(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return ft(Ct.definitions,n,r)||ft(S.styles,n,r)}var kt,Ct=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n,r;return e=t,(n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(e){t.definitions[e]=s({},t.definitions[e]||{},a[e]),st(e,a[e]),ut()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map((function(e){var r=n[e],a=r.prefix,o=r.iconName,i=r.icon;t[a]||(t[a]={}),t[a][o]=i})),t}}])&&o(e.prototype,n),r&&o(e,r),t}()),Tt=!1,Lt={transform:function(t){return pt(t)}},St=(kt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,a=e.symbol,o=void 0!==a&&a,i=e.mask,c=void 0===i?null:i,l=e.title,u=void 0===l?null:l,f=e.classes,d=void 0===f?[]:f,p=e.attributes,m=void 0===p?{}:p,h=e.styles,v=void 0===h?{}:h;if(t){var g=t.prefix,b=t.iconName,y=t.icon;return At(s({type:"icon"},t),(function(){return _t(),T.autoA11y&&(u?m["aria-labelledby"]="".concat(T.replacementClass,"-title-").concat(G()):(m["aria-hidden"]="true",m.focusable="false")),rt({icons:{main:yt(y),mask:c?yt(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:b,transform:s({},X,r),symbol:o,title:u,extra:{attributes:m,styles:v,classes:d}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:xt(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:xt(r||{})),kt(n,s({},e,{mask:r}))}),Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,a=e.title,o=void 0===a?null:a,i=e.classes,c=void 0===i?[]:i,u=e.attributes,f=void 0===u?{}:u,d=e.styles,p=void 0===d?{}:d;return At({type:"text",content:t},(function(){return _t(),at({content:t,transform:s({},X,r),title:o,extra:{attributes:f,styles:p,classes:["".concat(T.familyPrefix,"-layers-text")].concat(l(c))}})}))}}).call(this,n("yLpj"),n("URgk").setImmediate)},"8oxB":function(t,e){var n,r,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++f<e;)c&&c[f].run();f=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function h(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new m(t,e)),1!==l.length||u||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},"95I4":function(t,e,n){"use strict";n.r(e),e.default={en:{auth:{sign_out:"Sign out",sign_in:"Sign in",register:"Register",hello:"Hi {username} !",throttle:"Too many login attempts. Please try again in {seconds} seconds.",already_authenticated:"Already authenticated",confirm:{logout:"Are you sure you want to log out?"},forms:{name:"Name",login:"Login",email:"Email",password:"Password",confirm_password:"Confirm password",confirm_new_password:"Confirm new password",dont_have_account_yet:"Don't have your account yet?",already_register:"Already registered?",password_do_not_match:"Password do not match",forgot_your_password:"Forgot your password?",request_password_reset:"Request a password reset",reset_password:"Reset password",new_password:"New password",current_password:{label:"Current password",help:"Fill in your current password to confirm that it's you"},change_password:"Change password",send_password_reset_link:"Send password reset link",change_your_password:"Change your password",password_successfully_changed:"Password successfully changed ",edit_account:"Edit account",profile_saved:"Profile successfully updated!",welcome_to_demo_app_use_those_credentials:"Welcome to the 2FAuth demo.<br><br>You can connect using the email address <strong>demo@2fauth.app</strong> and the password <strong>demo</demo>"}},commons:{cancel:"Cancel",update:"Update",copy_to_clipboard:"Copy to clipboard",profile:"Profile",edit:"Edit",delete:"Delete",save:"Save",close:"Close",demo_do_not_post_sensitive_data:"This is a demo app, do not post any sensitive data"},errors:{resource_not_found:"Resource not found",error_occured:"An error occured:",already_one_user_registered:"There is already a registered user.",cannot_register_more_user:"You cannot register more than one user.",refresh:"refresh",please:"Please ",response:{no_valid_otp:"No valid OTP resource in this QR code"},something_wrong_with_server:"Something is wrong with your server",Unable_to_decrypt_uri:"Unable to decrypt uri",wrong_current_password:"Wrong current password, nothing has changed"},languages:{en:"English",fr:"French"},pagination:{previous:"&laquo; Previous",next:"Next &raquo;"},passwords:{password:"Passwords must be at least eight characters and match the confirmation.",reset:"Your password has been reset!",sent:"We have e-mailed your password reset link!",token:"This password reset token is invalid.",user:"We can't find a user with that e-mail address."},settings:{settings:"Settings",account:"Account",password:"Password",options:"Options",confirm:[],forms:{edit_settings:"Edit settings",setting_saved:"Settings saved",language:{label:"Language",help:"Change the language used to translate the app interface."},show_token_as_dot:{label:"Show generated tokens as dot",help:"Replace generated token caracters with *** to ensure confidentiality. Do not affect the copy/paste feature."},close_token_on_copy:{label:"Close token after copy",help:"Automatically close the popup showing the generated token after it has been copied"}}},twofaccounts:{service:"Service",account:"Account",icon:"Icon",new:"New",no_account_here:"No 2FA here!",add_first_account:"Add your first account",use_full_form:"Use the full form",add_one:"Add one",manage:"Manage",done:"Done",forms:{service:{placeholder:"example.com"},account:{placeholder:"John DOE"},new_account:"New account",edit_account:"Edit account",otp_uri:"OTP Uri",hotp_counter:"HOTP Counter",use_qrcode:{val:"Use a qrcode",title:"Use a QR code to fill the form magically"},unlock:{val:"Unlock",title:"Unlock it (at your own risk)"},lock:{val:"Lock",title:"Lock it"},choose_image:"Choose an image…",create:"Create",save:"Save",test:"Test"},confirm:{delete:"Are you sure you want to delete this account?",cancel:"The account will be lost. Are you sure?"}},validation:{accepted:"The {attribute} must be accepted.",active_url:"The {attribute} is not a valid URL.",after:"The {attribute} must be a date after {date}.",after_or_equal:"The {attribute} must be a date after or equal to {date}.",alpha:"The {attribute} may only contain letters.",alpha_dash:"The {attribute} may only contain letters, numbers, dashes and underscores.",alpha_num:"The {attribute} may only contain letters and numbers.",array:"The {attribute} must be an array.",before:"The {attribute} must be a date before {date}.",before_or_equal:"The {attribute} must be a date before or equal to {date}.",between:{numeric:"The {attribute} must be between {min} and {max}.",file:"The {attribute} must be between {min} and {max} kilobytes.",string:"The {attribute} must be between {min} and {max} characters.",array:"The {attribute} must have between {min} and {max} items."},boolean:"The {attribute} field must be true or false.",confirmed:"The {attribute} confirmation does not match.",date:"The {attribute} is not a valid date.",date_equals:"The {attribute} must be a date equal to {date}.",date_format:"The {attribute} does not match the format {format}.",different:"The {attribute} and {other} must be different.",digits:"The {attribute} must be {digits} digits.",digits_between:"The {attribute} must be between {min} and {max} digits.",dimensions:"The {attribute} has invalid image dimensions.",distinct:"The {attribute} field has a duplicate value.",email:"The {attribute} must be a valid email address.",ends_with:"The {attribute} must end with one of the following: {values}",exists:"The selected {attribute} is invalid.",file:"The {attribute} must be a file.",filled:"The {attribute} field must have a value.",gt:{numeric:"The {attribute} must be greater than {value}.",file:"The {attribute} must be greater than {value} kilobytes.",string:"The {attribute} must be greater than {value} characters.",array:"The {attribute} must have more than {value} items."},gte:{numeric:"The {attribute} must be greater than or equal {value}.",file:"The {attribute} must be greater than or equal {value} kilobytes.",string:"The {attribute} must be greater than or equal {value} characters.",array:"The {attribute} must have {value} items or more."},image:"The {attribute} must be an image.",in:"The selected {attribute} is invalid.",in_array:"The {attribute} field does not exist in {other}.",integer:"The {attribute} must be an integer.",ip:"The {attribute} must be a valid IP address.",ipv4:"The {attribute} must be a valid IPv4 address.",ipv6:"The {attribute} must be a valid IPv6 address.",json:"The {attribute} must be a valid JSON string.",lt:{numeric:"The {attribute} must be less than {value}.",file:"The {attribute} must be less than {value} kilobytes.",string:"The {attribute} must be less than {value} characters.",array:"The {attribute} must have less than {value} items."},lte:{numeric:"The {attribute} must be less than or equal {value}.",file:"The {attribute} must be less than or equal {value} kilobytes.",string:"The {attribute} must be less than or equal {value} characters.",array:"The {attribute} must not have more than {value} items."},max:{numeric:"The {attribute} may not be greater than {max}.",file:"The {attribute} may not be greater than {max} kilobytes.",string:"The {attribute} may not be greater than {max} characters.",array:"The {attribute} may not have more than {max} items."},mimes:"The {attribute} must be a file of type: {values}.",mimetypes:"The {attribute} must be a file of type: {values}.",min:{numeric:"The {attribute} must be at least {min}.",file:"The {attribute} must be at least {min} kilobytes.",string:"The {attribute} must be at least {min} characters.",array:"The {attribute} must have at least {min} items."},not_in:"The selected {attribute} is invalid.",not_regex:"The {attribute} format is invalid.",numeric:"The {attribute} must be a number.",present:"The {attribute} field must be present.",regex:"The {attribute} format is invalid.",required:"The {attribute} field is required.",required_if:"The {attribute} field is required when {other} is {value}.",required_unless:"The {attribute} field is required unless {other} is in {values}.",required_with:"The {attribute} field is required when {values} is present.",required_with_all:"The {attribute} field is required when {values} are present.",required_without:"The {attribute} field is required when {values} is not present.",required_without_all:"The {attribute} field is required when none of {values} are present.",same:"The {attribute} and {other} must match.",size:{numeric:"The {attribute} must be {size}.",file:"The {attribute} must be {size} kilobytes.",string:"The {attribute} must be {size} characters.",array:"The {attribute} must contain {size} items."},starts_with:"The {attribute} must start with one of the following: {values}",string:"The {attribute} must be a string.",timezone:"The {attribute} must be a valid zone.",unique:"The {attribute} has already been taken.",uploaded:"The {attribute} failed to upload.",url:"The {attribute} format is invalid.",uuid:"The {attribute} must be a valid UUID.",custom:{"attribute-name":{"rule-name":"custom-message"},icon:{image:"Supported format are jpeg, png, bmp, gif, svg, or webp"},qrcode:{image:"Supported format are jpeg, png, bmp, gif, svg, or webp"},uri:{starts_with:"Only valid OTP uri are supported"},email:{exists:"No account found using this email"}},attributes:[]}},fr:{auth:{sign_out:"Déconnexion",sign_in:"Se connecter",register:"Créer un compte",hello:"Hi {username} !",throttle:"Trop de tentatives de connexion. Veuillez réessayer dans {seconds} secondes.",already_authenticated:"Déjà authentifié",confirm:{logout:"Etes-vous sûrs de vouloir vous déconnecter ?"},forms:{name:"Nom",login:"Connexion",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",confirm_new_password:"Confirmez le nouveau mot de passe",dont_have_account_yet:"Pas encore de compte ?",already_register:"Déjà enregistré ?",password_do_not_match:"Le mot de passe ne correspond pas",forgot_your_password:"Mot de passe oublié ?",request_password_reset:"Réinitialiser le mot de passe",reset_password:"Mot de passe oublié",new_password:"Nouveau mot de passe",current_password:{label:"Mot de passe actuel",help:"Indiquez votre mot de passe actuel pour confirmer qu'il s'agit bien de vous"},change_password:"Modifier le mot de passe",send_password_reset_link:"Envoyer",change_your_password:"Modifier votre mot de passe",password_successfully_changed:"Mot de passe modifié avec succès",edit_account:"Mis à jour du profil",profile_saved:"Profil mis à jour avec succès !",welcome_to_demo_app_use_those_credentials:"bienvenue sur la démo de 2FAuth.<br><br>Vous pouvez vous connecter en utilisant l'adresse email <strong>demo@2fauth.app</strong> et le mot de passe <strong>demo</demo>"}},commons:{cancel:"Annuler",update:"Mettre à jour",copy_to_clipboard:"Copier",profile:"Profil",edit:"Modifier",delete:"Supprimer",save:"Enregistrer",close:"Fermer",demo_do_not_post_sensitive_data:"Site de démonstration, ne postez aucune donnée sensible"},errors:{resource_not_found:"Ressource introuvable",error_occured:"Une erreur est survenue :",already_one_user_registered:"Un compte utilisateur existe déjà.",cannot_register_more_user:"Vous ne pouvez pas enregistrer plus d'un utilisateur.",refresh:"Actualiser",please:"",response:{no_valid_otp:"Aucune donnée OTP valide dans ce QR code"},something_wrong_with_server:"Il y a un problème avec votre serveur",Unable_to_decrypt_uri:"uri impossible à décoder",wrong_current_password:"Mot de passe actuel érroné, rien n\\a été modifié"},languages:{en:"Anglais",fr:"Français"},pagination:{previous:"&laquo; Précédent",next:"Suivant &raquo;"},passwords:{password:"Les mots de passe doivent contenir au moins huit caractères et être identiques.",reset:"Votre mot de passe a été réinitialisé !",sent:"Le lien pour réinitialiser votre mot de passe vient d'être envoyé !",token:"Ce jeton de réinitialisation n'est pas valide.",user:"Cette adresse email n'est pas celle de votre compte."},settings:{settings:"Réglages",account:"Compte",password:"Mot de passe",options:"Options",confirm:[],forms:{edit_settings:"Modifier les réglages",setting_saved:"Réglages sauvegardés",language:{label:"Langue",help:"Traduit l'application dans la langue choisie"},show_token_as_dot:{label:"Rendre illisibles les codes générés",help:"Remplace les caractères des codes générés par des ●●● pour garantir leur confidentialité. N'affecte pas la fonction de copier/coller qui reste utilisable."},close_token_on_copy:{label:"Ne plus afficher les codes copiés",help:"Ferme automatiquement le popup affichant le code généré dès que ce dernier a été copié."}}},twofaccounts:{service:"Service",account:"Compte",icon:"Icône",new:"Nouveau",no_account_here:"Aucun compte 2FA !",add_first_account:"Ajouter votre premier compte",use_full_form:"Utiliser le formulaire détaillé",add_one:"Add one",manage:"Gérer",done:"Terminé",forms:{service:{placeholder:"example.com"},account:{placeholder:"Marc Dupont"},new_account:"Nouveau compte",edit_account:"Modifier le compte",otp_uri:"OTP Uri",hotp_counter:"Compteur HOTP",use_qrcode:{val:"Utiliser un QR code",title:"Utiliser un QR code pour renseigner le formulaire d'un seul coup d'un seul"},unlock:{val:"Déverouiller",title:"Déverouiller le champ (à vos risques et périls)"},lock:{val:"Vérouiller",title:"Vérouiller le champ"},choose_image:"Choisir une image…",create:"Créer",save:"Enregistrer",test:"Tester"},confirm:{delete:"Etes-vous sûrs de vouloir supprimer le compte ?",cancel:"Les données seront perdues, êtes-vous sûrs ?"}},validation:{accepted:"Le champ {attribute} doit être accepté.",active_url:"Le champ {attribute} n'est pas une URL valide.",after:"Le champ {attribute} doit être une date postérieure au {date}.",after_or_equal:"Le champ {attribute} doit être une date postérieure ou égale au {date}.",alpha:"Le champ {attribute} doit contenir uniquement des lettres.",alpha_dash:"Le champ {attribute} doit contenir uniquement des lettres, des chiffres et des tirets.",alpha_num:"Le champ {attribute} doit contenir uniquement des chiffres et des lettres.",array:"Le champ {attribute} doit être un tableau.",before:"Le champ {attribute} doit être une date antérieure au {date}.",before_or_equal:"Le champ {attribute} doit être une date antérieure ou égale au {date}.",between:{numeric:"La valeur de {attribute} doit être comprise entre {min} et {max}.",file:"La taille du fichier de {attribute} doit être comprise entre {min} et {max} kilo-octets.",string:"Le texte {attribute} doit contenir entre {min} et {max} caractères.",array:"Le tableau {attribute} doit contenir entre {min} et {max} éléments."},boolean:"Le champ {attribute} doit être vrai ou faux.",confirmed:"Le champ de confirmation {attribute} ne correspond pas.",date:"Le champ {attribute} n'est pas une date valide.",date_equals:"Le champ {attribute} doit être une date égale à {date}.",date_format:"Le champ {attribute} ne correspond pas au format {format}.",different:"Les champs {attribute} et {other} doivent être différents.",digits:"Le champ {attribute} doit contenir {digits} chiffres.",digits_between:"Le champ {attribute} doit contenir entre {min} et {max} chiffres.",dimensions:"La taille de l'image {attribute} n'est pas conforme.",distinct:"Le champ {attribute} a une valeur en double.",email:"Le champ {attribute} doit être une adresse email valide.",ends_with:"Le champ {attribute} doit se terminer par une des valeurs suivantes : {values}",exists:"Le champ {attribute} sélectionné est invalide.",file:"Le champ {attribute} doit être un fichier.",filled:"Le champ {attribute} doit avoir une valeur.",gt:{numeric:"La valeur de {attribute} doit être supérieure à {value}.",file:"La taille du fichier de {attribute} doit être supérieure à {value} kilo-octets.",string:"Le texte {attribute} doit contenir plus de {value} caractères.",array:"Le tableau {attribute} doit contenir plus de {value} éléments."},gte:{numeric:"La valeur de {attribute} doit être supérieure ou égale à {value}.",file:"La taille du fichier de {attribute} doit être supérieure ou égale à {value} kilo-octets.",string:"Le texte {attribute} doit contenir au moins {value} caractères.",array:"Le tableau {attribute} doit contenir au moins {value} éléments."},image:"Le champ {attribute} doit être une image.",in:"Le champ {attribute} est invalide.",in_array:"Le champ {attribute} n'existe pas dans {other}.",integer:"Le champ {attribute} doit être un entier.",ip:"Le champ {attribute} doit être une adresse IP valide.",ipv4:"Le champ {attribute} doit être une adresse IPv4 valide.",ipv6:"Le champ {attribute} doit être une adresse IPv6 valide.",json:"Le champ {attribute} doit être un document JSON valide.",lt:{numeric:"La valeur de {attribute} doit être inférieure à {value}.",file:"La taille du fichier de {attribute} doit être inférieure à {value} kilo-octets.",string:"Le texte {attribute} doit contenir moins de {value} caractères.",array:"Le tableau {attribute} doit contenir moins de {value} éléments."},lte:{numeric:"La valeur de {attribute} doit être inférieure ou égale à {value}.",file:"La taille du fichier de {attribute} doit être inférieure ou égale à {value} kilo-octets.",string:"Le texte {attribute} doit contenir au plus {value} caractères.",array:"Le tableau {attribute} doit contenir au plus {value} éléments."},max:{numeric:"La valeur de {attribute} ne peut être supérieure à {max}.",file:"La taille du fichier de {attribute} ne peut pas dépasser {max} kilo-octets.",string:"Le texte de {attribute} ne peut contenir plus de {max} caractères.",array:"Le tableau {attribute} ne peut contenir plus de {max} éléments."},mimes:"Le champ {attribute} doit être un fichier de type : {values}.",mimetypes:"Le champ {attribute} doit être un fichier de type : {values}.",min:{numeric:"La valeur de {attribute} doit être supérieure ou égale à {min}.",file:"La taille du fichier de {attribute} doit être supérieure à {min} kilo-octets.",string:"Le texte {attribute} doit contenir au moins {min} caractères.",array:"Le tableau {attribute} doit contenir au moins {min} éléments."},not_in:"Le champ {attribute} sélectionné n'est pas valide.",not_regex:"Le format du champ {attribute} n'est pas valide.",numeric:"Le champ {attribute} doit contenir un nombre.",password:"Le mot de passe est incorrect",present:"Le champ {attribute} doit être présent.",regex:"Le format du champ {attribute} est invalide.",required:"Le champ {attribute} est obligatoire.",required_if:"Le champ {attribute} est obligatoire quand la valeur de {other} est {value}.",required_unless:"Le champ {attribute} est obligatoire sauf si {other} est {values}.",required_with:"Le champ {attribute} est obligatoire quand {values} est présent.",required_with_all:"Le champ {attribute} est obligatoire quand {values} sont présents.",required_without:"Le champ {attribute} est obligatoire quand {values} n'est pas présent.",required_without_all:"Le champ {attribute} est requis quand aucun de {values} n'est présent.",same:"Les champs {attribute} et {other} doivent être identiques.",size:{numeric:"La valeur de {attribute} doit être {size}.",file:"La taille du fichier de {attribute} doit être de {size} kilo-octets.",string:"Le texte de {attribute} doit contenir {size} caractères.",array:"Le tableau {attribute} doit contenir {size} éléments."},starts_with:"Le champ {attribute} doit commencer avec une des valeurs suivantes : {values}",string:"Le champ {attribute} doit être une chaîne de caractères.",timezone:"Le champ {attribute} doit être un fuseau horaire valide.",unique:"La valeur du champ {attribute} est déjà utilisée.",uploaded:"Le fichier du champ {attribute} n'a pu être téléversé.",url:"Le format de l'URL de {attribute} n'est pas valide.",uuid:"Le champ {attribute} doit être un UUID valide",custom:{"attribute-name":{"rule-name":"custom-message"},icon:{image:"Les formats acceptés sont jpeg, png, bmp, gif, svg, or webp"},qrcode:{image:"Les formats acceptés sont jpeg, png, bmp, gif, svg, or webp"},uri:{starts_with:"La valeur n'est pas une uri OTP valide"},email:{exists:"Aucun compte utilisateur n'utilise cette email"}},attributes:[]}}}},NnI0:function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,n){var r,a;n(10),r=n(1);var o=n(8);a=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some((function(t){return"default"!==t&&"__esModule"!==t}))&&console.error("named exports are not supported in *.vue files."),a=r=r.default),"function"==typeof a&&(a=a.options),a.__file="/Users/linbin/Desktop/workspace/vue-pull-refresh/src/vue-pull-refresh.vue",a.render=o.render,a.staticRenderFns=o.staticRenderFns,a.functional&&console.error("[vue-loader] vue-pull-refresh.vue: functional components are not supported and should be defined in plain js files using render functions."),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["数据异常","下拉刷新数据","松开刷新数据","数据刷新中..."];e.default={props:{onRefresh:{type:Function},config:{type:Object,default:function(){return{}}}},data:function(){return{pullDown:{status:0,height:0,msg:""},canPull:!1}},computed:{label:function(){return-1===this.pullDown.status?this.pullDown.msg:this.customLabels[this.pullDown.status+1]},customLabels:function(){return[void 0!==this.config.errorLabel?this.config.errorLabel:r[0],void 0!==this.config.startLabel?this.config.startLabel:r[1],void 0!==this.config.readyLabel?this.config.readyLabel:r[2],void 0!==this.config.loadingLabel?this.config.loadingLabel:r[3]]},iconClass:function(){return 2===this.pullDown.status?"pull-down-refresh":-1===this.pullDown.status?"pull-down-error":""},pullDownContentStyle:function(){return{bottom:(this.config.pullDownHeight-40)/2+"px"}}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.$el,n=e.querySelector(".pull-down-header"),r=n.querySelector(".pull-down-content--icon");t.config.pullDownHeight=t.config.pullDownHeight||60;var a=function(t,e){e&&(n.style.transition="height .2s ease"),t.height=0,t.status=0},o={start:0,distance:0},i=!1;try{var s=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,s)}catch(t){}e.addEventListener("touchstart",(function(n){0===e.scrollTop?t.canPull=!0:t.canPull=!1,o.start=n.touches.item(0).pageY}),!!i&&{passive:!0}),e.addEventListener("touchmove",(function(n){if(t.canPull){var a=n.touches.item(0).pageY-o.start;(a=a>180?180:a)>0&&(e.style.overflow="hidden"),o.distance=a,t.pullDown.height=a,a>t.config.pullDownHeight?(t.pullDown.status=1,r.style.transform="rotate(180deg)"):(t.pullDown.status=0,r.style.transform="rotate("+a/t.config.pullDownHeight*180+"deg)")}}),!!i&&{passive:!0}),e.addEventListener("touchend",(function(i){if(t.canPull=!1,e.style.overflowY="auto",n.style.transition="height .2s ease",r.style.transform="",o.distance-e.scrollTop>t.config.pullDownHeight)if(e.scrollTop=0,t.pullDown.height=t.config.pullDownHeight,t.pullDown.status=2,t.onRefresh&&"function"==typeof t.onRefresh){var s=t.onRefresh();s&&s.then&&"function"==typeof s.then?s.then((function(e){a(t.pullDown,!0)}),(function(e){"string"!=typeof e&&(e=!1),t.pullDown.msg=e||t.customLabels[0],t.pullDown.status=-1,setTimeout((function(){a(t.pullDown,!0)}),1e3)})):a(t.pullDown)}else a(t.pullDown),console.warn("please use :on-refresh to pass onRefresh callback");else a(t.pullDown);o.distance=0,o.start=0})),n.addEventListener("transitionend",(function(){n.style.transition=""})),n.addEventListener("webkitTransitionEnd",(function(){n.style.transition=""}))}))}}},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));t.exports=r.default},function(t,e,n){(t.exports=n(4)()).push([t.i,'\n.pull-down-container {\n height: 100%;\n max-height: 100%;\n overflow-y: auto;\n}\n.pull-down-header {\n width: 100%;\n height: 0px;\n overflow: hidden;\n position: relative;\n background-color: #2c3133;\n}\n.pull-down-content {\n position: absolute;\n max-width: 90%;\n bottom: 10px;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n height: 40px;\n color: #d5d5d5;\n text-align: center;\n border-left: 20px solid transparent;\n font-family: "noto-thin", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 14px;\n}\n.pull-down-content--icon {\n float: left;\n height: 20px;\n width: 20px;\n margin-top: 10px;\n margin-left: -20px;\n background: url('+n(5)+") no-repeat center center;\n background-size: 20px 20px;\n}\n.pull-down-content--icon.pull-down-refresh {\n background: url("+n(7)+") no-repeat center center;\n background-size: 20px 20px;\n -webkit-animation: rotate 2s infinite;\n animation: rotate 2s infinite;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n.pull-down-content--icon.pull-down-error {\n background: url("+n(6)+") no-repeat center center;\n background-size: 20px 20px;\n}\n.pull-down-content--label {\n float: left;\n height: 20px;\n line-height: 20px;\n margin-left: 10px;\n margin-top: 10px;\n}\n@-webkit-keyframes rotate {\nfrom {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\nto {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@keyframes rotate {\nfrom {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\nto {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfgCxECIiTd0MZWAAAC9UlEQVRo3u1YTWgTQRh908RAxYI/h1I9CIppslOK1lKIxIKClV568CBEoe2tVALSo9C7x9SLh94jxYOCl9YKerA1kNYqwm5iitIeqrUHq6RYSJOOF9HETHbnm12SHvLtbb5v3nvMzrz5YdCI7MlSAgM4Wtb0A/O+idAXOhajd1k+dHhZdEugPvzq7d2jorXQBbT2y+gB0d3aT0fTEIATGhkvBfgXsStN7PoX6yKgc4ONSSTssrHODTqaxiQEgI+nSlFxrAxm27egQ38AQnMEMsH9KygbAWy3vArn6ibAuiMewP9fY5HdNR7WRYB1WuQQkCQKLGisU9F0fCAipQcCiNDBNASwr/SMpwJCC0hLE+nQQn1GoIRBTGMNP8u+NUxjkJXoaM3Q8gHzOO5joNKIMI97/HtdBAif9QZ9kkTauESfBRqTMBuV0gN92SgdTUOA6KBnPBWAFArS9gJSdRFgrLMJFKuai2yCvhMcgO244aG1DDNDol0C9S38jL4M/dQOQGZIPJEKQ+YGnlLRdJZhOz3jqQBvoymgKaApoCmg4QJsNyPzJq5Kmg1crtHhNSxJ60v+WEuAYFZBZ7OqiqIRYKJW0uYXMIEZD+iBmdr0Dr8g21Z6h7Mu6T/5LoTytdO2kzCUFzGQnx4rYk/E7OgdV0HXEpt0w88mu5YcKpwgBLOe45om/wvjut3/VxgBgAkMY0uLfgvDTvRKRsQ3MQJHoKoQGOGbzmVKTsjnkCALSPA5lTLFY7kZQAo9BPoVRHhBpVD5XmCdEys4oli8w3qMVbVS5c3IWBVx1VoRV6Un3ozMJG4plD3it9UxSQKybaX3OONQ9Nl33t77KoN0Hgjl4WTNe4hR6MkHEp62t2Y2ydOqWH960ModrFnBel2OgK01K1mvawEA38SoxJoFRlWs1wMBAJ9lU1UjM8VndbA034iqrFnZej0SAGSC+2//WvNOy0XdJyrte0E498+aRbxBL2Rm0hSmMJNuMFyd+wPjhQ4gMO4G4zdBpNqIFsTL6gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0xMS0xN1QwMjozNDozNiswMTowMGXkq+sAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMTEtMTdUMDI6MzQ6MzYrMDE6MDAUuRNXAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg=="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfgCxIBFzacq2QfAAAEO0lEQVRo3u2ZXWwUVRzFf/fuLNBWl0KxYmhxFaF1l1oxxZjIA5G0QU0TjAZMDEappNFEMagPavxqBPzAtDX6opGYaDTwYGKAmBANwQjyUGm2ZbbgVqMVH3xRrKYk/ZjrA+3uznZ39t673RoTz1Pv9P8/58yZmTtz78L/+Jch7NqUcNvEw9xEFPiJAT6MHRPevBkYbJEf05Bz8Ae5/cZvzbmkeYvbKU/OkodV3gn3iXlIIHm3Oly4y7u36bOyGhiKemdYElAwKlpiKRNGw0vgvR0oDxH1rhmjkYHBNtqLFrWeLV6TBYNLcNypTRDTKBwmHh8vQwK1j2rJww1iVxkSGKrxUkWufwaj3pqm3+Y4gakubXmIyD1znMBQk9dPSNsAeGJ97MwcJuD1GMmDVL2ahTpFyXu4w0geYENym06ZxiVILRxPcr2xARiJNNZfmoMExndbycPK0WfmIIHkNep7rrAyAGOTDc0XSk1gX0F5xX7Wilaeo9CnSGX4jRITcG/ldIEaRWv8q+mUOtT7hZi825tOWSegBL0FLfbNyEPsAw4X4gj1qsCTDDSQfIDbCv7zqM9qX8GTaEk+ZGkgUcVrAZ0/+0Z/B1TuPXellQHnWVYE0NZkD0R1QOVy73kLA0NRniIIPgMEGUA9ObjK2ID3JosCDSz1jYLflAvlfkMDgxu5L5AStVg/AWCLu8nAgJKypwghImJkAHpU3vdpXgPJnTQXJfQZEIuL1q8d6tQ00F/Nq0XpwCepIsUbVNdAnjslj4HwSyzTMOCXLJ4A1IRemX1w1jQ50BgaIKxB90c86zlwJ7W+mCZpjieLJBDq1pL3JZCo0vxgc0R37qEcA8m72KxFBaFE1cyfYY074DJUW+66yWegL6y6damyZSd17oBpiLfcBQUNVDzOGn2qjGxIOwFgNb5dhCwDqat40YAoS9arNOnjhURtXgMTe7QepjQyc6GsMDIQCWWtm9IG3JtVhxENKrNUjZt1ih3uutkJ9BrvF+26PLsryWOGnZL0uml6InK3ctCQBOA07wmpOllv0bstfiht4JeK0SGutSApBdPrJgnw59PzLp9eNwlI1DnnMXuQpiE+VUdAtYv7rSyMTTY0X3DA2WsnT0fsAACfnP1GvGPRX+ns5UHhLmdE8/Xjx4n4xszA/Y5bLDgmWCnZYSWP+No3PGXDQVg8IrnTqhVV7RstsmTZLKm3a6U98zpORYTuSzwX9ZKrLVujzkf91QDnl40fos6SpVa4P3KdZTP8zklgg8EGXi5SDsMlGFiqsXccjHNSfVEiRWk4IvqrF/xqORGVjouXVsh1Fym6j1MuqK6WMQFKJo+xqXQ6Y3we3wIShMdWvpx/+dB2SH+QqJD7stg9b/fCKPtirwuVZQBgYImzU7WxmjqbH/O0MMUIw+KoPND418yhPFtox52oUx796ISYKtOp/YfxD78X/HbumAqxAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTExLTE4VDAxOjIzOjU0KzAxOjAwJGZ8CAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0xMS0xOFQwMToyMzo1NCswMTowMFU7xLQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfgCxECLwPNdA1wAAAEz0lEQVRo3u1ZXUxcRRT+ZlgE2mabLiJgKGBKU3fvAkvdUEtSf6DW2miMRks1aoPEJqbV+EA1jSmJNDFNmtRqSxr/aLSxJlaTPphIRatGo9QC7eYyl4ctWG1KGlFToYVlXXZ8YFl2d2YW7mV30we+p5lzZs/3zblz586cJbCMy3mjL2IdalAInVwIf+H+zkoUYpWe1eJjrIkxcH40sNs7niEBxmP8JLIEc//EOrMSqBV6vZC/J6EH3Hn7zcayJIC241aFa5dxT9oF9GTjYaWT8EfTLiDHiZwk7pq0C6DupG73PMNEYFM5/AWBDXQtSjmjvdk/rp6c9YSHk6oeTokA1hR8iy4HAAKOoKFvr+yZ8YUu3JIs4nlzAqSTMU6gA8tjDC7azZ6f6dRcg6EOyH9esADWxJ8SjFk4zCqivZfAFfF6R46ZEyDshP6CoD9u9rM4ozVERR7GLsmISdylMWFCm8lOno8u+/6VE+JPhDUQ2EDl9MB9bJl2fbq5ZPc4x64E+VdIk0ukfwInOQCsH63jm4iQOeER0LXKbFF4Zpp3BLSX8QB0hCOGMfJR0O3qkvyqNdra2L9+HhlAKdSI82nfosq3lFZnFXLdNUhUq6I8ZgblEJaoIIAz9QeSCwmuvoG5Vv1ZbIy0wuScLK2Jhl5lqMAIg3m8gpFIq83lF93iW5AT7INLFom0u2Qrf074Cya3kvzwN5XSXEnyrXtpt+RrPxSqqr5hRUBySDaiyh7sQOK5Zog8mQ56xVasdaAaZ6KvWIC0h6pcfemgT3omZMvgQSlnI+z+UHrIF3Ezgjm4pXOydUQXIfOgDV4UYxw+fsz9foYFsD14A9kx9k7bs2v+ypgAYxv/VHB86XokPZSsntTxcdrl1CMCfLfZDORLRjZrHakm51nGJ2gEAITwmnYQoIBti5QeeC4Ns2+J0AM2HNDrprdi1V3Gwy1f3lWgT8d2aOO0gCLFaHtvXqoF8HiuIoACRFeMHjRfbpgT5xN7FMBZxeBfU04P+jpmP2y/Z7UDFHB14bRk7PWpvakX4OxFPXRw/IfT5N47xyL7gK/E5oMjfih5wfVB6gVMw2/H5Mx1N7LOfSXZH/JN0RHDaNY600WfMNHZJqsnXu4mw7wv+HXNtczQL2IRNwGSfG6Mu3k1LyEDU91VQxkXYBTzDmyOdEJ48899C7kbsAo47LqsPqIQwBzQcXuc6TOtEZbQ/yB5F2UAQjhkbxVFSM/A5EgCPbCVPWORvhNlAAAbWkZPzCsDA/lh2XH0nFZrXgC7FKGfwRbtqzkzwOVVoqqebJgEq0igBxoSx8gErJBGy1mxxHQCHHNbJAKIvNg6tOpfs/x2HYnvjnDJlwhwXsSgJC+Kz7NRzGp+y5X7Vk7gUJzhSu7x+WSA02ahFPtHzh5xpP44u8yH0Tc+xk4ZxdIctOLULD1vFLOo2IjYDhzE0mjXT7aJFZL+vaQtpvs39TovSWM9hAY40Jd7XPYQlVuxvoq2EC8vQz9+mDggno91L/0lvspIvnfWK8uVSli+ehhH+E7BuFq7aDaO5WoA90iMHpNBFiKAyIp2Fgp51jMglu242b9rFiQAb+OfBP6j2tUMCtCuhrdjLMbw09SrVuIs6AI+UB7eh1oUQSefO98hYSsx/gdmXWWZ4qY5wwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0xMS0xN1QwMjo0NzowMyswMTowMHtfLS8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMTEtMTdUMDI6NDc6MDMrMDE6MDAKApWTAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg=="},function(t,e,n){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pull-down-container"},[n("div",{staticClass:"pull-down-header",style:{height:t.pullDown.height+"px"}},[n("div",{staticClass:"pull-down-content",style:t.pullDownContentStyle},[n("i",{staticClass:"pull-down-content--icon",class:t.iconClass}),t._v(" "),n("span",{staticClass:"pull-down-content--label"},[t._v(t._s(t.label))])])]),t._v(" "),t._t("default")],2)},staticRenderFns:[]}},function(t,e){function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],a=c[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(o(r.parts[i],e))}else{var s=[];for(i=0;i<r.parts.length;i++)s.push(o(r.parts[i],e));c[r.id]={id:r.id,refs:1,parts:s}}}}function r(t){for(var e=[],n={},r=0;r<t.length;r++){var a=t[r],o=a[0],i={css:a[1],media:a[2],sourceMap:a[3]};n[o]?n[o].parts.push(i):e.push(n[o]={id:o,parts:[i]})}return e}function a(t){var e=document.createElement("style");return e.type="text/css",function(t,e){var n=f(),r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}(t,e),e}function o(t,e){var n,r,o;if(e.singleton){var c=p++;n=d||(d=a(e)),r=i.bind(null,n,c,!1),o=i.bind(null,n,c,!0)}else n=a(e),r=s.bind(null,n),o=function(){!function(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function i(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=h(e,a);else{var o=document.createTextNode(a),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(o,i[e]):t.appendChild(o)}}function s(t,e){var n=e.css,r=e.media,a=e.sourceMap;if(r&&t.setAttribute("media",r),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c={},l=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},u=l((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),f=l((function(){return document.head||document.getElementsByTagName("head")[0]})),d=null,p=0,m=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(e=e||{}).singleton&&(e.singleton=u()),void 0===e.insertAt&&(e.insertAt="bottom");var a=r(t);return n(a,e),function(t){for(var o=[],i=0;i<a.length;i++){var s=a[i];(l=c[s.id]).refs--,o.push(l)}for(t&&n(r(t),e),i=0;i<o.length;i++){var l;if(0===(l=o[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete c[l.id]}}}};var h=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(3);"string"==typeof r&&(r=[[t.i,r,""]]),n(9)(r,{}),r.locals&&(t.exports=r.locals)}])},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(a.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,a,o,i,s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){m(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){m(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):r=function(t){setTimeout(m,0,t)}:(i="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&m(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(i+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return l[c]=a,r(c),c++},d.clearImmediate=p}function p(t){delete l[t]}function m(t){if(u)setTimeout(m,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n("yLpj"),n("8oxB"))},bUC5:function(t,e,n){"use strict";n.r(e);var r=n("XuX8"),a=n.n(r),o=n("jE9Z"),i=n("o0o1"),s=n.n(i);function c(t,e,n,r,a,o,i,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}var l=c({name:"Modal",props:{value:Boolean},computed:{isActive:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{closeModal:function(t){t&&(this.isActive=!1,this.$parent.$emit("modalClose"))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal modal-otp",class:{"is-active":t.isActive}},[n("div",{staticClass:"modal-background",on:{click:function(e){return e.stopPropagation(),t.closeModal(e)}}}),t._v(" "),n("div",{staticClass:"modal-content"},[n("section",{staticClass:"section"},[n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"column is-three-quarters"},[n("div",{staticClass:"box has-text-centered has-background-black-ter is-shadowless"},[t._t("default")],2)])])])]),t._v(" "),n("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:function(e){return e.stopPropagation(),t.closeModal(e)}}})])}),[],!1,null,null,null).exports;function u(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}var f,d,p=c({data:function(){return{id:null,internal_service:"",internal_account:"",internal_uri:"",next_uri:"",internal_icon:"",type:"",otp:"",timerID:null,position:null,counter:null}},props:{service:"",account:"",uri:"",icon:""},computed:{displayedOtp:function(){return this.$root.appSettings.showTokenAsDot?this.otp.replace(/[0-9]/g,"●"):this.otp}},mounted:function(){this.showAccount()},methods:{showAccount:(f=s.a.mark((function t(e){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.id=e,!this.id&&!this.uri){t.next=26;break}if(!this.id){t.next=13;break}return t.next=5,this.axios.get("api/twofaccounts/"+this.id);case 5:n=t.sent,r=n.data,this.internal_service=r.service,this.internal_account=r.account,this.internal_icon=r.icon,this.type=r.type,t.next=18;break;case 13:this.internal_service=this.service,this.internal_account=this.account,this.internal_icon=this.icon,this.internal_uri=this.uri,this.type="otpauth://totp/"===this.internal_uri.slice(0,15)?"totp":"hotp";case 18:if("totp"!==this.type){t.next=23;break}return t.next=21,this.getTOTP();case 21:t.next=25;break;case 23:return t.next=25,this.getHOTP();case 25:this.$parent.isActive=!0;case 26:case"end":return t.stop()}}),t,this)})),d=function(){var t=this,e=arguments;return new Promise((function(n,r){var a=f.apply(t,e);function o(t){u(a,n,r,o,i,"next",t)}function i(t){u(a,n,r,o,i,"throw",t)}o(void 0)}))},function(t){return d.apply(this,arguments)}),getTOTP:function(){var t=this;this.axios.post("api/twofaccounts/otp",{data:this.id?this.id:this.internal_uri}).then((function(e){var n=Math.ceil(e.data.otp.length/2);t.otp=e.data.otp.substr(0,n)+" "+e.data.otp.substr(n),t.position=e.data.position;for(var r=t.$el.querySelector(".dots");r.querySelector("[data-is-active]");)r.querySelector("[data-is-active]").removeAttribute("data-is-active");var a=r.querySelector("li:nth-child("+(t.position+1)+")");a.setAttribute("data-is-active",!0);var o=t;t.timerID=setInterval((function(){var t=a.nextSibling;null===a.nextSibling?(console.log("no more sibling to activate, we refresh the OTP"),o.stopLoop(),o.getTOTP()):(a.removeAttribute("data-is-active"),t.setAttribute("data-is-active",!0),a=t)}),1e3)}))},getHOTP:function(){var t=this;this.axios.post("api/twofaccounts/otp",{data:this.id?this.id:this.internal_uri}).then((function(e){var n=Math.ceil(e.data.otp.length/2);t.otp=e.data.otp.substr(0,n)+" "+e.data.otp.substr(n),t.counter=e.data.counter,t.next_uri=e.data.nextUri}))},clearOTP:function(){this.stopLoop(),this.id=this.timerID=this.position=this.counter=null,this.internal_service=this.internal_account=this.internal_icon=this.internal_uri="",this.otp="... ...";try{this.$el.querySelector("[data-is-active]").removeAttribute("data-is-active"),this.$el.querySelector(".dots li:first-child").setAttribute("data-is-active",!0)}catch(t){}},stopLoop:function(){"totp"===this.type&&clearInterval(this.timerID)},clipboardSuccessHandler:function(t){var e=t.value;t.event;console.log("success",e),this.$root.appSettings.closeTokenOnCopy&&(this.$parent.isActive=!1,this.clearOTP())},clipboardErrorHandler:function(t){var e=t.value;t.event;console.log("error",e)}},beforeDestroy:function(){this.stopLoop()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("figure",{staticClass:"image is-64x64",class:{"no-icon":!t.internal_icon},staticStyle:{display:"inline-block"}},[t.internal_icon?n("img",{attrs:{src:"storage/icons/"+t.internal_icon}}):t._e()]),t._v(" "),n("p",{staticClass:"is-size-4 has-text-grey-light has-ellipsis"},[t._v(t._s(t.internal_service))]),t._v(" "),n("p",{staticClass:"is-size-6 has-text-grey has-ellipsis"},[t._v(t._s(t.internal_account))]),t._v(" "),n("p",{directives:[{name:"clipboard",rawName:"v-clipboard",value:function(){return t.otp.replace(/ /g,"")},expression:"() => otp.replace(/ /g, '')"},{name:"clipboard",rawName:"v-clipboard:success",value:t.clipboardSuccessHandler,expression:"clipboardSuccessHandler",arg:"success"}],staticClass:"is-size-1 has-text-white",attrs:{id:"otp",title:t.$t("commons.copy_to_clipboard")}},[t._v(t._s(t.displayedOtp))]),t._v(" "),"totp"===t.type?n("ul",{staticClass:"dots"},t._l(30,(function(t){return n("li")})),0):"hotp"===t.type?n("ul",[n("li",[t._v("counter: "+t._s(t.counter))])]):t._e()])}),[],!1,null,null,null).exports;function m(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 h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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})(t)}function g(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,r.key,r)}}var b=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.errors={}}var e,n,r;return e=t,(n=[{key:"set",value:function(t,e){"object"===v(t)?this.errors=t:this.set(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.errors,h({},t,y(e))))}},{key:"all",value:function(){return this.errors}},{key:"has",value:function(t){return this.errors.hasOwnProperty(t)}},{key:"hasAny",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.some((function(e){return t.has(e)}))}},{key:"any",value:function(){return Object.keys(this.errors).length>0}},{key:"get",value:function(t){if(this.has(t))return this.getAll(t)[0]}},{key:"getAll",value:function(t){return y(this.errors[t]||[])}},{key:"only",value:function(){for(var t=this,e=[],n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return r.forEach((function(n){var r=t.get(n);r&&e.push(r)})),e}},{key:"flatten",value:function(){return Object.values(this.errors).reduce((function(t,e){return t.concat(e)}),[])}},{key:"clear",value:function(t){var e=this,n={};t&&Object.keys(this.errors).forEach((function(r){r!==t&&(n[r]=e.errors[r])})),this.set(n)}}])&&g(e.prototype,n),r&&g(e,r),t}();function y(t){return Array.isArray(t)?t:[t]}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(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 A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}var T=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this,t),this.isBusy=!1,this.isDisabled=!1,this.errors=new b,Object.assign(this,e)}var e,n,r;return e=t,(n=[{key:"fill",value:function(t){var e=this;this.keys().forEach((function(n){e[n]=t[n]}))}},{key:"data",value:function(){var t=this;return this.keys().reduce((function(e,n){return A({},e,x({},n,t[n]))}),{})}},{key:"keys",value:function(){return Object.keys(this).filter((function(e){return!t.ignore.includes(e)}))}},{key:"startProcessing",value:function(){this.errors.clear(),this.isBusy=!0}},{key:"finishProcessing",value:function(){this.isBusy=!1}},{key:"clear",value:function(){this.errors.clear()}},{key:"reset",value:function(){var e=this;Object.keys(this).filter((function(e){return!t.ignore.includes(e)})).forEach((function(t){e[t]=deepCopy(e.originalData[t])}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("get",t,e)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("post",t,e)}},{key:"patch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("patch",t,e)}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("put",t,e)}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.submit("delete",t,e)}},{key:"submit",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.startProcessing();var o="get"===t?{params:this.data()}:this.data();return new Promise((function(i,s){a.a.axios.request(A({url:n.route(e),method:t,data:o},r)).then((function(t){n.finishProcessing(),i(t)})).catch((function(t){n.isBusy=!1,t.response&&n.errors.set(n.extractErrors(t.response)),s(t)}))}))}},{key:"upload",value:function(t,e){var n=this;return arguments.length>2&&void 0!==arguments[2]&&arguments[2],this.startProcessing(),new Promise((function(r,o){a.a.axios.request({url:n.route(t),method:"post",data:e,header:{"Content-Type":"multipart/form-data"}}).then((function(t){n.finishProcessing(),r(t)})).catch((function(t){n.isBusy=!1,t.response&&n.errors.set(n.extractErrors(t.response)),o(t)}))}))}},{key:"extractErrors",value:function(e){return e.data&&"object"===w(e.data)?e.data.errors?A({},e.data.errors):e.data.message?{error:e.data.message}:A({},e.data):{error:t.errorMessage}}},{key:"route",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;return t.routes.hasOwnProperty(e)&&(r=decodeURI(t.routes[e])),"object"!==w(n)&&(n={id:n}),Object.keys(n).forEach((function(t){r=r.replace("{".concat(t,"}"),n[t])})),r}},{key:"onKeydown",value:function(t){t.target.name&&this.errors.clear(t.target.name)}}])&&C(e.prototype,n),r&&C(e,r),t}();T.routes={},T.errorMessage="Something went wrong. Please try again.",T.ignore=["isBusy","isDisabled","errors","originalData"];var L=T,S=n("NnI0");function E(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function O(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){E(o,r,a,i,s,"next",t)}function s(t){E(o,r,a,i,s,"throw",t)}i(void 0)}))}}var I,M,N=c({data:function(){return{accounts:[],selectedAccounts:[],ShowTwofaccountInModal:!1,search:"",editMode:this.InitialEditMode,showQuickForm:!1,form:new L({qrcode:null})}},computed:{filteredAccounts:function(){var t=this;return this.accounts.filter((function(e){return e.service.toLowerCase().includes(t.search.toLowerCase())||e.account.toLowerCase().includes(t.search.toLowerCase())}))},showAccounts:function(){return this.accounts.length>0&&!this.showQuickForm}},props:["InitialEditMode"],created:function(){this.fetchAccounts(),this.$on("modalClose",(function(){console.log("modalClose triggered"),this.$refs.TwofaccountShow.clearOTP()}))},components:{Modal:l,TwofaccountShow:p,"vue-pull-refresh":n.n(S).a},methods:{onRefresh:function(){var t=this;return new Promise((function(e,n){setTimeout((function(){t.fetchAccounts(),e()}),1e3)}))},uploadQrcode:(M=O(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).append("qrcode",this.$refs.qrcodeInput.files[0]),t.next=4,this.form.upload("/api/qrcode/decode",n);case 4:r=t.sent,a=r.data,this.$router.push({name:"create",params:{qrAccount:a}});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return M.apply(this,arguments)}),fetchAccounts:function(){var t=this;this.accounts=[],this.selectedAccounts=[],this.axios.get("api/twofaccounts").then((function(e){e.data.forEach((function(e){t.accounts.push({id:e.id,service:e.service,account:e.account?e.account:"-",icon:e.icon})})),t.showQuickForm=0===e.data.length}))},showAccount:function(t){if(this.editMode){for(var e=0;e<this.selectedAccounts.length;e++)if(this.selectedAccounts[e]===t.id)return void this.selectedAccounts.splice(e,1);this.selectedAccounts.push(t.id)}else this.$refs.TwofaccountShow.showAccount(t.id)},deleteAccount:function(t){confirm(this.$t("twofaccounts.confirm.delete"))&&(this.axios.delete("/api/twofaccounts/"+t),this.accounts=this.accounts.filter((function(e){return e.id!==t})))},destroyAccounts:(I=O(s.a.mark((function t(){var e;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!confirm(this.$t("twofaccounts.confirm.delete"))){t.next=6;break}return e=[],this.selectedAccounts.forEach((function(t){return e.push(t)})),t.next=5,this.axios.delete("/api/twofaccounts/batch",{data:e});case 5:this.fetchAccounts();case 6:case"end":return t.stop()}}),t,this)}))),function(){return I.apply(this,arguments)}),setEditModeTo:function(t){!1===t?this.selectedAccounts=[]:this.search="",this.editMode=t,this.$parent.showToolbar=t},cancelQuickForm:function(){this.form.clear(),this.showQuickForm=!1}},beforeRouteEnter:function(t,e,n){if(!localStorage.getItem("jwt"))return n("login");n()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[this.showAccounts?n("div",{staticClass:"container"},[n("div",{staticClass:"columns is-gapless is-mobile is-centered"},[n("div",{staticClass:"column is-three-quarters-mobile is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd"},[t.editMode?n("div",{staticClass:"toolbar has-text-centered"},[n("a",{staticClass:"button",class:{"is-dark":0===t.selectedAccounts.length,"is-danger":t.selectedAccounts.length>0},attrs:{disabled:0==t.selectedAccounts.length},on:{click:t.destroyAccounts}},[n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","trash"]}})],1),t._v(" "),n("span",[t._v(t._s(t.$t("commons.delete")))])])]):n("div",{staticClass:"field"},[n("div",{staticClass:"control has-icons-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input is-rounded is-search",attrs:{type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),n("span",{staticClass:"icon is-small is-right"},[t.search?t._e():n("font-awesome-icon",{attrs:{icon:["fas","search"]}}),t._v(" "),t.search?n("a",{staticClass:"delete",on:{click:function(e){t.search=""}}}):t._e()],1)])])])]),t._v(" "),n("vue-pull-refresh",{staticClass:"accounts columns is-multiline is-centered",attrs:{"on-refresh":t.onRefresh,config:{errorLabel:"error",startLabel:"",readyLabel:"",loadingLabel:"refreshing"}}},t._l(t.filteredAccounts,(function(e){return n("div",{staticClass:"tfa column is-narrow has-text-white"},[n("div",{staticClass:"tfa-container"},[n("transition",{attrs:{name:"slideCheckbox"}},[t.editMode?n("div",{staticClass:"tfa-checkbox"},[n("div",{staticClass:"field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAccounts,expression:"selectedAccounts"}],staticClass:"is-checkradio is-small is-white",attrs:{id:"ckb_"+e.id,type:"checkbox",name:"ckb_"+e.id},domProps:{value:e.id,checked:Array.isArray(t.selectedAccounts)?t._i(t.selectedAccounts,e.id)>-1:t.selectedAccounts},on:{change:function(n){var r=t.selectedAccounts,a=n.target,o=!!a.checked;if(Array.isArray(r)){var i=e.id,s=t._i(r,i);a.checked?s<0&&(t.selectedAccounts=r.concat([i])):s>-1&&(t.selectedAccounts=r.slice(0,s).concat(r.slice(s+1)))}else t.selectedAccounts=o}}}),t._v(" "),n("label",{attrs:{for:"ckb_"+e.id}})])]):t._e()]),t._v(" "),n("div",{staticClass:"tfa-content is-size-3 is-size-4-mobile",on:{click:function(n){return n.stopPropagation(),t.showAccount(e)}}},[n("div",{staticClass:"tfa-text has-ellipsis"},[e.icon?n("img",{attrs:{src:"/storage/icons/"+e.icon}}):t._e(),t._v("\n "+t._s(e.service)+"\n "),n("span",{staticClass:"is-family-primary is-size-6 is-size-7-mobile has-text-grey "},[t._v(t._s(e.account))])])]),t._v(" "),n("transition",{attrs:{name:"fadeInOut"}},[t.editMode?n("div",{staticClass:"tfa-dots has-text-grey"},[n("router-link",{staticClass:"tag is-dark is-rounded",attrs:{to:{name:"edit",params:{twofaccountId:e.id}}}},[t._v("\n\t "+t._s(t.$t("commons.edit"))+"\n\t ")])],1):t._e()])],1)])})),0)],1):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showQuickForm,expression:"showQuickForm"}],staticClass:"container has-text-centered"},[n("div",{staticClass:"columns is-mobile",class:{"is-invisible":this.accounts.length>0}},[n("div",{staticClass:"column quickform-header"},[t._v("\n "+t._s(t.$t("twofaccounts.no_account_here"))),n("br"),t._v("\n "+t._s(t.$t("twofaccounts.add_first_account"))+"\n ")])]),t._v(" "),n("div",{staticClass:"container"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"columns is-mobile no-account is-vcentered"},[n("div",{staticClass:"column has-text-centered"},[n("label",{staticClass:"button is-link is-medium is-rounded is-focused",class:{"is-loading":t.form.isBusy}},[n("input",{ref:"qrcodeInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadQrcode}}),t._v("\n "+t._s(t.$t("twofaccounts.forms.use_qrcode.val"))+"\n ")])])]),t._v(" "),n("field-error",{attrs:{form:t.form,field:"qrcode"}})],1)]),t._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column quickform-footer"},[n("router-link",{staticClass:"is-link",attrs:{to:{name:"create"}}},[t._v(t._s(t.$t("twofaccounts.use_full_form")))])],1)])]),t._v(" "),n("modal",{model:{value:t.ShowTwofaccountInModal,callback:function(e){t.ShowTwofaccountInModal=e},expression:"ShowTwofaccountInModal"}},[n("twofaccount-show",{ref:"TwofaccountShow"})],1),t._v(" "),n("vue-footer",{attrs:{showButtons:this.accounts.length>0}},[t.showQuickForm||t.editMode?t._e():n("p",{staticClass:"control"},[n("a",{staticClass:"button is-link is-rounded is-focus",on:{click:function(e){t.showQuickForm=!0}}},[n("span",[t._v(t._s(t.$t("twofaccounts.new")))]),t._v(" "),n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","qrcode"]}})],1)])]),t._v(" "),t.showQuickForm||t.editMode?t._e():n("p",{staticClass:"control"},[n("a",{staticClass:"button is-dark is-rounded",on:{click:function(e){return t.setEditModeTo(!0)}}},[t._v(t._s(t.$t("twofaccounts.manage")))])]),t._v(" "),!t.showQuickForm&&t.editMode?n("p",{staticClass:"control"},[n("a",{staticClass:"button is-success is-rounded",on:{click:function(e){return t.setEditModeTo(!1)}}},[n("span",[t._v(t._s(t.$t("twofaccounts.done")))]),t._v(" "),n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:["fas","check"]}})],1)])]):t._e(),t._v(" "),t.showQuickForm?n("p",{staticClass:"control"},[n("a",{staticClass:"button is-dark is-rounded",on:{click:t.cancelQuickForm}},[t._v("\n "+t._s(t.$t("commons.cancel"))+"\n ")])]):t._e()])],1)}),[],!1,null,null,null).exports;function P(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function j(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){P(o,r,a,i,s,"next",t)}function s(t){P(o,r,a,i,s,"throw",t)}i(void 0)}))}}var $,q,z=c({data:function(){return{isQuickForm:!1,ShowTwofaccountInModal:!1,uriIsLocked:!0,tempIcon:"",form:new L({service:"",account:"",uri:"",icon:"",qrcode:null})}},watch:{tempIcon:function(t){this.isQuickForm&&(this.$refs.TwofaccountShow.internal_icon=t)}},mounted:function(){this.$route.params.qrAccount&&(this.isQuickForm=!0,this.form.fill(this.$route.params.qrAccount)),this.$on("modalClose",(function(){this.$refs.TwofaccountPreview.stopLoop()}))},components:{Modal:l,TwofaccountShow:p},methods:{createAccount:(q=j(s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.form.icon=this.tempIcon,this.isQuickForm&&this.$refs.TwofaccountShow.next_uri?this.form.uri=this.$refs.TwofaccountShow.next_uri:this.$refs.TwofaccountPreview&&this.$refs.TwofaccountPreview.next_uri&&(this.form.uri=this.$refs.TwofaccountPreview.next_uri),t.next=4,this.form.post("/api/twofaccounts");case 4:!1===this.form.errors.any()&&this.$router.push({name:"accounts",params:{InitialEditMode:!1}});case 5:case"end":return t.stop()}}),t,this)}))),function(){return q.apply(this,arguments)}),previewAccount:function(){this.form.uri&&this.$refs.TwofaccountPreview.showAccount()},cancelCreation:function(){this.form.service&&this.form.uri&&!1===confirm(this.$t("twofaccounts.confirm.cancel"))||(this.deleteIcon(),this.$router.push({name:"accounts",params:{InitialEditMode:!1}}))},uploadQrcode:function(){var t=j(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).append("qrcode",this.$refs.qrcodeInput.files[0]),t.next=4,this.form.upload("/api/qrcode/decode",n);case 4:r=t.sent,a=r.data,this.form.fill(a);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),uploadIcon:($=j(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.deleteIcon(),(n=new FormData).append("icon",this.$refs.iconInput.files[0]),t.next=5,this.form.upload("/api/icon/upload",n);case 5:r=t.sent,a=r.data,this.tempIcon=a;case 8:case"end":return t.stop()}}),t,this)}))),function(t){return $.apply(this,arguments)}),deleteIcon:function(t){this.tempIcon&&(this.axios.delete("/api/icon/delete/"+this.tempIcon),this.tempIcon="")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isQuickForm?n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"container preview has-text-centered"},[n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column"},[t.tempIcon?t._e():n("label",{staticClass:"add-icon-button"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("font-awesome-icon",{attrs:{icon:["fas","image"],size:"2x"}})],1),t._v(" "),t.tempIcon?n("button",{staticClass:"delete delete-icon-button is-medium",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}}):t._e(),t._v(" "),n("twofaccount-show",{ref:"TwofaccountShow",attrs:{service:t.form.service,account:t.form.account,uri:t.form.uri}})],1)]),t._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column quickform-footer"},[n("div",{staticClass:"field is-grouped is-grouped-centered"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.save")))])],1),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])])])])]):n("form-wrapper",{attrs:{title:t.$t("twofaccounts.forms.new_account")}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.createAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"file is-dark is-boxed"},[n("label",{staticClass:"file-label",attrs:{title:t.$t("twofaccounts.forms.use_qrcode.title")}},[n("input",{ref:"qrcodeInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadQrcode}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","qrcode"],size:"lg"}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.use_qrcode.val")))])])])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"qrcode"}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"service",inputType:"text",label:t.$t("twofaccounts.service"),placeholder:t.$t("twofaccounts.forms.service.placeholder"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"account",inputType:"text",label:t.$t("twofaccounts.account"),placeholder:t.$t("twofaccounts.forms.account.placeholder")}}),t._v(" "),n("div",{staticClass:"field",staticStyle:{"margin-bottom":"0.5rem"}},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.forms.otp_uri")))])]),t._v(" "),n("div",{staticClass:"field has-addons"},[n("div",{staticClass:"control is-expanded"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.uri,expression:"form.uri"}],staticClass:"input",attrs:{type:"text",placeholder:"otpauth://totp/...",disabled:t.uriIsLocked},domProps:{value:t.form.uri},on:{input:function(e){e.target.composing||t.$set(t.form,"uri",e.target.value)}}})]),t._v(" "),t.uriIsLocked?n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-lock",attrs:{title:t.$t("twofaccounts.forms.unlock.title")},on:{click:function(e){t.uriIsLocked=!1}}},[n("span",{staticClass:"icon"},[n("font-awesome-icon",{attrs:{icon:["fas","lock"]}})],1)])]):n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-unlock",attrs:{title:t.$t("twofaccounts.forms.lock.title")},on:{click:function(e){t.uriIsLocked=!0}}},[n("span",{staticClass:"icon has-text-danger"},[n("font-awesome-icon",{attrs:{icon:["fas","lock-open"]}})],1)])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"uri"}}),t._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.icon")))]),t._v(" "),n("div",{staticClass:"file is-dark"},[n("label",{staticClass:"file-label"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","image"]}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.choose_image")))])])]),t._v(" "),t.tempIcon?n("span",{staticClass:"tag is-black is-large"},[n("img",{staticClass:"icon-preview",attrs:{src:"/storage/icons/"+t.tempIcon}}),t._v(" "),n("button",{staticClass:"delete is-small",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}})]):t._e()])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"icon"}}),t._v(" "),n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.create")))])],1),t._v(" "),t.form.uri?n("div",{staticClass:"control"},[n("button",{staticClass:"button is-success",attrs:{type:"button"},on:{click:t.previewAccount}},[t._v(t._s(t.$t("twofaccounts.forms.test")))])]):t._e(),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])],1),t._v(" "),n("modal",{model:{value:t.ShowTwofaccountInModal,callback:function(e){t.ShowTwofaccountInModal=e},expression:"ShowTwofaccountInModal"}},[n("twofaccount-show",{ref:"TwofaccountPreview",attrs:{service:t.form.service,account:t.form.account,uri:t.form.uri,icon:t.tempIcon}})],1)],1)}),[],!1,null,null,null).exports;function D(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function B(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){D(o,r,a,i,s,"next",t)}function s(t){D(o,r,a,i,s,"throw",t)}i(void 0)}))}}var F,R,Q=c({data:function(){return{counterIsLocked:!0,twofaccountExists:!1,tempIcon:"",form:new L({service:"",account:"",uri:"",icon:"",qrcode:null,type:"",counter:null})}},created:function(){this.getAccount()},methods:{getAccount:(R=B(s.a.mark((function t(){var e,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.axios.get("/api/twofaccounts/"+this.$route.params.twofaccountId);case 2:e=t.sent,n=e.data,this.form.fill(n),this.twofaccountExists=!0,this.tempIcon=this.form.icon;case 7:case"end":return t.stop()}}),t,this)}))),function(){return R.apply(this,arguments)}),updateAccount:(F=B(s.a.mark((function t(){var e;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.tempIcon!==this.form.icon&&(e=this.form.icon,this.form.icon=this.tempIcon,this.tempIcon=e,this.deleteIcon()),t.next=3,this.form.put("/api/twofaccounts/"+this.$route.params.twofaccountId);case 3:!1===this.form.errors.any()&&this.$router.push({name:"accounts",params:{InitialEditMode:!0}});case 4:case"end":return t.stop()}}),t,this)}))),function(){return F.apply(this,arguments)}),cancelCreation:function(){this.deleteIcon(),this.$router.push({name:"accounts",params:{InitialEditMode:!0}})},uploadIcon:function(){var t=B(s.a.mark((function t(e){var n,r,a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.deleteIcon(),(n=new FormData).append("icon",this.$refs.iconInput.files[0]),t.next=5,this.form.upload("/api/icon/upload",n);case 5:r=t.sent,a=r.data,this.tempIcon=a;case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),deleteIcon:function(t){this.tempIcon&&this.tempIcon!==this.form.icon&&this.axios.delete("/api/icon/delete/"+this.tempIcon),this.tempIcon=""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("twofaccounts.forms.edit_account")}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.updateAccount(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"service",inputType:"text",label:t.$t("twofaccounts.service"),placeholder:t.$t("twofaccounts.forms.service.placeholder"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"account",inputType:"text",label:t.$t("twofaccounts.account"),placeholder:t.$t("twofaccounts.forms.account.placeholder")}}),t._v(" "),"hotp"===t.form.type?n("div",[n("div",{staticClass:"field",staticStyle:{"margin-bottom":"0.5rem"}},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.forms.hotp_counter")))])]),t._v(" "),n("div",{staticClass:"field has-addons"},[n("div",{staticClass:"control is-expanded"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.counter,expression:"form.counter"}],staticClass:"input",attrs:{type:"text",placeholder:"",disabled:t.counterIsLocked},domProps:{value:t.form.counter},on:{input:function(e){e.target.composing||t.$set(t.form,"counter",e.target.value)}}})]),t._v(" "),t.counterIsLocked?n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-lock",attrs:{title:t.$t("twofaccounts.forms.unlock.title")},on:{click:function(e){t.counterIsLocked=!1}}},[n("span",{staticClass:"icon"},[n("font-awesome-icon",{attrs:{icon:["fas","lock"]}})],1)])]):n("div",{staticClass:"control"},[n("a",{staticClass:"button is-dark field-unlock",attrs:{title:t.$t("twofaccounts.forms.lock.title")},on:{click:function(e){t.counterIsLocked=!0}}},[n("span",{staticClass:"icon has-text-danger"},[n("font-awesome-icon",{attrs:{icon:["fas","lock-open"]}})],1)])])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"uri"}})],1):t._e(),t._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[t._v(t._s(t.$t("twofaccounts.icon")))]),t._v(" "),n("div",{staticClass:"file is-dark"},[n("label",{staticClass:"file-label"},[n("input",{ref:"iconInput",staticClass:"file-input",attrs:{type:"file",accept:"image/*"},on:{change:t.uploadIcon}}),t._v(" "),n("span",{staticClass:"file-cta"},[n("span",{staticClass:"file-icon"},[n("font-awesome-icon",{attrs:{icon:["fas","image"]}})],1),t._v(" "),n("span",{staticClass:"file-label"},[t._v(t._s(t.$t("twofaccounts.forms.choose_image")))])])]),t._v(" "),t.tempIcon?n("span",{staticClass:"tag is-black is-large"},[n("img",{staticClass:"icon-preview",attrs:{src:"/storage/icons/"+t.tempIcon}}),t._v(" "),n("button",{staticClass:"delete is-small",on:{click:function(e){return e.preventDefault(),t.deleteIcon(e)}}})]):t._e()])]),t._v(" "),n("field-error",{staticClass:"help-for-file",attrs:{form:t.form,field:"icon"}}),t._v(" "),n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.form.isBusy}},[t._v(t._s(t.$t("twofaccounts.forms.save")))])],1),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-text",attrs:{type:"button"},on:{click:t.cancelCreation}},[t._v(t._s(t.$t("commons.cancel")))])])])],1)])}),[],!1,null,null,null).exports,H=c({data:function(){return{success:"",fail:"",form:new L({email:"",password:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/login",{returnError:!0}).then((function(t){localStorage.setItem("user",t.data.message.name),localStorage.setItem("jwt",t.data.message.token),null!=localStorage.getItem("jwt")&&e.$router.go("/")})).catch((function(t){401===t.response.status?e.fail=e.$t("auth.forms.password_do_not_match"):422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}},beforeRouteEnter:function(t,e,n){if(localStorage.getItem("jwt"))return n("/");n()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.login"),fail:t.fail,success:t.success}},[t.$root.appSettings.isDemoApp?n("div",{staticClass:"notification is-info has-text-centered",domProps:{innerHTML:t._s(t.$t("auth.forms.welcome_to_demo_app_use_those_credentials"))}}):t._e(),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.sign_in")}})],1),t._v(" "),n("p",[t._v(t._s(t.$t("auth.forms.dont_have_account_yet"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"register"}}},[t._v(t._s(t.$t("auth.register")))])],1),t._v(" "),t.$root.appSettings.isDemoApp?t._e():n("p",[t._v(t._s(t.$t("auth.forms.forgot_your_password"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"password.request"}}},[t._v(t._s(t.$t("auth.forms.request_password_reset")))])],1)])}),[],!1,null,null,null).exports;function U(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}function V(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){U(o,r,a,i,s,"next",t)}function s(t){U(o,r,a,i,s,"throw",t)}i(void 0)}))}}var Y,X=c({data:function(){return{success:"",fail:"",form:new L({name:"",email:"",password:"",password_confirmation:""})}},methods:{handleSubmit:(Y=V(s.a.mark((function t(e){var n,r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.next=3,this.form.post("api/register");case 3:n=t.sent,r=n.data,!1===this.form.errors.any()&&(localStorage.setItem("user",r.message.name),localStorage.setItem("jwt",r.message.token),null!=localStorage.getItem("jwt")&&this.$router.push({name:"accounts"}));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return Y.apply(this,arguments)})},beforeRouteEnter:function(t,e,n){if(localStorage.getItem("jwt"))return n("/");n(function(){var t=V(s.a.mark((function t(e){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.axios.post("api/checkuser");case 2:n=t.sent,n.data.userCount>0&&(e.form.isDisabled=!0,e.fail=e.$t("errors.already_one_user_registered")+" "+e.$t("errors.cannot_register_more_user"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.register"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"name",inputType:"text",label:t.$t("auth.forms.name"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,isDisabled:t.form.isDisabled,caption:t.$t("auth.register")}})],1),t._v(" "),n("p",[t._v(t._s(t.$t("auth.forms.already_register"))+" "),n("router-link",{staticClass:"is-link",attrs:{to:{name:"login"}}},[t._v(t._s(t.$t("auth.sign_in")))])],1)])}),[],!1,null,null,null).exports,W=c({data:function(){return{success:"",fail:"",form:new L({email:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/password/email",{returnError:!0}).then((function(t){e.success=t.data.status})).catch((function(t){t.response.data.requestFailed?e.fail=t.response.data.requestFailed:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.reset_password"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),autofocus:""}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.send_password_reset_link"),showCancelButton:!0,cancelLandingView:"login"}})],1)])}),[],!1,null,null,null).exports,G=c({data:function(){return{success:"",fail:"",form:new L({email:"",password:"",password_confirmation:"",token:""})}},created:function(){this.form.email=this.$route.query.email,this.form.token=this.$route.params.token},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.form.post("/api/password/reset",{returnError:!0}).then((function(t){e.success=t.data.status})).catch((function(t){t.response.data.resetFailed?e.fail=t.response.data.resetFailed:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{title:t.$t("auth.forms.new_password"),fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email"),disabled:"",readonly:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_password")}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.change_password"),showCancelButton:!0,cancelLandingView:"login"}})],1)])}),[],!1,null,null,null).exports,J=c({data:function(){return{success:"",fail:"",form:new L({lang:this.$root.$i18n.locale,showTokenAsDot:this.$root.appSettings.showTokenAsDot,closeTokenOnCopy:this.$root.appSettings.closeTokenOnCopy}),options:[{text:this.$t("languages.en"),value:"en"},{text:this.$t("languages.fr"),value:"fr"}]}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.post("/api/settings/options",{returnError:!0}).then((function(t){e.success=t.data.message,t.data.settings.lang!==e.$root.$i18n.locale?e.$router.go():e.$root.appSettings=t.data.settings})).catch((function(t){e.fail=t.response.data.message}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag is-dark"},[t._v("2FAuth")]),t._v(" "),n("span",{staticClass:"tag is-info"},[t._v("v"+t._s(t.$root.appVersion))])]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},change:t.handleSubmit,keydown:function(e){return t.form.onKeydown(e)}}},[n("form-select",{attrs:{options:t.options,form:t.form,fieldName:"lang",label:t.$t("settings.forms.language.label"),help:t.$t("settings.forms.language.help")}}),t._v(" "),n("form-switch",{attrs:{form:t.form,fieldName:"showTokenAsDot",label:t.$t("settings.forms.show_token_as_dot.label"),help:t.$t("settings.forms.show_token_as_dot.help")}}),t._v(" "),n("form-switch",{attrs:{form:t.form,fieldName:"closeTokenOnCopy",label:t.$t("settings.forms.close_token_on_copy.label"),help:t.$t("settings.forms.close_token_on_copy.help")}})],1)])}),[],!1,null,null,null).exports;function Z(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}var K,tt=c({data:function(){return{success:"",fail:"",form:new L({name:"",email:"",password:""})}},mounted:(K=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){Z(o,r,a,i,s,"next",t)}function s(t){Z(o,r,a,i,s,"throw",t)}i(void 0)}))}}(s.a.mark((function t(){var e,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.form.get("/api/settings/account");case 2:e=t.sent,n=e.data,this.form.fill(n);case 5:case"end":return t.stop()}}),t,this)}))),function(){return K.apply(this,arguments)}),methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.patch("/api/settings/account",{returnError:!0}).then((function(t){e.success=t.data.message})).catch((function(t){400===t.response.status?e.fail=t.response.data.message:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"name",label:t.$t("auth.forms.name"),autofocus:""}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"email",inputType:"email",label:t.$t("auth.forms.email")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.current_password.label"),help:t.$t("auth.forms.current_password.help"),hasOffset:!0}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("commons.update")}})],1)])}),[],!1,null,null,null).exports,et=c({data:function(){return{success:"",fail:"",form:new L({currentPassword:"",password:"",password_confirmation:""})}},methods:{handleSubmit:function(t){var e=this;t.preventDefault(),this.fail="",this.success="",this.form.patch("/api/settings/password",{returnError:!0}).then((function(t){e.success=t.data.message})).catch((function(t){400===t.response.status?e.fail=t.response.data.message:422!==t.response.status&&e.$router.push({name:"genericError",params:{err:t.response}})}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form-wrapper",{attrs:{fail:t.fail,success:t.success}},[n("form",{on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)},keydown:function(e){return t.form.onKeydown(e)}}},[n("form-field",{attrs:{form:t.form,fieldName:"password",inputType:"password",label:t.$t("auth.forms.new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"password_confirmation",inputType:"password",label:t.$t("auth.forms.confirm_new_password")}}),t._v(" "),n("form-field",{attrs:{form:t.form,fieldName:"currentPassword",inputType:"password",label:t.$t("auth.forms.current_password.label"),help:t.$t("auth.forms.current_password.help"),hasOffset:!0}}),t._v(" "),n("form-buttons",{attrs:{isBusy:t.form.isBusy,caption:t.$t("auth.forms.change_password")}})],1)])}),[],!1,null,null,null),nt=c({data:function(){return{tabs:[{name:this.$t("settings.options"),isActive:!0},{name:this.$t("settings.account"),isActive:!1},{name:this.$t("settings.password"),isActive:!1}],activeTab:this.$t("settings.options")}},components:{Options:J,Account:tt,Password:et.exports},methods:{selectTab:function(t){var e=this;this.tabs.forEach((function(n){n.isActive=n.name==t.name,n.name==t.name&&(e.activeTab=t.name)}))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"form-column column is-two-thirds-tablet is-half-desktop is-one-third-widescreen is-one-quarter-fullhd"},[n("div",{staticClass:"tabs is-centered is-fullwidth"},[n("ul",t._l(t.tabs,(function(e){return n("li",{class:{"is-active":e.isActive}},[n("a",{on:{click:function(n){return t.selectTab(e)}}},[t._v(t._s(e.name))])])})),0)])])]),t._v(" "),t.activeTab===t.$t("settings.options")?n("options"):t._e(),t._v(" "),t.activeTab===t.$t("settings.account")?n("account"):t._e(),t._v(" "),t.activeTab===t.$t("settings.password")?n("password"):t._e(),t._v(" "),n("vue-footer",{attrs:{showButtons:!0}},[n("p",{staticClass:"control"},[n("router-link",{staticClass:"button is-dark is-rounded",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("commons.close")))])],1)])],1)}),[],!1,null,null,null).exports,rt=c({data:function(){return{ShowModal:!0}},computed:{debugMode:function(){return"production"},error:function(){return void 0===this.err?null:this.err.data?(console.log(this.err.data),this.err.data):{statusText:this.err}}},props:["err"],components:{Modal:l},mounted:function(){this.$on("modalClose",(function(){this.$router.push({name:"accounts"})}))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-message"},[n("modal",{model:{value:t.ShowModal,callback:function(e){t.ShowModal=e},expression:"ShowModal"}},["404"==t.$route.name?n("div",{staticClass:"error-message"},[n("p",{staticClass:"error-404"}),t._v(" "),n("p",[t._v(t._s(t.$t("errors.resource_not_found")))]),t._v(" "),n("p",{},[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("errors.refresh")))])],1)]):"flooded"==t.$route.name?n("div",[n("p",{staticClass:"error-generic"}),t._v(" "),n("p",[t._v("\n "+t._s(t.$t("errors.already_one_user_registered"))),n("br"),t._v("\n "+t._s(t.$t("errors.cannot_register_more_user"))+"\n ")]),t._v(" "),n("p",[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("auth.sign_in")))])],1)]):n("div",[n("p",{staticClass:"error-generic"}),t._v(" "),n("p",[t._v(t._s(t.$t("errors.error_occured")))]),t._v(" "),t.error?n("p",{staticClass:"has-text-grey-lighter"},[t._v(t._s(t.error.message))]):t._e(),t._v(" "),n("p",[t._v(t._s(t.$t("errors.please"))),n("router-link",{staticClass:"is-text",attrs:{to:{name:"accounts"}}},[t._v(t._s(t.$t("errors.refresh")))])],1),t._v(" "),"development"==t.debugMode&&t.error?n("p",[n("br"),t._v("\n "+t._s(t.error.debug)+"\n ")]):t._e()])])],1)}),[],!1,null,null,null).exports;a.a.use(o.default);var at=new o.default({mode:"history",routes:[{path:"/",name:"accounts",component:N,props:!0},{path:"/login",name:"login",component:H},{path:"/register",name:"register",component:X},{path:"/settings",name:"settings",component:nt},{path:"/create",name:"create",component:z},{path:"/edit/:twofaccountId",name:"edit",component:Q},{path:"/password/request",name:"password.request",component:W},{path:"/password/reset/:token",name:"password.reset",component:G},{path:"/flooded",name:"flooded",component:rt,props:!0},{path:"/error",name:"genericError",component:rt,props:!0},{path:"/404",name:"404",component:rt,props:!0},{path:"*",redirect:{name:"404"}}]}),ot=n("vDqi"),it=n.n(ot),st=n("p/7L"),ct=n.n(st);a.a.use(ct.a,it.a),a.a.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var lt=document.head.querySelector('meta[name="csrf-token"]');lt?a.a.axios.defaults.headers.common["X-CSRF-TOKEN"]=lt.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"),a.a.axios.interceptors.request.use((function(t){var e=localStorage.getItem("jwt");return e&&(t.headers.common.Authorization="Bearer "+e),t.headers.common["Content-Type"]="application/json",t})),a.a.axios.interceptors.response.use((function(t){return t}),(function(t){if(t.config.hasOwnProperty("returnError")&&!0===t.config.returnError)return Promise.reject(t);if(422===t.response.status)return Promise.reject(t);var e="genericError";throw 401===t.response.status&&(localStorage.removeItem("jwt"),localStorage.removeItem("user"),e="login"),404===t.response.status&&(e="404"),at.push({name:e,params:{err:t.response}}),new a.a.axios.Cancel}));var ut=n("qSUR"),ft=n("95I4");a.a.use(ut.default);var dt=document.documentElement.lang.substr(0,2),pt=new ut.default({locale:dt,messages:ft.default}),mt=pt,ht=n("7O5W"),vt=n("rT2p"),gt={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},bt={prefix:"fas",iconName:"edit",icon:[576,512,[],"f044","M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]},yt={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},wt={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]},_t={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},At={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"]},xt={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},kt={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"]},Ct={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Tt={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]};ht.c.add(xt,kt,wt,Tt,bt,gt,_t,At,Ct,yt),a.a.component("font-awesome-icon",vt.a);var Lt=n("SubT"),St=n.n(Lt);a.a.use(St.a);var Et,Ot=c({name:"App",data:function(){return{}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this.$root.appSettings.isDemoApp?e("div",{staticClass:"demo has-background-warning has-text-centered is-size-7-mobile"},[this._v("\n "+this._s(this.$t("commons.demo_do_not_post_sensitive_data"))+"\n ")]):this._e(),this._v(" "),e("main",{staticClass:"main-section"},[e("router-view")],1)])}),[],!1,null,null,null).exports;function It(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,a)}[c({name:"VButton",props:{color:{type:String,default:"is-link"},nativeType:{type:String,default:"submit"},isLoading:{type:Boolean,default:!1}}},(function(){var t,e=this.$createElement;return(this._self._c||e)("button",{class:(t={button:!0},t[""+this.color]=!0,t["is-loading"]=this.isLoading,t),attrs:{type:this.nativeType,disabled:this.isLoading}},[this._t("default")],2)}),[],!1,null,null,null).exports,c({name:"field-error",props:{form:{type:Object,required:!0},field:{type:String,required:!0}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.form.errors.has(this.field)?e("p",{staticClass:"help is-danger",domProps:{innerHTML:this._s(this.form.errors.get(this.field))}}):this._e()}),[],!1,null,null,null).exports,c({name:"FormWrapper",data:function(){return{}},computed:{showTag:function(){return!(!this.fail&&!this.success)}},props:{title:{type:String,default:""},fail:{type:String,default:""},success:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"columns is-centered"},[n("div",{staticClass:"form-column column is-two-thirds-tablet is-half-desktop is-one-third-widescreen is-one-quarter-fullhd"},[t.title?n("h1",{staticClass:"title",domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t._t("default"),t._v(" "),t.showTag?n("p",[t.fail?n("notification",{attrs:{message:t.fail,type:"is-danger"}}):t._e(),t._v(" "),t.success?n("notification",{attrs:{message:t.success,type:"is-success"}}):t._e()],1):t._e()],2)])}),[],!1,null,null,null).exports,c({name:"FormField",inheritAttrs:!1,data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},inputType:{type:String,default:"text"},form:{type:Object,required:!0},placeholder:{type:String,default:""},help:{type:String,default:""},hasOffset:{type:Boolean,default:!1}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:{"with-offset":t.hasOffset}},[n("label",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("div",{staticClass:"control"},["checkbox"===t.inputType?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:"checkbox"},domProps:{checked:Array.isArray(t.form[t.fieldName])?t._i(t.form[t.fieldName],null)>-1:t.form[t.fieldName]},on:{change:function(e){var n=t.form[t.fieldName],r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,t.fieldName,n.concat([null])):o>-1&&t.$set(t.form,t.fieldName,n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,t.fieldName,a)}}},"input",t.$attrs,!1)):"radio"===t.inputType?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:"radio"},domProps:{checked:t._q(t.form[t.fieldName],null)},on:{change:function(e){return t.$set(t.form,t.fieldName,null)}}},"input",t.$attrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"input",attrs:{id:t.fieldName,placeholder:t.placeholder,type:t.inputType},domProps:{value:t.form[t.fieldName]},on:{input:function(e){e.target.composing||t.$set(t.form,t.fieldName,e.target.value)}}},"input",t.$attrs,!1))]),t._v(" "),n("field-error",{attrs:{form:t.form,field:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()],1)}),[],!1,null,null,null).exports,c({name:"FormSelect",data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},options:{type:Array,required:!0},form:{type:Object,required:!0},help:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field"},[n("label",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("div",{staticClass:"control"},[n("div",{staticClass:"select"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,t.fieldName,e.target.multiple?n:n[0])}}},t._l(t.options,(function(e){return n("option",{domProps:{value:e.value}},[t._v(t._s(e.text))])})),0)])]),t._v(" "),n("field-error",{attrs:{form:t.form,field:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()],1)}),[],!1,null,null,null).exports,c({name:"FormSwitch",data:function(){return{}},props:{label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},form:{type:Object,required:!0},help:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:t.fieldName},domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[t.fieldName],expression:"form[fieldName]"}],staticClass:"switch is-thin is-info",attrs:{id:t.fieldName,type:"checkbox",name:t.fieldName},domProps:{checked:Array.isArray(t.form[t.fieldName])?t._i(t.form[t.fieldName],null)>-1:t.form[t.fieldName]},on:{change:function(e){var n=t.form[t.fieldName],r=e.target,a=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,t.fieldName,n.concat([null])):o>-1&&t.$set(t.form,t.fieldName,n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,t.fieldName,a)}}}),t._v(" "),n("label",{staticClass:"label",attrs:{for:t.fieldName}}),t._v(" "),t.help?n("p",{staticClass:"help",domProps:{innerHTML:t._s(t.help)}}):t._e()])}),[],!1,null,null,null).exports,c({name:"FormButtons",data:function(){return{}},props:{showCancelButton:{type:Boolean,default:!1},isBusy:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},caption:{type:String,default:"Submit"},cancelLandingView:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field is-grouped"},[n("div",{staticClass:"control"},[n("v-button",{attrs:{isLoading:t.isBusy,disabled:t.isDisabled}},[t._v(t._s(t.caption))])],1),t._v(" "),t.showCancelButton?n("div",{staticClass:"control"},[n("router-link",{staticClass:"button is-text",attrs:{to:{name:t.cancelLandingView}}},[t._v(t._s(t.$t("commons.cancel")))])],1):t._e()])}),[],!1,null,null,null).exports,c({name:"Notification",data:function(){return{show:!0}},props:{type:{type:String,default:"is-primary"},message:{type:String,default:""},isDeletable:{type:Boolean,default:!0}},methods:{close:function(t){t&&(this.show=!1)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{staticClass:"notification",class:t.type},[t.isDeletable?n("button",{staticClass:"delete",on:{click:t.close}}):t._e(),t._v("\n "+t._s(t.message)+"\n")]):t._e()}),[],!1,null,null,null).exports,c({name:"VueFooter",data:function(){return{}},props:{showButtons:!0},methods:{logout:(Et=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){It(o,r,a,i,s,"next",t)}function s(t){It(o,r,a,i,s,"throw",t)}i(void 0)}))}}(s.a.mark((function t(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!confirm(this.$t("auth.confirm.logout"))){t.next=7;break}return t.next=3,this.axios.get("api/logout");case 3:localStorage.removeItem("jwt"),localStorage.removeItem("user"),delete this.axios.defaults.headers.common.Authorization,this.$router.push({name:"login"});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return Et.apply(this,arguments)})}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"has-background-black-ter"},[t.showButtons?n("div",{staticClass:"columns is-gapless"},[n("div",{staticClass:"column has-text-centered"},[n("div",{staticClass:"field is-grouped"},[t._t("default")],2)])]):t._e(),t._v(" "),n("div",{staticClass:"content has-text-centered"},[n("router-link",{staticClass:"has-text-grey",attrs:{to:{name:"settings"}}},[t._v(t._s(t.$t("settings.settings")))]),t._v(" - "),n("a",{staticClass:"has-text-grey",on:{click:t.logout}},[t._v(t._s(t.$t("auth.sign_out")))])],1)])}),[],!1,null,null,null).exports].forEach((function(t){a.a.component(t.name,t)}));new a.a({el:"#app",data:{appSettings:window.appSettings,appVersion:window.appVersion},components:{App:Ot},i18n:mt,router:at})},ls82:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var a=e&&e.prototype instanceof u?e:u,o=Object.create(a.prototype),i=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return k()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function u(){}function f(){}function d(){}var p={};p[a]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(x([])));h&&h!==e&&n.call(h,a)&&(p=h);var v=d.prototype=u.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t){var e;this._invoke=function(r,a){function o(){return new Promise((function(e,o){!function e(r,a,o,i){var s=c(t[r],t,a);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,i)}),(function(t){e("throw",t,o,i)})):Promise.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,i)}))}i(s.arg)}(r,a,e,o)}))}return e=e?e.then(o,o):o()}}function y(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,y(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=v.constructor=d,d.constructor=f,d[i]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},g(b.prototype),b.prototype[o]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,a){var o=new b(s(e,n,r,a));return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},g(v),v[i]="Generator",v[a]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},o0o1:function(t,e,n){t.exports=n("ls82")},pyCd:function(t,e){},rT2p:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return g}));var r=n("7O5W"),a="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var o=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){!function(e){var n=function(t,e,r){if(!c(e)||u(e)||f(e)||d(e)||s(e))return e;var a,o=0,i=0;if(l(e))for(a=[],i=e.length;o<i;o++)a.push(n(t,e[o],r));else for(var p in a={},e)Object.prototype.hasOwnProperty.call(e,p)&&(a[t(p,r)]=n(t,e[p],r));return a},r=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))).substr(0,1).toLowerCase()+t.substr(1)},a=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",r=e.split||/(?=[A-Z])/;return t.split(r).join(n)}(t,e).toLowerCase()},i=Object.prototype.toString,s=function(t){return"function"==typeof t},c=function(t){return t===Object(t)},l=function(t){return"[object Array]"==i.call(t)},u=function(t){return"[object Date]"==i.call(t)},f=function(t){return"[object RegExp]"==i.call(t)},d=function(t){return"[object Boolean]"==i.call(t)},p=function(t){return(t-=0)==t},m=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,r){return n(e,t,r)}},h={camelize:r,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(t,e){return n(m(r,e),t)},decamelizeKeys:function(t,e){return n(m(o,e),t,e)},pascalizeKeys:function(t,e){return n(m(a,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=h:e.humps=h}(a)})),i="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=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},c=Object.assign||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},l=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n};function u(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.indexOf(":"),r=o.camelize(e.slice(0,n)),a=e.slice(n+1).trim();return t[r]=a,t}),{})}function f(t){return t.split(/\s+/).reduce((function(t,e){return t[e]=!0,t}),{})}function d(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t}),[])}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(e.children||[]).map(p.bind(null,t)),o=Object.keys(e.attributes||{}).reduce((function(t,n){var r=e.attributes[n];switch(n){case"class":t.class=f(r);break;case"style":t.style=u(r);break;default:t.attrs[n]=r}return t}),{class:{},style:{},attrs:{}}),i=r.class,s=void 0===i?{}:i,m=r.style,h=void 0===m?{}:m,v=r.attrs,g=void 0===v?{}:v,b=l(r,["class","style","attrs"]);return"string"==typeof e?e:t(e.tag,c({class:d(o.class,s),style:c({},o.style,h),attrs:c({},o.attrs,g)},b,{props:n}),a)}var m=!1;try{m=!0}catch(t){}function h(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?s({},t,e):{}}function v(t){return null===t?null:"object"===(void 0===t?"undefined":i(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}var g={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,a=n.icon,o=n.mask,i=n.symbol,l=n.title,u=v(a),f=h("classes",function(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},s(e,"fa-"+t.size,null!==t.size),s(e,"fa-rotate-"+t.rotation,null!==t.rotation),s(e,"fa-pull-"+t.pull,null!==t.pull),s(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))}(n)),d=h("transform","string"==typeof n.transform?r.d.transform(n.transform):n.transform),g=h("mask",v(o)),b=Object(r.b)(u,c({},f,d,g,{symbol:i,title:l}));if(!b)return function(){var t;!m&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find one or more icon(s)",u,g);var y=b.abstract;return p.bind(null,t)(y[0],{},e.data)}};Boolean,Boolean}).call(this,n("yLpj"))},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}},[[0,0,3]]]);