IMPR: linting updates

This commit is contained in:
Tony Air 2021-01-31 18:51:51 +07:00
parent 4e0b63ccdd
commit 7b41f0be75
11 changed files with 567 additions and 353 deletions

View File

@ -1 +1 @@
/site/client
/src/thirdparty

262
.eslintrc
View File

@ -1,262 +0,0 @@
{
// http://eslint.org/docs/rules/
"extends": "eslint:recommended",
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true, // browser global variables.
"node": true, // Node.js global variables and Node.js-specific rules.
"amd": true, // defines require() and define() as global variables as per the amd spec.
"mocha": false, // adds all of the Mocha testing global variables.
"jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0.
"phantomjs": false, // phantomjs global variables.
"jquery": true, // jquery global variables.
"prototypejs": false, // prototypejs global variables.
"shelljs": false, // shelljs global variables.
"es6": true
},
"globals": {
// e.g. "angular": true
},
"plugins": [
"react",
"import",
"jquery"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
////////// Possible Errors //////////
"no-comma-dangle": 0, // disallow trailing commas in object literals
"no-cond-assign": 0, // disallow assignment in conditional expressions
"no-console": 0, // disallow use of console (off by default in the node environment)
"no-constant-condition": 0, // disallow use of constant expressions in conditions
"no-control-regex": 0, // disallow control characters in regular expressions
"no-debugger": 0, // disallow use of debugger
"no-dupe-keys": 0, // disallow duplicate keys when creating object literals
"no-empty": 0, // disallow empty statements
"no-empty-class": 0, // disallow the use of empty character classes in regular expressions
"no-ex-assign": 0, // disallow assigning to the exception in a catch block
"no-extra-boolean-cast": 0, // disallow double-negation boolean casts in a boolean context
"no-extra-parens": 0, // disallow unnecessary parentheses (off by default)
"no-extra-semi": 0, // disallow unnecessary semicolons
"no-func-assign": 0, // disallow overwriting functions written as function declarations
"no-inner-declarations": 0, // disallow function or variable declarations in nested blocks
"no-invalid-regexp": 0, // disallow invalid regular expression strings in the RegExp constructor
"no-irregular-whitespace": 0, // disallow irregular whitespace outside of strings and comments
"no-negated-in-lhs": 0, // disallow negation of the left operand of an in expression
"no-obj-calls": 0, // disallow the use of object properties of the global object (Math and JSON) as functions
"no-regex-spaces": 0, // disallow multiple spaces in a regular expression literal
"no-reserved-keys": 0, // disallow reserved words being used as object literal keys (off by default)
"no-sparse-arrays": 0, // disallow sparse arrays
"no-unreachable": 0, // disallow unreachable statements after a return, throw, continue, or break statement
"use-isnan": 0, // disallow comparisons with the value NaN
"valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default)
"valid-typeof": 0, // Ensure that the results of typeof are compared against a valid string
////////// Best Practices //////////
"block-scoped-var": 0, // treat var statements as if they were block scoped (off by default)
"complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
"consistent-return": 0, // require return statements to either always or never specify values
"curly": 0, // specify curly brace conventions for all control statements
"default-case": 0, // require default case in switch statements (off by default)
"dot-notation": 0, // encourages use of dot notation whenever possible
"eqeqeq": 0, // require the use of === and !==
"guard-for-in": 0, // make sure for-in loops have an if statement (off by default)
"no-alert": 0, // disallow the use of alert, confirm, and prompt
"no-caller": 0, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 0, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 0, // disallow else after a return in an if (off by default)
"no-empty-label": 0, // disallow use of labels for anything other then loops and switches
"no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 0, // disallow use of eval()
"no-extend-native": 0, // disallow adding to native types
"no-extra-bind": 0, // disallow unnecessary function binding
"no-fallthrough": 0, // disallow fallthrough of case statements
"no-floating-decimal": 0, // disallow the use of leading or trailing decimal points in numeric literals (off by default)
"no-implied-eval": 0, // disallow use of eval()-like methods
"no-iterator": 0, // disallow usage of __iterator__ property
"no-labels": 0, // disallow use of labeled statements
"no-lone-blocks": 0, // disallow unnecessary nested blocks
"no-loop-func": 0, // disallow creation of functions within loops
"no-multi-spaces": 0, // disallow use of multiple spaces
"no-multi-str": 0, // disallow use of multiline strings
"no-native-reassign": 0, // disallow reassignments of native objects
"no-new": 0, // disallow use of new operator when not part of the assignment or comparison
"no-new-func": 0, // disallow use of new operator for Function object
"no-new-wrappers": 0, // disallows creating new instances of String, Number, and Boolean
"no-octal": 0, // disallow use of octal literals
"no-octal-escape": 0, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
"no-process-env": 0, // disallow use of process.env (off by default)
"no-proto": 0, // disallow usage of __proto__ property
"no-redeclare": 0, // disallow declaring the same variable more then once
"no-return-assign": 0, // disallow use of assignment in return statement
"no-script-url": 0, // disallow use of javascript: urls.
"no-self-compare": 0, // disallow comparisons where both sides are exactly the same (off by default)
"no-sequences": 0, // disallow use of comma operator
"no-unused-expressions": 0, // disallow usage of expressions in statement position
"no-void": 0, // disallow use of void operator (off by default)
"no-warning-comments": 0, // disallow usage of configurable warning terms in comments, e.g. TODO or FIXME (off by default)
"no-with": 0, // disallow use of the with statement
"radix": 0, // require use of the second argument for parseInt() (off by default)
"vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default)
"wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default)
"yoda": 0, // require or disallow Yoda conditions
////////// Strict Mode //////////
"global-strict": 0, // (deprecated) require or disallow the "use strict" pragma in the global scope (off by default in the node environment)
"no-extra-strict": 0, // (deprecated) disallow unnecessary use of "use strict"; when already in strict mode
"strict": 0, // controls location of Use Strict Directives
////////// Variables //////////
"no-catch-shadow": 0, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
"no-delete-var": 0, // disallow deletion of variables
"no-label-var": 0, // disallow labels that share a name with a variable
"no-shadow": 0, // disallow declaration of variables already declared in the outer scope
"no-shadow-restricted-names": 0, // disallow shadowing of names such as arguments
"no-undef": 0, // disallow use of undeclared variables unless mentioned in a /*global */ block
"no-undef-init": 0, // disallow use of undefined when initializing variables
"no-undefined": 0, // disallow use of undefined variable (off by default)
"no-unused-vars": 0, // disallow declaration of variables that are not used in the code
"no-use-before-define": 0, // disallow use of variables before they are defined
////////// Node.js //////////
"handle-callback-err": 0, // enforces error handling in callbacks (off by default) (on by default in the node environment)
"no-mixed-requires": 0, // disallow mixing regular variable and require declarations (off by default) (on by default in the node environment)
"no-new-require": 0, // disallow use of new operator with the require function (off by default) (on by default in the node environment)
"no-path-concat": 0, // disallow string concatenation with __dirname and __filename (off by default) (on by default in the node environment)
"no-process-exit": 0, // disallow process.exit() (on by default in the node environment)
"no-restricted-modules": 0, // restrict usage of specified node modules (off by default)
"no-sync": 0, // disallow use of synchronous methods (off by default)
////////// Stylistic Issues //////////
"brace-style": 0, // enforce one true brace style (off by default)
"camelcase": 0, // require camel case names
"comma-spacing": 0, // enforce spacing before and after comma
"comma-style": 0, // enforce one true comma style (off by default)
"consistent-this": 0, // enforces consistent naming when capturing the current execution context (off by default)
"eol-last": 0, // enforce newline at the end of file, with no multiple empty lines
"func-names": 0, // require function expressions to have a name (off by default)
"func-style": 0, // enforces use of function declarations or expressions (off by default)
"key-spacing": 0, // enforces spacing between keys and values in object literal properties
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
"new-cap": 0, // require a capital letter for constructors
"new-parens": 0, // disallow the omission of parentheses when invoking a constructor with no arguments
"no-array-constructor": 0, // disallow use of the Array constructor
"no-inline-comments": 0, // disallow comments inline after code (off by default)
"no-lonely-if": 0, // disallow if as the only statement in an else block (off by default)
"no-mixed-spaces-and-tabs": 0, // disallow mixed spaces and tabs for indentation
"no-multiple-empty-lines": 0, // disallow multiple empty lines (off by default)
"no-nested-ternary": 0, // disallow nested ternary expressions (off by default)
"no-new-object": 0, // disallow use of the Object constructor
"no-space-before-semi": 0, // disallow space before semicolon
"no-spaced-func": 0, // disallow space between function identifier and application
"no-ternary": 0, // disallow the use of ternary operators (off by default)
"no-trailing-spaces": 0, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-wrap-func": 0, // disallow wrapping of non-IIFE statements in parens
"one-var": 0, // allow just one var statement per function (off by default)
"operator-assignment": 0, // require assignment operator shorthand where possible or prohibit it entirely (off by default)
"padded-blocks": 0, // enforce padding within blocks (off by default)
"quote-props": 0, // require quotes around object literal property names (off by default)
"quotes": 0, // specify whether double or single quotes should be used
"semi": 0, // require or disallow use of semicolons instead of ASI
"sort-vars": 0, // sort variables within the same declaration block (off by default)
"space-after-function-name": 0, // require a space after function names (off by default)
"space-after-keywords": 0, // require a space after certain keywords (off by default)
"space-before-blocks": 0, // require or disallow space before blocks (off by default)
"space-in-brackets": 0, // require or disallow spaces inside brackets (off by default)
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
"space-infix-ops": 0, // require spaces around operators
"space-return-throw-case": 0, // require a space after return, throw, and case
"space-unary-ops": 0, // Require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"spaced-line-comment": 0, // require or disallow a space immediately following the // in a line comment (off by default)
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)
////////// ECMAScript 6 //////////
"no-var": 0, // require let or const instead of var (off by default)
"generator-star": 0, // enforce the position of the * in generator functions (off by default)
////////// Legacy //////////
"max-depth": 0, // specify the maximum depth that blocks can be nested (off by default)
"max-len": 0, // specify the maximum length of a line in your program (off by default)
"max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default)
"max-statements": 0, // specify the maximum number of statement allowed in a function (off by default)
"no-bitwise": 0, // disallow use of bitwise operators (off by default)
"no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default)
//////// Extra //////////
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-case-declarations": "error",
"no-confusing-arrow": "error",
"no-duplicate-imports": "error",
"no-param-reassign": "error",
"no-useless-escape": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-curly-spacing": ["error", "never", {"allowMultiline": true}],
"react/jsx-filename-extension": ["error", { "extensions": [".react.js", ".js", ".jsx"] }],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-bind": ["error", { "ignoreRefs": true, "allowArrowFunctions": true, "allowBind": false }],
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": "error",
"react/jsx-tag-spacing": ["error", {"closingSlash": "never", "beforeSelfClosing": "always", "afterOpening": "never"}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-danger": "error",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-is-mounted": "error",
"react/no-multi-comp": "error",
"react/prefer-es6-class": "error",
"react/prop-types": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-comp": "error",
"import/no-mutable-exports": "error",
"import/imports-first": "warn"
}
}

