IMPR: Gallery Next/Prev functionality

This commit is contained in:
Tony Air 2021-01-31 07:04:51 +07:00
parent 0a8017e5e0
commit fbb1a9bd8e
16 changed files with 168 additions and 1171 deletions

2
dist/css/app.css vendored
View File

@ -1 +1 @@
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.meta-MetaWindow .meta-error,.meta-MetaWindow .meta-spinner,.meta-MetaWindow .meta-spinner_embed{display:none;align-items:center;justify-content:center;z-index:2;text-align:center}.meta-MetaWindow .meta-spinner,.meta-MetaWindow .meta-spinner_embed{font-size:2rem;color:#fff;font-weight:700;text-transform:uppercase;position:absolute;left:0;right:0;top:0;bottom:0}.meta-MetaWindow .meta-spinner_embed{display:flex}.meta-MetaWindow-overlay{background:rgba(96,125,139,.8);display:none;position:fixed;left:0;right:0;top:0;bottom:0;align-items:center;justify-content:center}.meta-MetaWindow-overlay__loading .meta-spinner,.meta-MetaWindow-overlay__open{display:flex}.meta-MetaWindow-overlay__error .meta-content{justify-content:center}.meta-MetaWindow-overlay__error .meta-error{display:flex}.meta-MetaWindow .meta-close{font-size:1.2rem;color:#212121;text-shadow:#fff 0 0 .25em;position:absolute;top:0;right:0;padding:.5em .651em;border:0;background:none;z-index:2}.meta-MetaWindow .meta-close:focus,.meta-MetaWindow .meta-close:hover{color:#eceff1;background:#2196f3;text-shadow:none}.meta-MetaWindow .meta-content{position:relative;width:90%;height:90%;display:flex;flex-direction:column}.meta-MetaWindow .meta-wrap{width:100%;overflow:auto}.meta-MetaWindow .meta-wrap,.meta-MetaWindow .meta-wrap img{max-height:100%;max-width:100%}.meta-MetaWindow__text .meta-close{background:#fff}.meta-MetaWindow__text .meta-content{background:#fff;color:#000;padding:1rem 0 1rem 1rem}.meta-MetaWindow__text .meta-wrap{padding-right:1rem}.meta-MetaWindow__image .meta-wrap,.meta-MetaWindow__image .typography,.meta-MetaWindow__video .meta-wrap,.meta-MetaWindow__video .typography{display:flex;justify-content:center;align-items:center;flex-direction:column;max-height:100%;max-width:100%;min-height:100%}.meta-MetaWindow__embed:before,.meta-MetaWindow__video:before{content:"";display:block;position:relative;width:100%;padding-top:56.25%}.meta-MetaWindow__embed a[rel="nofollow noreferrer noopener"],.meta-MetaWindow__video a[rel="nofollow noreferrer noopener"]{color:#fff;font-size:1.2rem;font-weight:700}.meta-MetaWindow__embed a[rel="nofollow noreferrer noopener"]:before,.meta-MetaWindow__video a[rel="nofollow noreferrer noopener"]:before{content:"Unable to load. Please follow the provided link: ";display:block}.meta-MetaWindow__embed iframe,.meta-MetaWindow__video iframe{position:absolute;top:0;left:0;width:100%;height:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.meta-MetaWindow .meta-error,.meta-MetaWindow .meta-spinner,.meta-MetaWindow .meta-spinner_embed{display:none;align-items:center;justify-content:center;z-index:2;text-align:center}.meta-MetaWindow .meta-spinner,.meta-MetaWindow .meta-spinner_embed{font-size:2rem;color:#fff;font-weight:700;text-transform:uppercase;position:absolute;left:0;right:0;top:0;bottom:0}.meta-MetaWindow .meta-spinner_embed{display:flex}.meta-MetaWindow-overlay{background:rgba(96,125,139,.8);display:none;position:fixed;left:0;right:0;top:0;bottom:0;align-items:center;justify-content:center}.meta-MetaWindow-overlay__loading .meta-spinner,.meta-MetaWindow-overlay__open{display:flex}.meta-MetaWindow-overlay__error .meta-content{justify-content:center}.meta-MetaWindow-overlay__error .meta-error{display:flex}.meta-MetaWindow .meta-nav{font-size:2rem;color:#212121;text-shadow:#fff 0 0 .25em;border:0;background:none;z-index:2}.meta-MetaWindow .meta-nav:focus,.meta-MetaWindow .meta-nav:hover{color:#eceff1;background:#2196f3;text-shadow:none}.meta-MetaWindow .meta-nav-arrow{position:absolute;bottom:0;top:auto;display:flex;justify-content:center;align-items:center;font-size:2.5rem;padding:.25rem .5rem}@media (min-width:992px){.meta-MetaWindow .meta-nav-arrow{top:0;bottom:0}}.meta-MetaWindow .meta-nav-arrow__next{right:0}.meta-MetaWindow .meta-nav-arrow__prev{left:0}@media (min-width:992px){.meta-MetaWindow .meta-nav-arrow__next{right:-3rem}.meta-MetaWindow .meta-nav-arrow__prev{left:-3rem}}.meta-MetaWindow .meta-close{position:absolute;top:-3rem;right:0;width:1.25em}@media (min-width:992px){.meta-MetaWindow .meta-close{top:-3rem;right:-3rem}}.meta-MetaWindow .meta-content{position:relative;width:100%;height:80%;display:flex;flex-direction:column}@media (min-width:992px){.meta-MetaWindow .meta-content{width:90%;height:90%;width:calc(90% - 3rem);height:calc(90% - 3rem)}}.meta-MetaWindow .meta-wrap{width:100%;overflow:auto}.meta-MetaWindow .meta-wrap,.meta-MetaWindow .meta-wrap img{max-height:100%;max-width:100%}.meta-MetaWindow__text .meta-nav{background:#fff}.meta-MetaWindow__text .meta-content{background:#fff;color:#000;padding:1rem 0 1rem 1rem}.meta-MetaWindow__text .meta-wrap{padding-right:1rem}.meta-MetaWindow__image .meta-wrap,.meta-MetaWindow__image .typography,.meta-MetaWindow__video .meta-wrap,.meta-MetaWindow__video .typography{display:flex;justify-content:center;align-items:center;flex-direction:column;max-height:100%;max-width:100%;min-height:100%}.meta-MetaWindow__embed:before,.meta-MetaWindow__video:before{content:"";display:block;position:relative;width:100%;padding-top:56.25%}.meta-MetaWindow__embed a[rel="nofollow noreferrer noopener"],.meta-MetaWindow__video a[rel="nofollow noreferrer noopener"]{color:#fff;font-size:1.2rem;font-weight:700}.meta-MetaWindow__embed a[rel="nofollow noreferrer noopener"]:before,.meta-MetaWindow__video a[rel="nofollow noreferrer noopener"]:before{content:"Unable to load. Please follow the provided link: ";display:block}.meta-MetaWindow__embed iframe,.meta-MetaWindow__video iframe{position:absolute;top:0;left:0;width:100%;height:100%}

2
dist/index.html vendored
View File

@ -1,3 +1,3 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="description" content="Meta Lightbox"/><meta name="author" content="Tony Air"/><title>Meta-lightbox Demo</title><style>.wrapper {
padding: 2rem;
}</style><link href="css/app.css" rel="stylesheet"></head><body><div class="wrapper"><h1>Meta-lightbox Demo</h1>NODE_ENV: production<style>[data-toggle=lightbox]:focus,[data-toggle=lightbox]:hover{text-decoration:underline}</style><h2>Loading data</h2><p><a href="../src/img/photo1.png" data-toggle="lightbox" data-lightbox-gallery="demo" data-title="That's first link">Load an Image</a><br/><a href="../src/test.json" data-toggle="lightbox">Load JSON</a><br/><a href="../src/test-pajax.html" data-toggle="lightbox">Load Partial AJAX HTML</a><br/><a href="../src/not-found.html" data-toggle="lightbox">Not Found test</a></p><h2>Embeds</h2><p><a href="https://www.youtube.com/watch?v=WYvZZYthDRI" data-toggle="lightbox" data-embed="true">Embed Youtube link</a><br/><a href="https://vimeo.com/26216129" data-toggle="lightbox" data-embed="true">Embed Vimeo link</a><br/><a href="https://soundcloud.com/littlenapoleon/led-zeppelin-vs-rolling-stones" data-toggle="lightbox" data-embed="true">Embed SoundCloud link</a><br/><a href="https://www.instagram.com/p/CKl5n87hf7R/" data-toggle="lightbox" data-embed="true">Embed Instagram</a></p><h2>Other</h2><p><a href="../src/img/photo2.jpg" data-toggle="lightbox" data-lightbox-gallery="demo">Use [data-toggle="lightbox"] attribute to attach lightbox action and [href] to specify URL.</a></p><p><a href="../src/img/photo1.png" data-toggle="lightbox" data-lightbox-gallery="demo" data-title="Use data-title attribute to specify lightbox title">Use [data-lightbox-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with next/prev arrows</a></p><p data-toggle="lightbox" data-href="https://youtu.be/GgnClrx8N2k" data-lightbox-gallery="demo" data-title="Yes you can link vimeo and youtube videos as long as AJAX content">Use [data-toggle="lightbox"] + [data-href] attribute to toggle lightbox on regular elements. <b>Click me!</b></p><p><b>Note:</b> You can add jquery-zoom plugin and lighbox will zoom photos on hover.</p><div id="App"></div></div><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css"/><script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script><script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script><script src="js/app.js"></script></body></html>
}</style><link href="css/app.css" rel="stylesheet"></head><body><div class="wrapper"><h1>Meta-lightbox Demo</h1>NODE_ENV: production<style>[data-toggle=lightbox]:focus,[data-toggle=lightbox]:hover{text-decoration:underline}</style><h2>Loading data</h2><p><a href="../src/img/photo1.png" data-toggle="lightbox" data-gallery="demo" data-title="That's first link">Load an Image</a><br/><a href="../src/test.json" data-toggle="lightbox">Load JSON</a><br/><a href="../src/test-pajax.html" data-toggle="lightbox">Load Partial AJAX HTML</a><br/><a href="../src/not-found.html" data-toggle="lightbox">Not Found test</a></p><h2>Embeds</h2><p><a href="https://www.youtube.com/watch?v=WYvZZYthDRI" data-toggle="lightbox" data-embed="true">Embed Youtube link</a><br/><a href="https://vimeo.com/26216129" data-toggle="lightbox" data-embed="true">Embed Vimeo link</a><br/><a href="https://soundcloud.com/littlenapoleon/led-zeppelin-vs-rolling-stones" data-toggle="lightbox" data-embed="true">Embed SoundCloud link</a><br/><a href="https://www.instagram.com/p/CKl5n87hf7R/" data-toggle="lightbox" data-embed="true">Embed Instagram</a></p><h2>Other</h2><p><a href="../src/img/photo2.jpg" data-toggle="lightbox" data-gallery="demo">Use [data-toggle="lightbox"] attribute to attach lightbox action and [href] to specify URL.</a></p><p><a href="../src/img/photo1.png" data-toggle="lightbox" data-gallery="demo" data-title="Use data-title attribute to specify lightbox title">Use [data-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with next/prev arrows</a></p><p data-toggle="lightbox" data-href="https://youtu.be/GgnClrx8N2k" data-gallery="demo" data-title="Yes you can link vimeo and youtube videos as long as AJAX content">Use [data-toggle="lightbox"] + [data-href] attribute to toggle lightbox on regular elements. <b>Click me!</b></p><div id="App"></div></div><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css"/><script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script><script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script><script src="js/app.js"></script></body></html>

2
dist/js/app.js vendored
View File

@ -1 +1 @@
!function(){var e={940:function(e,t,r){e.exports=r(412)},355:function(e,t,r){"use strict";var n=r(854),i=r(706),h=r(575),d=r(778),g=r(205),y=r(17),b=r(426),v=r(348);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var w=e.data,_=e.headers;n.isFormData(w)&&delete _["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var E=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";_.Authorization="Basic "+btoa(E+":"+S)}var C=g(e.baseURL,e.url);if(x.open(e.method.toUpperCase(),d(C,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,x.onreadystatechange=function handleLoad(){if(x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in x?y(x.getAllResponseHeaders()):null,h={data:e.responseType&&"text"!==e.responseType?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:n,config:e,request:x};i(t,r,h),x=null}},x.onabort=function handleAbort(){x&&(r(v("Request aborted",e,"ECONNABORTED",x)),x=null)},x.onerror=function handleError(){r(v("Network Error",e,null,x)),x=null},x.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(v(t,e,"ECONNABORTED",x)),x=null},n.isStandardBrowserEnv()){var j=(e.withCredentials||b(C))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;j&&(_[e.xsrfHeaderName]=j)}if("setRequestHeader"in x&&n.forEach(_,(function setRequestHeader(e,t){"undefined"===typeof w&&"content-type"===t.toLowerCase()?delete _[t]:x.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),e.responseType)try{x.responseType=e.responseType}catch(O){if("json"!==e.responseType)throw O}"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){x&&(x.abort(),r(e),x=null)})),w||(w=null),x.send(w)}))}},412:function(e,t,r){"use strict";var n=r(854),i=r(810),h=r(769),d=r(624);function createInstance(e){var t=new h(e),r=i(h.prototype.request,t);return n.extend(r,h.prototype,t),n.extend(r,t),r}var g=createInstance(r(339));g.Axios=h,g.create=function create(e){return createInstance(d(g.defaults,e))},g.Cancel=r(499),g.CancelToken=r(294),g.isCancel=r(949),g.all=function all(e){return Promise.all(e)},g.spread=r(656),g.isAxiosError=r(606),e.exports=g,e.exports.default=g},499:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},294:function(e,t,r){"use strict";var n=r(499);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;e((function cancel(e){r.reason||(r.reason=new n(e),t(r.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},949:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},769:function(e,t,r){"use strict";var n=r(854),i=r(778),h=r(637),d=r(736),g=r(624);function Axios(e){this.defaults=e,this.interceptors={request:new h,response:new h}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=g(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[d,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},Axios.prototype.getUri=function getUri(e){return e=g(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(g(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(g(n||{},{method:e,url:t,data:r}))}})),e.exports=Axios},637:function(e,t,r){"use strict";var n=r(854);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},205:function(e,t,r){"use strict";var n=r(797),i=r(75);e.exports=function buildFullPath(e,t){return e&&!n(t)?i(e,t):t}},348:function(e,t,r){"use strict";var n=r(177);e.exports=function createError(e,t,r,i,h){var d=new Error(e);return n(d,t,r,i,h)}},736:function(e,t,r){"use strict";var n=r(854),i=r(92),h=r(949),d=r(339);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||d.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return h(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},177:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},624:function(e,t,r){"use strict";var n=r(854);e.exports=function mergeConfig(e,t){t=t||{};var r={},i=["url","method","data"],h=["headers","auth","proxy","params"],d=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],g=["validateStatus"];function getMergedValue(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function mergeDeepProperties(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=getMergedValue(void 0,e[i])):r[i]=getMergedValue(e[i],t[i])}n.forEach(i,(function valueFromConfig2(e){n.isUndefined(t[e])||(r[e]=getMergedValue(void 0,t[e]))})),n.forEach(h,mergeDeepProperties),n.forEach(d,(function defaultToConfig2(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=getMergedValue(void 0,e[i])):r[i]=getMergedValue(void 0,t[i])})),n.forEach(g,(function merge(n){n in t?r[n]=getMergedValue(e[n],t[n]):n in e&&(r[n]=getMergedValue(void 0,e[n]))}));var y=i.concat(h).concat(d).concat(g),b=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===y.indexOf(e)}));return n.forEach(b,mergeDeepProperties),r}},706:function(e,t,r){"use strict";var n=r(348);e.exports=function settle(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},92:function(e,t,r){"use strict";var n=r(854);e.exports=function transformData(e,t,r){return n.forEach(r,(function transform(r){e=r(e,t)})),e}},339:function(e,t,r){"use strict";var n=r(854),i=r(852),h={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=r(355)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){d.headers[e]={}})),n.forEach(["post","put","patch"],(function forEachMethodWithData(e){d.headers[e]=n.merge(h)})),e.exports=d},810:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},778:function(e,t,r){"use strict";var n=r(854);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var h=[];n.forEach(t,(function serialize(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function parseValue(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),h.push(encode(t)+"="+encode(e))})))})),i=h.join("&")}if(i){var d=e.indexOf("#");-1!==d&&(e=e.slice(0,d)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},75:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},575:function(e,t,r){"use strict";var n=r(854);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,i,h,d){var g=[];g.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),n.isString(i)&&g.push("path="+i),n.isString(h)&&g.push("domain="+h),!0===d&&g.push("secure"),document.cookie=g.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},797:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},606:function(e){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function isAxiosError(e){return"object"===_typeof(e)&&!0===e.isAxiosError}},426:function(e,t,r){"use strict";var n=r(854);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function resolveURL(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var r=n.isString(t)?resolveURL(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function isURLSameOrigin(){return!0}},852:function(e,t,r){"use strict";var n=r(854);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},17:function(e,t,r){"use strict";var n=r(854),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,r,h,d={};return e?(n.forEach(e.split("\n"),(function parser(e){if(h=e.indexOf(":"),t=n.trim(e.substr(0,h)).toLowerCase(),r=n.trim(e.substr(h+1)),t){if(d[t]&&i.indexOf(t)>=0)return;d[t]="set-cookie"===t?(d[t]?d[t]:[]).concat([r]):d[t]?d[t]+", "+r:r}})),d):d}},656:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},854:function(e,t,r){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=r(810),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:isArray,isArrayBuffer:function isArrayBuffer(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function isArrayBufferView(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function isString(e){return"string"===typeof e},isNumber:function isNumber(e){return"number"===typeof e},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function isDate(e){return"[object Date]"===i.call(e)},isFile:function isFile(e){return"[object File]"===i.call(e)},isBlob:function isBlob(e){return"[object Blob]"===i.call(e)},isFunction:isFunction,isStream:function isStream(e){return isObject(e)&&isFunction(e.pipe)},isURLSearchParams:function isURLSearchParams(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(t,r){isPlainObject(e[r])&&isPlainObject(t)?e[r]=merge(e[r],t):isPlainObject(t)?e[r]=merge({},t):isArray(t)?e[r]=t.slice():e[r]=t}for(var t=0,r=arguments.length;t<r;t++)forEach(arguments[t],assignValue);return e},extend:function extend(e,t,r){return forEach(t,(function assignValue(t,i){e[i]=r&&"function"===typeof t?n(t,r):t})),e},trim:function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},524:function(e){"use strict";function balanced(e,t,r){e instanceof RegExp&&(e=maybeMatch(e,r)),t instanceof RegExp&&(t=maybeMatch(t,r));var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}function range(e,t,r){var n,i,h,d,g,y=r.indexOf(e),b=r.indexOf(t,y+1),v=y;if(y>=0&&b>0){for(n=[],h=r.length;v>=0&&!g;)v==y?(n.push(v),y=r.indexOf(e,v+1)):1==n.length?g=[n.pop(),b]:((i=n.pop())<h&&(h=i,d=b),b=r.indexOf(t,v+1)),v=y<b&&y>=0?y:b;n.length&&(g=[h,d])}return g}e.exports=balanced,balanced.range=range},281:function(e,t,r){var n=r(524);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(h).split("\\}").join(d).split("\\,").join(g).split("\\.").join(y)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",h="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",g="\0COMMA"+Math.random()+"\0",y="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(h).join("{").split(d).join("}").split(g).join(",").split(y).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,h=r.body,d=r.post,g=i.split(",");g[g.length-1]+="{"+h+"}";var y=parseCommaParts(d);return d.length&&(g[g.length-1]+=y.shift(),g.push.apply(g,y)),t.push.apply(t,g),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[],i=n("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var h,g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),b=g||y,v=i.body.indexOf(",")>=0;if(!b&&!v)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+d+i.post):[e];if(b)h=i.body.split(/\.\./);else if(1===(h=parseCommaParts(i.body)).length&&1===(h=expand(h[0],!1).map(embrace)).length)return(x=i.post.length?expand(i.post,!1):[""]).map((function(e){return i.pre+h[0]+e}));var w,_=i.pre,x=i.post.length?expand(i.post,!1):[""];if(b){var E=numeric(h[0]),S=numeric(h[1]),C=Math.max(h[0].length,h[1].length),j=3==h.length?Math.abs(numeric(h[2])):1,O=lte;S<E&&(j*=-1,O=gte);var A=h.some(isPadded);w=[];for(var R=E;O(R,S);R+=j){var T;if(y)"\\"===(T=String.fromCharCode(R))&&(T="");else if(T=String(R),A){var k=C-T.length;if(k>0){var P=new Array(k+1).join("0");T=R<0?"-"+P+T.slice(1):P+T}}w.push(T)}}else{w=[];for(var M=0;M<h.length;M++)w.push.apply(w,expand(h[M],!1))}for(M=0;M<w.length;M++)for(var I=0;I<x.length;I++){var N=_+w[M]+x[I];(!t||b||N)&&r.push(N)}return r}},519:function(e,t,r){e.exports=minimatch,minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(386)}catch(_){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},h=r(281),d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},g="[^/]",y="[^/]*?",b=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var v=/\/+/;function ext(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function minimatch(e,t,r){if("string"!==typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,r).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:h(e)}minimatch.filter=function filter(e,t){return t=t||{},function(r,n,i){return minimatch(r,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,r=function minimatch(r,n,i){return t.minimatch(r,n,ext(e,i))};return r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))},r},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(v)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,h=e.length;i<h&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},minimatch.braceExpand=function(e,t){return braceExpand(e,t)},Minimatch.prototype.braceExpand=braceExpand,Minimatch.prototype.parse=function parse(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return i;if(""===e)return"";var n,h="",v=!!r.nocase,x=!1,E=[],S=[],C=!1,j=-1,O=-1,A="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",R=this;function clearStateChar(){if(n){switch(n){case"*":h+=y,v=!0;break;case"?":h+=g,v=!0;break;default:h+="\\"+n}R.debug("clearStateChar %j %j",n,h),n=!1}}for(var T,k=0,P=e.length;k<P&&(T=e.charAt(k));k++)if(this.debug("%s\t%s %s %j",e,k,h,T),x&&b[T])h+="\\"+T,x=!1;else switch(T){case"/":return!1;case"\\":clearStateChar(),x=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,k,h,T),C){this.debug(" in class"),"!"===T&&k===O+1&&(T="^"),h+=T;continue}R.debug("call clearStateChar %j",n),clearStateChar(),n=T,r.noext&&clearStateChar();continue;case"(":if(C){h+="(";continue}if(!n){h+="\\(";continue}E.push({type:n,start:k-1,reStart:h.length,open:d[n].open,close:d[n].close}),h+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,h),n=!1;continue;case")":if(C||!E.length){h+="\\)";continue}clearStateChar(),v=!0;var M=E.pop();h+=M.close,"!"===M.type&&S.push(M),M.reEnd=h.length;continue;case"|":if(C||!E.length||x){h+="\\|",x=!1;continue}clearStateChar(),h+="|";continue;case"[":if(clearStateChar(),C){h+="\\"+T;continue}C=!0,O=k,j=h.length,h+=T;continue;case"]":if(k===O+1||!C){h+="\\"+T,x=!1;continue}if(C){var I=e.substring(O+1,k);try{RegExp("["+I+"]")}catch(_){var N=this.parse(I,w);h=h.substr(0,j)+"\\["+N[0]+"\\]",v=v||N[1],C=!1;continue}}v=!0,C=!1,h+=T;continue;default:clearStateChar(),x?x=!1:!b[T]||"^"===T&&C||(h+="\\"),h+=T}C&&(I=e.substr(O+1),N=this.parse(I,w),h=h.substr(0,j)+"\\["+N[0],v=v||N[1]);for(M=E.pop();M;M=E.pop()){var U=h.slice(M.reStart+M.open.length);this.debug("setting tail",h,M),U=U.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",U,U,M,h);var q="*"===M.type?y:"?"===M.type?g:"\\"+M.type;v=!0,h=h.slice(0,M.reStart)+q+"\\("+U}clearStateChar(),x&&(h+="\\\\");var L=!1;switch(h.charAt(0)){case".":case"[":case"(":L=!0}for(var B=S.length-1;B>-1;B--){var z=S[B],D=h.slice(0,z.reStart),F=h.slice(z.reStart,z.reEnd-8),H=h.slice(z.reEnd-8,z.reEnd),V=h.slice(z.reEnd);H+=V;var W=D.split("(").length-1,G=V;for(k=0;k<W;k++)G=G.replace(/\)[+*?]?/,"");var J="";""===(V=G)&&t!==w&&(J="$"),h=D+F+V+J+H}""!==h&&v&&(h="(?=.)"+h);L&&(h=A+h);if(t===w)return[h,v];if(!v)return function globUnescape(e){return e.replace(/\\(.)/g,"$1")}(e);var X=r.nocase?"i":"";try{var K=new RegExp("^"+h+"$",X)}catch(_){return new RegExp("$.")}return K._glob=e,K._src=h,K};var w={};minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()},Minimatch.prototype.makeRe=function makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?y:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",h=e.map((function(e){return e.map((function(e){return e===i?r:"string"===typeof e?function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");h="^(?:"+h+")$",this.negate&&(h="^(?!"+h+").*$");try{this.regexp=new RegExp(h,n)}catch(d){this.regexp=!1}return this.regexp},minimatch.match=function(e,t,r){var n=new Minimatch(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},Minimatch.prototype.match=function match(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/"));e=e.split(v),this.debug(this.pattern,"split",e);var i,h,d=this.set;for(this.debug(this.pattern,"set",d),h=e.length-1;h>=0&&!(i=e[h]);h--);for(h=0;h<d.length;h++){var g=d[h],y=e;if(r.matchBase&&1===g.length&&(y=[i]),this.matchOne(y,g,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var h=0,d=0,g=e.length,y=t.length;h<g&&d<y;h++,d++){this.debug("matchOne loop");var b,v=t[d],w=e[h];if(this.debug(t,v,w),!1===v)return!1;if(v===i){this.debug("GLOBSTAR",[t,v,w]);var _=h,x=d+1;if(x===y){for(this.debug("** at the end");h<g;h++)if("."===e[h]||".."===e[h]||!n.dot&&"."===e[h].charAt(0))return!1;return!0}for(;_<g;){var E=e[_];if(this.debug("\nglobstar while",e,_,t,x,E),this.matchOne(e.slice(_),t.slice(x),r))return this.debug("globstar found match!",_,g,E),!0;if("."===E||".."===E||!n.dot&&"."===E.charAt(0)){this.debug("dot detected!",e,_,t,x);break}this.debug("globstar swallow a segment, and continue"),_++}return!(!r||(this.debug("\n>>> no match, partial?",e,_,t,x),_!==g))}if("string"===typeof v?(b=n.nocase?w.toLowerCase()===v.toLowerCase():w===v,this.debug("string match",v,w,b)):(b=w.match(v),this.debug("pattern match",v,w,b)),!b)return!1}if(h===g&&d===y)return!0;if(h===g)return r;if(d===y)return h===g-1&&""===e[h];throw new Error("wtf?")}},668:function(e,t,r){var n,i,h,d;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}d=function(e,t,r,n){"use strict";function o(e){return e&&"object"==_typeof(e)&&"default"in e?e:{default:e}}var i=o(t),h=o(r),d=o(n),g=function a(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t,r,n){return new(r||(r=Promise))((function(i,h){function c(e){try{a(n.next(e))}catch(e){h(e)}}function s(e){try{a(n.throw(e))}catch(e){h(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(c,s)}a((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,h,d={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return h={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function s(h){return function(g){return function(h){if(r)throw new TypeError("Generator is already executing.");for(;d;)try{if(r=1,n&&(i=2&h[0]?n.return:h[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,h[1])).done)return i;switch(n=0,i&&(h=[2&h[0],i.value]),h[0]){case 0:case 1:i=h;break;case 4:return d.label++,{value:h[1],done:!1};case 5:d.label++,n=h[1],h=[0];continue;case 7:h=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||6!==h[0]&&2!==h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]<i[3])){d.label=h[1];break}if(6===h[0]&&d.label<i[1]){d.label=i[1],i=h;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(h);break}i[2]&&d.ops.pop(),d.trys.pop();continue}h=t.call(e,d)}catch(e){h=[6,e],n=0}finally{r=i=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,g])}}}var y=[{provider_name:"YouTube",provider_url:"https://www.youtube.com/",endpoints:[{schemes:["https://*.youtube.com/watch*","https://*.youtube.com/v/*","https://youtu.be/*"],url:"https://www.youtube.com/oembed",discovery:!0}]},{provider_name:"Reddit",provider_url:"https://reddit.com/",endpoints:[{schemes:["https://reddit.com/r/*/comments/*/*","https://www.reddit.com/r/*/comments/*/*"],url:"https://www.reddit.com/oembed"}]},{provider_name:"Flickr",provider_url:"https://www.flickr.com/",endpoints:[{schemes:["http://*.flickr.com/photos/*","http://flic.kr/p/*","https://*.flickr.com/photos/*","https://flic.kr/p/*"],url:"https://www.flickr.com/services/oembed/",discovery:!0}]},{provider_name:"Vimeo",provider_url:"https://vimeo.com/",endpoints:[{schemes:["https://vimeo.com/*","https://vimeo.com/album/*/video/*","https://vimeo.com/channels/*/*","https://vimeo.com/groups/*/videos/*","https://vimeo.com/ondemand/*/*","https://player.vimeo.com/video/*"],url:"https://vimeo.com/api/oembed.{format}",discovery:!0}]},{provider_name:"SoundCloud",provider_url:"http://soundcloud.com/",endpoints:[{schemes:["http://soundcloud.com/*","https://soundcloud.com/*","https://soundcloud.app.goog.gl/*"],url:"https://soundcloud.com/oembed"}]},{provider_name:"Twitter",provider_url:"http://www.twitter.com/",endpoints:[{schemes:["https://twitter.com/*/status/*","https://*.twitter.com/*/status/*","https://twitter.com/*/moments/*","https://*.twitter.com/*/moments/*"],url:"https://publish.twitter.com/oembed"}]},{provider_name:"GIPHY",provider_url:"https://giphy.com",endpoints:[{schemes:["https://giphy.com/gifs/*","http://gph.is/*","https://media.giphy.com/media/*/giphy.gif"],url:"https://giphy.com/services/oembed",discovery:!0}]}];function m(e,t,r){return u(this,void 0,void 0,(function(){var n,i,h,g,y,b;return l(this,(function(v){switch(v.label){case 0:if(n=p(r.url,t),i=n.base_url,h=n.requestInterceptor,g=n.responceInterceptor,!i)throw Error("Invalid url: cannot guess oembed endpoint");return y=function(e,t){e.endsWith("/")&&(e=e.slice(0,-1));var r=/\{format\}/gi;if(e.match(r)&&(e=e.replace(r,"json")),!t)return e;var n=/\{url\}/gi,i=/\{raw_url\}/gi;return t.match(i)?t.replace(i,e):t.match(n)?(e=encodeURIComponent(e),t.replace(n,e)):(t.endsWith("/")&&(t=t.slice(0,-1)),t+"/"+e)}(i,e),b=d.default.create(),h&&b.interceptors.request.use(h),g&&b.interceptors.response.use(g),[4,b.get(y,{params:r})];case 1:return[2,v.sent().data]}}))}))}function p(e,t){var r,n,i;return(t=t||y).forEach((function(t){var d;t.endpoints.forEach((function(t){(function(e,t){return Boolean(t.find((function(t){return h.default(e,t,{nocase:!0})})))||Boolean(t.find((function(t){return h.default(e,t.replace(/\*/g,"**"),{nocase:!0})})))})(e,t.schemes)&&(d=t)})),d&&(r=d.url,n=t.requestInterceptor,i=t.responceInterceptor)})),{base_url:r,requestInterceptor:n,responceInterceptor:i}}function f(e,r,n){var i=[];t.useEffect((function(){var t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((function(e){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){"id"!==e.nodeName&&t.setAttribute(e.nodeName,e.nodeValue||"")})),t.innerHTML=e.innerHTML,Object.entries(r||{}).forEach((function(e){var r=e[0],n=e[1];t.setAttribute(r,n)})),document.body.appendChild(t),i=i.concat(t)})),function(){i.forEach((function(e){document.body.removeChild(e)})),i=[]}}),n||[e])}e.default=function(e){var r=e.url,n=e.proxy,h=e.style,d=e.options,y=e.providers,b=e.ImgComponent,v=e.LinkComponent,w=e.FallbackElement,_=e.LoadingFallbackElement,x=t.useState(void 0),E=x[0],S=x[1],C=t.useState("idle"),j=C[0],O=C[1],A=t.useState(""),R=A[0],T=A[1];f(R,{defer:""}),t.useEffect((function(){"idle"===j&&function(){u(this,void 0,void 0,(function(){var e,t;return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),O("loading"),[4,m(n,y,g(g({url:r,maxwidth:700,maxheight:500,align:"center"},d),{format:"json"}))];case 1:if(!(e=i.sent()))throw Error("Nill embed responce");return O("done"),S(e),e.html&&T(e.html),[3,3];case 2:return t=i.sent(),console.error("Error",t),O("error"),[3,3];case 3:return[2]}}))}))}()}),[j]);var k,P=i.default.createElement("a",{href:r,target:"_blank",rel:"nofollow noreferrer noopener"},r);return E&&!E.html&&("photo"===E.type?k=b?i.default.createElement(b,{responce:E}):i.default.createElement("img",{alt:"",src:E.url}):"link"===E.type&&(k=v?i.default.createElement(v,{responce:E}):i.default.createElement("a",{href:r,target:"_blank",rel:"nofollow noreferrer noopener"},r))),"loading"===j||"idle"===j?_||P:"error"===j?w||P:i.default.createElement("span",{style:h,className:"__embed __embed_column"},k,R&&i.default.createElement("span",{className:"__embed_column",dangerouslySetInnerHTML:{__html:R}}),i.default.createElement("style",null,".__embed {\n margin: auto;\n width: 100%;\n max-width: 700px;\n} \n.__embed iframe {\n width: 100%;\n margin: auto;\n}\n.__embed img, .__embed video {\n width: 100%;\n margin: 0;\n}\n.__embed blockquote {\n margin: 0;\n}\n.__embed span {\n border: 0;\n} \n.__embed_column {\n width: 100%;\n display: flex;\n flex-direction: column;\n}"))},e.defaultProviders=y,e.getEndpoint=p,e.requestEmbed=m,e.useScript=f,Object.defineProperty(e,"__esModule",{value:!0})},"object"==_typeof(t)?d(t,r(804),r(519),r(940)):(i=[t,r(804),r(519),r(940)],void 0===(h="function"===typeof(n=d)?n.apply(t,i):n)||(e.exports=h))},804:function(e){"use strict";e.exports=React},386:function(){}},t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=__webpack_require__(804),t=__webpack_require__.n(e),r=ReactDOM,n=__webpack_require__.n(r),i=__webpack_require__(668),h=__webpack_require__.n(i);function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var r,n=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!==typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d={provider_name:"Instagram",provider_url:"https://instagram.com",endpoints:[{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://graph.facebook.com/v9.0/instagram_oembed",formats:["json"]},{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://api.instagram.com/oembed",formats:["json"]}]},g=__webpack_require__(940),y=function(e){!function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(MetaWindow,e);var t=_createSuper(MetaWindow);function MetaWindow(e){var r;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(_assertThisInitialized(r=t.call(this,e)),"state",{content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1}),_defineProperty(_assertThisInitialized(r),"reset",(function(){_assertThisInitialized(r).setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(_assertThisInitialized(r),"embed",(function(e){var t=_assertThisInitialized(r);console.log("".concat(t.name,": embed")),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()})),_defineProperty(_assertThisInitialized(r),"load",(function(e){var t=_assertThisInitialized(r),n=t.axios;t.reset(),t.setState({loading:!0}),t.show(),n.get(e,{responseType:"arraybuffer"}).then((function(e){switch(console.log("".concat(t.name,": response content-type: ").concat(e.headers["content-type"])),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent('<img src="data:'.concat(e.headers["content-type"],";base64,").concat(t._imageEncode(e.data),'" />'),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":var r=JSON.parse(t._abToString(e.data));t.setContent("".concat(r.Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn("".concat(t.name,": Unknown response content-type!"))}})).catch((function(e){console.error(e);var r="";if(e.response)switch(e.response.status){case 404:r="Not Found.";break;case 500:r="Server issue, please try again latter.";break;default:r="Something went wrong."}else e.request?r="No response received":console.warn("Error",e.message);t.setState({error:r})})).then((function(){t.setState({loading:!1})}))})),_defineProperty(_assertThisInitialized(r),"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(_assertThisInitialized(r),"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(_assertThisInitialized(r),"setContent",(function(e,t){var n=_assertThisInitialized(r);console.log("".concat(n.name,": setContent"));var i=t||["html","text"];Array.isArray(i)||(i=t.split(" ")),n.setState({content:e,type:i})})),_defineProperty(_assertThisInitialized(r),"show",(function(){var e=_assertThisInitialized(r);console.log("".concat(e.name,": show")),e.setState({shown:!0})})),_defineProperty(_assertThisInitialized(r),"hide",(function(){var e=_assertThisInitialized(r);console.log("".concat(e.name,": hide")),e.setState({shown:!1})})),_defineProperty(_assertThisInitialized(r),"getHtml",(function(){return{__html:_assertThisInitialized(r).state.content}}));var n=_assertThisInitialized(r);return n.name=n.constructor.name,console.log("".concat(n.name,": init")),n.axios=g,document.querySelectorAll('[data-toggle="lightbox"]').forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.currentTarget,r=t.getAttribute("href")||t.getAttribute("data-href");t.getAttribute("data-embed")?n.embed(r):n.load(r)}))})),r}return function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(MetaWindow,[{key:"render",value:function render(){var e=this,t=e.name,r=e.state.embed?React.createElement("section",{className:"meta-wrap typography"},React.createElement(h(),{url:e.state.embed,providers:[].concat(_toConsumableArray(i.defaultProviders),[d]),LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed"},"... Loading ...")})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml()}),n="meta-".concat(t," meta-").concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__"))),g="meta-".concat(t,"-overlay").concat(e.state.shown?" meta-".concat(t,"-overlay__open"):"").concat(e.state.loading?" meta-".concat(t,"-overlay__loading"):"").concat(e.state.error?" meta-".concat(t,"-overlay__error"):"");return React.createElement("div",{className:n},React.createElement("div",{className:g},React.createElement("article",{className:"meta-content"},React.createElement("button",{className:"meta-close fas fa fa-times a",onClick:e.hide},React.createElement("span",{className:"sr-only"},"Close")),React.createElement("div",{className:"meta-spinner"},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger"},e.state.error),r)))}}]),MetaWindow}(e.Component);n().render(t().createElement(y,null),document.getElementById("App"));n().render(t().createElement(y,null),document.getElementById("App"))}()}();
!function(){var e={940:function(e,t,r){e.exports=r(412)},355:function(e,t,r){"use strict";var n=r(854),i=r(706),h=r(575),d=r(778),g=r(205),y=r(17),b=r(426),v=r(348);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,r){var w=e.data,_=e.headers;n.isFormData(w)&&delete _["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var E=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";_.Authorization="Basic "+btoa(E+":"+S)}var C=g(e.baseURL,e.url);if(x.open(e.method.toUpperCase(),d(C,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,x.onreadystatechange=function handleLoad(){if(x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in x?y(x.getAllResponseHeaders()):null,h={data:e.responseType&&"text"!==e.responseType?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:n,config:e,request:x};i(t,r,h),x=null}},x.onabort=function handleAbort(){x&&(r(v("Request aborted",e,"ECONNABORTED",x)),x=null)},x.onerror=function handleError(){r(v("Network Error",e,null,x)),x=null},x.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(v(t,e,"ECONNABORTED",x)),x=null},n.isStandardBrowserEnv()){var A=(e.withCredentials||b(C))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;A&&(_[e.xsrfHeaderName]=A)}if("setRequestHeader"in x&&n.forEach(_,(function setRequestHeader(e,t){"undefined"===typeof w&&"content-type"===t.toLowerCase()?delete _[t]:x.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),e.responseType)try{x.responseType=e.responseType}catch(R){if("json"!==e.responseType)throw R}"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){x&&(x.abort(),r(e),x=null)})),w||(w=null),x.send(w)}))}},412:function(e,t,r){"use strict";var n=r(854),i=r(810),h=r(769),d=r(624);function createInstance(e){var t=new h(e),r=i(h.prototype.request,t);return n.extend(r,h.prototype,t),n.extend(r,t),r}var g=createInstance(r(339));g.Axios=h,g.create=function create(e){return createInstance(d(g.defaults,e))},g.Cancel=r(499),g.CancelToken=r(294),g.isCancel=r(949),g.all=function all(e){return Promise.all(e)},g.spread=r(656),g.isAxiosError=r(606),e.exports=g,e.exports.default=g},499:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},294:function(e,t,r){"use strict";var n=r(499);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var r=this;e((function cancel(e){r.reason||(r.reason=new n(e),t(r.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},949:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},769:function(e,t,r){"use strict";var n=r(854),i=r(778),h=r(637),d=r(736),g=r(624);function Axios(e){this.defaults=e,this.interceptors={request:new h,response:new h}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=g(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[d,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},Axios.prototype.getUri=function getUri(e){return e=g(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(g(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,n){return this.request(g(n||{},{method:e,url:t,data:r}))}})),e.exports=Axios},637:function(e,t,r){"use strict";var n=r(854);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},205:function(e,t,r){"use strict";var n=r(797),i=r(75);e.exports=function buildFullPath(e,t){return e&&!n(t)?i(e,t):t}},348:function(e,t,r){"use strict";var n=r(177);e.exports=function createError(e,t,r,i,h){var d=new Error(e);return n(d,t,r,i,h)}},736:function(e,t,r){"use strict";var n=r(854),i=r(92),h=r(949),d=r(339);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||d.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return h(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},177:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},624:function(e,t,r){"use strict";var n=r(854);e.exports=function mergeConfig(e,t){t=t||{};var r={},i=["url","method","data"],h=["headers","auth","proxy","params"],d=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],g=["validateStatus"];function getMergedValue(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function mergeDeepProperties(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=getMergedValue(void 0,e[i])):r[i]=getMergedValue(e[i],t[i])}n.forEach(i,(function valueFromConfig2(e){n.isUndefined(t[e])||(r[e]=getMergedValue(void 0,t[e]))})),n.forEach(h,mergeDeepProperties),n.forEach(d,(function defaultToConfig2(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=getMergedValue(void 0,e[i])):r[i]=getMergedValue(void 0,t[i])})),n.forEach(g,(function merge(n){n in t?r[n]=getMergedValue(e[n],t[n]):n in e&&(r[n]=getMergedValue(void 0,e[n]))}));var y=i.concat(h).concat(d).concat(g),b=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===y.indexOf(e)}));return n.forEach(b,mergeDeepProperties),r}},706:function(e,t,r){"use strict";var n=r(348);e.exports=function settle(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},92:function(e,t,r){"use strict";var n=r(854);e.exports=function transformData(e,t,r){return n.forEach(r,(function transform(r){e=r(e,t)})),e}},339:function(e,t,r){"use strict";var n=r(854),i=r(852),h={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=r(355)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function forEachMethodNoData(e){d.headers[e]={}})),n.forEach(["post","put","patch"],(function forEachMethodWithData(e){d.headers[e]=n.merge(h)})),e.exports=d},810:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},778:function(e,t,r){"use strict";var n=r(854);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var h=[];n.forEach(t,(function serialize(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function parseValue(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),h.push(encode(t)+"="+encode(e))})))})),i=h.join("&")}if(i){var d=e.indexOf("#");-1!==d&&(e=e.slice(0,d)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},75:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},575:function(e,t,r){"use strict";var n=r(854);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,i,h,d){var g=[];g.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),n.isString(i)&&g.push("path="+i),n.isString(h)&&g.push("domain="+h),!0===d&&g.push("secure"),document.cookie=g.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},797:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},606:function(e){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function isAxiosError(e){return"object"===_typeof(e)&&!0===e.isAxiosError}},426:function(e,t,r){"use strict";var n=r(854);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function resolveURL(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var r=n.isString(t)?resolveURL(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function isURLSameOrigin(){return!0}},852:function(e,t,r){"use strict";var n=r(854);e.exports=function normalizeHeaderName(e,t){n.forEach(e,(function processHeader(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},17:function(e,t,r){"use strict";var n=r(854),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,r,h,d={};return e?(n.forEach(e.split("\n"),(function parser(e){if(h=e.indexOf(":"),t=n.trim(e.substr(0,h)).toLowerCase(),r=n.trim(e.substr(h+1)),t){if(d[t]&&i.indexOf(t)>=0)return;d[t]="set-cookie"===t?(d[t]?d[t]:[]).concat([r]):d[t]?d[t]+", "+r:r}})),d):d}},656:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},854:function(e,t,r){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=r(810),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:isArray,isArrayBuffer:function isArrayBuffer(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function isArrayBufferView(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function isString(e){return"string"===typeof e},isNumber:function isNumber(e){return"number"===typeof e},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function isDate(e){return"[object Date]"===i.call(e)},isFile:function isFile(e){return"[object File]"===i.call(e)},isBlob:function isBlob(e){return"[object Blob]"===i.call(e)},isFunction:isFunction,isStream:function isStream(e){return isObject(e)&&isFunction(e.pipe)},isURLSearchParams:function isURLSearchParams(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(t,r){isPlainObject(e[r])&&isPlainObject(t)?e[r]=merge(e[r],t):isPlainObject(t)?e[r]=merge({},t):isArray(t)?e[r]=t.slice():e[r]=t}for(var t=0,r=arguments.length;t<r;t++)forEach(arguments[t],assignValue);return e},extend:function extend(e,t,r){return forEach(t,(function assignValue(t,i){e[i]=r&&"function"===typeof t?n(t,r):t})),e},trim:function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},524:function(e){"use strict";function balanced(e,t,r){e instanceof RegExp&&(e=maybeMatch(e,r)),t instanceof RegExp&&(t=maybeMatch(t,r));var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}function range(e,t,r){var n,i,h,d,g,y=r.indexOf(e),b=r.indexOf(t,y+1),v=y;if(y>=0&&b>0){for(n=[],h=r.length;v>=0&&!g;)v==y?(n.push(v),y=r.indexOf(e,v+1)):1==n.length?g=[n.pop(),b]:((i=n.pop())<h&&(h=i,d=b),b=r.indexOf(t,v+1)),v=y<b&&y>=0?y:b;n.length&&(g=[h,d])}return g}e.exports=balanced,balanced.range=range},281:function(e,t,r){var n=r(524);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(h).split("\\}").join(d).split("\\,").join(g).split("\\.").join(y)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",h="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",g="\0COMMA"+Math.random()+"\0",y="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(h).join("{").split(d).join("}").split(g).join(",").split(y).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,h=r.body,d=r.post,g=i.split(",");g[g.length-1]+="{"+h+"}";var y=parseCommaParts(d);return d.length&&(g[g.length-1]+=y.shift(),g.push.apply(g,y)),t.push.apply(t,g),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[],i=n("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var h,g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),b=g||y,v=i.body.indexOf(",")>=0;if(!b&&!v)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+d+i.post):[e];if(b)h=i.body.split(/\.\./);else if(1===(h=parseCommaParts(i.body)).length&&1===(h=expand(h[0],!1).map(embrace)).length)return(x=i.post.length?expand(i.post,!1):[""]).map((function(e){return i.pre+h[0]+e}));var w,_=i.pre,x=i.post.length?expand(i.post,!1):[""];if(b){var E=numeric(h[0]),S=numeric(h[1]),C=Math.max(h[0].length,h[1].length),A=3==h.length?Math.abs(numeric(h[2])):1,R=lte;S<E&&(A*=-1,R=gte);var j=h.some(isPadded);w=[];for(var O=E;R(O,S);O+=A){var T;if(y)"\\"===(T=String.fromCharCode(O))&&(T="");else if(T=String(O),j){var k=C-T.length;if(k>0){var P=new Array(k+1).join("0");T=O<0?"-"+P+T.slice(1):P+T}}w.push(T)}}else{w=[];for(var I=0;I<h.length;I++)w.push.apply(w,expand(h[I],!1))}for(I=0;I<w.length;I++)for(var M=0;M<x.length;M++){var N=_+w[I]+x[M];(!t||b||N)&&r.push(N)}return r}},519:function(e,t,r){e.exports=minimatch,minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(386)}catch(_){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},h=r(281),d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},g="[^/]",y="[^/]*?",b=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var v=/\/+/;function ext(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function minimatch(e,t,r){if("string"!==typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,r).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:h(e)}minimatch.filter=function filter(e,t){return t=t||{},function(r,n,i){return minimatch(r,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,r=function minimatch(r,n,i){return t.minimatch(r,n,ext(e,i))};return r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))},r},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(v)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,h=e.length;i<h&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},minimatch.braceExpand=function(e,t){return braceExpand(e,t)},Minimatch.prototype.braceExpand=braceExpand,Minimatch.prototype.parse=function parse(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return i;if(""===e)return"";var n,h="",v=!!r.nocase,x=!1,E=[],S=[],C=!1,A=-1,R=-1,j="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",O=this;function clearStateChar(){if(n){switch(n){case"*":h+=y,v=!0;break;case"?":h+=g,v=!0;break;default:h+="\\"+n}O.debug("clearStateChar %j %j",n,h),n=!1}}for(var T,k=0,P=e.length;k<P&&(T=e.charAt(k));k++)if(this.debug("%s\t%s %s %j",e,k,h,T),x&&b[T])h+="\\"+T,x=!1;else switch(T){case"/":return!1;case"\\":clearStateChar(),x=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,k,h,T),C){this.debug(" in class"),"!"===T&&k===R+1&&(T="^"),h+=T;continue}O.debug("call clearStateChar %j",n),clearStateChar(),n=T,r.noext&&clearStateChar();continue;case"(":if(C){h+="(";continue}if(!n){h+="\\(";continue}E.push({type:n,start:k-1,reStart:h.length,open:d[n].open,close:d[n].close}),h+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,h),n=!1;continue;case")":if(C||!E.length){h+="\\)";continue}clearStateChar(),v=!0;var I=E.pop();h+=I.close,"!"===I.type&&S.push(I),I.reEnd=h.length;continue;case"|":if(C||!E.length||x){h+="\\|",x=!1;continue}clearStateChar(),h+="|";continue;case"[":if(clearStateChar(),C){h+="\\"+T;continue}C=!0,R=k,A=h.length,h+=T;continue;case"]":if(k===R+1||!C){h+="\\"+T,x=!1;continue}if(C){var M=e.substring(R+1,k);try{RegExp("["+M+"]")}catch(_){var N=this.parse(M,w);h=h.substr(0,A)+"\\["+N[0]+"\\]",v=v||N[1],C=!1;continue}}v=!0,C=!1,h+=T;continue;default:clearStateChar(),x?x=!1:!b[T]||"^"===T&&C||(h+="\\"),h+=T}C&&(M=e.substr(R+1),N=this.parse(M,w),h=h.substr(0,A)+"\\["+N[0],v=v||N[1]);for(I=E.pop();I;I=E.pop()){var q=h.slice(I.reStart+I.open.length);this.debug("setting tail",h,I),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",q,q,I,h);var U="*"===I.type?y:"?"===I.type?g:"\\"+I.type;v=!0,h=h.slice(0,I.reStart)+U+"\\("+q}clearStateChar(),x&&(h+="\\\\");var L=!1;switch(h.charAt(0)){case".":case"[":case"(":L=!0}for(var B=S.length-1;B>-1;B--){var z=S[B],D=h.slice(0,z.reStart),F=h.slice(z.reStart,z.reEnd-8),H=h.slice(z.reEnd-8,z.reEnd),V=h.slice(z.reEnd);H+=V;var W=D.split("(").length-1,G=V;for(k=0;k<W;k++)G=G.replace(/\)[+*?]?/,"");var J="";""===(V=G)&&t!==w&&(J="$"),h=D+F+V+J+H}""!==h&&v&&(h="(?=.)"+h);L&&(h=j+h);if(t===w)return[h,v];if(!v)return function globUnescape(e){return e.replace(/\\(.)/g,"$1")}(e);var X=r.nocase?"i":"";try{var K=new RegExp("^"+h+"$",X)}catch(_){return new RegExp("$.")}return K._glob=e,K._src=h,K};var w={};minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()},Minimatch.prototype.makeRe=function makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?y:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",h=e.map((function(e){return e.map((function(e){return e===i?r:"string"===typeof e?function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");h="^(?:"+h+")$",this.negate&&(h="^(?!"+h+").*$");try{this.regexp=new RegExp(h,n)}catch(d){this.regexp=!1}return this.regexp},minimatch.match=function(e,t,r){var n=new Minimatch(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},Minimatch.prototype.match=function match(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/"));e=e.split(v),this.debug(this.pattern,"split",e);var i,h,d=this.set;for(this.debug(this.pattern,"set",d),h=e.length-1;h>=0&&!(i=e[h]);h--);for(h=0;h<d.length;h++){var g=d[h],y=e;if(r.matchBase&&1===g.length&&(y=[i]),this.matchOne(y,g,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var h=0,d=0,g=e.length,y=t.length;h<g&&d<y;h++,d++){this.debug("matchOne loop");var b,v=t[d],w=e[h];if(this.debug(t,v,w),!1===v)return!1;if(v===i){this.debug("GLOBSTAR",[t,v,w]);var _=h,x=d+1;if(x===y){for(this.debug("** at the end");h<g;h++)if("."===e[h]||".."===e[h]||!n.dot&&"."===e[h].charAt(0))return!1;return!0}for(;_<g;){var E=e[_];if(this.debug("\nglobstar while",e,_,t,x,E),this.matchOne(e.slice(_),t.slice(x),r))return this.debug("globstar found match!",_,g,E),!0;if("."===E||".."===E||!n.dot&&"."===E.charAt(0)){this.debug("dot detected!",e,_,t,x);break}this.debug("globstar swallow a segment, and continue"),_++}return!(!r||(this.debug("\n>>> no match, partial?",e,_,t,x),_!==g))}if("string"===typeof v?(b=n.nocase?w.toLowerCase()===v.toLowerCase():w===v,this.debug("string match",v,w,b)):(b=w.match(v),this.debug("pattern match",v,w,b)),!b)return!1}if(h===g&&d===y)return!0;if(h===g)return r;if(d===y)return h===g-1&&""===e[h];throw new Error("wtf?")}},668:function(e,t,r){var n,i,h,d;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}d=function(e,t,r,n){"use strict";function o(e){return e&&"object"==_typeof(e)&&"default"in e?e:{default:e}}var i=o(t),h=o(r),d=o(n),g=function a(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t,r,n){return new(r||(r=Promise))((function(i,h){function c(e){try{a(n.next(e))}catch(e){h(e)}}function s(e){try{a(n.throw(e))}catch(e){h(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(c,s)}a((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,h,d={label:0,sent:function sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return h={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function s(h){return function(g){return function(h){if(r)throw new TypeError("Generator is already executing.");for(;d;)try{if(r=1,n&&(i=2&h[0]?n.return:h[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,h[1])).done)return i;switch(n=0,i&&(h=[2&h[0],i.value]),h[0]){case 0:case 1:i=h;break;case 4:return d.label++,{value:h[1],done:!1};case 5:d.label++,n=h[1],h=[0];continue;case 7:h=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||6!==h[0]&&2!==h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]<i[3])){d.label=h[1];break}if(6===h[0]&&d.label<i[1]){d.label=i[1],i=h;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(h);break}i[2]&&d.ops.pop(),d.trys.pop();continue}h=t.call(e,d)}catch(e){h=[6,e],n=0}finally{r=i=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,g])}}}var y=[{provider_name:"YouTube",provider_url:"https://www.youtube.com/",endpoints:[{schemes:["https://*.youtube.com/watch*","https://*.youtube.com/v/*","https://youtu.be/*"],url:"https://www.youtube.com/oembed",discovery:!0}]},{provider_name:"Reddit",provider_url:"https://reddit.com/",endpoints:[{schemes:["https://reddit.com/r/*/comments/*/*","https://www.reddit.com/r/*/comments/*/*"],url:"https://www.reddit.com/oembed"}]},{provider_name:"Flickr",provider_url:"https://www.flickr.com/",endpoints:[{schemes:["http://*.flickr.com/photos/*","http://flic.kr/p/*","https://*.flickr.com/photos/*","https://flic.kr/p/*"],url:"https://www.flickr.com/services/oembed/",discovery:!0}]},{provider_name:"Vimeo",provider_url:"https://vimeo.com/",endpoints:[{schemes:["https://vimeo.com/*","https://vimeo.com/album/*/video/*","https://vimeo.com/channels/*/*","https://vimeo.com/groups/*/videos/*","https://vimeo.com/ondemand/*/*","https://player.vimeo.com/video/*"],url:"https://vimeo.com/api/oembed.{format}",discovery:!0}]},{provider_name:"SoundCloud",provider_url:"http://soundcloud.com/",endpoints:[{schemes:["http://soundcloud.com/*","https://soundcloud.com/*","https://soundcloud.app.goog.gl/*"],url:"https://soundcloud.com/oembed"}]},{provider_name:"Twitter",provider_url:"http://www.twitter.com/",endpoints:[{schemes:["https://twitter.com/*/status/*","https://*.twitter.com/*/status/*","https://twitter.com/*/moments/*","https://*.twitter.com/*/moments/*"],url:"https://publish.twitter.com/oembed"}]},{provider_name:"GIPHY",provider_url:"https://giphy.com",endpoints:[{schemes:["https://giphy.com/gifs/*","http://gph.is/*","https://media.giphy.com/media/*/giphy.gif"],url:"https://giphy.com/services/oembed",discovery:!0}]}];function m(e,t,r){return u(this,void 0,void 0,(function(){var n,i,h,g,y,b;return l(this,(function(v){switch(v.label){case 0:if(n=p(r.url,t),i=n.base_url,h=n.requestInterceptor,g=n.responceInterceptor,!i)throw Error("Invalid url: cannot guess oembed endpoint");return y=function(e,t){e.endsWith("/")&&(e=e.slice(0,-1));var r=/\{format\}/gi;if(e.match(r)&&(e=e.replace(r,"json")),!t)return e;var n=/\{url\}/gi,i=/\{raw_url\}/gi;return t.match(i)?t.replace(i,e):t.match(n)?(e=encodeURIComponent(e),t.replace(n,e)):(t.endsWith("/")&&(t=t.slice(0,-1)),t+"/"+e)}(i,e),b=d.default.create(),h&&b.interceptors.request.use(h),g&&b.interceptors.response.use(g),[4,b.get(y,{params:r})];case 1:return[2,v.sent().data]}}))}))}function p(e,t){var r,n,i;return(t=t||y).forEach((function(t){var d;t.endpoints.forEach((function(t){(function(e,t){return Boolean(t.find((function(t){return h.default(e,t,{nocase:!0})})))||Boolean(t.find((function(t){return h.default(e,t.replace(/\*/g,"**"),{nocase:!0})})))})(e,t.schemes)&&(d=t)})),d&&(r=d.url,n=t.requestInterceptor,i=t.responceInterceptor)})),{base_url:r,requestInterceptor:n,responceInterceptor:i}}function f(e,r,n){var i=[];t.useEffect((function(){var t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("script").forEach((function(e){var t=document.createElement("script");Array.from(e.attributes).forEach((function(e){"id"!==e.nodeName&&t.setAttribute(e.nodeName,e.nodeValue||"")})),t.innerHTML=e.innerHTML,Object.entries(r||{}).forEach((function(e){var r=e[0],n=e[1];t.setAttribute(r,n)})),document.body.appendChild(t),i=i.concat(t)})),function(){i.forEach((function(e){document.body.removeChild(e)})),i=[]}}),n||[e])}e.default=function(e){var r=e.url,n=e.proxy,h=e.style,d=e.options,y=e.providers,b=e.ImgComponent,v=e.LinkComponent,w=e.FallbackElement,_=e.LoadingFallbackElement,x=t.useState(void 0),E=x[0],S=x[1],C=t.useState("idle"),A=C[0],R=C[1],j=t.useState(""),O=j[0],T=j[1];f(O,{defer:""}),t.useEffect((function(){"idle"===A&&function(){u(this,void 0,void 0,(function(){var e,t;return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),R("loading"),[4,m(n,y,g(g({url:r,maxwidth:700,maxheight:500,align:"center"},d),{format:"json"}))];case 1:if(!(e=i.sent()))throw Error("Nill embed responce");return R("done"),S(e),e.html&&T(e.html),[3,3];case 2:return t=i.sent(),console.error("Error",t),R("error"),[3,3];case 3:return[2]}}))}))}()}),[A]);var k,P=i.default.createElement("a",{href:r,target:"_blank",rel:"nofollow noreferrer noopener"},r);return E&&!E.html&&("photo"===E.type?k=b?i.default.createElement(b,{responce:E}):i.default.createElement("img",{alt:"",src:E.url}):"link"===E.type&&(k=v?i.default.createElement(v,{responce:E}):i.default.createElement("a",{href:r,target:"_blank",rel:"nofollow noreferrer noopener"},r))),"loading"===A||"idle"===A?_||P:"error"===A?w||P:i.default.createElement("span",{style:h,className:"__embed __embed_column"},k,O&&i.default.createElement("span",{className:"__embed_column",dangerouslySetInnerHTML:{__html:O}}),i.default.createElement("style",null,".__embed {\n margin: auto;\n width: 100%;\n max-width: 700px;\n} \n.__embed iframe {\n width: 100%;\n margin: auto;\n}\n.__embed img, .__embed video {\n width: 100%;\n margin: 0;\n}\n.__embed blockquote {\n margin: 0;\n}\n.__embed span {\n border: 0;\n} \n.__embed_column {\n width: 100%;\n display: flex;\n flex-direction: column;\n}"))},e.defaultProviders=y,e.getEndpoint=p,e.requestEmbed=m,e.useScript=f,Object.defineProperty(e,"__esModule",{value:!0})},"object"==_typeof(t)?d(t,r(804),r(519),r(940)):(i=[t,r(804),r(519),r(940)],void 0===(h="function"===typeof(n=d)?n.apply(t,i):n)||(e.exports=h))},804:function(e){"use strict";e.exports=React},386:function(){}},t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=__webpack_require__(804),t=__webpack_require__.n(e),r=ReactDOM,n=__webpack_require__.n(r),i=__webpack_require__(668),h=__webpack_require__.n(i);function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var r,n=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!==typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d={provider_name:"Instagram",provider_url:"https://instagram.com",endpoints:[{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://graph.facebook.com/v9.0/instagram_oembed",formats:["json"]},{schemes:["http://instagram.com/*/p/*,","http://www.instagram.com/*/p/*,","https://instagram.com/*/p/*,","https://www.instagram.com/*/p/*,","http://instagram.com/p/*","http://instagr.am/p/*","http://www.instagram.com/p/*","http://www.instagr.am/p/*","https://instagram.com/p/*","https://instagr.am/p/*","https://www.instagram.com/p/*","https://www.instagr.am/p/*","http://instagram.com/tv/*","http://instagr.am/tv/*","http://www.instagram.com/tv/*","http://www.instagr.am/tv/*","https://instagram.com/tv/*","https://instagr.am/tv/*","https://www.instagram.com/tv/*","https://www.instagr.am/tv/*"],url:"https://api.instagram.com/oembed",formats:["json"]}]},g=__webpack_require__(940),y=function(e){!function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(MetaWindow,e);var t=_createSuper(MetaWindow);function MetaWindow(e){var r;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(_assertThisInitialized(r=t.call(this,e)),"state",{content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null}),_defineProperty(_assertThisInitialized(r),"_currIndex",(function(){var e=_assertThisInitialized(r),t=e.state.current,n=t.getAttribute("data-gallery");return e.state.collections[n].indexOf(t)})),_defineProperty(_assertThisInitialized(r),"next",(function(){var e=_assertThisInitialized(r),t=e.state.current.getAttribute("data-gallery"),n=e._currIndex();n<e.state.collections[t].length-1?n++:n=0,e.state.collections[t][n].click()})),_defineProperty(_assertThisInitialized(r),"prev",(function(){var e=_assertThisInitialized(r),t=e.state.current.getAttribute("data-gallery"),n=e._currIndex();n>0?n--:n=e.state.collections[t].length-1,e.state.collections[t][n].click()})),_defineProperty(_assertThisInitialized(r),"reset",(function(){_assertThisInitialized(r).setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(_assertThisInitialized(r),"embed",(function(e){var t=_assertThisInitialized(r);console.log("".concat(t.name,": embed")),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()})),_defineProperty(_assertThisInitialized(r),"load",(function(e){var t=_assertThisInitialized(r),n=t.axios;t.reset(),t.setState({loading:!0}),t.show(),n.get(e,{responseType:"arraybuffer"}).then((function(e){switch(console.log("".concat(t.name,": response content-type: ").concat(e.headers["content-type"])),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent('<img src="data:'.concat(e.headers["content-type"],";base64,").concat(t._imageEncode(e.data),'" />'),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":var r=JSON.parse(t._abToString(e.data));t.setContent("".concat(r.Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn("".concat(t.name,": Unknown response content-type!"))}})).catch((function(e){console.error(e);var r="";if(e.response)switch(e.response.status){case 404:r="Not Found.";break;case 500:r="Server issue, please try again latter.";break;default:r="Something went wrong."}else e.request?r="No response received":console.warn("Error",e.message);t.setState({error:r})})).then((function(){t.setState({loading:!1})}))})),_defineProperty(_assertThisInitialized(r),"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(_assertThisInitialized(r),"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(_assertThisInitialized(r),"setContent",(function(e,t){var n=_assertThisInitialized(r);console.log("".concat(n.name,": setContent"));var i=t||["html","text"];Array.isArray(i)||(i=t.split(" ")),n.setState({content:e,type:i})})),_defineProperty(_assertThisInitialized(r),"show",(function(){var e=_assertThisInitialized(r);console.log("".concat(e.name,": show")),e.setState({shown:!0})})),_defineProperty(_assertThisInitialized(r),"hide",(function(){var e=_assertThisInitialized(r);console.log("".concat(e.name,": hide")),e.setState({shown:!1})})),_defineProperty(_assertThisInitialized(r),"getHtml",(function(){return{__html:_assertThisInitialized(r).state.content}}));var n=_assertThisInitialized(r);return n.name=n.constructor.name,console.log("".concat(n.name,": init")),n.axios=g,document.querySelectorAll('[data-toggle="lightbox"]').forEach((function(e){var t=e.getAttribute("data-gallery");t&&(n.state.collections[t]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(t,'"]')).forEach((function(e){n.state.collections[t].push(e)}))),e.addEventListener("click",(function(e){e.preventDefault();var t=e.currentTarget,r=t.getAttribute("href")||t.getAttribute("data-href"),i=t.getAttribute("data-embed");n.state.current=t,i?n.embed(r):n.load(r)}))})),r}return function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(MetaWindow,[{key:"render",value:function render(){var e=this,t=e.name,r=null,n=e.state.current;if(n){var g=n.getAttribute("data-gallery");g&&e.state.collections[g].length>1&&(r=React.createElement("nav",{className:"meta-navs"},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev},React.createElement("i",{className:"fa fas fa-chevron-left"}),React.createElement("span",{className:"sr-only"},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next},React.createElement("i",{className:"fa fas fa-chevron-right"}),React.createElement("span",{className:"sr-only"},"Next"))))}var y=e.state.embed?React.createElement("section",{className:"meta-wrap typography"},React.createElement(h(),{url:e.state.embed,providers:[].concat(_toConsumableArray(i.defaultProviders),[d]),LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed"},"... Loading ...")})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml()}),b="meta-".concat(t," meta-").concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__"))),v="meta-".concat(t,"-overlay").concat(e.state.shown?" meta-".concat(t,"-overlay__open"):"").concat(e.state.loading?" meta-".concat(t,"-overlay__loading"):"").concat(e.state.error?" meta-".concat(t,"-overlay__error"):"");return React.createElement("div",{className:b},React.createElement("div",{className:v},React.createElement("article",{className:"meta-content"},r,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide},React.createElement("i",{className:"fa fas fa-times"}),React.createElement("span",{className:"sr-only"},"Close")),React.createElement("div",{className:"meta-spinner"},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger"},e.state.error),y)))}}]),MetaWindow}(e.Component);n().render(t().createElement(y,null),document.getElementById("App"));n().render(t().createElement(y,null),document.getElementById("App"))}()}();

4
dist/report.html vendored
View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>@a2nt/meta-lightbox-react [31 Jan 2021 at 04:58]</title>
<title>@a2nt/meta-lightbox-react [31 Jan 2021 at 07:04]</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
<script>
@ -30,7 +30,7 @@
<body>
<div id="app"></div>
<script>
window.chartData = [{"label":"js/app.js","isAsset":true,"statSize":101886,"parsedSize":44742,"gzipSize":14387,"groups":[{"label":"node_modules/.pnpm","path":"./node_modules/.pnpm","statSize":85010,"groups":[{"label":"axios@0.21.1/node_modules/axios","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios","statSize":42138,"groups":[{"id":940,"label":"index.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/index.js","statSize":40,"parsedSize":33,"gzipSize":53},{"label":"lib","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib","statSize":42098,"groups":[{"label":"adapters","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters","statSize":5769,"groups":[{"id":355,"label":"xhr.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters/xhr.js","statSize":5769,"parsedSize":2022,"gzipSize":1017}],"parsedSize":2022,"gzipSize":1017},{"id":412,"label":"axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/axios.js","statSize":1504,"parsedSize":464,"gzipSize":283},{"label":"cancel","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel","statSize":1725,"groups":[{"id":499,"label":"Cancel.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/Cancel.js","statSize":383,"parsedSize":205,"gzipSize":153},{"id":294,"label":"CancelToken.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/CancelToken.js","statSize":1241,"parsedSize":523,"gzipSize":285},{"id":949,"label":"isCancel.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/isCancel.js","statSize":101,"parsedSize":84,"gzipSize":97}],"parsedSize":812,"gzipSize":382},{"label":"core","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core","statSize":12130,"groups":[{"id":769,"label":"Axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/Axios.js","statSize":2649,"parsedSize":1205,"gzipSize":557},{"id":637,"label":"InterceptorManager.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/InterceptorManager.js","statSize":1253,"parsedSize":469,"gzipSize":242},{"id":205,"label":"buildFullPath.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/buildFullPath.js","statSize":697,"parsedSize":114,"gzipSize":121},{"id":348,"label":"createError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/createError.js","statSize":625,"parsedSize":124,"gzipSize":114},{"id":736,"label":"dispatchRequest.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/dispatchRequest.js","statSize":1806,"parsedSize":842,"gzipSize":383},{"id":177,"label":"enhanceError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/enhanceError.js","statSize":1050,"parsedSize":398,"gzipSize":234},{"id":624,"label":"mergeConfig.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/mergeConfig.js","statSize":2830,"parsedSize":1414,"gzipSize":648},{"id":706,"label":"settle.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/settle.js","statSize":671,"parsedSize":213,"gzipSize":169},{"id":92,"label":"transformData.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/transformData.js","statSize":549,"parsedSize":139,"gzipSize":124}],"parsedSize":4918,"gzipSize":1748},{"id":339,"label":"defaults.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/defaults.js","statSize":2541,"parsedSize":1383,"gzipSize":688},{"label":"helpers","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers","statSize":9191,"groups":[{"id":810,"label":"bind.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/bind.js","statSize":257,"parsedSize":174,"gzipSize":147},{"id":778,"label":"buildURL.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/buildURL.js","statSize":1615,"parsedSize":694,"gzipSize":435},{"id":75,"label":"combineURLs.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/combineURLs.js","statSize":371,"parsedSize":119,"gzipSize":121},{"id":575,"label":"cookies.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/cookies.js","statSize":1284,"parsedSize":659,"gzipSize":378},{"id":797,"label":"isAbsoluteURL.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAbsoluteURL.js","statSize":562,"parsedSize":108,"gzipSize":117},{"id":606,"label":"isAxiosError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAxiosError.js","statSize":720,"parsedSize":370,"gzipSize":190},{"id":426,"label":"isURLSameOrigin.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isURLSameOrigin.js","statSize":2074,"parsedSize":742,"gzipSize":397},{"id":852,"label":"normalizeHeaderName.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/normalizeHeaderName.js","statSize":356,"parsedSize":194,"gzipSize":166},{"id":17,"label":"parseHeaders.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/parseHeaders.js","statSize":1389,"parsedSize":573,"gzipSize":366},{"id":656,"label":"spread.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/spread.js","statSize":563,"parsedSize":103,"gzipSize":99}],"parsedSize":3736,"gzipSize":1555},{"id":854,"label":"utils.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/utils.js","statSize":9238,"parsedSize":2885,"gzipSize":973}],"parsedSize":16220,"gzipSize":5311}],"parsedSize":16253,"gzipSize":5320},{"label":"balanced-match@1.0.0/node_modules/balanced-match","path":"./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match","statSize":1171,"groups":[{"id":524,"label":"index.js","path":"./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match/index.js","statSize":1171,"parsedSize":636,"gzipSize":368}],"parsedSize":636,"gzipSize":368},{"label":"brace-expansion@2.0.0/node_modules/brace-expansion","path":"./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion","statSize":4555,"groups":[{"id":281,"label":"index.js","path":"./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion/index.js","statSize":4555,"parsedSize":2181,"gzipSize":1000}],"parsedSize":2181,"gzipSize":1000},{"label":"minimatch@3.0.4/node_modules/minimatch","path":"./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch","statSize":25440,"groups":[{"id":519,"label":"minimatch.js","path":"./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js","statSize":25440,"parsedSize":7940,"gzipSize":3054}],"parsedSize":7940,"gzipSize":3054},{"label":"react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib","path":"./node_modules/.pnpm/react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib","statSize":11706,"groups":[{"id":668,"label":"index.js","path":"./node_modules/.pnpm/react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib/index.js","statSize":11706,"parsedSize":7423,"gzipSize":2846}],"parsedSize":7423,"gzipSize":2846}],"parsedSize":34433,"gzipSize":11715},{"label":"src","path":"./src","statSize":16876,"groups":[{"label":"js","path":"./src/js","statSize":14288,"groups":[{"id":629,"label":"app.js + 2 modules (concatenated)","path":"./src/js/app.js + 2 modules (concatenated)","statSize":14288,"parsedSize":10256,"gzipSize":3184,"concatenated":true,"groups":[{"label":"src/js","path":"./src/js/app.js + 2 modules (concatenated)/src/js","statSize":14246,"groups":[{"id":null,"label":"app.js","path":"./src/js/app.js + 2 modules (concatenated)/src/js/app.js","statSize":547,"parsedSize":392,"gzipSize":121,"inaccurateSizes":true},{"id":null,"label":"_window.jsx","path":"./src/js/app.js + 2 modules (concatenated)/src/js/_window.jsx","statSize":13699,"parsedSize":9833,"gzipSize":3052,"inaccurateSizes":true}],"parsedSize":10225,"gzipSize":3174,"inaccurateSizes":true}]}],"parsedSize":10256,"gzipSize":3184},{"label":"scss","path":"./src/scss","statSize":2588,"groups":[{"id":null,"label":"_window.scss","path":"./src/scss/_window.scss","statSize":2588}],"parsedSize":0,"gzipSize":0}],"parsedSize":10256,"gzipSize":3184}]}];
window.chartData = [{"label":"js/app.js","isAsset":true,"statSize":105170,"parsedSize":46333,"gzipSize":14679,"groups":[{"label":"node_modules/.pnpm","path":"./node_modules/.pnpm","statSize":85010,"groups":[{"label":"axios@0.21.1/node_modules/axios","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios","statSize":42138,"groups":[{"id":940,"label":"index.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/index.js","statSize":40,"parsedSize":33,"gzipSize":53},{"label":"lib","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib","statSize":42098,"groups":[{"label":"adapters","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters","statSize":5769,"groups":[{"id":355,"label":"xhr.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters/xhr.js","statSize":5769,"parsedSize":2022,"gzipSize":1016}],"parsedSize":2022,"gzipSize":1016},{"id":412,"label":"axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/axios.js","statSize":1504,"parsedSize":464,"gzipSize":283},{"label":"cancel","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel","statSize":1725,"groups":[{"id":499,"label":"Cancel.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/Cancel.js","statSize":383,"parsedSize":205,"gzipSize":153},{"id":294,"label":"CancelToken.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/CancelToken.js","statSize":1241,"parsedSize":523,"gzipSize":285},{"id":949,"label":"isCancel.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/isCancel.js","statSize":101,"parsedSize":84,"gzipSize":97}],"parsedSize":812,"gzipSize":382},{"label":"core","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core","statSize":12130,"groups":[{"id":769,"label":"Axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/Axios.js","statSize":2649,"parsedSize":1205,"gzipSize":557},{"id":637,"label":"InterceptorManager.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/InterceptorManager.js","statSize":1253,"parsedSize":469,"gzipSize":242},{"id":205,"label":"buildFullPath.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/buildFullPath.js","statSize":697,"parsedSize":114,"gzipSize":121},{"id":348,"label":"createError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/createError.js","statSize":625,"parsedSize":124,"gzipSize":114},{"id":736,"label":"dispatchRequest.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/dispatchRequest.js","statSize":1806,"parsedSize":842,"gzipSize":383},{"id":177,"label":"enhanceError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/enhanceError.js","statSize":1050,"parsedSize":398,"gzipSize":234},{"id":624,"label":"mergeConfig.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/mergeConfig.js","statSize":2830,"parsedSize":1414,"gzipSize":648},{"id":706,"label":"settle.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/settle.js","statSize":671,"parsedSize":213,"gzipSize":169},{"id":92,"label":"transformData.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/transformData.js","statSize":549,"parsedSize":139,"gzipSize":124}],"parsedSize":4918,"gzipSize":1748},{"id":339,"label":"defaults.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/defaults.js","statSize":2541,"parsedSize":1383,"gzipSize":688},{"label":"helpers","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers","statSize":9191,"groups":[{"id":810,"label":"bind.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/bind.js","statSize":257,"parsedSize":174,"gzipSize":147},{"id":778,"label":"buildURL.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/buildURL.js","statSize":1615,"parsedSize":694,"gzipSize":435},{"id":75,"label":"combineURLs.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/combineURLs.js","statSize":371,"parsedSize":119,"gzipSize":121},{"id":575,"label":"cookies.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/cookies.js","statSize":1284,"parsedSize":659,"gzipSize":378},{"id":797,"label":"isAbsoluteURL.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAbsoluteURL.js","statSize":562,"parsedSize":108,"gzipSize":117},{"id":606,"label":"isAxiosError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAxiosError.js","statSize":720,"parsedSize":370,"gzipSize":190},{"id":426,"label":"isURLSameOrigin.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isURLSameOrigin.js","statSize":2074,"parsedSize":742,"gzipSize":397},{"id":852,"label":"normalizeHeaderName.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/normalizeHeaderName.js","statSize":356,"parsedSize":194,"gzipSize":166},{"id":17,"label":"parseHeaders.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/parseHeaders.js","statSize":1389,"parsedSize":573,"gzipSize":366},{"id":656,"label":"spread.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/spread.js","statSize":563,"parsedSize":103,"gzipSize":99}],"parsedSize":3736,"gzipSize":1555},{"id":854,"label":"utils.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/utils.js","statSize":9238,"parsedSize":2885,"gzipSize":973}],"parsedSize":16220,"gzipSize":5310}],"parsedSize":16253,"gzipSize":5319},{"label":"balanced-match@1.0.0/node_modules/balanced-match","path":"./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match","statSize":1171,"groups":[{"id":524,"label":"index.js","path":"./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match/index.js","statSize":1171,"parsedSize":636,"gzipSize":368}],"parsedSize":636,"gzipSize":368},{"label":"brace-expansion@2.0.0/node_modules/brace-expansion","path":"./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion","statSize":4555,"groups":[{"id":281,"label":"index.js","path":"./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion/index.js","statSize":4555,"parsedSize":2181,"gzipSize":999}],"parsedSize":2181,"gzipSize":999},{"label":"minimatch@3.0.4/node_modules/minimatch","path":"./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch","statSize":25440,"groups":[{"id":519,"label":"minimatch.js","path":"./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js","statSize":25440,"parsedSize":7940,"gzipSize":3053}],"parsedSize":7940,"gzipSize":3053},{"label":"react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib","path":"./node_modules/.pnpm/react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib","statSize":11706,"groups":[{"id":668,"label":"index.js","path":"./node_modules/.pnpm/react-tiny-oembed@1.0.1_react-dom@17.0.1+react@17.0.1/node_modules/react-tiny-oembed/lib/index.js","statSize":11706,"parsedSize":7423,"gzipSize":2846}],"parsedSize":7423,"gzipSize":2846}],"parsedSize":34433,"gzipSize":11716},{"label":"src","path":"./src","statSize":20160,"groups":[{"label":"js","path":"./src/js","statSize":16893,"groups":[{"id":629,"label":"app.js + 2 modules (concatenated)","path":"./src/js/app.js + 2 modules (concatenated)","statSize":16893,"parsedSize":11847,"gzipSize":3473,"concatenated":true,"groups":[{"label":"src/js","path":"./src/js/app.js + 2 modules (concatenated)/src/js","statSize":16851,"groups":[{"id":null,"label":"app.js","path":"./src/js/app.js + 2 modules (concatenated)/src/js/app.js","statSize":489,"parsedSize":342,"gzipSize":100,"inaccurateSizes":true},{"id":null,"label":"_window.jsx","path":"./src/js/app.js + 2 modules (concatenated)/src/js/_window.jsx","statSize":16362,"parsedSize":11474,"gzipSize":3363,"inaccurateSizes":true}],"parsedSize":11817,"gzipSize":3464,"inaccurateSizes":true}]}],"parsedSize":11847,"gzipSize":3473},{"label":"scss","path":"./src/scss","statSize":3267,"groups":[{"id":null,"label":"_window.scss","path":"./src/scss/_window.scss","statSize":3267}],"parsedSize":0,"gzipSize":0}],"parsedSize":11847,"gzipSize":3473}]}];
window.defaultSizes = "parsed";
</script>
</body>

View File

@ -11,7 +11,7 @@
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-lightbox-gallery="demo"
data-gallery="demo"
data-title="That's first link"
>Load an Image</a
>
@ -63,11 +63,7 @@
<h2>Other</h2>
<p>
<a
href="../src/img/photo2.jpg"
data-toggle="lightbox"
data-lightbox-gallery="demo"
>
<a href="../src/img/photo2.jpg" data-toggle="lightbox" data-gallery="demo">
Use [data-toggle="lightbox"] attribute to attach lightbox action and
[href] to specify URL.
</a>
@ -76,17 +72,17 @@
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-lightbox-gallery="demo"
data-gallery="demo"
data-title="Use data-title attribute to specify lightbox title"
>
Use [data-lightbox-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with
Use [data-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with
next/prev arrows
</a>
</p>
<p
data-toggle="lightbox"
data-href="https://youtu.be/GgnClrx8N2k"
data-lightbox-gallery="demo"
data-gallery="demo"
data-title="Yes you can link vimeo and youtube videos as long as AJAX content"
>
Use [data-toggle="lightbox"] + [data-href] attribute to toggle lightbox on

View File

@ -20,10 +20,6 @@
<h1>Meta-lightbox Demo</h1>
NODE_ENV: <%= NODE_ENV %> <%=
require('html-loader!./html/meta-lightbox.html') %>
<p>
<b>Note:</b> You can add jquery-zoom plugin and lighbox will
zoom photos on hover.
</p>
<div id="App"></div>
</div>

View File

@ -6,7 +6,7 @@ import styles from '../scss/_window.scss';
import Embed, { defaultProviders } from 'react-tiny-oembed';
const TelegramProvider = {
const InstagramProvider = {
provider_name: 'Instagram',
provider_url: 'https://instagram.com',
endpoints: [
@ -75,6 +75,8 @@ class MetaWindow extends Component {
loading: false,
error: false,
embed: false,
collections: [],
current: null,
};
constructor(props) {
@ -86,14 +88,30 @@ class MetaWindow extends Component {
ui.axios = axios;
document.querySelectorAll('[data-toggle="lightbox"]').forEach((i) => {
i.addEventListener('click', (e) => {
document.querySelectorAll('[data-toggle="lightbox"]').forEach((el) => {
// collections
const gallery = el.getAttribute('data-gallery');
if (gallery) {
ui.state.collections[gallery] = [];
document
.querySelectorAll(
`[data-toggle="lightbox"][data-gallery="${gallery}"]`,
)
.forEach((el) => {
ui.state.collections[gallery].push(el);
});
}
// click handler
el.addEventListener('click', (e) => {
e.preventDefault();
const el = e.currentTarget;
const link =
el.getAttribute('href') || el.getAttribute('data-href');
const embed = el.getAttribute('data-embed');
ui.state.current = el;
if (embed) {
ui.embed(link);
@ -104,8 +122,47 @@ class MetaWindow extends Component {
});
}
_currIndex = () => {
const ui = this;
const el = ui.state.current;
const gallery = el.getAttribute('data-gallery');
return ui.state.collections[gallery].indexOf(el);
};
next = () => {
const ui = this;
const el = ui.state.current;
const gallery = el.getAttribute('data-gallery');
let i = ui._currIndex();
if (i < ui.state.collections[gallery].length - 1) {
i++;
} else {
i = 0;
}
ui.state.collections[gallery][i].click();
};
prev = () => {
const ui = this;
const el = ui.state.current;
const gallery = el.getAttribute('data-gallery');
let i = ui._currIndex();
if (i > 0) {
i--;
} else {
i = ui.state.collections[gallery].length - 1;
}
ui.state.collections[gallery][i].click();
};
reset = () => {
const ui = this;
ui.setState({
content: '',
type: [],
@ -237,6 +294,7 @@ class MetaWindow extends Component {
'',
),
);
return b64encoded;
};
@ -275,11 +333,37 @@ class MetaWindow extends Component {
const ui = this;
const name = ui.name;
let navs = null;
const el = ui.state.current;
if (el) {
const gallery = el.getAttribute('data-gallery');
if (gallery && ui.state.collections[gallery].length > 1) {
navs = (
<nav className="meta-navs">
<button
className="meta-nav meta-nav-arrow meta-nav-arrow__prev a"
onClick={ui.prev}
>
<i className="fa fas fa-chevron-left"></i>
<span className="sr-only">Previous</span>
</button>
<button
className="meta-nav meta-nav-arrow meta-nav-arrow__next a"
onClick={ui.next}
>
<i className="fa fas fa-chevron-right"></i>
<span className="sr-only">Next</span>
</button>
</nav>
);
}
}
const content = ui.state.embed ? (
<section className="meta-wrap typography">
<Embed
url={ui.state.embed}
providers={[...defaultProviders, TelegramProvider]}
providers={[...defaultProviders, InstagramProvider]}
LoadingFallbackElement=<div className="meta-spinner_embed">
... Loading ...
</div>
@ -306,10 +390,12 @@ class MetaWindow extends Component {
<div className={className}>
<div className={overlayClassName}>
<article className="meta-content">
{navs}
<button
className="meta-close fas fa fa-times a"
className="meta-nav meta-close a"
onClick={ui.hide}
>
<i className="fa fas fa-times"></i>
<span className="sr-only">Close</span>
</button>

View File

@ -4,9 +4,6 @@
*
*/
/*import '../scss/app.scss';
import './meta-lightbox';*/
import React from 'react';
import ReactDOM from 'react-dom';
import MetaWindow from './_window.jsx';

View File

@ -1,686 +0,0 @@
/*
* MetaLightbox
* https://tony.twma.pro
*
*/
// optional:
//=require ../../bower_components/jquery-zoom/jquery.zoom.js
'use strict';
import $ from 'jquery';
import Events from './_events';
const MetaLightboxUI = (($) => {
const W = window;
const $W = $(W);
const D = document;
const $Body = $('body');
const NAME = 'MetaLightboxUI';
const NETWORK_ERROR =
'<div class="meta-lightbox-error"><div class="alert alert-error alert-danger">Connection failure.</div></div>';
class MetaLightboxUI {
static init() {
console.log(`${NAME}: init ...`);
const ui = this;
ui.isMSIE = /*@cc_on!@*/ 0;
try {
ui.isHidpi = ui.is_hdpi();
} catch (e) {
console.log(`${NAME}: catch`);
}
$(`.js${NAME},[data-toggle="lightbox"],[data-lightbox-gallery]`).on(
'click',
(e) => {
e.preventDefault();
e.stopPropagation();
const $link = $(e.currentTarget);
ui.show($link);
},
);
$(`.js${NAME}-close-inline`).on('click', (e) => {
const $el = $(e.currentTarget);
$el.parents('.meta-lightbox-overlay').removeClass('meta-lightbox-open');
});
}
static is_hdpi() {
console.log(`${NAME}: isHidpi`);
const mediaQuery =
'(-webkit-min-device-pixel-ratio: 1.5),\
(min--moz-device-pixel-ratio: 1.5),\
(-o-min-device-pixel-ratio: 3/2),\
(min-resolution: 1.5dppx)';
if (W.devicePixelRatio > 1) return true;
return W.matchMedia && W.matchMedia(mediaQuery).matches;
}
static show($link) {
console.log(`${NAME}: show`);
const ui = this;
const $lightbox = ui.constructLightbox();
if (!$lightbox) return;
const $content = ui.$content;
if (!$content) return;
$Body.addClass(`meta-lightbox-body-effect-fade`);
// Add content
ui.process($content, $link);
// Nav
if ($link.data('lightbox-gallery')) {
const $galleryItems = $(
`[data-lightbox-gallery="${$link.data('lightbox-gallery')}"]`,
);
if ($galleryItems.length === 1) {
$('.meta-lightbox-nav').hide();
} else {
$('.meta-lightbox-nav').show();
}
// Prev
$('.meta-lightbox-prev')
.off('click')
.on('click', (e) => {
e.preventDefault();
const index = $galleryItems.index($link);
let $currentLink = $galleryItems.eq(index - 1);
if (!$currentLink.length) $currentLink = $galleryItems.last();
//ui.hide();
setTimeout(() => {
ui.show($currentLink);
}, 10);
});
// Next
$('.meta-lightbox-next')
.off('click')
.on('click', (e) => {
e.preventDefault();
const index = $galleryItems.index($link);
let $currentLink = $galleryItems.eq(index + 1);
if (!$currentLink.length) $currentLink = $galleryItems.first();
//ui.hide();
setTimeout(() => {
ui.show($currentLink);
}, 10);
});
}
setTimeout(() => {
ui.$overlay.addClass('meta-lightbox-open');
}, 1); // For CSS transitions
}
static constructLightbox() {
console.log(`${NAME}: constructLightbox`);
const ui = this;
const overlay = $('<div>', {
class:
'meta-lightbox-overlay meta-lightbox-theme-default meta-lightbox-effect-fade',
});
const wrap = $('<div>', {
class: 'meta-lightbox-wrap',
});
const content = $('<div>', {
class: 'meta-lightbox-content',
});
const nav = $(
'<a href="#" class="meta-lightbox-nav meta-lightbox-prev"><i class="fas fa fa-chevron-left"></i> <span class="sr-only">Previous</span></a><a href="#" class="meta-lightbox-nav meta-lightbox-next"><i class="fa fas fa-chevron-right"></i> <span class="sr-only">Next</span></a>',
);
const close = $(
'<a href="#" class="meta-lightbox-close fas fa fa-times" title="Close"><span class="sr-only">Close</span></a>',
);
const title = $('<div>', {
class: 'meta-lightbox-title-wrap',
});
if (ui.$overlay) return ui.$overlay;
if (ui.isMSIE) overlay.addClass('meta-lightbox-ie');
wrap.append(content);
wrap.append(title);
overlay.append(wrap);
overlay.append(nav);
overlay.append(close);
$Body.append(overlay);
overlay.on('click', (e) => {
e.preventDefault();
ui.hide();
});
close.on('click', (e) => {
e.preventDefault();
ui.hide();
});
ui.$overlay = overlay;
ui.$content = content;
ui.$title = title;
return ui.$overlay;
}
static setTitle(str) {
const ui = this;
ui.$title.html(str);
}
static process($content, $link) {
console.log(`${NAME}: process`);
const ui = this;
const href =
$link.attr('href') && $link.attr('href').length
? $link.attr('href')
: $link.data('href');
// add custom link specific class
ui.$content.attr('class', 'meta-lightbox-content');
ui.$content.addClass($link.data('lightbox-class'));
if (!href.length) {
console.log($link);
console.error(`${NAME}: href(attr/data) is missing`);
}
const $pageSpinner = $('#PageLoading .loading-spinner');
const loadingContent = $pageSpinner.length ? $pageSpinner.clone() : '';
ui.$content.append(loadingContent).addClass('meta-lightbox-loading');
// Image
if (
href.match(/\.(jpeg|jpg|gif|png|svg)$/i) ||
$link.data('force') === 'image'
) {
$.ajax({
url: href,
success: () => {
const img = $('<img>', { src: href });
const wrap = $('<div class="meta-lightbox-image"></div>');
const imgwrapper = $(
'<span class="meta-lightbox-zoom-wrapper"></span>',
);
imgwrapper.append(img);
wrap.append(imgwrapper);
// Vertically center images
wrap.css({
'line-height': `${$content.height()}px`,
height: `${$content.height()}px`, // For Firefox
});
$W.resize(() => {
wrap.css({
'line-height': `${$content.height()}px`,
height: `${$content.height()}px`, // For Firefox
});
});
if (typeof imgwrapper['zoom'] !== 'undefined') {
imgwrapper.zoom();
} else {
imgwrapper.addClass('no-zoom');
}
ui.$content.html(wrap);
ui.contentLoaded();
},
error: (jqXHR, status) => {
const wrap = $(NETWORK_ERROR);
ui.$content.html(wrap);
ui.contentLoaded();
},
});
// Set the title
const title = $link.data('title')
? $link.data('title')
: $link.attr('title');
ui.setTitle(title);
// google analytics
if (typeof ga === 'function') {
ga('send', 'event', 'meta', 'Image Click', href);
}
}
// Video (Youtube/Vimeo)
else if (
href.match(
/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/,
) ||
$link.data('force') === 'youtube' ||
$link.data('force') === 'vimeo'
) {
const video = href.match(
/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/,
);
let classTerm = 'meta-lightbox-video';
let src;
if (video[1] == 'youtube') {
src = `https://www.youtube.com/embed/${video[4]}`;
classTerm = `${classTerm} meta-lightbox-youtube`;
}
if (video[1] == 'youtu') {
src = `https://www.youtube.com/embed/${video[3]}`;
classTerm = `${classTerm} meta-lightbox-youtube`;
}
if (video[1] == 'youtube-nocookie') {
src = `https://www.youtube-nocookie.com/embed/${video[4]}`;
classTerm = `${classTerm} meta-lightbox-youtube`;
}
if (video[1] == 'vimeo') {
src = `https://player.vimeo.com/video/${video[3]}`;
classTerm = `${classTerm} meta-lightbox-vimeo`;
}
if (!src) {
console.warn(`${NAME}: Video loading bad URL`);
return false;
}
const $iframe = ui.loadIframe(src, classTerm);
if (!$iframe) {
$link.addClass('meta-offline');
return false;
}
$link.removeClass('meta-offline');
// Set the title
const title = $link.data('title')
? $link.data('title')
: $link.attr('title');
ui.setTitle(title);
// google analytics
if (typeof ga === 'function') {
ga('send', 'event', 'meta', 'Video Click', video);
}
}
// Inline HTML
else if (
href.substring(0, 1) == '#' ||
$link.data('force') === 'inline'
) {
if ($(href).length) {
wrap = $('<div class="meta-lightbox-inline" />');
wrap.append($(href).clone().show());
// Vertically center html
if (wrap.outerHeight() < ui.$content.height()) {
wrap.css({
position: 'relative',
top: '50%',
'margin-top': `${-(wrap.outerHeight() / 2)}px`,
});
}
$W.resize(() => {
if (wrap.outerHeight() < ui.$content.height()) {
wrap.css({
position: 'relative',
top: '50%',
'margin-top': `${-(wrap.outerHeight() / 2)}px`,
});
}
});
ui.$content.html(wrap);
ui.contentLoaded();
} else {
wrap = $(NETWORK_ERROR);
ui.$content.html(wrap);
ui.contentLoaded();
}
$('.meta-lightbox-title-wrap').html('');
// google analytics
if (typeof ga === 'function') {
ga('send', 'event', 'meta', 'inline HTML click', href);
}
}
// AJAX/iFrame (default)
else {
if ($link.data('force-iframe') || $link.data('force') === 'iframe') {
console.log(`${NAME}: IFrame forced`);
const $iframe = ui.loadIframe(href, 'meta-lightbox-iframe-content');
if (!$iframe) {
$link.addClass('meta-offline');
return false;
}
$link.removeClass('meta-offline');
return true;
}
console.log(`${NAME}: loading AJAX`);
$.ajax({
sync: false,
async: true,
url: href,
dataType: 'html',
method: 'GET',
cache: false,
statusCode: {
404: function () {
console.log(`${NAME}: page not found`);
W.location.href = url;
},
302: function () {
console.log(`${NAME}: redirect 302`);
W.location.href = url;
},
},
error: function (jqXHR, status) {
console.log(`${NAME}: AJAX request failure.${jqXHR.statusText}`);
var wrap = $(NETWORK_ERROR);
ui.$content.html(wrap);
ui.contentLoaded();
// google analytics
if (typeof ga === 'function') {
ga('send', 'event', 'error', 'AJAX ERROR', jqXHR.statusText);
}
},
success: function (data, status, jqXHR) {
console.log(`${NAME}: AJAX success`);
try {
const dataJson = $.parseJSON(data);
if (typeof dataJson === 'object') {
console.log(`${NAME}: AJAX JSON`);
// Replace regions
if (
typeof dataJson['regions'] === 'object' &&
typeof dataJson['regions']['LayoutAjax'] !== 'undefinded'
) {
var wrap = $('<div class="meta-lightbox-ajax" />');
wrap.html(dataJson['regions']['LayoutAjax']);
ui.$content.html(wrap);
ui.contentLoaded();
}
// trigger events
/*if (typeof (data['events']) === 'object') {
for (var eventName in data.events) {
$(D).trigger(eventName, [data['events'][eventName]]);
}
}*/
var title = jqXHR.getResponseHeader('X-Title'),
link = jqXHR.getResponseHeader('X-Link');
if (
title &&
title.length &&
link &&
link.length &&
link !== W.location.href &&
link.substring(0, link.indexOf('#')) !==
W.location.href.replace($('base').attr('href'), '/')
) {
$('.meta-lightbox-ajax').data('curr-title', D.title);
$('.meta-lightbox-ajax').data('curr-link', W.location.href);
if (typeof W.localStorage !== 'undefined' && link !== '/') {
W.localStorage.setItem('current-page', link);
}
if (
D.URL !== link &&
D.URL !== $('base').attr('href') + link &&
D.URL !== `${$('base').attr('href')}/${link}`
) {
W.history.pushState(
{
title,
page: link,
ajax: 'true',
},
title,
link,
);
}
$('.meta-lightbox-title-wrap').html('');
// google analytics
if (typeof ga === 'function') {
ga('set', {
page: link.replace($('base').attr('href'), ''),
title,
});
ga('send', 'pageview');
}
}
}
} catch (e) {
console.log(`${NAME}: AJAX HTML`);
const $wrap = $('<div class="meta-lightbox-ajax" />');
$wrap.append(data);
ui.$content.html($wrap);
ui.contentLoaded();
}
// Vertically center html
/*if (wrap.outerHeight() < ui.$content.height()) {
wrap.css({
position: 'relative',
top: '50%',
'margin-top': `${-(wrap.outerHeight() / 2)}px`,
});
}
$W.resize(() => {
if (wrap.outerHeight() < ui.$content.height()) {
wrap.css({
position: 'relative',
top: '50%',
'margin-top': `${-(wrap.outerHeight() / 2)}px`,
});
}
});*/
/*setTimeout(() => {
$W.resize();
if (typeof W.imagesLoaded === 'function') {
W.imagesLoaded().then(() => {
$W.resize();
});
}
}, 500);*/
ui.contentLoaded();
},
});
}
}
static loadIframe(href, classTerm) {
const ui = this;
const $iframe = $('<iframe>', {
src: href,
class: classTerm,
frameborder: 0,
vspace: 0,
hspace: 0,
scrolling: 'auto',
allowtransparency: 'true',
});
console.log(`${NAME}: loading iframe`);
$Body.append(
'<div id="MetaIFramePreload" class="hidden d-none iframe-preload" style="display:none"></div>',
);
const $preload = $('#MetaIFramePreload');
$preload.html($iframe);
$iframe.on('load', () => {
// don't load on offline
if ($Body.hasClass('is-offline')) {
console.warn(`${NAME}: Unable to load iframe offline`);
return false;
}
ui.finishIFrameLoading();
});
return $iframe;
}
static finishIFrameLoading() {
const ui = this;
const $preload = $('#MetaIFramePreload');
if (!$preload.length) {
console.warn(`${NAME}: iframe preload not found`);
return false;
}
const $iframe = $preload.find('iframe');
if (!$iframe.length) {
console.warn(`${NAME}: iframe preload > iframe not found`);
return false;
}
console.log(`${NAME}: the iframe was loaded`);
$preload.html('');
$preload.remove();
ui.$content.addClass('iframe-delay');
ui.$content.html($iframe);
ui.contentLoaded();
setTimeout(() => {
ui.$content.removeClass('iframe-delay');
}, 1000);
}
static contentLoaded() {
const ui = this;
ui.$content.removeClass('meta-lightbox-loading');
$(
`.meta-lightbox-content .js${NAME},.meta-lightbox-content [data-toggle="lightbox"],.meta-lightbox-content [data-lightbox-gallery]`,
).on('click', (e) => {
e.preventDefault();
e.stopPropagation();
const $link = $(e.currentTarget);
ui.show($link);
});
$(`.js${NAME}-close`).on('click', (e) => {
e.preventDefault();
ui.hide();
});
setTimeout(() => {
$W.trigger('meta-lightbox-loaded');
}, 1); // For CSS transitions
setTimeout(() => {
$Body.addClass('meta-lightbox-body-effect-fade');
}, 600);
}
static hide(callback) {
const ui = this;
const $overlay = ui.$overlay;
var title = $('.meta-lightbox-ajax').data('curr-title'),
link = $('.meta-lightbox-ajax').data('curr-link');
if (title && link) {
if (typeof W.localStorage !== 'undefined' && link !== '/') {
W.localStorage.setItem('current-page', link);
}
if (
D.URL !== link &&
D.URL !== $('base').attr('href') + link &&
D.URL !== `${$('base').attr('href')}/${link}`
) {
W.history.replaceState(
{
title,
page: link,
ajax: 'true',
},
title,
link,
);
}
}
$overlay.removeClass('meta-lightbox-open');
$Body.removeClass('meta-lightbox-body-effect-fade');
$('.meta-lightbox-content .meta-lightbox-zoom-wrapper').trigger(
'zoom.destroy',
);
// For IE
if (ui.isMSIE) {
$overlay.find('iframe').attr('src', ' ');
$overlay.find('iframe').remove();
}
$('.meta-lightbox-prev').off('click');
// Remove click handlers
$('.meta-lightbox-next').off('click');
// Empty content (for videos)
$('.meta-lightbox-content').empty();
$Body.removeClass('meta-lightbox-body-effect-fade');
}
}
$W.on(`MetaLightboxUI.init ${Events.AJAX} ${Events.LOADED}`, () => {
MetaLightboxUI.init();
});
$W.on(`${Events.BACKONLINE}`, () => {
$('.meta-offline').removeClass('meta-offline');
console.log(`${NAME}: reloading iframe`);
MetaLightboxUI.finishIFrameLoading();
const $iframe = $('.meta-lightbox-content iframe');
if ($iframe.length) {
$iframe.attr('src', $iframe.attr('src'));
}
});
W.MetaLightboxUI = MetaLightboxUI;
return MetaLightboxUI;
})($);
export default MetaLightboxUI;

View File

@ -1,133 +0,0 @@
//=require ../../bower_components/jquery-zoom/jquery.zoom.js
"use strict";
import $ from 'jquery';
const Events = {
AJAX: 'ajax-load',
LOADED: 'load',
};
const MetaUI = (($) => {
// Constants
const W = window;
const D = document;
const $Body = $('body');
const NAME = 'jsMetaUI';
const DATA_KEY = NAME;
class MetaUI {
constructor(el) {
const ui = this;
const $el = $(el);
ui.$el = $el;
$el.on('click', () => {
ui.showLightbox();
});
$el.addClass(`${NAME}-active`);
}
// Static methods
static init() {
this.dispose();
console.log(`Initializing: ${NAME}`);
}
static showLightbox(el) {
this.el = el;
this.$el = $(this.el);
var $this = this,
lightbox, content, currentLink, galleryItems;
this.options.beforeShowLightbox.call(this);
lightbox = this.constructLightbox();
if (!lightbox) return;
content = lightbox.find('.meta-lightbox-content');
if (!content) return;
currentLink = this.$el;
$('body').addClass(`meta-lightbox-body-effect-${ this.options.effect}`);
// Add content
this.processContent(content, currentLink);
// Nav
if (this.$el.data('lightbox-gallery')) {
galleryItems = $(`[data-lightbox-gallery="${ this.$el.data('lightbox-gallery') }"]`);
if (galleryItems.length === 1) {
$('.meta-lightbox-nav').hide();
} else {
$('.meta-lightbox-nav').show();
}
// Prev
$('.meta-lightbox-prev').off('click').on('click', function(e) {
e.preventDefault();
var index = galleryItems.index(currentLink);
currentLink = galleryItems.eq(index - 1);
if (!$(currentLink).length) currentLink = galleryItems.last();
$this.processContent(content, currentLink);
$this.options.onPrev.call(this, [currentLink]);
});
// Next
$('.meta-lightbox-next').off('click').on('click', function(e) {
e.preventDefault();
var index = galleryItems.index(currentLink);
currentLink = galleryItems.eq(index + 1);
if (!$(currentLink).length) currentLink = galleryItems.first();
$this.processContent(content, currentLink);
$this.options.onNext.call(this, [currentLink]);
});
}
setTimeout(function() {
lightbox.addClass('meta-lightbox-open');
$this.options.afterShowLightbox.call(this, [lightbox]);
}, 1); // For CSS transitions
}
static dispose() {
console.log(`Destroying: ${NAME}`);
}
static _jQueryInterface() {
return this.each(function() {
// attach functionality to el
const $el = $(this);
let data = $el.data(DATA_KEY);
if (!data) {
data = new MetaUI(this);
$el.data(DATA_KEY, data);
}
});
}
}
// jQuery interface
$.fn[NAME] = MetaUI._jQueryInterface;
$.fn[NAME].Constructor = MetaUI;
$.fn[NAME].noConflict = function() {
$.fn[NAME] = JQUERY_NO_CONFLICT;
return MetaUI._jQueryInterface;
};
// auto-apply
$(window).on(`${Events.AJAX} ${Events.LOADED}`, () => {
$('[data-toggle="lightbox"]').jsMetaUI();
});
return MetaUI;
})($);
export default MetaUI;

View File

@ -13,11 +13,14 @@ $meta-text-wrapper-color: $body-color !default;
$meta-text-wrapper-padding-width: $grid-gutter-width/2 !default;
$meta-text-wrapper-padding-height: $grid-gutter-height/2 !default;
$meta-close-size: 1.2rem !default;
$meta-close-color: $clr-grey-900 !default;
$meta-close-hover-color: $clr-blue-grey-50 !default;
$meta-close-hover-bg: $clr-blue !default;
$meta-close-hover-shadow: $clr-white !default;
$meta-nav-size: 2rem !default;
$meta-nav-arrows-size: 2.5rem !default;
$meta-nav-color: $clr-grey-900 !default;
$meta-nav-hover-color: $clr-blue-grey-50 !default;
$meta-nav-hover-bg: $clr-blue !default;
$meta-nav-hover-shadow: $clr-white !default;
$meta-nav-padding: 0.25rem 0.5rem !default;
$meta-spinner-color: $clr-white !default;
$meta-spinner-weight: bold !default;

View File

@ -64,31 +64,75 @@ $module_name: 'meta-MetaWindow';
}
}
.meta-close {
font-size: $meta-close-size;
color: $meta-close-color;
text-shadow: $meta-close-hover-shadow 0 0 0.25em;
position: absolute;
top: 0;
right: 0;
padding: 0.5em 0.651em;
// navs
.meta-nav {
font-size: $meta-nav-size;
color: $meta-nav-color;
text-shadow: $meta-nav-hover-shadow 0 0 0.25em;
border: 0;
background: none;
z-index: 2;
@include hover-focus() {
color: $meta-close-hover-color;
background: $meta-close-hover-bg;
color: $meta-nav-hover-color;
background: $meta-nav-hover-bg;
text-shadow: none;
}
}
.meta-nav-arrow {
position: absolute;
bottom: 0;
top: auto;
display: flex;
justify-content: center;
align-items: center;
font-size: $meta-nav-arrows-size;
padding: $meta-nav-padding;
@media (min-width: map-get($grid-breakpoints, 'lg')) {
top: 0;
bottom: 0;
}
&__next {
right: 0;
}
&__prev {
left: 0;
}
@media (min-width: map-get($grid-breakpoints, 'lg')) {
&__next {
right: -($meta-nav-arrows-size + 0.5);
}
&__prev {
left: -($meta-nav-arrows-size + 0.5);
}
}
}
.meta-close {
position: absolute;
top: -3rem;
right: 0;
width: 1.25em;
@media (min-width: map-get($grid-breakpoints, 'lg')) {
top: -($meta-nav-arrows-size + 0.5);
right: -($meta-nav-arrows-size + 0.5);
}
}
.meta-content {
position: relative;
width: 90%;
height: 90%;
width: 100%;
height: 80%;
display: flex;
flex-direction: column;
@media (min-width: map-get($grid-breakpoints, 'lg')) {
width: 90%;
height: 90%;
width: calc(90% - 3rem);
height: calc(90% - 3rem);
}
}
.meta-wrap {
@ -105,7 +149,7 @@ $module_name: 'meta-MetaWindow';
// Lightbox types
&__text {
.meta-close {
.meta-nav {
background: $meta-text-wrapper-bg;
}
.meta-content {

View File

@ -1 +1 @@
@import "./meta-lightbox";
@import './_window';

View File

@ -1,90 +0,0 @@
.meta-lightbox-theme-default.meta-lightbox-overlay {
background: #666;
background: rgba(0, 0, 0, 0.6);
}
.meta-lightbox-theme-default .meta-lightbox-nav {
top: 10%;
width: 20%;
height: 80%;
background-repeat: no-repeat;
background-position: 50% 50%;
opacity: 0.5;
color: $white;
font-size: 3em;
text-decoration: none;
text-shadow: 1px 1px 0 $black;
@media (min-width: map-get($grid-breakpoints, 'sm')) {
width: 8%;
}
.fa {
position: absolute;
top: 50%;
left: 50%;
margin-top: -1em;
margin-left: -0.2em;
}
&:hover {
color: $lightbox-link-hover-color;
opacity: 1;
background-color: transparentize($black, 0.5);
}
}
.meta-lightbox-theme-default .meta-lightbox-close {
display: block;
opacity: 0.5;
color: $white;
text-decoration: none;
font-size: 2em;
text-shadow: 1px 1px 0 $black;
text-align: center;
width: 1.2em;
height: 1.2em;
line-height: 1.2em;
&:focus {
color: $lightbox-link-hover-color;
opacity: 1;
background-color: transparentize($black, 0.5);
}
}
.meta-lightbox-theme-default .meta-lightbox-title {
background: $black;
color: $white;
padding: 7px 15px;
}
.meta-lightbox-theme-default .meta-lightbox-ajax,
.meta-lightbox-theme-default .meta-lightbox-inline {
color: $black;
background: $white;
padding: 2em;
box-shadow: 0px 1px 1px transparentize($black, 0.4);
}
@media (max-width: $lightbox-breakpoint) {
.meta-lightbox-wrap {
top: 5px !important;
bottom: 5px;
left: 5px;
right: 5px;
}
.meta-lightbox-theme-default .meta-lightbox-nav {
height: 100%;
opacity: 1;
font-size: 2em;
.fa {
margin-left: -0.4em;
}
}
.meta-lightbox-theme-default .meta-lightbox-close {
opacity: 1;
}
}

View File

@ -1,216 +0,0 @@
@import '_variables';
.meta-lightbox-overlay {
position: fixed;
top: 0;
left: 0;
z-index: 99998;
width: 100%;
height: 100%;
overflow: hidden;
visibility: hidden;
opacity: 0;
box-sizing: border-box;
&.meta-lightbox-open {
visibility: visible;
opacity: 1;
}
}
.meta-lightbox-wrap {
position: absolute;
top: 10%;
bottom: 10%;
left: 10%;
right: 10%;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
}
.meta-lightbox-content {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: row;
color: $white;
width: 100%;
height: 100%;
.meta-lightbox-ajax {
color: $body-color;
}
.meta-lightbox-zoom-wrapper {
display: block;
height: 100%;
width: 100%;
&:after {
color: $white;
font: normal normal normal 14px/1 FontAwesome;
content: '\f00e';
position: absolute;
right: 1em;
bottom: 1em;
right: 1em;
text-shadow: 1px 1px 1px $black;
}
&.no-zoom {
&:after {
display: none;
}
}
}
}
.meta-lightbox-title-wrap {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
z-index: 99999;
text-align: center;
}
.meta-lightbox-nav {
display: none;
}
.meta-lightbox-prev {
position: absolute;
top: 50%;
left: 0;
}
.meta-lightbox-next {
position: absolute;
top: 50%;
right: 0;
}
.meta-lightbox-close {
position: absolute;
top: 2%;
right: 2%;
line-height: 1em;
}
.meta-lightbox-image {
text-align: center;
img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
vertical-align: middle;
}
}
.meta-lightbox-content iframe {
width: 100%;
height: 100%;
}
.meta-lightbox-inline,
.meta-lightbox-ajax {
max-height: 100%;
overflow: auto;
}
.meta-lightbox-error {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
width: 100%;
height: 100%;
color: $white;
text-shadow: 0 1px 1px $black;
.alert {
margin: 0;
text-shadow: none;
}
}
.meta-lightbox-error p {
display: table-cell;
vertical-align: middle;
}
/* Effects
**********************************************/
.meta-lightbox-notouch .meta-lightbox-effect-fade,
.meta-lightbox-notouch .meta-lightbox-effect-fadeScale,
.meta-lightbox-notouch .meta-lightbox-effect-slideLeft,
.meta-lightbox-notouch .meta-lightbox-effect-slideRight,
.meta-lightbox-notouch .meta-lightbox-effect-slideUp,
.meta-lightbox-notouch .meta-lightbox-effect-slideDown,
.meta-lightbox-notouch .meta-lightbox-effect-fall {
transition: all 0.2s ease-in-out;
}
/* fadeScale */
.meta-lightbox-effect-fadeScale .meta-lightbox-wrap {
transition: all 0.3s;
transform: scale(0.7);
}
.meta-lightbox-effect-fadeScale.meta-lightbox-open .meta-lightbox-wrap {
transform: scale(1);
}
/* slideLeft / slideRight / slideUp / slideDown */
.meta-lightbox-effect-slideLeft .meta-lightbox-wrap,
.meta-lightbox-effect-slideRight .meta-lightbox-wrap,
.meta-lightbox-effect-slideUp .meta-lightbox-wrap,
.meta-lightbox-effect-slideDown .meta-lightbox-wrap {
transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
.meta-lightbox-effect-slideLeft .meta-lightbox-wrap {
transform: translateX(-10%);
}
.meta-lightbox-effect-slideRight .meta-lightbox-wrap {
transform: translateX(10%);
}
.meta-lightbox-effect-slideLeft.meta-lightbox-open .meta-lightbox-wrap,
.meta-lightbox-effect-slideRight.meta-lightbox-open .meta-lightbox-wrap {
transform: translateX(0);
}
.meta-lightbox-effect-slideDown .meta-lightbox-wrap {
transform: translateY(-10%);
}
.meta-lightbox-effect-slideUp .meta-lightbox-wrap {
transform: translateY(10%);
}
.meta-lightbox-effect-slideUp.meta-lightbox-open .meta-lightbox-wrap,
.meta-lightbox-effect-slideDown.meta-lightbox-open .meta-lightbox-wrap {
transform: translateY(0);
}
/* fall */
.meta-lightbox-body-effect-fall .meta-lightbox-effect-fall {
perspective: 1000px;
}
.meta-lightbox-effect-fall .meta-lightbox-wrap {
transition: all 0.3s ease-out;
transform: translateZ(300px);
}
.meta-lightbox-effect-fall.meta-lightbox-open .meta-lightbox-wrap {
transform: translateZ(0);
}
@import 'meta-lightbox-theme';

View File

@ -19,7 +19,7 @@ const PORT = process.env.PORT || conf.PORT;
const UIInfo = require('./package.json');
const NODE_ENV = conf.NODE_ENV || process.env.NODE_ENV;
const NODE_ENV = 'development'; //conf.NODE_ENV || process.env.NODE_ENV;
const COMPRESS = NODE_ENV === 'production' ? true : false;
console.log('NODE_ENV: ' + NODE_ENV);