From 693a844ec8838d6b110aa0b30ca3ba011671686d Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 31 Oct 2021 22:13:42 +0100 Subject: chore(release): 1.0.1 --- assets/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/js/app.js') diff --git a/assets/js/app.js b/assets/js/app.js index 7cb93cd..d26a3dc 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1 +1 @@ -(self.webpackChunkdemo_armandphilippot_com=self.webpackChunkdemo_armandphilippot_com||[]).push([[787],{757:function(e,t,r){e.exports=r(666)},344:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{};return l().t(e,t)}function u(e){null==e||e.classList.remove("slide-out--left"),null==e||e.classList.remove("hide"),null==e||e.classList.add("slide-in--left")}function p(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){p(a,n,i,o,l,"next",e)}function l(e){p(a,n,i,o,l,"throw",e)}o(void 0)}))}}s.forEach((function(e){l().translations[e.code]=e.translations})),l().defaultLocale;var h,m,f,g,v,y,b,w,L,j=r(757),x=r.n(j);function S(){return window.innerWidth<1200}function _(){return(_=d(x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,fetch("assets/js/style.js");case 3:return t=e.sent,e.abrupt("return",200===t.status);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){[document.querySelector("header"),document.querySelector("footer")].forEach((function(e){e.classList.contains("hide")?u(e):function(e){null==e||e.classList.remove("slide-in--left"),null==e||e.classList.add("slide-out--left"),setTimeout((function(){null==e||e.classList.add("hide")}),800)}(e)}))}function E(){var e,t=document.querySelector(".project-details");t.classList.contains("hide")?(null==(e=t)||e.classList.remove("slide-out--bottom"),null==e||e.classList.remove("hide"),null==e||e.classList.add("slide-in--up")):function(e){null==e||e.classList.remove("slide-in--up"),null==e||e.classList.add("slide-out--bottom"),setTimeout((function(){null==e||e.classList.add("hide")}),800)}(t)}function A(){var e=document.querySelector(".btn--details"),t=window.location.hash;e.style.display=t?"":"none"}function z(){var e=document.querySelector("header"),t=document.querySelector("footer"),r=document.querySelector(".toolbar"),n=document.querySelector(".project-details");S()?(e.classList.add("hide"),t.classList.add("hide"),r.classList.remove("hide"),null==n||n.classList.add("hide"),null==n||n.classList.remove("fade-in")):(u(e),u(t),r.classList.add("hide"),null==n||n.classList.remove("hide"),null==n||n.classList.add("fade-in")),A()}function P(e){var t,r=document.createElement("div"),n=document.createElement("h2"),a=null!=e&&e.technologies?function(e){if(0===e.length)return[];var t=document.createElement("h3");t.classList.add("project-details__title"),t.textContent=c("main.project.details.tech",{count:e.length});var r=document.createElement("ul"),n=e.map((function(e){var t=document.createElement("li");return t.textContent=e,t}));return r.classList.add("list","list--tech"),r.append.apply(r,i(n)),[t,r]}(e.technologies):[],o=function(e){if(0===e.length)return[];var t=document.createElement("div"),r=document.createElement("h3"),n=document.createElement("ul"),a=e.map((function(e){return t=e.name,r=e.url,n=document.createElement("li"),i=document.createElement("a"),(a=document.createElement("span")).classList.add("screen-reader-text"),a.textContent=t,i.classList.add("list__link","list__link--".concat(t.toLocaleLowerCase())),i.href=r,i.appendChild(a),n.classList.add("list__item"),n.appendChild(i),n;var t,r,n,i,a}));return r.classList.add("project-details__title"),r.textContent=c("main.project.details.repo",{count:e.length}),n.classList.add("list","list--repos"),n.append.apply(n,i(a)),t.append(r,n),[r,n]}(e.repo),s=l().currentLocale();return e.description?((t=document.createElement("div")).classList.add("project-details__description"),t.textContent=e.description[s]||""):t="",n.classList.add("project-details__title"),n.textContent=c("main.project.details.about",{name:e.name}),r.classList.add("project-details"),S()||r.classList.add("fade-in"),r.replaceChildren.apply(r,[n,t].concat(i(a),i(o))),r}function T(e){var t=function(e){return a.find((function(t){return t.id===e}))}(e),r=document.querySelector(".main"),n=P(t),i=function(e){var t=document.createElement("div"),r=function(e){var t=document.createElement("iframe");return t.src=e,t}(e);return t.classList.add("project-preview","fade-in"),t.replaceChildren(r),t}(t.path),o=document.querySelector(".btn--details");S()&&n.classList.add("hide"),o.textContent=c("main.project.details.about",{name:t.name}),o.addEventListener("click",E),window.history.pushState({},t.name,"/#".concat(e)),document.title="".concat(t.name," | Demo | Armand Philippot"),r.replaceChildren(i,n)}function C(e){document.querySelectorAll(".nav__link").forEach((function(t){t.id===e?t.classList.add("nav__link--selected"):t.classList.remove("nav__link--selected")}))}w=navigator.language,L=s.find((function(e){return w.startsWith(e.code)})),b=(null==L?void 0:L.code)||"en",l().locale=b,h=document.querySelector(".branding__description"),m=document.querySelector(".nav__label"),f=document.querySelector(".copyright__license"),g=document.querySelector(".instructions"),h.textContent=c("branding.description"),m.textContent=c("nav.title"),f.title=c("footer.license"),g&&(g.textContent=c("main.instructions")),(v=document.querySelector(".nav__link--legal")).href=c("footer.legalNotice.link"),v.textContent=c("footer.legalNotice.txt"),function(){if(function(){return _.apply(this,arguments)}()){var e=document.querySelector("head"),t=document.createElement("script");t.src="assets/js/style.js",e.appendChild(t)}}(),y=document.querySelector(".nav .nav__list"),a.forEach((function(e){var t=function(e,t){var r=document.createElement("li"),n=document.createElement("a");return n.classList.add("nav__link"),n.href="/#".concat(e),n.id=e,n.textContent=t,n.addEventListener("click",(function(t){t.preventDefault(),T(e),C(e),A(),S()&&k()})),r.classList.add("nav__item"),r.appendChild(n),r}(e.id,e.name);y.appendChild(t)})),z(),window.addEventListener("resize",z),document.querySelector(".btn--menu").addEventListener("click",k),function(){var e=window.location.hash;if(e){var t=e.replace("#","");T(t),C(t)}}()},13:function(e,t,r){var n,i;i=this,n=function(){return function(e){"use strict";var t=e&&e.I18n||{},r=Array.prototype.slice,n=function(e){return("0"+e.toString()).substr(-2)},i=function(e){var t=typeof e;return"function"===t||"object"===t},a=function(e){return"function"==typeof e},o=function(e){return null!=e},l=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},s=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},c=function(e){return!0===e||!1===e},u=function(e){return null===e},p=function(e,t,r){return void 0===r||0==+r?Math[e](t):(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-r:-r)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+r:r))))},d=function(e,t){return a(e)?e(t):e},h=function(e,t){var r,n,i;for(r in t)t.hasOwnProperty(r)&&(n=t[r],"string"==typeof(i=n)||"[object String]"===Object.prototype.toString.call(i)||s(n)||c(n)||l(n)||u(n)?e[r]=n:(null==e[r]&&(e[r]={}),h(e[r],n)));return e},m={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},f={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},g={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},v={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},y=[null,"kb","mb","gb","tb"],b={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};return t.reset=function(){var e;for(e in b)this[e]=b[e]},t.initializeOptions=function(){var e;for(e in b)o(this[e])||(this[e]=b[e])},t.initializeOptions(),t.locales={},t.locales.get=function(e){var r=this[e]||this[t.locale]||this.default;return a(r)&&(r=r(e)),!1===l(r)&&(r=[r]),r},t.locales.default=function(e){var r=[],n=[];return e&&r.push(e),!e&&t.locale&&r.push(t.locale),t.fallbacks&&t.defaultLocale&&r.push(t.defaultLocale),r.forEach((function(e){var r=e.split("-"),i=null,a=null;3===r.length?(i=[r[0],r[1]].join("-"),a=r[0]):2===r.length&&(i=r[0]),-1===n.indexOf(e)&&n.push(e),t.fallbacks&&[i,a].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),r.length||r.push("en"),n},t.pluralization={},t.pluralization.get=function(e){return this[e]||this[t.locale]||this.default},t.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},t.currentLocale=function(){return this.locale||this.defaultLocale},t.isSet=o,t.lookup=function(e,t){t=t||{};var r,n,i,a,l=this.locales.get(t.locale).slice();for(i=this.getFullScope(e,t);l.length;)if(r=l.shift(),n=i.split(t.separator||this.defaultSeparator),a=this.translations[r]){for(;n.length&&null!=(a=a[n.shift()]););if(null!=a)return a}if(o(t.defaultValue))return d(t.defaultValue,e)},t.pluralizationLookupWithoutFallback=function(e,t,r){var n,a,l=this.pluralization.get(t)(e);if(i(r))for(;l.length;)if(n=l.shift(),o(r[n])){a=r[n];break}return a},t.pluralizationLookup=function(e,t,r){r=r||{};var n,a,l,s,c=this.locales.get(r.locale).slice();for(t=this.getFullScope(t,r);c.length;)if(n=c.shift(),a=t.split(r.separator||this.defaultSeparator),l=this.translations[n]){for(;a.length&&(l=l[a.shift()],i(l));)0===a.length&&(s=this.pluralizationLookupWithoutFallback(e,n,l));if(null!=s)break}return null==s&&o(r.defaultValue)&&(s=i(r.defaultValue)?this.pluralizationLookupWithoutFallback(e,r.locale,r.defaultValue):r.defaultValue,l=r.defaultValue),{message:s,translations:l}},t.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:m.meridian},t.prepareOptions=function(){for(var e,t=r.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var i in e)e.hasOwnProperty(i)&&(o(n[i])||(n[i]=e[i]));return n},t.createTranslationOptions=function(e,t){var r=[{scope:e}];return o(t.defaults)&&(r=r.concat(t.defaults)),o(t.defaultValue)&&r.push({message:t.defaultValue}),r},t.translate=function(e,t){t=t||{};var r,n=this.createTranslationOptions(e,t),a=e,s=this.prepareOptions(t);return delete s.defaultValue,n.some((function(t){if(o(t.scope)?(a=t.scope,r=this.lookup(a,s)):o(t.message)&&(r=d(t.message,e)),null!=r)return!0}),this)?("string"==typeof r?r=this.interpolate(r,t):l(r)?r=r.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):i(r)&&o(t.count)&&(r=this.pluralize(t.count,a,t)),r):this.missingTranslation(e,t)},t.interpolate=function(e,t){if(null==e)return e;t=t||{};var r,n,i,a,l=e.match(this.placeholder);if(!l)return e;for(;l.length;)i=(r=l.shift()).replace(this.placeholder,"$1"),n=o(t[i])?t[i].toString().replace(/\$/gm,"_#$#_"):i in t?this.nullPlaceholder(r,e,t):this.missingPlaceholder(r,e,t),a=new RegExp(r.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(a,n);return e.replace(/_#\$#_/g,"$")},t.pluralize=function(e,t,r){var n,i;return r=this.prepareOptions({count:String(e)},r),void 0===(i=this.pluralizationLookup(e,t,r)).translations||null==i.translations?this.missingTranslation(t,r):void 0!==i.message&&null!=i.message?this.interpolate(i.message,r):(n=this.pluralization.get(r.locale),this.missingTranslation(t+"."+n(e)[0],r))},t.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var r=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+r.replace(/_/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,r){return t+" "+r.toLowerCase()}))}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},t.missingPlaceholder=function(e,t,r){return"[missing "+e+" value]"},t.nullPlaceholder=function(){return t.missingPlaceholder.apply(t,arguments)},t.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),f);var r,n,i=e<0,a=function(e,t){return p("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString().split("."),o=[],l=t.format||"%n",s=i?"-":"";for(e=a[0],r=a[1];e.length>0;)o.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return n=o.join(t.delimiter),t.strip_insignificant_zeros&&r&&(r=r.replace(/0+$/,"")),t.precision>0&&r&&(n+=t.separator+r),(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",n).replace("%s",s)},t.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),g),this.toNumber(e,t)},t.localize=function(e,t,r){switch(r||(r={}),e){case"currency":return this.toCurrency(t,r);case"number":return e=this.lookup("number.format",r),this.toNumber(t,e);case"percentage":return this.toPercentage(t,r);default:var n;return n=e.match(/^(date|time)/)?this.toTime(e,t,r):t.toString(),this.interpolate(n,r)}},t.parseDate=function(e){var t,r,n;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var i=1;i<=6;i++)t[i]=parseInt(t[i],10)||0;t[2]-=1,n=t[7]?1e3*("0"+t[7]):null,r=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],n)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],n)}else"number"==typeof e?(r=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(r=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(r=new Date).setTime(Date.parse(e)));return r},t.strftime=function(e,r,i){i=this.lookup("date",i);var a=t.meridian();if(i||(i={}),i=this.prepareOptions(i,m),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),l=e.getDate(),s=e.getFullYear(),c=e.getMonth()+1,u=e.getHours(),p=u,d=u>11?1:0,h=e.getSeconds(),f=e.getMinutes(),g=e.getTimezoneOffset(),v=Math.floor(Math.abs(g/60)),y=Math.abs(g)-60*v,b=(g>0?"-":"+")+(v.toString().length<2?"0"+v:v)+(y.toString().length<2?"0"+y:y);return p>12?p-=12:0===p&&(p=12),(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r.replace("%a",i.abbr_day_names[o])).replace("%A",i.day_names[o])).replace("%b",i.abbr_month_names[c])).replace("%B",i.month_names[c])).replace("%d",n(l))).replace("%e",l)).replace("%-d",l)).replace("%H",n(u))).replace("%-H",u)).replace("%k",u)).replace("%I",n(p))).replace("%-I",p)).replace("%l",p)).replace("%m",n(c))).replace("%-m",c)).replace("%M",n(f))).replace("%-M",f)).replace("%p",a[d])).replace("%P",a[d].toLowerCase())).replace("%S",n(h))).replace("%-S",h)).replace("%w",o)).replace("%y",n(s))).replace("%-y",n(s).replace(/^0+/,""))).replace("%Y",s)).replace("%z",b)).replace("%Z",b)},t.toTime=function(e,t,r){var n=this.parseDate(t),i=this.lookup(e,r);if(null==n)return n;var a=n.toString();return a.match(/invalid/i)?a:i?this.strftime(n,i,r):a},t.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),v),this.toNumber(e,t)},t.toHumanSize=function(e,t){for(var r,n,i,a=e,o=0;a>=1024&&o<4;)a/=1024,o+=1;return 0===o?(i=this.getFullScope("number.human.storage_units.units.byte",t),r=this.t(i,{count:a}),n=0):(i=this.getFullScope("number.human.storage_units.units."+y[o],t),r=this.t(i),n=a-Math.floor(a)==0?0:1),t=this.prepareOptions(t,{unit:r,precision:n,format:"%n%u",delimiter:""}),this.toNumber(a,t)},t.getFullScope=function(e,t){return t=t||{},l(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},t.extend=function(e,t){return void 0===e&&void 0===t?{}:h(e,t)},t.t=t.translate.bind(t),t.l=t.localize.bind(t),t.p=t.pluralize.bind(t),t}(i)}.call(t,r,t,e),void 0===n||(e.exports=n)},666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),o=new A(n||[]);return a._invoke=function(e,t,r){var n=p;return function(i,a){if(n===h)throw new Error("Generator is already running");if(n===m){if("throw"===i)throw a;return P()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var l=_(o,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=u(e,t,r);if("normal"===s.type){if(n=r.done?m:d,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=m,r.method="throw",r.arg=s.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",f={};function g(){}function v(){}function y(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,L=w&&w(w(z([])));L&&L!==r&&n.call(L,a)&&(b=L);var j=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,a,o,l){var s=u(e[i],e,a);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(p).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function _(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method))return f;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=u(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,f):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function z(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:z(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),f}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},function(e){e(e.s=344)}]); \ No newline at end of file +(self.webpackChunkdemo_armandphilippot_com=self.webpackChunkdemo_armandphilippot_com||[]).push([[787],{174:function(e,t,n){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return g().t(e,t)}function y(e){null==e||e.classList.remove("slide-out--left"),null==e||e.classList.remove("hide"),null==e||e.classList.add("slide-in--left")}function S(){return window.innerWidth<1200}function j(){[document.querySelector("header"),document.querySelector("footer")].forEach((function(e){e.classList.contains("hide")?y(e):function(e){null==e||e.classList.remove("slide-in--left"),null==e||e.classList.add("slide-out--left"),setTimeout((function(){null==e||e.classList.add("hide")}),800)}(e)}))}function L(){var e,t=document.querySelector(".project-details");t.classList.contains("hide")?(null==(e=t)||e.classList.remove("slide-out--bottom"),null==e||e.classList.remove("hide"),null==e||e.classList.add("slide-in--up")):function(e){null==e||e.classList.remove("slide-in--up"),null==e||e.classList.add("slide-out--bottom"),setTimeout((function(){null==e||e.classList.add("hide")}),800)}(t)}function _(){var e=document.querySelector(".btn--details"),t=window.location.hash;e.style.display=t?"":"none"}function k(){var e=document.querySelector("header"),t=document.querySelector("footer"),n=document.querySelector(".toolbar"),a=document.querySelector(".project-details");S()?(e.classList.add("hide"),t.classList.add("hide"),n.classList.remove("hide"),null==a||a.classList.add("hide"),null==a||a.classList.remove("fade-in")):(y(e),y(t),n.classList.add("hide"),null==a||a.classList.remove("hide"),null==a||a.classList.add("fade-in")),_()}function z(e){var t,n=document.createElement("div"),a=document.createElement("h2"),r=null!=e&&e.technologies?function(e){if(0===e.length)return[];var t=document.createElement("h3");t.classList.add("project-details__title"),t.textContent=v("main.project.details.tech",{count:e.length});var n=document.createElement("ul"),a=e.map((function(e){var t=document.createElement("li");return t.textContent=e,t}));return n.classList.add("list","list--tech"),n.append.apply(n,i(a)),[t,n]}(e.technologies):[],o=function(e){if(0===e.length)return[];var t=document.createElement("div"),n=document.createElement("h3"),a=document.createElement("ul"),r=e.map((function(e){return t=e.name,n=e.url,a=document.createElement("li"),i=document.createElement("a"),(r=document.createElement("span")).classList.add("screen-reader-text"),r.textContent=t,i.classList.add("list__link","list__link--".concat(t.toLocaleLowerCase())),i.href=n,i.appendChild(r),a.classList.add("list__item"),a.appendChild(i),a;var t,n,a,i,r}));return n.classList.add("project-details__title"),n.textContent=v("main.project.details.repo",{count:e.length}),a.classList.add("list","list--repos"),a.append.apply(a,i(r)),t.append(n,a),[n,a]}(e.repo),l=g().currentLocale();return e.description?((t=document.createElement("div")).classList.add("project-details__description"),t.textContent=e.description[l]||""):t="",a.classList.add("project-details__title"),a.textContent=v("main.project.details.about",{name:e.name}),n.classList.add("project-details"),S()||n.classList.add("fade-in"),n.replaceChildren.apply(n,[a,t].concat(i(r),i(o))),n}function A(e){var t=function(e){return h.find((function(t){return t.id===e}))}(e),n=document.querySelector(".main"),a=z(t),i=function(e){var t=document.createElement("div"),n=function(e){var t=document.createElement("iframe");return t.src=e,t}(e);return t.classList.add("project-preview","fade-in"),t.replaceChildren(n),t}(t.path),r=document.querySelector(".btn--details");S()&&a.classList.add("hide"),r.textContent=v("main.project.details.about",{name:t.name}),r.addEventListener("click",L),window.history.pushState({},t.name,"/#".concat(e)),document.title="".concat(t.name," | Demo | Armand Philippot"),n.replaceChildren(i,a)}function x(e){document.querySelectorAll(".nav__link").forEach((function(t){t.id===e?t.classList.add("nav__link--selected"):t.classList.remove("nav__link--selected")}))}b.forEach((function(e){g().translations[e.code]=e.translations})),g().defaultLocale,d=navigator.language,m=b.find((function(e){return d.startsWith(e.code)})),p=(null==m?void 0:m.code)||"en",g().locale=p,r=document.querySelector(".branding__description"),o=document.querySelector(".nav__label"),l=document.querySelector(".copyright__license"),s=document.querySelector(".instructions"),r.textContent=v("branding.description"),o.textContent=v("nav.title"),l.title=v("footer.license"),s&&(s.textContent=v("main.instructions")),(c=document.querySelector(".nav__link--legal")).href=v("footer.legalNotice.link"),c.textContent=v("footer.legalNotice.txt"),u=document.querySelector(".nav .nav__list"),h.forEach((function(e){var t=function(e,t){var n=document.createElement("li"),a=document.createElement("a");return a.classList.add("nav__link"),a.href="/#".concat(e),a.id=e,a.textContent=t,a.addEventListener("click",(function(t){t.preventDefault(),A(e),x(e),_(),S()&&j()})),n.classList.add("nav__item"),n.appendChild(a),n}(e.id,e.name);u.appendChild(t)})),k(),window.addEventListener("resize",k),document.querySelector(".btn--menu").addEventListener("click",j),function(){var e=window.location.hash;if(e){var t=e.replace("#","");A(t),x(t)}}()},13:function(e,t,n){var a,i;i=this,a=function(){return function(e){"use strict";var t=e&&e.I18n||{},n=Array.prototype.slice,a=function(e){return("0"+e.toString()).substr(-2)},i=function(e){var t=typeof e;return"function"===t||"object"===t},r=function(e){return"function"==typeof e},o=function(e){return null!=e},l=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},s=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},c=function(e){return!0===e||!1===e},u=function(e){return null===e},p=function(e,t,n){return void 0===n||0==+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},d=function(e,t){return r(e)?e(t):e},m=function(e,t){var n,a,i;for(n in t)t.hasOwnProperty(n)&&(a=t[n],"string"==typeof(i=a)||"[object String]"===Object.prototype.toString.call(i)||s(a)||c(a)||l(a)||u(a)?e[n]=a:(null==e[n]&&(e[n]={}),m(e[n],a)));return e},h={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},f={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},g={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},b={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},v=[null,"kb","mb","gb","tb"],y={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};return t.reset=function(){var e;for(e in y)this[e]=y[e]},t.initializeOptions=function(){var e;for(e in y)o(this[e])||(this[e]=y[e])},t.initializeOptions(),t.locales={},t.locales.get=function(e){var n=this[e]||this[t.locale]||this.default;return r(n)&&(n=n(e)),!1===l(n)&&(n=[n]),n},t.locales.default=function(e){var n=[],a=[];return e&&n.push(e),!e&&t.locale&&n.push(t.locale),t.fallbacks&&t.defaultLocale&&n.push(t.defaultLocale),n.forEach((function(e){var n=e.split("-"),i=null,r=null;3===n.length?(i=[n[0],n[1]].join("-"),r=n[0]):2===n.length&&(i=n[0]),-1===a.indexOf(e)&&a.push(e),t.fallbacks&&[i,r].forEach((function(t){null!=t&&t!==e&&-1===a.indexOf(t)&&a.push(t)}))})),n.length||n.push("en"),a},t.pluralization={},t.pluralization.get=function(e){return this[e]||this[t.locale]||this.default},t.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},t.currentLocale=function(){return this.locale||this.defaultLocale},t.isSet=o,t.lookup=function(e,t){t=t||{};var n,a,i,r,l=this.locales.get(t.locale).slice();for(i=this.getFullScope(e,t);l.length;)if(n=l.shift(),a=i.split(t.separator||this.defaultSeparator),r=this.translations[n]){for(;a.length&&null!=(r=r[a.shift()]););if(null!=r)return r}if(o(t.defaultValue))return d(t.defaultValue,e)},t.pluralizationLookupWithoutFallback=function(e,t,n){var a,r,l=this.pluralization.get(t)(e);if(i(n))for(;l.length;)if(a=l.shift(),o(n[a])){r=n[a];break}return r},t.pluralizationLookup=function(e,t,n){n=n||{};var a,r,l,s,c=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);c.length;)if(a=c.shift(),r=t.split(n.separator||this.defaultSeparator),l=this.translations[a]){for(;r.length&&(l=l[r.shift()],i(l));)0===r.length&&(s=this.pluralizationLookupWithoutFallback(e,a,l));if(null!=s)break}return null==s&&o(n.defaultValue)&&(s=i(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,l=n.defaultValue),{message:s,translations:l}},t.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:h.meridian},t.prepareOptions=function(){for(var e,t=n.call(arguments),a={};t.length;)if("object"==typeof(e=t.shift()))for(var i in e)e.hasOwnProperty(i)&&(o(a[i])||(a[i]=e[i]));return a},t.createTranslationOptions=function(e,t){var n=[{scope:e}];return o(t.defaults)&&(n=n.concat(t.defaults)),o(t.defaultValue)&&n.push({message:t.defaultValue}),n},t.translate=function(e,t){t=t||{};var n,a=this.createTranslationOptions(e,t),r=e,s=this.prepareOptions(t);return delete s.defaultValue,a.some((function(t){if(o(t.scope)?(r=t.scope,n=this.lookup(r,s)):o(t.message)&&(n=d(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):l(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):i(n)&&o(t.count)&&(n=this.pluralize(t.count,r,t)),n):this.missingTranslation(e,t)},t.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,a,i,r,l=e.match(this.placeholder);if(!l)return e;for(;l.length;)i=(n=l.shift()).replace(this.placeholder,"$1"),a=o(t[i])?t[i].toString().replace(/\$/gm,"_#$#_"):i in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),r=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(r,a);return e.replace(/_#\$#_/g,"$")},t.pluralize=function(e,t,n){var a,i;return n=this.prepareOptions({count:String(e)},n),void 0===(i=this.pluralizationLookup(e,t,n)).translations||null==i.translations?this.missingTranslation(t,n):void 0!==i.message&&null!=i.message?this.interpolate(i.message,n):(a=this.pluralization.get(n.locale),this.missingTranslation(t+"."+a(e)[0],n))},t.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,n){return t+" "+n.toLowerCase()}))}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},t.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},t.nullPlaceholder=function(){return t.missingPlaceholder.apply(t,arguments)},t.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),f);var n,a,i=e<0,r=function(e,t){return p("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString().split("."),o=[],l=t.format||"%n",s=i?"-":"";for(e=r[0],n=r[1];e.length>0;)o.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return a=o.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(a+=t.separator+n),(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",a).replace("%s",s)},t.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),g),this.toNumber(e,t)},t.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var a;return a=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(a,n)}},t.parseDate=function(e){var t,n,a;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var i=1;i<=6;i++)t[i]=parseInt(t[i],10)||0;t[2]-=1,a=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],a)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],a)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},t.strftime=function(e,n,i){i=this.lookup("date",i);var r=t.meridian();if(i||(i={}),i=this.prepareOptions(i,h),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),l=e.getDate(),s=e.getFullYear(),c=e.getMonth()+1,u=e.getHours(),p=u,d=u>11?1:0,m=e.getSeconds(),f=e.getMinutes(),g=e.getTimezoneOffset(),b=Math.floor(Math.abs(g/60)),v=Math.abs(g)-60*b,y=(g>0?"-":"+")+(b.toString().length<2?"0"+b:b)+(v.toString().length<2?"0"+v:v);return p>12?p-=12:0===p&&(p=12),(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n.replace("%a",i.abbr_day_names[o])).replace("%A",i.day_names[o])).replace("%b",i.abbr_month_names[c])).replace("%B",i.month_names[c])).replace("%d",a(l))).replace("%e",l)).replace("%-d",l)).replace("%H",a(u))).replace("%-H",u)).replace("%k",u)).replace("%I",a(p))).replace("%-I",p)).replace("%l",p)).replace("%m",a(c))).replace("%-m",c)).replace("%M",a(f))).replace("%-M",f)).replace("%p",r[d])).replace("%P",r[d].toLowerCase())).replace("%S",a(m))).replace("%-S",m)).replace("%w",o)).replace("%y",a(s))).replace("%-y",a(s).replace(/^0+/,""))).replace("%Y",s)).replace("%z",y)).replace("%Z",y)},t.toTime=function(e,t,n){var a=this.parseDate(t),i=this.lookup(e,n);if(null==a)return a;var r=a.toString();return r.match(/invalid/i)?r:i?this.strftime(a,i,n):r},t.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),b),this.toNumber(e,t)},t.toHumanSize=function(e,t){for(var n,a,i,r=e,o=0;r>=1024&&o<4;)r/=1024,o+=1;return 0===o?(i=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(i,{count:r}),a=0):(i=this.getFullScope("number.human.storage_units.units."+v[o],t),n=this.t(i),a=r-Math.floor(r)==0?0:1),t=this.prepareOptions(t,{unit:n,precision:a,format:"%n%u",delimiter:""}),this.toNumber(r,t)},t.getFullScope=function(e,t){return t=t||{},l(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},t.extend=function(e,t){return void 0===e&&void 0===t?{}:m(e,t)},t.t=t.translate.bind(t),t.l=t.localize.bind(t),t.p=t.pluralize.bind(t),t}(i)}.call(t,n,t,e),void 0===a||(e.exports=a)}},function(e){e(e.s=174)}]); \ No newline at end of file -- cgit v1.2.3