27
babel.config.json Normal file
View File

@ -0,0 +1,27 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6.10",
"esmodules": true
}
}
],
[
"@babel/preset-react",
{
"pragma": "dom", // default pragma is React.createElement (only in classic runtime)
"pragmaFrag": "DomFrag", // default is React.Fragment (only in classic runtime)
"throwIfNamespace": false, // defaults to true
"runtime": "classic" // defaults to classic
// "importSource": "custom-jsx-library" // defaults to react (only in automatic runtime)
}
]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-jsx"
]
}

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-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>
}</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><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><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 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 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"))}()}();
!function(){var e={313:function(e,t,r){e.exports=r(906)},161:function(e,t,r){"use strict";var n=r(572),i=r(969),h=r(352),d=r(67),g=r(66),y=r(109),b=r(954),v=r(536);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)}))}},906:function(e,t,r){"use strict";var n=r(572),i=r(202),h=r(160),d=r(32);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(178));g.Axios=h,g.create=function create(e){return createInstance(d(g.defaults,e))},g.Cancel=r(619),g.CancelToken=r(801),g.isCancel=r(327),g.all=function all(e){return Promise.all(e)},g.spread=r(428),g.isAxiosError=r(513),e.exports=g,e.exports.default=g},619: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},801:function(e,t,r){"use strict";var n=r(619);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},327:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},160:function(e,t,r){"use strict";var n=r(572),i=r(67),h=r(664),d=r(457),g=r(32);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},664:function(e,t,r){"use strict";var n=r(572);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},66:function(e,t,r){"use strict";var n=r(96),i=r(431);e.exports=function buildFullPath(e,t){return e&&!n(t)?i(e,t):t}},536:function(e,t,r){"use strict";var n=r(706);e.exports=function createError(e,t,r,i,h){var d=new Error(e);return n(d,t,r,i,h)}},457:function(e,t,r){"use strict";var n=r(572),i=r(427),h=r(327),d=r(178);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)}))}},706: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}},32:function(e,t,r){"use strict";var n=r(572);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}},969:function(e,t,r){"use strict";var n=r(536);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)}},427:function(e,t,r){"use strict";var n=r(572);e.exports=function transformData(e,t,r){return n.forEach(r,(function transform(r){e=r(e,t)})),e}},178:function(e,t,r){"use strict";var n=r(572),i=r(418),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(161)),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},202: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)}}},67:function(e,t,r){"use strict";var n=r(572);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}},431:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},352:function(e,t,r){"use strict";var n=r(572);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(){}}},96:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},513: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}},954:function(e,t,r){"use strict";var n=r(572);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}},418:function(e,t,r){"use strict";var n=r(572);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])}))}},109:function(e,t,r){"use strict";var n=r(572),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}},428:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},572: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(202),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}}},417: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},708:function(e,t,r){var n=r(417);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}},158: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(708),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?")}},555: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(158),r(313)):(i=[t,r(804),r(158),r(313)],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__(555),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__(313),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"))}()}();

134
dist/records.json vendored
View File

@ -14,12 +14,12 @@
},
"modules": {
"byIdentifier": {
"./node_modules/.pnpm/html-loader@1.3.2_webpack@5.17.0/node_modules/html-loader/dist/cjs.js!./src/html/meta-lightbox.html": 226,
"./node_modules/.pnpm/html-webpack-plugin@4.5.1_webpack@5.17.0/node_modules/html-webpack-plugin/lib/loader.js!./src/index.html": 861
"./node_modules/.pnpm/html-loader@1.3.2_webpack@5.19.0/node_modules/html-loader/dist/cjs.js!./src/html/meta-lightbox.html": 280,
"./node_modules/.pnpm/html-webpack-plugin@4.5.1_webpack@5.19.0/node_modules/html-webpack-plugin/lib/loader.js!./src/index.html": 79
},
"usedIds": [
226,
861
79,
280
]
}
}
@ -37,76 +37,76 @@
},
"modules": {
"byIdentifier": {
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/index.js": 940,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters/xhr.js": 355,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/axios.js": 412,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/Cancel.js": 499,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/CancelToken.js": 294,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/isCancel.js": 949,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/Axios.js": 769,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/InterceptorManager.js": 637,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/buildFullPath.js": 205,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/createError.js": 348,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/dispatchRequest.js": 736,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/enhanceError.js": 177,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/mergeConfig.js": 624,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/settle.js": 706,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/transformData.js": 92,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/defaults.js": 339,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/bind.js": 810,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/buildURL.js": 778,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/combineURLs.js": 75,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/cookies.js": 575,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAbsoluteURL.js": 797,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAxiosError.js": 606,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isURLSameOrigin.js": 426,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/normalizeHeaderName.js": 852,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/parseHeaders.js": 17,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/spread.js": 656,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/utils.js": 854,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match/index.js": 524,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion/index.js": 281,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js": 519,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./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": 668,
"./node_modules/.pnpm/babel-loader@8.2.2_baabc0d578894a2be8d781502c3441b6/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/app.js|71bea69f6ec5ff1f7eb0324e8786afb4": 629,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/index.js": 313,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters/xhr.js": 161,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/axios.js": 906,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/Cancel.js": 619,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/CancelToken.js": 801,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/isCancel.js": 327,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/Axios.js": 160,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/InterceptorManager.js": 664,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/buildFullPath.js": 66,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/createError.js": 536,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/dispatchRequest.js": 457,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/enhanceError.js": 706,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/mergeConfig.js": 32,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/settle.js": 969,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/transformData.js": 427,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/defaults.js": 178,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/bind.js": 202,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/buildURL.js": 67,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/combineURLs.js": 431,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/cookies.js": 352,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAbsoluteURL.js": 96,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isAxiosError.js": 513,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/isURLSameOrigin.js": 954,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/normalizeHeaderName.js": 418,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/parseHeaders.js": 109,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/spread.js": 428,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/utils.js": 572,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/balanced-match@1.0.0/node_modules/balanced-match/index.js": 417,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/brace-expansion@2.0.0/node_modules/brace-expansion/index.js": 708,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js": 158,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./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": 555,
"./node_modules/.pnpm/babel-loader@8.2.2_cfa6fea171df94783407619dd74e11fe/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/app.js|13e97a4e07d84c458f75bd03e53eb349": 994,
"external \"React\"": 804,
"ignored|path": 386
},
"usedIds": [
17,
75,
92,
177,
205,
281,
294,
339,
348,
355,
32,
66,
67,
96,
109,
158,
160,
161,
178,
202,
313,
327,
352,
386,
412,
426,
499,
519,
524,
575,
606,
624,
629,
637,
656,
668,
417,
418,
427,
428,
431,
457,
513,
536,
555,
572,
619,
664,
706,
736,
769,
778,
797,
708,
801,
804,
810,
852,
854,
940,
949
906,
954,
969,
994
]
}
}

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 16:30]</title>
<title>@a2nt/meta-lightbox-react [31 Jan 2021 at 18:49]</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":105223,"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":20213,"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":3320,"groups":[{"id":null,"label":"_window.scss","path":"./src/scss/_window.scss","statSize":3320}],"parsedSize":0,"gzipSize":0}],"parsedSize":11847,"gzipSize":3473}]}];
window.chartData = [{"label":"js/app.js","isAsset":true,"statSize":105223,"parsedSize":46329,"gzipSize":14672,"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":313,"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":161,"label":"xhr.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/adapters/xhr.js","statSize":5769,"parsedSize":2021,"gzipSize":1014}],"parsedSize":2021,"gzipSize":1014},{"id":906,"label":"axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/axios.js","statSize":1504,"parsedSize":463,"gzipSize":284},{"label":"cancel","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel","statSize":1725,"groups":[{"id":619,"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":801,"label":"CancelToken.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/cancel/CancelToken.js","statSize":1241,"parsedSize":523,"gzipSize":287},{"id":327,"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":383},{"label":"core","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core","statSize":12130,"groups":[{"id":160,"label":"Axios.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/Axios.js","statSize":2649,"parsedSize":1203,"gzipSize":555},{"id":664,"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":66,"label":"buildFullPath.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/buildFullPath.js","statSize":697,"parsedSize":114,"gzipSize":122},{"id":536,"label":"createError.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/createError.js","statSize":625,"parsedSize":124,"gzipSize":117},{"id":457,"label":"dispatchRequest.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/dispatchRequest.js","statSize":1806,"parsedSize":843,"gzipSize":383},{"id":706,"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":32,"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":969,"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":427,"label":"transformData.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/core/transformData.js","statSize":549,"parsedSize":139,"gzipSize":125}],"parsedSize":4917,"gzipSize":1742},{"id":178,"label":"defaults.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/defaults.js","statSize":2541,"parsedSize":1383,"gzipSize":691},{"label":"helpers","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers","statSize":9191,"groups":[{"id":202,"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":67,"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":431,"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":352,"label":"cookies.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/helpers/cookies.js","statSize":1284,"parsedSize":659,"gzipSize":377},{"id":96,"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":513,"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":954,"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":418,"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":109,"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":428,"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":1554},{"id":572,"label":"utils.js","path":"./node_modules/.pnpm/axios@0.21.1/node_modules/axios/lib/utils.js","statSize":9238,"parsedSize":2885,"gzipSize":974}],"parsedSize":16217,"gzipSize":5309}],"parsedSize":16250,"gzipSize":5318},{"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":417,"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":708,"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":158,"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":555,"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":34430,"gzipSize":11712},{"label":"src","path":"./src","statSize":20213,"groups":[{"label":"js","path":"./src/js","statSize":16893,"groups":[{"id":994,"label":"app.js + 2 modules (concatenated)","path":"./src/js/app.js + 2 modules (concatenated)","statSize":16893,"parsedSize":11846,"gzipSize":3465,"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":11473,"gzipSize":3356,"inaccurateSizes":true}],"parsedSize":11816,"gzipSize":3456,"inaccurateSizes":true}]}],"parsedSize":11846,"gzipSize":3465},{"label":"scss","path":"./src/scss","statSize":3320,"groups":[{"id":null,"label":"_window.scss","path":"./src/scss/_window.scss","statSize":3320}],"parsedSize":0,"gzipSize":0}],"parsedSize":11846,"gzipSize":3465}]}];
window.defaultSizes = "parsed";
</script>
</body>

272
eslint.config.json Executable file
View File

@ -0,0 +1,272 @@
{
// http://eslint.org/docs/rules/
"extends": "eslint:recommended",
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true, // browser global variables.
"node": true, // Node.js global variables and Node.js-specific rules.
"amd": true, // defines require() and define() as global variables as per the amd spec.
"mocha": false, // adds all of the Mocha testing global variables.
"jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0.
"phantomjs": false, // phantomjs global variables.
"jquery": true, // jquery global variables.
"prototypejs": false, // prototypejs global variables.
"shelljs": false, // shelljs global variables.
"es6": true
},
"globals": {
// e.g. "angular": true
},
"plugins": ["react", "import", "jquery"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
////////// Possible Errors //////////
"no-comma-dangle": 0, // disallow trailing commas in object literals
"no-cond-assign": 0, // disallow assignment in conditional expressions
"no-console": 0, // disallow use of console (off by default in the node environment)
"no-constant-condition": 0, // disallow use of constant expressions in conditions
"no-control-regex": 0, // disallow control characters in regular expressions
"no-debugger": 0, // disallow use of debugger
"no-dupe-keys": 0, // disallow duplicate keys when creating object literals
"no-empty": 0, // disallow empty statements
"no-empty-class": 0, // disallow the use of empty character classes in regular expressions
"no-ex-assign": 0, // disallow assigning to the exception in a catch block
"no-extra-boolean-cast": 0, // disallow double-negation boolean casts in a boolean context
"no-extra-parens": 0, // disallow unnecessary parentheses (off by default)
"no-extra-semi": 0, // disallow unnecessary semicolons
"no-func-assign": 0, // disallow overwriting functions written as function declarations
"no-inner-declarations": 0, // disallow function or variable declarations in nested blocks
"no-invalid-regexp": 0, // disallow invalid regular expression strings in the RegExp constructor
"no-irregular-whitespace": 0, // disallow irregular whitespace outside of strings and comments
"no-negated-in-lhs": 0, // disallow negation of the left operand of an in expression
"no-obj-calls": 0, // disallow the use of object properties of the global object (Math and JSON) as functions
"no-regex-spaces": 0, // disallow multiple spaces in a regular expression literal
"no-reserved-keys": 0, // disallow reserved words being used as object literal keys (off by default)
"no-sparse-arrays": 0, // disallow sparse arrays
"no-unreachable": 0, // disallow unreachable statements after a return, throw, continue, or break statement
"use-isnan": 0, // disallow comparisons with the value NaN
"valid-jsdoc": 0, // Ensure JSDoc comments are valid (off by default)
"valid-typeof": 0, // Ensure that the results of typeof are compared against a valid string
////////// Best Practices //////////
"block-scoped-var": 0, // treat var statements as if they were block scoped (off by default)
"complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
"consistent-return": 0, // require return statements to either always or never specify values
"curly": 0, // specify curly brace conventions for all control statements
"default-case": 0, // require default case in switch statements (off by default)
"dot-notation": 0, // encourages use of dot notation whenever possible
"eqeqeq": 0, // require the use of === and !==
"guard-for-in": 0, // make sure for-in loops have an if statement (off by default)
"no-alert": 0, // disallow the use of alert, confirm, and prompt
"no-caller": 0, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 0, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 0, // disallow else after a return in an if (off by default)
"no-empty-label": 0, // disallow use of labels for anything other then loops and switches
"no-eq-null": 0, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 0, // disallow use of eval()
"no-extend-native": 0, // disallow adding to native types
"no-extra-bind": 0, // disallow unnecessary function binding
"no-fallthrough": 0, // disallow fallthrough of case statements
"no-floating-decimal": 0, // disallow the use of leading or trailing decimal points in numeric literals (off by default)
"no-implied-eval": 0, // disallow use of eval()-like methods
"no-iterator": 0, // disallow usage of __iterator__ property
"no-labels": 0, // disallow use of labeled statements
"no-lone-blocks": 0, // disallow unnecessary nested blocks
"no-loop-func": 0, // disallow creation of functions within loops
"no-multi-spaces": 0, // disallow use of multiple spaces
"no-multi-str": 0, // disallow use of multiline strings
"no-native-reassign": 0, // disallow reassignments of native objects
"no-new": 0, // disallow use of new operator when not part of the assignment or comparison
"no-new-func": 0, // disallow use of new operator for Function object
"no-new-wrappers": 0, // disallows creating new instances of String, Number, and Boolean
"no-octal": 0, // disallow use of octal literals
"no-octal-escape": 0, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
"no-process-env": 0, // disallow use of process.env (off by default)
"no-proto": 0, // disallow usage of __proto__ property
"no-redeclare": 0, // disallow declaring the same variable more then once
"no-return-assign": 0, // disallow use of assignment in return statement
"no-script-url": 0, // disallow use of javascript: urls.
"no-self-compare": 0, // disallow comparisons where both sides are exactly the same (off by default)
"no-sequences": 0, // disallow use of comma operator
"no-unused-expressions": 0, // disallow usage of expressions in statement position
"no-void": 0, // disallow use of void operator (off by default)
"no-warning-comments": 0, // disallow usage of configurable warning terms in comments, e.g. TODO or FIXME (off by default)
"no-with": 0, // disallow use of the with statement
"radix": 0, // require use of the second argument for parseInt() (off by default)
"vars-on-top": 0, // requires to declare all vars on top of their containing scope (off by default)
"wrap-iife": 0, // require immediate function invocation to be wrapped in parentheses (off by default)
"yoda": 0, // require or disallow Yoda conditions
////////// Strict Mode //////////
"global-strict": 0, // (deprecated) require or disallow the "use strict" pragma in the global scope (off by default in the node environment)
"no-extra-strict": 0, // (deprecated) disallow unnecessary use of "use strict"; when already in strict mode
"strict": 0, // controls location of Use Strict Directives
////////// Variables //////////
"no-catch-shadow": 0, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
"no-delete-var": 0, // disallow deletion of variables
"no-label-var": 0, // disallow labels that share a name with a variable
"no-shadow": 0, // disallow declaration of variables already declared in the outer scope
"no-shadow-restricted-names": 0, // disallow shadowing of names such as arguments
"no-undef": 0, // disallow use of undeclared variables unless mentioned in a /*global */ block
"no-undef-init": 0, // disallow use of undefined when initializing variables
"no-undefined": 0, // disallow use of undefined variable (off by default)
"no-unused-vars": 0, // disallow declaration of variables that are not used in the code
"no-use-before-define": 0, // disallow use of variables before they are defined
////////// Node.js //////////
"handle-callback-err": 0, // enforces error handling in callbacks (off by default) (on by default in the node environment)
"no-mixed-requires": 0, // disallow mixing regular variable and require declarations (off by default) (on by default in the node environment)
"no-new-require": 0, // disallow use of new operator with the require function (off by default) (on by default in the node environment)
"no-path-concat": 0, // disallow string concatenation with __dirname and __filename (off by default) (on by default in the node environment)
"no-process-exit": 0, // disallow process.exit() (on by default in the node environment)
"no-restricted-modules": 0, // restrict usage of specified node modules (off by default)
"no-sync": 0, // disallow use of synchronous methods (off by default)
////////// Stylistic Issues //////////
"brace-style": 0, // enforce one true brace style (off by default)
"camelcase": 0, // require camel case names
"comma-spacing": 0, // enforce spacing before and after comma
"comma-style": 0, // enforce one true comma style (off by default)
"consistent-this": 0, // enforces consistent naming when capturing the current execution context (off by default)
"eol-last": 0, // enforce newline at the end of file, with no multiple empty lines
"func-names": 0, // require function expressions to have a name (off by default)
"func-style": 0, // enforces use of function declarations or expressions (off by default)
"key-spacing": 0, // enforces spacing between keys and values in object literal properties
"max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default)
"new-cap": 0, // require a capital letter for constructors
"new-parens": 0, // disallow the omission of parentheses when invoking a constructor with no arguments
"no-array-constructor": 0, // disallow use of the Array constructor
"no-inline-comments": 0, // disallow comments inline after code (off by default)
"no-lonely-if": 0, // disallow if as the only statement in an else block (off by default)
"no-mixed-spaces-and-tabs": 0, // disallow mixed spaces and tabs for indentation
"no-multiple-empty-lines": 0, // disallow multiple empty lines (off by default)
"no-nested-ternary": 0, // disallow nested ternary expressions (off by default)
"no-new-object": 0, // disallow use of the Object constructor
"no-space-before-semi": 0, // disallow space before semicolon
"no-spaced-func": 0, // disallow space between function identifier and application
"no-ternary": 0, // disallow the use of ternary operators (off by default)
"no-trailing-spaces": 0, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-wrap-func": 0, // disallow wrapping of non-IIFE statements in parens
"one-var": 0, // allow just one var statement per function (off by default)
"operator-assignment": 0, // require assignment operator shorthand where possible or prohibit it entirely (off by default)
"padded-blocks": 0, // enforce padding within blocks (off by default)
"quote-props": 0, // require quotes around object literal property names (off by default)
"quotes": 0, // specify whether double or single quotes should be used
"semi": 0, // require or disallow use of semicolons instead of ASI
"sort-vars": 0, // sort variables within the same declaration block (off by default)
"space-after-function-name": 0, // require a space after function names (off by default)
"space-after-keywords": 0, // require a space after certain keywords (off by default)
"space-before-blocks": 0, // require or disallow space before blocks (off by default)
"space-in-brackets": 0, // require or disallow spaces inside brackets (off by default)
"space-in-parens": 0, // require or disallow spaces inside parentheses (off by default)
"space-infix-ops": 0, // require spaces around operators
"space-return-throw-case": 0, // require a space after return, throw, and case
"space-unary-ops": 0, // Require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
"spaced-line-comment": 0, // require or disallow a space immediately following the // in a line comment (off by default)
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)
////////// ECMAScript 6 //////////
"no-var": 0, // require let or const instead of var (off by default)
"generator-star": 0, // enforce the position of the * in generator functions (off by default)
////////// Legacy //////////
"max-depth": 0, // specify the maximum depth that blocks can be nested (off by default)
"max-len": 0, // specify the maximum length of a line in your program (off by default)
"max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default)
"max-statements": 0, // specify the maximum number of statement allowed in a function (off by default)
"no-bitwise": 0, // disallow use of bitwise operators (off by default)
"no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default)
//////// Extra //////////
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-case-declarations": "error",
"no-confusing-arrow": "error",
"no-duplicate-imports": "error",
"no-param-reassign": "error",
"no-useless-escape": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-curly-spacing": [
"error",
"never",
{ "allowMultiline": true }
],
"react/jsx-filename-extension": [
"error",
{ "extensions": [".react.js", ".js", ".jsx"] }
],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-bind": [
"error",
{
"ignoreRefs": true,
"allowArrowFunctions": true,
"allowBind": false
}
],
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": "error",
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never"
}
],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-danger": "error",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-is-mounted": "error",
"react/no-multi-comp": "error",
"react/prefer-es6-class": "error",
"react/prop-types": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-comp": "error",
"import/no-mutable-exports": "error",
"import/imports-first": "warn"
}
}

View File

@ -17,10 +17,10 @@
"start": "cross-env NODE_ENV=development webpack-dev-server --https --config webpack.config.serve.js",
"dash": "cross-env NODE_ENV=development webpack-dashboard -- webpack-dev-server --config webpack.config.serve.js",
"build": "cross-env NODE_ENV=production webpack --progress --stats-all",
"lint:check": "eslint ./src --config .eslintrc && sass-lint ./src --config .sasslintrc -v -q",
"lint:fix": "eslint ./src --config .eslintrc --fix && sass-lint ./src --config .sasslintrc -v -q --fix",
"lint:js": "eslint ./src --config .eslintrc",
"lint:sass": "sass-lint ./src --config .sasslintrc -v -q",
"lint:check": "eslint ./src --config eslint.config.json && sass-lint ./src --config sass-lint.yml -v -q",
"lint:fix": "eslint ./src --config eslint.config.json --fix && sass-lint ./src --config sass-lint.yml -v -q --fix",
"lint:js": "eslint ./src --config eslint.config.json",
"lint:sass": "sass-lint ./src --config sass-lint.yml -v -q",
"prebuild": "yarn lint:fix && rimraf dist",
"prepare": "yarn lint:fix && yarn build",
"prunecaches": "rimraf ./node_modules/.cache/",
@ -48,8 +48,6 @@
"ie>=11"
],
"dependencies": {
"react": "^17.0.1",
"react-dom": "^17.0.1",
"axios": "^0.21.1",
"balanced-match": "^1.0.0",
"bootstrap": "^4.6.0",
@ -57,29 +55,34 @@
"font-awesome": "^4.7.0",
"material-design-color": "^2.3.2",
"minimatch": "^3.0.4",
"oembed-github-gist": "^1.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-tiny-oembed": "^1.0.1",
"setimmediate": "^1.0.5"
},
"devDependencies": {
"@a2nt/image-sprite-webpack-plugin": "^0.2.5",
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.12.1",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-syntax-jsx": "^7.12.1",
"@babel/plugin-transform-react-jsx": "^7.12.12",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@googlemaps/markerclustererplus": "*",
"animate.css": "^4.1.1",
"ansi-html": "^0.0.7",
"ansi-regex": "^5.0.0",
"autoprefixer": "^10.2.3",
"babel-eslint": "^10.1.0",
"autoprefixer": "^10.2.4",
"babel-loader": "^8.2.2",
"classnames": "^2.2.6",
"copy-webpack-plugin": "^7.0.0",
"croppie": "^2.6.5",
"cross-env": "^7.0.3",
"css-loader": "^5.0.1",
"eslint": "^7.18.0",
"eslint": "^7.19.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-react": "^7.22.0",
@ -94,13 +97,13 @@
"html-dom-parser": "^1.0.0",
"html-entities": "^1.4.0",
"html-loader": "^1.3.2",
"html-react-parser": "^1.2.1",
"html-react-parser": "^1.2.3",
"html-webpack-plugin": "^4.5.1",
"image-minimizer-webpack-plugin": "^2.2.0",
"imagemin-jpegtran": "^7.0.0",
"img-optimize-loader": "^1.0.7",
"loglevel": "^1.7.1",
"mini-css-extract-plugin": "^1.3.4",
"mini-css-extract-plugin": "^1.3.5",
"node-sass": "^5.0.0",
"object-assign": "^4.1.1",
"optimize-css-assets-webpack-plugin": "^5.0.4",
@ -118,7 +121,6 @@
"sass-lint-fix": "^1.12.1",
"sass-loader": "^10.1.1",
"scheduler": "^0.20.1",
"script-ext-html-webpack-plugin": "^2.1.5",
"shallowequal": "^1.1.0",
"strip-ansi": "^6.0.0",
"style-loader": "^2.0.0",
@ -126,7 +128,7 @@
"terser-webpack-plugin": "^5.1.1",
"url": "^0.11.0",
"url-loader": "^4.1.1",
"webpack": "^5.17.0",
"webpack": "^5.19.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.4.0",
"webpack-dev-server": "^4.0.0-beta.0",

173
sass-lint.yml Executable file
View File

@ -0,0 +1,173 @@
# sass-lint config to match the AirBNB style guide
files:
include: 'app/client/src/**/*.scss'
ignore:
- 'app/client/src/thirdparty/*'
options:
formatter: stylish
merge-default-rules: false
rules:
# Warnings
# Things that require actual refactoring are marked as warnings
class-name-format:
- 1
- convention: hyphenatedbem
placeholder-name-format:
- 1
- convention: hyphenatedlowercase
nesting-depth:
- 1
- max-depth: 3
no-ids: 1
no-important: 1
no-misspelled-properties:
- 1
- extra-properties:
- '-moz-border-radius-topleft'
- '-moz-border-radius-topright'
- '-moz-border-radius-bottomleft'
- '-moz-border-radius-bottomright'
variable-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
no-extends: 1
# Warnings: these things are preferential rather than mandatory
no-css-comments: 1
# Errors
# Things that can be easily fixed are marked as errors
indentation:
- 2
- size: 2
final-newline:
- 2
- include: true
no-trailing-whitespace: 2
border-zero:
- 2
- convention: '0'
brace-style:
- 2
- allow-single-line: true
clean-import-paths:
- 2
- filename-extension: false
leading-underscore: false
no-debug: 2
no-empty-rulesets: 2
no-invalid-hex: 2
no-mergeable-selectors: 2
# no-qualifying-elements:
# - 1
# - allow-element-with-attribute: false
# allow-element-with-class: false
# allow-element-with-id: false
no-trailing-zero: 2
no-url-protocols: 2
quotes:
- 2
- style: double
space-after-bang:
- 2
- include: false
space-after-colon:
- 2
- include: true
space-after-comma:
- 2
- include: true
space-before-bang:
- 2
- include: true
space-before-brace:
- 2
- include: true
space-before-colon: 2
space-between-parens:
- 2
- include: false
trailing-semicolon: 2
url-quotes: 2
zero-unit: 2
single-line-per-selector: 2
one-declaration-per-line: 2
empty-line-between-blocks:
- 2
- ignore-single-line-rulesets: true
# Missing rules
# There are no sass-lint rules for the following AirBNB style items, but thess
# - Put comments on their own line
# - Put property delcarations before mixins
# Disabled rules
# These are other rules that we may wish to consider using in the future
# They are not part of the AirBNB CSS standard but they would introduce some strictness
# bem-depth: 0
# variable-for-property: 0
# no-transition-all: 0
# hex-length:
# - 1
# - style: short
# hex-notation:
# - 1
# - style: lowercase
# property-units:
# - 1
# - global:
# - ch
# - em
# - ex
# - rem
# - cm
# - in
# - mm
# - pc
# - pt
# - px
# - q
# - vh
# - vw
# - vmin
# - vmax
# - deg
# - grad
# - rad
# - turn
# - ms
# - s
# - Hz
# - kHz
# - dpi
# - dpcm
# - dppx
# - '%'
# per-property: {}
# force-attribute-nesting: 1
# force-element-nesting: 1
# force-pseudo-nesting: 1
# function-name-format:
# - 1
# - allow-leading-underscore: true
# convention: hyphenatedlowercase
# no-color-literals: 1
# no-duplicate-properties: 1
# mixin-name-format:
# - 1
# - allow-leading-underscore: true
# convention: hyphenatedlowercase
# shorthand-values:
# - 1
# - allowed-shorthands:
# - 1
# - 2
# - 3
# leading-zero:
# - 1
# - include: false
# no-vendor-prefixes:
# - 1
# - additional-identifiers: []
# excluded-identifiers: []
# placeholder-in-extend: 1
# no-color-keywords: 2

View File

@ -23,7 +23,14 @@
<div id="App"></div>
</div>
<!-- React is required -->
<%= REACT_SCRIPTS %>
<!-- That's optional dependencies -->
<!-- jQuery -->
<!-- script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
@ -32,10 +39,5 @@
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.12.0/css/all.css"
/>
<!-- React is required -->
<%= REACT_SCRIPTS %>
<!-- jQuery is required -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</body>
</html>